configure 798 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266
  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=6
  2486. SDL_INTERFACE_AGE=0
  2487. SDL_BINARY_AGE=6
  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 strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll
  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 atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn 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. fi
  14472. # Check whether --enable-gcc-atomics was given.
  14473. if test "${enable_gcc_atomics+set}" = set; then :
  14474. enableval=$enable_gcc_atomics;
  14475. else
  14476. enable_gcc_atomics=yes
  14477. fi
  14478. if test x$enable_gcc_atomics = xyes; then
  14479. have_gcc_atomics=no
  14480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14481. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14483. /* end confdefs.h. */
  14484. int
  14485. main ()
  14486. {
  14487. int a;
  14488. void *x, *y, *z;
  14489. __sync_lock_test_and_set(&a, 4);
  14490. __sync_lock_test_and_set(&x, y);
  14491. __sync_fetch_and_add(&a, 1);
  14492. __sync_bool_compare_and_swap(&a, 5, 10);
  14493. __sync_bool_compare_and_swap(&x, y, z);
  14494. ;
  14495. return 0;
  14496. }
  14497. _ACEOF
  14498. if ac_fn_c_try_link "$LINENO"; then :
  14499. have_gcc_atomics=yes
  14500. fi
  14501. rm -f core conftest.err conftest.$ac_objext \
  14502. conftest$ac_exeext conftest.$ac_ext
  14503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14504. $as_echo "$have_gcc_atomics" >&6; }
  14505. if test x$have_gcc_atomics = xyes; then
  14506. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14507. else
  14508. # See if we have the minimum operation needed for GCC atomics
  14509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14510. /* end confdefs.h. */
  14511. int
  14512. main ()
  14513. {
  14514. int a;
  14515. __sync_lock_test_and_set(&a, 1);
  14516. __sync_lock_release(&a);
  14517. ;
  14518. return 0;
  14519. }
  14520. _ACEOF
  14521. if ac_fn_c_try_link "$LINENO"; then :
  14522. have_gcc_sync_lock_test_and_set=yes
  14523. fi
  14524. rm -f core conftest.err conftest.$ac_objext \
  14525. conftest$ac_exeext conftest.$ac_ext
  14526. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14527. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14528. fi
  14529. fi
  14530. fi
  14531. # Standard C sources
  14532. SOURCES="$SOURCES $srcdir/src/*.c"
  14533. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14534. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14535. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14536. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14537. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14538. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14539. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14540. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14541. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14542. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14543. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14544. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14545. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14546. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14547. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14548. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14549. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14550. # Check whether --enable-atomic was given.
  14551. if test "${enable_atomic+set}" = set; then :
  14552. enableval=$enable_atomic;
  14553. else
  14554. enable_atomic=yes
  14555. fi
  14556. if test x$enable_atomic != xyes; then
  14557. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14558. else
  14559. SUMMARY_modules="${SUMMARY_modules} atomic"
  14560. fi
  14561. # Check whether --enable-audio was given.
  14562. if test "${enable_audio+set}" = set; then :
  14563. enableval=$enable_audio;
  14564. else
  14565. enable_audio=yes
  14566. fi
  14567. if test x$enable_audio != xyes; then
  14568. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14569. else
  14570. SUMMARY_modules="${SUMMARY_modules} audio"
  14571. fi
  14572. # Check whether --enable-video was given.
  14573. if test "${enable_video+set}" = set; then :
  14574. enableval=$enable_video;
  14575. else
  14576. enable_video=yes
  14577. fi
  14578. if test x$enable_video != xyes; then
  14579. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14580. else
  14581. SUMMARY_modules="${SUMMARY_modules} video"
  14582. fi
  14583. # Check whether --enable-render was given.
  14584. if test "${enable_render+set}" = set; then :
  14585. enableval=$enable_render;
  14586. else
  14587. enable_render=yes
  14588. fi
  14589. if test x$enable_render != xyes; then
  14590. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14591. else
  14592. SUMMARY_modules="${SUMMARY_modules} render"
  14593. fi
  14594. # Check whether --enable-events was given.
  14595. if test "${enable_events+set}" = set; then :
  14596. enableval=$enable_events;
  14597. else
  14598. enable_events=yes
  14599. fi
  14600. if test x$enable_events != xyes; then
  14601. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14602. else
  14603. SUMMARY_modules="${SUMMARY_modules} events"
  14604. fi
  14605. # Check whether --enable-joystick was given.
  14606. if test "${enable_joystick+set}" = set; then :
  14607. enableval=$enable_joystick;
  14608. else
  14609. enable_joystick=yes
  14610. fi
  14611. if test x$enable_joystick != xyes; then
  14612. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14613. else
  14614. SUMMARY_modules="${SUMMARY_modules} joystick"
  14615. fi
  14616. # Check whether --enable-haptic was given.
  14617. if test "${enable_haptic+set}" = set; then :
  14618. enableval=$enable_haptic;
  14619. else
  14620. enable_haptic=yes
  14621. fi
  14622. if test x$enable_haptic != xyes; then
  14623. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14624. else
  14625. SUMMARY_modules="${SUMMARY_modules} haptic"
  14626. fi
  14627. # Check whether --enable-power was given.
  14628. if test "${enable_power+set}" = set; then :
  14629. enableval=$enable_power;
  14630. else
  14631. enable_power=yes
  14632. fi
  14633. if test x$enable_power != xyes; then
  14634. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14635. else
  14636. SUMMARY_modules="${SUMMARY_modules} power"
  14637. fi
  14638. # Check whether --enable-filesystem was given.
  14639. if test "${enable_filesystem+set}" = set; then :
  14640. enableval=$enable_filesystem;
  14641. else
  14642. enable_filesystem=yes
  14643. fi
  14644. if test x$enable_filesystem != xyes; then
  14645. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14646. else
  14647. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14648. fi
  14649. # Check whether --enable-threads was given.
  14650. if test "${enable_threads+set}" = set; then :
  14651. enableval=$enable_threads;
  14652. else
  14653. enable_threads=yes
  14654. fi
  14655. if test x$enable_threads != xyes; then
  14656. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14657. else
  14658. SUMMARY_modules="${SUMMARY_modules} threads"
  14659. fi
  14660. # Check whether --enable-timers was given.
  14661. if test "${enable_timers+set}" = set; then :
  14662. enableval=$enable_timers;
  14663. else
  14664. enable_timers=yes
  14665. fi
  14666. if test x$enable_timers != xyes; then
  14667. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14668. else
  14669. SUMMARY_modules="${SUMMARY_modules} timers"
  14670. fi
  14671. # Check whether --enable-file was given.
  14672. if test "${enable_file+set}" = set; then :
  14673. enableval=$enable_file;
  14674. else
  14675. enable_file=yes
  14676. fi
  14677. if test x$enable_file != xyes; then
  14678. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14679. else
  14680. SUMMARY_modules="${SUMMARY_modules} file"
  14681. fi
  14682. # Check whether --enable-loadso was given.
  14683. if test "${enable_loadso+set}" = set; then :
  14684. enableval=$enable_loadso;
  14685. else
  14686. enable_loadso=yes
  14687. fi
  14688. if test x$enable_loadso != xyes; then
  14689. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14690. else
  14691. SUMMARY_modules="${SUMMARY_modules} loadso"
  14692. fi
  14693. # Check whether --enable-cpuinfo was given.
  14694. if test "${enable_cpuinfo+set}" = set; then :
  14695. enableval=$enable_cpuinfo;
  14696. else
  14697. enable_cpuinfo=yes
  14698. fi
  14699. if test x$enable_cpuinfo != xyes; then
  14700. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14701. else
  14702. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14703. fi
  14704. # Check whether --enable-assembly was given.
  14705. if test "${enable_assembly+set}" = set; then :
  14706. enableval=$enable_assembly;
  14707. else
  14708. enable_assembly=yes
  14709. fi
  14710. if test x$enable_assembly = xyes; then
  14711. SUMMARY_modules="${SUMMARY_modules} assembly"
  14712. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14713. # Make sure that we don't generate floating point code that would
  14714. # cause illegal instruction exceptions on older processors
  14715. case "$host" in
  14716. *-*-darwin*)
  14717. # Don't need to worry about Apple hardware, it's all SSE capable
  14718. default_ssemath=yes
  14719. ;;
  14720. *64-*-*)
  14721. # x86 64-bit architectures all have SSE instructions
  14722. default_ssemath=yes
  14723. ;;
  14724. *)
  14725. default_ssemath=no
  14726. ;;
  14727. esac
  14728. # Check whether --enable-ssemath was given.
  14729. if test "${enable_ssemath+set}" = set; then :
  14730. enableval=$enable_ssemath;
  14731. else
  14732. enable_ssemath=$default_ssemath
  14733. fi
  14734. if test x$enable_ssemath = xno; then
  14735. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14736. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14737. fi
  14738. fi
  14739. # Check whether --enable-mmx was given.
  14740. if test "${enable_mmx+set}" = set; then :
  14741. enableval=$enable_mmx;
  14742. else
  14743. enable_mmx=yes
  14744. fi
  14745. if test x$enable_mmx = xyes; then
  14746. save_CFLAGS="$CFLAGS"
  14747. have_gcc_mmx=no
  14748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14749. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14750. mmx_CFLAGS="-mmmx"
  14751. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14753. /* end confdefs.h. */
  14754. #ifdef __MINGW32__
  14755. #include <_mingw.h>
  14756. #ifdef __MINGW64_VERSION_MAJOR
  14757. #include <intrin.h>
  14758. #else
  14759. #include <mmintrin.h>
  14760. #endif
  14761. #else
  14762. #include <mmintrin.h>
  14763. #endif
  14764. #ifndef __MMX__
  14765. #error Assembler CPP flag not enabled
  14766. #endif
  14767. int
  14768. main ()
  14769. {
  14770. ;
  14771. return 0;
  14772. }
  14773. _ACEOF
  14774. if ac_fn_c_try_compile "$LINENO"; then :
  14775. have_gcc_mmx=yes
  14776. fi
  14777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14779. $as_echo "$have_gcc_mmx" >&6; }
  14780. CFLAGS="$save_CFLAGS"
  14781. if test x$have_gcc_mmx = xyes; then
  14782. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14783. SUMMARY_math="${SUMMARY_math} mmx"
  14784. fi
  14785. fi
  14786. # Check whether --enable-3dnow was given.
  14787. if test "${enable_3dnow+set}" = set; then :
  14788. enableval=$enable_3dnow;
  14789. else
  14790. enable_3dnow=yes
  14791. fi
  14792. if test x$enable_3dnow = xyes; then
  14793. save_CFLAGS="$CFLAGS"
  14794. have_gcc_3dnow=no
  14795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14796. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14797. amd3dnow_CFLAGS="-m3dnow"
  14798. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14800. /* end confdefs.h. */
  14801. #include <mm3dnow.h>
  14802. #ifndef __3dNOW__
  14803. #error Assembler CPP flag not enabled
  14804. #endif
  14805. int
  14806. main ()
  14807. {
  14808. void *p = 0;
  14809. _m_prefetch(p);
  14810. ;
  14811. return 0;
  14812. }
  14813. _ACEOF
  14814. if ac_fn_c_try_link "$LINENO"; then :
  14815. have_gcc_3dnow=yes
  14816. fi
  14817. rm -f core conftest.err conftest.$ac_objext \
  14818. conftest$ac_exeext conftest.$ac_ext
  14819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14820. $as_echo "$have_gcc_3dnow" >&6; }
  14821. CFLAGS="$save_CFLAGS"
  14822. if test x$have_gcc_3dnow = xyes; then
  14823. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14824. SUMMARY_math="${SUMMARY_math} 3dnow"
  14825. fi
  14826. fi
  14827. # Check whether --enable-sse was given.
  14828. if test "${enable_sse+set}" = set; then :
  14829. enableval=$enable_sse;
  14830. else
  14831. enable_sse=yes
  14832. fi
  14833. if test x$enable_sse = xyes; then
  14834. save_CFLAGS="$CFLAGS"
  14835. have_gcc_sse=no
  14836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14837. $as_echo_n "checking for GCC -msse option... " >&6; }
  14838. sse_CFLAGS="-msse"
  14839. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14841. /* end confdefs.h. */
  14842. #ifdef __MINGW32__
  14843. #include <_mingw.h>
  14844. #ifdef __MINGW64_VERSION_MAJOR
  14845. #include <intrin.h>
  14846. #else
  14847. #include <xmmintrin.h>
  14848. #endif
  14849. #else
  14850. #include <xmmintrin.h>
  14851. #endif
  14852. #ifndef __SSE__
  14853. #error Assembler CPP flag not enabled
  14854. #endif
  14855. int
  14856. main ()
  14857. {
  14858. ;
  14859. return 0;
  14860. }
  14861. _ACEOF
  14862. if ac_fn_c_try_compile "$LINENO"; then :
  14863. have_gcc_sse=yes
  14864. fi
  14865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14867. $as_echo "$have_gcc_sse" >&6; }
  14868. CFLAGS="$save_CFLAGS"
  14869. if test x$have_gcc_sse = xyes; then
  14870. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14871. SUMMARY_math="${SUMMARY_math} sse"
  14872. fi
  14873. fi
  14874. # Check whether --enable-sse2 was given.
  14875. if test "${enable_sse2+set}" = set; then :
  14876. enableval=$enable_sse2;
  14877. else
  14878. enable_sse2=$default_ssemath
  14879. fi
  14880. if test x$enable_sse2 = xyes; then
  14881. save_CFLAGS="$CFLAGS"
  14882. have_gcc_sse2=no
  14883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14884. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14885. sse2_CFLAGS="-msse2"
  14886. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14888. /* end confdefs.h. */
  14889. #ifdef __MINGW32__
  14890. #include <_mingw.h>
  14891. #ifdef __MINGW64_VERSION_MAJOR
  14892. #include <intrin.h>
  14893. #else
  14894. #include <emmintrin.h>
  14895. #endif
  14896. #else
  14897. #include <emmintrin.h>
  14898. #endif
  14899. #ifndef __SSE2__
  14900. #error Assembler CPP flag not enabled
  14901. #endif
  14902. int
  14903. main ()
  14904. {
  14905. ;
  14906. return 0;
  14907. }
  14908. _ACEOF
  14909. if ac_fn_c_try_compile "$LINENO"; then :
  14910. have_gcc_sse2=yes
  14911. fi
  14912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14914. $as_echo "$have_gcc_sse2" >&6; }
  14915. CFLAGS="$save_CFLAGS"
  14916. if test x$have_gcc_sse2 = xyes; then
  14917. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14918. SUMMARY_math="${SUMMARY_math} sse2"
  14919. fi
  14920. fi
  14921. # Check whether --enable-sse3 was given.
  14922. if test "${enable_sse3+set}" = set; then :
  14923. enableval=$enable_sse3;
  14924. else
  14925. enable_sse3=$default_ssemath
  14926. fi
  14927. if test x$enable_sse3 = xyes; then
  14928. save_CFLAGS="$CFLAGS"
  14929. have_gcc_sse3=no
  14930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  14931. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  14932. sse3_CFLAGS="-msse3"
  14933. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  14934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14935. /* end confdefs.h. */
  14936. #ifdef __MINGW32__
  14937. #include <_mingw.h>
  14938. #ifdef __MINGW64_VERSION_MAJOR
  14939. #include <intrin.h>
  14940. #else
  14941. #include <pmmintrin.h>
  14942. #endif
  14943. #else
  14944. #include <pmmintrin.h>
  14945. #endif
  14946. #ifndef __SSE2__
  14947. #error Assembler CPP flag not enabled
  14948. #endif
  14949. int
  14950. main ()
  14951. {
  14952. ;
  14953. return 0;
  14954. }
  14955. _ACEOF
  14956. if ac_fn_c_try_compile "$LINENO"; then :
  14957. have_gcc_sse3=yes
  14958. fi
  14959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  14961. $as_echo "$have_gcc_sse3" >&6; }
  14962. CFLAGS="$save_CFLAGS"
  14963. if test x$have_gcc_sse3 = xyes; then
  14964. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  14965. SUMMARY_math="${SUMMARY_math} sse3"
  14966. fi
  14967. fi
  14968. # Check whether --enable-altivec was given.
  14969. if test "${enable_altivec+set}" = set; then :
  14970. enableval=$enable_altivec;
  14971. else
  14972. enable_altivec=yes
  14973. fi
  14974. if test x$enable_altivec = xyes; then
  14975. save_CFLAGS="$CFLAGS"
  14976. have_gcc_altivec=no
  14977. have_altivec_h_hdr=no
  14978. altivec_CFLAGS="-maltivec"
  14979. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14981. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14983. /* end confdefs.h. */
  14984. #include <altivec.h>
  14985. vector unsigned int vzero() {
  14986. return vec_splat_u32(0);
  14987. }
  14988. int
  14989. main ()
  14990. {
  14991. ;
  14992. return 0;
  14993. }
  14994. _ACEOF
  14995. if ac_fn_c_try_compile "$LINENO"; then :
  14996. have_gcc_altivec=yes
  14997. have_altivec_h_hdr=yes
  14998. fi
  14999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15001. $as_echo "$have_gcc_altivec" >&6; }
  15002. if test x$have_gcc_altivec = xno; then
  15003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15004. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15006. /* end confdefs.h. */
  15007. vector unsigned int vzero() {
  15008. return vec_splat_u32(0);
  15009. }
  15010. int
  15011. main ()
  15012. {
  15013. ;
  15014. return 0;
  15015. }
  15016. _ACEOF
  15017. if ac_fn_c_try_compile "$LINENO"; then :
  15018. have_gcc_altivec=yes
  15019. fi
  15020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15022. $as_echo "$have_gcc_altivec" >&6; }
  15023. fi
  15024. if test x$have_gcc_altivec = xno; then
  15025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15026. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15027. altivec_CFLAGS="-faltivec"
  15028. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15030. /* end confdefs.h. */
  15031. #include <altivec.h>
  15032. vector unsigned int vzero() {
  15033. return vec_splat_u32(0);
  15034. }
  15035. int
  15036. main ()
  15037. {
  15038. ;
  15039. return 0;
  15040. }
  15041. _ACEOF
  15042. if ac_fn_c_try_compile "$LINENO"; then :
  15043. have_gcc_altivec=yes
  15044. have_altivec_h_hdr=yes
  15045. fi
  15046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15048. $as_echo "$have_gcc_altivec" >&6; }
  15049. fi
  15050. if test x$have_gcc_altivec = xno; then
  15051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15052. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15054. /* end confdefs.h. */
  15055. vector unsigned int vzero() {
  15056. return vec_splat_u32(0);
  15057. }
  15058. int
  15059. main ()
  15060. {
  15061. ;
  15062. return 0;
  15063. }
  15064. _ACEOF
  15065. if ac_fn_c_try_compile "$LINENO"; then :
  15066. have_gcc_altivec=yes
  15067. fi
  15068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15070. $as_echo "$have_gcc_altivec" >&6; }
  15071. fi
  15072. CFLAGS="$save_CFLAGS"
  15073. if test x$have_gcc_altivec = xyes; then
  15074. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15075. if test x$have_altivec_h_hdr = xyes; then
  15076. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15077. fi
  15078. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15079. SUMMARY_math="${SUMMARY_math} altivec"
  15080. fi
  15081. fi
  15082. fi
  15083. CheckOSS()
  15084. {
  15085. # Check whether --enable-oss was given.
  15086. if test "${enable_oss+set}" = set; then :
  15087. enableval=$enable_oss;
  15088. else
  15089. enable_oss=maybe
  15090. fi
  15091. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15092. # use sndio instead. So on there, we default to disabled. You can force
  15093. # it on if you really want, though.
  15094. if test x$enable_oss = xmaybe; then
  15095. enable_oss=yes
  15096. case "$host" in
  15097. *-*-openbsd*)
  15098. enable_oss=no;;
  15099. esac
  15100. fi
  15101. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15103. $as_echo_n "checking for OSS audio support... " >&6; }
  15104. have_oss=no
  15105. if test x$have_oss != xyes; then
  15106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15107. /* end confdefs.h. */
  15108. #include <sys/soundcard.h>
  15109. int
  15110. main ()
  15111. {
  15112. int arg = SNDCTL_DSP_SETFRAGMENT;
  15113. ;
  15114. return 0;
  15115. }
  15116. _ACEOF
  15117. if ac_fn_c_try_compile "$LINENO"; then :
  15118. have_oss=yes
  15119. fi
  15120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15121. fi
  15122. if test x$have_oss != xyes; then
  15123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15124. /* end confdefs.h. */
  15125. #include <soundcard.h>
  15126. int
  15127. main ()
  15128. {
  15129. int arg = SNDCTL_DSP_SETFRAGMENT;
  15130. ;
  15131. return 0;
  15132. }
  15133. _ACEOF
  15134. if ac_fn_c_try_compile "$LINENO"; then :
  15135. have_oss=yes
  15136. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15137. fi
  15138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15139. fi
  15140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15141. $as_echo "$have_oss" >&6; }
  15142. if test x$have_oss = xyes; then
  15143. SUMMARY_audio="${SUMMARY_audio} oss"
  15144. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15145. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15146. have_audio=yes
  15147. # We may need to link with ossaudio emulation library
  15148. case "$host" in
  15149. *-*-openbsd*|*-*-netbsd*)
  15150. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15151. esac
  15152. fi
  15153. fi
  15154. }
  15155. CheckALSA()
  15156. {
  15157. # Check whether --enable-alsa was given.
  15158. if test "${enable_alsa+set}" = set; then :
  15159. enableval=$enable_alsa;
  15160. else
  15161. enable_alsa=yes
  15162. fi
  15163. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15164. alsa_save_CFLAGS="$CFLAGS"
  15165. alsa_save_LDFLAGS="$LDFLAGS"
  15166. alsa_save_LIBS="$LIBS"
  15167. alsa_found=yes
  15168. # Check whether --with-alsa-prefix was given.
  15169. if test "${with_alsa_prefix+set}" = set; then :
  15170. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15171. else
  15172. alsa_prefix=""
  15173. fi
  15174. # Check whether --with-alsa-inc-prefix was given.
  15175. if test "${with_alsa_inc_prefix+set}" = set; then :
  15176. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15177. else
  15178. alsa_inc_prefix=""
  15179. fi
  15180. # Check whether --enable-alsatest was given.
  15181. if test "${enable_alsatest+set}" = set; then :
  15182. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15183. else
  15184. enable_alsatest=yes
  15185. fi
  15186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15187. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15188. if test "$alsa_inc_prefix" != "" ; then
  15189. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15190. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15191. fi
  15192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15193. $as_echo "$ALSA_CFLAGS" >&6; }
  15194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15195. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15196. if test "$alsa_prefix" != "" ; then
  15197. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15198. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15199. fi
  15200. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15201. LIBS=`echo $LIBS | sed 's/-lm//'`
  15202. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15203. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15204. LIBS=`echo $LIBS | sed 's/ //'`
  15205. LIBS="$ALSA_LIBS $LIBS"
  15206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15207. $as_echo "$ALSA_LIBS" >&6; }
  15208. min_alsa_version=1.0.11
  15209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15210. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15211. no_alsa=""
  15212. alsa_min_major_version=`echo $min_alsa_version | \
  15213. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15214. alsa_min_minor_version=`echo $min_alsa_version | \
  15215. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15216. alsa_min_micro_version=`echo $min_alsa_version | \
  15217. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15218. ac_ext=c
  15219. ac_cpp='$CPP $CPPFLAGS'
  15220. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15221. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15222. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15224. /* end confdefs.h. */
  15225. #include <alsa/asoundlib.h>
  15226. int
  15227. main ()
  15228. {
  15229. /* ensure backward compatibility */
  15230. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15231. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15232. #endif
  15233. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15234. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15235. #endif
  15236. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15237. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15238. #endif
  15239. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15240. exit(0);
  15241. # else
  15242. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15243. # error not present
  15244. # endif
  15245. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15246. exit(0);
  15247. # else
  15248. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15249. # error not present
  15250. # endif
  15251. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15252. # error not present
  15253. # endif
  15254. # endif
  15255. # endif
  15256. exit(0);
  15257. ;
  15258. return 0;
  15259. }
  15260. _ACEOF
  15261. if ac_fn_c_try_compile "$LINENO"; then :
  15262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15263. $as_echo "found." >&6; }
  15264. else
  15265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15266. $as_echo "not present." >&6; }
  15267. alsa_found=no
  15268. fi
  15269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15270. ac_ext=c
  15271. ac_cpp='$CPP $CPPFLAGS'
  15272. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15273. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15274. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15275. if test "x$enable_alsatest" = "xyes"; then
  15276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15277. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15278. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15279. $as_echo_n "(cached) " >&6
  15280. else
  15281. ac_check_lib_save_LIBS=$LIBS
  15282. LIBS="-lasound $LIBS"
  15283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15284. /* end confdefs.h. */
  15285. /* Override any GCC internal prototype to avoid an error.
  15286. Use char because int might match the return type of a GCC
  15287. builtin and then its argument prototype would still apply. */
  15288. #ifdef __cplusplus
  15289. extern "C"
  15290. #endif
  15291. char snd_ctl_open ();
  15292. int
  15293. main ()
  15294. {
  15295. return snd_ctl_open ();
  15296. ;
  15297. return 0;
  15298. }
  15299. _ACEOF
  15300. if ac_fn_c_try_link "$LINENO"; then :
  15301. ac_cv_lib_asound_snd_ctl_open=yes
  15302. else
  15303. ac_cv_lib_asound_snd_ctl_open=no
  15304. fi
  15305. rm -f core conftest.err conftest.$ac_objext \
  15306. conftest$ac_exeext conftest.$ac_ext
  15307. LIBS=$ac_check_lib_save_LIBS
  15308. fi
  15309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15310. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15311. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15312. cat >>confdefs.h <<_ACEOF
  15313. #define HAVE_LIBASOUND 1
  15314. _ACEOF
  15315. LIBS="-lasound $LIBS"
  15316. else
  15317. alsa_found=no
  15318. fi
  15319. fi
  15320. if test "x$alsa_found" = "xyes" ; then
  15321. have_alsa=yes
  15322. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15323. LIBS=`echo $LIBS | sed 's/ //'`
  15324. LIBS="-lasound $LIBS"
  15325. fi
  15326. if test "x$alsa_found" = "xno" ; then
  15327. have_alsa=no
  15328. CFLAGS="$alsa_save_CFLAGS"
  15329. LDFLAGS="$alsa_save_LDFLAGS"
  15330. LIBS="$alsa_save_LIBS"
  15331. ALSA_CFLAGS=""
  15332. ALSA_LIBS=""
  15333. fi
  15334. # Restore all flags from before the ALSA detection runs
  15335. CFLAGS="$alsa_save_CFLAGS"
  15336. LDFLAGS="$alsa_save_LDFLAGS"
  15337. LIBS="$alsa_save_LIBS"
  15338. if test x$have_alsa = xyes; then
  15339. # Check whether --enable-alsa-shared was given.
  15340. if test "${enable_alsa_shared+set}" = set; then :
  15341. enableval=$enable_alsa_shared;
  15342. else
  15343. enable_alsa_shared=yes
  15344. fi
  15345. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15346. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15347. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15348. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15349. if test x$have_loadso != xyes && \
  15350. test x$enable_alsa_shared = xyes; then
  15351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15352. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15353. fi
  15354. if test x$have_loadso = xyes && \
  15355. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15356. echo "-- dynamic libasound -> $alsa_lib"
  15357. cat >>confdefs.h <<_ACEOF
  15358. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15359. _ACEOF
  15360. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15361. else
  15362. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15363. SUMMARY_audio="${SUMMARY_audio} alsa"
  15364. fi
  15365. have_audio=yes
  15366. fi
  15367. fi
  15368. }
  15369. CheckJACK()
  15370. {
  15371. # Check whether --enable-jack was given.
  15372. if test "${enable_jack+set}" = set; then :
  15373. enableval=$enable_jack;
  15374. else
  15375. enable_jack=yes
  15376. fi
  15377. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15378. audio_jack=no
  15379. JACK_REQUIRED_VERSION=0.125
  15380. # Extract the first word of "pkg-config", so it can be a program name with args.
  15381. set dummy pkg-config; ac_word=$2
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15383. $as_echo_n "checking for $ac_word... " >&6; }
  15384. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15385. $as_echo_n "(cached) " >&6
  15386. else
  15387. case $PKG_CONFIG in
  15388. [\\/]* | ?:[\\/]*)
  15389. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15390. ;;
  15391. *)
  15392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15393. for as_dir in $PATH
  15394. do
  15395. IFS=$as_save_IFS
  15396. test -z "$as_dir" && as_dir=.
  15397. for ac_exec_ext in '' $ac_executable_extensions; do
  15398. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15399. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15401. break 2
  15402. fi
  15403. done
  15404. done
  15405. IFS=$as_save_IFS
  15406. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15407. ;;
  15408. esac
  15409. fi
  15410. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15411. if test -n "$PKG_CONFIG"; then
  15412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15413. $as_echo "$PKG_CONFIG" >&6; }
  15414. else
  15415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15416. $as_echo "no" >&6; }
  15417. fi
  15418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15419. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15420. if test x$PKG_CONFIG != xno; then
  15421. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15422. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15423. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15424. audio_jack=yes
  15425. fi
  15426. fi
  15427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15428. $as_echo "$audio_jack" >&6; }
  15429. if test x$audio_jack = xyes; then
  15430. # Check whether --enable-jack-shared was given.
  15431. if test "${enable_jack_shared+set}" = set; then :
  15432. enableval=$enable_jack_shared;
  15433. else
  15434. enable_jack_shared=yes
  15435. fi
  15436. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15437. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15438. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15439. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15440. if test x$have_loadso != xyes && \
  15441. test x$enable_jack_shared = xyes; then
  15442. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15443. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15444. fi
  15445. if test x$have_loadso = xyes && \
  15446. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15447. echo "-- dynamic libjack -> $jack_lib"
  15448. cat >>confdefs.h <<_ACEOF
  15449. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15450. _ACEOF
  15451. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15452. case "$host" in
  15453. # On Solaris, jack must be linked deferred explicitly
  15454. # to prevent undefined symbol failures.
  15455. *-*-solaris*)
  15456. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15457. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15458. esac
  15459. else
  15460. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15461. SUMMARY_audio="${SUMMARY_audio} jack"
  15462. fi
  15463. have_audio=yes
  15464. fi
  15465. fi
  15466. }
  15467. CheckESD()
  15468. {
  15469. # Check whether --enable-esd was given.
  15470. if test "${enable_esd+set}" = set; then :
  15471. enableval=$enable_esd;
  15472. else
  15473. enable_esd=yes
  15474. fi
  15475. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15476. # Check whether --with-esd-prefix was given.
  15477. if test "${with_esd_prefix+set}" = set; then :
  15478. withval=$with_esd_prefix; esd_prefix="$withval"
  15479. else
  15480. esd_prefix=""
  15481. fi
  15482. # Check whether --with-esd-exec-prefix was given.
  15483. if test "${with_esd_exec_prefix+set}" = set; then :
  15484. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15485. else
  15486. esd_exec_prefix=""
  15487. fi
  15488. # Check whether --enable-esdtest was given.
  15489. if test "${enable_esdtest+set}" = set; then :
  15490. enableval=$enable_esdtest;
  15491. else
  15492. enable_esdtest=yes
  15493. fi
  15494. if test x$esd_exec_prefix != x ; then
  15495. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15496. if test x${ESD_CONFIG+set} != xset ; then
  15497. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15498. fi
  15499. fi
  15500. if test x$esd_prefix != x ; then
  15501. esd_args="$esd_args --prefix=$esd_prefix"
  15502. if test x${ESD_CONFIG+set} != xset ; then
  15503. ESD_CONFIG=$esd_prefix/bin/esd-config
  15504. fi
  15505. fi
  15506. # Extract the first word of "esd-config", so it can be a program name with args.
  15507. set dummy esd-config; ac_word=$2
  15508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15509. $as_echo_n "checking for $ac_word... " >&6; }
  15510. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15511. $as_echo_n "(cached) " >&6
  15512. else
  15513. case $ESD_CONFIG in
  15514. [\\/]* | ?:[\\/]*)
  15515. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15516. ;;
  15517. *)
  15518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15519. for as_dir in $PATH
  15520. do
  15521. IFS=$as_save_IFS
  15522. test -z "$as_dir" && as_dir=.
  15523. for ac_exec_ext in '' $ac_executable_extensions; do
  15524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15525. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15527. break 2
  15528. fi
  15529. done
  15530. done
  15531. IFS=$as_save_IFS
  15532. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15533. ;;
  15534. esac
  15535. fi
  15536. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15537. if test -n "$ESD_CONFIG"; then
  15538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15539. $as_echo "$ESD_CONFIG" >&6; }
  15540. else
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15542. $as_echo "no" >&6; }
  15543. fi
  15544. min_esd_version=0.2.8
  15545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15546. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15547. no_esd=""
  15548. if test "$ESD_CONFIG" = "no" ; then
  15549. no_esd=yes
  15550. else
  15551. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15552. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15553. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15554. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15555. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15556. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15557. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15558. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15559. if test "x$enable_esdtest" = "xyes" ; then
  15560. ac_save_CFLAGS="$CFLAGS"
  15561. ac_save_LIBS="$LIBS"
  15562. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15563. LIBS="$LIBS $ESD_LIBS"
  15564. rm -f conf.esdtest
  15565. if test "$cross_compiling" = yes; then :
  15566. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15567. else
  15568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15569. /* end confdefs.h. */
  15570. #include <stdio.h>
  15571. #include <stdlib.h>
  15572. #include <string.h>
  15573. #include <esd.h>
  15574. char*
  15575. my_strdup (char *str)
  15576. {
  15577. char *new_str;
  15578. if (str)
  15579. {
  15580. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15581. strcpy (new_str, str);
  15582. }
  15583. else
  15584. new_str = NULL;
  15585. return new_str;
  15586. }
  15587. int main ()
  15588. {
  15589. int major, minor, micro;
  15590. char *tmp_version;
  15591. system ("touch conf.esdtest");
  15592. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15593. tmp_version = my_strdup("$min_esd_version");
  15594. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15595. printf("%s, bad version string\n", "$min_esd_version");
  15596. exit(1);
  15597. }
  15598. if (($esd_major_version > major) ||
  15599. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15600. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15601. {
  15602. return 0;
  15603. }
  15604. else
  15605. {
  15606. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15607. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15608. printf("*** best to upgrade to the required version.\n");
  15609. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15610. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15611. printf("*** config.cache before re-running configure\n");
  15612. return 1;
  15613. }
  15614. }
  15615. _ACEOF
  15616. if ac_fn_c_try_run "$LINENO"; then :
  15617. else
  15618. no_esd=yes
  15619. fi
  15620. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15621. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15622. fi
  15623. CFLAGS="$ac_save_CFLAGS"
  15624. LIBS="$ac_save_LIBS"
  15625. fi
  15626. fi
  15627. if test "x$no_esd" = x ; then
  15628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15629. $as_echo "yes" >&6; }
  15630. have_esd=yes
  15631. else
  15632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15633. $as_echo "no" >&6; }
  15634. if test "$ESD_CONFIG" = "no" ; then
  15635. echo "*** The esd-config script installed by ESD could not be found"
  15636. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15637. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15638. echo "*** full path to esd-config."
  15639. else
  15640. if test -f conf.esdtest ; then
  15641. :
  15642. else
  15643. echo "*** Could not run ESD test program, checking why..."
  15644. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15645. LIBS="$LIBS $ESD_LIBS"
  15646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15647. /* end confdefs.h. */
  15648. #include <stdio.h>
  15649. #include <esd.h>
  15650. int
  15651. main ()
  15652. {
  15653. return 0;
  15654. ;
  15655. return 0;
  15656. }
  15657. _ACEOF
  15658. if ac_fn_c_try_link "$LINENO"; then :
  15659. echo "*** The test program compiled, but did not run. This usually means"
  15660. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15661. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15662. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15663. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15664. echo "*** is required on your system"
  15665. echo "***"
  15666. echo "*** If you have an old version installed, it is best to remove it, although"
  15667. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15668. else
  15669. echo "*** The test program failed to compile or link. See the file config.log for the"
  15670. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15671. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15672. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15673. fi
  15674. rm -f core conftest.err conftest.$ac_objext \
  15675. conftest$ac_exeext conftest.$ac_ext
  15676. CFLAGS="$ac_save_CFLAGS"
  15677. LIBS="$ac_save_LIBS"
  15678. fi
  15679. fi
  15680. ESD_CFLAGS=""
  15681. ESD_LIBS=""
  15682. have_esd=no
  15683. fi
  15684. rm -f conf.esdtest
  15685. if test x$have_esd = xyes; then
  15686. # Check whether --enable-esd-shared was given.
  15687. if test "${enable_esd_shared+set}" = set; then :
  15688. enableval=$enable_esd_shared;
  15689. else
  15690. enable_esd_shared=yes
  15691. fi
  15692. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15693. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15694. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15695. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15696. if test x$have_loadso != xyes && \
  15697. test x$enable_esd_shared = xyes; then
  15698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15699. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15700. fi
  15701. if test x$have_loadso = xyes && \
  15702. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15703. echo "-- dynamic libesd -> $esd_lib"
  15704. cat >>confdefs.h <<_ACEOF
  15705. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15706. _ACEOF
  15707. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15708. else
  15709. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15710. SUMMARY_audio="${SUMMARY_audio} esd"
  15711. fi
  15712. have_audio=yes
  15713. fi
  15714. fi
  15715. }
  15716. CheckPulseAudio()
  15717. {
  15718. # Check whether --enable-pulseaudio was given.
  15719. if test "${enable_pulseaudio+set}" = set; then :
  15720. enableval=$enable_pulseaudio;
  15721. else
  15722. enable_pulseaudio=yes
  15723. fi
  15724. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15725. audio_pulseaudio=no
  15726. PULSEAUDIO_REQUIRED_VERSION=0.9
  15727. # Extract the first word of "pkg-config", so it can be a program name with args.
  15728. set dummy pkg-config; ac_word=$2
  15729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15730. $as_echo_n "checking for $ac_word... " >&6; }
  15731. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15732. $as_echo_n "(cached) " >&6
  15733. else
  15734. case $PKG_CONFIG in
  15735. [\\/]* | ?:[\\/]*)
  15736. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15737. ;;
  15738. *)
  15739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15740. for as_dir in $PATH
  15741. do
  15742. IFS=$as_save_IFS
  15743. test -z "$as_dir" && as_dir=.
  15744. for ac_exec_ext in '' $ac_executable_extensions; do
  15745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15746. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15748. break 2
  15749. fi
  15750. done
  15751. done
  15752. IFS=$as_save_IFS
  15753. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15754. ;;
  15755. esac
  15756. fi
  15757. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15758. if test -n "$PKG_CONFIG"; then
  15759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15760. $as_echo "$PKG_CONFIG" >&6; }
  15761. else
  15762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15763. $as_echo "no" >&6; }
  15764. fi
  15765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15766. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15767. if test x$PKG_CONFIG != xno; then
  15768. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15769. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15770. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15771. audio_pulseaudio=yes
  15772. fi
  15773. fi
  15774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15775. $as_echo "$audio_pulseaudio" >&6; }
  15776. if test x$audio_pulseaudio = xyes; then
  15777. # Check whether --enable-pulseaudio-shared was given.
  15778. if test "${enable_pulseaudio_shared+set}" = set; then :
  15779. enableval=$enable_pulseaudio_shared;
  15780. else
  15781. enable_pulseaudio_shared=yes
  15782. fi
  15783. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15784. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15785. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15786. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15787. if test x$have_loadso != xyes && \
  15788. test x$enable_pulseaudio_shared = xyes; then
  15789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15790. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15791. fi
  15792. if test x$have_loadso = xyes && \
  15793. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15794. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15795. cat >>confdefs.h <<_ACEOF
  15796. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15797. _ACEOF
  15798. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15799. case "$host" in
  15800. # On Solaris, pulseaudio must be linked deferred explicitly
  15801. # to prevent undefined symbol failures.
  15802. *-*-solaris*)
  15803. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15804. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15805. esac
  15806. else
  15807. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15808. SUMMARY_audio="${SUMMARY_audio} pulse"
  15809. fi
  15810. have_audio=yes
  15811. fi
  15812. fi
  15813. }
  15814. CheckARTSC()
  15815. {
  15816. # Check whether --enable-arts was given.
  15817. if test "${enable_arts+set}" = set; then :
  15818. enableval=$enable_arts;
  15819. else
  15820. enable_arts=yes
  15821. fi
  15822. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15823. # Extract the first word of "artsc-config", so it can be a program name with args.
  15824. set dummy artsc-config; ac_word=$2
  15825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15826. $as_echo_n "checking for $ac_word... " >&6; }
  15827. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15828. $as_echo_n "(cached) " >&6
  15829. else
  15830. case $ARTSCONFIG in
  15831. [\\/]* | ?:[\\/]*)
  15832. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15833. ;;
  15834. *)
  15835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15836. for as_dir in $PATH
  15837. do
  15838. IFS=$as_save_IFS
  15839. test -z "$as_dir" && as_dir=.
  15840. for ac_exec_ext in '' $ac_executable_extensions; do
  15841. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15842. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15844. break 2
  15845. fi
  15846. done
  15847. done
  15848. IFS=$as_save_IFS
  15849. ;;
  15850. esac
  15851. fi
  15852. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15853. if test -n "$ARTSCONFIG"; then
  15854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15855. $as_echo "$ARTSCONFIG" >&6; }
  15856. else
  15857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15858. $as_echo "no" >&6; }
  15859. fi
  15860. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15861. : # arts isn't installed
  15862. else
  15863. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15864. ARTS_LIBS=`$ARTSCONFIG --libs`
  15865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15866. $as_echo_n "checking for aRts development environment... " >&6; }
  15867. audio_arts=no
  15868. save_CFLAGS="$CFLAGS"
  15869. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15871. /* end confdefs.h. */
  15872. #include <artsc.h>
  15873. int
  15874. main ()
  15875. {
  15876. arts_stream_t stream;
  15877. ;
  15878. return 0;
  15879. }
  15880. _ACEOF
  15881. if ac_fn_c_try_compile "$LINENO"; then :
  15882. audio_arts=yes
  15883. fi
  15884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15885. CFLAGS="$save_CFLAGS"
  15886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15887. $as_echo "$audio_arts" >&6; }
  15888. if test x$audio_arts = xyes; then
  15889. # Check whether --enable-arts-shared was given.
  15890. if test "${enable_arts_shared+set}" = set; then :
  15891. enableval=$enable_arts_shared;
  15892. else
  15893. enable_arts_shared=yes
  15894. fi
  15895. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15896. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15897. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15898. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15899. if test x$have_loadso != xyes && \
  15900. test x$enable_arts_shared = xyes; then
  15901. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15902. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15903. fi
  15904. if test x$have_loadso = xyes && \
  15905. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15906. echo "-- dynamic libartsc -> $arts_lib"
  15907. cat >>confdefs.h <<_ACEOF
  15908. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15909. _ACEOF
  15910. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15911. else
  15912. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15913. SUMMARY_audio="${SUMMARY_audio} arts"
  15914. fi
  15915. have_audio=yes
  15916. fi
  15917. fi
  15918. fi
  15919. }
  15920. CheckNAS()
  15921. {
  15922. # Check whether --enable-nas was given.
  15923. if test "${enable_nas+set}" = set; then :
  15924. enableval=$enable_nas;
  15925. else
  15926. enable_nas=yes
  15927. fi
  15928. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15929. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15930. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15931. have_nas_hdr=yes
  15932. fi
  15933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15934. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15935. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15936. $as_echo_n "(cached) " >&6
  15937. else
  15938. ac_check_lib_save_LIBS=$LIBS
  15939. LIBS="-laudio $LIBS"
  15940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15941. /* end confdefs.h. */
  15942. /* Override any GCC internal prototype to avoid an error.
  15943. Use char because int might match the return type of a GCC
  15944. builtin and then its argument prototype would still apply. */
  15945. #ifdef __cplusplus
  15946. extern "C"
  15947. #endif
  15948. char AuOpenServer ();
  15949. int
  15950. main ()
  15951. {
  15952. return AuOpenServer ();
  15953. ;
  15954. return 0;
  15955. }
  15956. _ACEOF
  15957. if ac_fn_c_try_link "$LINENO"; then :
  15958. ac_cv_lib_audio_AuOpenServer=yes
  15959. else
  15960. ac_cv_lib_audio_AuOpenServer=no
  15961. fi
  15962. rm -f core conftest.err conftest.$ac_objext \
  15963. conftest$ac_exeext conftest.$ac_ext
  15964. LIBS=$ac_check_lib_save_LIBS
  15965. fi
  15966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15967. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15968. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15969. have_nas_lib=yes
  15970. fi
  15971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15972. $as_echo_n "checking for NAS audio support... " >&6; }
  15973. have_nas=no
  15974. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15975. have_nas=yes
  15976. NAS_LIBS="-laudio"
  15977. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15978. have_nas=yes
  15979. NAS_CFLAGS="-I/usr/X11R6/include/"
  15980. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15981. fi
  15982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15983. $as_echo "$have_nas" >&6; }
  15984. if test x$have_nas = xyes; then
  15985. # Check whether --enable-nas-shared was given.
  15986. if test "${enable_nas_shared+set}" = set; then :
  15987. enableval=$enable_nas_shared;
  15988. else
  15989. enable_nas_shared=yes
  15990. fi
  15991. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15992. if test x$have_loadso != xyes && \
  15993. test x$enable_nas_shared = xyes; then
  15994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15995. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15996. fi
  15997. if test x$have_loadso = xyes && \
  15998. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15999. echo "-- dynamic libaudio -> $nas_lib"
  16000. cat >>confdefs.h <<_ACEOF
  16001. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16002. _ACEOF
  16003. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16004. else
  16005. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16006. SUMMARY_audio="${SUMMARY_audio} nas"
  16007. fi
  16008. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16009. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16010. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16011. have_audio=yes
  16012. fi
  16013. fi
  16014. }
  16015. CheckSNDIO()
  16016. {
  16017. # Check whether --enable-sndio was given.
  16018. if test "${enable_sndio+set}" = set; then :
  16019. enableval=$enable_sndio;
  16020. else
  16021. enable_sndio=yes
  16022. fi
  16023. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16024. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16025. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16026. have_sndio_hdr=yes
  16027. fi
  16028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16029. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16030. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16031. $as_echo_n "(cached) " >&6
  16032. else
  16033. ac_check_lib_save_LIBS=$LIBS
  16034. LIBS="-lsndio $LIBS"
  16035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16036. /* end confdefs.h. */
  16037. /* Override any GCC internal prototype to avoid an error.
  16038. Use char because int might match the return type of a GCC
  16039. builtin and then its argument prototype would still apply. */
  16040. #ifdef __cplusplus
  16041. extern "C"
  16042. #endif
  16043. char sio_open ();
  16044. int
  16045. main ()
  16046. {
  16047. return sio_open ();
  16048. ;
  16049. return 0;
  16050. }
  16051. _ACEOF
  16052. if ac_fn_c_try_link "$LINENO"; then :
  16053. ac_cv_lib_sndio_sio_open=yes
  16054. else
  16055. ac_cv_lib_sndio_sio_open=no
  16056. fi
  16057. rm -f core conftest.err conftest.$ac_objext \
  16058. conftest$ac_exeext conftest.$ac_ext
  16059. LIBS=$ac_check_lib_save_LIBS
  16060. fi
  16061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16062. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16063. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16064. have_sndio_lib=yes
  16065. fi
  16066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16067. $as_echo_n "checking for sndio audio support... " >&6; }
  16068. have_sndio=no
  16069. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16070. have_sndio=yes
  16071. SNDIO_LIBS="-lsndio"
  16072. fi
  16073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16074. $as_echo "$have_sndio" >&6; }
  16075. if test x$have_sndio = xyes; then
  16076. # Check whether --enable-sndio-shared was given.
  16077. if test "${enable_sndio_shared+set}" = set; then :
  16078. enableval=$enable_sndio_shared;
  16079. else
  16080. enable_sndio_shared=yes
  16081. fi
  16082. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16083. if test x$have_loadso != xyes && \
  16084. test x$enable_sndio_shared = xyes; then
  16085. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16086. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16087. fi
  16088. if test x$have_loadso = xyes && \
  16089. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16090. echo "-- dynamic libsndio -> $sndio_lib"
  16091. cat >>confdefs.h <<_ACEOF
  16092. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16093. _ACEOF
  16094. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16095. else
  16096. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16097. SUMMARY_audio="${SUMMARY_audio} sndio"
  16098. fi
  16099. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16100. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16101. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16102. have_audio=yes
  16103. fi
  16104. fi
  16105. }
  16106. CheckFusionSound()
  16107. {
  16108. # Check whether --enable-fusionsound was given.
  16109. if test "${enable_fusionsound+set}" = set; then :
  16110. enableval=$enable_fusionsound;
  16111. else
  16112. enable_fusionsound=no
  16113. fi
  16114. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16115. fusionsound=no
  16116. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16117. # Extract the first word of "pkg-config", so it can be a program name with args.
  16118. set dummy pkg-config; ac_word=$2
  16119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16120. $as_echo_n "checking for $ac_word... " >&6; }
  16121. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16122. $as_echo_n "(cached) " >&6
  16123. else
  16124. case $PKG_CONFIG in
  16125. [\\/]* | ?:[\\/]*)
  16126. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16127. ;;
  16128. *)
  16129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16130. for as_dir in $PATH
  16131. do
  16132. IFS=$as_save_IFS
  16133. test -z "$as_dir" && as_dir=.
  16134. for ac_exec_ext in '' $ac_executable_extensions; do
  16135. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16136. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16138. break 2
  16139. fi
  16140. done
  16141. done
  16142. IFS=$as_save_IFS
  16143. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16144. ;;
  16145. esac
  16146. fi
  16147. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16148. if test -n "$PKG_CONFIG"; then
  16149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16150. $as_echo "$PKG_CONFIG" >&6; }
  16151. else
  16152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16153. $as_echo "no" >&6; }
  16154. fi
  16155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16156. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16157. if test x$PKG_CONFIG != xno; then
  16158. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16159. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16160. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16161. fusionsound=yes
  16162. fi
  16163. fi
  16164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16165. $as_echo "$fusionsound" >&6; }
  16166. if test x$fusionsound = xyes; then
  16167. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16168. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16169. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16170. # Check whether --enable-fusionsound-shared was given.
  16171. if test "${enable_fusionsound_shared+set}" = set; then :
  16172. enableval=$enable_fusionsound_shared;
  16173. else
  16174. enable_fusionsound_shared=yes
  16175. fi
  16176. fusionsound_shared=no
  16177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16178. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16179. if test x$have_loadso != xyes && \
  16180. test x$enable_fusionsound_shared = xyes; then
  16181. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16182. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16183. fi
  16184. if test x$have_loadso = xyes && \
  16185. test x$enable_fusionsound_shared = xyes; then
  16186. cat >>confdefs.h <<_ACEOF
  16187. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16188. _ACEOF
  16189. fusionsound_shared=yes
  16190. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16191. else
  16192. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16193. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16194. fi
  16195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16196. $as_echo "$fusionsound_shared" >&6; }
  16197. have_audio=yes
  16198. fi
  16199. fi
  16200. }
  16201. CheckDiskAudio()
  16202. {
  16203. # Check whether --enable-diskaudio was given.
  16204. if test "${enable_diskaudio+set}" = set; then :
  16205. enableval=$enable_diskaudio;
  16206. else
  16207. enable_diskaudio=yes
  16208. fi
  16209. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16210. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16211. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16212. SUMMARY_audio="${SUMMARY_audio} disk"
  16213. fi
  16214. }
  16215. CheckDummyAudio()
  16216. {
  16217. # Check whether --enable-dummyaudio was given.
  16218. if test "${enable_dummyaudio+set}" = set; then :
  16219. enableval=$enable_dummyaudio;
  16220. else
  16221. enable_dummyaudio=yes
  16222. fi
  16223. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16224. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16225. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16226. SUMMARY_audio="${SUMMARY_audio} dummy"
  16227. fi
  16228. }
  16229. CheckLibSampleRate()
  16230. {
  16231. # Check whether --enable-libsamplerate was given.
  16232. if test "${enable_libsamplerate+set}" = set; then :
  16233. enableval=$enable_libsamplerate;
  16234. else
  16235. enable_libsamplerate=yes
  16236. fi
  16237. if test x$enable_libsamplerate = xyes; then
  16238. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16239. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16240. have_samplerate_h_hdr=yes
  16241. else
  16242. have_samplerate_h_hdr=no
  16243. fi
  16244. if test x$have_samplerate_h_hdr = xyes; then
  16245. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16246. # Check whether --enable-libsamplerate-shared was given.
  16247. if test "${enable_libsamplerate_shared+set}" = set; then :
  16248. enableval=$enable_libsamplerate_shared;
  16249. else
  16250. enable_libsamplerate_shared=yes
  16251. fi
  16252. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16253. if test x$have_loadso != xyes && \
  16254. test x$enable_libsamplerate_shared = xyes; then
  16255. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16256. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16257. fi
  16258. if test x$have_loadso = xyes && \
  16259. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16260. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16261. cat >>confdefs.h <<_ACEOF
  16262. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16263. _ACEOF
  16264. else
  16265. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16266. fi
  16267. fi
  16268. fi
  16269. }
  16270. CheckVisibilityHidden()
  16271. {
  16272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16273. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16274. have_gcc_fvisibility=no
  16275. visibility_CFLAGS="-fvisibility=hidden"
  16276. save_CFLAGS="$CFLAGS"
  16277. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16279. /* end confdefs.h. */
  16280. #if !defined(__GNUC__) || __GNUC__ < 4
  16281. #error SDL only uses visibility attributes in GCC 4 or newer
  16282. #endif
  16283. int
  16284. main ()
  16285. {
  16286. ;
  16287. return 0;
  16288. }
  16289. _ACEOF
  16290. if ac_fn_c_try_compile "$LINENO"; then :
  16291. have_gcc_fvisibility=yes
  16292. fi
  16293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16295. $as_echo "$have_gcc_fvisibility" >&6; }
  16296. CFLAGS="$save_CFLAGS"
  16297. if test x$have_gcc_fvisibility = xyes; then
  16298. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16299. fi
  16300. }
  16301. CheckStackBoundary()
  16302. {
  16303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16304. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16305. have_gcc_preferred_stack_boundary=no
  16306. save_CFLAGS="$CFLAGS"
  16307. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16309. /* end confdefs.h. */
  16310. int x = 0;
  16311. int
  16312. main ()
  16313. {
  16314. ;
  16315. return 0;
  16316. }
  16317. _ACEOF
  16318. if ac_fn_c_try_compile "$LINENO"; then :
  16319. have_gcc_preferred_stack_boundary=yes
  16320. fi
  16321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16323. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16324. CFLAGS="$save_CFLAGS"
  16325. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16326. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16327. fi
  16328. }
  16329. CheckDeclarationAfterStatement()
  16330. {
  16331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16332. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16333. have_gcc_declaration_after_statement=no
  16334. save_CFLAGS="$CFLAGS"
  16335. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16337. /* end confdefs.h. */
  16338. int x = 0;
  16339. int
  16340. main ()
  16341. {
  16342. ;
  16343. return 0;
  16344. }
  16345. _ACEOF
  16346. if ac_fn_c_try_compile "$LINENO"; then :
  16347. have_gcc_declaration_after_statement=yes
  16348. fi
  16349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16351. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16352. CFLAGS="$save_CFLAGS"
  16353. if test x$have_gcc_declaration_after_statement = xyes; then
  16354. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16355. fi
  16356. }
  16357. CheckWarnAll()
  16358. {
  16359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16360. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16361. have_gcc_Wall=no
  16362. save_CFLAGS="$CFLAGS"
  16363. CFLAGS="$save_CFLAGS -Wall"
  16364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16365. /* end confdefs.h. */
  16366. int x = 0;
  16367. int
  16368. main ()
  16369. {
  16370. ;
  16371. return 0;
  16372. }
  16373. _ACEOF
  16374. if ac_fn_c_try_compile "$LINENO"; then :
  16375. have_gcc_Wall=yes
  16376. fi
  16377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16379. $as_echo "$have_gcc_Wall" >&6; }
  16380. CFLAGS="$save_CFLAGS"
  16381. if test x$have_gcc_Wall = xyes; then
  16382. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16384. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16385. need_gcc_Wno_multichar=no
  16386. case "$host" in
  16387. *-*-haiku*)
  16388. need_gcc_Wno_multichar=yes
  16389. ;;
  16390. esac
  16391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16392. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16393. if test x$need_gcc_Wno_multichar = xyes; then
  16394. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16395. fi
  16396. fi
  16397. }
  16398. CheckWayland()
  16399. {
  16400. # Check whether --enable-video-wayland was given.
  16401. if test "${enable_video_wayland+set}" = set; then :
  16402. enableval=$enable_video_wayland;
  16403. else
  16404. enable_video_wayland=yes
  16405. fi
  16406. # Check whether --enable-video-wayland-qt-touch was given.
  16407. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16408. enableval=$enable_video_wayland_qt_touch;
  16409. else
  16410. enable_video_wayland_qt_touch=yes
  16411. fi
  16412. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16413. # Extract the first word of "pkg-config", so it can be a program name with args.
  16414. set dummy pkg-config; ac_word=$2
  16415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16416. $as_echo_n "checking for $ac_word... " >&6; }
  16417. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16418. $as_echo_n "(cached) " >&6
  16419. else
  16420. case $PKG_CONFIG in
  16421. [\\/]* | ?:[\\/]*)
  16422. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16423. ;;
  16424. *)
  16425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16426. for as_dir in $PATH
  16427. do
  16428. IFS=$as_save_IFS
  16429. test -z "$as_dir" && as_dir=.
  16430. for ac_exec_ext in '' $ac_executable_extensions; do
  16431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16432. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16434. break 2
  16435. fi
  16436. done
  16437. done
  16438. IFS=$as_save_IFS
  16439. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16440. ;;
  16441. esac
  16442. fi
  16443. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16444. if test -n "$PKG_CONFIG"; then
  16445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16446. $as_echo "$PKG_CONFIG" >&6; }
  16447. else
  16448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16449. $as_echo "no" >&6; }
  16450. fi
  16451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16452. $as_echo_n "checking for Wayland support... " >&6; }
  16453. video_wayland=no
  16454. if test x$PKG_CONFIG != xno && \
  16455. test x$video_opengl_egl = xyes && \
  16456. test x$video_opengles_v2 = xyes; then
  16457. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16458. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16459. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16460. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16461. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16462. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16463. video_wayland=yes
  16464. fi
  16465. fi
  16466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16467. $as_echo "$video_wayland" >&6; }
  16468. if test x$video_wayland = xyes; then
  16469. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16470. if test x$enable_video_wayland_qt_touch = xyes; then
  16471. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16472. fi
  16473. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16474. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16475. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16476. # Check whether --enable-wayland-shared was given.
  16477. if test "${enable_wayland_shared+set}" = set; then :
  16478. enableval=$enable_wayland_shared;
  16479. else
  16480. enable_wayland_shared=maybe
  16481. fi
  16482. case "$host" in
  16483. *)
  16484. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16485. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16486. if test x$wayland_egl_lib = x; then
  16487. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16488. fi
  16489. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16490. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16491. ;;
  16492. esac
  16493. if test x$enable_wayland_shared = xmaybe; then
  16494. enable_wayland_shared=yes
  16495. fi
  16496. if test x$have_loadso != xyes && \
  16497. test x$enable_wayland_shared = xyes; then
  16498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16499. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16500. enable_wayland_shared=no
  16501. fi
  16502. if test x$have_loadso = xyes && \
  16503. test x$enable_wayland_shared = xyes && \
  16504. test x$wayland_client_lib != x && \
  16505. test x$wayland_egl_lib != x && \
  16506. test x$wayland_cursor_lib != x && \
  16507. test x$xkbcommon_lib != x; then
  16508. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16509. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16510. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16511. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16512. cat >>confdefs.h <<_ACEOF
  16513. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16514. _ACEOF
  16515. cat >>confdefs.h <<_ACEOF
  16516. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16517. _ACEOF
  16518. cat >>confdefs.h <<_ACEOF
  16519. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16520. _ACEOF
  16521. cat >>confdefs.h <<_ACEOF
  16522. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16523. _ACEOF
  16524. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16525. else
  16526. enable_wayland_shared=no
  16527. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16528. SUMMARY_video="${SUMMARY_video} wayland"
  16529. fi
  16530. have_video=yes
  16531. fi
  16532. fi
  16533. }
  16534. CheckMir()
  16535. {
  16536. # Check whether --enable-video-mir was given.
  16537. if test "${enable_video_mir+set}" = set; then :
  16538. enableval=$enable_video_mir;
  16539. else
  16540. enable_video_mir=yes
  16541. fi
  16542. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16543. # Extract the first word of "pkg-config", so it can be a program name with args.
  16544. set dummy pkg-config; ac_word=$2
  16545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16546. $as_echo_n "checking for $ac_word... " >&6; }
  16547. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16548. $as_echo_n "(cached) " >&6
  16549. else
  16550. case $PKG_CONFIG in
  16551. [\\/]* | ?:[\\/]*)
  16552. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16553. ;;
  16554. *)
  16555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16556. for as_dir in $PATH
  16557. do
  16558. IFS=$as_save_IFS
  16559. test -z "$as_dir" && as_dir=.
  16560. for ac_exec_ext in '' $ac_executable_extensions; do
  16561. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16562. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16564. break 2
  16565. fi
  16566. done
  16567. done
  16568. IFS=$as_save_IFS
  16569. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16570. ;;
  16571. esac
  16572. fi
  16573. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16574. if test -n "$PKG_CONFIG"; then
  16575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16576. $as_echo "$PKG_CONFIG" >&6; }
  16577. else
  16578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16579. $as_echo "no" >&6; }
  16580. fi
  16581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16582. $as_echo_n "checking for Mir support... " >&6; }
  16583. video_mir=no
  16584. if test x$PKG_CONFIG != xno; then
  16585. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16586. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16587. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16588. save_CFLAGS="$CFLAGS"
  16589. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16591. /* end confdefs.h. */
  16592. #include <mir_toolkit/mir_client_library.h>
  16593. int
  16594. main ()
  16595. {
  16596. MirWindowAttrib attrib = mir_window_attrib_state
  16597. ;
  16598. return 0;
  16599. }
  16600. _ACEOF
  16601. if ac_fn_c_try_compile "$LINENO"; then :
  16602. video_mir=yes
  16603. fi
  16604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16605. CFLAGS="$save_CFLAGS"
  16606. fi
  16607. fi
  16608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16609. $as_echo "$video_mir" >&6; }
  16610. if test x$video_mir = xyes; then
  16611. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16612. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16613. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16614. # Check whether --enable-mir-shared was given.
  16615. if test "${enable_mir_shared+set}" = set; then :
  16616. enableval=$enable_mir_shared;
  16617. else
  16618. enable_mir_shared=maybe
  16619. fi
  16620. case "$host" in
  16621. *)
  16622. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16623. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16624. ;;
  16625. esac
  16626. if test x$enable_mir_shared = xmaybe; then
  16627. enable_mir_shared=yes
  16628. fi
  16629. if test x$have_loadso != xyes && \
  16630. test x$enable_mir_shared = xyes; then
  16631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16632. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16633. enable_mir_shared=no
  16634. fi
  16635. if test x$have_loadso = xyes && \
  16636. test x$enable_mir_shared = xyes && \
  16637. test x$mirclient_lib != x && \
  16638. test x$xkbcommon_lib != x; then
  16639. echo "-- dynamic libmirclient -> $mirclient_lib"
  16640. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16641. cat >>confdefs.h <<_ACEOF
  16642. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16643. _ACEOF
  16644. cat >>confdefs.h <<_ACEOF
  16645. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16646. _ACEOF
  16647. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16648. else
  16649. enable_mir_shared=no
  16650. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16651. SUMMARY_video="${SUMMARY_video} mir"
  16652. fi
  16653. have_video=yes
  16654. fi
  16655. fi
  16656. }
  16657. CheckNativeClient()
  16658. {
  16659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16660. /* end confdefs.h. */
  16661. #if !defined(__native_client__)
  16662. #error "NO NACL"
  16663. #endif
  16664. int
  16665. main ()
  16666. {
  16667. ;
  16668. return 0;
  16669. }
  16670. _ACEOF
  16671. if ac_fn_c_try_compile "$LINENO"; then :
  16672. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16673. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16674. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16675. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16676. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16677. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16678. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16679. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16680. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16681. SUMMARY_audio="${SUMMARY_audio} nacl"
  16682. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16683. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16684. fi
  16685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16686. }
  16687. CheckRPI()
  16688. {
  16689. # Check whether --enable-video-rpi was given.
  16690. if test "${enable_video_rpi+set}" = set; then :
  16691. enableval=$enable_video_rpi;
  16692. else
  16693. enable_video_rpi=yes
  16694. fi
  16695. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16696. if test x$ARCH = xnetbsd; then
  16697. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16698. RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16699. else
  16700. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16701. RPI_LDFLAGS="-L/opt/vc/lib -lbcm_host"
  16702. fi
  16703. # Save the original compiler flags and libraries
  16704. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  16705. # Add the Raspberry Pi compiler flags and libraries
  16706. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
  16707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  16708. $as_echo_n "checking for Raspberry Pi... " >&6; }
  16709. have_video_rpi=no
  16710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16711. /* end confdefs.h. */
  16712. #include <bcm_host.h>
  16713. int
  16714. main ()
  16715. {
  16716. bcm_host_init();
  16717. ;
  16718. return 0;
  16719. }
  16720. _ACEOF
  16721. if ac_fn_c_try_link "$LINENO"; then :
  16722. have_video_rpi=yes
  16723. fi
  16724. rm -f core conftest.err conftest.$ac_objext \
  16725. conftest$ac_exeext conftest.$ac_ext
  16726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  16727. $as_echo "$have_video_rpi" >&6; }
  16728. # Restore the compiler flags and libraries
  16729. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  16730. if test x$have_video_rpi = xyes; then
  16731. CFLAGS="$CFLAGS $RPI_CFLAGS"
  16732. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  16733. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  16734. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
  16735. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  16736. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  16737. SUMMARY_video="${SUMMARY_video} rpi"
  16738. fi
  16739. fi
  16740. }
  16741. CheckX11()
  16742. {
  16743. # Check whether --enable-video-x11 was given.
  16744. if test "${enable_video_x11+set}" = set; then :
  16745. enableval=$enable_video_x11;
  16746. else
  16747. enable_video_x11=yes
  16748. fi
  16749. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16750. case "$host" in
  16751. *-*-darwin*)
  16752. # This isn't necessary for X11, but fixes GLX detection
  16753. if test "x$x_includes" = xNONE && \
  16754. test "x$x_libraries" = xNONE && \
  16755. test -d /usr/X11R6/include && \
  16756. test -d /usr/X11R6/lib; then
  16757. x_includes="/usr/X11R6/include"
  16758. x_libraries="/usr/X11R6/lib"
  16759. fi
  16760. ;;
  16761. esac
  16762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16763. $as_echo_n "checking for X... " >&6; }
  16764. # Check whether --with-x was given.
  16765. if test "${with_x+set}" = set; then :
  16766. withval=$with_x;
  16767. fi
  16768. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16769. if test "x$with_x" = xno; then
  16770. # The user explicitly disabled X.
  16771. have_x=disabled
  16772. else
  16773. case $x_includes,$x_libraries in #(
  16774. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16775. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16776. $as_echo_n "(cached) " >&6
  16777. else
  16778. # One or both of the vars are not set, and there is no cached value.
  16779. ac_x_includes=no ac_x_libraries=no
  16780. rm -f -r conftest.dir
  16781. if mkdir conftest.dir; then
  16782. cd conftest.dir
  16783. cat >Imakefile <<'_ACEOF'
  16784. incroot:
  16785. @echo incroot='${INCROOT}'
  16786. usrlibdir:
  16787. @echo usrlibdir='${USRLIBDIR}'
  16788. libdir:
  16789. @echo libdir='${LIBDIR}'
  16790. _ACEOF
  16791. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16792. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16793. for ac_var in incroot usrlibdir libdir; do
  16794. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16795. done
  16796. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16797. for ac_extension in a so sl dylib la dll; do
  16798. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16799. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16800. ac_im_usrlibdir=$ac_im_libdir; break
  16801. fi
  16802. done
  16803. # Screen out bogus values from the imake configuration. They are
  16804. # bogus both because they are the default anyway, and because
  16805. # using them would break gcc on systems where it needs fixed includes.
  16806. case $ac_im_incroot in
  16807. /usr/include) ac_x_includes= ;;
  16808. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16809. esac
  16810. case $ac_im_usrlibdir in
  16811. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16812. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16813. esac
  16814. fi
  16815. cd ..
  16816. rm -f -r conftest.dir
  16817. fi
  16818. # Standard set of common directories for X headers.
  16819. # Check X11 before X11Rn because it is often a symlink to the current release.
  16820. ac_x_header_dirs='
  16821. /usr/X11/include
  16822. /usr/X11R7/include
  16823. /usr/X11R6/include
  16824. /usr/X11R5/include
  16825. /usr/X11R4/include
  16826. /usr/include/X11
  16827. /usr/include/X11R7
  16828. /usr/include/X11R6
  16829. /usr/include/X11R5
  16830. /usr/include/X11R4
  16831. /usr/local/X11/include
  16832. /usr/local/X11R7/include
  16833. /usr/local/X11R6/include
  16834. /usr/local/X11R5/include
  16835. /usr/local/X11R4/include
  16836. /usr/local/include/X11
  16837. /usr/local/include/X11R7
  16838. /usr/local/include/X11R6
  16839. /usr/local/include/X11R5
  16840. /usr/local/include/X11R4
  16841. /usr/X386/include
  16842. /usr/x386/include
  16843. /usr/XFree86/include/X11
  16844. /usr/include
  16845. /usr/local/include
  16846. /usr/unsupported/include
  16847. /usr/athena/include
  16848. /usr/local/x11r5/include
  16849. /usr/lpp/Xamples/include
  16850. /usr/openwin/include
  16851. /usr/openwin/share/include'
  16852. if test "$ac_x_includes" = no; then
  16853. # Guess where to find include files, by looking for Xlib.h.
  16854. # First, try using that file with no special directory specified.
  16855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16856. /* end confdefs.h. */
  16857. #include <X11/Xlib.h>
  16858. _ACEOF
  16859. if ac_fn_c_try_cpp "$LINENO"; then :
  16860. # We can compile using X headers with no special include directory.
  16861. ac_x_includes=
  16862. else
  16863. for ac_dir in $ac_x_header_dirs; do
  16864. if test -r "$ac_dir/X11/Xlib.h"; then
  16865. ac_x_includes=$ac_dir
  16866. break
  16867. fi
  16868. done
  16869. fi
  16870. rm -f conftest.err conftest.i conftest.$ac_ext
  16871. fi # $ac_x_includes = no
  16872. if test "$ac_x_libraries" = no; then
  16873. # Check for the libraries.
  16874. # See if we find them without any special options.
  16875. # Don't add to $LIBS permanently.
  16876. ac_save_LIBS=$LIBS
  16877. LIBS="-lX11 $LIBS"
  16878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16879. /* end confdefs.h. */
  16880. #include <X11/Xlib.h>
  16881. int
  16882. main ()
  16883. {
  16884. XrmInitialize ()
  16885. ;
  16886. return 0;
  16887. }
  16888. _ACEOF
  16889. if ac_fn_c_try_link "$LINENO"; then :
  16890. LIBS=$ac_save_LIBS
  16891. # We can link X programs with no special library path.
  16892. ac_x_libraries=
  16893. else
  16894. LIBS=$ac_save_LIBS
  16895. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16896. do
  16897. # Don't even attempt the hair of trying to link an X program!
  16898. for ac_extension in a so sl dylib la dll; do
  16899. if test -r "$ac_dir/libX11.$ac_extension"; then
  16900. ac_x_libraries=$ac_dir
  16901. break 2
  16902. fi
  16903. done
  16904. done
  16905. fi
  16906. rm -f core conftest.err conftest.$ac_objext \
  16907. conftest$ac_exeext conftest.$ac_ext
  16908. fi # $ac_x_libraries = no
  16909. case $ac_x_includes,$ac_x_libraries in #(
  16910. no,* | *,no | *\'*)
  16911. # Didn't find X, or a directory has "'" in its name.
  16912. ac_cv_have_x="have_x=no";; #(
  16913. *)
  16914. # Record where we found X for the cache.
  16915. ac_cv_have_x="have_x=yes\
  16916. ac_x_includes='$ac_x_includes'\
  16917. ac_x_libraries='$ac_x_libraries'"
  16918. esac
  16919. fi
  16920. ;; #(
  16921. *) have_x=yes;;
  16922. esac
  16923. eval "$ac_cv_have_x"
  16924. fi # $with_x != no
  16925. if test "$have_x" != yes; then
  16926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16927. $as_echo "$have_x" >&6; }
  16928. no_x=yes
  16929. else
  16930. # If each of the values was on the command line, it overrides each guess.
  16931. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16932. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16933. # Update the cache value to reflect the command line values.
  16934. ac_cv_have_x="have_x=yes\
  16935. ac_x_includes='$x_includes'\
  16936. ac_x_libraries='$x_libraries'"
  16937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16938. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16939. fi
  16940. if test "$no_x" = yes; then
  16941. # Not all programs may use this symbol, but it does not hurt to define it.
  16942. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16943. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16944. else
  16945. if test -n "$x_includes"; then
  16946. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16947. fi
  16948. # It would also be nice to do this for all -L options, not just this one.
  16949. if test -n "$x_libraries"; then
  16950. X_LIBS="$X_LIBS -L$x_libraries"
  16951. # For Solaris; some versions of Sun CC require a space after -R and
  16952. # others require no space. Words are not sufficient . . . .
  16953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16954. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16955. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16956. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16957. ac_c_werror_flag=yes
  16958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16959. /* end confdefs.h. */
  16960. int
  16961. main ()
  16962. {
  16963. ;
  16964. return 0;
  16965. }
  16966. _ACEOF
  16967. if ac_fn_c_try_link "$LINENO"; then :
  16968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16969. $as_echo "no" >&6; }
  16970. X_LIBS="$X_LIBS -R$x_libraries"
  16971. else
  16972. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16974. /* end confdefs.h. */
  16975. int
  16976. main ()
  16977. {
  16978. ;
  16979. return 0;
  16980. }
  16981. _ACEOF
  16982. if ac_fn_c_try_link "$LINENO"; then :
  16983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16984. $as_echo "yes" >&6; }
  16985. X_LIBS="$X_LIBS -R $x_libraries"
  16986. else
  16987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16988. $as_echo "neither works" >&6; }
  16989. fi
  16990. rm -f core conftest.err conftest.$ac_objext \
  16991. conftest$ac_exeext conftest.$ac_ext
  16992. fi
  16993. rm -f core conftest.err conftest.$ac_objext \
  16994. conftest$ac_exeext conftest.$ac_ext
  16995. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16996. LIBS=$ac_xsave_LIBS
  16997. fi
  16998. # Check for system-dependent libraries X programs must link with.
  16999. # Do this before checking for the system-independent R6 libraries
  17000. # (-lICE), since we may need -lsocket or whatever for X linking.
  17001. if test "$ISC" = yes; then
  17002. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17003. else
  17004. # Martyn Johnson says this is needed for Ultrix, if the X
  17005. # libraries were built with DECnet support. And Karl Berry says
  17006. # the Alpha needs dnet_stub (dnet does not exist).
  17007. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17009. /* end confdefs.h. */
  17010. /* Override any GCC internal prototype to avoid an error.
  17011. Use char because int might match the return type of a GCC
  17012. builtin and then its argument prototype would still apply. */
  17013. #ifdef __cplusplus
  17014. extern "C"
  17015. #endif
  17016. char XOpenDisplay ();
  17017. int
  17018. main ()
  17019. {
  17020. return XOpenDisplay ();
  17021. ;
  17022. return 0;
  17023. }
  17024. _ACEOF
  17025. if ac_fn_c_try_link "$LINENO"; then :
  17026. else
  17027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17028. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17029. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17030. $as_echo_n "(cached) " >&6
  17031. else
  17032. ac_check_lib_save_LIBS=$LIBS
  17033. LIBS="-ldnet $LIBS"
  17034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17035. /* end confdefs.h. */
  17036. /* Override any GCC internal prototype to avoid an error.
  17037. Use char because int might match the return type of a GCC
  17038. builtin and then its argument prototype would still apply. */
  17039. #ifdef __cplusplus
  17040. extern "C"
  17041. #endif
  17042. char dnet_ntoa ();
  17043. int
  17044. main ()
  17045. {
  17046. return dnet_ntoa ();
  17047. ;
  17048. return 0;
  17049. }
  17050. _ACEOF
  17051. if ac_fn_c_try_link "$LINENO"; then :
  17052. ac_cv_lib_dnet_dnet_ntoa=yes
  17053. else
  17054. ac_cv_lib_dnet_dnet_ntoa=no
  17055. fi
  17056. rm -f core conftest.err conftest.$ac_objext \
  17057. conftest$ac_exeext conftest.$ac_ext
  17058. LIBS=$ac_check_lib_save_LIBS
  17059. fi
  17060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17061. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17062. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17063. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17064. fi
  17065. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17067. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17068. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17069. $as_echo_n "(cached) " >&6
  17070. else
  17071. ac_check_lib_save_LIBS=$LIBS
  17072. LIBS="-ldnet_stub $LIBS"
  17073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17074. /* end confdefs.h. */
  17075. /* Override any GCC internal prototype to avoid an error.
  17076. Use char because int might match the return type of a GCC
  17077. builtin and then its argument prototype would still apply. */
  17078. #ifdef __cplusplus
  17079. extern "C"
  17080. #endif
  17081. char dnet_ntoa ();
  17082. int
  17083. main ()
  17084. {
  17085. return dnet_ntoa ();
  17086. ;
  17087. return 0;
  17088. }
  17089. _ACEOF
  17090. if ac_fn_c_try_link "$LINENO"; then :
  17091. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17092. else
  17093. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17094. fi
  17095. rm -f core conftest.err conftest.$ac_objext \
  17096. conftest$ac_exeext conftest.$ac_ext
  17097. LIBS=$ac_check_lib_save_LIBS
  17098. fi
  17099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17100. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17101. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17102. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17103. fi
  17104. fi
  17105. fi
  17106. rm -f core conftest.err conftest.$ac_objext \
  17107. conftest$ac_exeext conftest.$ac_ext
  17108. LIBS="$ac_xsave_LIBS"
  17109. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17110. # to get the SysV transport functions.
  17111. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17112. # needs -lnsl.
  17113. # The nsl library prevents programs from opening the X display
  17114. # on Irix 5.2, according to T.E. Dickey.
  17115. # The functions gethostbyname, getservbyname, and inet_addr are
  17116. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17117. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17118. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17119. fi
  17120. if test $ac_cv_func_gethostbyname = no; then
  17121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17122. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17123. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17124. $as_echo_n "(cached) " >&6
  17125. else
  17126. ac_check_lib_save_LIBS=$LIBS
  17127. LIBS="-lnsl $LIBS"
  17128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17129. /* end confdefs.h. */
  17130. /* Override any GCC internal prototype to avoid an error.
  17131. Use char because int might match the return type of a GCC
  17132. builtin and then its argument prototype would still apply. */
  17133. #ifdef __cplusplus
  17134. extern "C"
  17135. #endif
  17136. char gethostbyname ();
  17137. int
  17138. main ()
  17139. {
  17140. return gethostbyname ();
  17141. ;
  17142. return 0;
  17143. }
  17144. _ACEOF
  17145. if ac_fn_c_try_link "$LINENO"; then :
  17146. ac_cv_lib_nsl_gethostbyname=yes
  17147. else
  17148. ac_cv_lib_nsl_gethostbyname=no
  17149. fi
  17150. rm -f core conftest.err conftest.$ac_objext \
  17151. conftest$ac_exeext conftest.$ac_ext
  17152. LIBS=$ac_check_lib_save_LIBS
  17153. fi
  17154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17155. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17156. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17157. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17158. fi
  17159. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17161. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17162. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17163. $as_echo_n "(cached) " >&6
  17164. else
  17165. ac_check_lib_save_LIBS=$LIBS
  17166. LIBS="-lbsd $LIBS"
  17167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17168. /* end confdefs.h. */
  17169. /* Override any GCC internal prototype to avoid an error.
  17170. Use char because int might match the return type of a GCC
  17171. builtin and then its argument prototype would still apply. */
  17172. #ifdef __cplusplus
  17173. extern "C"
  17174. #endif
  17175. char gethostbyname ();
  17176. int
  17177. main ()
  17178. {
  17179. return gethostbyname ();
  17180. ;
  17181. return 0;
  17182. }
  17183. _ACEOF
  17184. if ac_fn_c_try_link "$LINENO"; then :
  17185. ac_cv_lib_bsd_gethostbyname=yes
  17186. else
  17187. ac_cv_lib_bsd_gethostbyname=no
  17188. fi
  17189. rm -f core conftest.err conftest.$ac_objext \
  17190. conftest$ac_exeext conftest.$ac_ext
  17191. LIBS=$ac_check_lib_save_LIBS
  17192. fi
  17193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17194. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17195. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17196. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17197. fi
  17198. fi
  17199. fi
  17200. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17201. # socket/setsockopt and other routines are undefined under SCO ODT
  17202. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17203. # on later versions), says Simon Leinen: it contains gethostby*
  17204. # variants that don't use the name server (or something). -lsocket
  17205. # must be given before -lnsl if both are needed. We assume that
  17206. # if connect needs -lnsl, so does gethostbyname.
  17207. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17208. if test "x$ac_cv_func_connect" = xyes; then :
  17209. fi
  17210. if test $ac_cv_func_connect = no; then
  17211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17212. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17213. if ${ac_cv_lib_socket_connect+:} false; then :
  17214. $as_echo_n "(cached) " >&6
  17215. else
  17216. ac_check_lib_save_LIBS=$LIBS
  17217. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17219. /* end confdefs.h. */
  17220. /* Override any GCC internal prototype to avoid an error.
  17221. Use char because int might match the return type of a GCC
  17222. builtin and then its argument prototype would still apply. */
  17223. #ifdef __cplusplus
  17224. extern "C"
  17225. #endif
  17226. char connect ();
  17227. int
  17228. main ()
  17229. {
  17230. return connect ();
  17231. ;
  17232. return 0;
  17233. }
  17234. _ACEOF
  17235. if ac_fn_c_try_link "$LINENO"; then :
  17236. ac_cv_lib_socket_connect=yes
  17237. else
  17238. ac_cv_lib_socket_connect=no
  17239. fi
  17240. rm -f core conftest.err conftest.$ac_objext \
  17241. conftest$ac_exeext conftest.$ac_ext
  17242. LIBS=$ac_check_lib_save_LIBS
  17243. fi
  17244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17245. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17246. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17247. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17248. fi
  17249. fi
  17250. # Guillermo Gomez says -lposix is necessary on A/UX.
  17251. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17252. if test "x$ac_cv_func_remove" = xyes; then :
  17253. fi
  17254. if test $ac_cv_func_remove = no; then
  17255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17256. $as_echo_n "checking for remove in -lposix... " >&6; }
  17257. if ${ac_cv_lib_posix_remove+:} false; then :
  17258. $as_echo_n "(cached) " >&6
  17259. else
  17260. ac_check_lib_save_LIBS=$LIBS
  17261. LIBS="-lposix $LIBS"
  17262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17263. /* end confdefs.h. */
  17264. /* Override any GCC internal prototype to avoid an error.
  17265. Use char because int might match the return type of a GCC
  17266. builtin and then its argument prototype would still apply. */
  17267. #ifdef __cplusplus
  17268. extern "C"
  17269. #endif
  17270. char remove ();
  17271. int
  17272. main ()
  17273. {
  17274. return remove ();
  17275. ;
  17276. return 0;
  17277. }
  17278. _ACEOF
  17279. if ac_fn_c_try_link "$LINENO"; then :
  17280. ac_cv_lib_posix_remove=yes
  17281. else
  17282. ac_cv_lib_posix_remove=no
  17283. fi
  17284. rm -f core conftest.err conftest.$ac_objext \
  17285. conftest$ac_exeext conftest.$ac_ext
  17286. LIBS=$ac_check_lib_save_LIBS
  17287. fi
  17288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17289. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17290. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17291. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17292. fi
  17293. fi
  17294. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17295. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17296. if test "x$ac_cv_func_shmat" = xyes; then :
  17297. fi
  17298. if test $ac_cv_func_shmat = no; then
  17299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17300. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17301. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17302. $as_echo_n "(cached) " >&6
  17303. else
  17304. ac_check_lib_save_LIBS=$LIBS
  17305. LIBS="-lipc $LIBS"
  17306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17307. /* end confdefs.h. */
  17308. /* Override any GCC internal prototype to avoid an error.
  17309. Use char because int might match the return type of a GCC
  17310. builtin and then its argument prototype would still apply. */
  17311. #ifdef __cplusplus
  17312. extern "C"
  17313. #endif
  17314. char shmat ();
  17315. int
  17316. main ()
  17317. {
  17318. return shmat ();
  17319. ;
  17320. return 0;
  17321. }
  17322. _ACEOF
  17323. if ac_fn_c_try_link "$LINENO"; then :
  17324. ac_cv_lib_ipc_shmat=yes
  17325. else
  17326. ac_cv_lib_ipc_shmat=no
  17327. fi
  17328. rm -f core conftest.err conftest.$ac_objext \
  17329. conftest$ac_exeext conftest.$ac_ext
  17330. LIBS=$ac_check_lib_save_LIBS
  17331. fi
  17332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17333. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17334. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17335. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17336. fi
  17337. fi
  17338. fi
  17339. # Check for libraries that X11R6 Xt/Xaw programs need.
  17340. ac_save_LDFLAGS=$LDFLAGS
  17341. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17342. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17343. # check for ICE first), but we must link in the order -lSM -lICE or
  17344. # we get undefined symbols. So assume we have SM if we have ICE.
  17345. # These have to be linked with before -lX11, unlike the other
  17346. # libraries we check for below, so use a different variable.
  17347. # John Interrante, Karl Berry
  17348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17349. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17350. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17351. $as_echo_n "(cached) " >&6
  17352. else
  17353. ac_check_lib_save_LIBS=$LIBS
  17354. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17356. /* end confdefs.h. */
  17357. /* Override any GCC internal prototype to avoid an error.
  17358. Use char because int might match the return type of a GCC
  17359. builtin and then its argument prototype would still apply. */
  17360. #ifdef __cplusplus
  17361. extern "C"
  17362. #endif
  17363. char IceConnectionNumber ();
  17364. int
  17365. main ()
  17366. {
  17367. return IceConnectionNumber ();
  17368. ;
  17369. return 0;
  17370. }
  17371. _ACEOF
  17372. if ac_fn_c_try_link "$LINENO"; then :
  17373. ac_cv_lib_ICE_IceConnectionNumber=yes
  17374. else
  17375. ac_cv_lib_ICE_IceConnectionNumber=no
  17376. fi
  17377. rm -f core conftest.err conftest.$ac_objext \
  17378. conftest$ac_exeext conftest.$ac_ext
  17379. LIBS=$ac_check_lib_save_LIBS
  17380. fi
  17381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17382. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17383. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17384. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17385. fi
  17386. LDFLAGS=$ac_save_LDFLAGS
  17387. fi
  17388. if test x$have_x = xyes; then
  17389. # Check whether --enable-x11-shared was given.
  17390. if test "${enable_x11_shared+set}" = set; then :
  17391. enableval=$enable_x11_shared;
  17392. else
  17393. enable_x11_shared=maybe
  17394. fi
  17395. case "$host" in
  17396. *-*-darwin*)
  17397. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17398. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17399. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17400. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17401. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17402. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17403. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17404. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17405. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17406. ;;
  17407. *-*-openbsd*)
  17408. x11_lib='libX11.so'
  17409. x11ext_lib='libXext.so'
  17410. xcursor_lib='libXcursor.so'
  17411. xinerama_lib='libXinerama.so'
  17412. xinput_lib='libXi.so'
  17413. xrandr_lib='libXrandr.so'
  17414. xrender_lib='libXrender.so'
  17415. xss_lib='libXss.so'
  17416. xvidmode_lib='libXxf86vm.so'
  17417. ;;
  17418. *)
  17419. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17420. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17421. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17422. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17423. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17424. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17425. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17426. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17427. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17428. ;;
  17429. esac
  17430. if test x$ac_cv_func_shmat != xyes; then
  17431. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17432. fi
  17433. CFLAGS="$CFLAGS $X_CFLAGS"
  17434. LDFLAGS="$LDFLAGS $X_LIBS"
  17435. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17436. #include <X11/Xproto.h>
  17437. "
  17438. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17439. have_xext_h_hdr=yes
  17440. else
  17441. have_xext_h_hdr=no
  17442. fi
  17443. if test x$have_xext_h_hdr != xyes; then
  17444. as_fn_error $? "
  17445. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17446. " "$LINENO" 5
  17447. fi
  17448. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17449. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17450. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17451. # Needed so SDL applications can include SDL_syswm.h
  17452. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17453. if test x$enable_x11_shared = xmaybe; then
  17454. enable_x11_shared=yes
  17455. fi
  17456. if test x$have_loadso != xyes && \
  17457. test x$enable_x11_shared = xyes; then
  17458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17459. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17460. enable_x11_shared=no
  17461. fi
  17462. if test x$have_loadso = xyes && \
  17463. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17464. echo "-- dynamic libX11 -> $x11_lib"
  17465. echo "-- dynamic libX11ext -> $x11ext_lib"
  17466. cat >>confdefs.h <<_ACEOF
  17467. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17468. _ACEOF
  17469. cat >>confdefs.h <<_ACEOF
  17470. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17471. _ACEOF
  17472. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17473. else
  17474. enable_x11_shared=no
  17475. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17476. SUMMARY_video="${SUMMARY_video} x11"
  17477. fi
  17478. have_video=yes
  17479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17480. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17481. have_const_param_XextAddDisplay=no
  17482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17483. /* end confdefs.h. */
  17484. #include <X11/Xlib.h>
  17485. #include <X11/Xproto.h>
  17486. #include <X11/extensions/Xext.h>
  17487. #include <X11/extensions/extutil.h>
  17488. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17489. int
  17490. main ()
  17491. {
  17492. ;
  17493. return 0;
  17494. }
  17495. _ACEOF
  17496. if ac_fn_c_try_compile "$LINENO"; then :
  17497. have_const_param_XextAddDisplay=yes
  17498. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17499. fi
  17500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17502. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17504. $as_echo_n "checking for XGenericEvent... " >&6; }
  17505. have_XGenericEvent=no
  17506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17507. /* end confdefs.h. */
  17508. #include <X11/Xlib.h>
  17509. int
  17510. main ()
  17511. {
  17512. Display *display;
  17513. XEvent event;
  17514. XGenericEventCookie *cookie = &event.xcookie;
  17515. XNextEvent(display, &event);
  17516. XGetEventData(display, cookie);
  17517. XFreeEventData(display, cookie);
  17518. ;
  17519. return 0;
  17520. }
  17521. _ACEOF
  17522. if ac_fn_c_try_compile "$LINENO"; then :
  17523. have_XGenericEvent=yes
  17524. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17525. fi
  17526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17528. $as_echo "$have_XGenericEvent" >&6; }
  17529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17530. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17531. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17532. $as_echo_n "(cached) " >&6
  17533. else
  17534. ac_check_lib_save_LIBS=$LIBS
  17535. LIBS="-lX11 $LIBS"
  17536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17537. /* end confdefs.h. */
  17538. /* Override any GCC internal prototype to avoid an error.
  17539. Use char because int might match the return type of a GCC
  17540. builtin and then its argument prototype would still apply. */
  17541. #ifdef __cplusplus
  17542. extern "C"
  17543. #endif
  17544. char XkbKeycodeToKeysym ();
  17545. int
  17546. main ()
  17547. {
  17548. return XkbKeycodeToKeysym ();
  17549. ;
  17550. return 0;
  17551. }
  17552. _ACEOF
  17553. if ac_fn_c_try_link "$LINENO"; then :
  17554. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17555. else
  17556. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17557. fi
  17558. rm -f core conftest.err conftest.$ac_objext \
  17559. conftest$ac_exeext conftest.$ac_ext
  17560. LIBS=$ac_check_lib_save_LIBS
  17561. fi
  17562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17563. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17564. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17565. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17566. fi
  17567. # Check whether --enable-video-x11-xcursor was given.
  17568. if test "${enable_video_x11_xcursor+set}" = set; then :
  17569. enableval=$enable_video_x11_xcursor;
  17570. else
  17571. enable_video_x11_xcursor=yes
  17572. fi
  17573. if test x$enable_video_x11_xcursor = xyes; then
  17574. definitely_enable_video_x11_xcursor=no
  17575. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17576. "
  17577. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17578. have_xcursor_h_hdr=yes
  17579. else
  17580. have_xcursor_h_hdr=no
  17581. fi
  17582. if test x$have_xcursor_h_hdr = xyes; then
  17583. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17584. echo "-- dynamic libXcursor -> $xcursor_lib"
  17585. cat >>confdefs.h <<_ACEOF
  17586. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17587. _ACEOF
  17588. definitely_enable_video_x11_xcursor=yes
  17589. else
  17590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17591. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17592. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17593. $as_echo_n "(cached) " >&6
  17594. else
  17595. ac_check_lib_save_LIBS=$LIBS
  17596. LIBS="-lXcursor $LIBS"
  17597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17598. /* end confdefs.h. */
  17599. /* Override any GCC internal prototype to avoid an error.
  17600. Use char because int might match the return type of a GCC
  17601. builtin and then its argument prototype would still apply. */
  17602. #ifdef __cplusplus
  17603. extern "C"
  17604. #endif
  17605. char XcursorImageCreate ();
  17606. int
  17607. main ()
  17608. {
  17609. return XcursorImageCreate ();
  17610. ;
  17611. return 0;
  17612. }
  17613. _ACEOF
  17614. if ac_fn_c_try_link "$LINENO"; then :
  17615. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17616. else
  17617. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17618. fi
  17619. rm -f core conftest.err conftest.$ac_objext \
  17620. conftest$ac_exeext conftest.$ac_ext
  17621. LIBS=$ac_check_lib_save_LIBS
  17622. fi
  17623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17624. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17625. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17626. have_xcursor_lib=yes
  17627. fi
  17628. if test x$have_xcursor_lib = xyes ; then
  17629. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17630. definitely_enable_video_x11_xcursor=yes
  17631. fi
  17632. fi
  17633. fi
  17634. fi
  17635. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17636. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17637. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17638. fi
  17639. # Check whether --enable-video-x11-xdbe was given.
  17640. if test "${enable_video_x11_xdbe+set}" = set; then :
  17641. enableval=$enable_video_x11_xdbe;
  17642. else
  17643. enable_video_x11_xdbe=yes
  17644. fi
  17645. if test x$enable_video_x11_xdbe = xyes; then
  17646. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17647. "
  17648. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17649. have_dbe_h_hdr=yes
  17650. else
  17651. have_dbe_h_hdr=no
  17652. fi
  17653. if test x$have_dbe_h_hdr = xyes; then
  17654. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17655. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17656. fi
  17657. fi
  17658. # Check whether --enable-video-x11-xinerama was given.
  17659. if test "${enable_video_x11_xinerama+set}" = set; then :
  17660. enableval=$enable_video_x11_xinerama;
  17661. else
  17662. enable_video_x11_xinerama=yes
  17663. fi
  17664. if test x$enable_video_x11_xinerama = xyes; then
  17665. definitely_enable_video_x11_xinerama=no
  17666. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17667. "
  17668. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17669. have_xinerama_h_hdr=yes
  17670. else
  17671. have_xinerama_h_hdr=no
  17672. fi
  17673. if test x$have_xinerama_h_hdr = xyes; then
  17674. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17675. echo "-- dynamic libXinerama -> $xinerama_lib"
  17676. cat >>confdefs.h <<_ACEOF
  17677. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17678. _ACEOF
  17679. definitely_enable_video_x11_xinerama=yes
  17680. else
  17681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17682. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17683. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17684. $as_echo_n "(cached) " >&6
  17685. else
  17686. ac_check_lib_save_LIBS=$LIBS
  17687. LIBS="-lXinerama $LIBS"
  17688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17689. /* end confdefs.h. */
  17690. /* Override any GCC internal prototype to avoid an error.
  17691. Use char because int might match the return type of a GCC
  17692. builtin and then its argument prototype would still apply. */
  17693. #ifdef __cplusplus
  17694. extern "C"
  17695. #endif
  17696. char XineramaQueryExtension ();
  17697. int
  17698. main ()
  17699. {
  17700. return XineramaQueryExtension ();
  17701. ;
  17702. return 0;
  17703. }
  17704. _ACEOF
  17705. if ac_fn_c_try_link "$LINENO"; then :
  17706. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17707. else
  17708. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17709. fi
  17710. rm -f core conftest.err conftest.$ac_objext \
  17711. conftest$ac_exeext conftest.$ac_ext
  17712. LIBS=$ac_check_lib_save_LIBS
  17713. fi
  17714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17715. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17716. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17717. have_xinerama_lib=yes
  17718. fi
  17719. if test x$have_xinerama_lib = xyes ; then
  17720. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17721. definitely_enable_video_x11_xinerama=yes
  17722. fi
  17723. fi
  17724. fi
  17725. fi
  17726. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17727. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17728. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17729. fi
  17730. # Check whether --enable-video-x11-xinput was given.
  17731. if test "${enable_video_x11_xinput+set}" = set; then :
  17732. enableval=$enable_video_x11_xinput;
  17733. else
  17734. enable_video_x11_xinput=yes
  17735. fi
  17736. if test x$enable_video_x11_xinput = xyes; then
  17737. definitely_enable_video_x11_xinput=no
  17738. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17739. "
  17740. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17741. have_xinput_h_hdr=yes
  17742. else
  17743. have_xinput_h_hdr=no
  17744. fi
  17745. if test x$have_xinput_h_hdr = xyes; then
  17746. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17747. echo "-- dynamic libXi -> $xinput_lib"
  17748. cat >>confdefs.h <<_ACEOF
  17749. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17750. _ACEOF
  17751. definitely_enable_video_x11_xinput=yes
  17752. else
  17753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17754. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17755. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17756. $as_echo_n "(cached) " >&6
  17757. else
  17758. ac_check_lib_save_LIBS=$LIBS
  17759. LIBS="-lXi $LIBS"
  17760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17761. /* end confdefs.h. */
  17762. /* Override any GCC internal prototype to avoid an error.
  17763. Use char because int might match the return type of a GCC
  17764. builtin and then its argument prototype would still apply. */
  17765. #ifdef __cplusplus
  17766. extern "C"
  17767. #endif
  17768. char XOpenDevice ();
  17769. int
  17770. main ()
  17771. {
  17772. return XOpenDevice ();
  17773. ;
  17774. return 0;
  17775. }
  17776. _ACEOF
  17777. if ac_fn_c_try_link "$LINENO"; then :
  17778. ac_cv_lib_Xi_XOpenDevice=yes
  17779. else
  17780. ac_cv_lib_Xi_XOpenDevice=no
  17781. fi
  17782. rm -f core conftest.err conftest.$ac_objext \
  17783. conftest$ac_exeext conftest.$ac_ext
  17784. LIBS=$ac_check_lib_save_LIBS
  17785. fi
  17786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17787. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17788. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17789. have_xinput_lib=yes
  17790. fi
  17791. if test x$have_xinput_lib = xyes ; then
  17792. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17793. definitely_enable_video_x11_xinput=yes
  17794. fi
  17795. fi
  17796. fi
  17797. fi
  17798. if test x$definitely_enable_video_x11_xinput = xyes; then
  17799. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17800. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17802. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17803. have_xinput2_multitouch=no
  17804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17805. /* end confdefs.h. */
  17806. #include <X11/Xlib.h>
  17807. #include <X11/Xproto.h>
  17808. #include <X11/extensions/XInput2.h>
  17809. int
  17810. main ()
  17811. {
  17812. int event_type = XI_TouchBegin;
  17813. XITouchClassInfo *t;
  17814. ;
  17815. return 0;
  17816. }
  17817. _ACEOF
  17818. if ac_fn_c_try_compile "$LINENO"; then :
  17819. have_xinput2_multitouch=yes
  17820. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17821. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17822. fi
  17823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17825. $as_echo "$have_xinput2_multitouch" >&6; }
  17826. fi
  17827. # Check whether --enable-video-x11-xrandr was given.
  17828. if test "${enable_video_x11_xrandr+set}" = set; then :
  17829. enableval=$enable_video_x11_xrandr;
  17830. else
  17831. enable_video_x11_xrandr=yes
  17832. fi
  17833. if test x$enable_video_x11_xrandr = xyes; then
  17834. definitely_enable_video_x11_xrandr=no
  17835. have_xrandr_h_hdr=no
  17836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17837. /* end confdefs.h. */
  17838. #include <X11/Xlib.h>
  17839. #include <X11/extensions/Xrandr.h>
  17840. int
  17841. main ()
  17842. {
  17843. XRRScreenResources *res = NULL;
  17844. ;
  17845. return 0;
  17846. }
  17847. _ACEOF
  17848. if ac_fn_c_try_compile "$LINENO"; then :
  17849. have_xrandr_h_hdr=yes
  17850. fi
  17851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17852. if test x$have_xrandr_h_hdr = xyes; then
  17853. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17854. echo "-- dynamic libXrandr -> $xrandr_lib"
  17855. cat >>confdefs.h <<_ACEOF
  17856. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17857. _ACEOF
  17858. definitely_enable_video_x11_xrandr=yes
  17859. else
  17860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17861. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17862. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17863. $as_echo_n "(cached) " >&6
  17864. else
  17865. ac_check_lib_save_LIBS=$LIBS
  17866. LIBS="-lXrandr $LIBS"
  17867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17868. /* end confdefs.h. */
  17869. /* Override any GCC internal prototype to avoid an error.
  17870. Use char because int might match the return type of a GCC
  17871. builtin and then its argument prototype would still apply. */
  17872. #ifdef __cplusplus
  17873. extern "C"
  17874. #endif
  17875. char XRRQueryExtension ();
  17876. int
  17877. main ()
  17878. {
  17879. return XRRQueryExtension ();
  17880. ;
  17881. return 0;
  17882. }
  17883. _ACEOF
  17884. if ac_fn_c_try_link "$LINENO"; then :
  17885. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17886. else
  17887. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17888. fi
  17889. rm -f core conftest.err conftest.$ac_objext \
  17890. conftest$ac_exeext conftest.$ac_ext
  17891. LIBS=$ac_check_lib_save_LIBS
  17892. fi
  17893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17894. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17895. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17896. have_xrandr_lib=yes
  17897. fi
  17898. if test x$have_xrandr_lib = xyes ; then
  17899. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17900. definitely_enable_video_x11_xrandr=yes
  17901. fi
  17902. fi
  17903. fi
  17904. fi
  17905. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17906. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17907. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17908. fi
  17909. # Check whether --enable-video-x11-scrnsaver was given.
  17910. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17911. enableval=$enable_video_x11_scrnsaver;
  17912. else
  17913. enable_video_x11_scrnsaver=yes
  17914. fi
  17915. if test x$enable_video_x11_scrnsaver = xyes; then
  17916. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17917. "
  17918. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17919. have_scrnsaver_h_hdr=yes
  17920. else
  17921. have_scrnsaver_h_hdr=no
  17922. fi
  17923. if test x$have_scrnsaver_h_hdr = xyes; then
  17924. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17925. echo "-- dynamic libXss -> $xss_lib"
  17926. cat >>confdefs.h <<_ACEOF
  17927. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17928. _ACEOF
  17929. definitely_enable_video_x11_scrnsaver=yes
  17930. else
  17931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17932. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17933. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17934. $as_echo_n "(cached) " >&6
  17935. else
  17936. ac_check_lib_save_LIBS=$LIBS
  17937. LIBS="-lXss $LIBS"
  17938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17939. /* end confdefs.h. */
  17940. /* Override any GCC internal prototype to avoid an error.
  17941. Use char because int might match the return type of a GCC
  17942. builtin and then its argument prototype would still apply. */
  17943. #ifdef __cplusplus
  17944. extern "C"
  17945. #endif
  17946. char XScreenSaverSuspend ();
  17947. int
  17948. main ()
  17949. {
  17950. return XScreenSaverSuspend ();
  17951. ;
  17952. return 0;
  17953. }
  17954. _ACEOF
  17955. if ac_fn_c_try_link "$LINENO"; then :
  17956. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17957. else
  17958. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17959. fi
  17960. rm -f core conftest.err conftest.$ac_objext \
  17961. conftest$ac_exeext conftest.$ac_ext
  17962. LIBS=$ac_check_lib_save_LIBS
  17963. fi
  17964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17965. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17966. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17967. have_xss_lib=yes
  17968. fi
  17969. if test x$have_xss_lib = xyes ; then
  17970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17971. definitely_enable_video_x11_scrnsaver=yes
  17972. fi
  17973. fi
  17974. fi
  17975. fi
  17976. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17977. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17978. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17979. fi
  17980. # Check whether --enable-video-x11-xshape was given.
  17981. if test "${enable_video_x11_xshape+set}" = set; then :
  17982. enableval=$enable_video_x11_xshape;
  17983. else
  17984. enable_video_x11_xshape=yes
  17985. fi
  17986. if test x$enable_video_x11_xshape = xyes; then
  17987. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17988. "
  17989. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17990. have_shape_h_hdr=yes
  17991. else
  17992. have_shape_h_hdr=no
  17993. fi
  17994. if test x$have_shape_h_hdr = xyes; then
  17995. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17996. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17997. fi
  17998. fi
  17999. # Check whether --enable-video-x11-vm was given.
  18000. if test "${enable_video_x11_vm+set}" = set; then :
  18001. enableval=$enable_video_x11_vm;
  18002. else
  18003. enable_video_x11_vm=yes
  18004. fi
  18005. if test x$enable_video_x11_vm = xyes; then
  18006. definitely_enable_video_x11_vm=no
  18007. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18008. "
  18009. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18010. have_vm_h_hdr=yes
  18011. else
  18012. have_vm_h_hdr=no
  18013. fi
  18014. if test x$have_vm_h_hdr = xyes; then
  18015. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18016. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18017. cat >>confdefs.h <<_ACEOF
  18018. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18019. _ACEOF
  18020. definitely_enable_video_x11_vm=yes
  18021. else
  18022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18023. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18024. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18025. $as_echo_n "(cached) " >&6
  18026. else
  18027. ac_check_lib_save_LIBS=$LIBS
  18028. LIBS="-lXxf86vm $LIBS"
  18029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18030. /* end confdefs.h. */
  18031. /* Override any GCC internal prototype to avoid an error.
  18032. Use char because int might match the return type of a GCC
  18033. builtin and then its argument prototype would still apply. */
  18034. #ifdef __cplusplus
  18035. extern "C"
  18036. #endif
  18037. char XF86VidModeQueryVersion ();
  18038. int
  18039. main ()
  18040. {
  18041. return XF86VidModeQueryVersion ();
  18042. ;
  18043. return 0;
  18044. }
  18045. _ACEOF
  18046. if ac_fn_c_try_link "$LINENO"; then :
  18047. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18048. else
  18049. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18050. fi
  18051. rm -f core conftest.err conftest.$ac_objext \
  18052. conftest$ac_exeext conftest.$ac_ext
  18053. LIBS=$ac_check_lib_save_LIBS
  18054. fi
  18055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18056. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18057. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18058. have_vm_lib=yes
  18059. fi
  18060. if test x$have_vm_lib = xyes ; then
  18061. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18062. definitely_enable_video_x11_vm=yes
  18063. fi
  18064. fi
  18065. fi
  18066. fi
  18067. if test x$definitely_enable_video_x11_vm = xyes; then
  18068. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18069. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18070. fi
  18071. fi
  18072. fi
  18073. }
  18074. CheckVivanteVideo()
  18075. {
  18076. # Check whether --enable-video-vivante was given.
  18077. if test "${enable_video_vivante+set}" = set; then :
  18078. enableval=$enable_video_vivante;
  18079. else
  18080. enable_video_vivante=yes
  18081. fi
  18082. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18084. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18085. have_vivante_vdk=no
  18086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18087. /* end confdefs.h. */
  18088. #define LINUX
  18089. #define EGL_API_FB
  18090. #include <gc_vdk.h>
  18091. int
  18092. main ()
  18093. {
  18094. ;
  18095. return 0;
  18096. }
  18097. _ACEOF
  18098. if ac_fn_c_try_compile "$LINENO"; then :
  18099. have_vivante_vdk=yes
  18100. fi
  18101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18103. $as_echo "$have_vivante_vdk" >&6; }
  18104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18105. $as_echo_n "checking for Vivante FB API... " >&6; }
  18106. have_vivante_egl=no
  18107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18108. /* end confdefs.h. */
  18109. #define LINUX
  18110. #define EGL_API_FB
  18111. #include <EGL/eglvivante.h>
  18112. int
  18113. main ()
  18114. {
  18115. ;
  18116. return 0;
  18117. }
  18118. _ACEOF
  18119. if ac_fn_c_try_compile "$LINENO"; then :
  18120. have_vivante_egl=yes
  18121. fi
  18122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18124. $as_echo "$have_vivante_egl" >&6; }
  18125. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18126. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18127. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18128. if test x$have_vivante_vdk = xyes; then
  18129. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18130. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18131. fi
  18132. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18133. SUMMARY_video="${SUMMARY_video} vivante"
  18134. have_video=yes
  18135. fi
  18136. fi
  18137. }
  18138. CheckHaikuVideo()
  18139. {
  18140. if test x$enable_video = xyes; then
  18141. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18142. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18143. have_video=yes
  18144. SUMMARY_video="${SUMMARY_video} haiku"
  18145. fi
  18146. }
  18147. CheckCOCOA()
  18148. {
  18149. # Check whether --enable-video-cocoa was given.
  18150. if test "${enable_video_cocoa+set}" = set; then :
  18151. enableval=$enable_video_cocoa;
  18152. else
  18153. enable_video_cocoa=yes
  18154. fi
  18155. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18156. save_CFLAGS="$CFLAGS"
  18157. CFLAGS="$CFLAGS -x objective-c"
  18158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18159. $as_echo_n "checking for Cocoa framework... " >&6; }
  18160. have_cocoa=no
  18161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18162. /* end confdefs.h. */
  18163. #import <Cocoa/Cocoa.h>
  18164. int
  18165. main ()
  18166. {
  18167. ;
  18168. return 0;
  18169. }
  18170. _ACEOF
  18171. if ac_fn_c_try_compile "$LINENO"; then :
  18172. have_cocoa=yes
  18173. fi
  18174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18176. $as_echo "$have_cocoa" >&6; }
  18177. CFLAGS="$save_CFLAGS"
  18178. if test x$have_cocoa = xyes; then
  18179. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18180. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18181. SUMMARY_video="${SUMMARY_video} cocoa"
  18182. have_video=yes
  18183. fi
  18184. fi
  18185. }
  18186. CheckDirectFB()
  18187. {
  18188. # Check whether --enable-video-directfb was given.
  18189. if test "${enable_video_directfb+set}" = set; then :
  18190. enableval=$enable_video_directfb;
  18191. else
  18192. enable_video_directfb=no
  18193. fi
  18194. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18195. video_directfb=no
  18196. DIRECTFB_REQUIRED_VERSION=1.0.0
  18197. for ac_prog in directfb-config
  18198. do
  18199. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18200. set dummy $ac_prog; ac_word=$2
  18201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18202. $as_echo_n "checking for $ac_word... " >&6; }
  18203. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18204. $as_echo_n "(cached) " >&6
  18205. else
  18206. case $DIRECTFBCONFIG in
  18207. [\\/]* | ?:[\\/]*)
  18208. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18209. ;;
  18210. *)
  18211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18212. as_dummy="$prefix/bin:$PATH"
  18213. for as_dir in $as_dummy
  18214. do
  18215. IFS=$as_save_IFS
  18216. test -z "$as_dir" && as_dir=.
  18217. for ac_exec_ext in '' $ac_executable_extensions; do
  18218. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18219. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18221. break 2
  18222. fi
  18223. done
  18224. done
  18225. IFS=$as_save_IFS
  18226. ;;
  18227. esac
  18228. fi
  18229. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18230. if test -n "$DIRECTFBCONFIG"; then
  18231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18232. $as_echo "$DIRECTFBCONFIG" >&6; }
  18233. else
  18234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18235. $as_echo "no" >&6; }
  18236. fi
  18237. test -n "$DIRECTFBCONFIG" && break
  18238. done
  18239. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18240. if test x$DIRECTFBCONFIG = xno; then
  18241. # Extract the first word of "pkg-config", so it can be a program name with args.
  18242. set dummy pkg-config; ac_word=$2
  18243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18244. $as_echo_n "checking for $ac_word... " >&6; }
  18245. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18246. $as_echo_n "(cached) " >&6
  18247. else
  18248. case $PKG_CONFIG in
  18249. [\\/]* | ?:[\\/]*)
  18250. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18251. ;;
  18252. *)
  18253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18254. for as_dir in $PATH
  18255. do
  18256. IFS=$as_save_IFS
  18257. test -z "$as_dir" && as_dir=.
  18258. for ac_exec_ext in '' $ac_executable_extensions; do
  18259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18260. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18262. break 2
  18263. fi
  18264. done
  18265. done
  18266. IFS=$as_save_IFS
  18267. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18268. ;;
  18269. esac
  18270. fi
  18271. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18272. if test -n "$PKG_CONFIG"; then
  18273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18274. $as_echo "$PKG_CONFIG" >&6; }
  18275. else
  18276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18277. $as_echo "no" >&6; }
  18278. fi
  18279. if test x$PKG_CONFIG != xno; then
  18280. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18281. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18282. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18283. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18284. video_directfb=yes
  18285. fi
  18286. fi
  18287. else
  18288. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18289. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18290. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18291. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18292. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18293. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18294. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18295. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18296. video_directfb=yes
  18297. fi
  18298. fi
  18299. if test x$video_directfb = xyes; then
  18300. # SuSE 11.1 installs directfb-config without directfb-devel
  18301. save_CPPFLAGS="$CPPFLAGS"
  18302. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18303. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18304. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18305. have_directfb_hdr=yes
  18306. else
  18307. have_directfb_hdr=no
  18308. fi
  18309. CPPFLAGS="$save_CPPFLAGS"
  18310. video_directfb=$have_directfb_hdr
  18311. fi
  18312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18313. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18315. $as_echo "$video_directfb" >&6; }
  18316. if test x$video_directfb = xyes; then
  18317. # Check whether --enable-directfb-shared was given.
  18318. if test "${enable_directfb_shared+set}" = set; then :
  18319. enableval=$enable_directfb_shared;
  18320. else
  18321. enable_directfb_shared=yes
  18322. fi
  18323. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18324. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18325. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18326. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18328. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18329. directfb_shared=no
  18330. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18331. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18333. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18334. if test x$have_loadso != xyes && \
  18335. test x$enable_directfb_shared = xyes; then
  18336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18337. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18338. fi
  18339. if test x$have_loadso = xyes && \
  18340. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18341. directfb_shared=yes
  18342. echo "-- $directfb_lib_spec -> $directfb_lib"
  18343. cat >>confdefs.h <<_ACEOF
  18344. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18345. _ACEOF
  18346. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18347. else
  18348. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18349. SUMMARY_video="${SUMMARY_video} directfb"
  18350. fi
  18351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18352. $as_echo "$directfb_shared" >&6; }
  18353. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18354. have_video=yes
  18355. fi
  18356. fi
  18357. }
  18358. CheckKMSDRM()
  18359. {
  18360. # Check whether --enable-video-kmsdrm was given.
  18361. if test "${enable_video_kmsdrm+set}" = set; then :
  18362. enableval=$enable_video_kmsdrm;
  18363. else
  18364. enable_video_kmsdrm=no
  18365. fi
  18366. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18367. video_kmsdrm=no
  18368. libdrm_avail=no
  18369. libgbm_avail=no
  18370. LIBDRM_REQUIRED_VERSION=2.4.46
  18371. LIBGBM_REQUIRED_VERSION=9.0.0
  18372. # Extract the first word of "pkg-config", so it can be a program name with args.
  18373. set dummy pkg-config; ac_word=$2
  18374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18375. $as_echo_n "checking for $ac_word... " >&6; }
  18376. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18377. $as_echo_n "(cached) " >&6
  18378. else
  18379. case $PKG_CONFIG in
  18380. [\\/]* | ?:[\\/]*)
  18381. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18382. ;;
  18383. *)
  18384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18385. for as_dir in $PATH
  18386. do
  18387. IFS=$as_save_IFS
  18388. test -z "$as_dir" && as_dir=.
  18389. for ac_exec_ext in '' $ac_executable_extensions; do
  18390. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18391. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18393. break 2
  18394. fi
  18395. done
  18396. done
  18397. IFS=$as_save_IFS
  18398. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18399. ;;
  18400. esac
  18401. fi
  18402. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18403. if test -n "$PKG_CONFIG"; then
  18404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18405. $as_echo "$PKG_CONFIG" >&6; }
  18406. else
  18407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18408. $as_echo "no" >&6; }
  18409. fi
  18410. if test x$PKG_CONFIG != xno; then
  18411. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18412. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18413. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18414. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18415. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18416. libdrm_avail=yes
  18417. fi
  18418. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18419. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18420. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18421. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18422. libgbm_avail=yes
  18423. fi
  18424. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18425. video_kmsdrm=yes
  18426. fi
  18427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18428. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18430. $as_echo "$libdrm_avail" >&6; }
  18431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18432. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18434. $as_echo "$libgbm_avail" >&6; }
  18435. if test x$video_kmsdrm = xyes; then
  18436. # Check whether --enable-kmsdrm-shared was given.
  18437. if test "${enable_kmsdrm_shared+set}" = set; then :
  18438. enableval=$enable_kmsdrm_shared;
  18439. else
  18440. enable_kmsdrm_shared=yes
  18441. fi
  18442. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18443. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18444. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18446. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18447. kmsdrm_shared=no
  18448. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18449. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18450. if test x$have_loadso != xyes && \
  18451. test x$enable_kmsdrm_shared = xyes; then
  18452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18453. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18454. fi
  18455. if test x$have_loadso = xyes && \
  18456. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18457. kmsdrm_shared=yes
  18458. cat >>confdefs.h <<_ACEOF
  18459. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18460. _ACEOF
  18461. cat >>confdefs.h <<_ACEOF
  18462. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18463. _ACEOF
  18464. cat >>confdefs.h <<_ACEOF
  18465. #define HAVE_KMSDRM_SHARED "TRUE"
  18466. _ACEOF
  18467. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18468. else
  18469. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18470. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18471. fi
  18472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18473. $as_echo "$kmsdrm_shared" >&6; }
  18474. have_video=yes
  18475. fi
  18476. fi
  18477. fi
  18478. fi
  18479. }
  18480. CheckDummyVideo()
  18481. {
  18482. # Check whether --enable-video-dummy was given.
  18483. if test "${enable_video_dummy+set}" = set; then :
  18484. enableval=$enable_video_dummy;
  18485. else
  18486. enable_video_dummy=yes
  18487. fi
  18488. if test x$enable_video_dummy = xyes; then
  18489. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18490. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18491. have_video=yes
  18492. SUMMARY_video="${SUMMARY_video} dummy"
  18493. fi
  18494. }
  18495. CheckQNXVideo()
  18496. {
  18497. if test x$enable_video = xyes; then
  18498. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18499. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18500. have_video=yes
  18501. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18502. SUMMARY_video="${SUMMARY_video} qnx"
  18503. fi
  18504. }
  18505. CheckQNXAudio()
  18506. {
  18507. if test x$enable_audio = xyes; then
  18508. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18509. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18510. have_audio=yes
  18511. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18512. SUMMARY_audio="${SUMMARY_audio} qsa"
  18513. fi
  18514. }
  18515. # Check whether --enable-video-opengl was given.
  18516. if test "${enable_video_opengl+set}" = set; then :
  18517. enableval=$enable_video_opengl;
  18518. else
  18519. enable_video_opengl=yes
  18520. fi
  18521. CheckOpenGLX11()
  18522. {
  18523. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18525. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18526. video_opengl=no
  18527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18528. /* end confdefs.h. */
  18529. #include <GL/gl.h>
  18530. #include <GL/glx.h>
  18531. int
  18532. main ()
  18533. {
  18534. ;
  18535. return 0;
  18536. }
  18537. _ACEOF
  18538. if ac_fn_c_try_compile "$LINENO"; then :
  18539. video_opengl=yes
  18540. fi
  18541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18543. $as_echo "$video_opengl" >&6; }
  18544. if test x$video_opengl = xyes; then
  18545. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18546. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18547. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18548. SUMMARY_video="${SUMMARY_video} opengl"
  18549. fi
  18550. fi
  18551. }
  18552. # Check whether --enable-video-opengles was given.
  18553. if test "${enable_video_opengles+set}" = set; then :
  18554. enableval=$enable_video_opengles;
  18555. else
  18556. enable_video_opengles=yes
  18557. fi
  18558. # Check whether --enable-video-opengles1 was given.
  18559. if test "${enable_video_opengles1+set}" = set; then :
  18560. enableval=$enable_video_opengles1;
  18561. else
  18562. enable_video_opengles1=yes
  18563. fi
  18564. # Check whether --enable-video-opengles2 was given.
  18565. if test "${enable_video_opengles2+set}" = set; then :
  18566. enableval=$enable_video_opengles2;
  18567. else
  18568. enable_video_opengles2=yes
  18569. fi
  18570. CheckOpenGLESX11()
  18571. {
  18572. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18574. $as_echo_n "checking for EGL support... " >&6; }
  18575. video_opengl_egl=no
  18576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18577. /* end confdefs.h. */
  18578. #define LINUX
  18579. #define EGL_API_FB
  18580. #include <EGL/egl.h>
  18581. #include <EGL/eglext.h>
  18582. int
  18583. main ()
  18584. {
  18585. ;
  18586. return 0;
  18587. }
  18588. _ACEOF
  18589. if ac_fn_c_try_compile "$LINENO"; then :
  18590. video_opengl_egl=yes
  18591. fi
  18592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18594. $as_echo "$video_opengl_egl" >&6; }
  18595. if test x$video_opengl_egl = xyes; then
  18596. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18597. fi
  18598. if test x$enable_video_opengles1 = xyes; then
  18599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18600. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18601. video_opengles_v1=no
  18602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18603. /* end confdefs.h. */
  18604. #include <GLES/gl.h>
  18605. #include <GLES/glext.h>
  18606. int
  18607. main ()
  18608. {
  18609. ;
  18610. return 0;
  18611. }
  18612. _ACEOF
  18613. if ac_fn_c_try_compile "$LINENO"; then :
  18614. video_opengles_v1=yes
  18615. fi
  18616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18618. $as_echo "$video_opengles_v1" >&6; }
  18619. if test x$video_opengles_v1 = xyes; then
  18620. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18621. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18622. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18623. fi
  18624. fi
  18625. if test x$enable_video_opengles2 = xyes; then
  18626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18627. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18628. video_opengles_v2=no
  18629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18630. /* end confdefs.h. */
  18631. #include <GLES2/gl2.h>
  18632. #include <GLES2/gl2ext.h>
  18633. int
  18634. main ()
  18635. {
  18636. ;
  18637. return 0;
  18638. }
  18639. _ACEOF
  18640. if ac_fn_c_try_compile "$LINENO"; then :
  18641. video_opengles_v2=yes
  18642. fi
  18643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18645. $as_echo "$video_opengles_v2" >&6; }
  18646. if test x$video_opengles_v2 = xyes; then
  18647. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18648. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18649. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18650. fi
  18651. fi
  18652. fi
  18653. }
  18654. CheckWINDOWSGL()
  18655. {
  18656. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18657. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18658. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18659. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18660. SUMMARY_video="${SUMMARY_video} opengl"
  18661. fi
  18662. }
  18663. CheckWINDOWSGLES()
  18664. {
  18665. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18667. $as_echo_n "checking for EGL support... " >&6; }
  18668. video_opengl_egl=no
  18669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18670. /* end confdefs.h. */
  18671. #include <EGL/egl.h>
  18672. int
  18673. main ()
  18674. {
  18675. ;
  18676. return 0;
  18677. }
  18678. _ACEOF
  18679. if ac_fn_c_try_compile "$LINENO"; then :
  18680. video_opengl_egl=yes
  18681. fi
  18682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18684. $as_echo "$video_opengl_egl" >&6; }
  18685. if test x$video_opengl_egl = xyes; then
  18686. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18687. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18688. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18689. fi
  18690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18691. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18692. video_opengles_v2=no
  18693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18694. /* end confdefs.h. */
  18695. #include <GLES2/gl2.h>
  18696. #include <GLES2/gl2ext.h>
  18697. int
  18698. main ()
  18699. {
  18700. ;
  18701. return 0;
  18702. }
  18703. _ACEOF
  18704. if ac_fn_c_try_compile "$LINENO"; then :
  18705. video_opengles_v2=yes
  18706. fi
  18707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18709. $as_echo "$video_opengles_v2" >&6; }
  18710. if test x$video_opengles_v2 = xyes; then
  18711. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18712. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18713. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18714. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18715. fi
  18716. fi
  18717. }
  18718. CheckHaikuGL()
  18719. {
  18720. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18721. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18722. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18723. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18724. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18725. SUMMARY_video="${SUMMARY_video} opengl"
  18726. fi
  18727. }
  18728. CheckMacGL()
  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_CGL 1" >>confdefs.h
  18733. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18734. SUMMARY_video="${SUMMARY_video} opengl"
  18735. fi
  18736. }
  18737. CheckEmscriptenGLES()
  18738. {
  18739. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18741. $as_echo_n "checking for EGL support... " >&6; }
  18742. video_opengl_egl=no
  18743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18744. /* end confdefs.h. */
  18745. #include <EGL/egl.h>
  18746. int
  18747. main ()
  18748. {
  18749. ;
  18750. return 0;
  18751. }
  18752. _ACEOF
  18753. if ac_fn_c_try_compile "$LINENO"; then :
  18754. video_opengl_egl=yes
  18755. fi
  18756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18758. $as_echo "$video_opengl_egl" >&6; }
  18759. if test x$video_opengl_egl = xyes; then
  18760. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18761. fi
  18762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18763. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18764. video_opengles_v2=no
  18765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18766. /* end confdefs.h. */
  18767. #include <GLES2/gl2.h>
  18768. #include <GLES2/gl2ext.h>
  18769. int
  18770. main ()
  18771. {
  18772. ;
  18773. return 0;
  18774. }
  18775. _ACEOF
  18776. if ac_fn_c_try_compile "$LINENO"; then :
  18777. video_opengles_v2=yes
  18778. fi
  18779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18781. $as_echo "$video_opengles_v2" >&6; }
  18782. if test x$video_opengles_v2 = xyes; then
  18783. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18784. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18785. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18786. fi
  18787. fi
  18788. }
  18789. # Check whether --enable-video-vulkan was given.
  18790. if test "${enable_video_vulkan+set}" = set; then :
  18791. enableval=$enable_video_vulkan;
  18792. else
  18793. enable_video_vulkan=yes
  18794. fi
  18795. CheckVulkan()
  18796. {
  18797. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  18798. case "$host" in
  18799. *-*-androideabi*)
  18800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18801. /* end confdefs.h. */
  18802. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  18803. #error Vulkan doesn't work on this configuration
  18804. #endif
  18805. int
  18806. main ()
  18807. {
  18808. ;
  18809. return 0;
  18810. }
  18811. _ACEOF
  18812. if ac_fn_c_try_compile "$LINENO"; then :
  18813. else
  18814. enable_video_vulkan=no
  18815. fi
  18816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18817. ;;
  18818. *-*-darwin*)
  18819. save_CFLAGS="$CFLAGS"
  18820. CFLAGS="$CFLAGS -x objective-c"
  18821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18822. /* end confdefs.h. */
  18823. #include <Cocoa/Cocoa.h>
  18824. #include <Metal/Metal.h>
  18825. #include <QuartzCore/CAMetalLayer.h>
  18826. #if !TARGET_CPU_X86_64
  18827. #error Vulkan doesn't work on this configuration
  18828. #endif
  18829. int
  18830. main ()
  18831. {
  18832. ;
  18833. return 0;
  18834. }
  18835. _ACEOF
  18836. if ac_fn_c_try_compile "$LINENO"; then :
  18837. else
  18838. enable_video_vulkan=no
  18839. fi
  18840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18841. CFLAGS="$save_CFLAGS"
  18842. ;;
  18843. *)
  18844. ;;
  18845. esac
  18846. if test x$enable_video_vulkan = xno; then
  18847. # For reasons I am totally unable to see, I get an undefined macro error if
  18848. # I put this in the AC_TRY_COMPILE.
  18849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  18850. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  18851. fi
  18852. fi
  18853. if test x$enable_video_vulkan = xyes; then
  18854. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  18855. SUMMARY_video="${SUMMARY_video} vulkan"
  18856. fi
  18857. }
  18858. CheckInputEvents()
  18859. {
  18860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18861. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18862. use_input_events=no
  18863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18864. /* end confdefs.h. */
  18865. #include <linux/input.h>
  18866. int
  18867. main ()
  18868. {
  18869. #ifndef EVIOCGNAME
  18870. #error EVIOCGNAME() ioctl not available
  18871. #endif
  18872. ;
  18873. return 0;
  18874. }
  18875. _ACEOF
  18876. if ac_fn_c_try_compile "$LINENO"; then :
  18877. use_input_events=yes
  18878. fi
  18879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18881. $as_echo "$use_input_events" >&6; }
  18882. if test x$use_input_events = xyes; then
  18883. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18884. SUMMARY_input="${SUMMARY_input} linuxev"
  18885. fi
  18886. }
  18887. CheckInputKD()
  18888. {
  18889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18890. $as_echo_n "checking for Linux kd.h... " >&6; }
  18891. use_input_kd=no
  18892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18893. /* end confdefs.h. */
  18894. #include <linux/kd.h>
  18895. #include <linux/keyboard.h>
  18896. int
  18897. main ()
  18898. {
  18899. struct kbentry kbe;
  18900. kbe.kb_table = KG_CTRL;
  18901. ioctl(0, KDGKBENT, &kbe);
  18902. ;
  18903. return 0;
  18904. }
  18905. _ACEOF
  18906. if ac_fn_c_try_compile "$LINENO"; then :
  18907. use_input_kd=yes
  18908. fi
  18909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18911. $as_echo "$use_input_kd" >&6; }
  18912. if test x$use_input_kd = xyes; then
  18913. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18914. SUMMARY_input="${SUMMARY_input} linuxkd"
  18915. fi
  18916. }
  18917. CheckLibUDev()
  18918. {
  18919. # Check whether --enable-libudev was given.
  18920. if test "${enable_libudev+set}" = set; then :
  18921. enableval=$enable_libudev;
  18922. else
  18923. enable_libudev=yes
  18924. fi
  18925. if test x$enable_libudev = xyes; then
  18926. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18927. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18928. have_libudev_h_hdr=yes
  18929. else
  18930. have_libudev_h_hdr=no
  18931. fi
  18932. if test x$have_libudev_h_hdr = xyes; then
  18933. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18934. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18935. if test x$udev_lib != x; then
  18936. echo "-- dynamic udev -> $udev_lib"
  18937. cat >>confdefs.h <<_ACEOF
  18938. #define SDL_UDEV_DYNAMIC "$udev_lib"
  18939. _ACEOF
  18940. fi
  18941. fi
  18942. fi
  18943. }
  18944. CheckDBus()
  18945. {
  18946. # Check whether --enable-dbus was given.
  18947. if test "${enable_dbus+set}" = set; then :
  18948. enableval=$enable_dbus;
  18949. else
  18950. enable_dbus=yes
  18951. fi
  18952. if test x$enable_dbus = xyes; then
  18953. # Extract the first word of "pkg-config", so it can be a program name with args.
  18954. set dummy pkg-config; ac_word=$2
  18955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18956. $as_echo_n "checking for $ac_word... " >&6; }
  18957. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18958. $as_echo_n "(cached) " >&6
  18959. else
  18960. case $PKG_CONFIG in
  18961. [\\/]* | ?:[\\/]*)
  18962. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18963. ;;
  18964. *)
  18965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18966. for as_dir in $PATH
  18967. do
  18968. IFS=$as_save_IFS
  18969. test -z "$as_dir" && as_dir=.
  18970. for ac_exec_ext in '' $ac_executable_extensions; do
  18971. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18972. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18973. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18974. break 2
  18975. fi
  18976. done
  18977. done
  18978. IFS=$as_save_IFS
  18979. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18980. ;;
  18981. esac
  18982. fi
  18983. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18984. if test -n "$PKG_CONFIG"; then
  18985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18986. $as_echo "$PKG_CONFIG" >&6; }
  18987. else
  18988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18989. $as_echo "no" >&6; }
  18990. fi
  18991. if test x$PKG_CONFIG != xno; then
  18992. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18993. save_CFLAGS="$CFLAGS"
  18994. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18995. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18996. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18997. have_dbus_dbus_h_hdr=yes
  18998. else
  18999. have_dbus_dbus_h_hdr=no
  19000. fi
  19001. CFLAGS="$save_CFLAGS"
  19002. if test x$have_dbus_dbus_h_hdr = xyes; then
  19003. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19004. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19005. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19006. fi
  19007. fi
  19008. fi
  19009. }
  19010. CheckIME()
  19011. {
  19012. # Check whether --enable-ime was given.
  19013. if test "${enable_ime+set}" = set; then :
  19014. enableval=$enable_ime;
  19015. else
  19016. enable_ime=yes
  19017. fi
  19018. if test x$enable_ime = xyes; then
  19019. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19020. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19021. fi
  19022. }
  19023. CheckIBus()
  19024. {
  19025. # Check whether --enable-ibus was given.
  19026. if test "${enable_ibus+set}" = set; then :
  19027. enableval=$enable_ibus;
  19028. else
  19029. enable_ibus=yes
  19030. fi
  19031. if test x$enable_ibus = xyes; then
  19032. # Extract the first word of "pkg-config", so it can be a program name with args.
  19033. set dummy pkg-config; ac_word=$2
  19034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19035. $as_echo_n "checking for $ac_word... " >&6; }
  19036. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19037. $as_echo_n "(cached) " >&6
  19038. else
  19039. case $PKG_CONFIG in
  19040. [\\/]* | ?:[\\/]*)
  19041. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19042. ;;
  19043. *)
  19044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19045. for as_dir in $PATH
  19046. do
  19047. IFS=$as_save_IFS
  19048. test -z "$as_dir" && as_dir=.
  19049. for ac_exec_ext in '' $ac_executable_extensions; do
  19050. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19051. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19053. break 2
  19054. fi
  19055. done
  19056. done
  19057. IFS=$as_save_IFS
  19058. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19059. ;;
  19060. esac
  19061. fi
  19062. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19063. if test -n "$PKG_CONFIG"; then
  19064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19065. $as_echo "$PKG_CONFIG" >&6; }
  19066. else
  19067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19068. $as_echo "no" >&6; }
  19069. fi
  19070. if test x$PKG_CONFIG != xno; then
  19071. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  19072. save_CFLAGS="$CFLAGS"
  19073. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19074. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19075. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19076. have_ibus_ibus_h_hdr=yes
  19077. else
  19078. have_ibus_ibus_h_hdr=no
  19079. fi
  19080. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19081. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19082. have_inotify_inotify_h_hdr=yes
  19083. else
  19084. have_inotify_inotify_h_hdr=no
  19085. fi
  19086. CFLAGS="$save_CFLAGS"
  19087. if test x$have_ibus_ibus_h_hdr = xyes; then
  19088. if test x$enable_ime != xyes; then
  19089. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19090. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19091. have_ibus_ibus_h_hdr=no
  19092. elif test x$enable_dbus != xyes; then
  19093. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19094. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19095. have_ibus_ibus_h_hdr=no
  19096. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19097. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19098. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19099. have_ibus_ibus_h_hdr=no
  19100. else
  19101. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19102. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19103. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19104. fi
  19105. fi
  19106. fi
  19107. fi
  19108. }
  19109. CheckFcitx()
  19110. {
  19111. # Check whether --enable-fcitx was given.
  19112. if test "${enable_fcitx+set}" = set; then :
  19113. enableval=$enable_fcitx;
  19114. else
  19115. enable_fcitx=yes
  19116. fi
  19117. if test x$enable_fcitx = xyes; then
  19118. # Extract the first word of "pkg-config", so it can be a program name with args.
  19119. set dummy pkg-config; ac_word=$2
  19120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19121. $as_echo_n "checking for $ac_word... " >&6; }
  19122. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19123. $as_echo_n "(cached) " >&6
  19124. else
  19125. case $PKG_CONFIG in
  19126. [\\/]* | ?:[\\/]*)
  19127. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19128. ;;
  19129. *)
  19130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19131. for as_dir in $PATH
  19132. do
  19133. IFS=$as_save_IFS
  19134. test -z "$as_dir" && as_dir=.
  19135. for ac_exec_ext in '' $ac_executable_extensions; do
  19136. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19137. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19138. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19139. break 2
  19140. fi
  19141. done
  19142. done
  19143. IFS=$as_save_IFS
  19144. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19145. ;;
  19146. esac
  19147. fi
  19148. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19149. if test -n "$PKG_CONFIG"; then
  19150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19151. $as_echo "$PKG_CONFIG" >&6; }
  19152. else
  19153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19154. $as_echo "no" >&6; }
  19155. fi
  19156. if test x$PKG_CONFIG != xno; then
  19157. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19158. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19159. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19160. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19161. have_fcitx_frontend_h_hdr=yes
  19162. else
  19163. have_fcitx_frontend_h_hdr=no
  19164. fi
  19165. CFLAGS="$save_CFLAGS"
  19166. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19167. if test x$enable_ime != xyes; then
  19168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19169. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19170. have_fcitx_frontend_h_hdr=no
  19171. elif test x$enable_dbus != xyes; then
  19172. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19173. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19174. have_fcitx_frontend_h_hdr=no
  19175. else
  19176. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19177. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19178. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19179. fi
  19180. fi
  19181. fi
  19182. fi
  19183. }
  19184. CheckTslib()
  19185. {
  19186. # Check whether --enable-input-tslib was given.
  19187. if test "${enable_input_tslib+set}" = set; then :
  19188. enableval=$enable_input_tslib;
  19189. else
  19190. enable_input_tslib=yes
  19191. fi
  19192. if test x$enable_input_tslib = xyes; then
  19193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19194. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19195. enable_input_tslib=no
  19196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19197. /* end confdefs.h. */
  19198. #include "tslib.h"
  19199. int
  19200. main ()
  19201. {
  19202. ;
  19203. return 0;
  19204. }
  19205. _ACEOF
  19206. if ac_fn_c_try_compile "$LINENO"; then :
  19207. enable_input_tslib=yes
  19208. fi
  19209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19211. $as_echo "$enable_input_tslib" >&6; }
  19212. if test x$enable_input_tslib = xyes; then
  19213. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19214. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19215. SUMMARY_input="${SUMMARY_input} ts"
  19216. fi
  19217. fi
  19218. }
  19219. CheckPTHREAD()
  19220. {
  19221. # Check whether --enable-pthreads was given.
  19222. if test "${enable_pthreads+set}" = set; then :
  19223. enableval=$enable_pthreads;
  19224. else
  19225. enable_pthreads=yes
  19226. fi
  19227. # Check whether --enable-pthread-sem was given.
  19228. if test "${enable_pthread_sem+set}" = set; then :
  19229. enableval=$enable_pthread_sem;
  19230. else
  19231. enable_pthread_sem=yes
  19232. fi
  19233. case "$host" in
  19234. *-*-androideabi*)
  19235. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19236. pthread_lib=""
  19237. ;;
  19238. *-*-linux*|*-*-uclinux*)
  19239. pthread_cflags="-D_REENTRANT"
  19240. pthread_lib="-lpthread"
  19241. ;;
  19242. *-*-bsdi*)
  19243. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19244. pthread_lib=""
  19245. ;;
  19246. *-*-darwin*)
  19247. pthread_cflags="-D_THREAD_SAFE"
  19248. # causes Carbon.p complaints?
  19249. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19250. ;;
  19251. *-*-freebsd*|*-*-dragonfly*)
  19252. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19253. pthread_lib="-pthread"
  19254. ;;
  19255. *-*-netbsd*)
  19256. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19257. pthread_lib="-lpthread"
  19258. ;;
  19259. *-*-openbsd*)
  19260. pthread_cflags="-D_REENTRANT"
  19261. pthread_lib="-pthread"
  19262. ;;
  19263. *-*-solaris2.9)
  19264. # From Solaris 9+, posix4's preferred name is rt.
  19265. pthread_cflags="-D_REENTRANT"
  19266. pthread_lib="-lpthread -lrt"
  19267. ;;
  19268. *-*-solaris2.10)
  19269. # Solaris 10+ merged pthread into libc.
  19270. pthread_cflags="-D_REENTRANT"
  19271. pthread_lib="-lrt"
  19272. ;;
  19273. *-*-solaris*)
  19274. # Solaris 11+ merged rt into libc.
  19275. pthread_cflags="-D_REENTRANT"
  19276. pthread_lib=""
  19277. ;;
  19278. *-*-sysv5*)
  19279. pthread_cflags="-D_REENTRANT -Kthread"
  19280. pthread_lib=""
  19281. ;;
  19282. *-*-aix*)
  19283. pthread_cflags="-D_REENTRANT -mthreads"
  19284. pthread_lib="-lpthread"
  19285. ;;
  19286. *-*-hpux11*)
  19287. pthread_cflags="-D_REENTRANT"
  19288. pthread_lib="-L/usr/lib -lpthread"
  19289. ;;
  19290. *-*-haiku*)
  19291. pthread_cflags="-D_REENTRANT"
  19292. pthread_lib=""
  19293. ;;
  19294. *-*-nto*)
  19295. pthread_cflags="-D_REENTRANT"
  19296. pthread_lib=""
  19297. ;;
  19298. *)
  19299. pthread_cflags="-D_REENTRANT"
  19300. pthread_lib="-lpthread"
  19301. ;;
  19302. esac
  19303. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19304. # Save the original compiler flags and libraries
  19305. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19306. # Add the pthread compiler flags and libraries
  19307. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19308. # Check to see if we have pthread support on this system
  19309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19310. $as_echo_n "checking for pthreads... " >&6; }
  19311. use_pthreads=no
  19312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19313. /* end confdefs.h. */
  19314. #include <pthread.h>
  19315. int
  19316. main ()
  19317. {
  19318. pthread_attr_t type;
  19319. pthread_attr_init(&type);
  19320. ;
  19321. return 0;
  19322. }
  19323. _ACEOF
  19324. if ac_fn_c_try_link "$LINENO"; then :
  19325. use_pthreads=yes
  19326. fi
  19327. rm -f core conftest.err conftest.$ac_objext \
  19328. conftest$ac_exeext conftest.$ac_ext
  19329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19330. $as_echo "$use_pthreads" >&6; }
  19331. # Restore the compiler flags and libraries
  19332. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19333. # Do futher testing if we have pthread support...
  19334. if test x$use_pthreads = xyes; then
  19335. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19336. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19337. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19338. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19339. # Save the original compiler flags and libraries
  19340. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19341. # Add the pthread compiler flags and libraries
  19342. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19343. # Check to see if recursive mutexes are available
  19344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19345. $as_echo_n "checking for recursive mutexes... " >&6; }
  19346. has_recursive_mutexes=no
  19347. if test x$has_recursive_mutexes = xno; then
  19348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19349. /* end confdefs.h. */
  19350. #define _GNU_SOURCE 1
  19351. #include <pthread.h>
  19352. int
  19353. main ()
  19354. {
  19355. pthread_mutexattr_t attr;
  19356. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19357. ;
  19358. return 0;
  19359. }
  19360. _ACEOF
  19361. if ac_fn_c_try_link "$LINENO"; then :
  19362. has_recursive_mutexes=yes
  19363. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19364. fi
  19365. rm -f core conftest.err conftest.$ac_objext \
  19366. conftest$ac_exeext conftest.$ac_ext
  19367. fi
  19368. if test x$has_recursive_mutexes = xno; then
  19369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19370. /* end confdefs.h. */
  19371. #define _GNU_SOURCE 1
  19372. #include <pthread.h>
  19373. int
  19374. main ()
  19375. {
  19376. pthread_mutexattr_t attr;
  19377. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19378. ;
  19379. return 0;
  19380. }
  19381. _ACEOF
  19382. if ac_fn_c_try_link "$LINENO"; then :
  19383. has_recursive_mutexes=yes
  19384. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19385. fi
  19386. rm -f core conftest.err conftest.$ac_objext \
  19387. conftest$ac_exeext conftest.$ac_ext
  19388. fi
  19389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19390. $as_echo "$has_recursive_mutexes" >&6; }
  19391. # Check to see if pthread semaphore support is missing
  19392. if test x$enable_pthread_sem = xyes; then
  19393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19394. $as_echo_n "checking for pthread semaphores... " >&6; }
  19395. have_pthread_sem=no
  19396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19397. /* end confdefs.h. */
  19398. #include <pthread.h>
  19399. #include <semaphore.h>
  19400. int
  19401. main ()
  19402. {
  19403. ;
  19404. return 0;
  19405. }
  19406. _ACEOF
  19407. if ac_fn_c_try_compile "$LINENO"; then :
  19408. have_pthread_sem=yes
  19409. fi
  19410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19412. $as_echo "$have_pthread_sem" >&6; }
  19413. fi
  19414. if test x$have_pthread_sem = xyes; then
  19415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19416. $as_echo_n "checking for sem_timedwait... " >&6; }
  19417. have_sem_timedwait=no
  19418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19419. /* end confdefs.h. */
  19420. #include <pthread.h>
  19421. #include <semaphore.h>
  19422. int
  19423. main ()
  19424. {
  19425. sem_timedwait(NULL, NULL);
  19426. ;
  19427. return 0;
  19428. }
  19429. _ACEOF
  19430. if ac_fn_c_try_link "$LINENO"; then :
  19431. have_sem_timedwait=yes
  19432. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19433. fi
  19434. rm -f core conftest.err conftest.$ac_objext \
  19435. conftest$ac_exeext conftest.$ac_ext
  19436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19437. $as_echo "$have_sem_timedwait" >&6; }
  19438. fi
  19439. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19440. "
  19441. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19442. have_pthread_np_h=yes
  19443. else
  19444. have_pthread_np_h=no
  19445. fi
  19446. if test x$have_pthread_np_h = xyes; then
  19447. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19448. fi
  19449. # Check to see if pthread naming is available
  19450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19451. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19453. /* end confdefs.h. */
  19454. /* Override any GCC internal prototype to avoid an error.
  19455. Use char because int might match the return type of a GCC
  19456. builtin and then its argument prototype would still apply. */
  19457. #ifdef __cplusplus
  19458. extern "C"
  19459. #endif
  19460. char pthread_setname_np ();
  19461. int
  19462. main ()
  19463. {
  19464. return pthread_setname_np ();
  19465. ;
  19466. return 0;
  19467. }
  19468. _ACEOF
  19469. if ac_fn_c_try_link "$LINENO"; then :
  19470. has_pthread_setname_np=yes
  19471. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19472. else
  19473. has_pthread_setname_np=no
  19474. fi
  19475. rm -f core conftest.err conftest.$ac_objext \
  19476. conftest$ac_exeext conftest.$ac_ext
  19477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19478. $as_echo "$has_pthread_setname_np" >&6; }
  19479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19480. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19482. /* end confdefs.h. */
  19483. /* Override any GCC internal prototype to avoid an error.
  19484. Use char because int might match the return type of a GCC
  19485. builtin and then its argument prototype would still apply. */
  19486. #ifdef __cplusplus
  19487. extern "C"
  19488. #endif
  19489. char pthread_set_name_np ();
  19490. int
  19491. main ()
  19492. {
  19493. return pthread_set_name_np ();
  19494. ;
  19495. return 0;
  19496. }
  19497. _ACEOF
  19498. if ac_fn_c_try_link "$LINENO"; then :
  19499. has_pthread_set_name_np=yes
  19500. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19501. else
  19502. has_pthread_set_name_np=no
  19503. fi
  19504. rm -f core conftest.err conftest.$ac_objext \
  19505. conftest$ac_exeext conftest.$ac_ext
  19506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19507. $as_echo "$has_pthread_set_name_np" >&6; }
  19508. # Restore the compiler flags and libraries
  19509. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19510. # Basic thread creation functions
  19511. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19512. # Semaphores
  19513. # We can fake these with mutexes and condition variables if necessary
  19514. if test x$have_pthread_sem = xyes; then
  19515. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19516. else
  19517. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19518. fi
  19519. # Mutexes
  19520. # We can fake these with semaphores if necessary
  19521. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19522. # Condition variables
  19523. # We can fake these with semaphores and mutexes if necessary
  19524. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19525. # Thread local storage
  19526. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19527. have_threads=yes
  19528. fi
  19529. fi
  19530. }
  19531. CheckWINDOWS()
  19532. {
  19533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19534. $as_echo_n "checking Windows compiler... " >&6; }
  19535. have_win32_gcc=no
  19536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19537. /* end confdefs.h. */
  19538. #include <windows.h>
  19539. int
  19540. main ()
  19541. {
  19542. ;
  19543. return 0;
  19544. }
  19545. _ACEOF
  19546. if ac_fn_c_try_compile "$LINENO"; then :
  19547. have_win32_gcc=yes
  19548. fi
  19549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19551. $as_echo "$have_win32_gcc" >&6; }
  19552. if test x$have_win32_gcc != xyes; then
  19553. as_fn_error $? "
  19554. *** Your compiler ($CC) does not produce Windows executables!
  19555. " "$LINENO" 5
  19556. fi
  19557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19558. $as_echo_n "checking Windows CE... " >&6; }
  19559. have_wince=no
  19560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19561. /* end confdefs.h. */
  19562. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19563. #error This is not Windows CE
  19564. #endif
  19565. int
  19566. main ()
  19567. {
  19568. ;
  19569. return 0;
  19570. }
  19571. _ACEOF
  19572. if ac_fn_c_try_compile "$LINENO"; then :
  19573. have_wince=yes
  19574. as_fn_error $? "
  19575. *** Sorry, Windows CE is no longer supported.
  19576. " "$LINENO" 5
  19577. fi
  19578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19580. $as_echo "$have_wince" >&6; }
  19581. # This fixes Windows stack alignment with newer GCC
  19582. CheckStackBoundary
  19583. }
  19584. CheckDIRECTX()
  19585. {
  19586. # Check whether --enable-directx was given.
  19587. if test "${enable_directx+set}" = set; then :
  19588. enableval=$enable_directx;
  19589. else
  19590. enable_directx=yes
  19591. fi
  19592. if test x$enable_directx = xyes; then
  19593. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19594. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19595. have_d3d=yes
  19596. fi
  19597. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19598. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19599. have_d3d11=yes
  19600. fi
  19601. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19602. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19603. have_ddraw=yes
  19604. fi
  19605. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19606. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19607. have_dsound=yes
  19608. fi
  19609. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19610. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19611. have_dinput=yes
  19612. fi
  19613. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19614. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19615. have_dxgi=yes
  19616. fi
  19617. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19618. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19619. have_xaudio2=yes
  19620. fi
  19621. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19622. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19623. have_xinput=yes
  19624. fi
  19625. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  19626. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  19627. have_wasapi=yes
  19628. fi
  19629. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  19630. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  19631. else
  19632. have_wasapi=no
  19633. fi
  19634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19635. /* end confdefs.h. */
  19636. #include <windows.h>
  19637. #include <xinput.h>
  19638. XINPUT_GAMEPAD_EX x1;
  19639. int
  19640. main ()
  19641. {
  19642. ;
  19643. return 0;
  19644. }
  19645. _ACEOF
  19646. if ac_fn_c_try_compile "$LINENO"; then :
  19647. have_xinput_gamepadex=yes
  19648. fi
  19649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19651. /* end confdefs.h. */
  19652. #include <windows.h>
  19653. #include <xinput.h>
  19654. XINPUT_STATE_EX s1;
  19655. int
  19656. main ()
  19657. {
  19658. ;
  19659. return 0;
  19660. }
  19661. _ACEOF
  19662. if ac_fn_c_try_compile "$LINENO"; then :
  19663. have_xinput_stateex=yes
  19664. fi
  19665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19666. if test x$have_ddraw = xyes; then
  19667. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19668. fi
  19669. if test x$have_dinput = xyes; then
  19670. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19671. fi
  19672. if test x$have_dsound = xyes; then
  19673. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19674. fi
  19675. if test x$have_dxgi = xyes; then
  19676. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19677. fi
  19678. if test x$have_xinput = xyes; then
  19679. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19680. fi
  19681. if test x$have_xinput_gamepadex = xyes; then
  19682. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19683. fi
  19684. if test x$have_xinput_stateex = xyes; then
  19685. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19686. fi
  19687. SUMMARY_video="${SUMMARY_video} directx"
  19688. SUMMARY_audio="${SUMMARY_audio} directx"
  19689. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19690. # FIXME: ...so force it off for now.
  19691. case "$host" in
  19692. *-*-cygwin*)
  19693. have_dinput=false
  19694. ;;
  19695. esac
  19696. fi
  19697. }
  19698. CheckDLOPEN()
  19699. {
  19700. # Check whether --enable-sdl-dlopen was given.
  19701. if test "${enable_sdl_dlopen+set}" = set; then :
  19702. enableval=$enable_sdl_dlopen;
  19703. else
  19704. enable_sdl_dlopen=yes
  19705. fi
  19706. if test x$enable_sdl_dlopen = xyes; then
  19707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19708. $as_echo_n "checking for dlopen... " >&6; }
  19709. have_dlopen=no
  19710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19711. /* end confdefs.h. */
  19712. #include <dlfcn.h>
  19713. int
  19714. main ()
  19715. {
  19716. void *handle = dlopen("", RTLD_NOW);
  19717. const char *loaderror = (char *) dlerror();
  19718. ;
  19719. return 0;
  19720. }
  19721. _ACEOF
  19722. if ac_fn_c_try_compile "$LINENO"; then :
  19723. have_dlopen=yes
  19724. fi
  19725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19727. $as_echo "$have_dlopen" >&6; }
  19728. if test x$have_dlopen = xyes; then
  19729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19730. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19731. if ${ac_cv_lib_c_dlopen+:} false; then :
  19732. $as_echo_n "(cached) " >&6
  19733. else
  19734. ac_check_lib_save_LIBS=$LIBS
  19735. LIBS="-lc $LIBS"
  19736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19737. /* end confdefs.h. */
  19738. /* Override any GCC internal prototype to avoid an error.
  19739. Use char because int might match the return type of a GCC
  19740. builtin and then its argument prototype would still apply. */
  19741. #ifdef __cplusplus
  19742. extern "C"
  19743. #endif
  19744. char dlopen ();
  19745. int
  19746. main ()
  19747. {
  19748. return dlopen ();
  19749. ;
  19750. return 0;
  19751. }
  19752. _ACEOF
  19753. if ac_fn_c_try_link "$LINENO"; then :
  19754. ac_cv_lib_c_dlopen=yes
  19755. else
  19756. ac_cv_lib_c_dlopen=no
  19757. fi
  19758. rm -f core conftest.err conftest.$ac_objext \
  19759. conftest$ac_exeext conftest.$ac_ext
  19760. LIBS=$ac_check_lib_save_LIBS
  19761. fi
  19762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19763. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19764. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19765. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19766. else
  19767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19768. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19769. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19770. $as_echo_n "(cached) " >&6
  19771. else
  19772. ac_check_lib_save_LIBS=$LIBS
  19773. LIBS="-ldl $LIBS"
  19774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19775. /* end confdefs.h. */
  19776. /* Override any GCC internal prototype to avoid an error.
  19777. Use char because int might match the return type of a GCC
  19778. builtin and then its argument prototype would still apply. */
  19779. #ifdef __cplusplus
  19780. extern "C"
  19781. #endif
  19782. char dlopen ();
  19783. int
  19784. main ()
  19785. {
  19786. return dlopen ();
  19787. ;
  19788. return 0;
  19789. }
  19790. _ACEOF
  19791. if ac_fn_c_try_link "$LINENO"; then :
  19792. ac_cv_lib_dl_dlopen=yes
  19793. else
  19794. ac_cv_lib_dl_dlopen=no
  19795. fi
  19796. rm -f core conftest.err conftest.$ac_objext \
  19797. conftest$ac_exeext conftest.$ac_ext
  19798. LIBS=$ac_check_lib_save_LIBS
  19799. fi
  19800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19801. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19802. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19803. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19804. else
  19805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19806. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19807. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19808. $as_echo_n "(cached) " >&6
  19809. else
  19810. ac_check_lib_save_LIBS=$LIBS
  19811. LIBS="-lltdl $LIBS"
  19812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19813. /* end confdefs.h. */
  19814. /* Override any GCC internal prototype to avoid an error.
  19815. Use char because int might match the return type of a GCC
  19816. builtin and then its argument prototype would still apply. */
  19817. #ifdef __cplusplus
  19818. extern "C"
  19819. #endif
  19820. char dlopen ();
  19821. int
  19822. main ()
  19823. {
  19824. return dlopen ();
  19825. ;
  19826. return 0;
  19827. }
  19828. _ACEOF
  19829. if ac_fn_c_try_link "$LINENO"; then :
  19830. ac_cv_lib_ltdl_dlopen=yes
  19831. else
  19832. ac_cv_lib_ltdl_dlopen=no
  19833. fi
  19834. rm -f core conftest.err conftest.$ac_objext \
  19835. conftest$ac_exeext conftest.$ac_ext
  19836. LIBS=$ac_check_lib_save_LIBS
  19837. fi
  19838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19839. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19840. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19841. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19842. fi
  19843. fi
  19844. fi
  19845. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19846. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19847. have_loadso=yes
  19848. fi
  19849. fi
  19850. }
  19851. CheckUSBHID()
  19852. {
  19853. case "$host" in
  19854. *-*-*bsd*)
  19855. if test x$enable_joystick = xyes; then
  19856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19857. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19858. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19859. $as_echo_n "(cached) " >&6
  19860. else
  19861. ac_check_lib_save_LIBS=$LIBS
  19862. LIBS="-lusbhid $LIBS"
  19863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19864. /* end confdefs.h. */
  19865. /* Override any GCC internal prototype to avoid an error.
  19866. Use char because int might match the return type of a GCC
  19867. builtin and then its argument prototype would still apply. */
  19868. #ifdef __cplusplus
  19869. extern "C"
  19870. #endif
  19871. char hid_init ();
  19872. int
  19873. main ()
  19874. {
  19875. return hid_init ();
  19876. ;
  19877. return 0;
  19878. }
  19879. _ACEOF
  19880. if ac_fn_c_try_link "$LINENO"; then :
  19881. ac_cv_lib_usbhid_hid_init=yes
  19882. else
  19883. ac_cv_lib_usbhid_hid_init=no
  19884. fi
  19885. rm -f core conftest.err conftest.$ac_objext \
  19886. conftest$ac_exeext conftest.$ac_ext
  19887. LIBS=$ac_check_lib_save_LIBS
  19888. fi
  19889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19890. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19891. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19892. have_libusbhid=yes
  19893. fi
  19894. if test x$have_libusbhid = xyes; then
  19895. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19896. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19897. USB_CFLAGS="-DHAVE_USBHID_H"
  19898. fi
  19899. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19900. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19901. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19902. fi
  19903. USB_LIBS="$USB_LIBS -lusbhid"
  19904. else
  19905. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19906. if test "x$ac_cv_header_usb_h" = xyes; then :
  19907. USB_CFLAGS="-DHAVE_USB_H"
  19908. fi
  19909. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19910. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19911. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19912. fi
  19913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19914. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19915. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19916. $as_echo_n "(cached) " >&6
  19917. else
  19918. ac_check_lib_save_LIBS=$LIBS
  19919. LIBS="-lusb $LIBS"
  19920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19921. /* end confdefs.h. */
  19922. /* Override any GCC internal prototype to avoid an error.
  19923. Use char because int might match the return type of a GCC
  19924. builtin and then its argument prototype would still apply. */
  19925. #ifdef __cplusplus
  19926. extern "C"
  19927. #endif
  19928. char hid_init ();
  19929. int
  19930. main ()
  19931. {
  19932. return hid_init ();
  19933. ;
  19934. return 0;
  19935. }
  19936. _ACEOF
  19937. if ac_fn_c_try_link "$LINENO"; then :
  19938. ac_cv_lib_usb_hid_init=yes
  19939. else
  19940. ac_cv_lib_usb_hid_init=no
  19941. fi
  19942. rm -f core conftest.err conftest.$ac_objext \
  19943. conftest$ac_exeext conftest.$ac_ext
  19944. LIBS=$ac_check_lib_save_LIBS
  19945. fi
  19946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19947. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19948. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19949. USB_LIBS="$USB_LIBS -lusb"
  19950. fi
  19951. fi
  19952. save_CFLAGS="$CFLAGS"
  19953. CFLAGS="$CFLAGS $USB_CFLAGS"
  19954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19955. $as_echo_n "checking for usbhid... " >&6; }
  19956. have_usbhid=no
  19957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19958. /* end confdefs.h. */
  19959. #include <sys/types.h>
  19960. #if defined(HAVE_USB_H)
  19961. #include <usb.h>
  19962. #endif
  19963. #ifdef __DragonFly__
  19964. # include <bus/usb/usb.h>
  19965. # include <bus/usb/usbhid.h>
  19966. #else
  19967. # include <dev/usb/usb.h>
  19968. # include <dev/usb/usbhid.h>
  19969. #endif
  19970. #if defined(HAVE_USBHID_H)
  19971. #include <usbhid.h>
  19972. #elif defined(HAVE_LIBUSB_H)
  19973. #include <libusb.h>
  19974. #elif defined(HAVE_LIBUSBHID_H)
  19975. #include <libusbhid.h>
  19976. #endif
  19977. int
  19978. main ()
  19979. {
  19980. struct report_desc *repdesc;
  19981. struct usb_ctl_report *repbuf;
  19982. hid_kind_t hidkind;
  19983. ;
  19984. return 0;
  19985. }
  19986. _ACEOF
  19987. if ac_fn_c_try_compile "$LINENO"; then :
  19988. have_usbhid=yes
  19989. fi
  19990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19992. $as_echo "$have_usbhid" >&6; }
  19993. if test x$have_usbhid = xyes; then
  19994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19995. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19996. have_usbhid_ucr_data=no
  19997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19998. /* end confdefs.h. */
  19999. #include <sys/types.h>
  20000. #if defined(HAVE_USB_H)
  20001. #include <usb.h>
  20002. #endif
  20003. #ifdef __DragonFly__
  20004. # include <bus/usb/usb.h>
  20005. # include <bus/usb/usbhid.h>
  20006. #else
  20007. # include <dev/usb/usb.h>
  20008. # include <dev/usb/usbhid.h>
  20009. #endif
  20010. #if defined(HAVE_USBHID_H)
  20011. #include <usbhid.h>
  20012. #elif defined(HAVE_LIBUSB_H)
  20013. #include <libusb.h>
  20014. #elif defined(HAVE_LIBUSBHID_H)
  20015. #include <libusbhid.h>
  20016. #endif
  20017. int
  20018. main ()
  20019. {
  20020. struct usb_ctl_report buf;
  20021. if (buf.ucr_data) { }
  20022. ;
  20023. return 0;
  20024. }
  20025. _ACEOF
  20026. if ac_fn_c_try_compile "$LINENO"; then :
  20027. have_usbhid_ucr_data=yes
  20028. fi
  20029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20030. if test x$have_usbhid_ucr_data = xyes; then
  20031. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20032. fi
  20033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20034. $as_echo "$have_usbhid_ucr_data" >&6; }
  20035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20036. $as_echo_n "checking for new usbhid API... " >&6; }
  20037. have_usbhid_new=no
  20038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20039. /* end confdefs.h. */
  20040. #include <sys/types.h>
  20041. #if defined(HAVE_USB_H)
  20042. #include <usb.h>
  20043. #endif
  20044. #ifdef __DragonFly__
  20045. #include <bus/usb/usb.h>
  20046. #include <bus/usb/usbhid.h>
  20047. #else
  20048. #include <dev/usb/usb.h>
  20049. #include <dev/usb/usbhid.h>
  20050. #endif
  20051. #if defined(HAVE_USBHID_H)
  20052. #include <usbhid.h>
  20053. #elif defined(HAVE_LIBUSB_H)
  20054. #include <libusb.h>
  20055. #elif defined(HAVE_LIBUSBHID_H)
  20056. #include <libusbhid.h>
  20057. #endif
  20058. int
  20059. main ()
  20060. {
  20061. report_desc_t d;
  20062. hid_start_parse(d, 1, 1);
  20063. ;
  20064. return 0;
  20065. }
  20066. _ACEOF
  20067. if ac_fn_c_try_compile "$LINENO"; then :
  20068. have_usbhid_new=yes
  20069. fi
  20070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20071. if test x$have_usbhid_new = xyes; then
  20072. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20073. fi
  20074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20075. $as_echo "$have_usbhid_new" >&6; }
  20076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20077. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20078. have_machine_joystick=no
  20079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20080. /* end confdefs.h. */
  20081. #include <machine/joystick.h>
  20082. int
  20083. main ()
  20084. {
  20085. struct joystick t;
  20086. ;
  20087. return 0;
  20088. }
  20089. _ACEOF
  20090. if ac_fn_c_try_compile "$LINENO"; then :
  20091. have_machine_joystick=yes
  20092. fi
  20093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20094. if test x$have_machine_joystick = xyes; then
  20095. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20096. fi
  20097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20098. $as_echo "$have_machine_joystick" >&6; }
  20099. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20100. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20101. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20102. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20103. have_joystick=yes
  20104. fi
  20105. CFLAGS="$save_CFLAGS"
  20106. fi
  20107. ;;
  20108. esac
  20109. }
  20110. CheckClockGettime()
  20111. {
  20112. # Check whether --enable-clock_gettime was given.
  20113. if test "${enable_clock_gettime+set}" = set; then :
  20114. enableval=$enable_clock_gettime;
  20115. else
  20116. enable_clock_gettime=yes
  20117. fi
  20118. if test x$enable_clock_gettime = xyes; then
  20119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20120. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20121. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20122. $as_echo_n "(cached) " >&6
  20123. else
  20124. ac_check_lib_save_LIBS=$LIBS
  20125. LIBS="-lrt $LIBS"
  20126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20127. /* end confdefs.h. */
  20128. /* Override any GCC internal prototype to avoid an error.
  20129. Use char because int might match the return type of a GCC
  20130. builtin and then its argument prototype would still apply. */
  20131. #ifdef __cplusplus
  20132. extern "C"
  20133. #endif
  20134. char clock_gettime ();
  20135. int
  20136. main ()
  20137. {
  20138. return clock_gettime ();
  20139. ;
  20140. return 0;
  20141. }
  20142. _ACEOF
  20143. if ac_fn_c_try_link "$LINENO"; then :
  20144. ac_cv_lib_rt_clock_gettime=yes
  20145. else
  20146. ac_cv_lib_rt_clock_gettime=no
  20147. fi
  20148. rm -f core conftest.err conftest.$ac_objext \
  20149. conftest$ac_exeext conftest.$ac_ext
  20150. LIBS=$ac_check_lib_save_LIBS
  20151. fi
  20152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20153. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20154. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20155. have_clock_gettime=yes
  20156. fi
  20157. if test x$have_clock_gettime = xyes; then
  20158. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20159. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20160. else
  20161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20162. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20163. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20164. $as_echo_n "(cached) " >&6
  20165. else
  20166. ac_check_lib_save_LIBS=$LIBS
  20167. LIBS="-lc $LIBS"
  20168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20169. /* end confdefs.h. */
  20170. /* Override any GCC internal prototype to avoid an error.
  20171. Use char because int might match the return type of a GCC
  20172. builtin and then its argument prototype would still apply. */
  20173. #ifdef __cplusplus
  20174. extern "C"
  20175. #endif
  20176. char clock_gettime ();
  20177. int
  20178. main ()
  20179. {
  20180. return clock_gettime ();
  20181. ;
  20182. return 0;
  20183. }
  20184. _ACEOF
  20185. if ac_fn_c_try_link "$LINENO"; then :
  20186. ac_cv_lib_c_clock_gettime=yes
  20187. else
  20188. ac_cv_lib_c_clock_gettime=no
  20189. fi
  20190. rm -f core conftest.err conftest.$ac_objext \
  20191. conftest$ac_exeext conftest.$ac_ext
  20192. LIBS=$ac_check_lib_save_LIBS
  20193. fi
  20194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20195. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20196. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20197. have_clock_gettime=yes
  20198. fi
  20199. if test x$have_clock_gettime = xyes; then
  20200. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20201. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20202. fi
  20203. fi
  20204. fi
  20205. }
  20206. CheckLinuxVersion()
  20207. {
  20208. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20209. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20210. have_linux_version_h=yes
  20211. fi
  20212. if test x$have_linux_version_h = xyes; then
  20213. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20214. fi
  20215. }
  20216. CheckRPATH()
  20217. {
  20218. # Check whether --enable-rpath was given.
  20219. if test "${enable_rpath+set}" = set; then :
  20220. enableval=$enable_rpath;
  20221. else
  20222. enable_rpath=yes
  20223. fi
  20224. }
  20225. CheckWarnAll
  20226. case "$host" in
  20227. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20228. case "$host" in
  20229. *-*-androideabi*)
  20230. # Android
  20231. ARCH=android
  20232. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20233. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20234. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20235. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20236. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20237. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20238. if test x$enable_video = xyes; then
  20239. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20240. # FIXME: confdefs? Not AC_DEFINE?
  20241. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20242. SUMMARY_video="${SUMMARY_video} android"
  20243. fi
  20244. ;;
  20245. *-*-linux*) ARCH=linux ;;
  20246. *-*-uclinux*) ARCH=linux ;;
  20247. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20248. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20249. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20250. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20251. *-*-bsdi*) ARCH=bsdi ;;
  20252. *-*-freebsd*) ARCH=freebsd ;;
  20253. *-*-dragonfly*) ARCH=freebsd ;;
  20254. *-*-netbsd*) ARCH=netbsd ;;
  20255. *-*-openbsd*) ARCH=openbsd ;;
  20256. *-*-sysv5*) ARCH=sysv5 ;;
  20257. *-*-solaris*) ARCH=solaris ;;
  20258. *-*-hpux*) ARCH=hpux ;;
  20259. *-*-aix*) ARCH=aix ;;
  20260. *-*-minix*) ARCH=minix ;;
  20261. *-*-nto*) ARCH=nto
  20262. CheckQNXVideo
  20263. ;;
  20264. esac
  20265. CheckVisibilityHidden
  20266. CheckDeclarationAfterStatement
  20267. CheckDummyVideo
  20268. CheckDiskAudio
  20269. CheckDummyAudio
  20270. CheckDLOPEN
  20271. CheckOSS
  20272. CheckALSA
  20273. CheckPulseAudio
  20274. CheckJACK
  20275. CheckARTSC
  20276. CheckESD
  20277. CheckNAS
  20278. CheckSNDIO
  20279. CheckFusionSound
  20280. CheckLibSampleRate
  20281. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20282. CheckRPI
  20283. CheckX11
  20284. CheckDirectFB
  20285. CheckKMSDRM
  20286. CheckOpenGLX11
  20287. CheckOpenGLESX11
  20288. CheckVulkan
  20289. CheckMir
  20290. CheckWayland
  20291. CheckLibUDev
  20292. CheckDBus
  20293. CheckIME
  20294. CheckIBus
  20295. CheckFcitx
  20296. case $ARCH in
  20297. linux)
  20298. CheckInputEvents
  20299. CheckInputKD
  20300. ;;
  20301. esac
  20302. CheckTslib
  20303. CheckUSBHID
  20304. CheckPTHREAD
  20305. CheckClockGettime
  20306. CheckLinuxVersion
  20307. CheckRPATH
  20308. CheckVivanteVideo
  20309. # Set up files for the audio library
  20310. if test x$enable_audio = xyes; then
  20311. case $ARCH in
  20312. sysv5|solaris|hpux)
  20313. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20314. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20315. SUMMARY_audio="${SUMMARY_audio} sun"
  20316. have_audio=yes
  20317. ;;
  20318. netbsd) # Don't use this on OpenBSD, it's busted.
  20319. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20320. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20321. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20322. have_audio=yes
  20323. ;;
  20324. aix)
  20325. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20326. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20327. SUMMARY_audio="${SUMMARY_audio} paudio"
  20328. have_audio=yes
  20329. ;;
  20330. android)
  20331. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20332. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20333. SUMMARY_audio="${SUMMARY_audio} android"
  20334. have_audio=yes
  20335. ;;
  20336. nto)
  20337. CheckQNXAudio
  20338. ;;
  20339. esac
  20340. fi
  20341. # Set up files for the joystick library
  20342. if test x$enable_joystick = xyes; then
  20343. case $ARCH in
  20344. linux)
  20345. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20346. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20347. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20348. have_joystick=yes
  20349. ;;
  20350. android)
  20351. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20352. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20353. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20354. have_joystick=yes
  20355. ;;
  20356. esac
  20357. fi
  20358. # Set up files for the haptic library
  20359. if test x$enable_haptic = xyes; then
  20360. if test x$use_input_events = xyes; then
  20361. case $ARCH in
  20362. linux)
  20363. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20364. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20365. have_haptic=yes
  20366. ;;
  20367. esac
  20368. fi
  20369. fi
  20370. # Set up files for the power library
  20371. if test x$enable_power = xyes; then
  20372. case $ARCH in
  20373. linux)
  20374. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20375. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20376. have_power=yes
  20377. ;;
  20378. android)
  20379. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20380. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20381. have_power=yes
  20382. ;;
  20383. esac
  20384. fi
  20385. # Set up files for the filesystem library
  20386. if test x$enable_filesystem = xyes; then
  20387. case $ARCH in
  20388. android)
  20389. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20390. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20391. have_filesystem=yes
  20392. ;;
  20393. *)
  20394. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20395. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20396. have_filesystem=yes
  20397. ;;
  20398. esac
  20399. fi
  20400. # Set up files for the timer library
  20401. if test x$enable_timers = xyes; then
  20402. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20403. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20404. have_timers=yes
  20405. fi
  20406. # Set up files for udev hotplugging support
  20407. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20408. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20409. fi
  20410. # Set up files for evdev input
  20411. if test x$use_input_events = xyes; then
  20412. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20413. fi
  20414. # Set up other core UNIX files
  20415. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20416. ;;
  20417. *-*-cygwin* | *-*-mingw32*)
  20418. ARCH=win32
  20419. if test "$build" != "$host"; then # cross-compiling
  20420. # Default cross-compile location
  20421. ac_default_prefix=/usr/local/cross-tools/$host
  20422. else
  20423. # Look for the location of the tools and install there
  20424. if test "$BUILD_PREFIX" != ""; then
  20425. ac_default_prefix=$BUILD_PREFIX
  20426. fi
  20427. fi
  20428. CheckDeclarationAfterStatement
  20429. CheckDummyVideo
  20430. CheckDiskAudio
  20431. CheckDummyAudio
  20432. CheckWINDOWS
  20433. CheckWINDOWSGL
  20434. CheckWINDOWSGLES
  20435. CheckVulkan
  20436. CheckDIRECTX
  20437. # Set up the core platform files
  20438. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20439. # Set up files for the video library
  20440. if test x$enable_video = xyes; then
  20441. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20442. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20443. have_video=yes
  20444. # Check whether --enable-render-d3d was given.
  20445. if test "${enable_render_d3d+set}" = set; then :
  20446. enableval=$enable_render_d3d;
  20447. else
  20448. enable_render_d3d=yes
  20449. fi
  20450. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20451. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20452. fi
  20453. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20454. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20455. fi
  20456. fi
  20457. # Set up files for the audio library
  20458. if test x$enable_audio = xyes; then
  20459. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20460. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20461. if test x$have_dsound = xyes; then
  20462. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20463. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20464. fi
  20465. if test x$have_xaudio2 = xyes; then
  20466. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  20467. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  20468. fi
  20469. if test x$have_wasapi = xyes; then
  20470. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20471. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20472. fi
  20473. have_audio=yes
  20474. fi
  20475. # Set up files for the joystick library
  20476. if test x$enable_joystick = xyes; then
  20477. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20478. if test x$have_xinput = xyes; then
  20479. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20480. fi
  20481. if test x$have_dinput = xyes; then
  20482. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20483. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20484. fi
  20485. else
  20486. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20487. fi
  20488. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20489. have_joystick=yes
  20490. fi
  20491. if test x$enable_haptic = 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_HAPTIC_XINPUT 1" >>confdefs.h
  20495. fi
  20496. if test x$have_dinput = xyes; then
  20497. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20498. fi
  20499. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20500. have_haptic=yes
  20501. fi
  20502. fi
  20503. if test x$enable_power = xyes; then
  20504. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20505. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20506. have_power=yes
  20507. fi
  20508. if test x$enable_filesystem = xyes; then
  20509. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20510. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20511. have_filesystem=yes
  20512. fi
  20513. # Set up files for the thread library
  20514. if test x$enable_threads = xyes; then
  20515. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20516. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20517. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20518. have_threads=yes
  20519. fi
  20520. # Set up files for the timer library
  20521. if test x$enable_timers = xyes; then
  20522. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20523. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20524. have_timers=yes
  20525. fi
  20526. # Set up files for the shared object loading library
  20527. if test x$enable_loadso = xyes; then
  20528. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20529. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20530. have_loadso=yes
  20531. fi
  20532. # Set up the system libraries we need
  20533. if test -f /lib/w32api/libuuid.a; then
  20534. LIBUUID=/lib/w32api/libuuid.a
  20535. else
  20536. LIBUUID=-luuid
  20537. fi
  20538. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20539. # The Windows platform requires special setup
  20540. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20541. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20542. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20543. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20544. # Check to see if this is a mingw or cygwin build
  20545. have_mingw32=
  20546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20547. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20548. if ${ac_cv_lib_mingw32_main+:} false; then :
  20549. $as_echo_n "(cached) " >&6
  20550. else
  20551. ac_check_lib_save_LIBS=$LIBS
  20552. LIBS="-lmingw32 $LIBS"
  20553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20554. /* end confdefs.h. */
  20555. int
  20556. main ()
  20557. {
  20558. return main ();
  20559. ;
  20560. return 0;
  20561. }
  20562. _ACEOF
  20563. if ac_fn_c_try_link "$LINENO"; then :
  20564. ac_cv_lib_mingw32_main=yes
  20565. else
  20566. ac_cv_lib_mingw32_main=no
  20567. fi
  20568. rm -f core conftest.err conftest.$ac_objext \
  20569. conftest$ac_exeext conftest.$ac_ext
  20570. LIBS=$ac_check_lib_save_LIBS
  20571. fi
  20572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20573. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20574. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20575. have_mingw32=yes
  20576. fi
  20577. if test x$have_mingw32 = xyes; then
  20578. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20579. else
  20580. SDL_LIBS="-lcygwin $SDL_LIBS"
  20581. fi
  20582. ;;
  20583. *-*-beos*)
  20584. as_fn_error $? "
  20585. *** BeOS support has been removed as of SDL 2.0.2.
  20586. " "$LINENO" 5
  20587. ;;
  20588. *-*-haiku*)
  20589. ARCH=haiku
  20590. ac_default_prefix=/boot/system
  20591. CheckDummyVideo
  20592. CheckDiskAudio
  20593. CheckDummyAudio
  20594. CheckDLOPEN
  20595. CheckHaikuVideo
  20596. CheckHaikuGL
  20597. CheckPTHREAD
  20598. # Set up files for the audio library
  20599. if test x$enable_audio = xyes; then
  20600. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20601. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20602. SUMMARY_audio="${SUMMARY_audio} haiku"
  20603. have_audio=yes
  20604. fi
  20605. # Set up files for the joystick library
  20606. if test x$enable_joystick = xyes; then
  20607. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20608. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20609. have_joystick=yes
  20610. fi
  20611. # Set up files for the timer library
  20612. if test x$enable_timers = xyes; then
  20613. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20614. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20615. have_timers=yes
  20616. fi
  20617. # Set up files for the system power library
  20618. if test x$enable_power = xyes; then
  20619. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20620. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20621. have_power=yes
  20622. fi
  20623. # Set up files for the system filesystem library
  20624. if test x$enable_filesystem = xyes; then
  20625. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20626. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20627. have_filesystem=yes
  20628. fi
  20629. # The Haiku platform requires special setup.
  20630. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20631. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20632. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20633. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20634. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20636. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20637. if eval \${$as_ac_File+:} false; then :
  20638. $as_echo_n "(cached) " >&6
  20639. else
  20640. test "$cross_compiling" = yes &&
  20641. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20642. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20643. eval "$as_ac_File=yes"
  20644. else
  20645. eval "$as_ac_File=no"
  20646. fi
  20647. fi
  20648. eval ac_res=\$$as_ac_File
  20649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20650. $as_echo "$ac_res" >&6; }
  20651. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20652. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20653. else
  20654. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20655. fi
  20656. ;;
  20657. arm*-apple-darwin*|*-ios-*)
  20658. ARCH=ios
  20659. CheckVisibilityHidden
  20660. CheckDeclarationAfterStatement
  20661. CheckDummyVideo
  20662. CheckDiskAudio
  20663. CheckDummyAudio
  20664. CheckDLOPEN
  20665. CheckPTHREAD
  20666. CheckVulkan
  20667. # Set up files for the audio library
  20668. if test x$enable_audio = xyes; then
  20669. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20670. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20671. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20672. have_audio=yes
  20673. fi
  20674. # Set up files for the joystick library
  20675. if test x$enable_joystick = xyes; then
  20676. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20677. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20678. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20679. have_joystick=yes
  20680. fi
  20681. # Set up files for the haptic library
  20682. #if test x$enable_haptic = xyes; then
  20683. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20684. # have_haptic=yes
  20685. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20686. #fi
  20687. # Set up files for the power library
  20688. if test x$enable_power = xyes; then
  20689. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20690. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20691. have_power=yes
  20692. fi
  20693. # Set up files for the filesystem library
  20694. if test x$enable_filesystem = xyes; then
  20695. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20696. have_filesystem=yes
  20697. fi
  20698. # Set up additional files for the file library
  20699. if test x$enable_file = xyes; then
  20700. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20701. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20702. fi
  20703. # Set up files for the timer library
  20704. if test x$enable_timers = xyes; then
  20705. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20706. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20707. have_timers=yes
  20708. fi
  20709. # Set up other core UNIX files
  20710. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20711. # The iOS platform requires special setup.
  20712. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20713. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20714. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20715. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20716. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20717. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20718. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20719. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20720. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20721. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20722. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20723. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20724. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20725. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20726. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20727. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20728. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20729. ;;
  20730. *-*-darwin* )
  20731. # This could be either full "Mac OS X", or plain "Darwin" which is
  20732. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20733. # Next line is broken, and a few files below require Mac OS X (full)
  20734. ARCH=macosx
  20735. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20736. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20737. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20738. CheckVisibilityHidden
  20739. CheckDeclarationAfterStatement
  20740. CheckDummyVideo
  20741. CheckDiskAudio
  20742. CheckDummyAudio
  20743. CheckDLOPEN
  20744. CheckCOCOA
  20745. CheckX11
  20746. CheckMacGL
  20747. CheckOpenGLX11
  20748. CheckVulkan
  20749. CheckPTHREAD
  20750. # Set up files for the audio library
  20751. if test x$enable_audio = xyes; then
  20752. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20753. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20754. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20755. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20756. have_audio=yes
  20757. fi
  20758. # Set up files for the joystick library
  20759. if test x$enable_joystick = xyes; then
  20760. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20761. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20762. have_joystick=yes
  20763. fi
  20764. # Set up files for the haptic library
  20765. if test x$enable_haptic = xyes; then
  20766. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20767. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20768. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20769. have_haptic=yes
  20770. fi
  20771. # Set up files for the power library
  20772. if test x$enable_power = xyes; then
  20773. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20774. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20775. have_power=yes
  20776. fi
  20777. # Set up files for the filesystem library
  20778. if test x$enable_filesystem = xyes; then
  20779. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20780. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20781. have_filesystem=yes
  20782. fi
  20783. # Set up files for the timer library
  20784. if test x$enable_timers = xyes; then
  20785. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20786. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20787. have_timers=yes
  20788. fi
  20789. # Set up additional files for the file library
  20790. if test x$enable_file = xyes; then
  20791. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20792. fi
  20793. # Set up other core UNIX files
  20794. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20795. # The Mac OS X platform requires special setup.
  20796. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20797. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20798. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20799. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20800. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20801. ;;
  20802. *-nacl|*-pnacl)
  20803. ARCH=nacl
  20804. CheckNativeClient
  20805. CheckDummyAudio
  20806. CheckDummyVideo
  20807. CheckInputEvents
  20808. CheckPTHREAD
  20809. # Set up files for the timer library
  20810. if test x$enable_timers = xyes; then
  20811. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20812. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20813. have_timers=yes
  20814. fi
  20815. if test x$enable_filesystem = xyes; then
  20816. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20817. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20818. have_filesystem=yes
  20819. fi
  20820. ;;
  20821. *-*-emscripten* )
  20822. if test x$enable_video = xyes; then
  20823. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20824. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20825. have_video=yes
  20826. SUMMARY_video="${SUMMARY_video} emscripten"
  20827. fi
  20828. if test x$enable_audio = xyes; then
  20829. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20830. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20831. have_audio=yes
  20832. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20833. fi
  20834. CheckVisibilityHidden
  20835. CheckDeclarationAfterStatement
  20836. CheckDummyVideo
  20837. CheckDiskAudio
  20838. CheckDummyAudio
  20839. CheckDLOPEN
  20840. CheckClockGettime
  20841. CheckEmscriptenGLES
  20842. # Set up files for the power library
  20843. if test x$enable_power = xyes; then
  20844. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20845. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20846. have_power=yes
  20847. fi
  20848. # Set up files for the power library
  20849. if test x$enable_joystick = xyes; then
  20850. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20851. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20852. have_joystick=yes
  20853. fi
  20854. # Set up files for the filesystem library
  20855. if test x$enable_filesystem = xyes; then
  20856. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20857. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20858. have_filesystem=yes
  20859. fi
  20860. # Set up files for the timer library
  20861. if test x$enable_timers = xyes; then
  20862. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20863. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20864. have_timers=yes
  20865. fi
  20866. ;;
  20867. *)
  20868. as_fn_error $? "
  20869. *** Unsupported host: Please add to configure.in
  20870. " "$LINENO" 5
  20871. ;;
  20872. esac
  20873. # Verify that we have all the platform specific files we need
  20874. if test x$have_joystick != xyes; then
  20875. if test x$enable_joystick = xyes; then
  20876. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20877. fi
  20878. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20879. fi
  20880. if test x$have_haptic != xyes; then
  20881. if test x$enable_haptic = xyes; then
  20882. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20883. fi
  20884. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20885. fi
  20886. if test x$have_threads != xyes; then
  20887. if test x$enable_threads = xyes; then
  20888. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20889. fi
  20890. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20891. fi
  20892. if test x$have_timers != xyes; then
  20893. if test x$enable_timers = xyes; then
  20894. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20895. fi
  20896. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20897. fi
  20898. if test x$have_filesystem != xyes; then
  20899. if test x$enable_filesystem = xyes; then
  20900. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20901. fi
  20902. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20903. fi
  20904. if test x$have_loadso != xyes; then
  20905. if test x$enable_loadso = xyes; then
  20906. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20907. fi
  20908. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20909. fi
  20910. if test x$SDLMAIN_SOURCES = x; then
  20911. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20912. fi
  20913. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20914. if test x$video_wayland = xyes; then
  20915. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20916. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20917. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20918. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20919. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20920. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20921. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20922. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20923. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20924. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20925. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20926. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20927. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20928. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20929. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20930. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20931. WAYLAND_CORE_PROTOCOL_OBJECT="
  20932. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20933. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20934. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20935. do echo ; echo \$p | sed\
  20936. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20937. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20938. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20939. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20940. do echo ; echo \$p | sed\
  20941. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20942. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20943. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20944. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20945. do echo ; echo \$p | sed\
  20946. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20947. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20948. WAYLAND_PROTOCOLS_DEPENDS="
  20949. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20950. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20951. $WAYLAND_CORE_PROTOCOL_OBJECT
  20952. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20953. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20954. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20955. "
  20956. fi
  20957. OBJECTS=`echo $SOURCES`
  20958. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20959. for EXT in asm cc m c S; do
  20960. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20961. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20962. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20963. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20964. done
  20965. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20966. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20967. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20968. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20969. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20970. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20971. \\$(WINDRES) \\$< \\$@,g"`
  20972. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20973. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20974. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20975. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20976. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  20977. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20978. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20979. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20980. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20981. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20982. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  20983. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20984. # Set runtime shared library paths as needed
  20985. if test "x$enable_rpath" = "xyes"; then
  20986. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20987. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  20989. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  20990. have_enable_new_dtags=no
  20991. save_LDFLAGS="$LDFLAGS"
  20992. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  20993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20994. /* end confdefs.h. */
  20995. int
  20996. main ()
  20997. {
  20998. ;
  20999. return 0;
  21000. }
  21001. _ACEOF
  21002. if ac_fn_c_try_link "$LINENO"; then :
  21003. have_enable_new_dtags=yes
  21004. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21005. fi
  21006. rm -f core conftest.err conftest.$ac_objext \
  21007. conftest$ac_exeext conftest.$ac_ext
  21008. LDFLAGS="$save_LDFLAGS"
  21009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21010. $as_echo "$have_enable_new_dtags" >&6; }
  21011. fi
  21012. if test $ARCH = solaris; then
  21013. SDL_RLD_FLAGS="-R\${libdir}"
  21014. fi
  21015. else
  21016. SDL_RLD_FLAGS=""
  21017. fi
  21018. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21019. if test x$enable_shared = xyes; then
  21020. ENABLE_SHARED_TRUE=
  21021. ENABLE_SHARED_FALSE="#"
  21022. else
  21023. ENABLE_SHARED_TRUE="#"
  21024. ENABLE_SHARED_FALSE=
  21025. fi
  21026. if test x$enable_static = xyes; then
  21027. ENABLE_STATIC_TRUE=
  21028. ENABLE_STATIC_FALSE="#"
  21029. else
  21030. ENABLE_STATIC_TRUE="#"
  21031. ENABLE_STATIC_FALSE=
  21032. fi
  21033. cat >Makefile.rules <<__EOF__
  21034. # Build rules for objects
  21035. -include \$(OBJECTS:.lo=.d)
  21036. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21037. $srcdir/src/SDL.c: update-revision
  21038. $DEPENDS
  21039. $VERSION_DEPENDS
  21040. $SDLMAIN_DEPENDS
  21041. $SDLTEST_DEPENDS
  21042. $WAYLAND_PROTOCOLS_DEPENDS
  21043. __EOF__
  21044. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21045. ac_config_commands="$ac_config_commands sdl2_config"
  21046. SUMMARY="SDL2 Configure Summary:\n"
  21047. if test x$enable_shared = xyes; then
  21048. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21049. fi
  21050. if test x$enable_static = xyes; then
  21051. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21052. fi
  21053. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21054. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21055. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21056. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21057. if test x$have_x = xyes; then
  21058. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21059. fi
  21060. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21061. if test x$have_samplerate_h_hdr = xyes; then
  21062. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21063. else
  21064. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21065. fi
  21066. if test x$have_libudev_h_hdr = xyes; then
  21067. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21068. else
  21069. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21070. fi
  21071. if test x$have_dbus_dbus_h_hdr = xyes; then
  21072. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21073. else
  21074. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21075. fi
  21076. if test x$enable_ime = xyes; then
  21077. SUMMARY="${SUMMARY}Using ime : YES\n"
  21078. else
  21079. SUMMARY="${SUMMARY}Using ime : NO\n"
  21080. fi
  21081. if test x$have_ibus_ibus_h_hdr = xyes; then
  21082. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21083. else
  21084. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21085. fi
  21086. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21087. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21088. else
  21089. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21090. fi
  21091. ac_config_commands="$ac_config_commands summary"
  21092. cat >confcache <<\_ACEOF
  21093. # This file is a shell script that caches the results of configure
  21094. # tests run on this system so they can be shared between configure
  21095. # scripts and configure runs, see configure's option --config-cache.
  21096. # It is not useful on other systems. If it contains results you don't
  21097. # want to keep, you may remove or edit it.
  21098. #
  21099. # config.status only pays attention to the cache file if you give it
  21100. # the --recheck option to rerun configure.
  21101. #
  21102. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21103. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21104. # following values.
  21105. _ACEOF
  21106. # The following way of writing the cache mishandles newlines in values,
  21107. # but we know of no workaround that is simple, portable, and efficient.
  21108. # So, we kill variables containing newlines.
  21109. # Ultrix sh set writes to stderr and can't be redirected directly,
  21110. # and sets the high bit in the cache file unless we assign to the vars.
  21111. (
  21112. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21113. eval ac_val=\$$ac_var
  21114. case $ac_val in #(
  21115. *${as_nl}*)
  21116. case $ac_var in #(
  21117. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21118. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21119. esac
  21120. case $ac_var in #(
  21121. _ | IFS | as_nl) ;; #(
  21122. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21123. *) { eval $ac_var=; unset $ac_var;} ;;
  21124. esac ;;
  21125. esac
  21126. done
  21127. (set) 2>&1 |
  21128. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21129. *${as_nl}ac_space=\ *)
  21130. # `set' does not quote correctly, so add quotes: double-quote
  21131. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21132. sed -n \
  21133. "s/'/'\\\\''/g;
  21134. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21135. ;; #(
  21136. *)
  21137. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21138. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21139. ;;
  21140. esac |
  21141. sort
  21142. ) |
  21143. sed '
  21144. /^ac_cv_env_/b end
  21145. t clear
  21146. :clear
  21147. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21148. t end
  21149. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21150. :end' >>confcache
  21151. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21152. if test -w "$cache_file"; then
  21153. if test "x$cache_file" != "x/dev/null"; then
  21154. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21155. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21156. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21157. cat confcache >"$cache_file"
  21158. else
  21159. case $cache_file in #(
  21160. */* | ?:*)
  21161. mv -f confcache "$cache_file"$$ &&
  21162. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21163. *)
  21164. mv -f confcache "$cache_file" ;;
  21165. esac
  21166. fi
  21167. fi
  21168. else
  21169. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21170. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21171. fi
  21172. fi
  21173. rm -f confcache
  21174. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21175. # Let make expand exec_prefix.
  21176. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21177. DEFS=-DHAVE_CONFIG_H
  21178. ac_libobjs=
  21179. ac_ltlibobjs=
  21180. U=
  21181. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21182. # 1. Remove the extension, and $U if already installed.
  21183. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21184. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21185. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21186. # will be set to the directory where LIBOBJS objects are built.
  21187. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21188. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21189. done
  21190. LIBOBJS=$ac_libobjs
  21191. LTLIBOBJS=$ac_ltlibobjs
  21192. : "${CONFIG_STATUS=./config.status}"
  21193. ac_write_fail=0
  21194. ac_clean_files_save=$ac_clean_files
  21195. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21196. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21197. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21198. as_write_fail=0
  21199. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21200. #! $SHELL
  21201. # Generated by $as_me.
  21202. # Run this file to recreate the current configuration.
  21203. # Compiler output produced by configure, useful for debugging
  21204. # configure, is in config.log if it exists.
  21205. debug=false
  21206. ac_cs_recheck=false
  21207. ac_cs_silent=false
  21208. SHELL=\${CONFIG_SHELL-$SHELL}
  21209. export SHELL
  21210. _ASEOF
  21211. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21212. ## -------------------- ##
  21213. ## M4sh Initialization. ##
  21214. ## -------------------- ##
  21215. # Be more Bourne compatible
  21216. DUALCASE=1; export DUALCASE # for MKS sh
  21217. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21218. emulate sh
  21219. NULLCMD=:
  21220. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21221. # is contrary to our usage. Disable this feature.
  21222. alias -g '${1+"$@"}'='"$@"'
  21223. setopt NO_GLOB_SUBST
  21224. else
  21225. case `(set -o) 2>/dev/null` in #(
  21226. *posix*) :
  21227. set -o posix ;; #(
  21228. *) :
  21229. ;;
  21230. esac
  21231. fi
  21232. as_nl='
  21233. '
  21234. export as_nl
  21235. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21236. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21237. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21238. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21239. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21240. # but without wasting forks for bash or zsh.
  21241. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21242. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21243. as_echo='print -r --'
  21244. as_echo_n='print -rn --'
  21245. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21246. as_echo='printf %s\n'
  21247. as_echo_n='printf %s'
  21248. else
  21249. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21250. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21251. as_echo_n='/usr/ucb/echo -n'
  21252. else
  21253. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21254. as_echo_n_body='eval
  21255. arg=$1;
  21256. case $arg in #(
  21257. *"$as_nl"*)
  21258. expr "X$arg" : "X\\(.*\\)$as_nl";
  21259. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21260. esac;
  21261. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21262. '
  21263. export as_echo_n_body
  21264. as_echo_n='sh -c $as_echo_n_body as_echo'
  21265. fi
  21266. export as_echo_body
  21267. as_echo='sh -c $as_echo_body as_echo'
  21268. fi
  21269. # The user is always right.
  21270. if test "${PATH_SEPARATOR+set}" != set; then
  21271. PATH_SEPARATOR=:
  21272. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21273. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21274. PATH_SEPARATOR=';'
  21275. }
  21276. fi
  21277. # IFS
  21278. # We need space, tab and new line, in precisely that order. Quoting is
  21279. # there to prevent editors from complaining about space-tab.
  21280. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21281. # splitting by setting IFS to empty value.)
  21282. IFS=" "" $as_nl"
  21283. # Find who we are. Look in the path if we contain no directory separator.
  21284. as_myself=
  21285. case $0 in #((
  21286. *[\\/]* ) as_myself=$0 ;;
  21287. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21288. for as_dir in $PATH
  21289. do
  21290. IFS=$as_save_IFS
  21291. test -z "$as_dir" && as_dir=.
  21292. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21293. done
  21294. IFS=$as_save_IFS
  21295. ;;
  21296. esac
  21297. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21298. # in which case we are not to be found in the path.
  21299. if test "x$as_myself" = x; then
  21300. as_myself=$0
  21301. fi
  21302. if test ! -f "$as_myself"; then
  21303. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21304. exit 1
  21305. fi
  21306. # Unset variables that we do not need and which cause bugs (e.g. in
  21307. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21308. # suppresses any "Segmentation fault" message there. '((' could
  21309. # trigger a bug in pdksh 5.2.14.
  21310. for as_var in BASH_ENV ENV MAIL MAILPATH
  21311. do eval test x\${$as_var+set} = xset \
  21312. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21313. done
  21314. PS1='$ '
  21315. PS2='> '
  21316. PS4='+ '
  21317. # NLS nuisances.
  21318. LC_ALL=C
  21319. export LC_ALL
  21320. LANGUAGE=C
  21321. export LANGUAGE
  21322. # CDPATH.
  21323. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21324. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21325. # ----------------------------------------
  21326. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21327. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21328. # script with STATUS, using 1 if that was 0.
  21329. as_fn_error ()
  21330. {
  21331. as_status=$1; test $as_status -eq 0 && as_status=1
  21332. if test "$4"; then
  21333. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21334. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21335. fi
  21336. $as_echo "$as_me: error: $2" >&2
  21337. as_fn_exit $as_status
  21338. } # as_fn_error
  21339. # as_fn_set_status STATUS
  21340. # -----------------------
  21341. # Set $? to STATUS, without forking.
  21342. as_fn_set_status ()
  21343. {
  21344. return $1
  21345. } # as_fn_set_status
  21346. # as_fn_exit STATUS
  21347. # -----------------
  21348. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21349. as_fn_exit ()
  21350. {
  21351. set +e
  21352. as_fn_set_status $1
  21353. exit $1
  21354. } # as_fn_exit
  21355. # as_fn_unset VAR
  21356. # ---------------
  21357. # Portably unset VAR.
  21358. as_fn_unset ()
  21359. {
  21360. { eval $1=; unset $1;}
  21361. }
  21362. as_unset=as_fn_unset
  21363. # as_fn_append VAR VALUE
  21364. # ----------------------
  21365. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21366. # advantage of any shell optimizations that allow amortized linear growth over
  21367. # repeated appends, instead of the typical quadratic growth present in naive
  21368. # implementations.
  21369. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21370. eval 'as_fn_append ()
  21371. {
  21372. eval $1+=\$2
  21373. }'
  21374. else
  21375. as_fn_append ()
  21376. {
  21377. eval $1=\$$1\$2
  21378. }
  21379. fi # as_fn_append
  21380. # as_fn_arith ARG...
  21381. # ------------------
  21382. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21383. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21384. # must be portable across $(()) and expr.
  21385. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21386. eval 'as_fn_arith ()
  21387. {
  21388. as_val=$(( $* ))
  21389. }'
  21390. else
  21391. as_fn_arith ()
  21392. {
  21393. as_val=`expr "$@" || test $? -eq 1`
  21394. }
  21395. fi # as_fn_arith
  21396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21398. as_expr=expr
  21399. else
  21400. as_expr=false
  21401. fi
  21402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21403. as_basename=basename
  21404. else
  21405. as_basename=false
  21406. fi
  21407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21408. as_dirname=dirname
  21409. else
  21410. as_dirname=false
  21411. fi
  21412. as_me=`$as_basename -- "$0" ||
  21413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21414. X"$0" : 'X\(//\)$' \| \
  21415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21416. $as_echo X/"$0" |
  21417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21418. s//\1/
  21419. q
  21420. }
  21421. /^X\/\(\/\/\)$/{
  21422. s//\1/
  21423. q
  21424. }
  21425. /^X\/\(\/\).*/{
  21426. s//\1/
  21427. q
  21428. }
  21429. s/.*/./; q'`
  21430. # Avoid depending upon Character Ranges.
  21431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21434. as_cr_digits='0123456789'
  21435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21436. ECHO_C= ECHO_N= ECHO_T=
  21437. case `echo -n x` in #(((((
  21438. -n*)
  21439. case `echo 'xy\c'` in
  21440. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21441. xy) ECHO_C='\c';;
  21442. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21443. ECHO_T=' ';;
  21444. esac;;
  21445. *)
  21446. ECHO_N='-n';;
  21447. esac
  21448. rm -f conf$$ conf$$.exe conf$$.file
  21449. if test -d conf$$.dir; then
  21450. rm -f conf$$.dir/conf$$.file
  21451. else
  21452. rm -f conf$$.dir
  21453. mkdir conf$$.dir 2>/dev/null
  21454. fi
  21455. if (echo >conf$$.file) 2>/dev/null; then
  21456. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21457. as_ln_s='ln -s'
  21458. # ... but there are two gotchas:
  21459. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21460. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21461. # In both cases, we have to default to `cp -pR'.
  21462. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21463. as_ln_s='cp -pR'
  21464. elif ln conf$$.file conf$$ 2>/dev/null; then
  21465. as_ln_s=ln
  21466. else
  21467. as_ln_s='cp -pR'
  21468. fi
  21469. else
  21470. as_ln_s='cp -pR'
  21471. fi
  21472. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21473. rmdir conf$$.dir 2>/dev/null
  21474. # as_fn_mkdir_p
  21475. # -------------
  21476. # Create "$as_dir" as a directory, including parents if necessary.
  21477. as_fn_mkdir_p ()
  21478. {
  21479. case $as_dir in #(
  21480. -*) as_dir=./$as_dir;;
  21481. esac
  21482. test -d "$as_dir" || eval $as_mkdir_p || {
  21483. as_dirs=
  21484. while :; do
  21485. case $as_dir in #(
  21486. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21487. *) as_qdir=$as_dir;;
  21488. esac
  21489. as_dirs="'$as_qdir' $as_dirs"
  21490. as_dir=`$as_dirname -- "$as_dir" ||
  21491. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21492. X"$as_dir" : 'X\(//\)[^/]' \| \
  21493. X"$as_dir" : 'X\(//\)$' \| \
  21494. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21495. $as_echo X"$as_dir" |
  21496. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21497. s//\1/
  21498. q
  21499. }
  21500. /^X\(\/\/\)[^/].*/{
  21501. s//\1/
  21502. q
  21503. }
  21504. /^X\(\/\/\)$/{
  21505. s//\1/
  21506. q
  21507. }
  21508. /^X\(\/\).*/{
  21509. s//\1/
  21510. q
  21511. }
  21512. s/.*/./; q'`
  21513. test -d "$as_dir" && break
  21514. done
  21515. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21516. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21517. } # as_fn_mkdir_p
  21518. if mkdir -p . 2>/dev/null; then
  21519. as_mkdir_p='mkdir -p "$as_dir"'
  21520. else
  21521. test -d ./-p && rmdir ./-p
  21522. as_mkdir_p=false
  21523. fi
  21524. # as_fn_executable_p FILE
  21525. # -----------------------
  21526. # Test if FILE is an executable regular file.
  21527. as_fn_executable_p ()
  21528. {
  21529. test -f "$1" && test -x "$1"
  21530. } # as_fn_executable_p
  21531. as_test_x='test -x'
  21532. as_executable_p=as_fn_executable_p
  21533. # Sed expression to map a string onto a valid CPP name.
  21534. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21535. # Sed expression to map a string onto a valid variable name.
  21536. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21537. exec 6>&1
  21538. ## ----------------------------------- ##
  21539. ## Main body of $CONFIG_STATUS script. ##
  21540. ## ----------------------------------- ##
  21541. _ASEOF
  21542. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21543. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21544. # Save the log message, to keep $0 and so on meaningful, and to
  21545. # report actual input values of CONFIG_FILES etc. instead of their
  21546. # values after options handling.
  21547. ac_log="
  21548. This file was extended by $as_me, which was
  21549. generated by GNU Autoconf 2.69. Invocation command line was
  21550. CONFIG_FILES = $CONFIG_FILES
  21551. CONFIG_HEADERS = $CONFIG_HEADERS
  21552. CONFIG_LINKS = $CONFIG_LINKS
  21553. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21554. $ $0 $@
  21555. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21556. "
  21557. _ACEOF
  21558. case $ac_config_files in *"
  21559. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21560. esac
  21561. case $ac_config_headers in *"
  21562. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21563. esac
  21564. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21565. # Files that config.status was made for.
  21566. config_files="$ac_config_files"
  21567. config_headers="$ac_config_headers"
  21568. config_commands="$ac_config_commands"
  21569. _ACEOF
  21570. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21571. ac_cs_usage="\
  21572. \`$as_me' instantiates files and other configuration actions
  21573. from templates according to the current configuration. Unless the files
  21574. and actions are specified as TAGs, all are instantiated by default.
  21575. Usage: $0 [OPTION]... [TAG]...
  21576. -h, --help print this help, then exit
  21577. -V, --version print version number and configuration settings, then exit
  21578. --config print configuration, then exit
  21579. -q, --quiet, --silent
  21580. do not print progress messages
  21581. -d, --debug don't remove temporary files
  21582. --recheck update $as_me by reconfiguring in the same conditions
  21583. --file=FILE[:TEMPLATE]
  21584. instantiate the configuration file FILE
  21585. --header=FILE[:TEMPLATE]
  21586. instantiate the configuration header FILE
  21587. Configuration files:
  21588. $config_files
  21589. Configuration headers:
  21590. $config_headers
  21591. Configuration commands:
  21592. $config_commands
  21593. Report bugs to the package provider."
  21594. _ACEOF
  21595. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21596. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21597. ac_cs_version="\\
  21598. config.status
  21599. configured by $0, generated by GNU Autoconf 2.69,
  21600. with options \\"\$ac_cs_config\\"
  21601. Copyright (C) 2012 Free Software Foundation, Inc.
  21602. This config.status script is free software; the Free Software Foundation
  21603. gives unlimited permission to copy, distribute and modify it."
  21604. ac_pwd='$ac_pwd'
  21605. srcdir='$srcdir'
  21606. INSTALL='$INSTALL'
  21607. AWK='$AWK'
  21608. test -n "\$AWK" || AWK=awk
  21609. _ACEOF
  21610. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21611. # The default lists apply if the user does not specify any file.
  21612. ac_need_defaults=:
  21613. while test $# != 0
  21614. do
  21615. case $1 in
  21616. --*=?*)
  21617. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21618. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21619. ac_shift=:
  21620. ;;
  21621. --*=)
  21622. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21623. ac_optarg=
  21624. ac_shift=:
  21625. ;;
  21626. *)
  21627. ac_option=$1
  21628. ac_optarg=$2
  21629. ac_shift=shift
  21630. ;;
  21631. esac
  21632. case $ac_option in
  21633. # Handling of the options.
  21634. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21635. ac_cs_recheck=: ;;
  21636. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21637. $as_echo "$ac_cs_version"; exit ;;
  21638. --config | --confi | --conf | --con | --co | --c )
  21639. $as_echo "$ac_cs_config"; exit ;;
  21640. --debug | --debu | --deb | --de | --d | -d )
  21641. debug=: ;;
  21642. --file | --fil | --fi | --f )
  21643. $ac_shift
  21644. case $ac_optarg in
  21645. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21646. '') as_fn_error $? "missing file argument" ;;
  21647. esac
  21648. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21649. ac_need_defaults=false;;
  21650. --header | --heade | --head | --hea )
  21651. $ac_shift
  21652. case $ac_optarg in
  21653. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21654. esac
  21655. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21656. ac_need_defaults=false;;
  21657. --he | --h)
  21658. # Conflict between --help and --header
  21659. as_fn_error $? "ambiguous option: \`$1'
  21660. Try \`$0 --help' for more information.";;
  21661. --help | --hel | -h )
  21662. $as_echo "$ac_cs_usage"; exit ;;
  21663. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21664. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21665. ac_cs_silent=: ;;
  21666. # This is an error.
  21667. -*) as_fn_error $? "unrecognized option: \`$1'
  21668. Try \`$0 --help' for more information." ;;
  21669. *) as_fn_append ac_config_targets " $1"
  21670. ac_need_defaults=false ;;
  21671. esac
  21672. shift
  21673. done
  21674. ac_configure_extra_args=
  21675. if $ac_cs_silent; then
  21676. exec 6>/dev/null
  21677. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21678. fi
  21679. _ACEOF
  21680. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21681. if \$ac_cs_recheck; then
  21682. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21683. shift
  21684. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21685. CONFIG_SHELL='$SHELL'
  21686. export CONFIG_SHELL
  21687. exec "\$@"
  21688. fi
  21689. _ACEOF
  21690. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21691. exec 5>>config.log
  21692. {
  21693. echo
  21694. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21695. ## Running $as_me. ##
  21696. _ASBOX
  21697. $as_echo "$ac_log"
  21698. } >&5
  21699. _ACEOF
  21700. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21701. #
  21702. # INIT-COMMANDS
  21703. #
  21704. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21705. # if CDPATH is set.
  21706. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21707. sed_quote_subst='$sed_quote_subst'
  21708. double_quote_subst='$double_quote_subst'
  21709. delay_variable_subst='$delay_variable_subst'
  21710. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21711. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21712. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21713. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21714. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21715. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21716. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21717. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21718. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21719. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21720. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21721. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21722. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21723. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21724. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21725. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21726. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21727. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21728. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21729. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21730. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21731. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21732. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21733. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21734. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21735. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21736. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21737. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21738. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21739. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21740. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21741. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21742. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21743. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21744. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21745. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21746. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21747. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21748. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21749. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21750. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21751. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21752. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21753. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21754. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21755. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21756. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21757. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21758. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21759. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21760. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21761. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21762. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21763. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21764. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21765. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21766. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21767. 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"`'
  21768. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21769. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21770. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21771. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21772. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21773. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21774. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21775. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21776. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21777. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21778. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21779. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21780. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21781. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21782. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21783. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21784. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21785. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21786. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21787. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21788. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21789. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21790. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21791. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21792. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21793. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21794. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21795. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21796. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21797. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21798. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21799. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21800. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21801. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21802. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21803. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21804. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21805. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21806. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21807. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21808. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21809. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21810. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21811. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21812. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21813. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21814. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21815. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21816. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21817. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21818. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21819. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21820. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21821. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21822. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21823. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21824. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21825. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21826. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21827. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21828. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21829. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21830. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21831. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21832. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21833. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21834. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21835. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21836. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21837. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21838. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21839. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21840. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21841. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21842. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21843. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21844. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21845. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21846. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21847. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21848. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21849. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21850. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21851. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21852. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21853. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21854. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21855. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21856. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21857. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21858. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21859. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21860. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21861. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21862. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21863. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21864. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21865. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21866. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21867. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21868. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21869. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21870. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21871. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21872. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21873. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21874. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21875. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21876. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21877. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21878. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21879. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21880. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21881. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21882. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21883. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21884. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21885. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21886. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21887. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21888. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21889. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21890. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21891. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21892. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21893. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21894. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21895. LTCC='$LTCC'
  21896. LTCFLAGS='$LTCFLAGS'
  21897. compiler='$compiler_DEFAULT'
  21898. # A function that is used when there is no print builtin or printf.
  21899. func_fallback_echo ()
  21900. {
  21901. eval 'cat <<_LTECHO_EOF
  21902. \$1
  21903. _LTECHO_EOF'
  21904. }
  21905. # Quote evaled strings.
  21906. for var in AS \
  21907. DLLTOOL \
  21908. OBJDUMP \
  21909. SHELL \
  21910. ECHO \
  21911. PATH_SEPARATOR \
  21912. SED \
  21913. GREP \
  21914. EGREP \
  21915. FGREP \
  21916. LD \
  21917. NM \
  21918. LN_S \
  21919. lt_SP2NL \
  21920. lt_NL2SP \
  21921. reload_flag \
  21922. deplibs_check_method \
  21923. file_magic_cmd \
  21924. file_magic_glob \
  21925. want_nocaseglob \
  21926. sharedlib_from_linklib_cmd \
  21927. AR \
  21928. AR_FLAGS \
  21929. archiver_list_spec \
  21930. STRIP \
  21931. RANLIB \
  21932. CC \
  21933. CFLAGS \
  21934. compiler \
  21935. lt_cv_sys_global_symbol_pipe \
  21936. lt_cv_sys_global_symbol_to_cdecl \
  21937. lt_cv_sys_global_symbol_to_c_name_address \
  21938. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21939. nm_file_list_spec \
  21940. lt_prog_compiler_no_builtin_flag \
  21941. lt_prog_compiler_pic \
  21942. lt_prog_compiler_wl \
  21943. lt_prog_compiler_static \
  21944. lt_cv_prog_compiler_c_o \
  21945. need_locks \
  21946. MANIFEST_TOOL \
  21947. DSYMUTIL \
  21948. NMEDIT \
  21949. LIPO \
  21950. OTOOL \
  21951. OTOOL64 \
  21952. shrext_cmds \
  21953. export_dynamic_flag_spec \
  21954. whole_archive_flag_spec \
  21955. compiler_needs_object \
  21956. with_gnu_ld \
  21957. allow_undefined_flag \
  21958. no_undefined_flag \
  21959. hardcode_libdir_flag_spec \
  21960. hardcode_libdir_separator \
  21961. exclude_expsyms \
  21962. include_expsyms \
  21963. file_list_spec \
  21964. variables_saved_for_relink \
  21965. libname_spec \
  21966. library_names_spec \
  21967. soname_spec \
  21968. install_override_mode \
  21969. finish_eval \
  21970. old_striplib \
  21971. striplib \
  21972. compiler_lib_search_dirs \
  21973. predep_objects \
  21974. postdep_objects \
  21975. predeps \
  21976. postdeps \
  21977. compiler_lib_search_path \
  21978. LD_CXX \
  21979. reload_flag_CXX \
  21980. compiler_CXX \
  21981. lt_prog_compiler_no_builtin_flag_CXX \
  21982. lt_prog_compiler_pic_CXX \
  21983. lt_prog_compiler_wl_CXX \
  21984. lt_prog_compiler_static_CXX \
  21985. lt_cv_prog_compiler_c_o_CXX \
  21986. export_dynamic_flag_spec_CXX \
  21987. whole_archive_flag_spec_CXX \
  21988. compiler_needs_object_CXX \
  21989. with_gnu_ld_CXX \
  21990. allow_undefined_flag_CXX \
  21991. no_undefined_flag_CXX \
  21992. hardcode_libdir_flag_spec_CXX \
  21993. hardcode_libdir_separator_CXX \
  21994. exclude_expsyms_CXX \
  21995. include_expsyms_CXX \
  21996. file_list_spec_CXX \
  21997. compiler_lib_search_dirs_CXX \
  21998. predep_objects_CXX \
  21999. postdep_objects_CXX \
  22000. predeps_CXX \
  22001. postdeps_CXX \
  22002. compiler_lib_search_path_CXX; do
  22003. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22004. *[\\\\\\\`\\"\\\$]*)
  22005. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22006. ;;
  22007. *)
  22008. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22009. ;;
  22010. esac
  22011. done
  22012. # Double-quote double-evaled strings.
  22013. for var in reload_cmds \
  22014. old_postinstall_cmds \
  22015. old_postuninstall_cmds \
  22016. old_archive_cmds \
  22017. extract_expsyms_cmds \
  22018. old_archive_from_new_cmds \
  22019. old_archive_from_expsyms_cmds \
  22020. archive_cmds \
  22021. archive_expsym_cmds \
  22022. module_cmds \
  22023. module_expsym_cmds \
  22024. export_symbols_cmds \
  22025. prelink_cmds \
  22026. postlink_cmds \
  22027. postinstall_cmds \
  22028. postuninstall_cmds \
  22029. finish_cmds \
  22030. sys_lib_search_path_spec \
  22031. sys_lib_dlsearch_path_spec \
  22032. reload_cmds_CXX \
  22033. old_archive_cmds_CXX \
  22034. old_archive_from_new_cmds_CXX \
  22035. old_archive_from_expsyms_cmds_CXX \
  22036. archive_cmds_CXX \
  22037. archive_expsym_cmds_CXX \
  22038. module_cmds_CXX \
  22039. module_expsym_cmds_CXX \
  22040. export_symbols_cmds_CXX \
  22041. prelink_cmds_CXX \
  22042. postlink_cmds_CXX; do
  22043. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22044. *[\\\\\\\`\\"\\\$]*)
  22045. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22046. ;;
  22047. *)
  22048. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22049. ;;
  22050. esac
  22051. done
  22052. ac_aux_dir='$ac_aux_dir'
  22053. xsi_shell='$xsi_shell'
  22054. lt_shell_append='$lt_shell_append'
  22055. # See if we are running on zsh, and set the options which allow our
  22056. # commands through without removal of \ escapes INIT.
  22057. if test -n "\${ZSH_VERSION+set}" ; then
  22058. setopt NO_GLOB_SUBST
  22059. fi
  22060. PACKAGE='$PACKAGE'
  22061. VERSION='$VERSION'
  22062. TIMESTAMP='$TIMESTAMP'
  22063. RM='$RM'
  22064. ofile='$ofile'
  22065. SUMMARY="$SUMMARY"
  22066. _ACEOF
  22067. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22068. # Handling of arguments.
  22069. for ac_config_target in $ac_config_targets
  22070. do
  22071. case $ac_config_target in
  22072. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22073. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22074. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22075. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22076. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22077. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22078. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22079. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22080. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22081. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22082. esac
  22083. done
  22084. # If the user did not use the arguments to specify the items to instantiate,
  22085. # then the envvar interface is used. Set only those that are not.
  22086. # We use the long form for the default assignment because of an extremely
  22087. # bizarre bug on SunOS 4.1.3.
  22088. if $ac_need_defaults; then
  22089. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22090. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22091. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22092. fi
  22093. # Have a temporary directory for convenience. Make it in the build tree
  22094. # simply because there is no reason against having it here, and in addition,
  22095. # creating and moving files from /tmp can sometimes cause problems.
  22096. # Hook for its removal unless debugging.
  22097. # Note that there is a small window in which the directory will not be cleaned:
  22098. # after its creation but before its name has been assigned to `$tmp'.
  22099. $debug ||
  22100. {
  22101. tmp= ac_tmp=
  22102. trap 'exit_status=$?
  22103. : "${ac_tmp:=$tmp}"
  22104. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22105. ' 0
  22106. trap 'as_fn_exit 1' 1 2 13 15
  22107. }
  22108. # Create a (secure) tmp directory for tmp files.
  22109. {
  22110. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22111. test -d "$tmp"
  22112. } ||
  22113. {
  22114. tmp=./conf$$-$RANDOM
  22115. (umask 077 && mkdir "$tmp")
  22116. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22117. ac_tmp=$tmp
  22118. # Set up the scripts for CONFIG_FILES section.
  22119. # No need to generate them if there are no CONFIG_FILES.
  22120. # This happens for instance with `./config.status config.h'.
  22121. if test -n "$CONFIG_FILES"; then
  22122. ac_cr=`echo X | tr X '\015'`
  22123. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22124. # But we know of no other shell where ac_cr would be empty at this
  22125. # point, so we can use a bashism as a fallback.
  22126. if test "x$ac_cr" = x; then
  22127. eval ac_cr=\$\'\\r\'
  22128. fi
  22129. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22130. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22131. ac_cs_awk_cr='\\r'
  22132. else
  22133. ac_cs_awk_cr=$ac_cr
  22134. fi
  22135. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22136. _ACEOF
  22137. {
  22138. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22139. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22140. echo "_ACEOF"
  22141. } >conf$$subs.sh ||
  22142. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22143. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22144. ac_delim='%!_!# '
  22145. for ac_last_try in false false false false false :; do
  22146. . ./conf$$subs.sh ||
  22147. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22148. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22149. if test $ac_delim_n = $ac_delim_num; then
  22150. break
  22151. elif $ac_last_try; then
  22152. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22153. else
  22154. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22155. fi
  22156. done
  22157. rm -f conf$$subs.sh
  22158. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22159. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22160. _ACEOF
  22161. sed -n '
  22162. h
  22163. s/^/S["/; s/!.*/"]=/
  22164. p
  22165. g
  22166. s/^[^!]*!//
  22167. :repl
  22168. t repl
  22169. s/'"$ac_delim"'$//
  22170. t delim
  22171. :nl
  22172. h
  22173. s/\(.\{148\}\)..*/\1/
  22174. t more1
  22175. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22176. p
  22177. n
  22178. b repl
  22179. :more1
  22180. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22181. p
  22182. g
  22183. s/.\{148\}//
  22184. t nl
  22185. :delim
  22186. h
  22187. s/\(.\{148\}\)..*/\1/
  22188. t more2
  22189. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22190. p
  22191. b
  22192. :more2
  22193. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22194. p
  22195. g
  22196. s/.\{148\}//
  22197. t delim
  22198. ' <conf$$subs.awk | sed '
  22199. /^[^""]/{
  22200. N
  22201. s/\n//
  22202. }
  22203. ' >>$CONFIG_STATUS || ac_write_fail=1
  22204. rm -f conf$$subs.awk
  22205. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22206. _ACAWK
  22207. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22208. for (key in S) S_is_set[key] = 1
  22209. FS = ""
  22210. }
  22211. {
  22212. line = $ 0
  22213. nfields = split(line, field, "@")
  22214. substed = 0
  22215. len = length(field[1])
  22216. for (i = 2; i < nfields; i++) {
  22217. key = field[i]
  22218. keylen = length(key)
  22219. if (S_is_set[key]) {
  22220. value = S[key]
  22221. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22222. len += length(value) + length(field[++i])
  22223. substed = 1
  22224. } else
  22225. len += 1 + keylen
  22226. }
  22227. print line
  22228. }
  22229. _ACAWK
  22230. _ACEOF
  22231. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22232. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22233. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22234. else
  22235. cat
  22236. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22237. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22238. _ACEOF
  22239. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22240. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22241. # trailing colons and then remove the whole line if VPATH becomes empty
  22242. # (actually we leave an empty line to preserve line numbers).
  22243. if test "x$srcdir" = x.; then
  22244. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22245. h
  22246. s///
  22247. s/^/:/
  22248. s/[ ]*$/:/
  22249. s/:\$(srcdir):/:/g
  22250. s/:\${srcdir}:/:/g
  22251. s/:@srcdir@:/:/g
  22252. s/^:*//
  22253. s/:*$//
  22254. x
  22255. s/\(=[ ]*\).*/\1/
  22256. G
  22257. s/\n//
  22258. s/^[^=]*=[ ]*$//
  22259. }'
  22260. fi
  22261. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22262. fi # test -n "$CONFIG_FILES"
  22263. # Set up the scripts for CONFIG_HEADERS section.
  22264. # No need to generate them if there are no CONFIG_HEADERS.
  22265. # This happens for instance with `./config.status Makefile'.
  22266. if test -n "$CONFIG_HEADERS"; then
  22267. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22268. BEGIN {
  22269. _ACEOF
  22270. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22271. # here-document in config.status, that substitutes the proper values into
  22272. # config.h.in to produce config.h.
  22273. # Create a delimiter string that does not exist in confdefs.h, to ease
  22274. # handling of long lines.
  22275. ac_delim='%!_!# '
  22276. for ac_last_try in false false :; do
  22277. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22278. if test -z "$ac_tt"; then
  22279. break
  22280. elif $ac_last_try; then
  22281. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22282. else
  22283. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22284. fi
  22285. done
  22286. # For the awk script, D is an array of macro values keyed by name,
  22287. # likewise P contains macro parameters if any. Preserve backslash
  22288. # newline sequences.
  22289. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22290. sed -n '
  22291. s/.\{148\}/&'"$ac_delim"'/g
  22292. t rset
  22293. :rset
  22294. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22295. t def
  22296. d
  22297. :def
  22298. s/\\$//
  22299. t bsnl
  22300. s/["\\]/\\&/g
  22301. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22302. D["\1"]=" \3"/p
  22303. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22304. d
  22305. :bsnl
  22306. s/["\\]/\\&/g
  22307. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22308. D["\1"]=" \3\\\\\\n"\\/p
  22309. t cont
  22310. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22311. t cont
  22312. d
  22313. :cont
  22314. n
  22315. s/.\{148\}/&'"$ac_delim"'/g
  22316. t clear
  22317. :clear
  22318. s/\\$//
  22319. t bsnlc
  22320. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22321. d
  22322. :bsnlc
  22323. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22324. b cont
  22325. ' <confdefs.h | sed '
  22326. s/'"$ac_delim"'/"\\\
  22327. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22328. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22329. for (key in D) D_is_set[key] = 1
  22330. FS = ""
  22331. }
  22332. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22333. line = \$ 0
  22334. split(line, arg, " ")
  22335. if (arg[1] == "#") {
  22336. defundef = arg[2]
  22337. mac1 = arg[3]
  22338. } else {
  22339. defundef = substr(arg[1], 2)
  22340. mac1 = arg[2]
  22341. }
  22342. split(mac1, mac2, "(") #)
  22343. macro = mac2[1]
  22344. prefix = substr(line, 1, index(line, defundef) - 1)
  22345. if (D_is_set[macro]) {
  22346. # Preserve the white space surrounding the "#".
  22347. print prefix "define", macro P[macro] D[macro]
  22348. next
  22349. } else {
  22350. # Replace #undef with comments. This is necessary, for example,
  22351. # in the case of _POSIX_SOURCE, which is predefined and required
  22352. # on some systems where configure will not decide to define it.
  22353. if (defundef == "undef") {
  22354. print "/*", prefix defundef, macro, "*/"
  22355. next
  22356. }
  22357. }
  22358. }
  22359. { print }
  22360. _ACAWK
  22361. _ACEOF
  22362. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22363. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22364. fi # test -n "$CONFIG_HEADERS"
  22365. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22366. shift
  22367. for ac_tag
  22368. do
  22369. case $ac_tag in
  22370. :[FHLC]) ac_mode=$ac_tag; continue;;
  22371. esac
  22372. case $ac_mode$ac_tag in
  22373. :[FHL]*:*);;
  22374. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22375. :[FH]-) ac_tag=-:-;;
  22376. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22377. esac
  22378. ac_save_IFS=$IFS
  22379. IFS=:
  22380. set x $ac_tag
  22381. IFS=$ac_save_IFS
  22382. shift
  22383. ac_file=$1
  22384. shift
  22385. case $ac_mode in
  22386. :L) ac_source=$1;;
  22387. :[FH])
  22388. ac_file_inputs=
  22389. for ac_f
  22390. do
  22391. case $ac_f in
  22392. -) ac_f="$ac_tmp/stdin";;
  22393. *) # Look for the file first in the build tree, then in the source tree
  22394. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22395. # because $ac_f cannot contain `:'.
  22396. test -f "$ac_f" ||
  22397. case $ac_f in
  22398. [\\/$]*) false;;
  22399. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22400. esac ||
  22401. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22402. esac
  22403. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22404. as_fn_append ac_file_inputs " '$ac_f'"
  22405. done
  22406. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22407. # use $as_me), people would be surprised to read:
  22408. # /* config.h. Generated by config.status. */
  22409. configure_input='Generated from '`
  22410. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22411. `' by configure.'
  22412. if test x"$ac_file" != x-; then
  22413. configure_input="$ac_file. $configure_input"
  22414. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22415. $as_echo "$as_me: creating $ac_file" >&6;}
  22416. fi
  22417. # Neutralize special characters interpreted by sed in replacement strings.
  22418. case $configure_input in #(
  22419. *\&* | *\|* | *\\* )
  22420. ac_sed_conf_input=`$as_echo "$configure_input" |
  22421. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22422. *) ac_sed_conf_input=$configure_input;;
  22423. esac
  22424. case $ac_tag in
  22425. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22426. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22427. esac
  22428. ;;
  22429. esac
  22430. ac_dir=`$as_dirname -- "$ac_file" ||
  22431. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22432. X"$ac_file" : 'X\(//\)[^/]' \| \
  22433. X"$ac_file" : 'X\(//\)$' \| \
  22434. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22435. $as_echo X"$ac_file" |
  22436. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22437. s//\1/
  22438. q
  22439. }
  22440. /^X\(\/\/\)[^/].*/{
  22441. s//\1/
  22442. q
  22443. }
  22444. /^X\(\/\/\)$/{
  22445. s//\1/
  22446. q
  22447. }
  22448. /^X\(\/\).*/{
  22449. s//\1/
  22450. q
  22451. }
  22452. s/.*/./; q'`
  22453. as_dir="$ac_dir"; as_fn_mkdir_p
  22454. ac_builddir=.
  22455. case "$ac_dir" in
  22456. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22457. *)
  22458. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22459. # A ".." for each directory in $ac_dir_suffix.
  22460. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22461. case $ac_top_builddir_sub in
  22462. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22463. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22464. esac ;;
  22465. esac
  22466. ac_abs_top_builddir=$ac_pwd
  22467. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22468. # for backward compatibility:
  22469. ac_top_builddir=$ac_top_build_prefix
  22470. case $srcdir in
  22471. .) # We are building in place.
  22472. ac_srcdir=.
  22473. ac_top_srcdir=$ac_top_builddir_sub
  22474. ac_abs_top_srcdir=$ac_pwd ;;
  22475. [\\/]* | ?:[\\/]* ) # Absolute name.
  22476. ac_srcdir=$srcdir$ac_dir_suffix;
  22477. ac_top_srcdir=$srcdir
  22478. ac_abs_top_srcdir=$srcdir ;;
  22479. *) # Relative name.
  22480. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22481. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22482. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22483. esac
  22484. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22485. case $ac_mode in
  22486. :F)
  22487. #
  22488. # CONFIG_FILE
  22489. #
  22490. case $INSTALL in
  22491. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22492. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22493. esac
  22494. _ACEOF
  22495. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22496. # If the template does not know about datarootdir, expand it.
  22497. # FIXME: This hack should be removed a few years after 2.60.
  22498. ac_datarootdir_hack=; ac_datarootdir_seen=
  22499. ac_sed_dataroot='
  22500. /datarootdir/ {
  22501. p
  22502. q
  22503. }
  22504. /@datadir@/p
  22505. /@docdir@/p
  22506. /@infodir@/p
  22507. /@localedir@/p
  22508. /@mandir@/p'
  22509. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22510. *datarootdir*) ac_datarootdir_seen=yes;;
  22511. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22513. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22514. _ACEOF
  22515. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22516. ac_datarootdir_hack='
  22517. s&@datadir@&$datadir&g
  22518. s&@docdir@&$docdir&g
  22519. s&@infodir@&$infodir&g
  22520. s&@localedir@&$localedir&g
  22521. s&@mandir@&$mandir&g
  22522. s&\\\${datarootdir}&$datarootdir&g' ;;
  22523. esac
  22524. _ACEOF
  22525. # Neutralize VPATH when `$srcdir' = `.'.
  22526. # Shell code in configure.ac might set extrasub.
  22527. # FIXME: do we really want to maintain this feature?
  22528. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22529. ac_sed_extra="$ac_vpsub
  22530. $extrasub
  22531. _ACEOF
  22532. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22533. :t
  22534. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22535. s|@configure_input@|$ac_sed_conf_input|;t t
  22536. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22537. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22538. s&@srcdir@&$ac_srcdir&;t t
  22539. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22540. s&@top_srcdir@&$ac_top_srcdir&;t t
  22541. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22542. s&@builddir@&$ac_builddir&;t t
  22543. s&@abs_builddir@&$ac_abs_builddir&;t t
  22544. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22545. s&@INSTALL@&$ac_INSTALL&;t t
  22546. $ac_datarootdir_hack
  22547. "
  22548. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22549. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22550. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22551. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22552. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22553. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22554. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22555. which seems to be undefined. Please make sure it is defined" >&5
  22556. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22557. which seems to be undefined. Please make sure it is defined" >&2;}
  22558. rm -f "$ac_tmp/stdin"
  22559. case $ac_file in
  22560. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22561. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22562. esac \
  22563. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22564. ;;
  22565. :H)
  22566. #
  22567. # CONFIG_HEADER
  22568. #
  22569. if test x"$ac_file" != x-; then
  22570. {
  22571. $as_echo "/* $configure_input */" \
  22572. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22573. } >"$ac_tmp/config.h" \
  22574. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22575. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22576. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22577. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22578. else
  22579. rm -f "$ac_file"
  22580. mv "$ac_tmp/config.h" "$ac_file" \
  22581. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22582. fi
  22583. else
  22584. $as_echo "/* $configure_input */" \
  22585. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22586. || as_fn_error $? "could not create -" "$LINENO" 5
  22587. fi
  22588. ;;
  22589. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22590. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22591. ;;
  22592. esac
  22593. case $ac_file$ac_mode in
  22594. "libtool":C)
  22595. # See if we are running on zsh, and set the options which allow our
  22596. # commands through without removal of \ escapes.
  22597. if test -n "${ZSH_VERSION+set}" ; then
  22598. setopt NO_GLOB_SUBST
  22599. fi
  22600. cfgfile="${ofile}T"
  22601. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22602. $RM "$cfgfile"
  22603. cat <<_LT_EOF >> "$cfgfile"
  22604. #! $SHELL
  22605. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22606. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22607. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22608. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22609. #
  22610. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22611. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22612. # Foundation, Inc.
  22613. # Written by Gordon Matzigkeit, 1996
  22614. #
  22615. # This file is part of GNU Libtool.
  22616. #
  22617. # GNU Libtool is free software; you can redistribute it and/or
  22618. # modify it under the terms of the GNU General Public License as
  22619. # published by the Free Software Foundation; either version 2 of
  22620. # the License, or (at your option) any later version.
  22621. #
  22622. # As a special exception to the GNU General Public License,
  22623. # if you distribute this file as part of a program or library that
  22624. # is built using GNU Libtool, you may include this file under the
  22625. # same distribution terms that you use for the rest of that program.
  22626. #
  22627. # GNU Libtool is distributed in the hope that it will be useful,
  22628. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22629. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22630. # GNU General Public License for more details.
  22631. #
  22632. # You should have received a copy of the GNU General Public License
  22633. # along with GNU Libtool; see the file COPYING. If not, a copy
  22634. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22635. # obtained by writing to the Free Software Foundation, Inc.,
  22636. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22637. # The names of the tagged configurations supported by this script.
  22638. available_tags="CXX "
  22639. # ### BEGIN LIBTOOL CONFIG
  22640. # Which release of libtool.m4 was used?
  22641. macro_version=$macro_version
  22642. macro_revision=$macro_revision
  22643. # Assembler program.
  22644. AS=$lt_AS
  22645. # DLL creation program.
  22646. DLLTOOL=$lt_DLLTOOL
  22647. # Object dumper program.
  22648. OBJDUMP=$lt_OBJDUMP
  22649. # Whether or not to build shared libraries.
  22650. build_libtool_libs=$enable_shared
  22651. # Whether or not to build static libraries.
  22652. build_old_libs=$enable_static
  22653. # What type of objects to build.
  22654. pic_mode=$pic_mode
  22655. # Whether or not to optimize for fast installation.
  22656. fast_install=$enable_fast_install
  22657. # Shell to use when invoking shell scripts.
  22658. SHELL=$lt_SHELL
  22659. # An echo program that protects backslashes.
  22660. ECHO=$lt_ECHO
  22661. # The PATH separator for the build system.
  22662. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22663. # The host system.
  22664. host_alias=$host_alias
  22665. host=$host
  22666. host_os=$host_os
  22667. # The build system.
  22668. build_alias=$build_alias
  22669. build=$build
  22670. build_os=$build_os
  22671. # A sed program that does not truncate output.
  22672. SED=$lt_SED
  22673. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22674. Xsed="\$SED -e 1s/^X//"
  22675. # A grep program that handles long lines.
  22676. GREP=$lt_GREP
  22677. # An ERE matcher.
  22678. EGREP=$lt_EGREP
  22679. # A literal string matcher.
  22680. FGREP=$lt_FGREP
  22681. # A BSD- or MS-compatible name lister.
  22682. NM=$lt_NM
  22683. # Whether we need soft or hard links.
  22684. LN_S=$lt_LN_S
  22685. # What is the maximum length of a command?
  22686. max_cmd_len=$max_cmd_len
  22687. # Object file suffix (normally "o").
  22688. objext=$ac_objext
  22689. # Executable file suffix (normally "").
  22690. exeext=$exeext
  22691. # whether the shell understands "unset".
  22692. lt_unset=$lt_unset
  22693. # turn spaces into newlines.
  22694. SP2NL=$lt_lt_SP2NL
  22695. # turn newlines into spaces.
  22696. NL2SP=$lt_lt_NL2SP
  22697. # convert \$build file names to \$host format.
  22698. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22699. # convert \$build files to toolchain format.
  22700. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22701. # Method to check whether dependent libraries are shared objects.
  22702. deplibs_check_method=$lt_deplibs_check_method
  22703. # Command to use when deplibs_check_method = "file_magic".
  22704. file_magic_cmd=$lt_file_magic_cmd
  22705. # How to find potential files when deplibs_check_method = "file_magic".
  22706. file_magic_glob=$lt_file_magic_glob
  22707. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22708. want_nocaseglob=$lt_want_nocaseglob
  22709. # Command to associate shared and link libraries.
  22710. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22711. # The archiver.
  22712. AR=$lt_AR
  22713. # Flags to create an archive.
  22714. AR_FLAGS=$lt_AR_FLAGS
  22715. # How to feed a file listing to the archiver.
  22716. archiver_list_spec=$lt_archiver_list_spec
  22717. # A symbol stripping program.
  22718. STRIP=$lt_STRIP
  22719. # Commands used to install an old-style archive.
  22720. RANLIB=$lt_RANLIB
  22721. old_postinstall_cmds=$lt_old_postinstall_cmds
  22722. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22723. # Whether to use a lock for old archive extraction.
  22724. lock_old_archive_extraction=$lock_old_archive_extraction
  22725. # A C compiler.
  22726. LTCC=$lt_CC
  22727. # LTCC compiler flags.
  22728. LTCFLAGS=$lt_CFLAGS
  22729. # Take the output of nm and produce a listing of raw symbols and C names.
  22730. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22731. # Transform the output of nm in a proper C declaration.
  22732. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22733. # Transform the output of nm in a C name address pair.
  22734. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22735. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22736. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22737. # Specify filename containing input files for \$NM.
  22738. nm_file_list_spec=$lt_nm_file_list_spec
  22739. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22740. lt_sysroot=$lt_sysroot
  22741. # The name of the directory that contains temporary libtool files.
  22742. objdir=$objdir
  22743. # Used to examine libraries when file_magic_cmd begins with "file".
  22744. MAGIC_CMD=$MAGIC_CMD
  22745. # Must we lock files when doing compilation?
  22746. need_locks=$lt_need_locks
  22747. # Manifest tool.
  22748. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22749. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22750. DSYMUTIL=$lt_DSYMUTIL
  22751. # Tool to change global to local symbols on Mac OS X.
  22752. NMEDIT=$lt_NMEDIT
  22753. # Tool to manipulate fat objects and archives on Mac OS X.
  22754. LIPO=$lt_LIPO
  22755. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22756. OTOOL=$lt_OTOOL
  22757. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22758. OTOOL64=$lt_OTOOL64
  22759. # Old archive suffix (normally "a").
  22760. libext=$libext
  22761. # Shared library suffix (normally ".so").
  22762. shrext_cmds=$lt_shrext_cmds
  22763. # The commands to extract the exported symbol list from a shared archive.
  22764. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22765. # Variables whose values should be saved in libtool wrapper scripts and
  22766. # restored at link time.
  22767. variables_saved_for_relink=$lt_variables_saved_for_relink
  22768. # Do we need the "lib" prefix for modules?
  22769. need_lib_prefix=$need_lib_prefix
  22770. # Do we need a version for libraries?
  22771. need_version=$need_version
  22772. # Library versioning type.
  22773. version_type=$version_type
  22774. # Shared library runtime path variable.
  22775. runpath_var=$runpath_var
  22776. # Shared library path variable.
  22777. shlibpath_var=$shlibpath_var
  22778. # Is shlibpath searched before the hard-coded library search path?
  22779. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22780. # Format of library name prefix.
  22781. libname_spec=$lt_libname_spec
  22782. # List of archive names. First name is the real one, the rest are links.
  22783. # The last name is the one that the linker finds with -lNAME
  22784. library_names_spec=$lt_library_names_spec
  22785. # The coded name of the library, if different from the real name.
  22786. soname_spec=$lt_soname_spec
  22787. # Permission mode override for installation of shared libraries.
  22788. install_override_mode=$lt_install_override_mode
  22789. # Command to use after installation of a shared archive.
  22790. postinstall_cmds=$lt_postinstall_cmds
  22791. # Command to use after uninstallation of a shared archive.
  22792. postuninstall_cmds=$lt_postuninstall_cmds
  22793. # Commands used to finish a libtool library installation in a directory.
  22794. finish_cmds=$lt_finish_cmds
  22795. # As "finish_cmds", except a single script fragment to be evaled but
  22796. # not shown.
  22797. finish_eval=$lt_finish_eval
  22798. # Whether we should hardcode library paths into libraries.
  22799. hardcode_into_libs=$hardcode_into_libs
  22800. # Compile-time system search path for libraries.
  22801. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22802. # Run-time system search path for libraries.
  22803. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22804. # Whether dlopen is supported.
  22805. dlopen_support=$enable_dlopen
  22806. # Whether dlopen of programs is supported.
  22807. dlopen_self=$enable_dlopen_self
  22808. # Whether dlopen of statically linked programs is supported.
  22809. dlopen_self_static=$enable_dlopen_self_static
  22810. # Commands to strip libraries.
  22811. old_striplib=$lt_old_striplib
  22812. striplib=$lt_striplib
  22813. # The linker used to build libraries.
  22814. LD=$lt_LD
  22815. # How to create reloadable object files.
  22816. reload_flag=$lt_reload_flag
  22817. reload_cmds=$lt_reload_cmds
  22818. # Commands used to build an old-style archive.
  22819. old_archive_cmds=$lt_old_archive_cmds
  22820. # A language specific compiler.
  22821. CC=$lt_compiler
  22822. # Is the compiler the GNU compiler?
  22823. with_gcc=$GCC
  22824. # Compiler flag to turn off builtin functions.
  22825. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22826. # Additional compiler flags for building library objects.
  22827. pic_flag=$lt_lt_prog_compiler_pic
  22828. # How to pass a linker flag through the compiler.
  22829. wl=$lt_lt_prog_compiler_wl
  22830. # Compiler flag to prevent dynamic linking.
  22831. link_static_flag=$lt_lt_prog_compiler_static
  22832. # Does compiler simultaneously support -c and -o options?
  22833. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22834. # Whether or not to add -lc for building shared libraries.
  22835. build_libtool_need_lc=$archive_cmds_need_lc
  22836. # Whether or not to disallow shared libs when runtime libs are static.
  22837. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22838. # Compiler flag to allow reflexive dlopens.
  22839. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22840. # Compiler flag to generate shared objects directly from archives.
  22841. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22842. # Whether the compiler copes with passing no objects directly.
  22843. compiler_needs_object=$lt_compiler_needs_object
  22844. # Create an old-style archive from a shared archive.
  22845. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22846. # Create a temporary old-style archive to link instead of a shared archive.
  22847. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22848. # Commands used to build a shared archive.
  22849. archive_cmds=$lt_archive_cmds
  22850. archive_expsym_cmds=$lt_archive_expsym_cmds
  22851. # Commands used to build a loadable module if different from building
  22852. # a shared archive.
  22853. module_cmds=$lt_module_cmds
  22854. module_expsym_cmds=$lt_module_expsym_cmds
  22855. # Whether we are building with GNU ld or not.
  22856. with_gnu_ld=$lt_with_gnu_ld
  22857. # Flag that allows shared libraries with undefined symbols to be built.
  22858. allow_undefined_flag=$lt_allow_undefined_flag
  22859. # Flag that enforces no undefined symbols.
  22860. no_undefined_flag=$lt_no_undefined_flag
  22861. # Flag to hardcode \$libdir into a binary during linking.
  22862. # This must work even if \$libdir does not exist
  22863. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22864. # Whether we need a single "-rpath" flag with a separated argument.
  22865. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22866. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22867. # DIR into the resulting binary.
  22868. hardcode_direct=$hardcode_direct
  22869. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22870. # DIR into the resulting binary and the resulting library dependency is
  22871. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22872. # library is relocated.
  22873. hardcode_direct_absolute=$hardcode_direct_absolute
  22874. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22875. # into the resulting binary.
  22876. hardcode_minus_L=$hardcode_minus_L
  22877. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22878. # into the resulting binary.
  22879. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22880. # Set to "yes" if building a shared library automatically hardcodes DIR
  22881. # into the library and all subsequent libraries and executables linked
  22882. # against it.
  22883. hardcode_automatic=$hardcode_automatic
  22884. # Set to yes if linker adds runtime paths of dependent libraries
  22885. # to runtime path list.
  22886. inherit_rpath=$inherit_rpath
  22887. # Whether libtool must link a program against all its dependency libraries.
  22888. link_all_deplibs=$link_all_deplibs
  22889. # Set to "yes" if exported symbols are required.
  22890. always_export_symbols=$always_export_symbols
  22891. # The commands to list exported symbols.
  22892. export_symbols_cmds=$lt_export_symbols_cmds
  22893. # Symbols that should not be listed in the preloaded symbols.
  22894. exclude_expsyms=$lt_exclude_expsyms
  22895. # Symbols that must always be exported.
  22896. include_expsyms=$lt_include_expsyms
  22897. # Commands necessary for linking programs (against libraries) with templates.
  22898. prelink_cmds=$lt_prelink_cmds
  22899. # Commands necessary for finishing linking programs.
  22900. postlink_cmds=$lt_postlink_cmds
  22901. # Specify filename containing input files.
  22902. file_list_spec=$lt_file_list_spec
  22903. # How to hardcode a shared library path into an executable.
  22904. hardcode_action=$hardcode_action
  22905. # The directories searched by this compiler when creating a shared library.
  22906. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22907. # Dependencies to place before and after the objects being linked to
  22908. # create a shared library.
  22909. predep_objects=$lt_predep_objects
  22910. postdep_objects=$lt_postdep_objects
  22911. predeps=$lt_predeps
  22912. postdeps=$lt_postdeps
  22913. # The library search path used internally by the compiler when linking
  22914. # a shared library.
  22915. compiler_lib_search_path=$lt_compiler_lib_search_path
  22916. # ### END LIBTOOL CONFIG
  22917. _LT_EOF
  22918. case $host_os in
  22919. aix3*)
  22920. cat <<\_LT_EOF >> "$cfgfile"
  22921. # AIX sometimes has problems with the GCC collect2 program. For some
  22922. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22923. # vanish in a puff of smoke.
  22924. if test "X${COLLECT_NAMES+set}" != Xset; then
  22925. COLLECT_NAMES=
  22926. export COLLECT_NAMES
  22927. fi
  22928. _LT_EOF
  22929. ;;
  22930. esac
  22931. ltmain="$ac_aux_dir/ltmain.sh"
  22932. # We use sed instead of cat because bash on DJGPP gets confused if
  22933. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22934. # text mode, it properly converts lines to CR/LF. This bash problem
  22935. # is reportedly fixed, but why not run on old versions too?
  22936. sed '$q' "$ltmain" >> "$cfgfile" \
  22937. || (rm -f "$cfgfile"; exit 1)
  22938. if test x"$xsi_shell" = xyes; then
  22939. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22940. func_dirname ()\
  22941. {\
  22942. \ case ${1} in\
  22943. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22944. \ * ) func_dirname_result="${3}" ;;\
  22945. \ esac\
  22946. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22947. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22948. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22949. test 0 -eq $? || _lt_function_replace_fail=:
  22950. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22951. func_basename ()\
  22952. {\
  22953. \ func_basename_result="${1##*/}"\
  22954. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22955. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22956. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22957. test 0 -eq $? || _lt_function_replace_fail=:
  22958. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22959. func_dirname_and_basename ()\
  22960. {\
  22961. \ case ${1} in\
  22962. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22963. \ * ) func_dirname_result="${3}" ;;\
  22964. \ esac\
  22965. \ func_basename_result="${1##*/}"\
  22966. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22967. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22968. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22969. test 0 -eq $? || _lt_function_replace_fail=:
  22970. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22971. func_stripname ()\
  22972. {\
  22973. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22974. \ # positional parameters, so assign one to ordinary parameter first.\
  22975. \ func_stripname_result=${3}\
  22976. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22977. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22978. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22979. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22980. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22981. test 0 -eq $? || _lt_function_replace_fail=:
  22982. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22983. func_split_long_opt ()\
  22984. {\
  22985. \ func_split_long_opt_name=${1%%=*}\
  22986. \ func_split_long_opt_arg=${1#*=}\
  22987. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22988. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22989. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22990. test 0 -eq $? || _lt_function_replace_fail=:
  22991. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22992. func_split_short_opt ()\
  22993. {\
  22994. \ func_split_short_opt_arg=${1#??}\
  22995. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22996. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22997. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22998. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22999. test 0 -eq $? || _lt_function_replace_fail=:
  23000. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23001. func_lo2o ()\
  23002. {\
  23003. \ case ${1} in\
  23004. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23005. \ *) func_lo2o_result=${1} ;;\
  23006. \ esac\
  23007. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23008. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23009. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23010. test 0 -eq $? || _lt_function_replace_fail=:
  23011. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23012. func_xform ()\
  23013. {\
  23014. func_xform_result=${1%.*}.lo\
  23015. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23016. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23017. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23018. test 0 -eq $? || _lt_function_replace_fail=:
  23019. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23020. func_arith ()\
  23021. {\
  23022. func_arith_result=$(( $* ))\
  23023. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23024. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23025. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23026. test 0 -eq $? || _lt_function_replace_fail=:
  23027. sed -e '/^func_len ()$/,/^} # func_len /c\
  23028. func_len ()\
  23029. {\
  23030. func_len_result=${#1}\
  23031. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23032. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23033. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23034. test 0 -eq $? || _lt_function_replace_fail=:
  23035. fi
  23036. if test x"$lt_shell_append" = xyes; then
  23037. sed -e '/^func_append ()$/,/^} # func_append /c\
  23038. func_append ()\
  23039. {\
  23040. eval "${1}+=\\${2}"\
  23041. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23042. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23043. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23044. test 0 -eq $? || _lt_function_replace_fail=:
  23045. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23046. func_append_quoted ()\
  23047. {\
  23048. \ func_quote_for_eval "${2}"\
  23049. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23050. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23051. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23052. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23053. test 0 -eq $? || _lt_function_replace_fail=:
  23054. # Save a `func_append' function call where possible by direct use of '+='
  23055. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23056. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23057. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23058. test 0 -eq $? || _lt_function_replace_fail=:
  23059. else
  23060. # Save a `func_append' function call even when '+=' is not available
  23061. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23062. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23063. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23064. test 0 -eq $? || _lt_function_replace_fail=:
  23065. fi
  23066. if test x"$_lt_function_replace_fail" = x":"; then
  23067. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23068. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23069. fi
  23070. mv -f "$cfgfile" "$ofile" ||
  23071. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23072. chmod +x "$ofile"
  23073. cat <<_LT_EOF >> "$ofile"
  23074. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23075. # The linker used to build libraries.
  23076. LD=$lt_LD_CXX
  23077. # How to create reloadable object files.
  23078. reload_flag=$lt_reload_flag_CXX
  23079. reload_cmds=$lt_reload_cmds_CXX
  23080. # Commands used to build an old-style archive.
  23081. old_archive_cmds=$lt_old_archive_cmds_CXX
  23082. # A language specific compiler.
  23083. CC=$lt_compiler_CXX
  23084. # Is the compiler the GNU compiler?
  23085. with_gcc=$GCC_CXX
  23086. # Compiler flag to turn off builtin functions.
  23087. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23088. # Additional compiler flags for building library objects.
  23089. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23090. # How to pass a linker flag through the compiler.
  23091. wl=$lt_lt_prog_compiler_wl_CXX
  23092. # Compiler flag to prevent dynamic linking.
  23093. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23094. # Does compiler simultaneously support -c and -o options?
  23095. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23096. # Whether or not to add -lc for building shared libraries.
  23097. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23098. # Whether or not to disallow shared libs when runtime libs are static.
  23099. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23100. # Compiler flag to allow reflexive dlopens.
  23101. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23102. # Compiler flag to generate shared objects directly from archives.
  23103. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23104. # Whether the compiler copes with passing no objects directly.
  23105. compiler_needs_object=$lt_compiler_needs_object_CXX
  23106. # Create an old-style archive from a shared archive.
  23107. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23108. # Create a temporary old-style archive to link instead of a shared archive.
  23109. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23110. # Commands used to build a shared archive.
  23111. archive_cmds=$lt_archive_cmds_CXX
  23112. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23113. # Commands used to build a loadable module if different from building
  23114. # a shared archive.
  23115. module_cmds=$lt_module_cmds_CXX
  23116. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23117. # Whether we are building with GNU ld or not.
  23118. with_gnu_ld=$lt_with_gnu_ld_CXX
  23119. # Flag that allows shared libraries with undefined symbols to be built.
  23120. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23121. # Flag that enforces no undefined symbols.
  23122. no_undefined_flag=$lt_no_undefined_flag_CXX
  23123. # Flag to hardcode \$libdir into a binary during linking.
  23124. # This must work even if \$libdir does not exist
  23125. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23126. # Whether we need a single "-rpath" flag with a separated argument.
  23127. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23128. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23129. # DIR into the resulting binary.
  23130. hardcode_direct=$hardcode_direct_CXX
  23131. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23132. # DIR into the resulting binary and the resulting library dependency is
  23133. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23134. # library is relocated.
  23135. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23136. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23137. # into the resulting binary.
  23138. hardcode_minus_L=$hardcode_minus_L_CXX
  23139. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23140. # into the resulting binary.
  23141. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23142. # Set to "yes" if building a shared library automatically hardcodes DIR
  23143. # into the library and all subsequent libraries and executables linked
  23144. # against it.
  23145. hardcode_automatic=$hardcode_automatic_CXX
  23146. # Set to yes if linker adds runtime paths of dependent libraries
  23147. # to runtime path list.
  23148. inherit_rpath=$inherit_rpath_CXX
  23149. # Whether libtool must link a program against all its dependency libraries.
  23150. link_all_deplibs=$link_all_deplibs_CXX
  23151. # Set to "yes" if exported symbols are required.
  23152. always_export_symbols=$always_export_symbols_CXX
  23153. # The commands to list exported symbols.
  23154. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23155. # Symbols that should not be listed in the preloaded symbols.
  23156. exclude_expsyms=$lt_exclude_expsyms_CXX
  23157. # Symbols that must always be exported.
  23158. include_expsyms=$lt_include_expsyms_CXX
  23159. # Commands necessary for linking programs (against libraries) with templates.
  23160. prelink_cmds=$lt_prelink_cmds_CXX
  23161. # Commands necessary for finishing linking programs.
  23162. postlink_cmds=$lt_postlink_cmds_CXX
  23163. # Specify filename containing input files.
  23164. file_list_spec=$lt_file_list_spec_CXX
  23165. # How to hardcode a shared library path into an executable.
  23166. hardcode_action=$hardcode_action_CXX
  23167. # The directories searched by this compiler when creating a shared library.
  23168. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23169. # Dependencies to place before and after the objects being linked to
  23170. # create a shared library.
  23171. predep_objects=$lt_predep_objects_CXX
  23172. postdep_objects=$lt_postdep_objects_CXX
  23173. predeps=$lt_predeps_CXX
  23174. postdeps=$lt_postdeps_CXX
  23175. # The library search path used internally by the compiler when linking
  23176. # a shared library.
  23177. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23178. # ### END LIBTOOL TAG CONFIG: CXX
  23179. _LT_EOF
  23180. ;;
  23181. "sdl2_config":C) chmod a+x sdl2-config ;;
  23182. "summary":C) echo -en "$SUMMARY" ;;
  23183. esac
  23184. done # for ac_tag
  23185. as_fn_exit 0
  23186. _ACEOF
  23187. ac_clean_files=$ac_clean_files_save
  23188. test $ac_write_fail = 0 ||
  23189. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23190. # configure is writing to config.log, and then calls config.status.
  23191. # config.status does its own redirection, appending to config.log.
  23192. # Unfortunately, on DOS this fails, as config.log is still kept open
  23193. # by configure, so config.status won't be able to write to it; its
  23194. # output is simply discarded. So we exec the FD to /dev/null,
  23195. # effectively closing config.log, so it can be properly (re)opened and
  23196. # appended to by config.status. When coming back to configure, we
  23197. # need to make the FD available again.
  23198. if test "$no_create" != yes; then
  23199. ac_cs_success=:
  23200. ac_config_status_args=
  23201. test "$silent" = yes &&
  23202. ac_config_status_args="$ac_config_status_args --quiet"
  23203. exec 5>/dev/null
  23204. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23205. exec 5>>config.log
  23206. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23207. # would make configure fail if this is the last instruction.
  23208. $ac_cs_success || as_fn_exit 1
  23209. fi
  23210. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23211. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23212. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23213. fi