configure 466 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libvorbis 1.3.5.
  4. #
  5. # Report bugs to <[email protected]>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and
  259. $0: [email protected] about your system, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='libvorbis'
  542. PACKAGE_TARNAME='libvorbis'
  543. PACKAGE_VERSION='1.3.5'
  544. PACKAGE_STRING='libvorbis 1.3.5'
  545. PACKAGE_BUGREPORT='[email protected]'
  546. PACKAGE_URL=''
  547. ac_unique_file="lib/mdct.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBTOOL_DEPS
  587. pthread_lib
  588. PROFILE
  589. DEBUG
  590. VORBIS_LIBS
  591. LIBOBJS
  592. ALLOCA
  593. OGG_LIBS
  594. OGG_CFLAGS
  595. PKG_CONFIG
  596. BUILD_EXAMPLES_FALSE
  597. BUILD_EXAMPLES_TRUE
  598. BUILD_DOCS_FALSE
  599. BUILD_DOCS_TRUE
  600. HTLATEX
  601. PDFLATEX
  602. HAVE_DOXYGEN_FALSE
  603. HAVE_DOXYGEN_TRUE
  604. HAVE_DOXYGEN
  605. LT_SYS_LIBRARY_PATH
  606. OTOOL64
  607. OTOOL
  608. LIPO
  609. NMEDIT
  610. DSYMUTIL
  611. MANIFEST_TOOL
  612. RANLIB
  613. ac_ct_AR
  614. AR
  615. LN_S
  616. NM
  617. ac_ct_DUMPBIN
  618. DUMPBIN
  619. LD
  620. FGREP
  621. EGREP
  622. GREP
  623. SED
  624. LIBTOOL
  625. OBJDUMP
  626. DLLTOOL
  627. AS
  628. CPP
  629. am__fastdepCC_FALSE
  630. am__fastdepCC_TRUE
  631. CCDEPMODE
  632. am__nodep
  633. AMDEPBACKSLASH
  634. AMDEP_FALSE
  635. AMDEP_TRUE
  636. am__quote
  637. am__include
  638. DEPDIR
  639. OBJEXT
  640. EXEEXT
  641. ac_ct_CC
  642. CPPFLAGS
  643. LDFLAGS
  644. CFLAGS
  645. CC
  646. VE_LIB_AGE
  647. VE_LIB_REVISION
  648. VE_LIB_CURRENT
  649. VF_LIB_AGE
  650. VF_LIB_REVISION
  651. VF_LIB_CURRENT
  652. V_LIB_AGE
  653. V_LIB_REVISION
  654. V_LIB_CURRENT
  655. ACLOCAL_AMFLAGS
  656. MAINT
  657. MAINTAINER_MODE_FALSE
  658. MAINTAINER_MODE_TRUE
  659. AM_BACKSLASH
  660. AM_DEFAULT_VERBOSITY
  661. AM_DEFAULT_V
  662. AM_V
  663. am__untar
  664. am__tar
  665. AMTAR
  666. am__leading_dot
  667. SET_MAKE
  668. AWK
  669. mkdir_p
  670. MKDIR_P
  671. INSTALL_STRIP_PROGRAM
  672. STRIP
  673. install_sh
  674. MAKEINFO
  675. AUTOHEADER
  676. AUTOMAKE
  677. AUTOCONF
  678. ACLOCAL
  679. VERSION
  680. PACKAGE
  681. CYGPATH_W
  682. am__isrc
  683. INSTALL_DATA
  684. INSTALL_SCRIPT
  685. INSTALL_PROGRAM
  686. target_os
  687. target_vendor
  688. target_cpu
  689. target
  690. host_os
  691. host_vendor
  692. host_cpu
  693. host
  694. build_os
  695. build_vendor
  696. build_cpu
  697. build
  698. target_alias
  699. host_alias
  700. build_alias
  701. LIBS
  702. ECHO_T
  703. ECHO_N
  704. ECHO_C
  705. DEFS
  706. mandir
  707. localedir
  708. libdir
  709. psdir
  710. pdfdir
  711. dvidir
  712. htmldir
  713. infodir
  714. docdir
  715. oldincludedir
  716. includedir
  717. localstatedir
  718. sharedstatedir
  719. sysconfdir
  720. datadir
  721. datarootdir
  722. libexecdir
  723. sbindir
  724. bindir
  725. program_transform_name
  726. prefix
  727. exec_prefix
  728. PACKAGE_URL
  729. PACKAGE_BUGREPORT
  730. PACKAGE_STRING
  731. PACKAGE_VERSION
  732. PACKAGE_TARNAME
  733. PACKAGE_NAME
  734. PATH_SEPARATOR
  735. SHELL'
  736. ac_subst_files=''
  737. ac_user_opts='
  738. enable_option_checking
  739. enable_silent_rules
  740. enable_maintainer_mode
  741. enable_dependency_tracking
  742. enable_shared
  743. enable_static
  744. with_pic
  745. enable_fast_install
  746. with_aix_soname
  747. with_gnu_ld
  748. with_sysroot
  749. enable_libtool_lock
  750. enable_docs
  751. enable_examples
  752. with_ogg
  753. with_ogg_libraries
  754. with_ogg_includes
  755. enable_oggtest
  756. '
  757. ac_precious_vars='build_alias
  758. host_alias
  759. target_alias
  760. CC
  761. CFLAGS
  762. LDFLAGS
  763. LIBS
  764. CPPFLAGS
  765. CPP
  766. LT_SYS_LIBRARY_PATH
  767. PKG_CONFIG
  768. OGG_CFLAGS
  769. OGG_LIBS'
  770. # Initialize some variables set by options.
  771. ac_init_help=
  772. ac_init_version=false
  773. ac_unrecognized_opts=
  774. ac_unrecognized_sep=
  775. # The variables have the same names as the options, with
  776. # dashes changed to underlines.
  777. cache_file=/dev/null
  778. exec_prefix=NONE
  779. no_create=
  780. no_recursion=
  781. prefix=NONE
  782. program_prefix=NONE
  783. program_suffix=NONE
  784. program_transform_name=s,x,x,
  785. silent=
  786. site=
  787. srcdir=
  788. verbose=
  789. x_includes=NONE
  790. x_libraries=NONE
  791. # Installation directory options.
  792. # These are left unexpanded so users can "make install exec_prefix=/foo"
  793. # and all the variables that are supposed to be based on exec_prefix
  794. # by default will actually change.
  795. # Use braces instead of parens because sh, perl, etc. also accept them.
  796. # (The list follows the same order as the GNU Coding Standards.)
  797. bindir='${exec_prefix}/bin'
  798. sbindir='${exec_prefix}/sbin'
  799. libexecdir='${exec_prefix}/libexec'
  800. datarootdir='${prefix}/share'
  801. datadir='${datarootdir}'
  802. sysconfdir='${prefix}/etc'
  803. sharedstatedir='${prefix}/com'
  804. localstatedir='${prefix}/var'
  805. includedir='${prefix}/include'
  806. oldincludedir='/usr/include'
  807. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  808. infodir='${datarootdir}/info'
  809. htmldir='${docdir}'
  810. dvidir='${docdir}'
  811. pdfdir='${docdir}'
  812. psdir='${docdir}'
  813. libdir='${exec_prefix}/lib'
  814. localedir='${datarootdir}/locale'
  815. mandir='${datarootdir}/man'
  816. ac_prev=
  817. ac_dashdash=
  818. for ac_option
  819. do
  820. # If the previous option needs an argument, assign it.
  821. if test -n "$ac_prev"; then
  822. eval $ac_prev=\$ac_option
  823. ac_prev=
  824. continue
  825. fi
  826. case $ac_option in
  827. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  828. *=) ac_optarg= ;;
  829. *) ac_optarg=yes ;;
  830. esac
  831. # Accept the important Cygnus configure options, so we can diagnose typos.
  832. case $ac_dashdash$ac_option in
  833. --)
  834. ac_dashdash=yes ;;
  835. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  836. ac_prev=bindir ;;
  837. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  838. bindir=$ac_optarg ;;
  839. -build | --build | --buil | --bui | --bu)
  840. ac_prev=build_alias ;;
  841. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  842. build_alias=$ac_optarg ;;
  843. -cache-file | --cache-file | --cache-fil | --cache-fi \
  844. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  845. ac_prev=cache_file ;;
  846. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  847. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  848. cache_file=$ac_optarg ;;
  849. --config-cache | -C)
  850. cache_file=config.cache ;;
  851. -datadir | --datadir | --datadi | --datad)
  852. ac_prev=datadir ;;
  853. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  854. datadir=$ac_optarg ;;
  855. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  856. | --dataroo | --dataro | --datar)
  857. ac_prev=datarootdir ;;
  858. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  859. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  860. datarootdir=$ac_optarg ;;
  861. -disable-* | --disable-*)
  862. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  863. # Reject names that are not valid shell variable names.
  864. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  865. as_fn_error $? "invalid feature name: $ac_useropt"
  866. ac_useropt_orig=$ac_useropt
  867. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  868. case $ac_user_opts in
  869. *"
  870. "enable_$ac_useropt"
  871. "*) ;;
  872. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  873. ac_unrecognized_sep=', ';;
  874. esac
  875. eval enable_$ac_useropt=no ;;
  876. -docdir | --docdir | --docdi | --doc | --do)
  877. ac_prev=docdir ;;
  878. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  879. docdir=$ac_optarg ;;
  880. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  881. ac_prev=dvidir ;;
  882. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  883. dvidir=$ac_optarg ;;
  884. -enable-* | --enable-*)
  885. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  886. # Reject names that are not valid shell variable names.
  887. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  888. as_fn_error $? "invalid feature name: $ac_useropt"
  889. ac_useropt_orig=$ac_useropt
  890. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  891. case $ac_user_opts in
  892. *"
  893. "enable_$ac_useropt"
  894. "*) ;;
  895. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  896. ac_unrecognized_sep=', ';;
  897. esac
  898. eval enable_$ac_useropt=\$ac_optarg ;;
  899. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  900. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  901. | --exec | --exe | --ex)
  902. ac_prev=exec_prefix ;;
  903. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  904. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  905. | --exec=* | --exe=* | --ex=*)
  906. exec_prefix=$ac_optarg ;;
  907. -gas | --gas | --ga | --g)
  908. # Obsolete; use --with-gas.
  909. with_gas=yes ;;
  910. -help | --help | --hel | --he | -h)
  911. ac_init_help=long ;;
  912. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  913. ac_init_help=recursive ;;
  914. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  915. ac_init_help=short ;;
  916. -host | --host | --hos | --ho)
  917. ac_prev=host_alias ;;
  918. -host=* | --host=* | --hos=* | --ho=*)
  919. host_alias=$ac_optarg ;;
  920. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  921. ac_prev=htmldir ;;
  922. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  923. | --ht=*)
  924. htmldir=$ac_optarg ;;
  925. -includedir | --includedir | --includedi | --included | --include \
  926. | --includ | --inclu | --incl | --inc)
  927. ac_prev=includedir ;;
  928. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  929. | --includ=* | --inclu=* | --incl=* | --inc=*)
  930. includedir=$ac_optarg ;;
  931. -infodir | --infodir | --infodi | --infod | --info | --inf)
  932. ac_prev=infodir ;;
  933. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  934. infodir=$ac_optarg ;;
  935. -libdir | --libdir | --libdi | --libd)
  936. ac_prev=libdir ;;
  937. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  938. libdir=$ac_optarg ;;
  939. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  940. | --libexe | --libex | --libe)
  941. ac_prev=libexecdir ;;
  942. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  943. | --libexe=* | --libex=* | --libe=*)
  944. libexecdir=$ac_optarg ;;
  945. -localedir | --localedir | --localedi | --localed | --locale)
  946. ac_prev=localedir ;;
  947. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  948. localedir=$ac_optarg ;;
  949. -localstatedir | --localstatedir | --localstatedi | --localstated \
  950. | --localstate | --localstat | --localsta | --localst | --locals)
  951. ac_prev=localstatedir ;;
  952. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  953. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  954. localstatedir=$ac_optarg ;;
  955. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  956. ac_prev=mandir ;;
  957. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  958. mandir=$ac_optarg ;;
  959. -nfp | --nfp | --nf)
  960. # Obsolete; use --without-fp.
  961. with_fp=no ;;
  962. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  963. | --no-cr | --no-c | -n)
  964. no_create=yes ;;
  965. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  966. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  967. no_recursion=yes ;;
  968. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  969. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  970. | --oldin | --oldi | --old | --ol | --o)
  971. ac_prev=oldincludedir ;;
  972. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  973. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  974. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  975. oldincludedir=$ac_optarg ;;
  976. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  977. ac_prev=prefix ;;
  978. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  979. prefix=$ac_optarg ;;
  980. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  981. | --program-pre | --program-pr | --program-p)
  982. ac_prev=program_prefix ;;
  983. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  984. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  985. program_prefix=$ac_optarg ;;
  986. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  987. | --program-suf | --program-su | --program-s)
  988. ac_prev=program_suffix ;;
  989. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  990. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  991. program_suffix=$ac_optarg ;;
  992. -program-transform-name | --program-transform-name \
  993. | --program-transform-nam | --program-transform-na \
  994. | --program-transform-n | --program-transform- \
  995. | --program-transform | --program-transfor \
  996. | --program-transfo | --program-transf \
  997. | --program-trans | --program-tran \
  998. | --progr-tra | --program-tr | --program-t)
  999. ac_prev=program_transform_name ;;
  1000. -program-transform-name=* | --program-transform-name=* \
  1001. | --program-transform-nam=* | --program-transform-na=* \
  1002. | --program-transform-n=* | --program-transform-=* \
  1003. | --program-transform=* | --program-transfor=* \
  1004. | --program-transfo=* | --program-transf=* \
  1005. | --program-trans=* | --program-tran=* \
  1006. | --progr-tra=* | --program-tr=* | --program-t=*)
  1007. program_transform_name=$ac_optarg ;;
  1008. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1009. ac_prev=pdfdir ;;
  1010. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1011. pdfdir=$ac_optarg ;;
  1012. -psdir | --psdir | --psdi | --psd | --ps)
  1013. ac_prev=psdir ;;
  1014. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1015. psdir=$ac_optarg ;;
  1016. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1017. | -silent | --silent | --silen | --sile | --sil)
  1018. silent=yes ;;
  1019. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1020. ac_prev=sbindir ;;
  1021. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1022. | --sbi=* | --sb=*)
  1023. sbindir=$ac_optarg ;;
  1024. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1025. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1026. | --sharedst | --shareds | --shared | --share | --shar \
  1027. | --sha | --sh)
  1028. ac_prev=sharedstatedir ;;
  1029. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1030. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1031. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1032. | --sha=* | --sh=*)
  1033. sharedstatedir=$ac_optarg ;;
  1034. -site | --site | --sit)
  1035. ac_prev=site ;;
  1036. -site=* | --site=* | --sit=*)
  1037. site=$ac_optarg ;;
  1038. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1039. ac_prev=srcdir ;;
  1040. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1041. srcdir=$ac_optarg ;;
  1042. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1043. | --syscon | --sysco | --sysc | --sys | --sy)
  1044. ac_prev=sysconfdir ;;
  1045. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1046. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1047. sysconfdir=$ac_optarg ;;
  1048. -target | --target | --targe | --targ | --tar | --ta | --t)
  1049. ac_prev=target_alias ;;
  1050. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1051. target_alias=$ac_optarg ;;
  1052. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1053. verbose=yes ;;
  1054. -version | --version | --versio | --versi | --vers | -V)
  1055. ac_init_version=: ;;
  1056. -with-* | --with-*)
  1057. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1058. # Reject names that are not valid shell variable names.
  1059. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1060. as_fn_error $? "invalid package name: $ac_useropt"
  1061. ac_useropt_orig=$ac_useropt
  1062. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1063. case $ac_user_opts in
  1064. *"
  1065. "with_$ac_useropt"
  1066. "*) ;;
  1067. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1068. ac_unrecognized_sep=', ';;
  1069. esac
  1070. eval with_$ac_useropt=\$ac_optarg ;;
  1071. -without-* | --without-*)
  1072. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1073. # Reject names that are not valid shell variable names.
  1074. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1075. as_fn_error $? "invalid package name: $ac_useropt"
  1076. ac_useropt_orig=$ac_useropt
  1077. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1078. case $ac_user_opts in
  1079. *"
  1080. "with_$ac_useropt"
  1081. "*) ;;
  1082. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1083. ac_unrecognized_sep=', ';;
  1084. esac
  1085. eval with_$ac_useropt=no ;;
  1086. --x)
  1087. # Obsolete; use --with-x.
  1088. with_x=yes ;;
  1089. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1090. | --x-incl | --x-inc | --x-in | --x-i)
  1091. ac_prev=x_includes ;;
  1092. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1093. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1094. x_includes=$ac_optarg ;;
  1095. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1096. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1097. ac_prev=x_libraries ;;
  1098. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1099. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1100. x_libraries=$ac_optarg ;;
  1101. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1102. Try \`$0 --help' for more information"
  1103. ;;
  1104. *=*)
  1105. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1106. # Reject names that are not valid shell variable names.
  1107. case $ac_envvar in #(
  1108. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1109. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1110. esac
  1111. eval $ac_envvar=\$ac_optarg
  1112. export $ac_envvar ;;
  1113. *)
  1114. # FIXME: should be removed in autoconf 3.0.
  1115. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1116. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1117. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1118. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1119. ;;
  1120. esac
  1121. done
  1122. if test -n "$ac_prev"; then
  1123. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1124. as_fn_error $? "missing argument to $ac_option"
  1125. fi
  1126. if test -n "$ac_unrecognized_opts"; then
  1127. case $enable_option_checking in
  1128. no) ;;
  1129. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1130. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1131. esac
  1132. fi
  1133. # Check all directory arguments for consistency.
  1134. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1135. datadir sysconfdir sharedstatedir localstatedir includedir \
  1136. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1137. libdir localedir mandir
  1138. do
  1139. eval ac_val=\$$ac_var
  1140. # Remove trailing slashes.
  1141. case $ac_val in
  1142. */ )
  1143. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1144. eval $ac_var=\$ac_val;;
  1145. esac
  1146. # Be sure to have absolute directory names.
  1147. case $ac_val in
  1148. [\\/$]* | ?:[\\/]* ) continue;;
  1149. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1150. esac
  1151. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1152. done
  1153. # There might be people who depend on the old broken behavior: `$host'
  1154. # used to hold the argument of --host etc.
  1155. # FIXME: To remove some day.
  1156. build=$build_alias
  1157. host=$host_alias
  1158. target=$target_alias
  1159. # FIXME: To remove some day.
  1160. if test "x$host_alias" != x; then
  1161. if test "x$build_alias" = x; then
  1162. cross_compiling=maybe
  1163. elif test "x$build_alias" != "x$host_alias"; then
  1164. cross_compiling=yes
  1165. fi
  1166. fi
  1167. ac_tool_prefix=
  1168. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1169. test "$silent" = yes && exec 6>/dev/null
  1170. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1171. ac_ls_di=`ls -di .` &&
  1172. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1173. as_fn_error $? "working directory cannot be determined"
  1174. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1175. as_fn_error $? "pwd does not report name of working directory"
  1176. # Find the source files, if location was not specified.
  1177. if test -z "$srcdir"; then
  1178. ac_srcdir_defaulted=yes
  1179. # Try the directory containing this script, then the parent directory.
  1180. ac_confdir=`$as_dirname -- "$as_myself" ||
  1181. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1182. X"$as_myself" : 'X\(//\)[^/]' \| \
  1183. X"$as_myself" : 'X\(//\)$' \| \
  1184. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1185. $as_echo X"$as_myself" |
  1186. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1187. s//\1/
  1188. q
  1189. }
  1190. /^X\(\/\/\)[^/].*/{
  1191. s//\1/
  1192. q
  1193. }
  1194. /^X\(\/\/\)$/{
  1195. s//\1/
  1196. q
  1197. }
  1198. /^X\(\/\).*/{
  1199. s//\1/
  1200. q
  1201. }
  1202. s/.*/./; q'`
  1203. srcdir=$ac_confdir
  1204. if test ! -r "$srcdir/$ac_unique_file"; then
  1205. srcdir=..
  1206. fi
  1207. else
  1208. ac_srcdir_defaulted=no
  1209. fi
  1210. if test ! -r "$srcdir/$ac_unique_file"; then
  1211. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1212. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1213. fi
  1214. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1215. ac_abs_confdir=`(
  1216. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1217. pwd)`
  1218. # When building in place, set srcdir=.
  1219. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1220. srcdir=.
  1221. fi
  1222. # Remove unnecessary trailing slashes from srcdir.
  1223. # Double slashes in file names in object file debugging info
  1224. # mess up M-x gdb in Emacs.
  1225. case $srcdir in
  1226. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1227. esac
  1228. for ac_var in $ac_precious_vars; do
  1229. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1230. eval ac_env_${ac_var}_value=\$${ac_var}
  1231. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1232. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1233. done
  1234. #
  1235. # Report the --help message.
  1236. #
  1237. if test "$ac_init_help" = "long"; then
  1238. # Omit some internal or obsolete options to make the list less imposing.
  1239. # This message is too long to be a string in the A/UX 3.1 sh.
  1240. cat <<_ACEOF
  1241. \`configure' configures libvorbis 1.3.5 to adapt to many kinds of systems.
  1242. Usage: $0 [OPTION]... [VAR=VALUE]...
  1243. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1244. VAR=VALUE. See below for descriptions of some of the useful variables.
  1245. Defaults for the options are specified in brackets.
  1246. Configuration:
  1247. -h, --help display this help and exit
  1248. --help=short display options specific to this package
  1249. --help=recursive display the short help of all the included packages
  1250. -V, --version display version information and exit
  1251. -q, --quiet, --silent do not print \`checking ...' messages
  1252. --cache-file=FILE cache test results in FILE [disabled]
  1253. -C, --config-cache alias for \`--cache-file=config.cache'
  1254. -n, --no-create do not create output files
  1255. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1256. Installation directories:
  1257. --prefix=PREFIX install architecture-independent files in PREFIX
  1258. [$ac_default_prefix]
  1259. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1260. [PREFIX]
  1261. By default, \`make install' will install all the files in
  1262. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1263. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1264. for instance \`--prefix=\$HOME'.
  1265. For better control, use the options below.
  1266. Fine tuning of the installation directories:
  1267. --bindir=DIR user executables [EPREFIX/bin]
  1268. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1269. --libexecdir=DIR program executables [EPREFIX/libexec]
  1270. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1271. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1272. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1273. --libdir=DIR object code libraries [EPREFIX/lib]
  1274. --includedir=DIR C header files [PREFIX/include]
  1275. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1276. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1277. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1278. --infodir=DIR info documentation [DATAROOTDIR/info]
  1279. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1280. --mandir=DIR man documentation [DATAROOTDIR/man]
  1281. --docdir=DIR documentation root [DATAROOTDIR/doc/libvorbis]
  1282. --htmldir=DIR html documentation [DOCDIR]
  1283. --dvidir=DIR dvi documentation [DOCDIR]
  1284. --pdfdir=DIR pdf documentation [DOCDIR]
  1285. --psdir=DIR ps documentation [DOCDIR]
  1286. _ACEOF
  1287. cat <<\_ACEOF
  1288. Program names:
  1289. --program-prefix=PREFIX prepend PREFIX to installed program names
  1290. --program-suffix=SUFFIX append SUFFIX to installed program names
  1291. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1292. System types:
  1293. --build=BUILD configure for building on BUILD [guessed]
  1294. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1295. --target=TARGET configure for building compilers for TARGET [HOST]
  1296. _ACEOF
  1297. fi
  1298. if test -n "$ac_init_help"; then
  1299. case $ac_init_help in
  1300. short | recursive ) echo "Configuration of libvorbis 1.3.5:";;
  1301. esac
  1302. cat <<\_ACEOF
  1303. Optional Features:
  1304. --disable-option-checking ignore unrecognized --enable/--with options
  1305. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1306. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1307. --enable-silent-rules less verbose build output (undo: "make V=1")
  1308. --disable-silent-rules verbose build output (undo: "make V=0")
  1309. --enable-maintainer-mode
  1310. enable make rules and dependencies not useful (and
  1311. sometimes confusing) to the casual installer
  1312. --enable-dependency-tracking
  1313. do not reject slow dependency extractors
  1314. --disable-dependency-tracking
  1315. speeds up one-time build
  1316. --enable-shared[=PKGS] build shared libraries [default=yes]
  1317. --enable-static[=PKGS] build static libraries [default=yes]
  1318. --enable-fast-install[=PKGS]
  1319. optimize for fast installation [default=yes]
  1320. --disable-libtool-lock avoid locking (might break parallel builds)
  1321. --enable-docs build the documentation
  1322. --enable-examples build the examples
  1323. --disable-oggtest Do not try to compile and run a test Ogg program
  1324. Optional Packages:
  1325. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1326. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1327. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1328. both]
  1329. --with-aix-soname=aix|svr4|both
  1330. shared library versioning (aka "SONAME") variant to
  1331. provide on AIX, [default=aix].
  1332. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1333. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1334. compiler's sysroot if not specified).
  1335. --with-ogg=PFX Prefix where libogg is installed (optional)
  1336. --with-ogg-libraries=DIR
  1337. Directory where libogg library is installed
  1338. (optional)
  1339. --with-ogg-includes=DIR Directory where libogg header files are installed
  1340. (optional)
  1341. Some influential environment variables:
  1342. CC C compiler command
  1343. CFLAGS C compiler flags
  1344. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1345. nonstandard directory <lib dir>
  1346. LIBS libraries to pass to the linker, e.g. -l<library>
  1347. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1348. you have headers in a nonstandard directory <include dir>
  1349. CPP C preprocessor
  1350. LT_SYS_LIBRARY_PATH
  1351. User-defined run-time library search path.
  1352. PKG_CONFIG path to pkg-config utility
  1353. OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
  1354. OGG_LIBS linker flags for OGG, overriding pkg-config
  1355. Use these variables to override the choices made by `configure' or to help
  1356. it to find libraries and programs with nonstandard names/locations.
  1357. Report bugs to <[email protected]>.
  1358. _ACEOF
  1359. ac_status=$?
  1360. fi
  1361. if test "$ac_init_help" = "recursive"; then
  1362. # If there are subdirs, report their specific --help.
  1363. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1364. test -d "$ac_dir" ||
  1365. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1366. continue
  1367. ac_builddir=.
  1368. case "$ac_dir" in
  1369. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1370. *)
  1371. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1372. # A ".." for each directory in $ac_dir_suffix.
  1373. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1374. case $ac_top_builddir_sub in
  1375. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1376. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1377. esac ;;
  1378. esac
  1379. ac_abs_top_builddir=$ac_pwd
  1380. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1381. # for backward compatibility:
  1382. ac_top_builddir=$ac_top_build_prefix
  1383. case $srcdir in
  1384. .) # We are building in place.
  1385. ac_srcdir=.
  1386. ac_top_srcdir=$ac_top_builddir_sub
  1387. ac_abs_top_srcdir=$ac_pwd ;;
  1388. [\\/]* | ?:[\\/]* ) # Absolute name.
  1389. ac_srcdir=$srcdir$ac_dir_suffix;
  1390. ac_top_srcdir=$srcdir
  1391. ac_abs_top_srcdir=$srcdir ;;
  1392. *) # Relative name.
  1393. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1394. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1395. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1396. esac
  1397. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1398. cd "$ac_dir" || { ac_status=$?; continue; }
  1399. # Check for guested configure.
  1400. if test -f "$ac_srcdir/configure.gnu"; then
  1401. echo &&
  1402. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1403. elif test -f "$ac_srcdir/configure"; then
  1404. echo &&
  1405. $SHELL "$ac_srcdir/configure" --help=recursive
  1406. else
  1407. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1408. fi || ac_status=$?
  1409. cd "$ac_pwd" || { ac_status=$?; break; }
  1410. done
  1411. fi
  1412. test -n "$ac_init_help" && exit $ac_status
  1413. if $ac_init_version; then
  1414. cat <<\_ACEOF
  1415. libvorbis configure 1.3.5
  1416. generated by GNU Autoconf 2.69
  1417. Copyright (C) 2012 Free Software Foundation, Inc.
  1418. This configure script is free software; the Free Software Foundation
  1419. gives unlimited permission to copy, distribute and modify it.
  1420. _ACEOF
  1421. exit
  1422. fi
  1423. ## ------------------------ ##
  1424. ## Autoconf initialization. ##
  1425. ## ------------------------ ##
  1426. # ac_fn_c_try_compile LINENO
  1427. # --------------------------
  1428. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1429. ac_fn_c_try_compile ()
  1430. {
  1431. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1432. rm -f conftest.$ac_objext
  1433. if { { ac_try="$ac_compile"
  1434. case "(($ac_try" in
  1435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1436. *) ac_try_echo=$ac_try;;
  1437. esac
  1438. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1439. $as_echo "$ac_try_echo"; } >&5
  1440. (eval "$ac_compile") 2>conftest.err
  1441. ac_status=$?
  1442. if test -s conftest.err; then
  1443. grep -v '^ *+' conftest.err >conftest.er1
  1444. cat conftest.er1 >&5
  1445. mv -f conftest.er1 conftest.err
  1446. fi
  1447. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1448. test $ac_status = 0; } && {
  1449. test -z "$ac_c_werror_flag" ||
  1450. test ! -s conftest.err
  1451. } && test -s conftest.$ac_objext; then :
  1452. ac_retval=0
  1453. else
  1454. $as_echo "$as_me: failed program was:" >&5
  1455. sed 's/^/| /' conftest.$ac_ext >&5
  1456. ac_retval=1
  1457. fi
  1458. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1459. as_fn_set_status $ac_retval
  1460. } # ac_fn_c_try_compile
  1461. # ac_fn_c_try_cpp LINENO
  1462. # ----------------------
  1463. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1464. ac_fn_c_try_cpp ()
  1465. {
  1466. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1467. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1468. case "(($ac_try" in
  1469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1470. *) ac_try_echo=$ac_try;;
  1471. esac
  1472. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1473. $as_echo "$ac_try_echo"; } >&5
  1474. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1475. ac_status=$?
  1476. if test -s conftest.err; then
  1477. grep -v '^ *+' conftest.err >conftest.er1
  1478. cat conftest.er1 >&5
  1479. mv -f conftest.er1 conftest.err
  1480. fi
  1481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1482. test $ac_status = 0; } > conftest.i && {
  1483. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1484. test ! -s conftest.err
  1485. }; then :
  1486. ac_retval=0
  1487. else
  1488. $as_echo "$as_me: failed program was:" >&5
  1489. sed 's/^/| /' conftest.$ac_ext >&5
  1490. ac_retval=1
  1491. fi
  1492. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1493. as_fn_set_status $ac_retval
  1494. } # ac_fn_c_try_cpp
  1495. # ac_fn_c_try_link LINENO
  1496. # -----------------------
  1497. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1498. ac_fn_c_try_link ()
  1499. {
  1500. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1501. rm -f conftest.$ac_objext conftest$ac_exeext
  1502. if { { ac_try="$ac_link"
  1503. case "(($ac_try" in
  1504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1505. *) ac_try_echo=$ac_try;;
  1506. esac
  1507. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1508. $as_echo "$ac_try_echo"; } >&5
  1509. (eval "$ac_link") 2>conftest.err
  1510. ac_status=$?
  1511. if test -s conftest.err; then
  1512. grep -v '^ *+' conftest.err >conftest.er1
  1513. cat conftest.er1 >&5
  1514. mv -f conftest.er1 conftest.err
  1515. fi
  1516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1517. test $ac_status = 0; } && {
  1518. test -z "$ac_c_werror_flag" ||
  1519. test ! -s conftest.err
  1520. } && test -s conftest$ac_exeext && {
  1521. test "$cross_compiling" = yes ||
  1522. test -x conftest$ac_exeext
  1523. }; then :
  1524. ac_retval=0
  1525. else
  1526. $as_echo "$as_me: failed program was:" >&5
  1527. sed 's/^/| /' conftest.$ac_ext >&5
  1528. ac_retval=1
  1529. fi
  1530. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1531. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1532. # interfere with the next link command; also delete a directory that is
  1533. # left behind by Apple's compiler. We do this before executing the actions.
  1534. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1535. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1536. as_fn_set_status $ac_retval
  1537. } # ac_fn_c_try_link
  1538. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1539. # -------------------------------------------------------
  1540. # Tests whether HEADER exists and can be compiled using the include files in
  1541. # INCLUDES, setting the cache variable VAR accordingly.
  1542. ac_fn_c_check_header_compile ()
  1543. {
  1544. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1546. $as_echo_n "checking for $2... " >&6; }
  1547. if eval \${$3+:} false; then :
  1548. $as_echo_n "(cached) " >&6
  1549. else
  1550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1551. /* end confdefs.h. */
  1552. $4
  1553. #include <$2>
  1554. _ACEOF
  1555. if ac_fn_c_try_compile "$LINENO"; then :
  1556. eval "$3=yes"
  1557. else
  1558. eval "$3=no"
  1559. fi
  1560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1561. fi
  1562. eval ac_res=\$$3
  1563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1564. $as_echo "$ac_res" >&6; }
  1565. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1566. } # ac_fn_c_check_header_compile
  1567. # ac_fn_c_try_run LINENO
  1568. # ----------------------
  1569. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1570. # that executables *can* be run.
  1571. ac_fn_c_try_run ()
  1572. {
  1573. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1574. if { { ac_try="$ac_link"
  1575. case "(($ac_try" in
  1576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1577. *) ac_try_echo=$ac_try;;
  1578. esac
  1579. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1580. $as_echo "$ac_try_echo"; } >&5
  1581. (eval "$ac_link") 2>&5
  1582. ac_status=$?
  1583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1584. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1585. { { case "(($ac_try" in
  1586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1587. *) ac_try_echo=$ac_try;;
  1588. esac
  1589. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1590. $as_echo "$ac_try_echo"; } >&5
  1591. (eval "$ac_try") 2>&5
  1592. ac_status=$?
  1593. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1594. test $ac_status = 0; }; }; then :
  1595. ac_retval=0
  1596. else
  1597. $as_echo "$as_me: program exited with status $ac_status" >&5
  1598. $as_echo "$as_me: failed program was:" >&5
  1599. sed 's/^/| /' conftest.$ac_ext >&5
  1600. ac_retval=$ac_status
  1601. fi
  1602. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1603. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1604. as_fn_set_status $ac_retval
  1605. } # ac_fn_c_try_run
  1606. # ac_fn_c_check_func LINENO FUNC VAR
  1607. # ----------------------------------
  1608. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1609. ac_fn_c_check_func ()
  1610. {
  1611. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1613. $as_echo_n "checking for $2... " >&6; }
  1614. if eval \${$3+:} false; then :
  1615. $as_echo_n "(cached) " >&6
  1616. else
  1617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1618. /* end confdefs.h. */
  1619. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1620. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1621. #define $2 innocuous_$2
  1622. /* System header to define __stub macros and hopefully few prototypes,
  1623. which can conflict with char $2 (); below.
  1624. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1625. <limits.h> exists even on freestanding compilers. */
  1626. #ifdef __STDC__
  1627. # include <limits.h>
  1628. #else
  1629. # include <assert.h>
  1630. #endif
  1631. #undef $2
  1632. /* Override any GCC internal prototype to avoid an error.
  1633. Use char because int might match the return type of a GCC
  1634. builtin and then its argument prototype would still apply. */
  1635. #ifdef __cplusplus
  1636. extern "C"
  1637. #endif
  1638. char $2 ();
  1639. /* The GNU C library defines this for functions which it implements
  1640. to always fail with ENOSYS. Some functions are actually named
  1641. something starting with __ and the normal name is an alias. */
  1642. #if defined __stub_$2 || defined __stub___$2
  1643. choke me
  1644. #endif
  1645. int
  1646. main ()
  1647. {
  1648. return $2 ();
  1649. ;
  1650. return 0;
  1651. }
  1652. _ACEOF
  1653. if ac_fn_c_try_link "$LINENO"; then :
  1654. eval "$3=yes"
  1655. else
  1656. eval "$3=no"
  1657. fi
  1658. rm -f core conftest.err conftest.$ac_objext \
  1659. conftest$ac_exeext conftest.$ac_ext
  1660. fi
  1661. eval ac_res=\$$3
  1662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1663. $as_echo "$ac_res" >&6; }
  1664. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1665. } # ac_fn_c_check_func
  1666. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1667. # -------------------------------------------------------
  1668. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1669. # the include files in INCLUDES and setting the cache variable VAR
  1670. # accordingly.
  1671. ac_fn_c_check_header_mongrel ()
  1672. {
  1673. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1674. if eval \${$3+:} false; then :
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1676. $as_echo_n "checking for $2... " >&6; }
  1677. if eval \${$3+:} false; then :
  1678. $as_echo_n "(cached) " >&6
  1679. fi
  1680. eval ac_res=\$$3
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1682. $as_echo "$ac_res" >&6; }
  1683. else
  1684. # Is the header compilable?
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1686. $as_echo_n "checking $2 usability... " >&6; }
  1687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1688. /* end confdefs.h. */
  1689. $4
  1690. #include <$2>
  1691. _ACEOF
  1692. if ac_fn_c_try_compile "$LINENO"; then :
  1693. ac_header_compiler=yes
  1694. else
  1695. ac_header_compiler=no
  1696. fi
  1697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1699. $as_echo "$ac_header_compiler" >&6; }
  1700. # Is the header present?
  1701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1702. $as_echo_n "checking $2 presence... " >&6; }
  1703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1704. /* end confdefs.h. */
  1705. #include <$2>
  1706. _ACEOF
  1707. if ac_fn_c_try_cpp "$LINENO"; then :
  1708. ac_header_preproc=yes
  1709. else
  1710. ac_header_preproc=no
  1711. fi
  1712. rm -f conftest.err conftest.i conftest.$ac_ext
  1713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1714. $as_echo "$ac_header_preproc" >&6; }
  1715. # So? What about this header?
  1716. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1717. yes:no: )
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1719. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1721. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1722. ;;
  1723. no:yes:* )
  1724. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1725. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1727. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1728. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1729. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1730. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1731. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1733. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1734. ( $as_echo "## ---------------------------------- ##
  1735. ## Report this to [email protected] ##
  1736. ## ---------------------------------- ##"
  1737. ) | sed "s/^/$as_me: WARNING: /" >&2
  1738. ;;
  1739. esac
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1741. $as_echo_n "checking for $2... " >&6; }
  1742. if eval \${$3+:} false; then :
  1743. $as_echo_n "(cached) " >&6
  1744. else
  1745. eval "$3=\$ac_header_compiler"
  1746. fi
  1747. eval ac_res=\$$3
  1748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1749. $as_echo "$ac_res" >&6; }
  1750. fi
  1751. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1752. } # ac_fn_c_check_header_mongrel
  1753. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1754. # -------------------------------------------
  1755. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1756. # variable VAR accordingly.
  1757. ac_fn_c_check_type ()
  1758. {
  1759. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1761. $as_echo_n "checking for $2... " >&6; }
  1762. if eval \${$3+:} false; then :
  1763. $as_echo_n "(cached) " >&6
  1764. else
  1765. eval "$3=no"
  1766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1767. /* end confdefs.h. */
  1768. $4
  1769. int
  1770. main ()
  1771. {
  1772. if (sizeof ($2))
  1773. return 0;
  1774. ;
  1775. return 0;
  1776. }
  1777. _ACEOF
  1778. if ac_fn_c_try_compile "$LINENO"; then :
  1779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1780. /* end confdefs.h. */
  1781. $4
  1782. int
  1783. main ()
  1784. {
  1785. if (sizeof (($2)))
  1786. return 0;
  1787. ;
  1788. return 0;
  1789. }
  1790. _ACEOF
  1791. if ac_fn_c_try_compile "$LINENO"; then :
  1792. else
  1793. eval "$3=yes"
  1794. fi
  1795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1796. fi
  1797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1798. fi
  1799. eval ac_res=\$$3
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1801. $as_echo "$ac_res" >&6; }
  1802. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1803. } # ac_fn_c_check_type
  1804. cat >config.log <<_ACEOF
  1805. This file contains any messages produced by compilers while
  1806. running configure, to aid debugging if configure makes a mistake.
  1807. It was created by libvorbis $as_me 1.3.5, which was
  1808. generated by GNU Autoconf 2.69. Invocation command line was
  1809. $ $0 $@
  1810. _ACEOF
  1811. exec 5>>config.log
  1812. {
  1813. cat <<_ASUNAME
  1814. ## --------- ##
  1815. ## Platform. ##
  1816. ## --------- ##
  1817. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1818. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1819. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1820. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1821. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1822. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1823. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1824. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1825. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1826. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1827. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1828. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1829. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1830. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1831. _ASUNAME
  1832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1833. for as_dir in $PATH
  1834. do
  1835. IFS=$as_save_IFS
  1836. test -z "$as_dir" && as_dir=.
  1837. $as_echo "PATH: $as_dir"
  1838. done
  1839. IFS=$as_save_IFS
  1840. } >&5
  1841. cat >&5 <<_ACEOF
  1842. ## ----------- ##
  1843. ## Core tests. ##
  1844. ## ----------- ##
  1845. _ACEOF
  1846. # Keep a trace of the command line.
  1847. # Strip out --no-create and --no-recursion so they do not pile up.
  1848. # Strip out --silent because we don't want to record it for future runs.
  1849. # Also quote any args containing shell meta-characters.
  1850. # Make two passes to allow for proper duplicate-argument suppression.
  1851. ac_configure_args=
  1852. ac_configure_args0=
  1853. ac_configure_args1=
  1854. ac_must_keep_next=false
  1855. for ac_pass in 1 2
  1856. do
  1857. for ac_arg
  1858. do
  1859. case $ac_arg in
  1860. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1861. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1862. | -silent | --silent | --silen | --sile | --sil)
  1863. continue ;;
  1864. *\'*)
  1865. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1866. esac
  1867. case $ac_pass in
  1868. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1869. 2)
  1870. as_fn_append ac_configure_args1 " '$ac_arg'"
  1871. if test $ac_must_keep_next = true; then
  1872. ac_must_keep_next=false # Got value, back to normal.
  1873. else
  1874. case $ac_arg in
  1875. *=* | --config-cache | -C | -disable-* | --disable-* \
  1876. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1877. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1878. | -with-* | --with-* | -without-* | --without-* | --x)
  1879. case "$ac_configure_args0 " in
  1880. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1881. esac
  1882. ;;
  1883. -* ) ac_must_keep_next=true ;;
  1884. esac
  1885. fi
  1886. as_fn_append ac_configure_args " '$ac_arg'"
  1887. ;;
  1888. esac
  1889. done
  1890. done
  1891. { ac_configure_args0=; unset ac_configure_args0;}
  1892. { ac_configure_args1=; unset ac_configure_args1;}
  1893. # When interrupted or exit'd, cleanup temporary files, and complete
  1894. # config.log. We remove comments because anyway the quotes in there
  1895. # would cause problems or look ugly.
  1896. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1897. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1898. trap 'exit_status=$?
  1899. # Save into config.log some information that might help in debugging.
  1900. {
  1901. echo
  1902. $as_echo "## ---------------- ##
  1903. ## Cache variables. ##
  1904. ## ---------------- ##"
  1905. echo
  1906. # The following way of writing the cache mishandles newlines in values,
  1907. (
  1908. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1909. eval ac_val=\$$ac_var
  1910. case $ac_val in #(
  1911. *${as_nl}*)
  1912. case $ac_var in #(
  1913. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1914. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1915. esac
  1916. case $ac_var in #(
  1917. _ | IFS | as_nl) ;; #(
  1918. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1919. *) { eval $ac_var=; unset $ac_var;} ;;
  1920. esac ;;
  1921. esac
  1922. done
  1923. (set) 2>&1 |
  1924. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1925. *${as_nl}ac_space=\ *)
  1926. sed -n \
  1927. "s/'\''/'\''\\\\'\'''\''/g;
  1928. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1929. ;; #(
  1930. *)
  1931. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1932. ;;
  1933. esac |
  1934. sort
  1935. )
  1936. echo
  1937. $as_echo "## ----------------- ##
  1938. ## Output variables. ##
  1939. ## ----------------- ##"
  1940. echo
  1941. for ac_var in $ac_subst_vars
  1942. do
  1943. eval ac_val=\$$ac_var
  1944. case $ac_val in
  1945. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1946. esac
  1947. $as_echo "$ac_var='\''$ac_val'\''"
  1948. done | sort
  1949. echo
  1950. if test -n "$ac_subst_files"; then
  1951. $as_echo "## ------------------- ##
  1952. ## File substitutions. ##
  1953. ## ------------------- ##"
  1954. echo
  1955. for ac_var in $ac_subst_files
  1956. do
  1957. eval ac_val=\$$ac_var
  1958. case $ac_val in
  1959. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1960. esac
  1961. $as_echo "$ac_var='\''$ac_val'\''"
  1962. done | sort
  1963. echo
  1964. fi
  1965. if test -s confdefs.h; then
  1966. $as_echo "## ----------- ##
  1967. ## confdefs.h. ##
  1968. ## ----------- ##"
  1969. echo
  1970. cat confdefs.h
  1971. echo
  1972. fi
  1973. test "$ac_signal" != 0 &&
  1974. $as_echo "$as_me: caught signal $ac_signal"
  1975. $as_echo "$as_me: exit $exit_status"
  1976. } >&5
  1977. rm -f core *.core core.conftest.* &&
  1978. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1979. exit $exit_status
  1980. ' 0
  1981. for ac_signal in 1 2 13 15; do
  1982. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1983. done
  1984. ac_signal=0
  1985. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1986. rm -f -r conftest* confdefs.h
  1987. $as_echo "/* confdefs.h */" > confdefs.h
  1988. # Predefined preprocessor variables.
  1989. cat >>confdefs.h <<_ACEOF
  1990. #define PACKAGE_NAME "$PACKAGE_NAME"
  1991. _ACEOF
  1992. cat >>confdefs.h <<_ACEOF
  1993. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1994. _ACEOF
  1995. cat >>confdefs.h <<_ACEOF
  1996. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1997. _ACEOF
  1998. cat >>confdefs.h <<_ACEOF
  1999. #define PACKAGE_STRING "$PACKAGE_STRING"
  2000. _ACEOF
  2001. cat >>confdefs.h <<_ACEOF
  2002. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2003. _ACEOF
  2004. cat >>confdefs.h <<_ACEOF
  2005. #define PACKAGE_URL "$PACKAGE_URL"
  2006. _ACEOF
  2007. # Let the site file select an alternate cache file if it wants to.
  2008. # Prefer an explicitly selected file to automatically selected ones.
  2009. ac_site_file1=NONE
  2010. ac_site_file2=NONE
  2011. if test -n "$CONFIG_SITE"; then
  2012. # We do not want a PATH search for config.site.
  2013. case $CONFIG_SITE in #((
  2014. -*) ac_site_file1=./$CONFIG_SITE;;
  2015. */*) ac_site_file1=$CONFIG_SITE;;
  2016. *) ac_site_file1=./$CONFIG_SITE;;
  2017. esac
  2018. elif test "x$prefix" != xNONE; then
  2019. ac_site_file1=$prefix/share/config.site
  2020. ac_site_file2=$prefix/etc/config.site
  2021. else
  2022. ac_site_file1=$ac_default_prefix/share/config.site
  2023. ac_site_file2=$ac_default_prefix/etc/config.site
  2024. fi
  2025. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2026. do
  2027. test "x$ac_site_file" = xNONE && continue
  2028. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2029. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2030. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2031. sed 's/^/| /' "$ac_site_file" >&5
  2032. . "$ac_site_file" \
  2033. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2035. as_fn_error $? "failed to load site script $ac_site_file
  2036. See \`config.log' for more details" "$LINENO" 5; }
  2037. fi
  2038. done
  2039. if test -r "$cache_file"; then
  2040. # Some versions of bash will fail to source /dev/null (special files
  2041. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2042. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2043. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2044. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2045. case $cache_file in
  2046. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2047. *) . "./$cache_file";;
  2048. esac
  2049. fi
  2050. else
  2051. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2052. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2053. >$cache_file
  2054. fi
  2055. # Check that the precious variables saved in the cache have kept the same
  2056. # value.
  2057. ac_cache_corrupted=false
  2058. for ac_var in $ac_precious_vars; do
  2059. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2060. eval ac_new_set=\$ac_env_${ac_var}_set
  2061. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2062. eval ac_new_val=\$ac_env_${ac_var}_value
  2063. case $ac_old_set,$ac_new_set in
  2064. set,)
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2066. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2067. ac_cache_corrupted=: ;;
  2068. ,set)
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2070. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2071. ac_cache_corrupted=: ;;
  2072. ,);;
  2073. *)
  2074. if test "x$ac_old_val" != "x$ac_new_val"; then
  2075. # differences in whitespace do not lead to failure.
  2076. ac_old_val_w=`echo x $ac_old_val`
  2077. ac_new_val_w=`echo x $ac_new_val`
  2078. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2080. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2081. ac_cache_corrupted=:
  2082. else
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2084. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2085. eval $ac_var=\$ac_old_val
  2086. fi
  2087. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2088. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2090. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2091. fi;;
  2092. esac
  2093. # Pass precious variables to config.status.
  2094. if test "$ac_new_set" = set; then
  2095. case $ac_new_val in
  2096. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2097. *) ac_arg=$ac_var=$ac_new_val ;;
  2098. esac
  2099. case " $ac_configure_args " in
  2100. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2101. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2102. esac
  2103. fi
  2104. done
  2105. if $ac_cache_corrupted; then
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2107. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2109. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2110. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2111. fi
  2112. ## -------------------- ##
  2113. ## Main body of script. ##
  2114. ## -------------------- ##
  2115. ac_ext=c
  2116. ac_cpp='$CPP $CPPFLAGS'
  2117. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2118. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2119. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2120. ac_aux_dir=
  2121. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2122. if test -f "$ac_dir/install-sh"; then
  2123. ac_aux_dir=$ac_dir
  2124. ac_install_sh="$ac_aux_dir/install-sh -c"
  2125. break
  2126. elif test -f "$ac_dir/install.sh"; then
  2127. ac_aux_dir=$ac_dir
  2128. ac_install_sh="$ac_aux_dir/install.sh -c"
  2129. break
  2130. elif test -f "$ac_dir/shtool"; then
  2131. ac_aux_dir=$ac_dir
  2132. ac_install_sh="$ac_aux_dir/shtool install -c"
  2133. break
  2134. fi
  2135. done
  2136. if test -z "$ac_aux_dir"; then
  2137. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2138. fi
  2139. # These three variables are undocumented and unsupported,
  2140. # and are intended to be withdrawn in a future Autoconf release.
  2141. # They can cause serious problems if a builder's source tree is in a directory
  2142. # whose full name contains unusual characters.
  2143. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2144. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2145. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2146. # Make sure we can run config.sub.
  2147. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2148. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2150. $as_echo_n "checking build system type... " >&6; }
  2151. if ${ac_cv_build+:} false; then :
  2152. $as_echo_n "(cached) " >&6
  2153. else
  2154. ac_build_alias=$build_alias
  2155. test "x$ac_build_alias" = x &&
  2156. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2157. test "x$ac_build_alias" = x &&
  2158. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2159. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2160. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2161. fi
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2163. $as_echo "$ac_cv_build" >&6; }
  2164. case $ac_cv_build in
  2165. *-*-*) ;;
  2166. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2167. esac
  2168. build=$ac_cv_build
  2169. ac_save_IFS=$IFS; IFS='-'
  2170. set x $ac_cv_build
  2171. shift
  2172. build_cpu=$1
  2173. build_vendor=$2
  2174. shift; shift
  2175. # Remember, the first character of IFS is used to create $*,
  2176. # except with old shells:
  2177. build_os=$*
  2178. IFS=$ac_save_IFS
  2179. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2181. $as_echo_n "checking host system type... " >&6; }
  2182. if ${ac_cv_host+:} false; then :
  2183. $as_echo_n "(cached) " >&6
  2184. else
  2185. if test "x$host_alias" = x; then
  2186. ac_cv_host=$ac_cv_build
  2187. else
  2188. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2189. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2190. fi
  2191. fi
  2192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2193. $as_echo "$ac_cv_host" >&6; }
  2194. case $ac_cv_host in
  2195. *-*-*) ;;
  2196. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2197. esac
  2198. host=$ac_cv_host
  2199. ac_save_IFS=$IFS; IFS='-'
  2200. set x $ac_cv_host
  2201. shift
  2202. host_cpu=$1
  2203. host_vendor=$2
  2204. shift; shift
  2205. # Remember, the first character of IFS is used to create $*,
  2206. # except with old shells:
  2207. host_os=$*
  2208. IFS=$ac_save_IFS
  2209. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2211. $as_echo_n "checking target system type... " >&6; }
  2212. if ${ac_cv_target+:} false; then :
  2213. $as_echo_n "(cached) " >&6
  2214. else
  2215. if test "x$target_alias" = x; then
  2216. ac_cv_target=$ac_cv_host
  2217. else
  2218. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2219. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2220. fi
  2221. fi
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2223. $as_echo "$ac_cv_target" >&6; }
  2224. case $ac_cv_target in
  2225. *-*-*) ;;
  2226. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2227. esac
  2228. target=$ac_cv_target
  2229. ac_save_IFS=$IFS; IFS='-'
  2230. set x $ac_cv_target
  2231. shift
  2232. target_cpu=$1
  2233. target_vendor=$2
  2234. shift; shift
  2235. # Remember, the first character of IFS is used to create $*,
  2236. # except with old shells:
  2237. target_os=$*
  2238. IFS=$ac_save_IFS
  2239. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2240. # The aliases save the names the user supplied, while $host etc.
  2241. # will get canonicalized.
  2242. test -n "$target_alias" &&
  2243. test "$program_prefix$program_suffix$program_transform_name" = \
  2244. NONENONEs,x,x, &&
  2245. program_prefix=${target_alias}-
  2246. am__api_version='1.15'
  2247. # Find a good install program. We prefer a C program (faster),
  2248. # so one script is as good as another. But avoid the broken or
  2249. # incompatible versions:
  2250. # SysV /etc/install, /usr/sbin/install
  2251. # SunOS /usr/etc/install
  2252. # IRIX /sbin/install
  2253. # AIX /bin/install
  2254. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2255. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2256. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2257. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2258. # OS/2's system install, which has a completely different semantic
  2259. # ./install, which can be erroneously created by make from ./install.sh.
  2260. # Reject install programs that cannot install multiple files.
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2262. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2263. if test -z "$INSTALL"; then
  2264. if ${ac_cv_path_install+:} false; then :
  2265. $as_echo_n "(cached) " >&6
  2266. else
  2267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2268. for as_dir in $PATH
  2269. do
  2270. IFS=$as_save_IFS
  2271. test -z "$as_dir" && as_dir=.
  2272. # Account for people who put trailing slashes in PATH elements.
  2273. case $as_dir/ in #((
  2274. ./ | .// | /[cC]/* | \
  2275. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2276. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2277. /usr/ucb/* ) ;;
  2278. *)
  2279. # OSF1 and SCO ODT 3.0 have their own names for install.
  2280. # Don't use installbsd from OSF since it installs stuff as root
  2281. # by default.
  2282. for ac_prog in ginstall scoinst install; do
  2283. for ac_exec_ext in '' $ac_executable_extensions; do
  2284. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2285. if test $ac_prog = install &&
  2286. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2287. # AIX install. It has an incompatible calling convention.
  2288. :
  2289. elif test $ac_prog = install &&
  2290. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2291. # program-specific install script used by HP pwplus--don't use.
  2292. :
  2293. else
  2294. rm -rf conftest.one conftest.two conftest.dir
  2295. echo one > conftest.one
  2296. echo two > conftest.two
  2297. mkdir conftest.dir
  2298. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2299. test -s conftest.one && test -s conftest.two &&
  2300. test -s conftest.dir/conftest.one &&
  2301. test -s conftest.dir/conftest.two
  2302. then
  2303. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2304. break 3
  2305. fi
  2306. fi
  2307. fi
  2308. done
  2309. done
  2310. ;;
  2311. esac
  2312. done
  2313. IFS=$as_save_IFS
  2314. rm -rf conftest.one conftest.two conftest.dir
  2315. fi
  2316. if test "${ac_cv_path_install+set}" = set; then
  2317. INSTALL=$ac_cv_path_install
  2318. else
  2319. # As a last resort, use the slow shell script. Don't cache a
  2320. # value for INSTALL within a source directory, because that will
  2321. # break other packages using the cache if that directory is
  2322. # removed, or if the value is a relative name.
  2323. INSTALL=$ac_install_sh
  2324. fi
  2325. fi
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2327. $as_echo "$INSTALL" >&6; }
  2328. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2329. # It thinks the first close brace ends the variable substitution.
  2330. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2331. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2332. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2334. $as_echo_n "checking whether build environment is sane... " >&6; }
  2335. # Reject unsafe characters in $srcdir or the absolute working directory
  2336. # name. Accept space and tab only in the latter.
  2337. am_lf='
  2338. '
  2339. case `pwd` in
  2340. *[\\\"\#\$\&\'\`$am_lf]*)
  2341. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2342. esac
  2343. case $srcdir in
  2344. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2345. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2346. esac
  2347. # Do 'set' in a subshell so we don't clobber the current shell's
  2348. # arguments. Must try -L first in case configure is actually a
  2349. # symlink; some systems play weird games with the mod time of symlinks
  2350. # (eg FreeBSD returns the mod time of the symlink's containing
  2351. # directory).
  2352. if (
  2353. am_has_slept=no
  2354. for am_try in 1 2; do
  2355. echo "timestamp, slept: $am_has_slept" > conftest.file
  2356. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2357. if test "$*" = "X"; then
  2358. # -L didn't work.
  2359. set X `ls -t "$srcdir/configure" conftest.file`
  2360. fi
  2361. if test "$*" != "X $srcdir/configure conftest.file" \
  2362. && test "$*" != "X conftest.file $srcdir/configure"; then
  2363. # If neither matched, then we have a broken ls. This can happen
  2364. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2365. # broken ls alias from the environment. This has actually
  2366. # happened. Such a system could not be considered "sane".
  2367. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2368. alias in your environment" "$LINENO" 5
  2369. fi
  2370. if test "$2" = conftest.file || test $am_try -eq 2; then
  2371. break
  2372. fi
  2373. # Just in case.
  2374. sleep 1
  2375. am_has_slept=yes
  2376. done
  2377. test "$2" = conftest.file
  2378. )
  2379. then
  2380. # Ok.
  2381. :
  2382. else
  2383. as_fn_error $? "newly created file is older than distributed files!
  2384. Check your system clock" "$LINENO" 5
  2385. fi
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2387. $as_echo "yes" >&6; }
  2388. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2389. # generated files are strictly newer.
  2390. am_sleep_pid=
  2391. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2392. ( sleep 1 ) &
  2393. am_sleep_pid=$!
  2394. fi
  2395. rm -f conftest.file
  2396. test "$program_prefix" != NONE &&
  2397. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2398. # Use a double $ so make ignores it.
  2399. test "$program_suffix" != NONE &&
  2400. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2401. # Double any \ or $.
  2402. # By default was `s,x,x', remove it if useless.
  2403. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2404. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2405. # Expand $ac_aux_dir to an absolute path.
  2406. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2407. if test x"${MISSING+set}" != xset; then
  2408. case $am_aux_dir in
  2409. *\ * | *\ *)
  2410. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2411. *)
  2412. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2413. esac
  2414. fi
  2415. # Use eval to expand $SHELL
  2416. if eval "$MISSING --is-lightweight"; then
  2417. am_missing_run="$MISSING "
  2418. else
  2419. am_missing_run=
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2421. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2422. fi
  2423. if test x"${install_sh+set}" != xset; then
  2424. case $am_aux_dir in
  2425. *\ * | *\ *)
  2426. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2427. *)
  2428. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2429. esac
  2430. fi
  2431. # Installed binaries are usually stripped using 'strip' when the user
  2432. # run "make install-strip". However 'strip' might not be the right
  2433. # tool to use in cross-compilation environments, therefore Automake
  2434. # will honor the 'STRIP' environment variable to overrule this program.
  2435. if test "$cross_compiling" != no; then
  2436. if test -n "$ac_tool_prefix"; then
  2437. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2438. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2440. $as_echo_n "checking for $ac_word... " >&6; }
  2441. if ${ac_cv_prog_STRIP+:} false; then :
  2442. $as_echo_n "(cached) " >&6
  2443. else
  2444. if test -n "$STRIP"; then
  2445. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2446. else
  2447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2448. for as_dir in $PATH
  2449. do
  2450. IFS=$as_save_IFS
  2451. test -z "$as_dir" && as_dir=.
  2452. for ac_exec_ext in '' $ac_executable_extensions; do
  2453. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2454. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2456. break 2
  2457. fi
  2458. done
  2459. done
  2460. IFS=$as_save_IFS
  2461. fi
  2462. fi
  2463. STRIP=$ac_cv_prog_STRIP
  2464. if test -n "$STRIP"; then
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2466. $as_echo "$STRIP" >&6; }
  2467. else
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2469. $as_echo "no" >&6; }
  2470. fi
  2471. fi
  2472. if test -z "$ac_cv_prog_STRIP"; then
  2473. ac_ct_STRIP=$STRIP
  2474. # Extract the first word of "strip", so it can be a program name with args.
  2475. set dummy strip; ac_word=$2
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2477. $as_echo_n "checking for $ac_word... " >&6; }
  2478. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2479. $as_echo_n "(cached) " >&6
  2480. else
  2481. if test -n "$ac_ct_STRIP"; then
  2482. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2483. else
  2484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2485. for as_dir in $PATH
  2486. do
  2487. IFS=$as_save_IFS
  2488. test -z "$as_dir" && as_dir=.
  2489. for ac_exec_ext in '' $ac_executable_extensions; do
  2490. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2491. ac_cv_prog_ac_ct_STRIP="strip"
  2492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2493. break 2
  2494. fi
  2495. done
  2496. done
  2497. IFS=$as_save_IFS
  2498. fi
  2499. fi
  2500. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2501. if test -n "$ac_ct_STRIP"; then
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2503. $as_echo "$ac_ct_STRIP" >&6; }
  2504. else
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2506. $as_echo "no" >&6; }
  2507. fi
  2508. if test "x$ac_ct_STRIP" = x; then
  2509. STRIP=":"
  2510. else
  2511. case $cross_compiling:$ac_tool_warned in
  2512. yes:)
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2514. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2515. ac_tool_warned=yes ;;
  2516. esac
  2517. STRIP=$ac_ct_STRIP
  2518. fi
  2519. else
  2520. STRIP="$ac_cv_prog_STRIP"
  2521. fi
  2522. fi
  2523. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2525. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2526. if test -z "$MKDIR_P"; then
  2527. if ${ac_cv_path_mkdir+:} false; then :
  2528. $as_echo_n "(cached) " >&6
  2529. else
  2530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2531. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2532. do
  2533. IFS=$as_save_IFS
  2534. test -z "$as_dir" && as_dir=.
  2535. for ac_prog in mkdir gmkdir; do
  2536. for ac_exec_ext in '' $ac_executable_extensions; do
  2537. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2538. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2539. 'mkdir (GNU coreutils) '* | \
  2540. 'mkdir (coreutils) '* | \
  2541. 'mkdir (fileutils) '4.1*)
  2542. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2543. break 3;;
  2544. esac
  2545. done
  2546. done
  2547. done
  2548. IFS=$as_save_IFS
  2549. fi
  2550. test -d ./--version && rmdir ./--version
  2551. if test "${ac_cv_path_mkdir+set}" = set; then
  2552. MKDIR_P="$ac_cv_path_mkdir -p"
  2553. else
  2554. # As a last resort, use the slow shell script. Don't cache a
  2555. # value for MKDIR_P within a source directory, because that will
  2556. # break other packages using the cache if that directory is
  2557. # removed, or if the value is a relative name.
  2558. MKDIR_P="$ac_install_sh -d"
  2559. fi
  2560. fi
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2562. $as_echo "$MKDIR_P" >&6; }
  2563. for ac_prog in gawk mawk nawk awk
  2564. do
  2565. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2566. set dummy $ac_prog; ac_word=$2
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2568. $as_echo_n "checking for $ac_word... " >&6; }
  2569. if ${ac_cv_prog_AWK+:} false; then :
  2570. $as_echo_n "(cached) " >&6
  2571. else
  2572. if test -n "$AWK"; then
  2573. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2574. else
  2575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2576. for as_dir in $PATH
  2577. do
  2578. IFS=$as_save_IFS
  2579. test -z "$as_dir" && as_dir=.
  2580. for ac_exec_ext in '' $ac_executable_extensions; do
  2581. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2582. ac_cv_prog_AWK="$ac_prog"
  2583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2584. break 2
  2585. fi
  2586. done
  2587. done
  2588. IFS=$as_save_IFS
  2589. fi
  2590. fi
  2591. AWK=$ac_cv_prog_AWK
  2592. if test -n "$AWK"; then
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2594. $as_echo "$AWK" >&6; }
  2595. else
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2597. $as_echo "no" >&6; }
  2598. fi
  2599. test -n "$AWK" && break
  2600. done
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2602. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2603. set x ${MAKE-make}
  2604. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2605. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2606. $as_echo_n "(cached) " >&6
  2607. else
  2608. cat >conftest.make <<\_ACEOF
  2609. SHELL = /bin/sh
  2610. all:
  2611. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2612. _ACEOF
  2613. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2614. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2615. *@@@%%%=?*=@@@%%%*)
  2616. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2617. *)
  2618. eval ac_cv_prog_make_${ac_make}_set=no;;
  2619. esac
  2620. rm -f conftest.make
  2621. fi
  2622. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2624. $as_echo "yes" >&6; }
  2625. SET_MAKE=
  2626. else
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2628. $as_echo "no" >&6; }
  2629. SET_MAKE="MAKE=${MAKE-make}"
  2630. fi
  2631. rm -rf .tst 2>/dev/null
  2632. mkdir .tst 2>/dev/null
  2633. if test -d .tst; then
  2634. am__leading_dot=.
  2635. else
  2636. am__leading_dot=_
  2637. fi
  2638. rmdir .tst 2>/dev/null
  2639. # Check whether --enable-silent-rules was given.
  2640. if test "${enable_silent_rules+set}" = set; then :
  2641. enableval=$enable_silent_rules;
  2642. fi
  2643. case $enable_silent_rules in # (((
  2644. yes) AM_DEFAULT_VERBOSITY=0;;
  2645. no) AM_DEFAULT_VERBOSITY=1;;
  2646. *) AM_DEFAULT_VERBOSITY=1;;
  2647. esac
  2648. am_make=${MAKE-make}
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2650. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2651. if ${am_cv_make_support_nested_variables+:} false; then :
  2652. $as_echo_n "(cached) " >&6
  2653. else
  2654. if $as_echo 'TRUE=$(BAR$(V))
  2655. BAR0=false
  2656. BAR1=true
  2657. V=1
  2658. am__doit:
  2659. @$(TRUE)
  2660. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2661. am_cv_make_support_nested_variables=yes
  2662. else
  2663. am_cv_make_support_nested_variables=no
  2664. fi
  2665. fi
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2667. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2668. if test $am_cv_make_support_nested_variables = yes; then
  2669. AM_V='$(V)'
  2670. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2671. else
  2672. AM_V=$AM_DEFAULT_VERBOSITY
  2673. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2674. fi
  2675. AM_BACKSLASH='\'
  2676. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2677. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2678. # is not polluted with repeated "-I."
  2679. am__isrc=' -I$(srcdir)'
  2680. # test to see if srcdir already configured
  2681. if test -f $srcdir/config.status; then
  2682. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2683. fi
  2684. fi
  2685. # test whether we have cygpath
  2686. if test -z "$CYGPATH_W"; then
  2687. if (cygpath --version) >/dev/null 2>/dev/null; then
  2688. CYGPATH_W='cygpath -w'
  2689. else
  2690. CYGPATH_W=echo
  2691. fi
  2692. fi
  2693. # Define the identity of the package.
  2694. PACKAGE='libvorbis'
  2695. VERSION='1.3.5'
  2696. cat >>confdefs.h <<_ACEOF
  2697. #define PACKAGE "$PACKAGE"
  2698. _ACEOF
  2699. cat >>confdefs.h <<_ACEOF
  2700. #define VERSION "$VERSION"
  2701. _ACEOF
  2702. # Some tools Automake needs.
  2703. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2704. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2705. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2706. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2707. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2708. # For better backward compatibility. To be removed once Automake 1.9.x
  2709. # dies out for good. For more background, see:
  2710. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2711. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2712. mkdir_p='$(MKDIR_P)'
  2713. # We need awk for the "check" target (and possibly the TAP driver). The
  2714. # system "awk" is bad on some platforms.
  2715. # Always define AMTAR for backward compatibility. Yes, it's still used
  2716. # in the wild :-( We should find a proper way to deprecate it ...
  2717. AMTAR='$${TAR-tar}'
  2718. # We'll loop over all known methods to create a tar archive until one works.
  2719. _am_tools='gnutar pax cpio none'
  2720. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2721. # POSIX will say in a future version that running "rm -f" with no argument
  2722. # is OK; and we want to be able to make that assumption in our Makefile
  2723. # recipes. So use an aggressive probe to check that the usage we want is
  2724. # actually supported "in the wild" to an acceptable degree.
  2725. # See automake bug#10828.
  2726. # To make any issue more visible, cause the running configure to be aborted
  2727. # by default if the 'rm' program in use doesn't match our expectations; the
  2728. # user can still override this though.
  2729. if rm -f && rm -fr && rm -rf; then : OK; else
  2730. cat >&2 <<'END'
  2731. Oops!
  2732. Your 'rm' program seems unable to run without file operands specified
  2733. on the command line, even when the '-f' option is present. This is contrary
  2734. to the behaviour of most rm programs out there, and not conforming with
  2735. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2736. Please tell [email protected] about your system, including the value
  2737. of your $PATH and any error possibly output before this message. This
  2738. can help us improve future automake versions.
  2739. END
  2740. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2741. echo 'Configuration will proceed anyway, since you have set the' >&2
  2742. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2743. echo >&2
  2744. else
  2745. cat >&2 <<'END'
  2746. Aborting the configuration process, to ensure you take notice of the issue.
  2747. You can download and install GNU coreutils to get an 'rm' implementation
  2748. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2749. If you want to complete the configuration process using your problematic
  2750. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2751. to "yes", and re-run configure.
  2752. END
  2753. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2754. fi
  2755. fi
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2757. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2758. # Check whether --enable-maintainer-mode was given.
  2759. if test "${enable_maintainer_mode+set}" = set; then :
  2760. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2761. else
  2762. USE_MAINTAINER_MODE=no
  2763. fi
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2765. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2766. if test $USE_MAINTAINER_MODE = yes; then
  2767. MAINTAINER_MODE_TRUE=
  2768. MAINTAINER_MODE_FALSE='#'
  2769. else
  2770. MAINTAINER_MODE_TRUE='#'
  2771. MAINTAINER_MODE_FALSE=
  2772. fi
  2773. MAINT=$MAINTAINER_MODE_TRUE
  2774. ACLOCAL_AMFLAGS="-I m4"
  2775. V_LIB_CURRENT=4
  2776. V_LIB_REVISION=8
  2777. V_LIB_AGE=4
  2778. VF_LIB_CURRENT=6
  2779. VF_LIB_REVISION=7
  2780. VF_LIB_AGE=3
  2781. VE_LIB_CURRENT=2
  2782. VE_LIB_REVISION=11
  2783. VE_LIB_AGE=0
  2784. cflags_save="$CFLAGS"
  2785. ac_ext=c
  2786. ac_cpp='$CPP $CPPFLAGS'
  2787. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2788. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2789. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2790. if test -n "$ac_tool_prefix"; then
  2791. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2792. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2794. $as_echo_n "checking for $ac_word... " >&6; }
  2795. if ${ac_cv_prog_CC+:} false; then :
  2796. $as_echo_n "(cached) " >&6
  2797. else
  2798. if test -n "$CC"; then
  2799. ac_cv_prog_CC="$CC" # Let the user override the test.
  2800. else
  2801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2802. for as_dir in $PATH
  2803. do
  2804. IFS=$as_save_IFS
  2805. test -z "$as_dir" && as_dir=.
  2806. for ac_exec_ext in '' $ac_executable_extensions; do
  2807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2808. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2810. break 2
  2811. fi
  2812. done
  2813. done
  2814. IFS=$as_save_IFS
  2815. fi
  2816. fi
  2817. CC=$ac_cv_prog_CC
  2818. if test -n "$CC"; then
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2820. $as_echo "$CC" >&6; }
  2821. else
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2823. $as_echo "no" >&6; }
  2824. fi
  2825. fi
  2826. if test -z "$ac_cv_prog_CC"; then
  2827. ac_ct_CC=$CC
  2828. # Extract the first word of "gcc", so it can be a program name with args.
  2829. set dummy gcc; ac_word=$2
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2831. $as_echo_n "checking for $ac_word... " >&6; }
  2832. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2833. $as_echo_n "(cached) " >&6
  2834. else
  2835. if test -n "$ac_ct_CC"; then
  2836. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2837. else
  2838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2839. for as_dir in $PATH
  2840. do
  2841. IFS=$as_save_IFS
  2842. test -z "$as_dir" && as_dir=.
  2843. for ac_exec_ext in '' $ac_executable_extensions; do
  2844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2845. ac_cv_prog_ac_ct_CC="gcc"
  2846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2847. break 2
  2848. fi
  2849. done
  2850. done
  2851. IFS=$as_save_IFS
  2852. fi
  2853. fi
  2854. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2855. if test -n "$ac_ct_CC"; then
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2857. $as_echo "$ac_ct_CC" >&6; }
  2858. else
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2860. $as_echo "no" >&6; }
  2861. fi
  2862. if test "x$ac_ct_CC" = x; then
  2863. CC=""
  2864. else
  2865. case $cross_compiling:$ac_tool_warned in
  2866. yes:)
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2868. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2869. ac_tool_warned=yes ;;
  2870. esac
  2871. CC=$ac_ct_CC
  2872. fi
  2873. else
  2874. CC="$ac_cv_prog_CC"
  2875. fi
  2876. if test -z "$CC"; then
  2877. if test -n "$ac_tool_prefix"; then
  2878. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2879. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2881. $as_echo_n "checking for $ac_word... " >&6; }
  2882. if ${ac_cv_prog_CC+:} false; then :
  2883. $as_echo_n "(cached) " >&6
  2884. else
  2885. if test -n "$CC"; then
  2886. ac_cv_prog_CC="$CC" # Let the user override the test.
  2887. else
  2888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2889. for as_dir in $PATH
  2890. do
  2891. IFS=$as_save_IFS
  2892. test -z "$as_dir" && as_dir=.
  2893. for ac_exec_ext in '' $ac_executable_extensions; do
  2894. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2895. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2897. break 2
  2898. fi
  2899. done
  2900. done
  2901. IFS=$as_save_IFS
  2902. fi
  2903. fi
  2904. CC=$ac_cv_prog_CC
  2905. if test -n "$CC"; then
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2907. $as_echo "$CC" >&6; }
  2908. else
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2910. $as_echo "no" >&6; }
  2911. fi
  2912. fi
  2913. fi
  2914. if test -z "$CC"; then
  2915. # Extract the first word of "cc", so it can be a program name with args.
  2916. set dummy cc; ac_word=$2
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2918. $as_echo_n "checking for $ac_word... " >&6; }
  2919. if ${ac_cv_prog_CC+:} false; then :
  2920. $as_echo_n "(cached) " >&6
  2921. else
  2922. if test -n "$CC"; then
  2923. ac_cv_prog_CC="$CC" # Let the user override the test.
  2924. else
  2925. ac_prog_rejected=no
  2926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2927. for as_dir in $PATH
  2928. do
  2929. IFS=$as_save_IFS
  2930. test -z "$as_dir" && as_dir=.
  2931. for ac_exec_ext in '' $ac_executable_extensions; do
  2932. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2933. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2934. ac_prog_rejected=yes
  2935. continue
  2936. fi
  2937. ac_cv_prog_CC="cc"
  2938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2939. break 2
  2940. fi
  2941. done
  2942. done
  2943. IFS=$as_save_IFS
  2944. if test $ac_prog_rejected = yes; then
  2945. # We found a bogon in the path, so make sure we never use it.
  2946. set dummy $ac_cv_prog_CC
  2947. shift
  2948. if test $# != 0; then
  2949. # We chose a different compiler from the bogus one.
  2950. # However, it has the same basename, so the bogon will be chosen
  2951. # first if we set CC to just the basename; use the full file name.
  2952. shift
  2953. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2954. fi
  2955. fi
  2956. fi
  2957. fi
  2958. CC=$ac_cv_prog_CC
  2959. if test -n "$CC"; then
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2961. $as_echo "$CC" >&6; }
  2962. else
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2964. $as_echo "no" >&6; }
  2965. fi
  2966. fi
  2967. if test -z "$CC"; then
  2968. if test -n "$ac_tool_prefix"; then
  2969. for ac_prog in cl.exe
  2970. do
  2971. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2972. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2974. $as_echo_n "checking for $ac_word... " >&6; }
  2975. if ${ac_cv_prog_CC+:} false; then :
  2976. $as_echo_n "(cached) " >&6
  2977. else
  2978. if test -n "$CC"; then
  2979. ac_cv_prog_CC="$CC" # Let the user override the test.
  2980. else
  2981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2982. for as_dir in $PATH
  2983. do
  2984. IFS=$as_save_IFS
  2985. test -z "$as_dir" && as_dir=.
  2986. for ac_exec_ext in '' $ac_executable_extensions; do
  2987. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2988. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2989. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2990. break 2
  2991. fi
  2992. done
  2993. done
  2994. IFS=$as_save_IFS
  2995. fi
  2996. fi
  2997. CC=$ac_cv_prog_CC
  2998. if test -n "$CC"; then
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3000. $as_echo "$CC" >&6; }
  3001. else
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3003. $as_echo "no" >&6; }
  3004. fi
  3005. test -n "$CC" && break
  3006. done
  3007. fi
  3008. if test -z "$CC"; then
  3009. ac_ct_CC=$CC
  3010. for ac_prog in cl.exe
  3011. do
  3012. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3013. set dummy $ac_prog; ac_word=$2
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3015. $as_echo_n "checking for $ac_word... " >&6; }
  3016. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3017. $as_echo_n "(cached) " >&6
  3018. else
  3019. if test -n "$ac_ct_CC"; then
  3020. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3021. else
  3022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3023. for as_dir in $PATH
  3024. do
  3025. IFS=$as_save_IFS
  3026. test -z "$as_dir" && as_dir=.
  3027. for ac_exec_ext in '' $ac_executable_extensions; do
  3028. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3029. ac_cv_prog_ac_ct_CC="$ac_prog"
  3030. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3031. break 2
  3032. fi
  3033. done
  3034. done
  3035. IFS=$as_save_IFS
  3036. fi
  3037. fi
  3038. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3039. if test -n "$ac_ct_CC"; then
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3041. $as_echo "$ac_ct_CC" >&6; }
  3042. else
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3044. $as_echo "no" >&6; }
  3045. fi
  3046. test -n "$ac_ct_CC" && break
  3047. done
  3048. if test "x$ac_ct_CC" = x; then
  3049. CC=""
  3050. else
  3051. case $cross_compiling:$ac_tool_warned in
  3052. yes:)
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3054. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3055. ac_tool_warned=yes ;;
  3056. esac
  3057. CC=$ac_ct_CC
  3058. fi
  3059. fi
  3060. fi
  3061. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3062. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3063. as_fn_error $? "no acceptable C compiler found in \$PATH
  3064. See \`config.log' for more details" "$LINENO" 5; }
  3065. # Provide some information about the compiler.
  3066. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3067. set X $ac_compile
  3068. ac_compiler=$2
  3069. for ac_option in --version -v -V -qversion; do
  3070. { { ac_try="$ac_compiler $ac_option >&5"
  3071. case "(($ac_try" in
  3072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3073. *) ac_try_echo=$ac_try;;
  3074. esac
  3075. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3076. $as_echo "$ac_try_echo"; } >&5
  3077. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3078. ac_status=$?
  3079. if test -s conftest.err; then
  3080. sed '10a\
  3081. ... rest of stderr output deleted ...
  3082. 10q' conftest.err >conftest.er1
  3083. cat conftest.er1 >&5
  3084. fi
  3085. rm -f conftest.er1 conftest.err
  3086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3087. test $ac_status = 0; }
  3088. done
  3089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3090. /* end confdefs.h. */
  3091. int
  3092. main ()
  3093. {
  3094. ;
  3095. return 0;
  3096. }
  3097. _ACEOF
  3098. ac_clean_files_save=$ac_clean_files
  3099. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3100. # Try to create an executable without -o first, disregard a.out.
  3101. # It will help us diagnose broken compilers, and finding out an intuition
  3102. # of exeext.
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3104. $as_echo_n "checking whether the C compiler works... " >&6; }
  3105. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3106. # The possible output files:
  3107. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3108. ac_rmfiles=
  3109. for ac_file in $ac_files
  3110. do
  3111. case $ac_file in
  3112. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3113. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3114. esac
  3115. done
  3116. rm -f $ac_rmfiles
  3117. if { { ac_try="$ac_link_default"
  3118. case "(($ac_try" in
  3119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3120. *) ac_try_echo=$ac_try;;
  3121. esac
  3122. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3123. $as_echo "$ac_try_echo"; } >&5
  3124. (eval "$ac_link_default") 2>&5
  3125. ac_status=$?
  3126. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3127. test $ac_status = 0; }; then :
  3128. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3129. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3130. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3131. # so that the user can short-circuit this test for compilers unknown to
  3132. # Autoconf.
  3133. for ac_file in $ac_files ''
  3134. do
  3135. test -f "$ac_file" || continue
  3136. case $ac_file in
  3137. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3138. ;;
  3139. [ab].out )
  3140. # We found the default executable, but exeext='' is most
  3141. # certainly right.
  3142. break;;
  3143. *.* )
  3144. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3145. then :; else
  3146. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3147. fi
  3148. # We set ac_cv_exeext here because the later test for it is not
  3149. # safe: cross compilers may not add the suffix if given an `-o'
  3150. # argument, so we may need to know it at that point already.
  3151. # Even if this section looks crufty: it has the advantage of
  3152. # actually working.
  3153. break;;
  3154. * )
  3155. break;;
  3156. esac
  3157. done
  3158. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3159. else
  3160. ac_file=''
  3161. fi
  3162. if test -z "$ac_file"; then :
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3164. $as_echo "no" >&6; }
  3165. $as_echo "$as_me: failed program was:" >&5
  3166. sed 's/^/| /' conftest.$ac_ext >&5
  3167. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3168. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3169. as_fn_error 77 "C compiler cannot create executables
  3170. See \`config.log' for more details" "$LINENO" 5; }
  3171. else
  3172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3173. $as_echo "yes" >&6; }
  3174. fi
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3176. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3178. $as_echo "$ac_file" >&6; }
  3179. ac_exeext=$ac_cv_exeext
  3180. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3181. ac_clean_files=$ac_clean_files_save
  3182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3183. $as_echo_n "checking for suffix of executables... " >&6; }
  3184. if { { ac_try="$ac_link"
  3185. case "(($ac_try" in
  3186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3187. *) ac_try_echo=$ac_try;;
  3188. esac
  3189. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3190. $as_echo "$ac_try_echo"; } >&5
  3191. (eval "$ac_link") 2>&5
  3192. ac_status=$?
  3193. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3194. test $ac_status = 0; }; then :
  3195. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3196. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3197. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3198. # `rm'.
  3199. for ac_file in conftest.exe conftest conftest.*; do
  3200. test -f "$ac_file" || continue
  3201. case $ac_file in
  3202. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3203. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3204. break;;
  3205. * ) break;;
  3206. esac
  3207. done
  3208. else
  3209. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3210. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3211. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3212. See \`config.log' for more details" "$LINENO" 5; }
  3213. fi
  3214. rm -f conftest conftest$ac_cv_exeext
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3216. $as_echo "$ac_cv_exeext" >&6; }
  3217. rm -f conftest.$ac_ext
  3218. EXEEXT=$ac_cv_exeext
  3219. ac_exeext=$EXEEXT
  3220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3221. /* end confdefs.h. */
  3222. #include <stdio.h>
  3223. int
  3224. main ()
  3225. {
  3226. FILE *f = fopen ("conftest.out", "w");
  3227. return ferror (f) || fclose (f) != 0;
  3228. ;
  3229. return 0;
  3230. }
  3231. _ACEOF
  3232. ac_clean_files="$ac_clean_files conftest.out"
  3233. # Check that the compiler produces executables we can run. If not, either
  3234. # the compiler is broken, or we cross compile.
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3236. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3237. if test "$cross_compiling" != yes; then
  3238. { { ac_try="$ac_link"
  3239. case "(($ac_try" in
  3240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3241. *) ac_try_echo=$ac_try;;
  3242. esac
  3243. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3244. $as_echo "$ac_try_echo"; } >&5
  3245. (eval "$ac_link") 2>&5
  3246. ac_status=$?
  3247. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3248. test $ac_status = 0; }
  3249. if { ac_try='./conftest$ac_cv_exeext'
  3250. { { case "(($ac_try" in
  3251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3252. *) ac_try_echo=$ac_try;;
  3253. esac
  3254. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3255. $as_echo "$ac_try_echo"; } >&5
  3256. (eval "$ac_try") 2>&5
  3257. ac_status=$?
  3258. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3259. test $ac_status = 0; }; }; then
  3260. cross_compiling=no
  3261. else
  3262. if test "$cross_compiling" = maybe; then
  3263. cross_compiling=yes
  3264. else
  3265. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3266. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3267. as_fn_error $? "cannot run C compiled programs.
  3268. If you meant to cross compile, use \`--host'.
  3269. See \`config.log' for more details" "$LINENO" 5; }
  3270. fi
  3271. fi
  3272. fi
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3274. $as_echo "$cross_compiling" >&6; }
  3275. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3276. ac_clean_files=$ac_clean_files_save
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3278. $as_echo_n "checking for suffix of object files... " >&6; }
  3279. if ${ac_cv_objext+:} false; then :
  3280. $as_echo_n "(cached) " >&6
  3281. else
  3282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3283. /* end confdefs.h. */
  3284. int
  3285. main ()
  3286. {
  3287. ;
  3288. return 0;
  3289. }
  3290. _ACEOF
  3291. rm -f conftest.o conftest.obj
  3292. if { { ac_try="$ac_compile"
  3293. case "(($ac_try" in
  3294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3295. *) ac_try_echo=$ac_try;;
  3296. esac
  3297. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3298. $as_echo "$ac_try_echo"; } >&5
  3299. (eval "$ac_compile") 2>&5
  3300. ac_status=$?
  3301. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3302. test $ac_status = 0; }; then :
  3303. for ac_file in conftest.o conftest.obj conftest.*; do
  3304. test -f "$ac_file" || continue;
  3305. case $ac_file in
  3306. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3307. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3308. break;;
  3309. esac
  3310. done
  3311. else
  3312. $as_echo "$as_me: failed program was:" >&5
  3313. sed 's/^/| /' conftest.$ac_ext >&5
  3314. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3315. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3316. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3317. See \`config.log' for more details" "$LINENO" 5; }
  3318. fi
  3319. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3320. fi
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3322. $as_echo "$ac_cv_objext" >&6; }
  3323. OBJEXT=$ac_cv_objext
  3324. ac_objext=$OBJEXT
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3326. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3327. if ${ac_cv_c_compiler_gnu+:} false; then :
  3328. $as_echo_n "(cached) " >&6
  3329. else
  3330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3331. /* end confdefs.h. */
  3332. int
  3333. main ()
  3334. {
  3335. #ifndef __GNUC__
  3336. choke me
  3337. #endif
  3338. ;
  3339. return 0;
  3340. }
  3341. _ACEOF
  3342. if ac_fn_c_try_compile "$LINENO"; then :
  3343. ac_compiler_gnu=yes
  3344. else
  3345. ac_compiler_gnu=no
  3346. fi
  3347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3348. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3349. fi
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3351. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3352. if test $ac_compiler_gnu = yes; then
  3353. GCC=yes
  3354. else
  3355. GCC=
  3356. fi
  3357. ac_test_CFLAGS=${CFLAGS+set}
  3358. ac_save_CFLAGS=$CFLAGS
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3360. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3361. if ${ac_cv_prog_cc_g+:} false; then :
  3362. $as_echo_n "(cached) " >&6
  3363. else
  3364. ac_save_c_werror_flag=$ac_c_werror_flag
  3365. ac_c_werror_flag=yes
  3366. ac_cv_prog_cc_g=no
  3367. CFLAGS="-g"
  3368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3369. /* end confdefs.h. */
  3370. int
  3371. main ()
  3372. {
  3373. ;
  3374. return 0;
  3375. }
  3376. _ACEOF
  3377. if ac_fn_c_try_compile "$LINENO"; then :
  3378. ac_cv_prog_cc_g=yes
  3379. else
  3380. CFLAGS=""
  3381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3382. /* end confdefs.h. */
  3383. int
  3384. main ()
  3385. {
  3386. ;
  3387. return 0;
  3388. }
  3389. _ACEOF
  3390. if ac_fn_c_try_compile "$LINENO"; then :
  3391. else
  3392. ac_c_werror_flag=$ac_save_c_werror_flag
  3393. CFLAGS="-g"
  3394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3395. /* end confdefs.h. */
  3396. int
  3397. main ()
  3398. {
  3399. ;
  3400. return 0;
  3401. }
  3402. _ACEOF
  3403. if ac_fn_c_try_compile "$LINENO"; then :
  3404. ac_cv_prog_cc_g=yes
  3405. fi
  3406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3407. fi
  3408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3409. fi
  3410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3411. ac_c_werror_flag=$ac_save_c_werror_flag
  3412. fi
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3414. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3415. if test "$ac_test_CFLAGS" = set; then
  3416. CFLAGS=$ac_save_CFLAGS
  3417. elif test $ac_cv_prog_cc_g = yes; then
  3418. if test "$GCC" = yes; then
  3419. CFLAGS="-g -O2"
  3420. else
  3421. CFLAGS="-g"
  3422. fi
  3423. else
  3424. if test "$GCC" = yes; then
  3425. CFLAGS="-O2"
  3426. else
  3427. CFLAGS=
  3428. fi
  3429. fi
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3431. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3432. if ${ac_cv_prog_cc_c89+:} false; then :
  3433. $as_echo_n "(cached) " >&6
  3434. else
  3435. ac_cv_prog_cc_c89=no
  3436. ac_save_CC=$CC
  3437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3438. /* end confdefs.h. */
  3439. #include <stdarg.h>
  3440. #include <stdio.h>
  3441. struct stat;
  3442. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3443. struct buf { int x; };
  3444. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3445. static char *e (p, i)
  3446. char **p;
  3447. int i;
  3448. {
  3449. return p[i];
  3450. }
  3451. static char *f (char * (*g) (char **, int), char **p, ...)
  3452. {
  3453. char *s;
  3454. va_list v;
  3455. va_start (v,p);
  3456. s = g (p, va_arg (v,int));
  3457. va_end (v);
  3458. return s;
  3459. }
  3460. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3461. function prototypes and stuff, but not '\xHH' hex character constants.
  3462. These don't provoke an error unfortunately, instead are silently treated
  3463. as 'x'. The following induces an error, until -std is added to get
  3464. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3465. array size at least. It's necessary to write '\x00'==0 to get something
  3466. that's true only with -std. */
  3467. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3468. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3469. inside strings and character constants. */
  3470. #define FOO(x) 'x'
  3471. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3472. int test (int i, double x);
  3473. struct s1 {int (*f) (int a);};
  3474. struct s2 {int (*f) (double a);};
  3475. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3476. int argc;
  3477. char **argv;
  3478. int
  3479. main ()
  3480. {
  3481. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3482. ;
  3483. return 0;
  3484. }
  3485. _ACEOF
  3486. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3487. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3488. do
  3489. CC="$ac_save_CC $ac_arg"
  3490. if ac_fn_c_try_compile "$LINENO"; then :
  3491. ac_cv_prog_cc_c89=$ac_arg
  3492. fi
  3493. rm -f core conftest.err conftest.$ac_objext
  3494. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3495. done
  3496. rm -f conftest.$ac_ext
  3497. CC=$ac_save_CC
  3498. fi
  3499. # AC_CACHE_VAL
  3500. case "x$ac_cv_prog_cc_c89" in
  3501. x)
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3503. $as_echo "none needed" >&6; } ;;
  3504. xno)
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3506. $as_echo "unsupported" >&6; } ;;
  3507. *)
  3508. CC="$CC $ac_cv_prog_cc_c89"
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3510. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3511. esac
  3512. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3513. fi
  3514. ac_ext=c
  3515. ac_cpp='$CPP $CPPFLAGS'
  3516. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3517. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3518. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3519. ac_ext=c
  3520. ac_cpp='$CPP $CPPFLAGS'
  3521. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3522. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3523. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3525. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3526. if ${am_cv_prog_cc_c_o+:} false; then :
  3527. $as_echo_n "(cached) " >&6
  3528. else
  3529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3530. /* end confdefs.h. */
  3531. int
  3532. main ()
  3533. {
  3534. ;
  3535. return 0;
  3536. }
  3537. _ACEOF
  3538. # Make sure it works both with $CC and with simple cc.
  3539. # Following AC_PROG_CC_C_O, we do the test twice because some
  3540. # compilers refuse to overwrite an existing .o file with -o,
  3541. # though they will create one.
  3542. am_cv_prog_cc_c_o=yes
  3543. for am_i in 1 2; do
  3544. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3545. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3546. ac_status=$?
  3547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3548. (exit $ac_status); } \
  3549. && test -f conftest2.$ac_objext; then
  3550. : OK
  3551. else
  3552. am_cv_prog_cc_c_o=no
  3553. break
  3554. fi
  3555. done
  3556. rm -f core conftest*
  3557. unset am_i
  3558. fi
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3560. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3561. if test "$am_cv_prog_cc_c_o" != yes; then
  3562. # Losing compiler, so override with the script.
  3563. # FIXME: It is wrong to rewrite CC.
  3564. # But if we don't then we get into trouble of one sort or another.
  3565. # A longer-term fix would be to have automake use am__CC in this case,
  3566. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3567. CC="$am_aux_dir/compile $CC"
  3568. fi
  3569. ac_ext=c
  3570. ac_cpp='$CPP $CPPFLAGS'
  3571. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3572. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3573. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3574. DEPDIR="${am__leading_dot}deps"
  3575. ac_config_commands="$ac_config_commands depfiles"
  3576. am_make=${MAKE-make}
  3577. cat > confinc << 'END'
  3578. am__doit:
  3579. @echo this is the am__doit target
  3580. .PHONY: am__doit
  3581. END
  3582. # If we don't find an include directive, just comment out the code.
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3584. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3585. am__include="#"
  3586. am__quote=
  3587. _am_result=none
  3588. # First try GNU make style include.
  3589. echo "include confinc" > confmf
  3590. # Ignore all kinds of additional output from 'make'.
  3591. case `$am_make -s -f confmf 2> /dev/null` in #(
  3592. *the\ am__doit\ target*)
  3593. am__include=include
  3594. am__quote=
  3595. _am_result=GNU
  3596. ;;
  3597. esac
  3598. # Now try BSD make style include.
  3599. if test "$am__include" = "#"; then
  3600. echo '.include "confinc"' > confmf
  3601. case `$am_make -s -f confmf 2> /dev/null` in #(
  3602. *the\ am__doit\ target*)
  3603. am__include=.include
  3604. am__quote="\""
  3605. _am_result=BSD
  3606. ;;
  3607. esac
  3608. fi
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3610. $as_echo "$_am_result" >&6; }
  3611. rm -f confinc confmf
  3612. # Check whether --enable-dependency-tracking was given.
  3613. if test "${enable_dependency_tracking+set}" = set; then :
  3614. enableval=$enable_dependency_tracking;
  3615. fi
  3616. if test "x$enable_dependency_tracking" != xno; then
  3617. am_depcomp="$ac_aux_dir/depcomp"
  3618. AMDEPBACKSLASH='\'
  3619. am__nodep='_no'
  3620. fi
  3621. if test "x$enable_dependency_tracking" != xno; then
  3622. AMDEP_TRUE=
  3623. AMDEP_FALSE='#'
  3624. else
  3625. AMDEP_TRUE='#'
  3626. AMDEP_FALSE=
  3627. fi
  3628. depcc="$CC" am_compiler_list=
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3630. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3631. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3632. $as_echo_n "(cached) " >&6
  3633. else
  3634. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3635. # We make a subdir and do the tests there. Otherwise we can end up
  3636. # making bogus files that we don't know about and never remove. For
  3637. # instance it was reported that on HP-UX the gcc test will end up
  3638. # making a dummy file named 'D' -- because '-MD' means "put the output
  3639. # in D".
  3640. rm -rf conftest.dir
  3641. mkdir conftest.dir
  3642. # Copy depcomp to subdir because otherwise we won't find it if we're
  3643. # using a relative directory.
  3644. cp "$am_depcomp" conftest.dir
  3645. cd conftest.dir
  3646. # We will build objects and dependencies in a subdirectory because
  3647. # it helps to detect inapplicable dependency modes. For instance
  3648. # both Tru64's cc and ICC support -MD to output dependencies as a
  3649. # side effect of compilation, but ICC will put the dependencies in
  3650. # the current directory while Tru64 will put them in the object
  3651. # directory.
  3652. mkdir sub
  3653. am_cv_CC_dependencies_compiler_type=none
  3654. if test "$am_compiler_list" = ""; then
  3655. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3656. fi
  3657. am__universal=false
  3658. case " $depcc " in #(
  3659. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3660. esac
  3661. for depmode in $am_compiler_list; do
  3662. # Setup a source with many dependencies, because some compilers
  3663. # like to wrap large dependency lists on column 80 (with \), and
  3664. # we should not choose a depcomp mode which is confused by this.
  3665. #
  3666. # We need to recreate these files for each test, as the compiler may
  3667. # overwrite some of them when testing with obscure command lines.
  3668. # This happens at least with the AIX C compiler.
  3669. : > sub/conftest.c
  3670. for i in 1 2 3 4 5 6; do
  3671. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3672. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3673. # Solaris 10 /bin/sh.
  3674. echo '/* dummy */' > sub/conftst$i.h
  3675. done
  3676. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3677. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3678. # mode. It turns out that the SunPro C++ compiler does not properly
  3679. # handle '-M -o', and we need to detect this. Also, some Intel
  3680. # versions had trouble with output in subdirs.
  3681. am__obj=sub/conftest.${OBJEXT-o}
  3682. am__minus_obj="-o $am__obj"
  3683. case $depmode in
  3684. gcc)
  3685. # This depmode causes a compiler race in universal mode.
  3686. test "$am__universal" = false || continue
  3687. ;;
  3688. nosideeffect)
  3689. # After this tag, mechanisms are not by side-effect, so they'll
  3690. # only be used when explicitly requested.
  3691. if test "x$enable_dependency_tracking" = xyes; then
  3692. continue
  3693. else
  3694. break
  3695. fi
  3696. ;;
  3697. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3698. # This compiler won't grok '-c -o', but also, the minuso test has
  3699. # not run yet. These depmodes are late enough in the game, and
  3700. # so weak that their functioning should not be impacted.
  3701. am__obj=conftest.${OBJEXT-o}
  3702. am__minus_obj=
  3703. ;;
  3704. none) break ;;
  3705. esac
  3706. if depmode=$depmode \
  3707. source=sub/conftest.c object=$am__obj \
  3708. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3709. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3710. >/dev/null 2>conftest.err &&
  3711. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3712. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3713. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3714. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3715. # icc doesn't choke on unknown options, it will just issue warnings
  3716. # or remarks (even with -Werror). So we grep stderr for any message
  3717. # that says an option was ignored or not supported.
  3718. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3719. # icc: Command line warning: ignoring option '-M'; no argument required
  3720. # The diagnosis changed in icc 8.0:
  3721. # icc: Command line remark: option '-MP' not supported
  3722. if (grep 'ignoring option' conftest.err ||
  3723. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3724. am_cv_CC_dependencies_compiler_type=$depmode
  3725. break
  3726. fi
  3727. fi
  3728. done
  3729. cd ..
  3730. rm -rf conftest.dir
  3731. else
  3732. am_cv_CC_dependencies_compiler_type=none
  3733. fi
  3734. fi
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3736. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3737. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3738. if
  3739. test "x$enable_dependency_tracking" != xno \
  3740. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3741. am__fastdepCC_TRUE=
  3742. am__fastdepCC_FALSE='#'
  3743. else
  3744. am__fastdepCC_TRUE='#'
  3745. am__fastdepCC_FALSE=
  3746. fi
  3747. ac_ext=c
  3748. ac_cpp='$CPP $CPPFLAGS'
  3749. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3750. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3751. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3753. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3754. # On Suns, sometimes $CPP names a directory.
  3755. if test -n "$CPP" && test -d "$CPP"; then
  3756. CPP=
  3757. fi
  3758. if test -z "$CPP"; then
  3759. if ${ac_cv_prog_CPP+:} false; then :
  3760. $as_echo_n "(cached) " >&6
  3761. else
  3762. # Double quotes because CPP needs to be expanded
  3763. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3764. do
  3765. ac_preproc_ok=false
  3766. for ac_c_preproc_warn_flag in '' yes
  3767. do
  3768. # Use a header file that comes with gcc, so configuring glibc
  3769. # with a fresh cross-compiler works.
  3770. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3771. # <limits.h> exists even on freestanding compilers.
  3772. # On the NeXT, cc -E runs the code through the compiler's parser,
  3773. # not just through cpp. "Syntax error" is here to catch this case.
  3774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3775. /* end confdefs.h. */
  3776. #ifdef __STDC__
  3777. # include <limits.h>
  3778. #else
  3779. # include <assert.h>
  3780. #endif
  3781. Syntax error
  3782. _ACEOF
  3783. if ac_fn_c_try_cpp "$LINENO"; then :
  3784. else
  3785. # Broken: fails on valid input.
  3786. continue
  3787. fi
  3788. rm -f conftest.err conftest.i conftest.$ac_ext
  3789. # OK, works on sane cases. Now check whether nonexistent headers
  3790. # can be detected and how.
  3791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3792. /* end confdefs.h. */
  3793. #include <ac_nonexistent.h>
  3794. _ACEOF
  3795. if ac_fn_c_try_cpp "$LINENO"; then :
  3796. # Broken: success on invalid input.
  3797. continue
  3798. else
  3799. # Passes both tests.
  3800. ac_preproc_ok=:
  3801. break
  3802. fi
  3803. rm -f conftest.err conftest.i conftest.$ac_ext
  3804. done
  3805. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3806. rm -f conftest.i conftest.err conftest.$ac_ext
  3807. if $ac_preproc_ok; then :
  3808. break
  3809. fi
  3810. done
  3811. ac_cv_prog_CPP=$CPP
  3812. fi
  3813. CPP=$ac_cv_prog_CPP
  3814. else
  3815. ac_cv_prog_CPP=$CPP
  3816. fi
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3818. $as_echo "$CPP" >&6; }
  3819. ac_preproc_ok=false
  3820. for ac_c_preproc_warn_flag in '' yes
  3821. do
  3822. # Use a header file that comes with gcc, so configuring glibc
  3823. # with a fresh cross-compiler works.
  3824. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3825. # <limits.h> exists even on freestanding compilers.
  3826. # On the NeXT, cc -E runs the code through the compiler's parser,
  3827. # not just through cpp. "Syntax error" is here to catch this case.
  3828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3829. /* end confdefs.h. */
  3830. #ifdef __STDC__
  3831. # include <limits.h>
  3832. #else
  3833. # include <assert.h>
  3834. #endif
  3835. Syntax error
  3836. _ACEOF
  3837. if ac_fn_c_try_cpp "$LINENO"; then :
  3838. else
  3839. # Broken: fails on valid input.
  3840. continue
  3841. fi
  3842. rm -f conftest.err conftest.i conftest.$ac_ext
  3843. # OK, works on sane cases. Now check whether nonexistent headers
  3844. # can be detected and how.
  3845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3846. /* end confdefs.h. */
  3847. #include <ac_nonexistent.h>
  3848. _ACEOF
  3849. if ac_fn_c_try_cpp "$LINENO"; then :
  3850. # Broken: success on invalid input.
  3851. continue
  3852. else
  3853. # Passes both tests.
  3854. ac_preproc_ok=:
  3855. break
  3856. fi
  3857. rm -f conftest.err conftest.i conftest.$ac_ext
  3858. done
  3859. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3860. rm -f conftest.i conftest.err conftest.$ac_ext
  3861. if $ac_preproc_ok; then :
  3862. else
  3863. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3864. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3865. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3866. See \`config.log' for more details" "$LINENO" 5; }
  3867. fi
  3868. ac_ext=c
  3869. ac_cpp='$CPP $CPPFLAGS'
  3870. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3871. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3872. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3873. CFLAGS="$cflags_save"
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  3875. $as_echo_n "checking for inline... " >&6; }
  3876. if ${ac_cv_c_inline+:} false; then :
  3877. $as_echo_n "(cached) " >&6
  3878. else
  3879. ac_cv_c_inline=no
  3880. for ac_kw in inline __inline__ __inline; do
  3881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3882. /* end confdefs.h. */
  3883. #ifndef __cplusplus
  3884. typedef int foo_t;
  3885. static $ac_kw foo_t static_foo () {return 0; }
  3886. $ac_kw foo_t foo () {return 0; }
  3887. #endif
  3888. _ACEOF
  3889. if ac_fn_c_try_compile "$LINENO"; then :
  3890. ac_cv_c_inline=$ac_kw
  3891. fi
  3892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3893. test "$ac_cv_c_inline" != no && break
  3894. done
  3895. fi
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  3897. $as_echo "$ac_cv_c_inline" >&6; }
  3898. case $ac_cv_c_inline in
  3899. inline | yes) ;;
  3900. *)
  3901. case $ac_cv_c_inline in
  3902. no) ac_val=;;
  3903. *) ac_val=$ac_cv_c_inline;;
  3904. esac
  3905. cat >>confdefs.h <<_ACEOF
  3906. #ifndef __cplusplus
  3907. #define inline $ac_val
  3908. #endif
  3909. _ACEOF
  3910. ;;
  3911. esac
  3912. enable_win32_dll=yes
  3913. case $host in
  3914. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  3915. if test -n "$ac_tool_prefix"; then
  3916. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3917. set dummy ${ac_tool_prefix}as; ac_word=$2
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3919. $as_echo_n "checking for $ac_word... " >&6; }
  3920. if ${ac_cv_prog_AS+:} false; then :
  3921. $as_echo_n "(cached) " >&6
  3922. else
  3923. if test -n "$AS"; then
  3924. ac_cv_prog_AS="$AS" # Let the user override the test.
  3925. else
  3926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3927. for as_dir in $PATH
  3928. do
  3929. IFS=$as_save_IFS
  3930. test -z "$as_dir" && as_dir=.
  3931. for ac_exec_ext in '' $ac_executable_extensions; do
  3932. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3933. ac_cv_prog_AS="${ac_tool_prefix}as"
  3934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3935. break 2
  3936. fi
  3937. done
  3938. done
  3939. IFS=$as_save_IFS
  3940. fi
  3941. fi
  3942. AS=$ac_cv_prog_AS
  3943. if test -n "$AS"; then
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3945. $as_echo "$AS" >&6; }
  3946. else
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3948. $as_echo "no" >&6; }
  3949. fi
  3950. fi
  3951. if test -z "$ac_cv_prog_AS"; then
  3952. ac_ct_AS=$AS
  3953. # Extract the first word of "as", so it can be a program name with args.
  3954. set dummy as; ac_word=$2
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3956. $as_echo_n "checking for $ac_word... " >&6; }
  3957. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  3958. $as_echo_n "(cached) " >&6
  3959. else
  3960. if test -n "$ac_ct_AS"; then
  3961. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3962. else
  3963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3964. for as_dir in $PATH
  3965. do
  3966. IFS=$as_save_IFS
  3967. test -z "$as_dir" && as_dir=.
  3968. for ac_exec_ext in '' $ac_executable_extensions; do
  3969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3970. ac_cv_prog_ac_ct_AS="as"
  3971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3972. break 2
  3973. fi
  3974. done
  3975. done
  3976. IFS=$as_save_IFS
  3977. fi
  3978. fi
  3979. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3980. if test -n "$ac_ct_AS"; then
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3982. $as_echo "$ac_ct_AS" >&6; }
  3983. else
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3985. $as_echo "no" >&6; }
  3986. fi
  3987. if test "x$ac_ct_AS" = x; then
  3988. AS="false"
  3989. else
  3990. case $cross_compiling:$ac_tool_warned in
  3991. yes:)
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3993. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3994. ac_tool_warned=yes ;;
  3995. esac
  3996. AS=$ac_ct_AS
  3997. fi
  3998. else
  3999. AS="$ac_cv_prog_AS"
  4000. fi
  4001. if test -n "$ac_tool_prefix"; then
  4002. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4003. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4005. $as_echo_n "checking for $ac_word... " >&6; }
  4006. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4007. $as_echo_n "(cached) " >&6
  4008. else
  4009. if test -n "$DLLTOOL"; then
  4010. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4011. else
  4012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4013. for as_dir in $PATH
  4014. do
  4015. IFS=$as_save_IFS
  4016. test -z "$as_dir" && as_dir=.
  4017. for ac_exec_ext in '' $ac_executable_extensions; do
  4018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4019. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4021. break 2
  4022. fi
  4023. done
  4024. done
  4025. IFS=$as_save_IFS
  4026. fi
  4027. fi
  4028. DLLTOOL=$ac_cv_prog_DLLTOOL
  4029. if test -n "$DLLTOOL"; then
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4031. $as_echo "$DLLTOOL" >&6; }
  4032. else
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4034. $as_echo "no" >&6; }
  4035. fi
  4036. fi
  4037. if test -z "$ac_cv_prog_DLLTOOL"; then
  4038. ac_ct_DLLTOOL=$DLLTOOL
  4039. # Extract the first word of "dlltool", so it can be a program name with args.
  4040. set dummy dlltool; ac_word=$2
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4042. $as_echo_n "checking for $ac_word... " >&6; }
  4043. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4044. $as_echo_n "(cached) " >&6
  4045. else
  4046. if test -n "$ac_ct_DLLTOOL"; then
  4047. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4048. else
  4049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4050. for as_dir in $PATH
  4051. do
  4052. IFS=$as_save_IFS
  4053. test -z "$as_dir" && as_dir=.
  4054. for ac_exec_ext in '' $ac_executable_extensions; do
  4055. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4056. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4058. break 2
  4059. fi
  4060. done
  4061. done
  4062. IFS=$as_save_IFS
  4063. fi
  4064. fi
  4065. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4066. if test -n "$ac_ct_DLLTOOL"; then
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4068. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4069. else
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4071. $as_echo "no" >&6; }
  4072. fi
  4073. if test "x$ac_ct_DLLTOOL" = x; then
  4074. DLLTOOL="false"
  4075. else
  4076. case $cross_compiling:$ac_tool_warned in
  4077. yes:)
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4079. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4080. ac_tool_warned=yes ;;
  4081. esac
  4082. DLLTOOL=$ac_ct_DLLTOOL
  4083. fi
  4084. else
  4085. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4086. fi
  4087. if test -n "$ac_tool_prefix"; then
  4088. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4089. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4091. $as_echo_n "checking for $ac_word... " >&6; }
  4092. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4093. $as_echo_n "(cached) " >&6
  4094. else
  4095. if test -n "$OBJDUMP"; then
  4096. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4097. else
  4098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4099. for as_dir in $PATH
  4100. do
  4101. IFS=$as_save_IFS
  4102. test -z "$as_dir" && as_dir=.
  4103. for ac_exec_ext in '' $ac_executable_extensions; do
  4104. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4105. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4107. break 2
  4108. fi
  4109. done
  4110. done
  4111. IFS=$as_save_IFS
  4112. fi
  4113. fi
  4114. OBJDUMP=$ac_cv_prog_OBJDUMP
  4115. if test -n "$OBJDUMP"; then
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4117. $as_echo "$OBJDUMP" >&6; }
  4118. else
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4120. $as_echo "no" >&6; }
  4121. fi
  4122. fi
  4123. if test -z "$ac_cv_prog_OBJDUMP"; then
  4124. ac_ct_OBJDUMP=$OBJDUMP
  4125. # Extract the first word of "objdump", so it can be a program name with args.
  4126. set dummy objdump; ac_word=$2
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4128. $as_echo_n "checking for $ac_word... " >&6; }
  4129. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4130. $as_echo_n "(cached) " >&6
  4131. else
  4132. if test -n "$ac_ct_OBJDUMP"; then
  4133. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4134. else
  4135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4136. for as_dir in $PATH
  4137. do
  4138. IFS=$as_save_IFS
  4139. test -z "$as_dir" && as_dir=.
  4140. for ac_exec_ext in '' $ac_executable_extensions; do
  4141. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4142. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4143. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4144. break 2
  4145. fi
  4146. done
  4147. done
  4148. IFS=$as_save_IFS
  4149. fi
  4150. fi
  4151. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4152. if test -n "$ac_ct_OBJDUMP"; then
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4154. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4155. else
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4157. $as_echo "no" >&6; }
  4158. fi
  4159. if test "x$ac_ct_OBJDUMP" = x; then
  4160. OBJDUMP="false"
  4161. else
  4162. case $cross_compiling:$ac_tool_warned in
  4163. yes:)
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4165. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4166. ac_tool_warned=yes ;;
  4167. esac
  4168. OBJDUMP=$ac_ct_OBJDUMP
  4169. fi
  4170. else
  4171. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4172. fi
  4173. ;;
  4174. esac
  4175. test -z "$AS" && AS=as
  4176. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4177. test -z "$OBJDUMP" && OBJDUMP=objdump
  4178. case `pwd` in
  4179. *\ * | *\ *)
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4181. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4182. esac
  4183. macro_version='2.4.6'
  4184. macro_revision='2.4.6'
  4185. ltmain=$ac_aux_dir/ltmain.sh
  4186. # Backslashify metacharacters that are still active within
  4187. # double-quoted strings.
  4188. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4189. # Same as above, but do not quote variable references.
  4190. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4191. # Sed substitution to delay expansion of an escaped shell variable in a
  4192. # double_quote_subst'ed string.
  4193. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4194. # Sed substitution to delay expansion of an escaped single quote.
  4195. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4196. # Sed substitution to avoid accidental globbing in evaled expressions
  4197. no_glob_subst='s/\*/\\\*/g'
  4198. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4199. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4200. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4202. $as_echo_n "checking how to print strings... " >&6; }
  4203. # Test print first, because it will be a builtin if present.
  4204. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4205. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4206. ECHO='print -r --'
  4207. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4208. ECHO='printf %s\n'
  4209. else
  4210. # Use this function as a fallback that always works.
  4211. func_fallback_echo ()
  4212. {
  4213. eval 'cat <<_LTECHO_EOF
  4214. $1
  4215. _LTECHO_EOF'
  4216. }
  4217. ECHO='func_fallback_echo'
  4218. fi
  4219. # func_echo_all arg...
  4220. # Invoke $ECHO with all args, space-separated.
  4221. func_echo_all ()
  4222. {
  4223. $ECHO ""
  4224. }
  4225. case $ECHO in
  4226. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4227. $as_echo "printf" >&6; } ;;
  4228. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4229. $as_echo "print -r" >&6; } ;;
  4230. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4231. $as_echo "cat" >&6; } ;;
  4232. esac
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4234. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4235. if ${ac_cv_path_SED+:} false; then :
  4236. $as_echo_n "(cached) " >&6
  4237. else
  4238. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4239. for ac_i in 1 2 3 4 5 6 7; do
  4240. ac_script="$ac_script$as_nl$ac_script"
  4241. done
  4242. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4243. { ac_script=; unset ac_script;}
  4244. if test -z "$SED"; then
  4245. ac_path_SED_found=false
  4246. # Loop through the user's path and test for each of PROGNAME-LIST
  4247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4248. for as_dir in $PATH
  4249. do
  4250. IFS=$as_save_IFS
  4251. test -z "$as_dir" && as_dir=.
  4252. for ac_prog in sed gsed; do
  4253. for ac_exec_ext in '' $ac_executable_extensions; do
  4254. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4255. as_fn_executable_p "$ac_path_SED" || continue
  4256. # Check for GNU ac_path_SED and select it if it is found.
  4257. # Check for GNU $ac_path_SED
  4258. case `"$ac_path_SED" --version 2>&1` in
  4259. *GNU*)
  4260. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4261. *)
  4262. ac_count=0
  4263. $as_echo_n 0123456789 >"conftest.in"
  4264. while :
  4265. do
  4266. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4267. mv "conftest.tmp" "conftest.in"
  4268. cp "conftest.in" "conftest.nl"
  4269. $as_echo '' >> "conftest.nl"
  4270. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4271. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4272. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4273. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4274. # Best one so far, save it but keep looking for a better one
  4275. ac_cv_path_SED="$ac_path_SED"
  4276. ac_path_SED_max=$ac_count
  4277. fi
  4278. # 10*(2^10) chars as input seems more than enough
  4279. test $ac_count -gt 10 && break
  4280. done
  4281. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4282. esac
  4283. $ac_path_SED_found && break 3
  4284. done
  4285. done
  4286. done
  4287. IFS=$as_save_IFS
  4288. if test -z "$ac_cv_path_SED"; then
  4289. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4290. fi
  4291. else
  4292. ac_cv_path_SED=$SED
  4293. fi
  4294. fi
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4296. $as_echo "$ac_cv_path_SED" >&6; }
  4297. SED="$ac_cv_path_SED"
  4298. rm -f conftest.sed
  4299. test -z "$SED" && SED=sed
  4300. Xsed="$SED -e 1s/^X//"
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4302. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4303. if ${ac_cv_path_GREP+:} false; then :
  4304. $as_echo_n "(cached) " >&6
  4305. else
  4306. if test -z "$GREP"; then
  4307. ac_path_GREP_found=false
  4308. # Loop through the user's path and test for each of PROGNAME-LIST
  4309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4310. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4311. do
  4312. IFS=$as_save_IFS
  4313. test -z "$as_dir" && as_dir=.
  4314. for ac_prog in grep ggrep; do
  4315. for ac_exec_ext in '' $ac_executable_extensions; do
  4316. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4317. as_fn_executable_p "$ac_path_GREP" || continue
  4318. # Check for GNU ac_path_GREP and select it if it is found.
  4319. # Check for GNU $ac_path_GREP
  4320. case `"$ac_path_GREP" --version 2>&1` in
  4321. *GNU*)
  4322. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4323. *)
  4324. ac_count=0
  4325. $as_echo_n 0123456789 >"conftest.in"
  4326. while :
  4327. do
  4328. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4329. mv "conftest.tmp" "conftest.in"
  4330. cp "conftest.in" "conftest.nl"
  4331. $as_echo 'GREP' >> "conftest.nl"
  4332. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4333. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4334. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4335. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4336. # Best one so far, save it but keep looking for a better one
  4337. ac_cv_path_GREP="$ac_path_GREP"
  4338. ac_path_GREP_max=$ac_count
  4339. fi
  4340. # 10*(2^10) chars as input seems more than enough
  4341. test $ac_count -gt 10 && break
  4342. done
  4343. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4344. esac
  4345. $ac_path_GREP_found && break 3
  4346. done
  4347. done
  4348. done
  4349. IFS=$as_save_IFS
  4350. if test -z "$ac_cv_path_GREP"; then
  4351. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4352. fi
  4353. else
  4354. ac_cv_path_GREP=$GREP
  4355. fi
  4356. fi
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4358. $as_echo "$ac_cv_path_GREP" >&6; }
  4359. GREP="$ac_cv_path_GREP"
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4361. $as_echo_n "checking for egrep... " >&6; }
  4362. if ${ac_cv_path_EGREP+:} false; then :
  4363. $as_echo_n "(cached) " >&6
  4364. else
  4365. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4366. then ac_cv_path_EGREP="$GREP -E"
  4367. else
  4368. if test -z "$EGREP"; then
  4369. ac_path_EGREP_found=false
  4370. # Loop through the user's path and test for each of PROGNAME-LIST
  4371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4372. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4373. do
  4374. IFS=$as_save_IFS
  4375. test -z "$as_dir" && as_dir=.
  4376. for ac_prog in egrep; do
  4377. for ac_exec_ext in '' $ac_executable_extensions; do
  4378. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4379. as_fn_executable_p "$ac_path_EGREP" || continue
  4380. # Check for GNU ac_path_EGREP and select it if it is found.
  4381. # Check for GNU $ac_path_EGREP
  4382. case `"$ac_path_EGREP" --version 2>&1` in
  4383. *GNU*)
  4384. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4385. *)
  4386. ac_count=0
  4387. $as_echo_n 0123456789 >"conftest.in"
  4388. while :
  4389. do
  4390. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4391. mv "conftest.tmp" "conftest.in"
  4392. cp "conftest.in" "conftest.nl"
  4393. $as_echo 'EGREP' >> "conftest.nl"
  4394. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4395. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4396. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4397. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4398. # Best one so far, save it but keep looking for a better one
  4399. ac_cv_path_EGREP="$ac_path_EGREP"
  4400. ac_path_EGREP_max=$ac_count
  4401. fi
  4402. # 10*(2^10) chars as input seems more than enough
  4403. test $ac_count -gt 10 && break
  4404. done
  4405. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4406. esac
  4407. $ac_path_EGREP_found && break 3
  4408. done
  4409. done
  4410. done
  4411. IFS=$as_save_IFS
  4412. if test -z "$ac_cv_path_EGREP"; then
  4413. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4414. fi
  4415. else
  4416. ac_cv_path_EGREP=$EGREP
  4417. fi
  4418. fi
  4419. fi
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4421. $as_echo "$ac_cv_path_EGREP" >&6; }
  4422. EGREP="$ac_cv_path_EGREP"
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4424. $as_echo_n "checking for fgrep... " >&6; }
  4425. if ${ac_cv_path_FGREP+:} false; then :
  4426. $as_echo_n "(cached) " >&6
  4427. else
  4428. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4429. then ac_cv_path_FGREP="$GREP -F"
  4430. else
  4431. if test -z "$FGREP"; then
  4432. ac_path_FGREP_found=false
  4433. # Loop through the user's path and test for each of PROGNAME-LIST
  4434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4435. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4436. do
  4437. IFS=$as_save_IFS
  4438. test -z "$as_dir" && as_dir=.
  4439. for ac_prog in fgrep; do
  4440. for ac_exec_ext in '' $ac_executable_extensions; do
  4441. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4442. as_fn_executable_p "$ac_path_FGREP" || continue
  4443. # Check for GNU ac_path_FGREP and select it if it is found.
  4444. # Check for GNU $ac_path_FGREP
  4445. case `"$ac_path_FGREP" --version 2>&1` in
  4446. *GNU*)
  4447. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4448. *)
  4449. ac_count=0
  4450. $as_echo_n 0123456789 >"conftest.in"
  4451. while :
  4452. do
  4453. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4454. mv "conftest.tmp" "conftest.in"
  4455. cp "conftest.in" "conftest.nl"
  4456. $as_echo 'FGREP' >> "conftest.nl"
  4457. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4458. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4459. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4460. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4461. # Best one so far, save it but keep looking for a better one
  4462. ac_cv_path_FGREP="$ac_path_FGREP"
  4463. ac_path_FGREP_max=$ac_count
  4464. fi
  4465. # 10*(2^10) chars as input seems more than enough
  4466. test $ac_count -gt 10 && break
  4467. done
  4468. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4469. esac
  4470. $ac_path_FGREP_found && break 3
  4471. done
  4472. done
  4473. done
  4474. IFS=$as_save_IFS
  4475. if test -z "$ac_cv_path_FGREP"; then
  4476. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4477. fi
  4478. else
  4479. ac_cv_path_FGREP=$FGREP
  4480. fi
  4481. fi
  4482. fi
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4484. $as_echo "$ac_cv_path_FGREP" >&6; }
  4485. FGREP="$ac_cv_path_FGREP"
  4486. test -z "$GREP" && GREP=grep
  4487. # Check whether --with-gnu-ld was given.
  4488. if test "${with_gnu_ld+set}" = set; then :
  4489. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4490. else
  4491. with_gnu_ld=no
  4492. fi
  4493. ac_prog=ld
  4494. if test yes = "$GCC"; then
  4495. # Check if gcc -print-prog-name=ld gives a path.
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4497. $as_echo_n "checking for ld used by $CC... " >&6; }
  4498. case $host in
  4499. *-*-mingw*)
  4500. # gcc leaves a trailing carriage return, which upsets mingw
  4501. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4502. *)
  4503. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4504. esac
  4505. case $ac_prog in
  4506. # Accept absolute paths.
  4507. [\\/]* | ?:[\\/]*)
  4508. re_direlt='/[^/][^/]*/\.\./'
  4509. # Canonicalize the pathname of ld
  4510. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4511. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4512. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4513. done
  4514. test -z "$LD" && LD=$ac_prog
  4515. ;;
  4516. "")
  4517. # If it fails, then pretend we aren't using GCC.
  4518. ac_prog=ld
  4519. ;;
  4520. *)
  4521. # If it is relative, then search for the first ld in PATH.
  4522. with_gnu_ld=unknown
  4523. ;;
  4524. esac
  4525. elif test yes = "$with_gnu_ld"; then
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4527. $as_echo_n "checking for GNU ld... " >&6; }
  4528. else
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4530. $as_echo_n "checking for non-GNU ld... " >&6; }
  4531. fi
  4532. if ${lt_cv_path_LD+:} false; then :
  4533. $as_echo_n "(cached) " >&6
  4534. else
  4535. if test -z "$LD"; then
  4536. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4537. for ac_dir in $PATH; do
  4538. IFS=$lt_save_ifs
  4539. test -z "$ac_dir" && ac_dir=.
  4540. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4541. lt_cv_path_LD=$ac_dir/$ac_prog
  4542. # Check to see if the program is GNU ld. I'd rather use --version,
  4543. # but apparently some variants of GNU ld only accept -v.
  4544. # Break only if it was the GNU/non-GNU ld that we prefer.
  4545. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4546. *GNU* | *'with BFD'*)
  4547. test no != "$with_gnu_ld" && break
  4548. ;;
  4549. *)
  4550. test yes != "$with_gnu_ld" && break
  4551. ;;
  4552. esac
  4553. fi
  4554. done
  4555. IFS=$lt_save_ifs
  4556. else
  4557. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4558. fi
  4559. fi
  4560. LD=$lt_cv_path_LD
  4561. if test -n "$LD"; then
  4562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4563. $as_echo "$LD" >&6; }
  4564. else
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4566. $as_echo "no" >&6; }
  4567. fi
  4568. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4570. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4571. if ${lt_cv_prog_gnu_ld+:} false; then :
  4572. $as_echo_n "(cached) " >&6
  4573. else
  4574. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4575. case `$LD -v 2>&1 </dev/null` in
  4576. *GNU* | *'with BFD'*)
  4577. lt_cv_prog_gnu_ld=yes
  4578. ;;
  4579. *)
  4580. lt_cv_prog_gnu_ld=no
  4581. ;;
  4582. esac
  4583. fi
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4585. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4586. with_gnu_ld=$lt_cv_prog_gnu_ld
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4588. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4589. if ${lt_cv_path_NM+:} false; then :
  4590. $as_echo_n "(cached) " >&6
  4591. else
  4592. if test -n "$NM"; then
  4593. # Let the user override the test.
  4594. lt_cv_path_NM=$NM
  4595. else
  4596. lt_nm_to_check=${ac_tool_prefix}nm
  4597. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4598. lt_nm_to_check="$lt_nm_to_check nm"
  4599. fi
  4600. for lt_tmp_nm in $lt_nm_to_check; do
  4601. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4602. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4603. IFS=$lt_save_ifs
  4604. test -z "$ac_dir" && ac_dir=.
  4605. tmp_nm=$ac_dir/$lt_tmp_nm
  4606. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4607. # Check to see if the nm accepts a BSD-compat flag.
  4608. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4609. # nm: unknown option "B" ignored
  4610. # Tru64's nm complains that /dev/null is an invalid object file
  4611. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4612. case $build_os in
  4613. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4614. *) lt_bad_file=/dev/null ;;
  4615. esac
  4616. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4617. *$lt_bad_file* | *'Invalid file or object type'*)
  4618. lt_cv_path_NM="$tmp_nm -B"
  4619. break 2
  4620. ;;
  4621. *)
  4622. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4623. */dev/null*)
  4624. lt_cv_path_NM="$tmp_nm -p"
  4625. break 2
  4626. ;;
  4627. *)
  4628. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4629. continue # so that we can try to find one that supports BSD flags
  4630. ;;
  4631. esac
  4632. ;;
  4633. esac
  4634. fi
  4635. done
  4636. IFS=$lt_save_ifs
  4637. done
  4638. : ${lt_cv_path_NM=no}
  4639. fi
  4640. fi
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4642. $as_echo "$lt_cv_path_NM" >&6; }
  4643. if test no != "$lt_cv_path_NM"; then
  4644. NM=$lt_cv_path_NM
  4645. else
  4646. # Didn't find any BSD compatible name lister, look for dumpbin.
  4647. if test -n "$DUMPBIN"; then :
  4648. # Let the user override the test.
  4649. else
  4650. if test -n "$ac_tool_prefix"; then
  4651. for ac_prog in dumpbin "link -dump"
  4652. do
  4653. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4654. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4656. $as_echo_n "checking for $ac_word... " >&6; }
  4657. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4658. $as_echo_n "(cached) " >&6
  4659. else
  4660. if test -n "$DUMPBIN"; then
  4661. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4662. else
  4663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4664. for as_dir in $PATH
  4665. do
  4666. IFS=$as_save_IFS
  4667. test -z "$as_dir" && as_dir=.
  4668. for ac_exec_ext in '' $ac_executable_extensions; do
  4669. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4670. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4672. break 2
  4673. fi
  4674. done
  4675. done
  4676. IFS=$as_save_IFS
  4677. fi
  4678. fi
  4679. DUMPBIN=$ac_cv_prog_DUMPBIN
  4680. if test -n "$DUMPBIN"; then
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4682. $as_echo "$DUMPBIN" >&6; }
  4683. else
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4685. $as_echo "no" >&6; }
  4686. fi
  4687. test -n "$DUMPBIN" && break
  4688. done
  4689. fi
  4690. if test -z "$DUMPBIN"; then
  4691. ac_ct_DUMPBIN=$DUMPBIN
  4692. for ac_prog in dumpbin "link -dump"
  4693. do
  4694. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4695. set dummy $ac_prog; ac_word=$2
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4697. $as_echo_n "checking for $ac_word... " >&6; }
  4698. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4699. $as_echo_n "(cached) " >&6
  4700. else
  4701. if test -n "$ac_ct_DUMPBIN"; then
  4702. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4703. else
  4704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4705. for as_dir in $PATH
  4706. do
  4707. IFS=$as_save_IFS
  4708. test -z "$as_dir" && as_dir=.
  4709. for ac_exec_ext in '' $ac_executable_extensions; do
  4710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4711. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4713. break 2
  4714. fi
  4715. done
  4716. done
  4717. IFS=$as_save_IFS
  4718. fi
  4719. fi
  4720. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4721. if test -n "$ac_ct_DUMPBIN"; then
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4723. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4724. else
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4726. $as_echo "no" >&6; }
  4727. fi
  4728. test -n "$ac_ct_DUMPBIN" && break
  4729. done
  4730. if test "x$ac_ct_DUMPBIN" = x; then
  4731. DUMPBIN=":"
  4732. else
  4733. case $cross_compiling:$ac_tool_warned in
  4734. yes:)
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4736. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4737. ac_tool_warned=yes ;;
  4738. esac
  4739. DUMPBIN=$ac_ct_DUMPBIN
  4740. fi
  4741. fi
  4742. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4743. *COFF*)
  4744. DUMPBIN="$DUMPBIN -symbols -headers"
  4745. ;;
  4746. *)
  4747. DUMPBIN=:
  4748. ;;
  4749. esac
  4750. fi
  4751. if test : != "$DUMPBIN"; then
  4752. NM=$DUMPBIN
  4753. fi
  4754. fi
  4755. test -z "$NM" && NM=nm
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4757. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4758. if ${lt_cv_nm_interface+:} false; then :
  4759. $as_echo_n "(cached) " >&6
  4760. else
  4761. lt_cv_nm_interface="BSD nm"
  4762. echo "int some_variable = 0;" > conftest.$ac_ext
  4763. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4764. (eval "$ac_compile" 2>conftest.err)
  4765. cat conftest.err >&5
  4766. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4767. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4768. cat conftest.err >&5
  4769. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4770. cat conftest.out >&5
  4771. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4772. lt_cv_nm_interface="MS dumpbin"
  4773. fi
  4774. rm -f conftest*
  4775. fi
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4777. $as_echo "$lt_cv_nm_interface" >&6; }
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4779. $as_echo_n "checking whether ln -s works... " >&6; }
  4780. LN_S=$as_ln_s
  4781. if test "$LN_S" = "ln -s"; then
  4782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4783. $as_echo "yes" >&6; }
  4784. else
  4785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4786. $as_echo "no, using $LN_S" >&6; }
  4787. fi
  4788. # find the maximum length of command line arguments
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4790. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4791. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4792. $as_echo_n "(cached) " >&6
  4793. else
  4794. i=0
  4795. teststring=ABCD
  4796. case $build_os in
  4797. msdosdjgpp*)
  4798. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4799. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4800. # during glob expansion). Even if it were fixed, the result of this
  4801. # check would be larger than it should be.
  4802. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4803. ;;
  4804. gnu*)
  4805. # Under GNU Hurd, this test is not required because there is
  4806. # no limit to the length of command line arguments.
  4807. # Libtool will interpret -1 as no limit whatsoever
  4808. lt_cv_sys_max_cmd_len=-1;
  4809. ;;
  4810. cygwin* | mingw* | cegcc*)
  4811. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4812. # about 5 minutes as the teststring grows exponentially.
  4813. # Worse, since 9x/ME are not pre-emptively multitasking,
  4814. # you end up with a "frozen" computer, even though with patience
  4815. # the test eventually succeeds (with a max line length of 256k).
  4816. # Instead, let's just punt: use the minimum linelength reported by
  4817. # all of the supported platforms: 8192 (on NT/2K/XP).
  4818. lt_cv_sys_max_cmd_len=8192;
  4819. ;;
  4820. mint*)
  4821. # On MiNT this can take a long time and run out of memory.
  4822. lt_cv_sys_max_cmd_len=8192;
  4823. ;;
  4824. amigaos*)
  4825. # On AmigaOS with pdksh, this test takes hours, literally.
  4826. # So we just punt and use a minimum line length of 8192.
  4827. lt_cv_sys_max_cmd_len=8192;
  4828. ;;
  4829. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4830. # This has been around since 386BSD, at least. Likely further.
  4831. if test -x /sbin/sysctl; then
  4832. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4833. elif test -x /usr/sbin/sysctl; then
  4834. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4835. else
  4836. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4837. fi
  4838. # And add a safety zone
  4839. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4840. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4841. ;;
  4842. interix*)
  4843. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4844. lt_cv_sys_max_cmd_len=196608
  4845. ;;
  4846. os2*)
  4847. # The test takes a long time on OS/2.
  4848. lt_cv_sys_max_cmd_len=8192
  4849. ;;
  4850. osf*)
  4851. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4852. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4853. # nice to cause kernel panics so lets avoid the loop below.
  4854. # First set a reasonable default.
  4855. lt_cv_sys_max_cmd_len=16384
  4856. #
  4857. if test -x /sbin/sysconfig; then
  4858. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4859. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4860. esac
  4861. fi
  4862. ;;
  4863. sco3.2v5*)
  4864. lt_cv_sys_max_cmd_len=102400
  4865. ;;
  4866. sysv5* | sco5v6* | sysv4.2uw2*)
  4867. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4868. if test -n "$kargmax"; then
  4869. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4870. else
  4871. lt_cv_sys_max_cmd_len=32768
  4872. fi
  4873. ;;
  4874. *)
  4875. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4876. if test -n "$lt_cv_sys_max_cmd_len" && \
  4877. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4878. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4879. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4880. else
  4881. # Make teststring a little bigger before we do anything with it.
  4882. # a 1K string should be a reasonable start.
  4883. for i in 1 2 3 4 5 6 7 8; do
  4884. teststring=$teststring$teststring
  4885. done
  4886. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4887. # If test is not a shell built-in, we'll probably end up computing a
  4888. # maximum length that is only half of the actual maximum length, but
  4889. # we can't tell.
  4890. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4891. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4892. test 17 != "$i" # 1/2 MB should be enough
  4893. do
  4894. i=`expr $i + 1`
  4895. teststring=$teststring$teststring
  4896. done
  4897. # Only check the string length outside the loop.
  4898. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4899. teststring=
  4900. # Add a significant safety factor because C++ compilers can tack on
  4901. # massive amounts of additional arguments before passing them to the
  4902. # linker. It appears as though 1/2 is a usable value.
  4903. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4904. fi
  4905. ;;
  4906. esac
  4907. fi
  4908. if test -n "$lt_cv_sys_max_cmd_len"; then
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4910. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4911. else
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4913. $as_echo "none" >&6; }
  4914. fi
  4915. max_cmd_len=$lt_cv_sys_max_cmd_len
  4916. : ${CP="cp -f"}
  4917. : ${MV="mv -f"}
  4918. : ${RM="rm -f"}
  4919. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4920. lt_unset=unset
  4921. else
  4922. lt_unset=false
  4923. fi
  4924. # test EBCDIC or ASCII
  4925. case `echo X|tr X '\101'` in
  4926. A) # ASCII based system
  4927. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4928. lt_SP2NL='tr \040 \012'
  4929. lt_NL2SP='tr \015\012 \040\040'
  4930. ;;
  4931. *) # EBCDIC based system
  4932. lt_SP2NL='tr \100 \n'
  4933. lt_NL2SP='tr \r\n \100\100'
  4934. ;;
  4935. esac
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4937. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4938. if ${lt_cv_to_host_file_cmd+:} false; then :
  4939. $as_echo_n "(cached) " >&6
  4940. else
  4941. case $host in
  4942. *-*-mingw* )
  4943. case $build in
  4944. *-*-mingw* ) # actually msys
  4945. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4946. ;;
  4947. *-*-cygwin* )
  4948. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4949. ;;
  4950. * ) # otherwise, assume *nix
  4951. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4952. ;;
  4953. esac
  4954. ;;
  4955. *-*-cygwin* )
  4956. case $build in
  4957. *-*-mingw* ) # actually msys
  4958. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4959. ;;
  4960. *-*-cygwin* )
  4961. lt_cv_to_host_file_cmd=func_convert_file_noop
  4962. ;;
  4963. * ) # otherwise, assume *nix
  4964. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4965. ;;
  4966. esac
  4967. ;;
  4968. * ) # unhandled hosts (and "normal" native builds)
  4969. lt_cv_to_host_file_cmd=func_convert_file_noop
  4970. ;;
  4971. esac
  4972. fi
  4973. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4975. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4977. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4978. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4979. $as_echo_n "(cached) " >&6
  4980. else
  4981. #assume ordinary cross tools, or native build.
  4982. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4983. case $host in
  4984. *-*-mingw* )
  4985. case $build in
  4986. *-*-mingw* ) # actually msys
  4987. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4988. ;;
  4989. esac
  4990. ;;
  4991. esac
  4992. fi
  4993. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4995. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4997. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4998. if ${lt_cv_ld_reload_flag+:} false; then :
  4999. $as_echo_n "(cached) " >&6
  5000. else
  5001. lt_cv_ld_reload_flag='-r'
  5002. fi
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5004. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5005. reload_flag=$lt_cv_ld_reload_flag
  5006. case $reload_flag in
  5007. "" | " "*) ;;
  5008. *) reload_flag=" $reload_flag" ;;
  5009. esac
  5010. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5011. case $host_os in
  5012. cygwin* | mingw* | pw32* | cegcc*)
  5013. if test yes != "$GCC"; then
  5014. reload_cmds=false
  5015. fi
  5016. ;;
  5017. darwin*)
  5018. if test yes = "$GCC"; then
  5019. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5020. else
  5021. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5022. fi
  5023. ;;
  5024. esac
  5025. if test -n "$ac_tool_prefix"; then
  5026. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5027. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5029. $as_echo_n "checking for $ac_word... " >&6; }
  5030. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5031. $as_echo_n "(cached) " >&6
  5032. else
  5033. if test -n "$OBJDUMP"; then
  5034. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5035. else
  5036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5037. for as_dir in $PATH
  5038. do
  5039. IFS=$as_save_IFS
  5040. test -z "$as_dir" && as_dir=.
  5041. for ac_exec_ext in '' $ac_executable_extensions; do
  5042. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5043. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5045. break 2
  5046. fi
  5047. done
  5048. done
  5049. IFS=$as_save_IFS
  5050. fi
  5051. fi
  5052. OBJDUMP=$ac_cv_prog_OBJDUMP
  5053. if test -n "$OBJDUMP"; then
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5055. $as_echo "$OBJDUMP" >&6; }
  5056. else
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5058. $as_echo "no" >&6; }
  5059. fi
  5060. fi
  5061. if test -z "$ac_cv_prog_OBJDUMP"; then
  5062. ac_ct_OBJDUMP=$OBJDUMP
  5063. # Extract the first word of "objdump", so it can be a program name with args.
  5064. set dummy objdump; ac_word=$2
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5066. $as_echo_n "checking for $ac_word... " >&6; }
  5067. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5068. $as_echo_n "(cached) " >&6
  5069. else
  5070. if test -n "$ac_ct_OBJDUMP"; then
  5071. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5072. else
  5073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5074. for as_dir in $PATH
  5075. do
  5076. IFS=$as_save_IFS
  5077. test -z "$as_dir" && as_dir=.
  5078. for ac_exec_ext in '' $ac_executable_extensions; do
  5079. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5080. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5081. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5082. break 2
  5083. fi
  5084. done
  5085. done
  5086. IFS=$as_save_IFS
  5087. fi
  5088. fi
  5089. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5090. if test -n "$ac_ct_OBJDUMP"; then
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5092. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5093. else
  5094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5095. $as_echo "no" >&6; }
  5096. fi
  5097. if test "x$ac_ct_OBJDUMP" = x; then
  5098. OBJDUMP="false"
  5099. else
  5100. case $cross_compiling:$ac_tool_warned in
  5101. yes:)
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5103. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5104. ac_tool_warned=yes ;;
  5105. esac
  5106. OBJDUMP=$ac_ct_OBJDUMP
  5107. fi
  5108. else
  5109. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5110. fi
  5111. test -z "$OBJDUMP" && OBJDUMP=objdump
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5113. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5114. if ${lt_cv_deplibs_check_method+:} false; then :
  5115. $as_echo_n "(cached) " >&6
  5116. else
  5117. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5118. lt_cv_file_magic_test_file=
  5119. lt_cv_deplibs_check_method='unknown'
  5120. # Need to set the preceding variable on all platforms that support
  5121. # interlibrary dependencies.
  5122. # 'none' -- dependencies not supported.
  5123. # 'unknown' -- same as none, but documents that we really don't know.
  5124. # 'pass_all' -- all dependencies passed with no checks.
  5125. # 'test_compile' -- check by making test program.
  5126. # 'file_magic [[regex]]' -- check by looking for files in library path
  5127. # that responds to the $file_magic_cmd with a given extended regex.
  5128. # If you have 'file' or equivalent on your system and you're not sure
  5129. # whether 'pass_all' will *always* work, you probably want this one.
  5130. case $host_os in
  5131. aix[4-9]*)
  5132. lt_cv_deplibs_check_method=pass_all
  5133. ;;
  5134. beos*)
  5135. lt_cv_deplibs_check_method=pass_all
  5136. ;;
  5137. bsdi[45]*)
  5138. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5139. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5140. lt_cv_file_magic_test_file=/shlib/libc.so
  5141. ;;
  5142. cygwin*)
  5143. # func_win32_libid is a shell function defined in ltmain.sh
  5144. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5145. lt_cv_file_magic_cmd='func_win32_libid'
  5146. ;;
  5147. mingw* | pw32*)
  5148. # Base MSYS/MinGW do not provide the 'file' command needed by
  5149. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5150. # unless we find 'file', for example because we are cross-compiling.
  5151. if ( file / ) >/dev/null 2>&1; then
  5152. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5153. lt_cv_file_magic_cmd='func_win32_libid'
  5154. else
  5155. # Keep this pattern in sync with the one in func_win32_libid.
  5156. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5157. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5158. fi
  5159. ;;
  5160. cegcc*)
  5161. # use the weaker test based on 'objdump'. See mingw*.
  5162. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5163. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5164. ;;
  5165. darwin* | rhapsody*)
  5166. lt_cv_deplibs_check_method=pass_all
  5167. ;;
  5168. freebsd* | dragonfly*)
  5169. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5170. case $host_cpu in
  5171. i*86 )
  5172. # Not sure whether the presence of OpenBSD here was a mistake.
  5173. # Let's accept both of them until this is cleared up.
  5174. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5175. lt_cv_file_magic_cmd=/usr/bin/file
  5176. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5177. ;;
  5178. esac
  5179. else
  5180. lt_cv_deplibs_check_method=pass_all
  5181. fi
  5182. ;;
  5183. haiku*)
  5184. lt_cv_deplibs_check_method=pass_all
  5185. ;;
  5186. hpux10.20* | hpux11*)
  5187. lt_cv_file_magic_cmd=/usr/bin/file
  5188. case $host_cpu in
  5189. ia64*)
  5190. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5191. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5192. ;;
  5193. hppa*64*)
  5194. 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]'
  5195. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5196. ;;
  5197. *)
  5198. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5199. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5200. ;;
  5201. esac
  5202. ;;
  5203. interix[3-9]*)
  5204. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5205. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5206. ;;
  5207. irix5* | irix6* | nonstopux*)
  5208. case $LD in
  5209. *-32|*"-32 ") libmagic=32-bit;;
  5210. *-n32|*"-n32 ") libmagic=N32;;
  5211. *-64|*"-64 ") libmagic=64-bit;;
  5212. *) libmagic=never-match;;
  5213. esac
  5214. lt_cv_deplibs_check_method=pass_all
  5215. ;;
  5216. # This must be glibc/ELF.
  5217. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5218. lt_cv_deplibs_check_method=pass_all
  5219. ;;
  5220. netbsd*)
  5221. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5222. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5223. else
  5224. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5225. fi
  5226. ;;
  5227. newos6*)
  5228. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5229. lt_cv_file_magic_cmd=/usr/bin/file
  5230. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5231. ;;
  5232. *nto* | *qnx*)
  5233. lt_cv_deplibs_check_method=pass_all
  5234. ;;
  5235. openbsd* | bitrig*)
  5236. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5237. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5238. else
  5239. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5240. fi
  5241. ;;
  5242. osf3* | osf4* | osf5*)
  5243. lt_cv_deplibs_check_method=pass_all
  5244. ;;
  5245. rdos*)
  5246. lt_cv_deplibs_check_method=pass_all
  5247. ;;
  5248. solaris*)
  5249. lt_cv_deplibs_check_method=pass_all
  5250. ;;
  5251. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5252. lt_cv_deplibs_check_method=pass_all
  5253. ;;
  5254. sysv4 | sysv4.3*)
  5255. case $host_vendor in
  5256. motorola)
  5257. 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]'
  5258. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5259. ;;
  5260. ncr)
  5261. lt_cv_deplibs_check_method=pass_all
  5262. ;;
  5263. sequent)
  5264. lt_cv_file_magic_cmd='/bin/file'
  5265. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5266. ;;
  5267. sni)
  5268. lt_cv_file_magic_cmd='/bin/file'
  5269. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5270. lt_cv_file_magic_test_file=/lib/libc.so
  5271. ;;
  5272. siemens)
  5273. lt_cv_deplibs_check_method=pass_all
  5274. ;;
  5275. pc)
  5276. lt_cv_deplibs_check_method=pass_all
  5277. ;;
  5278. esac
  5279. ;;
  5280. tpf*)
  5281. lt_cv_deplibs_check_method=pass_all
  5282. ;;
  5283. os2*)
  5284. lt_cv_deplibs_check_method=pass_all
  5285. ;;
  5286. esac
  5287. fi
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5289. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5290. file_magic_glob=
  5291. want_nocaseglob=no
  5292. if test "$build" = "$host"; then
  5293. case $host_os in
  5294. mingw* | pw32*)
  5295. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5296. want_nocaseglob=yes
  5297. else
  5298. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5299. fi
  5300. ;;
  5301. esac
  5302. fi
  5303. file_magic_cmd=$lt_cv_file_magic_cmd
  5304. deplibs_check_method=$lt_cv_deplibs_check_method
  5305. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5306. if test -n "$ac_tool_prefix"; then
  5307. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5308. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5310. $as_echo_n "checking for $ac_word... " >&6; }
  5311. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5312. $as_echo_n "(cached) " >&6
  5313. else
  5314. if test -n "$DLLTOOL"; then
  5315. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5316. else
  5317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5318. for as_dir in $PATH
  5319. do
  5320. IFS=$as_save_IFS
  5321. test -z "$as_dir" && as_dir=.
  5322. for ac_exec_ext in '' $ac_executable_extensions; do
  5323. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5324. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5326. break 2
  5327. fi
  5328. done
  5329. done
  5330. IFS=$as_save_IFS
  5331. fi
  5332. fi
  5333. DLLTOOL=$ac_cv_prog_DLLTOOL
  5334. if test -n "$DLLTOOL"; then
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5336. $as_echo "$DLLTOOL" >&6; }
  5337. else
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5339. $as_echo "no" >&6; }
  5340. fi
  5341. fi
  5342. if test -z "$ac_cv_prog_DLLTOOL"; then
  5343. ac_ct_DLLTOOL=$DLLTOOL
  5344. # Extract the first word of "dlltool", so it can be a program name with args.
  5345. set dummy dlltool; ac_word=$2
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5347. $as_echo_n "checking for $ac_word... " >&6; }
  5348. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5349. $as_echo_n "(cached) " >&6
  5350. else
  5351. if test -n "$ac_ct_DLLTOOL"; then
  5352. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5353. else
  5354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5355. for as_dir in $PATH
  5356. do
  5357. IFS=$as_save_IFS
  5358. test -z "$as_dir" && as_dir=.
  5359. for ac_exec_ext in '' $ac_executable_extensions; do
  5360. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5361. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5363. break 2
  5364. fi
  5365. done
  5366. done
  5367. IFS=$as_save_IFS
  5368. fi
  5369. fi
  5370. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5371. if test -n "$ac_ct_DLLTOOL"; then
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5373. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5374. else
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5376. $as_echo "no" >&6; }
  5377. fi
  5378. if test "x$ac_ct_DLLTOOL" = x; then
  5379. DLLTOOL="false"
  5380. else
  5381. case $cross_compiling:$ac_tool_warned in
  5382. yes:)
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5384. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5385. ac_tool_warned=yes ;;
  5386. esac
  5387. DLLTOOL=$ac_ct_DLLTOOL
  5388. fi
  5389. else
  5390. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5391. fi
  5392. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5394. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5395. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5396. $as_echo_n "(cached) " >&6
  5397. else
  5398. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5399. case $host_os in
  5400. cygwin* | mingw* | pw32* | cegcc*)
  5401. # two different shell functions defined in ltmain.sh;
  5402. # decide which one to use based on capabilities of $DLLTOOL
  5403. case `$DLLTOOL --help 2>&1` in
  5404. *--identify-strict*)
  5405. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5406. ;;
  5407. *)
  5408. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5409. ;;
  5410. esac
  5411. ;;
  5412. *)
  5413. # fallback: assume linklib IS sharedlib
  5414. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5415. ;;
  5416. esac
  5417. fi
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5419. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5420. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5421. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5422. if test -n "$ac_tool_prefix"; then
  5423. for ac_prog in ar
  5424. do
  5425. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5426. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5428. $as_echo_n "checking for $ac_word... " >&6; }
  5429. if ${ac_cv_prog_AR+:} false; then :
  5430. $as_echo_n "(cached) " >&6
  5431. else
  5432. if test -n "$AR"; then
  5433. ac_cv_prog_AR="$AR" # Let the user override the test.
  5434. else
  5435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5436. for as_dir in $PATH
  5437. do
  5438. IFS=$as_save_IFS
  5439. test -z "$as_dir" && as_dir=.
  5440. for ac_exec_ext in '' $ac_executable_extensions; do
  5441. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5442. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5444. break 2
  5445. fi
  5446. done
  5447. done
  5448. IFS=$as_save_IFS
  5449. fi
  5450. fi
  5451. AR=$ac_cv_prog_AR
  5452. if test -n "$AR"; then
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5454. $as_echo "$AR" >&6; }
  5455. else
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5457. $as_echo "no" >&6; }
  5458. fi
  5459. test -n "$AR" && break
  5460. done
  5461. fi
  5462. if test -z "$AR"; then
  5463. ac_ct_AR=$AR
  5464. for ac_prog in ar
  5465. do
  5466. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5467. set dummy $ac_prog; ac_word=$2
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5469. $as_echo_n "checking for $ac_word... " >&6; }
  5470. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5471. $as_echo_n "(cached) " >&6
  5472. else
  5473. if test -n "$ac_ct_AR"; then
  5474. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5475. else
  5476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5477. for as_dir in $PATH
  5478. do
  5479. IFS=$as_save_IFS
  5480. test -z "$as_dir" && as_dir=.
  5481. for ac_exec_ext in '' $ac_executable_extensions; do
  5482. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5483. ac_cv_prog_ac_ct_AR="$ac_prog"
  5484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5485. break 2
  5486. fi
  5487. done
  5488. done
  5489. IFS=$as_save_IFS
  5490. fi
  5491. fi
  5492. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5493. if test -n "$ac_ct_AR"; then
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5495. $as_echo "$ac_ct_AR" >&6; }
  5496. else
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5498. $as_echo "no" >&6; }
  5499. fi
  5500. test -n "$ac_ct_AR" && break
  5501. done
  5502. if test "x$ac_ct_AR" = x; then
  5503. AR="false"
  5504. else
  5505. case $cross_compiling:$ac_tool_warned in
  5506. yes:)
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5508. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5509. ac_tool_warned=yes ;;
  5510. esac
  5511. AR=$ac_ct_AR
  5512. fi
  5513. fi
  5514. : ${AR=ar}
  5515. : ${AR_FLAGS=cru}
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5517. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5518. if ${lt_cv_ar_at_file+:} false; then :
  5519. $as_echo_n "(cached) " >&6
  5520. else
  5521. lt_cv_ar_at_file=no
  5522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5523. /* end confdefs.h. */
  5524. int
  5525. main ()
  5526. {
  5527. ;
  5528. return 0;
  5529. }
  5530. _ACEOF
  5531. if ac_fn_c_try_compile "$LINENO"; then :
  5532. echo conftest.$ac_objext > conftest.lst
  5533. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5534. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5535. (eval $lt_ar_try) 2>&5
  5536. ac_status=$?
  5537. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5538. test $ac_status = 0; }
  5539. if test 0 -eq "$ac_status"; then
  5540. # Ensure the archiver fails upon bogus file names.
  5541. rm -f conftest.$ac_objext libconftest.a
  5542. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5543. (eval $lt_ar_try) 2>&5
  5544. ac_status=$?
  5545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5546. test $ac_status = 0; }
  5547. if test 0 -ne "$ac_status"; then
  5548. lt_cv_ar_at_file=@
  5549. fi
  5550. fi
  5551. rm -f conftest.* libconftest.a
  5552. fi
  5553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5554. fi
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5556. $as_echo "$lt_cv_ar_at_file" >&6; }
  5557. if test no = "$lt_cv_ar_at_file"; then
  5558. archiver_list_spec=
  5559. else
  5560. archiver_list_spec=$lt_cv_ar_at_file
  5561. fi
  5562. if test -n "$ac_tool_prefix"; then
  5563. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5564. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5566. $as_echo_n "checking for $ac_word... " >&6; }
  5567. if ${ac_cv_prog_STRIP+:} false; then :
  5568. $as_echo_n "(cached) " >&6
  5569. else
  5570. if test -n "$STRIP"; then
  5571. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5572. else
  5573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5574. for as_dir in $PATH
  5575. do
  5576. IFS=$as_save_IFS
  5577. test -z "$as_dir" && as_dir=.
  5578. for ac_exec_ext in '' $ac_executable_extensions; do
  5579. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5580. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5581. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5582. break 2
  5583. fi
  5584. done
  5585. done
  5586. IFS=$as_save_IFS
  5587. fi
  5588. fi
  5589. STRIP=$ac_cv_prog_STRIP
  5590. if test -n "$STRIP"; then
  5591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5592. $as_echo "$STRIP" >&6; }
  5593. else
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5595. $as_echo "no" >&6; }
  5596. fi
  5597. fi
  5598. if test -z "$ac_cv_prog_STRIP"; then
  5599. ac_ct_STRIP=$STRIP
  5600. # Extract the first word of "strip", so it can be a program name with args.
  5601. set dummy strip; ac_word=$2
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5603. $as_echo_n "checking for $ac_word... " >&6; }
  5604. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5605. $as_echo_n "(cached) " >&6
  5606. else
  5607. if test -n "$ac_ct_STRIP"; then
  5608. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5609. else
  5610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5611. for as_dir in $PATH
  5612. do
  5613. IFS=$as_save_IFS
  5614. test -z "$as_dir" && as_dir=.
  5615. for ac_exec_ext in '' $ac_executable_extensions; do
  5616. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5617. ac_cv_prog_ac_ct_STRIP="strip"
  5618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5619. break 2
  5620. fi
  5621. done
  5622. done
  5623. IFS=$as_save_IFS
  5624. fi
  5625. fi
  5626. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5627. if test -n "$ac_ct_STRIP"; then
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5629. $as_echo "$ac_ct_STRIP" >&6; }
  5630. else
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5632. $as_echo "no" >&6; }
  5633. fi
  5634. if test "x$ac_ct_STRIP" = x; then
  5635. STRIP=":"
  5636. else
  5637. case $cross_compiling:$ac_tool_warned in
  5638. yes:)
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5640. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5641. ac_tool_warned=yes ;;
  5642. esac
  5643. STRIP=$ac_ct_STRIP
  5644. fi
  5645. else
  5646. STRIP="$ac_cv_prog_STRIP"
  5647. fi
  5648. test -z "$STRIP" && STRIP=:
  5649. if test -n "$ac_tool_prefix"; then
  5650. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5651. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5653. $as_echo_n "checking for $ac_word... " >&6; }
  5654. if ${ac_cv_prog_RANLIB+:} false; then :
  5655. $as_echo_n "(cached) " >&6
  5656. else
  5657. if test -n "$RANLIB"; then
  5658. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5659. else
  5660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5661. for as_dir in $PATH
  5662. do
  5663. IFS=$as_save_IFS
  5664. test -z "$as_dir" && as_dir=.
  5665. for ac_exec_ext in '' $ac_executable_extensions; do
  5666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5667. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5669. break 2
  5670. fi
  5671. done
  5672. done
  5673. IFS=$as_save_IFS
  5674. fi
  5675. fi
  5676. RANLIB=$ac_cv_prog_RANLIB
  5677. if test -n "$RANLIB"; then
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5679. $as_echo "$RANLIB" >&6; }
  5680. else
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5682. $as_echo "no" >&6; }
  5683. fi
  5684. fi
  5685. if test -z "$ac_cv_prog_RANLIB"; then
  5686. ac_ct_RANLIB=$RANLIB
  5687. # Extract the first word of "ranlib", so it can be a program name with args.
  5688. set dummy ranlib; ac_word=$2
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5690. $as_echo_n "checking for $ac_word... " >&6; }
  5691. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5692. $as_echo_n "(cached) " >&6
  5693. else
  5694. if test -n "$ac_ct_RANLIB"; then
  5695. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5696. else
  5697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5698. for as_dir in $PATH
  5699. do
  5700. IFS=$as_save_IFS
  5701. test -z "$as_dir" && as_dir=.
  5702. for ac_exec_ext in '' $ac_executable_extensions; do
  5703. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5704. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5706. break 2
  5707. fi
  5708. done
  5709. done
  5710. IFS=$as_save_IFS
  5711. fi
  5712. fi
  5713. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5714. if test -n "$ac_ct_RANLIB"; then
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5716. $as_echo "$ac_ct_RANLIB" >&6; }
  5717. else
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5719. $as_echo "no" >&6; }
  5720. fi
  5721. if test "x$ac_ct_RANLIB" = x; then
  5722. RANLIB=":"
  5723. else
  5724. case $cross_compiling:$ac_tool_warned in
  5725. yes:)
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5727. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5728. ac_tool_warned=yes ;;
  5729. esac
  5730. RANLIB=$ac_ct_RANLIB
  5731. fi
  5732. else
  5733. RANLIB="$ac_cv_prog_RANLIB"
  5734. fi
  5735. test -z "$RANLIB" && RANLIB=:
  5736. # Determine commands to create old-style static archives.
  5737. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5738. old_postinstall_cmds='chmod 644 $oldlib'
  5739. old_postuninstall_cmds=
  5740. if test -n "$RANLIB"; then
  5741. case $host_os in
  5742. bitrig* | openbsd*)
  5743. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5744. ;;
  5745. *)
  5746. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5747. ;;
  5748. esac
  5749. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5750. fi
  5751. case $host_os in
  5752. darwin*)
  5753. lock_old_archive_extraction=yes ;;
  5754. *)
  5755. lock_old_archive_extraction=no ;;
  5756. esac
  5757. # If no C compiler was specified, use CC.
  5758. LTCC=${LTCC-"$CC"}
  5759. # If no C compiler flags were specified, use CFLAGS.
  5760. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5761. # Allow CC to be a program name with arguments.
  5762. compiler=$CC
  5763. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5765. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5766. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5767. $as_echo_n "(cached) " >&6
  5768. else
  5769. # These are sane defaults that work on at least a few old systems.
  5770. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5771. # Character class describing NM global symbol codes.
  5772. symcode='[BCDEGRST]'
  5773. # Regexp to match symbols that can be accessed directly from C.
  5774. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5775. # Define system-specific variables.
  5776. case $host_os in
  5777. aix*)
  5778. symcode='[BCDT]'
  5779. ;;
  5780. cygwin* | mingw* | pw32* | cegcc*)
  5781. symcode='[ABCDGISTW]'
  5782. ;;
  5783. hpux*)
  5784. if test ia64 = "$host_cpu"; then
  5785. symcode='[ABCDEGRST]'
  5786. fi
  5787. ;;
  5788. irix* | nonstopux*)
  5789. symcode='[BCDEGRST]'
  5790. ;;
  5791. osf*)
  5792. symcode='[BCDEGQRST]'
  5793. ;;
  5794. solaris*)
  5795. symcode='[BDRT]'
  5796. ;;
  5797. sco3.2v5*)
  5798. symcode='[DT]'
  5799. ;;
  5800. sysv4.2uw2*)
  5801. symcode='[DT]'
  5802. ;;
  5803. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5804. symcode='[ABDT]'
  5805. ;;
  5806. sysv4)
  5807. symcode='[DFNSTU]'
  5808. ;;
  5809. esac
  5810. # If we're using GNU nm, then use its standard symbol codes.
  5811. case `$NM -V 2>&1` in
  5812. *GNU* | *'with BFD'*)
  5813. symcode='[ABCDGIRSTW]' ;;
  5814. esac
  5815. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5816. # Gets list of data symbols to import.
  5817. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5818. # Adjust the below global symbol transforms to fixup imported variables.
  5819. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5820. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5821. lt_c_name_lib_hook="\
  5822. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5823. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5824. else
  5825. # Disable hooks by default.
  5826. lt_cv_sys_global_symbol_to_import=
  5827. lt_cdecl_hook=
  5828. lt_c_name_hook=
  5829. lt_c_name_lib_hook=
  5830. fi
  5831. # Transform an extracted symbol line into a proper C declaration.
  5832. # Some systems (esp. on ia64) link data and code symbols differently,
  5833. # so use this general approach.
  5834. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5835. $lt_cdecl_hook\
  5836. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5837. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5838. # Transform an extracted symbol line into symbol name and symbol address
  5839. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5840. $lt_c_name_hook\
  5841. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5842. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5843. # Transform an extracted symbol line into symbol name with lib prefix and
  5844. # symbol address.
  5845. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5846. $lt_c_name_lib_hook\
  5847. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5848. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5849. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5850. # Handle CRLF in mingw tool chain
  5851. opt_cr=
  5852. case $build_os in
  5853. mingw*)
  5854. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5855. ;;
  5856. esac
  5857. # Try without a prefix underscore, then with it.
  5858. for ac_symprfx in "" "_"; do
  5859. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5860. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5861. # Write the raw and C identifiers.
  5862. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5863. # Fake it for dumpbin and say T for any non-static function,
  5864. # D for any global variable and I for any imported variable.
  5865. # Also find C++ and __fastcall symbols from MSVC++,
  5866. # which start with @ or ?.
  5867. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5868. " {last_section=section; section=\$ 3};"\
  5869. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5870. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5871. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5872. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5873. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5874. " \$ 0!~/External *\|/{next};"\
  5875. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5876. " {if(hide[section]) next};"\
  5877. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5878. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5879. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5880. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5881. " ' prfx=^$ac_symprfx"
  5882. else
  5883. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5884. fi
  5885. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5886. # Check to see that the pipe works correctly.
  5887. pipe_works=no
  5888. rm -f conftest*
  5889. cat > conftest.$ac_ext <<_LT_EOF
  5890. #ifdef __cplusplus
  5891. extern "C" {
  5892. #endif
  5893. char nm_test_var;
  5894. void nm_test_func(void);
  5895. void nm_test_func(void){}
  5896. #ifdef __cplusplus
  5897. }
  5898. #endif
  5899. int main(){nm_test_var='a';nm_test_func();return(0);}
  5900. _LT_EOF
  5901. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5902. (eval $ac_compile) 2>&5
  5903. ac_status=$?
  5904. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5905. test $ac_status = 0; }; then
  5906. # Now try to grab the symbols.
  5907. nlist=conftest.nm
  5908. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5909. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5910. ac_status=$?
  5911. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5912. test $ac_status = 0; } && test -s "$nlist"; then
  5913. # Try sorting and uniquifying the output.
  5914. if sort "$nlist" | uniq > "$nlist"T; then
  5915. mv -f "$nlist"T "$nlist"
  5916. else
  5917. rm -f "$nlist"T
  5918. fi
  5919. # Make sure that we snagged all the symbols we need.
  5920. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5921. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5922. cat <<_LT_EOF > conftest.$ac_ext
  5923. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5924. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5925. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5926. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5927. # define LT_DLSYM_CONST
  5928. #elif defined __osf__
  5929. /* This system does not cope well with relocations in const data. */
  5930. # define LT_DLSYM_CONST
  5931. #else
  5932. # define LT_DLSYM_CONST const
  5933. #endif
  5934. #ifdef __cplusplus
  5935. extern "C" {
  5936. #endif
  5937. _LT_EOF
  5938. # Now generate the symbol file.
  5939. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5940. cat <<_LT_EOF >> conftest.$ac_ext
  5941. /* The mapping between symbol names and symbols. */
  5942. LT_DLSYM_CONST struct {
  5943. const char *name;
  5944. void *address;
  5945. }
  5946. lt__PROGRAM__LTX_preloaded_symbols[] =
  5947. {
  5948. { "@PROGRAM@", (void *) 0 },
  5949. _LT_EOF
  5950. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5951. cat <<\_LT_EOF >> conftest.$ac_ext
  5952. {0, (void *) 0}
  5953. };
  5954. /* This works around a problem in FreeBSD linker */
  5955. #ifdef FREEBSD_WORKAROUND
  5956. static const void *lt_preloaded_setup() {
  5957. return lt__PROGRAM__LTX_preloaded_symbols;
  5958. }
  5959. #endif
  5960. #ifdef __cplusplus
  5961. }
  5962. #endif
  5963. _LT_EOF
  5964. # Now try linking the two files.
  5965. mv conftest.$ac_objext conftstm.$ac_objext
  5966. lt_globsym_save_LIBS=$LIBS
  5967. lt_globsym_save_CFLAGS=$CFLAGS
  5968. LIBS=conftstm.$ac_objext
  5969. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5970. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5971. (eval $ac_link) 2>&5
  5972. ac_status=$?
  5973. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5974. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5975. pipe_works=yes
  5976. fi
  5977. LIBS=$lt_globsym_save_LIBS
  5978. CFLAGS=$lt_globsym_save_CFLAGS
  5979. else
  5980. echo "cannot find nm_test_func in $nlist" >&5
  5981. fi
  5982. else
  5983. echo "cannot find nm_test_var in $nlist" >&5
  5984. fi
  5985. else
  5986. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5987. fi
  5988. else
  5989. echo "$progname: failed program was:" >&5
  5990. cat conftest.$ac_ext >&5
  5991. fi
  5992. rm -rf conftest* conftst*
  5993. # Do not use the global_symbol_pipe unless it works.
  5994. if test yes = "$pipe_works"; then
  5995. break
  5996. else
  5997. lt_cv_sys_global_symbol_pipe=
  5998. fi
  5999. done
  6000. fi
  6001. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6002. lt_cv_sys_global_symbol_to_cdecl=
  6003. fi
  6004. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6006. $as_echo "failed" >&6; }
  6007. else
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6009. $as_echo "ok" >&6; }
  6010. fi
  6011. # Response file support.
  6012. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6013. nm_file_list_spec='@'
  6014. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6015. nm_file_list_spec='@'
  6016. fi
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6018. $as_echo_n "checking for sysroot... " >&6; }
  6019. # Check whether --with-sysroot was given.
  6020. if test "${with_sysroot+set}" = set; then :
  6021. withval=$with_sysroot;
  6022. else
  6023. with_sysroot=no
  6024. fi
  6025. lt_sysroot=
  6026. case $with_sysroot in #(
  6027. yes)
  6028. if test yes = "$GCC"; then
  6029. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6030. fi
  6031. ;; #(
  6032. /*)
  6033. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6034. ;; #(
  6035. no|'')
  6036. ;; #(
  6037. *)
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6039. $as_echo "$with_sysroot" >&6; }
  6040. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6041. ;;
  6042. esac
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6044. $as_echo "${lt_sysroot:-no}" >&6; }
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6046. $as_echo_n "checking for a working dd... " >&6; }
  6047. if ${ac_cv_path_lt_DD+:} false; then :
  6048. $as_echo_n "(cached) " >&6
  6049. else
  6050. printf 0123456789abcdef0123456789abcdef >conftest.i
  6051. cat conftest.i conftest.i >conftest2.i
  6052. : ${lt_DD:=$DD}
  6053. if test -z "$lt_DD"; then
  6054. ac_path_lt_DD_found=false
  6055. # Loop through the user's path and test for each of PROGNAME-LIST
  6056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6057. for as_dir in $PATH
  6058. do
  6059. IFS=$as_save_IFS
  6060. test -z "$as_dir" && as_dir=.
  6061. for ac_prog in dd; do
  6062. for ac_exec_ext in '' $ac_executable_extensions; do
  6063. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6064. as_fn_executable_p "$ac_path_lt_DD" || continue
  6065. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6066. cmp -s conftest.i conftest.out \
  6067. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6068. fi
  6069. $ac_path_lt_DD_found && break 3
  6070. done
  6071. done
  6072. done
  6073. IFS=$as_save_IFS
  6074. if test -z "$ac_cv_path_lt_DD"; then
  6075. :
  6076. fi
  6077. else
  6078. ac_cv_path_lt_DD=$lt_DD
  6079. fi
  6080. rm -f conftest.i conftest2.i conftest.out
  6081. fi
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6083. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6085. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6086. if ${lt_cv_truncate_bin+:} false; then :
  6087. $as_echo_n "(cached) " >&6
  6088. else
  6089. printf 0123456789abcdef0123456789abcdef >conftest.i
  6090. cat conftest.i conftest.i >conftest2.i
  6091. lt_cv_truncate_bin=
  6092. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6093. cmp -s conftest.i conftest.out \
  6094. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6095. fi
  6096. rm -f conftest.i conftest2.i conftest.out
  6097. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6098. fi
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6100. $as_echo "$lt_cv_truncate_bin" >&6; }
  6101. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6102. func_cc_basename ()
  6103. {
  6104. for cc_temp in $*""; do
  6105. case $cc_temp in
  6106. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6107. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6108. \-*) ;;
  6109. *) break;;
  6110. esac
  6111. done
  6112. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6113. }
  6114. # Check whether --enable-libtool-lock was given.
  6115. if test "${enable_libtool_lock+set}" = set; then :
  6116. enableval=$enable_libtool_lock;
  6117. fi
  6118. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6119. # Some flags need to be propagated to the compiler or linker for good
  6120. # libtool support.
  6121. case $host in
  6122. ia64-*-hpux*)
  6123. # Find out what ABI is being produced by ac_compile, and set mode
  6124. # options accordingly.
  6125. echo 'int i;' > conftest.$ac_ext
  6126. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6127. (eval $ac_compile) 2>&5
  6128. ac_status=$?
  6129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6130. test $ac_status = 0; }; then
  6131. case `/usr/bin/file conftest.$ac_objext` in
  6132. *ELF-32*)
  6133. HPUX_IA64_MODE=32
  6134. ;;
  6135. *ELF-64*)
  6136. HPUX_IA64_MODE=64
  6137. ;;
  6138. esac
  6139. fi
  6140. rm -rf conftest*
  6141. ;;
  6142. *-*-irix6*)
  6143. # Find out what ABI is being produced by ac_compile, and set linker
  6144. # options accordingly.
  6145. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6146. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6147. (eval $ac_compile) 2>&5
  6148. ac_status=$?
  6149. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6150. test $ac_status = 0; }; then
  6151. if test yes = "$lt_cv_prog_gnu_ld"; then
  6152. case `/usr/bin/file conftest.$ac_objext` in
  6153. *32-bit*)
  6154. LD="${LD-ld} -melf32bsmip"
  6155. ;;
  6156. *N32*)
  6157. LD="${LD-ld} -melf32bmipn32"
  6158. ;;
  6159. *64-bit*)
  6160. LD="${LD-ld} -melf64bmip"
  6161. ;;
  6162. esac
  6163. else
  6164. case `/usr/bin/file conftest.$ac_objext` in
  6165. *32-bit*)
  6166. LD="${LD-ld} -32"
  6167. ;;
  6168. *N32*)
  6169. LD="${LD-ld} -n32"
  6170. ;;
  6171. *64-bit*)
  6172. LD="${LD-ld} -64"
  6173. ;;
  6174. esac
  6175. fi
  6176. fi
  6177. rm -rf conftest*
  6178. ;;
  6179. mips64*-*linux*)
  6180. # Find out what ABI is being produced by ac_compile, and set linker
  6181. # options accordingly.
  6182. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6183. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6184. (eval $ac_compile) 2>&5
  6185. ac_status=$?
  6186. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6187. test $ac_status = 0; }; then
  6188. emul=elf
  6189. case `/usr/bin/file conftest.$ac_objext` in
  6190. *32-bit*)
  6191. emul="${emul}32"
  6192. ;;
  6193. *64-bit*)
  6194. emul="${emul}64"
  6195. ;;
  6196. esac
  6197. case `/usr/bin/file conftest.$ac_objext` in
  6198. *MSB*)
  6199. emul="${emul}btsmip"
  6200. ;;
  6201. *LSB*)
  6202. emul="${emul}ltsmip"
  6203. ;;
  6204. esac
  6205. case `/usr/bin/file conftest.$ac_objext` in
  6206. *N32*)
  6207. emul="${emul}n32"
  6208. ;;
  6209. esac
  6210. LD="${LD-ld} -m $emul"
  6211. fi
  6212. rm -rf conftest*
  6213. ;;
  6214. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6215. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6216. # Find out what ABI is being produced by ac_compile, and set linker
  6217. # options accordingly. Note that the listed cases only cover the
  6218. # situations where additional linker options are needed (such as when
  6219. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6220. # vice versa); the common cases where no linker options are needed do
  6221. # not appear in the list.
  6222. echo 'int i;' > conftest.$ac_ext
  6223. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6224. (eval $ac_compile) 2>&5
  6225. ac_status=$?
  6226. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6227. test $ac_status = 0; }; then
  6228. case `/usr/bin/file conftest.o` in
  6229. *32-bit*)
  6230. case $host in
  6231. x86_64-*kfreebsd*-gnu)
  6232. LD="${LD-ld} -m elf_i386_fbsd"
  6233. ;;
  6234. x86_64-*linux*)
  6235. case `/usr/bin/file conftest.o` in
  6236. *x86-64*)
  6237. LD="${LD-ld} -m elf32_x86_64"
  6238. ;;
  6239. *)
  6240. LD="${LD-ld} -m elf_i386"
  6241. ;;
  6242. esac
  6243. ;;
  6244. powerpc64le-*linux*)
  6245. LD="${LD-ld} -m elf32lppclinux"
  6246. ;;
  6247. powerpc64-*linux*)
  6248. LD="${LD-ld} -m elf32ppclinux"
  6249. ;;
  6250. s390x-*linux*)
  6251. LD="${LD-ld} -m elf_s390"
  6252. ;;
  6253. sparc64-*linux*)
  6254. LD="${LD-ld} -m elf32_sparc"
  6255. ;;
  6256. esac
  6257. ;;
  6258. *64-bit*)
  6259. case $host in
  6260. x86_64-*kfreebsd*-gnu)
  6261. LD="${LD-ld} -m elf_x86_64_fbsd"
  6262. ;;
  6263. x86_64-*linux*)
  6264. LD="${LD-ld} -m elf_x86_64"
  6265. ;;
  6266. powerpcle-*linux*)
  6267. LD="${LD-ld} -m elf64lppc"
  6268. ;;
  6269. powerpc-*linux*)
  6270. LD="${LD-ld} -m elf64ppc"
  6271. ;;
  6272. s390*-*linux*|s390*-*tpf*)
  6273. LD="${LD-ld} -m elf64_s390"
  6274. ;;
  6275. sparc*-*linux*)
  6276. LD="${LD-ld} -m elf64_sparc"
  6277. ;;
  6278. esac
  6279. ;;
  6280. esac
  6281. fi
  6282. rm -rf conftest*
  6283. ;;
  6284. *-*-sco3.2v5*)
  6285. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6286. SAVE_CFLAGS=$CFLAGS
  6287. CFLAGS="$CFLAGS -belf"
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6289. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6290. if ${lt_cv_cc_needs_belf+:} false; then :
  6291. $as_echo_n "(cached) " >&6
  6292. else
  6293. ac_ext=c
  6294. ac_cpp='$CPP $CPPFLAGS'
  6295. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6296. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6297. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6299. /* end confdefs.h. */
  6300. int
  6301. main ()
  6302. {
  6303. ;
  6304. return 0;
  6305. }
  6306. _ACEOF
  6307. if ac_fn_c_try_link "$LINENO"; then :
  6308. lt_cv_cc_needs_belf=yes
  6309. else
  6310. lt_cv_cc_needs_belf=no
  6311. fi
  6312. rm -f core conftest.err conftest.$ac_objext \
  6313. conftest$ac_exeext conftest.$ac_ext
  6314. ac_ext=c
  6315. ac_cpp='$CPP $CPPFLAGS'
  6316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6319. fi
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6321. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6322. if test yes != "$lt_cv_cc_needs_belf"; then
  6323. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6324. CFLAGS=$SAVE_CFLAGS
  6325. fi
  6326. ;;
  6327. *-*solaris*)
  6328. # Find out what ABI is being produced by ac_compile, and set linker
  6329. # options accordingly.
  6330. echo 'int i;' > conftest.$ac_ext
  6331. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6332. (eval $ac_compile) 2>&5
  6333. ac_status=$?
  6334. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6335. test $ac_status = 0; }; then
  6336. case `/usr/bin/file conftest.o` in
  6337. *64-bit*)
  6338. case $lt_cv_prog_gnu_ld in
  6339. yes*)
  6340. case $host in
  6341. i?86-*-solaris*|x86_64-*-solaris*)
  6342. LD="${LD-ld} -m elf_x86_64"
  6343. ;;
  6344. sparc*-*-solaris*)
  6345. LD="${LD-ld} -m elf64_sparc"
  6346. ;;
  6347. esac
  6348. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6349. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6350. LD=${LD-ld}_sol2
  6351. fi
  6352. ;;
  6353. *)
  6354. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6355. LD="${LD-ld} -64"
  6356. fi
  6357. ;;
  6358. esac
  6359. ;;
  6360. esac
  6361. fi
  6362. rm -rf conftest*
  6363. ;;
  6364. esac
  6365. need_locks=$enable_libtool_lock
  6366. if test -n "$ac_tool_prefix"; then
  6367. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6368. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6370. $as_echo_n "checking for $ac_word... " >&6; }
  6371. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6372. $as_echo_n "(cached) " >&6
  6373. else
  6374. if test -n "$MANIFEST_TOOL"; then
  6375. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6376. else
  6377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6378. for as_dir in $PATH
  6379. do
  6380. IFS=$as_save_IFS
  6381. test -z "$as_dir" && as_dir=.
  6382. for ac_exec_ext in '' $ac_executable_extensions; do
  6383. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6384. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6386. break 2
  6387. fi
  6388. done
  6389. done
  6390. IFS=$as_save_IFS
  6391. fi
  6392. fi
  6393. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6394. if test -n "$MANIFEST_TOOL"; then
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6396. $as_echo "$MANIFEST_TOOL" >&6; }
  6397. else
  6398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6399. $as_echo "no" >&6; }
  6400. fi
  6401. fi
  6402. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6403. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6404. # Extract the first word of "mt", so it can be a program name with args.
  6405. set dummy mt; ac_word=$2
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6407. $as_echo_n "checking for $ac_word... " >&6; }
  6408. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6409. $as_echo_n "(cached) " >&6
  6410. else
  6411. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6412. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6413. else
  6414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6415. for as_dir in $PATH
  6416. do
  6417. IFS=$as_save_IFS
  6418. test -z "$as_dir" && as_dir=.
  6419. for ac_exec_ext in '' $ac_executable_extensions; do
  6420. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6421. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6423. break 2
  6424. fi
  6425. done
  6426. done
  6427. IFS=$as_save_IFS
  6428. fi
  6429. fi
  6430. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6431. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6433. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6434. else
  6435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6436. $as_echo "no" >&6; }
  6437. fi
  6438. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6439. MANIFEST_TOOL=":"
  6440. else
  6441. case $cross_compiling:$ac_tool_warned in
  6442. yes:)
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6444. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6445. ac_tool_warned=yes ;;
  6446. esac
  6447. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6448. fi
  6449. else
  6450. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6451. fi
  6452. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6454. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6455. if ${lt_cv_path_mainfest_tool+:} false; then :
  6456. $as_echo_n "(cached) " >&6
  6457. else
  6458. lt_cv_path_mainfest_tool=no
  6459. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6460. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6461. cat conftest.err >&5
  6462. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6463. lt_cv_path_mainfest_tool=yes
  6464. fi
  6465. rm -f conftest*
  6466. fi
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6468. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6469. if test yes != "$lt_cv_path_mainfest_tool"; then
  6470. MANIFEST_TOOL=:
  6471. fi
  6472. case $host_os in
  6473. rhapsody* | darwin*)
  6474. if test -n "$ac_tool_prefix"; then
  6475. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6476. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6478. $as_echo_n "checking for $ac_word... " >&6; }
  6479. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6480. $as_echo_n "(cached) " >&6
  6481. else
  6482. if test -n "$DSYMUTIL"; then
  6483. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6484. else
  6485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6486. for as_dir in $PATH
  6487. do
  6488. IFS=$as_save_IFS
  6489. test -z "$as_dir" && as_dir=.
  6490. for ac_exec_ext in '' $ac_executable_extensions; do
  6491. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6492. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6494. break 2
  6495. fi
  6496. done
  6497. done
  6498. IFS=$as_save_IFS
  6499. fi
  6500. fi
  6501. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6502. if test -n "$DSYMUTIL"; then
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6504. $as_echo "$DSYMUTIL" >&6; }
  6505. else
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6507. $as_echo "no" >&6; }
  6508. fi
  6509. fi
  6510. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6511. ac_ct_DSYMUTIL=$DSYMUTIL
  6512. # Extract the first word of "dsymutil", so it can be a program name with args.
  6513. set dummy dsymutil; ac_word=$2
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6515. $as_echo_n "checking for $ac_word... " >&6; }
  6516. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6517. $as_echo_n "(cached) " >&6
  6518. else
  6519. if test -n "$ac_ct_DSYMUTIL"; then
  6520. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6521. else
  6522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6523. for as_dir in $PATH
  6524. do
  6525. IFS=$as_save_IFS
  6526. test -z "$as_dir" && as_dir=.
  6527. for ac_exec_ext in '' $ac_executable_extensions; do
  6528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6529. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6531. break 2
  6532. fi
  6533. done
  6534. done
  6535. IFS=$as_save_IFS
  6536. fi
  6537. fi
  6538. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6539. if test -n "$ac_ct_DSYMUTIL"; then
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6541. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6542. else
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6544. $as_echo "no" >&6; }
  6545. fi
  6546. if test "x$ac_ct_DSYMUTIL" = x; then
  6547. DSYMUTIL=":"
  6548. else
  6549. case $cross_compiling:$ac_tool_warned in
  6550. yes:)
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6552. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6553. ac_tool_warned=yes ;;
  6554. esac
  6555. DSYMUTIL=$ac_ct_DSYMUTIL
  6556. fi
  6557. else
  6558. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6559. fi
  6560. if test -n "$ac_tool_prefix"; then
  6561. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6562. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6564. $as_echo_n "checking for $ac_word... " >&6; }
  6565. if ${ac_cv_prog_NMEDIT+:} false; then :
  6566. $as_echo_n "(cached) " >&6
  6567. else
  6568. if test -n "$NMEDIT"; then
  6569. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6570. else
  6571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6572. for as_dir in $PATH
  6573. do
  6574. IFS=$as_save_IFS
  6575. test -z "$as_dir" && as_dir=.
  6576. for ac_exec_ext in '' $ac_executable_extensions; do
  6577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6578. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6580. break 2
  6581. fi
  6582. done
  6583. done
  6584. IFS=$as_save_IFS
  6585. fi
  6586. fi
  6587. NMEDIT=$ac_cv_prog_NMEDIT
  6588. if test -n "$NMEDIT"; then
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6590. $as_echo "$NMEDIT" >&6; }
  6591. else
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6593. $as_echo "no" >&6; }
  6594. fi
  6595. fi
  6596. if test -z "$ac_cv_prog_NMEDIT"; then
  6597. ac_ct_NMEDIT=$NMEDIT
  6598. # Extract the first word of "nmedit", so it can be a program name with args.
  6599. set dummy nmedit; ac_word=$2
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6601. $as_echo_n "checking for $ac_word... " >&6; }
  6602. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6603. $as_echo_n "(cached) " >&6
  6604. else
  6605. if test -n "$ac_ct_NMEDIT"; then
  6606. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6607. else
  6608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6609. for as_dir in $PATH
  6610. do
  6611. IFS=$as_save_IFS
  6612. test -z "$as_dir" && as_dir=.
  6613. for ac_exec_ext in '' $ac_executable_extensions; do
  6614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6615. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6617. break 2
  6618. fi
  6619. done
  6620. done
  6621. IFS=$as_save_IFS
  6622. fi
  6623. fi
  6624. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6625. if test -n "$ac_ct_NMEDIT"; then
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6627. $as_echo "$ac_ct_NMEDIT" >&6; }
  6628. else
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6630. $as_echo "no" >&6; }
  6631. fi
  6632. if test "x$ac_ct_NMEDIT" = x; then
  6633. NMEDIT=":"
  6634. else
  6635. case $cross_compiling:$ac_tool_warned in
  6636. yes:)
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6639. ac_tool_warned=yes ;;
  6640. esac
  6641. NMEDIT=$ac_ct_NMEDIT
  6642. fi
  6643. else
  6644. NMEDIT="$ac_cv_prog_NMEDIT"
  6645. fi
  6646. if test -n "$ac_tool_prefix"; then
  6647. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6648. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6650. $as_echo_n "checking for $ac_word... " >&6; }
  6651. if ${ac_cv_prog_LIPO+:} false; then :
  6652. $as_echo_n "(cached) " >&6
  6653. else
  6654. if test -n "$LIPO"; then
  6655. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6656. else
  6657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6658. for as_dir in $PATH
  6659. do
  6660. IFS=$as_save_IFS
  6661. test -z "$as_dir" && as_dir=.
  6662. for ac_exec_ext in '' $ac_executable_extensions; do
  6663. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6664. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6666. break 2
  6667. fi
  6668. done
  6669. done
  6670. IFS=$as_save_IFS
  6671. fi
  6672. fi
  6673. LIPO=$ac_cv_prog_LIPO
  6674. if test -n "$LIPO"; then
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6676. $as_echo "$LIPO" >&6; }
  6677. else
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6679. $as_echo "no" >&6; }
  6680. fi
  6681. fi
  6682. if test -z "$ac_cv_prog_LIPO"; then
  6683. ac_ct_LIPO=$LIPO
  6684. # Extract the first word of "lipo", so it can be a program name with args.
  6685. set dummy lipo; ac_word=$2
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6687. $as_echo_n "checking for $ac_word... " >&6; }
  6688. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6689. $as_echo_n "(cached) " >&6
  6690. else
  6691. if test -n "$ac_ct_LIPO"; then
  6692. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6693. else
  6694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6695. for as_dir in $PATH
  6696. do
  6697. IFS=$as_save_IFS
  6698. test -z "$as_dir" && as_dir=.
  6699. for ac_exec_ext in '' $ac_executable_extensions; do
  6700. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6701. ac_cv_prog_ac_ct_LIPO="lipo"
  6702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6703. break 2
  6704. fi
  6705. done
  6706. done
  6707. IFS=$as_save_IFS
  6708. fi
  6709. fi
  6710. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6711. if test -n "$ac_ct_LIPO"; then
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6713. $as_echo "$ac_ct_LIPO" >&6; }
  6714. else
  6715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6716. $as_echo "no" >&6; }
  6717. fi
  6718. if test "x$ac_ct_LIPO" = x; then
  6719. LIPO=":"
  6720. else
  6721. case $cross_compiling:$ac_tool_warned in
  6722. yes:)
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6724. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6725. ac_tool_warned=yes ;;
  6726. esac
  6727. LIPO=$ac_ct_LIPO
  6728. fi
  6729. else
  6730. LIPO="$ac_cv_prog_LIPO"
  6731. fi
  6732. if test -n "$ac_tool_prefix"; then
  6733. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6734. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6736. $as_echo_n "checking for $ac_word... " >&6; }
  6737. if ${ac_cv_prog_OTOOL+:} false; then :
  6738. $as_echo_n "(cached) " >&6
  6739. else
  6740. if test -n "$OTOOL"; then
  6741. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6742. else
  6743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6744. for as_dir in $PATH
  6745. do
  6746. IFS=$as_save_IFS
  6747. test -z "$as_dir" && as_dir=.
  6748. for ac_exec_ext in '' $ac_executable_extensions; do
  6749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6750. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6752. break 2
  6753. fi
  6754. done
  6755. done
  6756. IFS=$as_save_IFS
  6757. fi
  6758. fi
  6759. OTOOL=$ac_cv_prog_OTOOL
  6760. if test -n "$OTOOL"; then
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6762. $as_echo "$OTOOL" >&6; }
  6763. else
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6765. $as_echo "no" >&6; }
  6766. fi
  6767. fi
  6768. if test -z "$ac_cv_prog_OTOOL"; then
  6769. ac_ct_OTOOL=$OTOOL
  6770. # Extract the first word of "otool", so it can be a program name with args.
  6771. set dummy otool; ac_word=$2
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6773. $as_echo_n "checking for $ac_word... " >&6; }
  6774. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6775. $as_echo_n "(cached) " >&6
  6776. else
  6777. if test -n "$ac_ct_OTOOL"; then
  6778. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6779. else
  6780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6781. for as_dir in $PATH
  6782. do
  6783. IFS=$as_save_IFS
  6784. test -z "$as_dir" && as_dir=.
  6785. for ac_exec_ext in '' $ac_executable_extensions; do
  6786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6787. ac_cv_prog_ac_ct_OTOOL="otool"
  6788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6789. break 2
  6790. fi
  6791. done
  6792. done
  6793. IFS=$as_save_IFS
  6794. fi
  6795. fi
  6796. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6797. if test -n "$ac_ct_OTOOL"; then
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6799. $as_echo "$ac_ct_OTOOL" >&6; }
  6800. else
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6802. $as_echo "no" >&6; }
  6803. fi
  6804. if test "x$ac_ct_OTOOL" = x; then
  6805. OTOOL=":"
  6806. else
  6807. case $cross_compiling:$ac_tool_warned in
  6808. yes:)
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6810. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6811. ac_tool_warned=yes ;;
  6812. esac
  6813. OTOOL=$ac_ct_OTOOL
  6814. fi
  6815. else
  6816. OTOOL="$ac_cv_prog_OTOOL"
  6817. fi
  6818. if test -n "$ac_tool_prefix"; then
  6819. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6820. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6822. $as_echo_n "checking for $ac_word... " >&6; }
  6823. if ${ac_cv_prog_OTOOL64+:} false; then :
  6824. $as_echo_n "(cached) " >&6
  6825. else
  6826. if test -n "$OTOOL64"; then
  6827. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6828. else
  6829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6830. for as_dir in $PATH
  6831. do
  6832. IFS=$as_save_IFS
  6833. test -z "$as_dir" && as_dir=.
  6834. for ac_exec_ext in '' $ac_executable_extensions; do
  6835. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6836. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6838. break 2
  6839. fi
  6840. done
  6841. done
  6842. IFS=$as_save_IFS
  6843. fi
  6844. fi
  6845. OTOOL64=$ac_cv_prog_OTOOL64
  6846. if test -n "$OTOOL64"; then
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6848. $as_echo "$OTOOL64" >&6; }
  6849. else
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6851. $as_echo "no" >&6; }
  6852. fi
  6853. fi
  6854. if test -z "$ac_cv_prog_OTOOL64"; then
  6855. ac_ct_OTOOL64=$OTOOL64
  6856. # Extract the first word of "otool64", so it can be a program name with args.
  6857. set dummy otool64; ac_word=$2
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6859. $as_echo_n "checking for $ac_word... " >&6; }
  6860. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6861. $as_echo_n "(cached) " >&6
  6862. else
  6863. if test -n "$ac_ct_OTOOL64"; then
  6864. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6865. else
  6866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6867. for as_dir in $PATH
  6868. do
  6869. IFS=$as_save_IFS
  6870. test -z "$as_dir" && as_dir=.
  6871. for ac_exec_ext in '' $ac_executable_extensions; do
  6872. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6873. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6875. break 2
  6876. fi
  6877. done
  6878. done
  6879. IFS=$as_save_IFS
  6880. fi
  6881. fi
  6882. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6883. if test -n "$ac_ct_OTOOL64"; then
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6885. $as_echo "$ac_ct_OTOOL64" >&6; }
  6886. else
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6888. $as_echo "no" >&6; }
  6889. fi
  6890. if test "x$ac_ct_OTOOL64" = x; then
  6891. OTOOL64=":"
  6892. else
  6893. case $cross_compiling:$ac_tool_warned in
  6894. yes:)
  6895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6896. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6897. ac_tool_warned=yes ;;
  6898. esac
  6899. OTOOL64=$ac_ct_OTOOL64
  6900. fi
  6901. else
  6902. OTOOL64="$ac_cv_prog_OTOOL64"
  6903. fi
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6905. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6906. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6907. $as_echo_n "(cached) " >&6
  6908. else
  6909. lt_cv_apple_cc_single_mod=no
  6910. if test -z "$LT_MULTI_MODULE"; then
  6911. # By default we will add the -single_module flag. You can override
  6912. # by either setting the environment variable LT_MULTI_MODULE
  6913. # non-empty at configure time, or by adding -multi_module to the
  6914. # link flags.
  6915. rm -rf libconftest.dylib*
  6916. echo "int foo(void){return 1;}" > conftest.c
  6917. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6918. -dynamiclib -Wl,-single_module conftest.c" >&5
  6919. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6920. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6921. _lt_result=$?
  6922. # If there is a non-empty error log, and "single_module"
  6923. # appears in it, assume the flag caused a linker warning
  6924. if test -s conftest.err && $GREP single_module conftest.err; then
  6925. cat conftest.err >&5
  6926. # Otherwise, if the output was created with a 0 exit code from
  6927. # the compiler, it worked.
  6928. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6929. lt_cv_apple_cc_single_mod=yes
  6930. else
  6931. cat conftest.err >&5
  6932. fi
  6933. rm -rf libconftest.dylib*
  6934. rm -f conftest.*
  6935. fi
  6936. fi
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6938. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6940. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6941. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6942. $as_echo_n "(cached) " >&6
  6943. else
  6944. lt_cv_ld_exported_symbols_list=no
  6945. save_LDFLAGS=$LDFLAGS
  6946. echo "_main" > conftest.sym
  6947. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6949. /* end confdefs.h. */
  6950. int
  6951. main ()
  6952. {
  6953. ;
  6954. return 0;
  6955. }
  6956. _ACEOF
  6957. if ac_fn_c_try_link "$LINENO"; then :
  6958. lt_cv_ld_exported_symbols_list=yes
  6959. else
  6960. lt_cv_ld_exported_symbols_list=no
  6961. fi
  6962. rm -f core conftest.err conftest.$ac_objext \
  6963. conftest$ac_exeext conftest.$ac_ext
  6964. LDFLAGS=$save_LDFLAGS
  6965. fi
  6966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6967. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6969. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6970. if ${lt_cv_ld_force_load+:} false; then :
  6971. $as_echo_n "(cached) " >&6
  6972. else
  6973. lt_cv_ld_force_load=no
  6974. cat > conftest.c << _LT_EOF
  6975. int forced_loaded() { return 2;}
  6976. _LT_EOF
  6977. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6978. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6979. echo "$AR cru libconftest.a conftest.o" >&5
  6980. $AR cru libconftest.a conftest.o 2>&5
  6981. echo "$RANLIB libconftest.a" >&5
  6982. $RANLIB libconftest.a 2>&5
  6983. cat > conftest.c << _LT_EOF
  6984. int main() { return 0;}
  6985. _LT_EOF
  6986. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6987. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6988. _lt_result=$?
  6989. if test -s conftest.err && $GREP force_load conftest.err; then
  6990. cat conftest.err >&5
  6991. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6992. lt_cv_ld_force_load=yes
  6993. else
  6994. cat conftest.err >&5
  6995. fi
  6996. rm -f conftest.err libconftest.a conftest conftest.c
  6997. rm -rf conftest.dSYM
  6998. fi
  6999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7000. $as_echo "$lt_cv_ld_force_load" >&6; }
  7001. case $host_os in
  7002. rhapsody* | darwin1.[012])
  7003. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7004. darwin1.*)
  7005. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7006. darwin*) # darwin 5.x on
  7007. # if running on 10.5 or later, the deployment target defaults
  7008. # to the OS version, if on x86, and 10.4, the deployment
  7009. # target defaults to 10.4. Don't you love it?
  7010. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7011. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7012. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7013. 10.[012][,.]*)
  7014. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7015. 10.*)
  7016. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7017. esac
  7018. ;;
  7019. esac
  7020. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7021. _lt_dar_single_mod='$single_module'
  7022. fi
  7023. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7024. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7025. else
  7026. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7027. fi
  7028. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7029. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7030. else
  7031. _lt_dsymutil=
  7032. fi
  7033. ;;
  7034. esac
  7035. # func_munge_path_list VARIABLE PATH
  7036. # -----------------------------------
  7037. # VARIABLE is name of variable containing _space_ separated list of
  7038. # directories to be munged by the contents of PATH, which is string
  7039. # having a format:
  7040. # "DIR[:DIR]:"
  7041. # string "DIR[ DIR]" will be prepended to VARIABLE
  7042. # ":DIR[:DIR]"
  7043. # string "DIR[ DIR]" will be appended to VARIABLE
  7044. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7045. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7046. # "DIRA[ DIRA]" will be appended to VARIABLE
  7047. # "DIR[:DIR]"
  7048. # VARIABLE will be replaced by "DIR[ DIR]"
  7049. func_munge_path_list ()
  7050. {
  7051. case x$2 in
  7052. x)
  7053. ;;
  7054. *:)
  7055. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7056. ;;
  7057. x:*)
  7058. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7059. ;;
  7060. *::*)
  7061. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7062. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7063. ;;
  7064. *)
  7065. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7066. ;;
  7067. esac
  7068. }
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7070. $as_echo_n "checking for ANSI C header files... " >&6; }
  7071. if ${ac_cv_header_stdc+:} false; then :
  7072. $as_echo_n "(cached) " >&6
  7073. else
  7074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7075. /* end confdefs.h. */
  7076. #include <stdlib.h>
  7077. #include <stdarg.h>
  7078. #include <string.h>
  7079. #include <float.h>
  7080. int
  7081. main ()
  7082. {
  7083. ;
  7084. return 0;
  7085. }
  7086. _ACEOF
  7087. if ac_fn_c_try_compile "$LINENO"; then :
  7088. ac_cv_header_stdc=yes
  7089. else
  7090. ac_cv_header_stdc=no
  7091. fi
  7092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7093. if test $ac_cv_header_stdc = yes; then
  7094. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7096. /* end confdefs.h. */
  7097. #include <string.h>
  7098. _ACEOF
  7099. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7100. $EGREP "memchr" >/dev/null 2>&1; then :
  7101. else
  7102. ac_cv_header_stdc=no
  7103. fi
  7104. rm -f conftest*
  7105. fi
  7106. if test $ac_cv_header_stdc = yes; then
  7107. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7109. /* end confdefs.h. */
  7110. #include <stdlib.h>
  7111. _ACEOF
  7112. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7113. $EGREP "free" >/dev/null 2>&1; then :
  7114. else
  7115. ac_cv_header_stdc=no
  7116. fi
  7117. rm -f conftest*
  7118. fi
  7119. if test $ac_cv_header_stdc = yes; then
  7120. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7121. if test "$cross_compiling" = yes; then :
  7122. :
  7123. else
  7124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7125. /* end confdefs.h. */
  7126. #include <ctype.h>
  7127. #include <stdlib.h>
  7128. #if ((' ' & 0x0FF) == 0x020)
  7129. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7130. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7131. #else
  7132. # define ISLOWER(c) \
  7133. (('a' <= (c) && (c) <= 'i') \
  7134. || ('j' <= (c) && (c) <= 'r') \
  7135. || ('s' <= (c) && (c) <= 'z'))
  7136. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7137. #endif
  7138. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7139. int
  7140. main ()
  7141. {
  7142. int i;
  7143. for (i = 0; i < 256; i++)
  7144. if (XOR (islower (i), ISLOWER (i))
  7145. || toupper (i) != TOUPPER (i))
  7146. return 2;
  7147. return 0;
  7148. }
  7149. _ACEOF
  7150. if ac_fn_c_try_run "$LINENO"; then :
  7151. else
  7152. ac_cv_header_stdc=no
  7153. fi
  7154. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7155. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7156. fi
  7157. fi
  7158. fi
  7159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7160. $as_echo "$ac_cv_header_stdc" >&6; }
  7161. if test $ac_cv_header_stdc = yes; then
  7162. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7163. fi
  7164. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7165. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7166. inttypes.h stdint.h unistd.h
  7167. do :
  7168. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7169. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7170. "
  7171. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7172. cat >>confdefs.h <<_ACEOF
  7173. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7174. _ACEOF
  7175. fi
  7176. done
  7177. for ac_header in dlfcn.h
  7178. do :
  7179. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7180. "
  7181. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7182. cat >>confdefs.h <<_ACEOF
  7183. #define HAVE_DLFCN_H 1
  7184. _ACEOF
  7185. fi
  7186. done
  7187. # Set options
  7188. enable_dlopen=no
  7189. # Check whether --enable-shared was given.
  7190. if test "${enable_shared+set}" = set; then :
  7191. enableval=$enable_shared; p=${PACKAGE-default}
  7192. case $enableval in
  7193. yes) enable_shared=yes ;;
  7194. no) enable_shared=no ;;
  7195. *)
  7196. enable_shared=no
  7197. # Look at the argument we got. We use all the common list separators.
  7198. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7199. for pkg in $enableval; do
  7200. IFS=$lt_save_ifs
  7201. if test "X$pkg" = "X$p"; then
  7202. enable_shared=yes
  7203. fi
  7204. done
  7205. IFS=$lt_save_ifs
  7206. ;;
  7207. esac
  7208. else
  7209. enable_shared=yes
  7210. fi
  7211. # Check whether --enable-static was given.
  7212. if test "${enable_static+set}" = set; then :
  7213. enableval=$enable_static; p=${PACKAGE-default}
  7214. case $enableval in
  7215. yes) enable_static=yes ;;
  7216. no) enable_static=no ;;
  7217. *)
  7218. enable_static=no
  7219. # Look at the argument we got. We use all the common list separators.
  7220. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7221. for pkg in $enableval; do
  7222. IFS=$lt_save_ifs
  7223. if test "X$pkg" = "X$p"; then
  7224. enable_static=yes
  7225. fi
  7226. done
  7227. IFS=$lt_save_ifs
  7228. ;;
  7229. esac
  7230. else
  7231. enable_static=yes
  7232. fi
  7233. # Check whether --with-pic was given.
  7234. if test "${with_pic+set}" = set; then :
  7235. withval=$with_pic; lt_p=${PACKAGE-default}
  7236. case $withval in
  7237. yes|no) pic_mode=$withval ;;
  7238. *)
  7239. pic_mode=default
  7240. # Look at the argument we got. We use all the common list separators.
  7241. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7242. for lt_pkg in $withval; do
  7243. IFS=$lt_save_ifs
  7244. if test "X$lt_pkg" = "X$lt_p"; then
  7245. pic_mode=yes
  7246. fi
  7247. done
  7248. IFS=$lt_save_ifs
  7249. ;;
  7250. esac
  7251. else
  7252. pic_mode=default
  7253. fi
  7254. # Check whether --enable-fast-install was given.
  7255. if test "${enable_fast_install+set}" = set; then :
  7256. enableval=$enable_fast_install; p=${PACKAGE-default}
  7257. case $enableval in
  7258. yes) enable_fast_install=yes ;;
  7259. no) enable_fast_install=no ;;
  7260. *)
  7261. enable_fast_install=no
  7262. # Look at the argument we got. We use all the common list separators.
  7263. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7264. for pkg in $enableval; do
  7265. IFS=$lt_save_ifs
  7266. if test "X$pkg" = "X$p"; then
  7267. enable_fast_install=yes
  7268. fi
  7269. done
  7270. IFS=$lt_save_ifs
  7271. ;;
  7272. esac
  7273. else
  7274. enable_fast_install=yes
  7275. fi
  7276. shared_archive_member_spec=
  7277. case $host,$enable_shared in
  7278. power*-*-aix[5-9]*,yes)
  7279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7280. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7281. # Check whether --with-aix-soname was given.
  7282. if test "${with_aix_soname+set}" = set; then :
  7283. withval=$with_aix_soname; case $withval in
  7284. aix|svr4|both)
  7285. ;;
  7286. *)
  7287. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7288. ;;
  7289. esac
  7290. lt_cv_with_aix_soname=$with_aix_soname
  7291. else
  7292. if ${lt_cv_with_aix_soname+:} false; then :
  7293. $as_echo_n "(cached) " >&6
  7294. else
  7295. lt_cv_with_aix_soname=aix
  7296. fi
  7297. with_aix_soname=$lt_cv_with_aix_soname
  7298. fi
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7300. $as_echo "$with_aix_soname" >&6; }
  7301. if test aix != "$with_aix_soname"; then
  7302. # For the AIX way of multilib, we name the shared archive member
  7303. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7304. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7305. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7306. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7307. if test 64 = "${OBJECT_MODE-32}"; then
  7308. shared_archive_member_spec=shr_64
  7309. else
  7310. shared_archive_member_spec=shr
  7311. fi
  7312. fi
  7313. ;;
  7314. *)
  7315. with_aix_soname=aix
  7316. ;;
  7317. esac
  7318. # This can be used to rebuild libtool when needed
  7319. LIBTOOL_DEPS=$ltmain
  7320. # Always use our own libtool.
  7321. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7322. test -z "$LN_S" && LN_S="ln -s"
  7323. if test -n "${ZSH_VERSION+set}"; then
  7324. setopt NO_GLOB_SUBST
  7325. fi
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7327. $as_echo_n "checking for objdir... " >&6; }
  7328. if ${lt_cv_objdir+:} false; then :
  7329. $as_echo_n "(cached) " >&6
  7330. else
  7331. rm -f .libs 2>/dev/null
  7332. mkdir .libs 2>/dev/null
  7333. if test -d .libs; then
  7334. lt_cv_objdir=.libs
  7335. else
  7336. # MS-DOS does not allow filenames that begin with a dot.
  7337. lt_cv_objdir=_libs
  7338. fi
  7339. rmdir .libs 2>/dev/null
  7340. fi
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7342. $as_echo "$lt_cv_objdir" >&6; }
  7343. objdir=$lt_cv_objdir
  7344. cat >>confdefs.h <<_ACEOF
  7345. #define LT_OBJDIR "$lt_cv_objdir/"
  7346. _ACEOF
  7347. case $host_os in
  7348. aix3*)
  7349. # AIX sometimes has problems with the GCC collect2 program. For some
  7350. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7351. # vanish in a puff of smoke.
  7352. if test set != "${COLLECT_NAMES+set}"; then
  7353. COLLECT_NAMES=
  7354. export COLLECT_NAMES
  7355. fi
  7356. ;;
  7357. esac
  7358. # Global variables:
  7359. ofile=libtool
  7360. can_build_shared=yes
  7361. # All known linkers require a '.a' archive for static linking (except MSVC,
  7362. # which needs '.lib').
  7363. libext=a
  7364. with_gnu_ld=$lt_cv_prog_gnu_ld
  7365. old_CC=$CC
  7366. old_CFLAGS=$CFLAGS
  7367. # Set sane defaults for various variables
  7368. test -z "$CC" && CC=cc
  7369. test -z "$LTCC" && LTCC=$CC
  7370. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7371. test -z "$LD" && LD=ld
  7372. test -z "$ac_objext" && ac_objext=o
  7373. func_cc_basename $compiler
  7374. cc_basename=$func_cc_basename_result
  7375. # Only perform the check for file, if the check method requires it
  7376. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7377. case $deplibs_check_method in
  7378. file_magic*)
  7379. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7381. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7382. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7383. $as_echo_n "(cached) " >&6
  7384. else
  7385. case $MAGIC_CMD in
  7386. [\\/*] | ?:[\\/]*)
  7387. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7388. ;;
  7389. *)
  7390. lt_save_MAGIC_CMD=$MAGIC_CMD
  7391. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7392. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7393. for ac_dir in $ac_dummy; do
  7394. IFS=$lt_save_ifs
  7395. test -z "$ac_dir" && ac_dir=.
  7396. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7397. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7398. if test -n "$file_magic_test_file"; then
  7399. case $deplibs_check_method in
  7400. "file_magic "*)
  7401. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7402. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7403. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7404. $EGREP "$file_magic_regex" > /dev/null; then
  7405. :
  7406. else
  7407. cat <<_LT_EOF 1>&2
  7408. *** Warning: the command libtool uses to detect shared libraries,
  7409. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7410. *** The result is that libtool may fail to recognize shared libraries
  7411. *** as such. This will affect the creation of libtool libraries that
  7412. *** depend on shared libraries, but programs linked with such libtool
  7413. *** libraries will work regardless of this problem. Nevertheless, you
  7414. *** may want to report the problem to your system manager and/or to
  7415. *** [email protected]
  7416. _LT_EOF
  7417. fi ;;
  7418. esac
  7419. fi
  7420. break
  7421. fi
  7422. done
  7423. IFS=$lt_save_ifs
  7424. MAGIC_CMD=$lt_save_MAGIC_CMD
  7425. ;;
  7426. esac
  7427. fi
  7428. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7429. if test -n "$MAGIC_CMD"; then
  7430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7431. $as_echo "$MAGIC_CMD" >&6; }
  7432. else
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7434. $as_echo "no" >&6; }
  7435. fi
  7436. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7437. if test -n "$ac_tool_prefix"; then
  7438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7439. $as_echo_n "checking for file... " >&6; }
  7440. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7441. $as_echo_n "(cached) " >&6
  7442. else
  7443. case $MAGIC_CMD in
  7444. [\\/*] | ?:[\\/]*)
  7445. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7446. ;;
  7447. *)
  7448. lt_save_MAGIC_CMD=$MAGIC_CMD
  7449. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7450. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7451. for ac_dir in $ac_dummy; do
  7452. IFS=$lt_save_ifs
  7453. test -z "$ac_dir" && ac_dir=.
  7454. if test -f "$ac_dir/file"; then
  7455. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7456. if test -n "$file_magic_test_file"; then
  7457. case $deplibs_check_method in
  7458. "file_magic "*)
  7459. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7460. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7461. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7462. $EGREP "$file_magic_regex" > /dev/null; then
  7463. :
  7464. else
  7465. cat <<_LT_EOF 1>&2
  7466. *** Warning: the command libtool uses to detect shared libraries,
  7467. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7468. *** The result is that libtool may fail to recognize shared libraries
  7469. *** as such. This will affect the creation of libtool libraries that
  7470. *** depend on shared libraries, but programs linked with such libtool
  7471. *** libraries will work regardless of this problem. Nevertheless, you
  7472. *** may want to report the problem to your system manager and/or to
  7473. *** [email protected]
  7474. _LT_EOF
  7475. fi ;;
  7476. esac
  7477. fi
  7478. break
  7479. fi
  7480. done
  7481. IFS=$lt_save_ifs
  7482. MAGIC_CMD=$lt_save_MAGIC_CMD
  7483. ;;
  7484. esac
  7485. fi
  7486. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7487. if test -n "$MAGIC_CMD"; then
  7488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7489. $as_echo "$MAGIC_CMD" >&6; }
  7490. else
  7491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7492. $as_echo "no" >&6; }
  7493. fi
  7494. else
  7495. MAGIC_CMD=:
  7496. fi
  7497. fi
  7498. fi
  7499. ;;
  7500. esac
  7501. # Use C for the default configuration in the libtool script
  7502. lt_save_CC=$CC
  7503. ac_ext=c
  7504. ac_cpp='$CPP $CPPFLAGS'
  7505. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7506. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7507. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7508. # Source file extension for C test sources.
  7509. ac_ext=c
  7510. # Object file extension for compiled C test sources.
  7511. objext=o
  7512. objext=$objext
  7513. # Code to be used in simple compile tests
  7514. lt_simple_compile_test_code="int some_variable = 0;"
  7515. # Code to be used in simple link tests
  7516. lt_simple_link_test_code='int main(){return(0);}'
  7517. # If no C compiler was specified, use CC.
  7518. LTCC=${LTCC-"$CC"}
  7519. # If no C compiler flags were specified, use CFLAGS.
  7520. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7521. # Allow CC to be a program name with arguments.
  7522. compiler=$CC
  7523. # Save the default compiler, since it gets overwritten when the other
  7524. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7525. compiler_DEFAULT=$CC
  7526. # save warnings/boilerplate of simple test code
  7527. ac_outfile=conftest.$ac_objext
  7528. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7529. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7530. _lt_compiler_boilerplate=`cat conftest.err`
  7531. $RM conftest*
  7532. ac_outfile=conftest.$ac_objext
  7533. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7534. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7535. _lt_linker_boilerplate=`cat conftest.err`
  7536. $RM -r conftest*
  7537. if test -n "$compiler"; then
  7538. lt_prog_compiler_no_builtin_flag=
  7539. if test yes = "$GCC"; then
  7540. case $cc_basename in
  7541. nvcc*)
  7542. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7543. *)
  7544. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7545. esac
  7546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7547. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7548. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7549. $as_echo_n "(cached) " >&6
  7550. else
  7551. lt_cv_prog_compiler_rtti_exceptions=no
  7552. ac_outfile=conftest.$ac_objext
  7553. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7554. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7555. # Insert the option either (1) after the last *FLAGS variable, or
  7556. # (2) before a word containing "conftest.", or (3) at the end.
  7557. # Note that $ac_compile itself does not contain backslashes and begins
  7558. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7559. # The option is referenced via a variable to avoid confusing sed.
  7560. lt_compile=`echo "$ac_compile" | $SED \
  7561. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7562. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7563. -e 's:$: $lt_compiler_flag:'`
  7564. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7565. (eval "$lt_compile" 2>conftest.err)
  7566. ac_status=$?
  7567. cat conftest.err >&5
  7568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7569. if (exit $ac_status) && test -s "$ac_outfile"; then
  7570. # The compiler can only warn and ignore the option if not recognized
  7571. # So say no if there are warnings other than the usual output.
  7572. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7573. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7574. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7575. lt_cv_prog_compiler_rtti_exceptions=yes
  7576. fi
  7577. fi
  7578. $RM conftest*
  7579. fi
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7581. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7582. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7583. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7584. else
  7585. :
  7586. fi
  7587. fi
  7588. lt_prog_compiler_wl=
  7589. lt_prog_compiler_pic=
  7590. lt_prog_compiler_static=
  7591. if test yes = "$GCC"; then
  7592. lt_prog_compiler_wl='-Wl,'
  7593. lt_prog_compiler_static='-static'
  7594. case $host_os in
  7595. aix*)
  7596. # All AIX code is PIC.
  7597. if test ia64 = "$host_cpu"; then
  7598. # AIX 5 now supports IA64 processor
  7599. lt_prog_compiler_static='-Bstatic'
  7600. fi
  7601. lt_prog_compiler_pic='-fPIC'
  7602. ;;
  7603. amigaos*)
  7604. case $host_cpu in
  7605. powerpc)
  7606. # see comment about AmigaOS4 .so support
  7607. lt_prog_compiler_pic='-fPIC'
  7608. ;;
  7609. m68k)
  7610. # FIXME: we need at least 68020 code to build shared libraries, but
  7611. # adding the '-m68020' flag to GCC prevents building anything better,
  7612. # like '-m68040'.
  7613. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7614. ;;
  7615. esac
  7616. ;;
  7617. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7618. # PIC is the default for these OSes.
  7619. ;;
  7620. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7621. # This hack is so that the source file can tell whether it is being
  7622. # built for inclusion in a dll (and should export symbols for example).
  7623. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7624. # (--disable-auto-import) libraries
  7625. lt_prog_compiler_pic='-DDLL_EXPORT'
  7626. case $host_os in
  7627. os2*)
  7628. lt_prog_compiler_static='$wl-static'
  7629. ;;
  7630. esac
  7631. ;;
  7632. darwin* | rhapsody*)
  7633. # PIC is the default on this platform
  7634. # Common symbols not allowed in MH_DYLIB files
  7635. lt_prog_compiler_pic='-fno-common'
  7636. ;;
  7637. haiku*)
  7638. # PIC is the default for Haiku.
  7639. # The "-static" flag exists, but is broken.
  7640. lt_prog_compiler_static=
  7641. ;;
  7642. hpux*)
  7643. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7644. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7645. # sets the default TLS model and affects inlining.
  7646. case $host_cpu in
  7647. hppa*64*)
  7648. # +Z the default
  7649. ;;
  7650. *)
  7651. lt_prog_compiler_pic='-fPIC'
  7652. ;;
  7653. esac
  7654. ;;
  7655. interix[3-9]*)
  7656. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7657. # Instead, we relocate shared libraries at runtime.
  7658. ;;
  7659. msdosdjgpp*)
  7660. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7661. # on systems that don't support them.
  7662. lt_prog_compiler_can_build_shared=no
  7663. enable_shared=no
  7664. ;;
  7665. *nto* | *qnx*)
  7666. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7667. # it will coredump.
  7668. lt_prog_compiler_pic='-fPIC -shared'
  7669. ;;
  7670. sysv4*MP*)
  7671. if test -d /usr/nec; then
  7672. lt_prog_compiler_pic=-Kconform_pic
  7673. fi
  7674. ;;
  7675. *)
  7676. lt_prog_compiler_pic='-fPIC'
  7677. ;;
  7678. esac
  7679. case $cc_basename in
  7680. nvcc*) # Cuda Compiler Driver 2.2
  7681. lt_prog_compiler_wl='-Xlinker '
  7682. if test -n "$lt_prog_compiler_pic"; then
  7683. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7684. fi
  7685. ;;
  7686. esac
  7687. else
  7688. # PORTME Check for flag to pass linker flags through the system compiler.
  7689. case $host_os in
  7690. aix*)
  7691. lt_prog_compiler_wl='-Wl,'
  7692. if test ia64 = "$host_cpu"; then
  7693. # AIX 5 now supports IA64 processor
  7694. lt_prog_compiler_static='-Bstatic'
  7695. else
  7696. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7697. fi
  7698. ;;
  7699. darwin* | rhapsody*)
  7700. # PIC is the default on this platform
  7701. # Common symbols not allowed in MH_DYLIB files
  7702. lt_prog_compiler_pic='-fno-common'
  7703. case $cc_basename in
  7704. nagfor*)
  7705. # NAG Fortran compiler
  7706. lt_prog_compiler_wl='-Wl,-Wl,,'
  7707. lt_prog_compiler_pic='-PIC'
  7708. lt_prog_compiler_static='-Bstatic'
  7709. ;;
  7710. esac
  7711. ;;
  7712. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7713. # This hack is so that the source file can tell whether it is being
  7714. # built for inclusion in a dll (and should export symbols for example).
  7715. lt_prog_compiler_pic='-DDLL_EXPORT'
  7716. case $host_os in
  7717. os2*)
  7718. lt_prog_compiler_static='$wl-static'
  7719. ;;
  7720. esac
  7721. ;;
  7722. hpux9* | hpux10* | hpux11*)
  7723. lt_prog_compiler_wl='-Wl,'
  7724. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7725. # not for PA HP-UX.
  7726. case $host_cpu in
  7727. hppa*64*|ia64*)
  7728. # +Z the default
  7729. ;;
  7730. *)
  7731. lt_prog_compiler_pic='+Z'
  7732. ;;
  7733. esac
  7734. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7735. lt_prog_compiler_static='$wl-a ${wl}archive'
  7736. ;;
  7737. irix5* | irix6* | nonstopux*)
  7738. lt_prog_compiler_wl='-Wl,'
  7739. # PIC (with -KPIC) is the default.
  7740. lt_prog_compiler_static='-non_shared'
  7741. ;;
  7742. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7743. case $cc_basename in
  7744. # old Intel for x86_64, which still supported -KPIC.
  7745. ecc*)
  7746. lt_prog_compiler_wl='-Wl,'
  7747. lt_prog_compiler_pic='-KPIC'
  7748. lt_prog_compiler_static='-static'
  7749. ;;
  7750. # icc used to be incompatible with GCC.
  7751. # ICC 10 doesn't accept -KPIC any more.
  7752. icc* | ifort*)
  7753. lt_prog_compiler_wl='-Wl,'
  7754. lt_prog_compiler_pic='-fPIC'
  7755. lt_prog_compiler_static='-static'
  7756. ;;
  7757. # Lahey Fortran 8.1.
  7758. lf95*)
  7759. lt_prog_compiler_wl='-Wl,'
  7760. lt_prog_compiler_pic='--shared'
  7761. lt_prog_compiler_static='--static'
  7762. ;;
  7763. nagfor*)
  7764. # NAG Fortran compiler
  7765. lt_prog_compiler_wl='-Wl,-Wl,,'
  7766. lt_prog_compiler_pic='-PIC'
  7767. lt_prog_compiler_static='-Bstatic'
  7768. ;;
  7769. tcc*)
  7770. # Fabrice Bellard et al's Tiny C Compiler
  7771. lt_prog_compiler_wl='-Wl,'
  7772. lt_prog_compiler_pic='-fPIC'
  7773. lt_prog_compiler_static='-static'
  7774. ;;
  7775. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7776. # Portland Group compilers (*not* the Pentium gcc compiler,
  7777. # which looks to be a dead project)
  7778. lt_prog_compiler_wl='-Wl,'
  7779. lt_prog_compiler_pic='-fpic'
  7780. lt_prog_compiler_static='-Bstatic'
  7781. ;;
  7782. ccc*)
  7783. lt_prog_compiler_wl='-Wl,'
  7784. # All Alpha code is PIC.
  7785. lt_prog_compiler_static='-non_shared'
  7786. ;;
  7787. xl* | bgxl* | bgf* | mpixl*)
  7788. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7789. lt_prog_compiler_wl='-Wl,'
  7790. lt_prog_compiler_pic='-qpic'
  7791. lt_prog_compiler_static='-qstaticlink'
  7792. ;;
  7793. *)
  7794. case `$CC -V 2>&1 | sed 5q` in
  7795. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7796. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7797. lt_prog_compiler_pic='-KPIC'
  7798. lt_prog_compiler_static='-Bstatic'
  7799. lt_prog_compiler_wl=''
  7800. ;;
  7801. *Sun\ F* | *Sun*Fortran*)
  7802. lt_prog_compiler_pic='-KPIC'
  7803. lt_prog_compiler_static='-Bstatic'
  7804. lt_prog_compiler_wl='-Qoption ld '
  7805. ;;
  7806. *Sun\ C*)
  7807. # Sun C 5.9
  7808. lt_prog_compiler_pic='-KPIC'
  7809. lt_prog_compiler_static='-Bstatic'
  7810. lt_prog_compiler_wl='-Wl,'
  7811. ;;
  7812. *Intel*\ [CF]*Compiler*)
  7813. lt_prog_compiler_wl='-Wl,'
  7814. lt_prog_compiler_pic='-fPIC'
  7815. lt_prog_compiler_static='-static'
  7816. ;;
  7817. *Portland\ Group*)
  7818. lt_prog_compiler_wl='-Wl,'
  7819. lt_prog_compiler_pic='-fpic'
  7820. lt_prog_compiler_static='-Bstatic'
  7821. ;;
  7822. esac
  7823. ;;
  7824. esac
  7825. ;;
  7826. newsos6)
  7827. lt_prog_compiler_pic='-KPIC'
  7828. lt_prog_compiler_static='-Bstatic'
  7829. ;;
  7830. *nto* | *qnx*)
  7831. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7832. # it will coredump.
  7833. lt_prog_compiler_pic='-fPIC -shared'
  7834. ;;
  7835. osf3* | osf4* | osf5*)
  7836. lt_prog_compiler_wl='-Wl,'
  7837. # All OSF/1 code is PIC.
  7838. lt_prog_compiler_static='-non_shared'
  7839. ;;
  7840. rdos*)
  7841. lt_prog_compiler_static='-non_shared'
  7842. ;;
  7843. solaris*)
  7844. lt_prog_compiler_pic='-KPIC'
  7845. lt_prog_compiler_static='-Bstatic'
  7846. case $cc_basename in
  7847. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7848. lt_prog_compiler_wl='-Qoption ld ';;
  7849. *)
  7850. lt_prog_compiler_wl='-Wl,';;
  7851. esac
  7852. ;;
  7853. sunos4*)
  7854. lt_prog_compiler_wl='-Qoption ld '
  7855. lt_prog_compiler_pic='-PIC'
  7856. lt_prog_compiler_static='-Bstatic'
  7857. ;;
  7858. sysv4 | sysv4.2uw2* | sysv4.3*)
  7859. lt_prog_compiler_wl='-Wl,'
  7860. lt_prog_compiler_pic='-KPIC'
  7861. lt_prog_compiler_static='-Bstatic'
  7862. ;;
  7863. sysv4*MP*)
  7864. if test -d /usr/nec; then
  7865. lt_prog_compiler_pic='-Kconform_pic'
  7866. lt_prog_compiler_static='-Bstatic'
  7867. fi
  7868. ;;
  7869. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7870. lt_prog_compiler_wl='-Wl,'
  7871. lt_prog_compiler_pic='-KPIC'
  7872. lt_prog_compiler_static='-Bstatic'
  7873. ;;
  7874. unicos*)
  7875. lt_prog_compiler_wl='-Wl,'
  7876. lt_prog_compiler_can_build_shared=no
  7877. ;;
  7878. uts4*)
  7879. lt_prog_compiler_pic='-pic'
  7880. lt_prog_compiler_static='-Bstatic'
  7881. ;;
  7882. *)
  7883. lt_prog_compiler_can_build_shared=no
  7884. ;;
  7885. esac
  7886. fi
  7887. case $host_os in
  7888. # For platforms that do not support PIC, -DPIC is meaningless:
  7889. *djgpp*)
  7890. lt_prog_compiler_pic=
  7891. ;;
  7892. *)
  7893. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7894. ;;
  7895. esac
  7896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7897. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7898. if ${lt_cv_prog_compiler_pic+:} false; then :
  7899. $as_echo_n "(cached) " >&6
  7900. else
  7901. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7902. fi
  7903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7904. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7905. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7906. #
  7907. # Check to make sure the PIC flag actually works.
  7908. #
  7909. if test -n "$lt_prog_compiler_pic"; then
  7910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7911. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7912. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7913. $as_echo_n "(cached) " >&6
  7914. else
  7915. lt_cv_prog_compiler_pic_works=no
  7916. ac_outfile=conftest.$ac_objext
  7917. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7918. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7919. # Insert the option either (1) after the last *FLAGS variable, or
  7920. # (2) before a word containing "conftest.", or (3) at the end.
  7921. # Note that $ac_compile itself does not contain backslashes and begins
  7922. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7923. # The option is referenced via a variable to avoid confusing sed.
  7924. lt_compile=`echo "$ac_compile" | $SED \
  7925. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7926. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7927. -e 's:$: $lt_compiler_flag:'`
  7928. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7929. (eval "$lt_compile" 2>conftest.err)
  7930. ac_status=$?
  7931. cat conftest.err >&5
  7932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7933. if (exit $ac_status) && test -s "$ac_outfile"; then
  7934. # The compiler can only warn and ignore the option if not recognized
  7935. # So say no if there are warnings other than the usual output.
  7936. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7937. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7938. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7939. lt_cv_prog_compiler_pic_works=yes
  7940. fi
  7941. fi
  7942. $RM conftest*
  7943. fi
  7944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7945. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7946. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7947. case $lt_prog_compiler_pic in
  7948. "" | " "*) ;;
  7949. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7950. esac
  7951. else
  7952. lt_prog_compiler_pic=
  7953. lt_prog_compiler_can_build_shared=no
  7954. fi
  7955. fi
  7956. #
  7957. # Check to make sure the static flag actually works.
  7958. #
  7959. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7961. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7962. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7963. $as_echo_n "(cached) " >&6
  7964. else
  7965. lt_cv_prog_compiler_static_works=no
  7966. save_LDFLAGS=$LDFLAGS
  7967. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7968. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7969. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7970. # The linker can only warn and ignore the option if not recognized
  7971. # So say no if there are warnings
  7972. if test -s conftest.err; then
  7973. # Append any errors to the config.log.
  7974. cat conftest.err 1>&5
  7975. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7976. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7977. if diff conftest.exp conftest.er2 >/dev/null; then
  7978. lt_cv_prog_compiler_static_works=yes
  7979. fi
  7980. else
  7981. lt_cv_prog_compiler_static_works=yes
  7982. fi
  7983. fi
  7984. $RM -r conftest*
  7985. LDFLAGS=$save_LDFLAGS
  7986. fi
  7987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7988. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7989. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7990. :
  7991. else
  7992. lt_prog_compiler_static=
  7993. fi
  7994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7995. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7996. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7997. $as_echo_n "(cached) " >&6
  7998. else
  7999. lt_cv_prog_compiler_c_o=no
  8000. $RM -r conftest 2>/dev/null
  8001. mkdir conftest
  8002. cd conftest
  8003. mkdir out
  8004. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8005. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8006. # Insert the option either (1) after the last *FLAGS variable, or
  8007. # (2) before a word containing "conftest.", or (3) at the end.
  8008. # Note that $ac_compile itself does not contain backslashes and begins
  8009. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8010. lt_compile=`echo "$ac_compile" | $SED \
  8011. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8012. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8013. -e 's:$: $lt_compiler_flag:'`
  8014. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8015. (eval "$lt_compile" 2>out/conftest.err)
  8016. ac_status=$?
  8017. cat out/conftest.err >&5
  8018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8019. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8020. then
  8021. # The compiler can only warn and ignore the option if not recognized
  8022. # So say no if there are warnings
  8023. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8024. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8025. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8026. lt_cv_prog_compiler_c_o=yes
  8027. fi
  8028. fi
  8029. chmod u+w . 2>&5
  8030. $RM conftest*
  8031. # SGI C++ compiler will create directory out/ii_files/ for
  8032. # template instantiation
  8033. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8034. $RM out/* && rmdir out
  8035. cd ..
  8036. $RM -r conftest
  8037. $RM conftest*
  8038. fi
  8039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8040. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8042. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8043. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8044. $as_echo_n "(cached) " >&6
  8045. else
  8046. lt_cv_prog_compiler_c_o=no
  8047. $RM -r conftest 2>/dev/null
  8048. mkdir conftest
  8049. cd conftest
  8050. mkdir out
  8051. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8052. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8053. # Insert the option either (1) after the last *FLAGS variable, or
  8054. # (2) before a word containing "conftest.", or (3) at the end.
  8055. # Note that $ac_compile itself does not contain backslashes and begins
  8056. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8057. lt_compile=`echo "$ac_compile" | $SED \
  8058. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8059. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8060. -e 's:$: $lt_compiler_flag:'`
  8061. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8062. (eval "$lt_compile" 2>out/conftest.err)
  8063. ac_status=$?
  8064. cat out/conftest.err >&5
  8065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8066. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8067. then
  8068. # The compiler can only warn and ignore the option if not recognized
  8069. # So say no if there are warnings
  8070. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8071. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8072. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8073. lt_cv_prog_compiler_c_o=yes
  8074. fi
  8075. fi
  8076. chmod u+w . 2>&5
  8077. $RM conftest*
  8078. # SGI C++ compiler will create directory out/ii_files/ for
  8079. # template instantiation
  8080. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8081. $RM out/* && rmdir out
  8082. cd ..
  8083. $RM -r conftest
  8084. $RM conftest*
  8085. fi
  8086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8087. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8088. hard_links=nottested
  8089. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8090. # do not overwrite the value of need_locks provided by the user
  8091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8092. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8093. hard_links=yes
  8094. $RM conftest*
  8095. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8096. touch conftest.a
  8097. ln conftest.a conftest.b 2>&5 || hard_links=no
  8098. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8100. $as_echo "$hard_links" >&6; }
  8101. if test no = "$hard_links"; then
  8102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8103. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8104. need_locks=warn
  8105. fi
  8106. else
  8107. need_locks=no
  8108. fi
  8109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8110. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8111. runpath_var=
  8112. allow_undefined_flag=
  8113. always_export_symbols=no
  8114. archive_cmds=
  8115. archive_expsym_cmds=
  8116. compiler_needs_object=no
  8117. enable_shared_with_static_runtimes=no
  8118. export_dynamic_flag_spec=
  8119. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8120. hardcode_automatic=no
  8121. hardcode_direct=no
  8122. hardcode_direct_absolute=no
  8123. hardcode_libdir_flag_spec=
  8124. hardcode_libdir_separator=
  8125. hardcode_minus_L=no
  8126. hardcode_shlibpath_var=unsupported
  8127. inherit_rpath=no
  8128. link_all_deplibs=unknown
  8129. module_cmds=
  8130. module_expsym_cmds=
  8131. old_archive_from_new_cmds=
  8132. old_archive_from_expsyms_cmds=
  8133. thread_safe_flag_spec=
  8134. whole_archive_flag_spec=
  8135. # include_expsyms should be a list of space-separated symbols to be *always*
  8136. # included in the symbol list
  8137. include_expsyms=
  8138. # exclude_expsyms can be an extended regexp of symbols to exclude
  8139. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8140. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8141. # as well as any symbol that contains 'd'.
  8142. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8143. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8144. # platforms (ab)use it in PIC code, but their linkers get confused if
  8145. # the symbol is explicitly referenced. Since portable code cannot
  8146. # rely on this symbol name, it's probably fine to never include it in
  8147. # preloaded symbol tables.
  8148. # Exclude shared library initialization/finalization symbols.
  8149. extract_expsyms_cmds=
  8150. case $host_os in
  8151. cygwin* | mingw* | pw32* | cegcc*)
  8152. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8153. # When not using gcc, we currently assume that we are using
  8154. # Microsoft Visual C++.
  8155. if test yes != "$GCC"; then
  8156. with_gnu_ld=no
  8157. fi
  8158. ;;
  8159. interix*)
  8160. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8161. with_gnu_ld=yes
  8162. ;;
  8163. openbsd* | bitrig*)
  8164. with_gnu_ld=no
  8165. ;;
  8166. esac
  8167. ld_shlibs=yes
  8168. # On some targets, GNU ld is compatible enough with the native linker
  8169. # that we're better off using the native interface for both.
  8170. lt_use_gnu_ld_interface=no
  8171. if test yes = "$with_gnu_ld"; then
  8172. case $host_os in
  8173. aix*)
  8174. # The AIX port of GNU ld has always aspired to compatibility
  8175. # with the native linker. However, as the warning in the GNU ld
  8176. # block says, versions before 2.19.5* couldn't really create working
  8177. # shared libraries, regardless of the interface used.
  8178. case `$LD -v 2>&1` in
  8179. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8180. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8181. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8182. *)
  8183. lt_use_gnu_ld_interface=yes
  8184. ;;
  8185. esac
  8186. ;;
  8187. *)
  8188. lt_use_gnu_ld_interface=yes
  8189. ;;
  8190. esac
  8191. fi
  8192. if test yes = "$lt_use_gnu_ld_interface"; then
  8193. # If archive_cmds runs LD, not CC, wlarc should be empty
  8194. wlarc='$wl'
  8195. # Set some defaults for GNU ld with shared library support. These
  8196. # are reset later if shared libraries are not supported. Putting them
  8197. # here allows them to be overridden if necessary.
  8198. runpath_var=LD_RUN_PATH
  8199. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8200. export_dynamic_flag_spec='$wl--export-dynamic'
  8201. # ancient GNU ld didn't support --whole-archive et. al.
  8202. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8203. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8204. else
  8205. whole_archive_flag_spec=
  8206. fi
  8207. supports_anon_versioning=no
  8208. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8209. *GNU\ gold*) supports_anon_versioning=yes ;;
  8210. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8211. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8212. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8213. *\ 2.11.*) ;; # other 2.11 versions
  8214. *) supports_anon_versioning=yes ;;
  8215. esac
  8216. # See if GNU ld supports shared libraries.
  8217. case $host_os in
  8218. aix[3-9]*)
  8219. # On AIX/PPC, the GNU linker is very broken
  8220. if test ia64 != "$host_cpu"; then
  8221. ld_shlibs=no
  8222. cat <<_LT_EOF 1>&2
  8223. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8224. *** to be unable to reliably create shared libraries on AIX.
  8225. *** Therefore, libtool is disabling shared libraries support. If you
  8226. *** really care for shared libraries, you may want to install binutils
  8227. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8228. *** You will then need to restart the configuration process.
  8229. _LT_EOF
  8230. fi
  8231. ;;
  8232. amigaos*)
  8233. case $host_cpu in
  8234. powerpc)
  8235. # see comment about AmigaOS4 .so support
  8236. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8237. archive_expsym_cmds=''
  8238. ;;
  8239. m68k)
  8240. 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)'
  8241. hardcode_libdir_flag_spec='-L$libdir'
  8242. hardcode_minus_L=yes
  8243. ;;
  8244. esac
  8245. ;;
  8246. beos*)
  8247. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8248. allow_undefined_flag=unsupported
  8249. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8250. # support --undefined. This deserves some investigation. FIXME
  8251. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8252. else
  8253. ld_shlibs=no
  8254. fi
  8255. ;;
  8256. cygwin* | mingw* | pw32* | cegcc*)
  8257. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8258. # as there is no search path for DLLs.
  8259. hardcode_libdir_flag_spec='-L$libdir'
  8260. export_dynamic_flag_spec='$wl--export-all-symbols'
  8261. allow_undefined_flag=unsupported
  8262. always_export_symbols=no
  8263. enable_shared_with_static_runtimes=yes
  8264. 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'
  8265. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8266. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8267. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8268. # If the export-symbols file already is a .def file, use it as
  8269. # is; otherwise, prepend EXPORTS...
  8270. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8271. cp $export_symbols $output_objdir/$soname.def;
  8272. else
  8273. echo EXPORTS > $output_objdir/$soname.def;
  8274. cat $export_symbols >> $output_objdir/$soname.def;
  8275. fi~
  8276. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8277. else
  8278. ld_shlibs=no
  8279. fi
  8280. ;;
  8281. haiku*)
  8282. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8283. link_all_deplibs=yes
  8284. ;;
  8285. os2*)
  8286. hardcode_libdir_flag_spec='-L$libdir'
  8287. hardcode_minus_L=yes
  8288. allow_undefined_flag=unsupported
  8289. shrext_cmds=.dll
  8290. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8291. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8292. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8293. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8294. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8295. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8296. emximp -o $lib $output_objdir/$libname.def'
  8297. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8298. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8299. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8300. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8301. prefix_cmds="$SED"~
  8302. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8303. prefix_cmds="$prefix_cmds -e 1d";
  8304. fi~
  8305. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8306. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8307. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8308. emximp -o $lib $output_objdir/$libname.def'
  8309. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8310. enable_shared_with_static_runtimes=yes
  8311. ;;
  8312. interix[3-9]*)
  8313. hardcode_direct=no
  8314. hardcode_shlibpath_var=no
  8315. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8316. export_dynamic_flag_spec='$wl-E'
  8317. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8318. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8319. # default) and relocated if they conflict, which is a slow very memory
  8320. # consuming and fragmenting process. To avoid this, we pick a random,
  8321. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8322. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8323. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8324. 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'
  8325. ;;
  8326. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8327. tmp_diet=no
  8328. if test linux-dietlibc = "$host_os"; then
  8329. case $cc_basename in
  8330. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8331. esac
  8332. fi
  8333. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8334. && test no = "$tmp_diet"
  8335. then
  8336. tmp_addflag=' $pic_flag'
  8337. tmp_sharedflag='-shared'
  8338. case $cc_basename,$host_cpu in
  8339. pgcc*) # Portland Group C compiler
  8340. 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'
  8341. tmp_addflag=' $pic_flag'
  8342. ;;
  8343. pgf77* | pgf90* | pgf95* | pgfortran*)
  8344. # Portland Group f77 and f90 compilers
  8345. 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'
  8346. tmp_addflag=' $pic_flag -Mnomain' ;;
  8347. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8348. tmp_addflag=' -i_dynamic' ;;
  8349. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8350. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8351. ifc* | ifort*) # Intel Fortran compiler
  8352. tmp_addflag=' -nofor_main' ;;
  8353. lf95*) # Lahey Fortran 8.1
  8354. whole_archive_flag_spec=
  8355. tmp_sharedflag='--shared' ;;
  8356. nagfor*) # NAGFOR 5.3
  8357. tmp_sharedflag='-Wl,-shared' ;;
  8358. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8359. tmp_sharedflag='-qmkshrobj'
  8360. tmp_addflag= ;;
  8361. nvcc*) # Cuda Compiler Driver 2.2
  8362. 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'
  8363. compiler_needs_object=yes
  8364. ;;
  8365. esac
  8366. case `$CC -V 2>&1 | sed 5q` in
  8367. *Sun\ C*) # Sun C 5.9
  8368. 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'
  8369. compiler_needs_object=yes
  8370. tmp_sharedflag='-G' ;;
  8371. *Sun\ F*) # Sun Fortran 8.3
  8372. tmp_sharedflag='-G' ;;
  8373. esac
  8374. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8375. if test yes = "$supports_anon_versioning"; then
  8376. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8377. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8378. echo "local: *; };" >> $output_objdir/$libname.ver~
  8379. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8380. fi
  8381. case $cc_basename in
  8382. tcc*)
  8383. export_dynamic_flag_spec='-rdynamic'
  8384. ;;
  8385. xlf* | bgf* | bgxlf* | mpixlf*)
  8386. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8387. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8388. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8389. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8390. if test yes = "$supports_anon_versioning"; then
  8391. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8392. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8393. echo "local: *; };" >> $output_objdir/$libname.ver~
  8394. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8395. fi
  8396. ;;
  8397. esac
  8398. else
  8399. ld_shlibs=no
  8400. fi
  8401. ;;
  8402. netbsd*)
  8403. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8404. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8405. wlarc=
  8406. else
  8407. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8408. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8409. fi
  8410. ;;
  8411. solaris*)
  8412. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8413. ld_shlibs=no
  8414. cat <<_LT_EOF 1>&2
  8415. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8416. *** create shared libraries on Solaris systems. Therefore, libtool
  8417. *** is disabling shared libraries support. We urge you to upgrade GNU
  8418. *** binutils to release 2.9.1 or newer. Another option is to modify
  8419. *** your PATH or compiler configuration so that the native linker is
  8420. *** used, and then restart.
  8421. _LT_EOF
  8422. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8423. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8424. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8425. else
  8426. ld_shlibs=no
  8427. fi
  8428. ;;
  8429. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8430. case `$LD -v 2>&1` in
  8431. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8432. ld_shlibs=no
  8433. cat <<_LT_EOF 1>&2
  8434. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8435. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8436. *** is disabling shared libraries support. We urge you to upgrade GNU
  8437. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8438. *** your PATH or compiler configuration so that the native linker is
  8439. *** used, and then restart.
  8440. _LT_EOF
  8441. ;;
  8442. *)
  8443. # For security reasons, it is highly recommended that you always
  8444. # use absolute paths for naming shared libraries, and exclude the
  8445. # DT_RUNPATH tag from executables and libraries. But doing so
  8446. # requires that you compile everything twice, which is a pain.
  8447. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8448. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8449. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8450. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8451. else
  8452. ld_shlibs=no
  8453. fi
  8454. ;;
  8455. esac
  8456. ;;
  8457. sunos4*)
  8458. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8459. wlarc=
  8460. hardcode_direct=yes
  8461. hardcode_shlibpath_var=no
  8462. ;;
  8463. *)
  8464. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8465. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8466. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8467. else
  8468. ld_shlibs=no
  8469. fi
  8470. ;;
  8471. esac
  8472. if test no = "$ld_shlibs"; then
  8473. runpath_var=
  8474. hardcode_libdir_flag_spec=
  8475. export_dynamic_flag_spec=
  8476. whole_archive_flag_spec=
  8477. fi
  8478. else
  8479. # PORTME fill in a description of your system's linker (not GNU ld)
  8480. case $host_os in
  8481. aix3*)
  8482. allow_undefined_flag=unsupported
  8483. always_export_symbols=yes
  8484. 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'
  8485. # Note: this linker hardcodes the directories in LIBPATH if there
  8486. # are no directories specified by -L.
  8487. hardcode_minus_L=yes
  8488. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8489. # Neither direct hardcoding nor static linking is supported with a
  8490. # broken collect2.
  8491. hardcode_direct=unsupported
  8492. fi
  8493. ;;
  8494. aix[4-9]*)
  8495. if test ia64 = "$host_cpu"; then
  8496. # On IA64, the linker does run time linking by default, so we don't
  8497. # have to do anything special.
  8498. aix_use_runtimelinking=no
  8499. exp_sym_flag='-Bexport'
  8500. no_entry_flag=
  8501. else
  8502. # If we're using GNU nm, then we don't want the "-C" option.
  8503. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8504. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8505. # weak defined symbols like other global defined symbols, whereas
  8506. # GNU nm marks them as "W".
  8507. # While the 'weak' keyword is ignored in the Export File, we need
  8508. # it in the Import File for the 'aix-soname' feature, so we have
  8509. # to replace the "-B" option with "-P" for AIX nm.
  8510. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8511. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8512. else
  8513. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8514. fi
  8515. aix_use_runtimelinking=no
  8516. # Test if we are trying to use run time linking or normal
  8517. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8518. # have runtime linking enabled, and use it for executables.
  8519. # For shared libraries, we enable/disable runtime linking
  8520. # depending on the kind of the shared library created -
  8521. # when "with_aix_soname,aix_use_runtimelinking" is:
  8522. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8523. # "aix,yes" lib.so shared, rtl:yes, for executables
  8524. # lib.a static archive
  8525. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8526. # lib.a(lib.so.V) shared, rtl:no, for executables
  8527. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8528. # lib.a(lib.so.V) shared, rtl:no
  8529. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8530. # lib.a static archive
  8531. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8532. for ld_flag in $LDFLAGS; do
  8533. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8534. aix_use_runtimelinking=yes
  8535. break
  8536. fi
  8537. done
  8538. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8539. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8540. # so we don't have lib.a shared libs to link our executables.
  8541. # We have to force runtime linking in this case.
  8542. aix_use_runtimelinking=yes
  8543. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8544. fi
  8545. ;;
  8546. esac
  8547. exp_sym_flag='-bexport'
  8548. no_entry_flag='-bnoentry'
  8549. fi
  8550. # When large executables or shared objects are built, AIX ld can
  8551. # have problems creating the table of contents. If linking a library
  8552. # or program results in "error TOC overflow" add -mminimal-toc to
  8553. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8554. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8555. archive_cmds=''
  8556. hardcode_direct=yes
  8557. hardcode_direct_absolute=yes
  8558. hardcode_libdir_separator=':'
  8559. link_all_deplibs=yes
  8560. file_list_spec='$wl-f,'
  8561. case $with_aix_soname,$aix_use_runtimelinking in
  8562. aix,*) ;; # traditional, no import file
  8563. svr4,* | *,yes) # use import file
  8564. # The Import File defines what to hardcode.
  8565. hardcode_direct=no
  8566. hardcode_direct_absolute=no
  8567. ;;
  8568. esac
  8569. if test yes = "$GCC"; then
  8570. case $host_os in aix4.[012]|aix4.[012].*)
  8571. # We only want to do this on AIX 4.2 and lower, the check
  8572. # below for broken collect2 doesn't work under 4.3+
  8573. collect2name=`$CC -print-prog-name=collect2`
  8574. if test -f "$collect2name" &&
  8575. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8576. then
  8577. # We have reworked collect2
  8578. :
  8579. else
  8580. # We have old collect2
  8581. hardcode_direct=unsupported
  8582. # It fails to find uninstalled libraries when the uninstalled
  8583. # path is not listed in the libpath. Setting hardcode_minus_L
  8584. # to unsupported forces relinking
  8585. hardcode_minus_L=yes
  8586. hardcode_libdir_flag_spec='-L$libdir'
  8587. hardcode_libdir_separator=
  8588. fi
  8589. ;;
  8590. esac
  8591. shared_flag='-shared'
  8592. if test yes = "$aix_use_runtimelinking"; then
  8593. shared_flag="$shared_flag "'$wl-G'
  8594. fi
  8595. # Need to ensure runtime linking is disabled for the traditional
  8596. # shared library, or the linker may eventually find shared libraries
  8597. # /with/ Import File - we do not want to mix them.
  8598. shared_flag_aix='-shared'
  8599. shared_flag_svr4='-shared $wl-G'
  8600. else
  8601. # not using gcc
  8602. if test ia64 = "$host_cpu"; then
  8603. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8604. # chokes on -Wl,-G. The following line is correct:
  8605. shared_flag='-G'
  8606. else
  8607. if test yes = "$aix_use_runtimelinking"; then
  8608. shared_flag='$wl-G'
  8609. else
  8610. shared_flag='$wl-bM:SRE'
  8611. fi
  8612. shared_flag_aix='$wl-bM:SRE'
  8613. shared_flag_svr4='$wl-G'
  8614. fi
  8615. fi
  8616. export_dynamic_flag_spec='$wl-bexpall'
  8617. # It seems that -bexpall does not export symbols beginning with
  8618. # underscore (_), so it is better to generate a list of symbols to export.
  8619. always_export_symbols=yes
  8620. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8621. # Warning - without using the other runtime loading flags (-brtl),
  8622. # -berok will link without error, but may produce a broken library.
  8623. allow_undefined_flag='-berok'
  8624. # Determine the default libpath from the value encoded in an
  8625. # empty executable.
  8626. if test set = "${lt_cv_aix_libpath+set}"; then
  8627. aix_libpath=$lt_cv_aix_libpath
  8628. else
  8629. if ${lt_cv_aix_libpath_+:} false; then :
  8630. $as_echo_n "(cached) " >&6
  8631. else
  8632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8633. /* end confdefs.h. */
  8634. int
  8635. main ()
  8636. {
  8637. ;
  8638. return 0;
  8639. }
  8640. _ACEOF
  8641. if ac_fn_c_try_link "$LINENO"; then :
  8642. lt_aix_libpath_sed='
  8643. /Import File Strings/,/^$/ {
  8644. /^0/ {
  8645. s/^0 *\([^ ]*\) *$/\1/
  8646. p
  8647. }
  8648. }'
  8649. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8650. # Check for a 64-bit object if we didn't find anything.
  8651. if test -z "$lt_cv_aix_libpath_"; then
  8652. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8653. fi
  8654. fi
  8655. rm -f core conftest.err conftest.$ac_objext \
  8656. conftest$ac_exeext conftest.$ac_ext
  8657. if test -z "$lt_cv_aix_libpath_"; then
  8658. lt_cv_aix_libpath_=/usr/lib:/lib
  8659. fi
  8660. fi
  8661. aix_libpath=$lt_cv_aix_libpath_
  8662. fi
  8663. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8664. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8665. else
  8666. if test ia64 = "$host_cpu"; then
  8667. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8668. allow_undefined_flag="-z nodefs"
  8669. 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"
  8670. else
  8671. # Determine the default libpath from the value encoded in an
  8672. # empty executable.
  8673. if test set = "${lt_cv_aix_libpath+set}"; then
  8674. aix_libpath=$lt_cv_aix_libpath
  8675. else
  8676. if ${lt_cv_aix_libpath_+:} false; then :
  8677. $as_echo_n "(cached) " >&6
  8678. else
  8679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8680. /* end confdefs.h. */
  8681. int
  8682. main ()
  8683. {
  8684. ;
  8685. return 0;
  8686. }
  8687. _ACEOF
  8688. if ac_fn_c_try_link "$LINENO"; then :
  8689. lt_aix_libpath_sed='
  8690. /Import File Strings/,/^$/ {
  8691. /^0/ {
  8692. s/^0 *\([^ ]*\) *$/\1/
  8693. p
  8694. }
  8695. }'
  8696. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8697. # Check for a 64-bit object if we didn't find anything.
  8698. if test -z "$lt_cv_aix_libpath_"; then
  8699. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8700. fi
  8701. fi
  8702. rm -f core conftest.err conftest.$ac_objext \
  8703. conftest$ac_exeext conftest.$ac_ext
  8704. if test -z "$lt_cv_aix_libpath_"; then
  8705. lt_cv_aix_libpath_=/usr/lib:/lib
  8706. fi
  8707. fi
  8708. aix_libpath=$lt_cv_aix_libpath_
  8709. fi
  8710. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8711. # Warning - without using the other run time loading flags,
  8712. # -berok will link without error, but may produce a broken library.
  8713. no_undefined_flag=' $wl-bernotok'
  8714. allow_undefined_flag=' $wl-berok'
  8715. if test yes = "$with_gnu_ld"; then
  8716. # We only use this code for GNU lds that support --whole-archive.
  8717. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8718. else
  8719. # Exported symbols can be pulled into shared objects from archives
  8720. whole_archive_flag_spec='$convenience'
  8721. fi
  8722. archive_cmds_need_lc=yes
  8723. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8724. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8725. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8726. if test svr4 != "$with_aix_soname"; then
  8727. # This is similar to how AIX traditionally builds its shared libraries.
  8728. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8729. fi
  8730. if test aix != "$with_aix_soname"; then
  8731. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8732. else
  8733. # used by -dlpreopen to get the symbols
  8734. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8735. fi
  8736. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8737. fi
  8738. fi
  8739. ;;
  8740. amigaos*)
  8741. case $host_cpu in
  8742. powerpc)
  8743. # see comment about AmigaOS4 .so support
  8744. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8745. archive_expsym_cmds=''
  8746. ;;
  8747. m68k)
  8748. 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)'
  8749. hardcode_libdir_flag_spec='-L$libdir'
  8750. hardcode_minus_L=yes
  8751. ;;
  8752. esac
  8753. ;;
  8754. bsdi[45]*)
  8755. export_dynamic_flag_spec=-rdynamic
  8756. ;;
  8757. cygwin* | mingw* | pw32* | cegcc*)
  8758. # When not using gcc, we currently assume that we are using
  8759. # Microsoft Visual C++.
  8760. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8761. # no search path for DLLs.
  8762. case $cc_basename in
  8763. cl*)
  8764. # Native MSVC
  8765. hardcode_libdir_flag_spec=' '
  8766. allow_undefined_flag=unsupported
  8767. always_export_symbols=yes
  8768. file_list_spec='@'
  8769. # Tell ltmain to make .lib files, not .a files.
  8770. libext=lib
  8771. # Tell ltmain to make .dll files, not .so files.
  8772. shrext_cmds=.dll
  8773. # FIXME: Setting linknames here is a bad hack.
  8774. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8775. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8776. cp "$export_symbols" "$output_objdir/$soname.def";
  8777. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8778. else
  8779. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8780. fi~
  8781. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8782. linknames='
  8783. # The linker will not automatically build a static lib if we build a DLL.
  8784. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8785. enable_shared_with_static_runtimes=yes
  8786. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8787. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8788. # Don't use ranlib
  8789. old_postinstall_cmds='chmod 644 $oldlib'
  8790. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8791. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8792. case $lt_outputfile in
  8793. *.exe|*.EXE) ;;
  8794. *)
  8795. lt_outputfile=$lt_outputfile.exe
  8796. lt_tool_outputfile=$lt_tool_outputfile.exe
  8797. ;;
  8798. esac~
  8799. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8800. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8801. $RM "$lt_outputfile.manifest";
  8802. fi'
  8803. ;;
  8804. *)
  8805. # Assume MSVC wrapper
  8806. hardcode_libdir_flag_spec=' '
  8807. allow_undefined_flag=unsupported
  8808. # Tell ltmain to make .lib files, not .a files.
  8809. libext=lib
  8810. # Tell ltmain to make .dll files, not .so files.
  8811. shrext_cmds=.dll
  8812. # FIXME: Setting linknames here is a bad hack.
  8813. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8814. # The linker will automatically build a .lib file if we build a DLL.
  8815. old_archive_from_new_cmds='true'
  8816. # FIXME: Should let the user specify the lib program.
  8817. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8818. enable_shared_with_static_runtimes=yes
  8819. ;;
  8820. esac
  8821. ;;
  8822. darwin* | rhapsody*)
  8823. archive_cmds_need_lc=no
  8824. hardcode_direct=no
  8825. hardcode_automatic=yes
  8826. hardcode_shlibpath_var=unsupported
  8827. if test yes = "$lt_cv_ld_force_load"; then
  8828. 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\"`'
  8829. else
  8830. whole_archive_flag_spec=''
  8831. fi
  8832. link_all_deplibs=yes
  8833. allow_undefined_flag=$_lt_dar_allow_undefined
  8834. case $cc_basename in
  8835. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8836. *) _lt_dar_can_shared=$GCC ;;
  8837. esac
  8838. if test yes = "$_lt_dar_can_shared"; then
  8839. output_verbose_link_cmd=func_echo_all
  8840. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8841. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8842. 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"
  8843. 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"
  8844. else
  8845. ld_shlibs=no
  8846. fi
  8847. ;;
  8848. dgux*)
  8849. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8850. hardcode_libdir_flag_spec='-L$libdir'
  8851. hardcode_shlibpath_var=no
  8852. ;;
  8853. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8854. # support. Future versions do this automatically, but an explicit c++rt0.o
  8855. # does not break anything, and helps significantly (at the cost of a little
  8856. # extra space).
  8857. freebsd2.2*)
  8858. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8859. hardcode_libdir_flag_spec='-R$libdir'
  8860. hardcode_direct=yes
  8861. hardcode_shlibpath_var=no
  8862. ;;
  8863. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8864. freebsd2.*)
  8865. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8866. hardcode_direct=yes
  8867. hardcode_minus_L=yes
  8868. hardcode_shlibpath_var=no
  8869. ;;
  8870. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8871. freebsd* | dragonfly*)
  8872. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8873. hardcode_libdir_flag_spec='-R$libdir'
  8874. hardcode_direct=yes
  8875. hardcode_shlibpath_var=no
  8876. ;;
  8877. hpux9*)
  8878. if test yes = "$GCC"; then
  8879. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8880. else
  8881. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8882. fi
  8883. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8884. hardcode_libdir_separator=:
  8885. hardcode_direct=yes
  8886. # hardcode_minus_L: Not really in the search PATH,
  8887. # but as the default location of the library.
  8888. hardcode_minus_L=yes
  8889. export_dynamic_flag_spec='$wl-E'
  8890. ;;
  8891. hpux10*)
  8892. if test yes,no = "$GCC,$with_gnu_ld"; then
  8893. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8894. else
  8895. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8896. fi
  8897. if test no = "$with_gnu_ld"; then
  8898. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8899. hardcode_libdir_separator=:
  8900. hardcode_direct=yes
  8901. hardcode_direct_absolute=yes
  8902. export_dynamic_flag_spec='$wl-E'
  8903. # hardcode_minus_L: Not really in the search PATH,
  8904. # but as the default location of the library.
  8905. hardcode_minus_L=yes
  8906. fi
  8907. ;;
  8908. hpux11*)
  8909. if test yes,no = "$GCC,$with_gnu_ld"; then
  8910. case $host_cpu in
  8911. hppa*64*)
  8912. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8913. ;;
  8914. ia64*)
  8915. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8916. ;;
  8917. *)
  8918. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8919. ;;
  8920. esac
  8921. else
  8922. case $host_cpu in
  8923. hppa*64*)
  8924. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8925. ;;
  8926. ia64*)
  8927. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8928. ;;
  8929. *)
  8930. # Older versions of the 11.00 compiler do not understand -b yet
  8931. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8933. $as_echo_n "checking if $CC understands -b... " >&6; }
  8934. if ${lt_cv_prog_compiler__b+:} false; then :
  8935. $as_echo_n "(cached) " >&6
  8936. else
  8937. lt_cv_prog_compiler__b=no
  8938. save_LDFLAGS=$LDFLAGS
  8939. LDFLAGS="$LDFLAGS -b"
  8940. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8941. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8942. # The linker can only warn and ignore the option if not recognized
  8943. # So say no if there are warnings
  8944. if test -s conftest.err; then
  8945. # Append any errors to the config.log.
  8946. cat conftest.err 1>&5
  8947. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8948. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8949. if diff conftest.exp conftest.er2 >/dev/null; then
  8950. lt_cv_prog_compiler__b=yes
  8951. fi
  8952. else
  8953. lt_cv_prog_compiler__b=yes
  8954. fi
  8955. fi
  8956. $RM -r conftest*
  8957. LDFLAGS=$save_LDFLAGS
  8958. fi
  8959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8960. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8961. if test yes = "$lt_cv_prog_compiler__b"; then
  8962. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8963. else
  8964. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8965. fi
  8966. ;;
  8967. esac
  8968. fi
  8969. if test no = "$with_gnu_ld"; then
  8970. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8971. hardcode_libdir_separator=:
  8972. case $host_cpu in
  8973. hppa*64*|ia64*)
  8974. hardcode_direct=no
  8975. hardcode_shlibpath_var=no
  8976. ;;
  8977. *)
  8978. hardcode_direct=yes
  8979. hardcode_direct_absolute=yes
  8980. export_dynamic_flag_spec='$wl-E'
  8981. # hardcode_minus_L: Not really in the search PATH,
  8982. # but as the default location of the library.
  8983. hardcode_minus_L=yes
  8984. ;;
  8985. esac
  8986. fi
  8987. ;;
  8988. irix5* | irix6* | nonstopux*)
  8989. if test yes = "$GCC"; then
  8990. 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'
  8991. # Try to use the -exported_symbol ld option, if it does not
  8992. # work, assume that -exports_file does not work either and
  8993. # implicitly export all symbols.
  8994. # This should be the same for all languages, so no per-tag cache variable.
  8995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8996. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8997. if ${lt_cv_irix_exported_symbol+:} false; then :
  8998. $as_echo_n "(cached) " >&6
  8999. else
  9000. save_LDFLAGS=$LDFLAGS
  9001. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9003. /* end confdefs.h. */
  9004. int foo (void) { return 0; }
  9005. _ACEOF
  9006. if ac_fn_c_try_link "$LINENO"; then :
  9007. lt_cv_irix_exported_symbol=yes
  9008. else
  9009. lt_cv_irix_exported_symbol=no
  9010. fi
  9011. rm -f core conftest.err conftest.$ac_objext \
  9012. conftest$ac_exeext conftest.$ac_ext
  9013. LDFLAGS=$save_LDFLAGS
  9014. fi
  9015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9016. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9017. if test yes = "$lt_cv_irix_exported_symbol"; then
  9018. 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'
  9019. fi
  9020. else
  9021. 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'
  9022. 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'
  9023. fi
  9024. archive_cmds_need_lc='no'
  9025. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9026. hardcode_libdir_separator=:
  9027. inherit_rpath=yes
  9028. link_all_deplibs=yes
  9029. ;;
  9030. linux*)
  9031. case $cc_basename in
  9032. tcc*)
  9033. # Fabrice Bellard et al's Tiny C Compiler
  9034. ld_shlibs=yes
  9035. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9036. ;;
  9037. esac
  9038. ;;
  9039. netbsd*)
  9040. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9041. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9042. else
  9043. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9044. fi
  9045. hardcode_libdir_flag_spec='-R$libdir'
  9046. hardcode_direct=yes
  9047. hardcode_shlibpath_var=no
  9048. ;;
  9049. newsos6)
  9050. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9051. hardcode_direct=yes
  9052. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9053. hardcode_libdir_separator=:
  9054. hardcode_shlibpath_var=no
  9055. ;;
  9056. *nto* | *qnx*)
  9057. ;;
  9058. openbsd* | bitrig*)
  9059. if test -f /usr/libexec/ld.so; then
  9060. hardcode_direct=yes
  9061. hardcode_shlibpath_var=no
  9062. hardcode_direct_absolute=yes
  9063. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9064. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9065. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9066. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9067. export_dynamic_flag_spec='$wl-E'
  9068. else
  9069. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9070. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9071. fi
  9072. else
  9073. ld_shlibs=no
  9074. fi
  9075. ;;
  9076. os2*)
  9077. hardcode_libdir_flag_spec='-L$libdir'
  9078. hardcode_minus_L=yes
  9079. allow_undefined_flag=unsupported
  9080. shrext_cmds=.dll
  9081. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9082. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9083. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9084. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9085. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9086. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9087. emximp -o $lib $output_objdir/$libname.def'
  9088. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9089. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9090. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9091. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9092. prefix_cmds="$SED"~
  9093. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9094. prefix_cmds="$prefix_cmds -e 1d";
  9095. fi~
  9096. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9097. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9098. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9099. emximp -o $lib $output_objdir/$libname.def'
  9100. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9101. enable_shared_with_static_runtimes=yes
  9102. ;;
  9103. osf3*)
  9104. if test yes = "$GCC"; then
  9105. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9106. 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'
  9107. else
  9108. allow_undefined_flag=' -expect_unresolved \*'
  9109. 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'
  9110. fi
  9111. archive_cmds_need_lc='no'
  9112. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9113. hardcode_libdir_separator=:
  9114. ;;
  9115. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9116. if test yes = "$GCC"; then
  9117. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9118. 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'
  9119. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9120. else
  9121. allow_undefined_flag=' -expect_unresolved \*'
  9122. 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'
  9123. 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~
  9124. $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'
  9125. # Both c and cxx compiler support -rpath directly
  9126. hardcode_libdir_flag_spec='-rpath $libdir'
  9127. fi
  9128. archive_cmds_need_lc='no'
  9129. hardcode_libdir_separator=:
  9130. ;;
  9131. solaris*)
  9132. no_undefined_flag=' -z defs'
  9133. if test yes = "$GCC"; then
  9134. wlarc='$wl'
  9135. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9136. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9137. $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'
  9138. else
  9139. case `$CC -V 2>&1` in
  9140. *"Compilers 5.0"*)
  9141. wlarc=''
  9142. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9143. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9144. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9145. ;;
  9146. *)
  9147. wlarc='$wl'
  9148. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9149. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9150. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9151. ;;
  9152. esac
  9153. fi
  9154. hardcode_libdir_flag_spec='-R$libdir'
  9155. hardcode_shlibpath_var=no
  9156. case $host_os in
  9157. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9158. *)
  9159. # The compiler driver will combine and reorder linker options,
  9160. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9161. # but is careful enough not to reorder.
  9162. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9163. if test yes = "$GCC"; then
  9164. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9165. else
  9166. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9167. fi
  9168. ;;
  9169. esac
  9170. link_all_deplibs=yes
  9171. ;;
  9172. sunos4*)
  9173. if test sequent = "$host_vendor"; then
  9174. # Use $CC to link under sequent, because it throws in some extra .o
  9175. # files that make .init and .fini sections work.
  9176. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9177. else
  9178. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9179. fi
  9180. hardcode_libdir_flag_spec='-L$libdir'
  9181. hardcode_direct=yes
  9182. hardcode_minus_L=yes
  9183. hardcode_shlibpath_var=no
  9184. ;;
  9185. sysv4)
  9186. case $host_vendor in
  9187. sni)
  9188. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9189. hardcode_direct=yes # is this really true???
  9190. ;;
  9191. siemens)
  9192. ## LD is ld it makes a PLAMLIB
  9193. ## CC just makes a GrossModule.
  9194. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9195. reload_cmds='$CC -r -o $output$reload_objs'
  9196. hardcode_direct=no
  9197. ;;
  9198. motorola)
  9199. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9200. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9201. ;;
  9202. esac
  9203. runpath_var='LD_RUN_PATH'
  9204. hardcode_shlibpath_var=no
  9205. ;;
  9206. sysv4.3*)
  9207. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9208. hardcode_shlibpath_var=no
  9209. export_dynamic_flag_spec='-Bexport'
  9210. ;;
  9211. sysv4*MP*)
  9212. if test -d /usr/nec; then
  9213. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9214. hardcode_shlibpath_var=no
  9215. runpath_var=LD_RUN_PATH
  9216. hardcode_runpath_var=yes
  9217. ld_shlibs=yes
  9218. fi
  9219. ;;
  9220. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9221. no_undefined_flag='$wl-z,text'
  9222. archive_cmds_need_lc=no
  9223. hardcode_shlibpath_var=no
  9224. runpath_var='LD_RUN_PATH'
  9225. if test yes = "$GCC"; then
  9226. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9227. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9228. else
  9229. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9230. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9231. fi
  9232. ;;
  9233. sysv5* | sco3.2v5* | sco5v6*)
  9234. # Note: We CANNOT use -z defs as we might desire, because we do not
  9235. # link with -lc, and that would cause any symbols used from libc to
  9236. # always be unresolved, which means just about no library would
  9237. # ever link correctly. If we're not using GNU ld we use -z text
  9238. # though, which does catch some bad symbols but isn't as heavy-handed
  9239. # as -z defs.
  9240. no_undefined_flag='$wl-z,text'
  9241. allow_undefined_flag='$wl-z,nodefs'
  9242. archive_cmds_need_lc=no
  9243. hardcode_shlibpath_var=no
  9244. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9245. hardcode_libdir_separator=':'
  9246. link_all_deplibs=yes
  9247. export_dynamic_flag_spec='$wl-Bexport'
  9248. runpath_var='LD_RUN_PATH'
  9249. if test yes = "$GCC"; then
  9250. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9251. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9252. else
  9253. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9254. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9255. fi
  9256. ;;
  9257. uts4*)
  9258. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9259. hardcode_libdir_flag_spec='-L$libdir'
  9260. hardcode_shlibpath_var=no
  9261. ;;
  9262. *)
  9263. ld_shlibs=no
  9264. ;;
  9265. esac
  9266. if test sni = "$host_vendor"; then
  9267. case $host in
  9268. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9269. export_dynamic_flag_spec='$wl-Blargedynsym'
  9270. ;;
  9271. esac
  9272. fi
  9273. fi
  9274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9275. $as_echo "$ld_shlibs" >&6; }
  9276. test no = "$ld_shlibs" && can_build_shared=no
  9277. with_gnu_ld=$with_gnu_ld
  9278. #
  9279. # Do we need to explicitly link libc?
  9280. #
  9281. case "x$archive_cmds_need_lc" in
  9282. x|xyes)
  9283. # Assume -lc should be added
  9284. archive_cmds_need_lc=yes
  9285. if test yes,yes = "$GCC,$enable_shared"; then
  9286. case $archive_cmds in
  9287. *'~'*)
  9288. # FIXME: we may have to deal with multi-command sequences.
  9289. ;;
  9290. '$CC '*)
  9291. # Test whether the compiler implicitly links with -lc since on some
  9292. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9293. # to ld, don't add -lc before -lgcc.
  9294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9295. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9296. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9297. $as_echo_n "(cached) " >&6
  9298. else
  9299. $RM conftest*
  9300. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9301. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9302. (eval $ac_compile) 2>&5
  9303. ac_status=$?
  9304. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9305. test $ac_status = 0; } 2>conftest.err; then
  9306. soname=conftest
  9307. lib=conftest
  9308. libobjs=conftest.$ac_objext
  9309. deplibs=
  9310. wl=$lt_prog_compiler_wl
  9311. pic_flag=$lt_prog_compiler_pic
  9312. compiler_flags=-v
  9313. linker_flags=-v
  9314. verstring=
  9315. output_objdir=.
  9316. libname=conftest
  9317. lt_save_allow_undefined_flag=$allow_undefined_flag
  9318. allow_undefined_flag=
  9319. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9320. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9321. ac_status=$?
  9322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9323. test $ac_status = 0; }
  9324. then
  9325. lt_cv_archive_cmds_need_lc=no
  9326. else
  9327. lt_cv_archive_cmds_need_lc=yes
  9328. fi
  9329. allow_undefined_flag=$lt_save_allow_undefined_flag
  9330. else
  9331. cat conftest.err 1>&5
  9332. fi
  9333. $RM conftest*
  9334. fi
  9335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9336. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9337. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9338. ;;
  9339. esac
  9340. fi
  9341. ;;
  9342. esac
  9343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9344. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9345. if test yes = "$GCC"; then
  9346. case $host_os in
  9347. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9348. *) lt_awk_arg='/^libraries:/' ;;
  9349. esac
  9350. case $host_os in
  9351. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9352. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9353. esac
  9354. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9355. case $lt_search_path_spec in
  9356. *\;*)
  9357. # if the path contains ";" then we assume it to be the separator
  9358. # otherwise default to the standard path separator (i.e. ":") - it is
  9359. # assumed that no part of a normal pathname contains ";" but that should
  9360. # okay in the real world where ";" in dirpaths is itself problematic.
  9361. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9362. ;;
  9363. *)
  9364. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9365. ;;
  9366. esac
  9367. # Ok, now we have the path, separated by spaces, we can step through it
  9368. # and add multilib dir if necessary...
  9369. lt_tmp_lt_search_path_spec=
  9370. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9371. # ...but if some path component already ends with the multilib dir we assume
  9372. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9373. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9374. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9375. lt_multi_os_dir=
  9376. ;;
  9377. esac
  9378. for lt_sys_path in $lt_search_path_spec; do
  9379. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9380. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9381. elif test -n "$lt_multi_os_dir"; then
  9382. test -d "$lt_sys_path" && \
  9383. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9384. fi
  9385. done
  9386. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9387. BEGIN {RS = " "; FS = "/|\n";} {
  9388. lt_foo = "";
  9389. lt_count = 0;
  9390. for (lt_i = NF; lt_i > 0; lt_i--) {
  9391. if ($lt_i != "" && $lt_i != ".") {
  9392. if ($lt_i == "..") {
  9393. lt_count++;
  9394. } else {
  9395. if (lt_count == 0) {
  9396. lt_foo = "/" $lt_i lt_foo;
  9397. } else {
  9398. lt_count--;
  9399. }
  9400. }
  9401. }
  9402. }
  9403. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9404. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9405. }'`
  9406. # AWK program above erroneously prepends '/' to C:/dos/paths
  9407. # for these hosts.
  9408. case $host_os in
  9409. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9410. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9411. esac
  9412. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9413. else
  9414. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9415. fi
  9416. library_names_spec=
  9417. libname_spec='lib$name'
  9418. soname_spec=
  9419. shrext_cmds=.so
  9420. postinstall_cmds=
  9421. postuninstall_cmds=
  9422. finish_cmds=
  9423. finish_eval=
  9424. shlibpath_var=
  9425. shlibpath_overrides_runpath=unknown
  9426. version_type=none
  9427. dynamic_linker="$host_os ld.so"
  9428. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9429. need_lib_prefix=unknown
  9430. hardcode_into_libs=no
  9431. # when you set need_version to no, make sure it does not cause -set_version
  9432. # flags to be left without arguments
  9433. need_version=unknown
  9434. case $host_os in
  9435. aix3*)
  9436. version_type=linux # correct to gnu/linux during the next big refactor
  9437. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9438. shlibpath_var=LIBPATH
  9439. # AIX 3 has no versioning support, so we append a major version to the name.
  9440. soname_spec='$libname$release$shared_ext$major'
  9441. ;;
  9442. aix[4-9]*)
  9443. version_type=linux # correct to gnu/linux during the next big refactor
  9444. need_lib_prefix=no
  9445. need_version=no
  9446. hardcode_into_libs=yes
  9447. if test ia64 = "$host_cpu"; then
  9448. # AIX 5 supports IA64
  9449. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9450. shlibpath_var=LD_LIBRARY_PATH
  9451. else
  9452. # With GCC up to 2.95.x, collect2 would create an import file
  9453. # for dependence libraries. The import file would start with
  9454. # the line '#! .'. This would cause the generated library to
  9455. # depend on '.', always an invalid library. This was fixed in
  9456. # development snapshots of GCC prior to 3.0.
  9457. case $host_os in
  9458. aix4 | aix4.[01] | aix4.[01].*)
  9459. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9460. echo ' yes '
  9461. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9462. :
  9463. else
  9464. can_build_shared=no
  9465. fi
  9466. ;;
  9467. esac
  9468. # Using Import Files as archive members, it is possible to support
  9469. # filename-based versioning of shared library archives on AIX. While
  9470. # this would work for both with and without runtime linking, it will
  9471. # prevent static linking of such archives. So we do filename-based
  9472. # shared library versioning with .so extension only, which is used
  9473. # when both runtime linking and shared linking is enabled.
  9474. # Unfortunately, runtime linking may impact performance, so we do
  9475. # not want this to be the default eventually. Also, we use the
  9476. # versioned .so libs for executables only if there is the -brtl
  9477. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9478. # To allow for filename-based versioning support, we need to create
  9479. # libNAME.so.V as an archive file, containing:
  9480. # *) an Import File, referring to the versioned filename of the
  9481. # archive as well as the shared archive member, telling the
  9482. # bitwidth (32 or 64) of that shared object, and providing the
  9483. # list of exported symbols of that shared object, eventually
  9484. # decorated with the 'weak' keyword
  9485. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9486. # it being seen by the linker.
  9487. # At run time we better use the real file rather than another symlink,
  9488. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9489. case $with_aix_soname,$aix_use_runtimelinking in
  9490. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9491. # soname into executable. Probably we can add versioning support to
  9492. # collect2, so additional links can be useful in future.
  9493. aix,yes) # traditional libtool
  9494. dynamic_linker='AIX unversionable lib.so'
  9495. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9496. # instead of lib<name>.a to let people know that these are not
  9497. # typical AIX shared libraries.
  9498. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9499. ;;
  9500. aix,no) # traditional AIX only
  9501. dynamic_linker='AIX lib.a(lib.so.V)'
  9502. # We preserve .a as extension for shared libraries through AIX4.2
  9503. # and later when we are not doing run time linking.
  9504. library_names_spec='$libname$release.a $libname.a'
  9505. soname_spec='$libname$release$shared_ext$major'
  9506. ;;
  9507. svr4,*) # full svr4 only
  9508. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9509. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9510. # We do not specify a path in Import Files, so LIBPATH fires.
  9511. shlibpath_overrides_runpath=yes
  9512. ;;
  9513. *,yes) # both, prefer svr4
  9514. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9515. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9516. # unpreferred sharedlib libNAME.a needs extra handling
  9517. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9518. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9519. # We do not specify a path in Import Files, so LIBPATH fires.
  9520. shlibpath_overrides_runpath=yes
  9521. ;;
  9522. *,no) # both, prefer aix
  9523. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9524. library_names_spec='$libname$release.a $libname.a'
  9525. soname_spec='$libname$release$shared_ext$major'
  9526. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9527. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9528. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9529. ;;
  9530. esac
  9531. shlibpath_var=LIBPATH
  9532. fi
  9533. ;;
  9534. amigaos*)
  9535. case $host_cpu in
  9536. powerpc)
  9537. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9538. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9539. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9540. ;;
  9541. m68k)
  9542. library_names_spec='$libname.ixlibrary $libname.a'
  9543. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9544. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  9545. ;;
  9546. esac
  9547. ;;
  9548. beos*)
  9549. library_names_spec='$libname$shared_ext'
  9550. dynamic_linker="$host_os ld.so"
  9551. shlibpath_var=LIBRARY_PATH
  9552. ;;
  9553. bsdi[45]*)
  9554. version_type=linux # correct to gnu/linux during the next big refactor
  9555. need_version=no
  9556. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9557. soname_spec='$libname$release$shared_ext$major'
  9558. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9559. shlibpath_var=LD_LIBRARY_PATH
  9560. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9561. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9562. # the default ld.so.conf also contains /usr/contrib/lib and
  9563. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9564. # libtool to hard-code these into programs
  9565. ;;
  9566. cygwin* | mingw* | pw32* | cegcc*)
  9567. version_type=windows
  9568. shrext_cmds=.dll
  9569. need_version=no
  9570. need_lib_prefix=no
  9571. case $GCC,$cc_basename in
  9572. yes,*)
  9573. # gcc
  9574. library_names_spec='$libname.dll.a'
  9575. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9576. postinstall_cmds='base_file=`basename \$file`~
  9577. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9578. dldir=$destdir/`dirname \$dlpath`~
  9579. test -d \$dldir || mkdir -p \$dldir~
  9580. $install_prog $dir/$dlname \$dldir/$dlname~
  9581. chmod a+x \$dldir/$dlname~
  9582. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9583. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9584. fi'
  9585. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9586. dlpath=$dir/\$dldll~
  9587. $RM \$dlpath'
  9588. shlibpath_overrides_runpath=yes
  9589. case $host_os in
  9590. cygwin*)
  9591. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9592. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9593. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9594. ;;
  9595. mingw* | cegcc*)
  9596. # MinGW DLLs use traditional 'lib' prefix
  9597. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9598. ;;
  9599. pw32*)
  9600. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9601. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9602. ;;
  9603. esac
  9604. dynamic_linker='Win32 ld.exe'
  9605. ;;
  9606. *,cl*)
  9607. # Native MSVC
  9608. libname_spec='$name'
  9609. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9610. library_names_spec='$libname.dll.lib'
  9611. case $build_os in
  9612. mingw*)
  9613. sys_lib_search_path_spec=
  9614. lt_save_ifs=$IFS
  9615. IFS=';'
  9616. for lt_path in $LIB
  9617. do
  9618. IFS=$lt_save_ifs
  9619. # Let DOS variable expansion print the short 8.3 style file name.
  9620. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9621. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9622. done
  9623. IFS=$lt_save_ifs
  9624. # Convert to MSYS style.
  9625. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9626. ;;
  9627. cygwin*)
  9628. # Convert to unix form, then to dos form, then back to unix form
  9629. # but this time dos style (no spaces!) so that the unix form looks
  9630. # like /cygdrive/c/PROGRA~1:/cygdr...
  9631. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9632. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9633. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9634. ;;
  9635. *)
  9636. sys_lib_search_path_spec=$LIB
  9637. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9638. # It is most probably a Windows format PATH.
  9639. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9640. else
  9641. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9642. fi
  9643. # FIXME: find the short name or the path components, as spaces are
  9644. # common. (e.g. "Program Files" -> "PROGRA~1")
  9645. ;;
  9646. esac
  9647. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9648. postinstall_cmds='base_file=`basename \$file`~
  9649. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9650. dldir=$destdir/`dirname \$dlpath`~
  9651. test -d \$dldir || mkdir -p \$dldir~
  9652. $install_prog $dir/$dlname \$dldir/$dlname'
  9653. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9654. dlpath=$dir/\$dldll~
  9655. $RM \$dlpath'
  9656. shlibpath_overrides_runpath=yes
  9657. dynamic_linker='Win32 link.exe'
  9658. ;;
  9659. *)
  9660. # Assume MSVC wrapper
  9661. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9662. dynamic_linker='Win32 ld.exe'
  9663. ;;
  9664. esac
  9665. # FIXME: first we should search . and the directory the executable is in
  9666. shlibpath_var=PATH
  9667. ;;
  9668. darwin* | rhapsody*)
  9669. dynamic_linker="$host_os dyld"
  9670. version_type=darwin
  9671. need_lib_prefix=no
  9672. need_version=no
  9673. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9674. soname_spec='$libname$release$major$shared_ext'
  9675. shlibpath_overrides_runpath=yes
  9676. shlibpath_var=DYLD_LIBRARY_PATH
  9677. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9678. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9679. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9680. ;;
  9681. dgux*)
  9682. version_type=linux # correct to gnu/linux during the next big refactor
  9683. need_lib_prefix=no
  9684. need_version=no
  9685. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9686. soname_spec='$libname$release$shared_ext$major'
  9687. shlibpath_var=LD_LIBRARY_PATH
  9688. ;;
  9689. freebsd* | dragonfly*)
  9690. # DragonFly does not have aout. When/if they implement a new
  9691. # versioning mechanism, adjust this.
  9692. if test -x /usr/bin/objformat; then
  9693. objformat=`/usr/bin/objformat`
  9694. else
  9695. case $host_os in
  9696. freebsd[23].*) objformat=aout ;;
  9697. *) objformat=elf ;;
  9698. esac
  9699. fi
  9700. version_type=freebsd-$objformat
  9701. case $version_type in
  9702. freebsd-elf*)
  9703. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9704. soname_spec='$libname$release$shared_ext$major'
  9705. need_version=no
  9706. need_lib_prefix=no
  9707. ;;
  9708. freebsd-*)
  9709. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9710. need_version=yes
  9711. ;;
  9712. esac
  9713. shlibpath_var=LD_LIBRARY_PATH
  9714. case $host_os in
  9715. freebsd2.*)
  9716. shlibpath_overrides_runpath=yes
  9717. ;;
  9718. freebsd3.[01]* | freebsdelf3.[01]*)
  9719. shlibpath_overrides_runpath=yes
  9720. hardcode_into_libs=yes
  9721. ;;
  9722. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9723. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9724. shlibpath_overrides_runpath=no
  9725. hardcode_into_libs=yes
  9726. ;;
  9727. *) # from 4.6 on, and DragonFly
  9728. shlibpath_overrides_runpath=yes
  9729. hardcode_into_libs=yes
  9730. ;;
  9731. esac
  9732. ;;
  9733. haiku*)
  9734. version_type=linux # correct to gnu/linux during the next big refactor
  9735. need_lib_prefix=no
  9736. need_version=no
  9737. dynamic_linker="$host_os runtime_loader"
  9738. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9739. soname_spec='$libname$release$shared_ext$major'
  9740. shlibpath_var=LIBRARY_PATH
  9741. shlibpath_overrides_runpath=no
  9742. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9743. hardcode_into_libs=yes
  9744. ;;
  9745. hpux9* | hpux10* | hpux11*)
  9746. # Give a soname corresponding to the major version so that dld.sl refuses to
  9747. # link against other versions.
  9748. version_type=sunos
  9749. need_lib_prefix=no
  9750. need_version=no
  9751. case $host_cpu in
  9752. ia64*)
  9753. shrext_cmds='.so'
  9754. hardcode_into_libs=yes
  9755. dynamic_linker="$host_os dld.so"
  9756. shlibpath_var=LD_LIBRARY_PATH
  9757. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9758. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9759. soname_spec='$libname$release$shared_ext$major'
  9760. if test 32 = "$HPUX_IA64_MODE"; then
  9761. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9762. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9763. else
  9764. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9765. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9766. fi
  9767. ;;
  9768. hppa*64*)
  9769. shrext_cmds='.sl'
  9770. hardcode_into_libs=yes
  9771. dynamic_linker="$host_os dld.sl"
  9772. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9773. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9774. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9775. soname_spec='$libname$release$shared_ext$major'
  9776. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9777. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9778. ;;
  9779. *)
  9780. shrext_cmds='.sl'
  9781. dynamic_linker="$host_os dld.sl"
  9782. shlibpath_var=SHLIB_PATH
  9783. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9784. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9785. soname_spec='$libname$release$shared_ext$major'
  9786. ;;
  9787. esac
  9788. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9789. postinstall_cmds='chmod 555 $lib'
  9790. # or fails outright, so override atomically:
  9791. install_override_mode=555
  9792. ;;
  9793. interix[3-9]*)
  9794. version_type=linux # correct to gnu/linux during the next big refactor
  9795. need_lib_prefix=no
  9796. need_version=no
  9797. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9798. soname_spec='$libname$release$shared_ext$major'
  9799. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9800. shlibpath_var=LD_LIBRARY_PATH
  9801. shlibpath_overrides_runpath=no
  9802. hardcode_into_libs=yes
  9803. ;;
  9804. irix5* | irix6* | nonstopux*)
  9805. case $host_os in
  9806. nonstopux*) version_type=nonstopux ;;
  9807. *)
  9808. if test yes = "$lt_cv_prog_gnu_ld"; then
  9809. version_type=linux # correct to gnu/linux during the next big refactor
  9810. else
  9811. version_type=irix
  9812. fi ;;
  9813. esac
  9814. need_lib_prefix=no
  9815. need_version=no
  9816. soname_spec='$libname$release$shared_ext$major'
  9817. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9818. case $host_os in
  9819. irix5* | nonstopux*)
  9820. libsuff= shlibsuff=
  9821. ;;
  9822. *)
  9823. case $LD in # libtool.m4 will add one of these switches to LD
  9824. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9825. libsuff= shlibsuff= libmagic=32-bit;;
  9826. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9827. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9828. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9829. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9830. *) libsuff= shlibsuff= libmagic=never-match;;
  9831. esac
  9832. ;;
  9833. esac
  9834. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9835. shlibpath_overrides_runpath=no
  9836. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9837. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9838. hardcode_into_libs=yes
  9839. ;;
  9840. # No shared lib support for Linux oldld, aout, or coff.
  9841. linux*oldld* | linux*aout* | linux*coff*)
  9842. dynamic_linker=no
  9843. ;;
  9844. linux*android*)
  9845. version_type=none # Android doesn't support versioned libraries.
  9846. need_lib_prefix=no
  9847. need_version=no
  9848. library_names_spec='$libname$release$shared_ext'
  9849. soname_spec='$libname$release$shared_ext'
  9850. finish_cmds=
  9851. shlibpath_var=LD_LIBRARY_PATH
  9852. shlibpath_overrides_runpath=yes
  9853. # This implies no fast_install, which is unacceptable.
  9854. # Some rework will be needed to allow for fast_install
  9855. # before this can be enabled.
  9856. hardcode_into_libs=yes
  9857. dynamic_linker='Android linker'
  9858. # Don't embed -rpath directories since the linker doesn't support them.
  9859. hardcode_libdir_flag_spec='-L$libdir'
  9860. ;;
  9861. # This must be glibc/ELF.
  9862. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9863. version_type=linux # correct to gnu/linux during the next big refactor
  9864. need_lib_prefix=no
  9865. need_version=no
  9866. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9867. soname_spec='$libname$release$shared_ext$major'
  9868. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9869. shlibpath_var=LD_LIBRARY_PATH
  9870. shlibpath_overrides_runpath=no
  9871. # Some binutils ld are patched to set DT_RUNPATH
  9872. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9873. $as_echo_n "(cached) " >&6
  9874. else
  9875. lt_cv_shlibpath_overrides_runpath=no
  9876. save_LDFLAGS=$LDFLAGS
  9877. save_libdir=$libdir
  9878. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9879. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9881. /* end confdefs.h. */
  9882. int
  9883. main ()
  9884. {
  9885. ;
  9886. return 0;
  9887. }
  9888. _ACEOF
  9889. if ac_fn_c_try_link "$LINENO"; then :
  9890. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9891. lt_cv_shlibpath_overrides_runpath=yes
  9892. fi
  9893. fi
  9894. rm -f core conftest.err conftest.$ac_objext \
  9895. conftest$ac_exeext conftest.$ac_ext
  9896. LDFLAGS=$save_LDFLAGS
  9897. libdir=$save_libdir
  9898. fi
  9899. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9900. # This implies no fast_install, which is unacceptable.
  9901. # Some rework will be needed to allow for fast_install
  9902. # before this can be enabled.
  9903. hardcode_into_libs=yes
  9904. # Ideally, we could use ldconfig to report *all* directores which are
  9905. # searched for libraries, however this is still not possible. Aside from not
  9906. # being certain /sbin/ldconfig is available, command
  9907. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9908. # even though it is searched at run-time. Try to do the best guess by
  9909. # appending ld.so.conf contents (and includes) to the search path.
  9910. if test -f /etc/ld.so.conf; then
  9911. 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' ' '`
  9912. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9913. fi
  9914. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9915. # powerpc, because MkLinux only supported shared libraries with the
  9916. # GNU dynamic linker. Since this was broken with cross compilers,
  9917. # most powerpc-linux boxes support dynamic linking these days and
  9918. # people can always --disable-shared, the test was removed, and we
  9919. # assume the GNU/Linux dynamic linker is in use.
  9920. dynamic_linker='GNU/Linux ld.so'
  9921. ;;
  9922. netbsd*)
  9923. version_type=sunos
  9924. need_lib_prefix=no
  9925. need_version=no
  9926. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9927. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9928. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9929. dynamic_linker='NetBSD (a.out) ld.so'
  9930. else
  9931. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9932. soname_spec='$libname$release$shared_ext$major'
  9933. dynamic_linker='NetBSD ld.elf_so'
  9934. fi
  9935. shlibpath_var=LD_LIBRARY_PATH
  9936. shlibpath_overrides_runpath=yes
  9937. hardcode_into_libs=yes
  9938. ;;
  9939. newsos6)
  9940. version_type=linux # correct to gnu/linux during the next big refactor
  9941. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9942. shlibpath_var=LD_LIBRARY_PATH
  9943. shlibpath_overrides_runpath=yes
  9944. ;;
  9945. *nto* | *qnx*)
  9946. version_type=qnx
  9947. need_lib_prefix=no
  9948. need_version=no
  9949. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9950. soname_spec='$libname$release$shared_ext$major'
  9951. shlibpath_var=LD_LIBRARY_PATH
  9952. shlibpath_overrides_runpath=no
  9953. hardcode_into_libs=yes
  9954. dynamic_linker='ldqnx.so'
  9955. ;;
  9956. openbsd* | bitrig*)
  9957. version_type=sunos
  9958. sys_lib_dlsearch_path_spec=/usr/lib
  9959. need_lib_prefix=no
  9960. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9961. need_version=no
  9962. else
  9963. need_version=yes
  9964. fi
  9965. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9966. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9967. shlibpath_var=LD_LIBRARY_PATH
  9968. shlibpath_overrides_runpath=yes
  9969. ;;
  9970. os2*)
  9971. libname_spec='$name'
  9972. version_type=windows
  9973. shrext_cmds=.dll
  9974. need_version=no
  9975. need_lib_prefix=no
  9976. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9977. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9978. v=$($ECHO $release$versuffix | tr -d .-);
  9979. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9980. $ECHO $n$v`$shared_ext'
  9981. library_names_spec='${libname}_dll.$libext'
  9982. dynamic_linker='OS/2 ld.exe'
  9983. shlibpath_var=BEGINLIBPATH
  9984. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9985. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9986. postinstall_cmds='base_file=`basename \$file`~
  9987. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9988. dldir=$destdir/`dirname \$dlpath`~
  9989. test -d \$dldir || mkdir -p \$dldir~
  9990. $install_prog $dir/$dlname \$dldir/$dlname~
  9991. chmod a+x \$dldir/$dlname~
  9992. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9993. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9994. fi'
  9995. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9996. dlpath=$dir/\$dldll~
  9997. $RM \$dlpath'
  9998. ;;
  9999. osf3* | osf4* | osf5*)
  10000. version_type=osf
  10001. need_lib_prefix=no
  10002. need_version=no
  10003. soname_spec='$libname$release$shared_ext$major'
  10004. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10005. shlibpath_var=LD_LIBRARY_PATH
  10006. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10007. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10008. ;;
  10009. rdos*)
  10010. dynamic_linker=no
  10011. ;;
  10012. solaris*)
  10013. version_type=linux # correct to gnu/linux during the next big refactor
  10014. need_lib_prefix=no
  10015. need_version=no
  10016. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10017. soname_spec='$libname$release$shared_ext$major'
  10018. shlibpath_var=LD_LIBRARY_PATH
  10019. shlibpath_overrides_runpath=yes
  10020. hardcode_into_libs=yes
  10021. # ldd complains unless libraries are executable
  10022. postinstall_cmds='chmod +x $lib'
  10023. ;;
  10024. sunos4*)
  10025. version_type=sunos
  10026. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10027. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10028. shlibpath_var=LD_LIBRARY_PATH
  10029. shlibpath_overrides_runpath=yes
  10030. if test yes = "$with_gnu_ld"; then
  10031. need_lib_prefix=no
  10032. fi
  10033. need_version=yes
  10034. ;;
  10035. sysv4 | sysv4.3*)
  10036. version_type=linux # correct to gnu/linux during the next big refactor
  10037. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10038. soname_spec='$libname$release$shared_ext$major'
  10039. shlibpath_var=LD_LIBRARY_PATH
  10040. case $host_vendor in
  10041. sni)
  10042. shlibpath_overrides_runpath=no
  10043. need_lib_prefix=no
  10044. runpath_var=LD_RUN_PATH
  10045. ;;
  10046. siemens)
  10047. need_lib_prefix=no
  10048. ;;
  10049. motorola)
  10050. need_lib_prefix=no
  10051. need_version=no
  10052. shlibpath_overrides_runpath=no
  10053. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10054. ;;
  10055. esac
  10056. ;;
  10057. sysv4*MP*)
  10058. if test -d /usr/nec; then
  10059. version_type=linux # correct to gnu/linux during the next big refactor
  10060. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10061. soname_spec='$libname$shared_ext.$major'
  10062. shlibpath_var=LD_LIBRARY_PATH
  10063. fi
  10064. ;;
  10065. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10066. version_type=sco
  10067. need_lib_prefix=no
  10068. need_version=no
  10069. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10070. soname_spec='$libname$release$shared_ext$major'
  10071. shlibpath_var=LD_LIBRARY_PATH
  10072. shlibpath_overrides_runpath=yes
  10073. hardcode_into_libs=yes
  10074. if test yes = "$with_gnu_ld"; then
  10075. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10076. else
  10077. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10078. case $host_os in
  10079. sco3.2v5*)
  10080. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10081. ;;
  10082. esac
  10083. fi
  10084. sys_lib_dlsearch_path_spec='/usr/lib'
  10085. ;;
  10086. tpf*)
  10087. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10088. version_type=linux # correct to gnu/linux during the next big refactor
  10089. need_lib_prefix=no
  10090. need_version=no
  10091. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10092. shlibpath_var=LD_LIBRARY_PATH
  10093. shlibpath_overrides_runpath=no
  10094. hardcode_into_libs=yes
  10095. ;;
  10096. uts4*)
  10097. version_type=linux # correct to gnu/linux during the next big refactor
  10098. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10099. soname_spec='$libname$release$shared_ext$major'
  10100. shlibpath_var=LD_LIBRARY_PATH
  10101. ;;
  10102. *)
  10103. dynamic_linker=no
  10104. ;;
  10105. esac
  10106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10107. $as_echo "$dynamic_linker" >&6; }
  10108. test no = "$dynamic_linker" && can_build_shared=no
  10109. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10110. if test yes = "$GCC"; then
  10111. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10112. fi
  10113. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10114. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10115. fi
  10116. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10117. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10118. fi
  10119. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10120. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10121. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10122. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10123. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10124. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10126. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10127. hardcode_action=
  10128. if test -n "$hardcode_libdir_flag_spec" ||
  10129. test -n "$runpath_var" ||
  10130. test yes = "$hardcode_automatic"; then
  10131. # We can hardcode non-existent directories.
  10132. if test no != "$hardcode_direct" &&
  10133. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10134. # have to relink, otherwise we might link with an installed library
  10135. # when we should be linking with a yet-to-be-installed one
  10136. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10137. test no != "$hardcode_minus_L"; then
  10138. # Linking always hardcodes the temporary library directory.
  10139. hardcode_action=relink
  10140. else
  10141. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10142. hardcode_action=immediate
  10143. fi
  10144. else
  10145. # We cannot hardcode anything, or else we can only hardcode existing
  10146. # directories.
  10147. hardcode_action=unsupported
  10148. fi
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10150. $as_echo "$hardcode_action" >&6; }
  10151. if test relink = "$hardcode_action" ||
  10152. test yes = "$inherit_rpath"; then
  10153. # Fast installation is not supported
  10154. enable_fast_install=no
  10155. elif test yes = "$shlibpath_overrides_runpath" ||
  10156. test no = "$enable_shared"; then
  10157. # Fast installation is not necessary
  10158. enable_fast_install=needless
  10159. fi
  10160. if test yes != "$enable_dlopen"; then
  10161. enable_dlopen=unknown
  10162. enable_dlopen_self=unknown
  10163. enable_dlopen_self_static=unknown
  10164. else
  10165. lt_cv_dlopen=no
  10166. lt_cv_dlopen_libs=
  10167. case $host_os in
  10168. beos*)
  10169. lt_cv_dlopen=load_add_on
  10170. lt_cv_dlopen_libs=
  10171. lt_cv_dlopen_self=yes
  10172. ;;
  10173. mingw* | pw32* | cegcc*)
  10174. lt_cv_dlopen=LoadLibrary
  10175. lt_cv_dlopen_libs=
  10176. ;;
  10177. cygwin*)
  10178. lt_cv_dlopen=dlopen
  10179. lt_cv_dlopen_libs=
  10180. ;;
  10181. darwin*)
  10182. # if libdl is installed we need to link against it
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10184. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10185. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10186. $as_echo_n "(cached) " >&6
  10187. else
  10188. ac_check_lib_save_LIBS=$LIBS
  10189. LIBS="-ldl $LIBS"
  10190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10191. /* end confdefs.h. */
  10192. /* Override any GCC internal prototype to avoid an error.
  10193. Use char because int might match the return type of a GCC
  10194. builtin and then its argument prototype would still apply. */
  10195. #ifdef __cplusplus
  10196. extern "C"
  10197. #endif
  10198. char dlopen ();
  10199. int
  10200. main ()
  10201. {
  10202. return dlopen ();
  10203. ;
  10204. return 0;
  10205. }
  10206. _ACEOF
  10207. if ac_fn_c_try_link "$LINENO"; then :
  10208. ac_cv_lib_dl_dlopen=yes
  10209. else
  10210. ac_cv_lib_dl_dlopen=no
  10211. fi
  10212. rm -f core conftest.err conftest.$ac_objext \
  10213. conftest$ac_exeext conftest.$ac_ext
  10214. LIBS=$ac_check_lib_save_LIBS
  10215. fi
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10217. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10218. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10219. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10220. else
  10221. lt_cv_dlopen=dyld
  10222. lt_cv_dlopen_libs=
  10223. lt_cv_dlopen_self=yes
  10224. fi
  10225. ;;
  10226. tpf*)
  10227. # Don't try to run any link tests for TPF. We know it's impossible
  10228. # because TPF is a cross-compiler, and we know how we open DSOs.
  10229. lt_cv_dlopen=dlopen
  10230. lt_cv_dlopen_libs=
  10231. lt_cv_dlopen_self=no
  10232. ;;
  10233. *)
  10234. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10235. if test "x$ac_cv_func_shl_load" = xyes; then :
  10236. lt_cv_dlopen=shl_load
  10237. else
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10239. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10240. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10241. $as_echo_n "(cached) " >&6
  10242. else
  10243. ac_check_lib_save_LIBS=$LIBS
  10244. LIBS="-ldld $LIBS"
  10245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10246. /* end confdefs.h. */
  10247. /* Override any GCC internal prototype to avoid an error.
  10248. Use char because int might match the return type of a GCC
  10249. builtin and then its argument prototype would still apply. */
  10250. #ifdef __cplusplus
  10251. extern "C"
  10252. #endif
  10253. char shl_load ();
  10254. int
  10255. main ()
  10256. {
  10257. return shl_load ();
  10258. ;
  10259. return 0;
  10260. }
  10261. _ACEOF
  10262. if ac_fn_c_try_link "$LINENO"; then :
  10263. ac_cv_lib_dld_shl_load=yes
  10264. else
  10265. ac_cv_lib_dld_shl_load=no
  10266. fi
  10267. rm -f core conftest.err conftest.$ac_objext \
  10268. conftest$ac_exeext conftest.$ac_ext
  10269. LIBS=$ac_check_lib_save_LIBS
  10270. fi
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10272. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10273. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10274. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10275. else
  10276. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10277. if test "x$ac_cv_func_dlopen" = xyes; then :
  10278. lt_cv_dlopen=dlopen
  10279. else
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10281. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10282. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10283. $as_echo_n "(cached) " >&6
  10284. else
  10285. ac_check_lib_save_LIBS=$LIBS
  10286. LIBS="-ldl $LIBS"
  10287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10288. /* end confdefs.h. */
  10289. /* Override any GCC internal prototype to avoid an error.
  10290. Use char because int might match the return type of a GCC
  10291. builtin and then its argument prototype would still apply. */
  10292. #ifdef __cplusplus
  10293. extern "C"
  10294. #endif
  10295. char dlopen ();
  10296. int
  10297. main ()
  10298. {
  10299. return dlopen ();
  10300. ;
  10301. return 0;
  10302. }
  10303. _ACEOF
  10304. if ac_fn_c_try_link "$LINENO"; then :
  10305. ac_cv_lib_dl_dlopen=yes
  10306. else
  10307. ac_cv_lib_dl_dlopen=no
  10308. fi
  10309. rm -f core conftest.err conftest.$ac_objext \
  10310. conftest$ac_exeext conftest.$ac_ext
  10311. LIBS=$ac_check_lib_save_LIBS
  10312. fi
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10314. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10315. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10316. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10317. else
  10318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10319. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10320. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10321. $as_echo_n "(cached) " >&6
  10322. else
  10323. ac_check_lib_save_LIBS=$LIBS
  10324. LIBS="-lsvld $LIBS"
  10325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10326. /* end confdefs.h. */
  10327. /* Override any GCC internal prototype to avoid an error.
  10328. Use char because int might match the return type of a GCC
  10329. builtin and then its argument prototype would still apply. */
  10330. #ifdef __cplusplus
  10331. extern "C"
  10332. #endif
  10333. char dlopen ();
  10334. int
  10335. main ()
  10336. {
  10337. return dlopen ();
  10338. ;
  10339. return 0;
  10340. }
  10341. _ACEOF
  10342. if ac_fn_c_try_link "$LINENO"; then :
  10343. ac_cv_lib_svld_dlopen=yes
  10344. else
  10345. ac_cv_lib_svld_dlopen=no
  10346. fi
  10347. rm -f core conftest.err conftest.$ac_objext \
  10348. conftest$ac_exeext conftest.$ac_ext
  10349. LIBS=$ac_check_lib_save_LIBS
  10350. fi
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10352. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10353. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10354. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10355. else
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10357. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10358. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10359. $as_echo_n "(cached) " >&6
  10360. else
  10361. ac_check_lib_save_LIBS=$LIBS
  10362. LIBS="-ldld $LIBS"
  10363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10364. /* end confdefs.h. */
  10365. /* Override any GCC internal prototype to avoid an error.
  10366. Use char because int might match the return type of a GCC
  10367. builtin and then its argument prototype would still apply. */
  10368. #ifdef __cplusplus
  10369. extern "C"
  10370. #endif
  10371. char dld_link ();
  10372. int
  10373. main ()
  10374. {
  10375. return dld_link ();
  10376. ;
  10377. return 0;
  10378. }
  10379. _ACEOF
  10380. if ac_fn_c_try_link "$LINENO"; then :
  10381. ac_cv_lib_dld_dld_link=yes
  10382. else
  10383. ac_cv_lib_dld_dld_link=no
  10384. fi
  10385. rm -f core conftest.err conftest.$ac_objext \
  10386. conftest$ac_exeext conftest.$ac_ext
  10387. LIBS=$ac_check_lib_save_LIBS
  10388. fi
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10390. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10391. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10392. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10393. fi
  10394. fi
  10395. fi
  10396. fi
  10397. fi
  10398. fi
  10399. ;;
  10400. esac
  10401. if test no = "$lt_cv_dlopen"; then
  10402. enable_dlopen=no
  10403. else
  10404. enable_dlopen=yes
  10405. fi
  10406. case $lt_cv_dlopen in
  10407. dlopen)
  10408. save_CPPFLAGS=$CPPFLAGS
  10409. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10410. save_LDFLAGS=$LDFLAGS
  10411. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10412. save_LIBS=$LIBS
  10413. LIBS="$lt_cv_dlopen_libs $LIBS"
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10415. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10416. if ${lt_cv_dlopen_self+:} false; then :
  10417. $as_echo_n "(cached) " >&6
  10418. else
  10419. if test yes = "$cross_compiling"; then :
  10420. lt_cv_dlopen_self=cross
  10421. else
  10422. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10423. lt_status=$lt_dlunknown
  10424. cat > conftest.$ac_ext <<_LT_EOF
  10425. #line $LINENO "configure"
  10426. #include "confdefs.h"
  10427. #if HAVE_DLFCN_H
  10428. #include <dlfcn.h>
  10429. #endif
  10430. #include <stdio.h>
  10431. #ifdef RTLD_GLOBAL
  10432. # define LT_DLGLOBAL RTLD_GLOBAL
  10433. #else
  10434. # ifdef DL_GLOBAL
  10435. # define LT_DLGLOBAL DL_GLOBAL
  10436. # else
  10437. # define LT_DLGLOBAL 0
  10438. # endif
  10439. #endif
  10440. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10441. find out it does not work in some platform. */
  10442. #ifndef LT_DLLAZY_OR_NOW
  10443. # ifdef RTLD_LAZY
  10444. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10445. # else
  10446. # ifdef DL_LAZY
  10447. # define LT_DLLAZY_OR_NOW DL_LAZY
  10448. # else
  10449. # ifdef RTLD_NOW
  10450. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10451. # else
  10452. # ifdef DL_NOW
  10453. # define LT_DLLAZY_OR_NOW DL_NOW
  10454. # else
  10455. # define LT_DLLAZY_OR_NOW 0
  10456. # endif
  10457. # endif
  10458. # endif
  10459. # endif
  10460. #endif
  10461. /* When -fvisibility=hidden is used, assume the code has been annotated
  10462. correspondingly for the symbols needed. */
  10463. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10464. int fnord () __attribute__((visibility("default")));
  10465. #endif
  10466. int fnord () { return 42; }
  10467. int main ()
  10468. {
  10469. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10470. int status = $lt_dlunknown;
  10471. if (self)
  10472. {
  10473. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10474. else
  10475. {
  10476. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10477. else puts (dlerror ());
  10478. }
  10479. /* dlclose (self); */
  10480. }
  10481. else
  10482. puts (dlerror ());
  10483. return status;
  10484. }
  10485. _LT_EOF
  10486. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10487. (eval $ac_link) 2>&5
  10488. ac_status=$?
  10489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10490. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10491. (./conftest; exit; ) >&5 2>/dev/null
  10492. lt_status=$?
  10493. case x$lt_status in
  10494. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10495. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10496. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10497. esac
  10498. else :
  10499. # compilation failed
  10500. lt_cv_dlopen_self=no
  10501. fi
  10502. fi
  10503. rm -fr conftest*
  10504. fi
  10505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10506. $as_echo "$lt_cv_dlopen_self" >&6; }
  10507. if test yes = "$lt_cv_dlopen_self"; then
  10508. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10510. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10511. if ${lt_cv_dlopen_self_static+:} false; then :
  10512. $as_echo_n "(cached) " >&6
  10513. else
  10514. if test yes = "$cross_compiling"; then :
  10515. lt_cv_dlopen_self_static=cross
  10516. else
  10517. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10518. lt_status=$lt_dlunknown
  10519. cat > conftest.$ac_ext <<_LT_EOF
  10520. #line $LINENO "configure"
  10521. #include "confdefs.h"
  10522. #if HAVE_DLFCN_H
  10523. #include <dlfcn.h>
  10524. #endif
  10525. #include <stdio.h>
  10526. #ifdef RTLD_GLOBAL
  10527. # define LT_DLGLOBAL RTLD_GLOBAL
  10528. #else
  10529. # ifdef DL_GLOBAL
  10530. # define LT_DLGLOBAL DL_GLOBAL
  10531. # else
  10532. # define LT_DLGLOBAL 0
  10533. # endif
  10534. #endif
  10535. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10536. find out it does not work in some platform. */
  10537. #ifndef LT_DLLAZY_OR_NOW
  10538. # ifdef RTLD_LAZY
  10539. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10540. # else
  10541. # ifdef DL_LAZY
  10542. # define LT_DLLAZY_OR_NOW DL_LAZY
  10543. # else
  10544. # ifdef RTLD_NOW
  10545. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10546. # else
  10547. # ifdef DL_NOW
  10548. # define LT_DLLAZY_OR_NOW DL_NOW
  10549. # else
  10550. # define LT_DLLAZY_OR_NOW 0
  10551. # endif
  10552. # endif
  10553. # endif
  10554. # endif
  10555. #endif
  10556. /* When -fvisibility=hidden is used, assume the code has been annotated
  10557. correspondingly for the symbols needed. */
  10558. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10559. int fnord () __attribute__((visibility("default")));
  10560. #endif
  10561. int fnord () { return 42; }
  10562. int main ()
  10563. {
  10564. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10565. int status = $lt_dlunknown;
  10566. if (self)
  10567. {
  10568. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10569. else
  10570. {
  10571. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10572. else puts (dlerror ());
  10573. }
  10574. /* dlclose (self); */
  10575. }
  10576. else
  10577. puts (dlerror ());
  10578. return status;
  10579. }
  10580. _LT_EOF
  10581. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10582. (eval $ac_link) 2>&5
  10583. ac_status=$?
  10584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10585. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10586. (./conftest; exit; ) >&5 2>/dev/null
  10587. lt_status=$?
  10588. case x$lt_status in
  10589. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10590. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10591. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10592. esac
  10593. else :
  10594. # compilation failed
  10595. lt_cv_dlopen_self_static=no
  10596. fi
  10597. fi
  10598. rm -fr conftest*
  10599. fi
  10600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10601. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10602. fi
  10603. CPPFLAGS=$save_CPPFLAGS
  10604. LDFLAGS=$save_LDFLAGS
  10605. LIBS=$save_LIBS
  10606. ;;
  10607. esac
  10608. case $lt_cv_dlopen_self in
  10609. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10610. *) enable_dlopen_self=unknown ;;
  10611. esac
  10612. case $lt_cv_dlopen_self_static in
  10613. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10614. *) enable_dlopen_self_static=unknown ;;
  10615. esac
  10616. fi
  10617. striplib=
  10618. old_striplib=
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10620. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10621. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10622. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10623. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10625. $as_echo "yes" >&6; }
  10626. else
  10627. # FIXME - insert some real tests, host_os isn't really good enough
  10628. case $host_os in
  10629. darwin*)
  10630. if test -n "$STRIP"; then
  10631. striplib="$STRIP -x"
  10632. old_striplib="$STRIP -S"
  10633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10634. $as_echo "yes" >&6; }
  10635. else
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10637. $as_echo "no" >&6; }
  10638. fi
  10639. ;;
  10640. *)
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10642. $as_echo "no" >&6; }
  10643. ;;
  10644. esac
  10645. fi
  10646. # Report what library types will actually be built
  10647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10648. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10650. $as_echo "$can_build_shared" >&6; }
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10652. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10653. test no = "$can_build_shared" && enable_shared=no
  10654. # On AIX, shared libraries and static libraries use the same namespace, and
  10655. # are all built from PIC.
  10656. case $host_os in
  10657. aix3*)
  10658. test yes = "$enable_shared" && enable_static=no
  10659. if test -n "$RANLIB"; then
  10660. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10661. postinstall_cmds='$RANLIB $lib'
  10662. fi
  10663. ;;
  10664. aix[4-9]*)
  10665. if test ia64 != "$host_cpu"; then
  10666. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10667. yes,aix,yes) ;; # shared object as lib.so file only
  10668. yes,svr4,*) ;; # shared object as lib.so archive member only
  10669. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10670. esac
  10671. fi
  10672. ;;
  10673. esac
  10674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10675. $as_echo "$enable_shared" >&6; }
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10677. $as_echo_n "checking whether to build static libraries... " >&6; }
  10678. # Make sure either enable_shared or enable_static is yes.
  10679. test yes = "$enable_shared" || enable_static=yes
  10680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10681. $as_echo "$enable_static" >&6; }
  10682. fi
  10683. ac_ext=c
  10684. ac_cpp='$CPP $CPPFLAGS'
  10685. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10686. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10687. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10688. CC=$lt_save_CC
  10689. ac_config_commands="$ac_config_commands libtool"
  10690. # Only expand once:
  10691. if test "x$enable_docs" = xyes; then
  10692. # Extract the first word of "doxygen", so it can be a program name with args.
  10693. set dummy doxygen; ac_word=$2
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10695. $as_echo_n "checking for $ac_word... " >&6; }
  10696. if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
  10697. $as_echo_n "(cached) " >&6
  10698. else
  10699. if test -n "$HAVE_DOXYGEN"; then
  10700. ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
  10701. else
  10702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10703. for as_dir in $PATH
  10704. do
  10705. IFS=$as_save_IFS
  10706. test -z "$as_dir" && as_dir=.
  10707. for ac_exec_ext in '' $ac_executable_extensions; do
  10708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10709. ac_cv_prog_HAVE_DOXYGEN="true"
  10710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10711. break 2
  10712. fi
  10713. done
  10714. done
  10715. IFS=$as_save_IFS
  10716. test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
  10717. fi
  10718. fi
  10719. HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
  10720. if test -n "$HAVE_DOXYGEN"; then
  10721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
  10722. $as_echo "$HAVE_DOXYGEN" >&6; }
  10723. else
  10724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10725. $as_echo "no" >&6; }
  10726. fi
  10727. if test $HAVE_DOXYGEN = "false"; then
  10728. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** doxygen not found, API documentation will not be built" >&5
  10729. $as_echo "$as_me: WARNING: *** doxygen not found, API documentation will not be built" >&2;}
  10730. fi
  10731. else
  10732. HAVE_DOXYGEN=false
  10733. fi
  10734. if $HAVE_DOXYGEN; then
  10735. HAVE_DOXYGEN_TRUE=
  10736. HAVE_DOXYGEN_FALSE='#'
  10737. else
  10738. HAVE_DOXYGEN_TRUE='#'
  10739. HAVE_DOXYGEN_FALSE=
  10740. fi
  10741. # Check whether --enable-docs was given.
  10742. if test "${enable_docs+set}" = set; then :
  10743. enableval=$enable_docs;
  10744. fi
  10745. if test "x$enable_docs" = xyes; then
  10746. for ac_prog in pdflatex
  10747. do
  10748. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10749. set dummy $ac_prog; ac_word=$2
  10750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10751. $as_echo_n "checking for $ac_word... " >&6; }
  10752. if ${ac_cv_prog_PDFLATEX+:} false; then :
  10753. $as_echo_n "(cached) " >&6
  10754. else
  10755. if test -n "$PDFLATEX"; then
  10756. ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
  10757. else
  10758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10759. for as_dir in $PATH
  10760. do
  10761. IFS=$as_save_IFS
  10762. test -z "$as_dir" && as_dir=.
  10763. for ac_exec_ext in '' $ac_executable_extensions; do
  10764. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10765. ac_cv_prog_PDFLATEX="$ac_prog"
  10766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10767. break 2
  10768. fi
  10769. done
  10770. done
  10771. IFS=$as_save_IFS
  10772. fi
  10773. fi
  10774. PDFLATEX=$ac_cv_prog_PDFLATEX
  10775. if test -n "$PDFLATEX"; then
  10776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
  10777. $as_echo "$PDFLATEX" >&6; }
  10778. else
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10780. $as_echo "no" >&6; }
  10781. fi
  10782. test -n "$PDFLATEX" && break
  10783. done
  10784. test -n "$PDFLATEX" || PDFLATEX="/bin/false"
  10785. for ac_prog in htlatex
  10786. do
  10787. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10788. set dummy $ac_prog; ac_word=$2
  10789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10790. $as_echo_n "checking for $ac_word... " >&6; }
  10791. if ${ac_cv_prog_HTLATEX+:} false; then :
  10792. $as_echo_n "(cached) " >&6
  10793. else
  10794. if test -n "$HTLATEX"; then
  10795. ac_cv_prog_HTLATEX="$HTLATEX" # Let the user override the test.
  10796. else
  10797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10798. for as_dir in $PATH
  10799. do
  10800. IFS=$as_save_IFS
  10801. test -z "$as_dir" && as_dir=.
  10802. for ac_exec_ext in '' $ac_executable_extensions; do
  10803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10804. ac_cv_prog_HTLATEX="$ac_prog"
  10805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10806. break 2
  10807. fi
  10808. done
  10809. done
  10810. IFS=$as_save_IFS
  10811. fi
  10812. fi
  10813. HTLATEX=$ac_cv_prog_HTLATEX
  10814. if test -n "$HTLATEX"; then
  10815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTLATEX" >&5
  10816. $as_echo "$HTLATEX" >&6; }
  10817. else
  10818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10819. $as_echo "no" >&6; }
  10820. fi
  10821. test -n "$HTLATEX" && break
  10822. done
  10823. test -n "$HTLATEX" || HTLATEX="/bin/false"
  10824. if test "x$PDFLATEX" = x/bin/false || test "x$HTLATEX" = x/bin/false; then
  10825. enable_docs=no
  10826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation will not be built!" >&5
  10827. $as_echo "$as_me: WARNING: Documentation will not be built!" >&2;}
  10828. fi
  10829. fi
  10830. if test "x$enable_docs" = xyes; then
  10831. BUILD_DOCS_TRUE=
  10832. BUILD_DOCS_FALSE='#'
  10833. else
  10834. BUILD_DOCS_TRUE='#'
  10835. BUILD_DOCS_FALSE=
  10836. fi
  10837. # Check whether --enable-examples was given.
  10838. if test "${enable_examples+set}" = set; then :
  10839. enableval=$enable_examples;
  10840. fi
  10841. if test "x$enable_examples" = xyes; then
  10842. BUILD_EXAMPLES_TRUE=
  10843. BUILD_EXAMPLES_FALSE='#'
  10844. else
  10845. BUILD_EXAMPLES_TRUE='#'
  10846. BUILD_EXAMPLES_FALSE=
  10847. fi
  10848. cflags_save="$CFLAGS"
  10849. if test -z "$GCC"; then
  10850. case $host in
  10851. *-*-irix*)
  10852. if test -z "$CC"; then
  10853. CC=cc
  10854. fi
  10855. DEBUG="-g -signed"
  10856. CFLAGS="-O2 -w -signed"
  10857. PROFILE="-p -g3 -O2 -signed" ;;
  10858. sparc-sun-solaris*)
  10859. DEBUG="-v -g"
  10860. CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
  10861. PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
  10862. *)
  10863. DEBUG="-g"
  10864. CFLAGS="-O"
  10865. PROFILE="-g -p" ;;
  10866. esac
  10867. else
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC version" >&5
  10869. $as_echo_n "checking GCC version... " >&6; }
  10870. GCC_VERSION=`$CC -dumpversion`
  10871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
  10872. $as_echo "$GCC_VERSION" >&6; }
  10873. case $host in
  10874. *86-*-linux*)
  10875. DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
  10876. CFLAGS="-O3 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
  10877. # PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
  10878. PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline"
  10879. # glibc < 2.1.3 has a serious FP bug in the math inline header
  10880. # that will cripple Vorbis. Look to see if the magic FP stack
  10881. # clobber is missing in the mathinline header, thus indicating
  10882. # the buggy version
  10883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10884. /* end confdefs.h. */
  10885. #define __LIBC_INTERNAL_MATH_INLINES 1
  10886. #define __OPTIMIZE__
  10887. #include <math.h>
  10888. _ACEOF
  10889. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10890. $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then :
  10891. bad=maybe
  10892. else
  10893. bad=no
  10894. fi
  10895. rm -f conftest*
  10896. if test ${bad} = "maybe" ;then
  10897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10898. /* end confdefs.h. */
  10899. #define __LIBC_INTERNAL_MATH_INLINES 1
  10900. #define __OPTIMIZE__
  10901. #include <math.h>
  10902. _ACEOF
  10903. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10904. $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then :
  10905. bad=no
  10906. else
  10907. bad=yes
  10908. fi
  10909. rm -f conftest*
  10910. fi
  10911. if test ${bad} = "yes" ;then
  10912. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
  10913. $as_echo "$as_me: WARNING: " >&2;}
  10914. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
  10915. $as_echo "$as_me: WARNING: ********************************************************" >&2;}
  10916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * The glibc headers on this machine have a serious bug *" >&5
  10917. $as_echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
  10918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5
  10919. $as_echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;}
  10920. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * all floating point code, not just Ogg, built on this *" >&5
  10921. $as_echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;}
  10922. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&5
  10923. $as_echo "$as_me: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&2;}
  10924. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * to correct the problem. Note that upgrading glibc *" >&5
  10925. $as_echo "$as_me: WARNING: * to correct the problem. Note that upgrading glibc *" >&2;}
  10926. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will not fix any previously built programs; this is *" >&5
  10927. $as_echo "$as_me: WARNING: * will not fix any previously built programs; this is *" >&2;}
  10928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * a compile-time bug. *" >&5
  10929. $as_echo "$as_me: WARNING: * a compile-time bug. *" >&2;}
  10930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * To work around the problem for this build of Ogg, *" >&5
  10931. $as_echo "$as_me: WARNING: * To work around the problem for this build of Ogg, *" >&2;}
  10932. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * autoconf is disabling all math inlining. This will *" >&5
  10933. $as_echo "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;}
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5
  10935. $as_echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;}
  10936. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&5
  10937. $as_echo "$as_me: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&2;}
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * configure and make to build with inlining. *" >&5
  10939. $as_echo "$as_me: WARNING: * configure and make to build with inlining. *" >&2;}
  10940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
  10941. $as_echo "$as_me: WARNING: ********************************************************" >&2;}
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
  10943. $as_echo "$as_me: WARNING: " >&2;}
  10944. CFLAGS=${OPT}" -D__NO_MATH_INLINES"
  10945. PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
  10946. fi;;
  10947. powerpc-*-linux*spe)
  10948. DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
  10949. CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -D_REENTRANT"
  10950. PROFILE="-pg -g -O3 -ffast-math -mfused-madd -D_REENTRANT";;
  10951. powerpc-*-linux*)
  10952. DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
  10953. CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"
  10954. PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";;
  10955. *-*-linux*)
  10956. DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
  10957. CFLAGS="-O3 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char"
  10958. PROFILE="-pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char";;
  10959. sparc-sun-*)
  10960. sparc_cpu=""
  10961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -mv8" >&5
  10962. $as_echo_n "checking if gcc supports -mv8... " >&6; }
  10963. old_cflags="$CFLAGS"
  10964. CFLAGS="$CFLAGS -mv8"
  10965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10966. /* end confdefs.h. */
  10967. int
  10968. main ()
  10969. {
  10970. return 0;
  10971. ;
  10972. return 0;
  10973. }
  10974. _ACEOF
  10975. if ac_fn_c_try_compile "$LINENO"; then :
  10976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10977. $as_echo "yes" >&6; }
  10978. sparc_cpu="-mv8"
  10979. fi
  10980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10981. CFLAGS="$old_cflags"
  10982. DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
  10983. CFLAGS="-O3 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
  10984. PROFILE="-pg -g -O3 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;;
  10985. *-*-darwin*)
  10986. DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
  10987. CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O3 -ffast-math -fsigned-char"
  10988. PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O3 -ffast-math -fsigned-char";;
  10989. *-*-os2*)
  10990. # Use -W instead of -Wextra because gcc on OS/2 is an old version.
  10991. DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
  10992. CFLAGS="-O3 -Wall -W -ffast-math -D_REENTRANT -fsigned-char"
  10993. PROFILE="-pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char";;
  10994. *)
  10995. DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
  10996. CFLAGS="-O3 -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
  10997. PROFILE="-O3 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
  10998. esac
  10999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5
  11000. $as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; }
  11001. ac_add_cflags__old_cflags="$CFLAGS"
  11002. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  11003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11004. /* end confdefs.h. */
  11005. #include <stdio.h>
  11006. int
  11007. main ()
  11008. {
  11009. puts("Hello, World!"); return 0;
  11010. ;
  11011. return 0;
  11012. }
  11013. _ACEOF
  11014. if ac_fn_c_try_link "$LINENO"; then :
  11015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11016. $as_echo "yes" >&6; }
  11017. else
  11018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11019. $as_echo "no" >&6; }
  11020. CFLAGS="$ac_add_cflags__old_cflags"
  11021. fi
  11022. rm -f core conftest.err conftest.$ac_objext \
  11023. conftest$ac_exeext conftest.$ac_ext
  11024. fi
  11025. CFLAGS="$CFLAGS $cflags_save"
  11026. ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  11027. if test "x$ac_cv_header_memory_h" = xyes; then :
  11028. CFLAGS="$CFLAGS -DUSE_MEMORY_H"
  11029. else
  11030. :
  11031. fi
  11032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  11033. $as_echo_n "checking for cos in -lm... " >&6; }
  11034. if ${ac_cv_lib_m_cos+:} false; then :
  11035. $as_echo_n "(cached) " >&6
  11036. else
  11037. ac_check_lib_save_LIBS=$LIBS
  11038. LIBS="-lm $LIBS"
  11039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11040. /* end confdefs.h. */
  11041. /* Override any GCC internal prototype to avoid an error.
  11042. Use char because int might match the return type of a GCC
  11043. builtin and then its argument prototype would still apply. */
  11044. #ifdef __cplusplus
  11045. extern "C"
  11046. #endif
  11047. char cos ();
  11048. int
  11049. main ()
  11050. {
  11051. return cos ();
  11052. ;
  11053. return 0;
  11054. }
  11055. _ACEOF
  11056. if ac_fn_c_try_link "$LINENO"; then :
  11057. ac_cv_lib_m_cos=yes
  11058. else
  11059. ac_cv_lib_m_cos=no
  11060. fi
  11061. rm -f core conftest.err conftest.$ac_objext \
  11062. conftest$ac_exeext conftest.$ac_ext
  11063. LIBS=$ac_check_lib_save_LIBS
  11064. fi
  11065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  11066. $as_echo "$ac_cv_lib_m_cos" >&6; }
  11067. if test "x$ac_cv_lib_m_cos" = xyes; then :
  11068. VORBIS_LIBS="-lm"
  11069. else
  11070. VORBIS_LIBS=""
  11071. fi
  11072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  11073. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  11074. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  11075. $as_echo_n "(cached) " >&6
  11076. else
  11077. ac_check_lib_save_LIBS=$LIBS
  11078. LIBS="-lpthread $LIBS"
  11079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11080. /* end confdefs.h. */
  11081. /* Override any GCC internal prototype to avoid an error.
  11082. Use char because int might match the return type of a GCC
  11083. builtin and then its argument prototype would still apply. */
  11084. #ifdef __cplusplus
  11085. extern "C"
  11086. #endif
  11087. char pthread_create ();
  11088. int
  11089. main ()
  11090. {
  11091. return pthread_create ();
  11092. ;
  11093. return 0;
  11094. }
  11095. _ACEOF
  11096. if ac_fn_c_try_link "$LINENO"; then :
  11097. ac_cv_lib_pthread_pthread_create=yes
  11098. else
  11099. ac_cv_lib_pthread_pthread_create=no
  11100. fi
  11101. rm -f core conftest.err conftest.$ac_objext \
  11102. conftest$ac_exeext conftest.$ac_ext
  11103. LIBS=$ac_check_lib_save_LIBS
  11104. fi
  11105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  11106. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  11107. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  11108. pthread_lib="-lpthread"
  11109. else
  11110. :
  11111. fi
  11112. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  11113. if test -n "$ac_tool_prefix"; then
  11114. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  11115. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  11116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11117. $as_echo_n "checking for $ac_word... " >&6; }
  11118. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  11119. $as_echo_n "(cached) " >&6
  11120. else
  11121. case $PKG_CONFIG in
  11122. [\\/]* | ?:[\\/]*)
  11123. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11124. ;;
  11125. *)
  11126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11127. for as_dir in $PATH
  11128. do
  11129. IFS=$as_save_IFS
  11130. test -z "$as_dir" && as_dir=.
  11131. for ac_exec_ext in '' $ac_executable_extensions; do
  11132. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11133. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11135. break 2
  11136. fi
  11137. done
  11138. done
  11139. IFS=$as_save_IFS
  11140. ;;
  11141. esac
  11142. fi
  11143. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11144. if test -n "$PKG_CONFIG"; then
  11145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11146. $as_echo "$PKG_CONFIG" >&6; }
  11147. else
  11148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11149. $as_echo "no" >&6; }
  11150. fi
  11151. fi
  11152. if test -z "$ac_cv_path_PKG_CONFIG"; then
  11153. ac_pt_PKG_CONFIG=$PKG_CONFIG
  11154. # Extract the first word of "pkg-config", so it can be a program name with args.
  11155. set dummy pkg-config; ac_word=$2
  11156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11157. $as_echo_n "checking for $ac_word... " >&6; }
  11158. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  11159. $as_echo_n "(cached) " >&6
  11160. else
  11161. case $ac_pt_PKG_CONFIG in
  11162. [\\/]* | ?:[\\/]*)
  11163. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  11164. ;;
  11165. *)
  11166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11167. for as_dir in $PATH
  11168. do
  11169. IFS=$as_save_IFS
  11170. test -z "$as_dir" && as_dir=.
  11171. for ac_exec_ext in '' $ac_executable_extensions; do
  11172. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11173. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11175. break 2
  11176. fi
  11177. done
  11178. done
  11179. IFS=$as_save_IFS
  11180. ;;
  11181. esac
  11182. fi
  11183. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  11184. if test -n "$ac_pt_PKG_CONFIG"; then
  11185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  11186. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  11187. else
  11188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11189. $as_echo "no" >&6; }
  11190. fi
  11191. if test "x$ac_pt_PKG_CONFIG" = x; then
  11192. PKG_CONFIG=""
  11193. else
  11194. case $cross_compiling:$ac_tool_warned in
  11195. yes:)
  11196. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11197. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11198. ac_tool_warned=yes ;;
  11199. esac
  11200. PKG_CONFIG=$ac_pt_PKG_CONFIG
  11201. fi
  11202. else
  11203. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  11204. fi
  11205. fi
  11206. if test -n "$PKG_CONFIG"; then
  11207. _pkg_min_version=0.9.0
  11208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  11209. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  11210. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  11211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11212. $as_echo "yes" >&6; }
  11213. else
  11214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11215. $as_echo "no" >&6; }
  11216. PKG_CONFIG=""
  11217. fi
  11218. fi
  11219. HAVE_OGG=no
  11220. if test "x$PKG_CONFIG" != "x"
  11221. then
  11222. pkg_failed=no
  11223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG" >&5
  11224. $as_echo_n "checking for OGG... " >&6; }
  11225. if test -n "$PKG_CONFIG"; then
  11226. if test -n "$OGG_CFLAGS"; then
  11227. pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
  11228. else
  11229. if test -n "$PKG_CONFIG" && \
  11230. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
  11231. ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
  11232. ac_status=$?
  11233. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11234. test $ac_status = 0; }; then
  11235. pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null`
  11236. else
  11237. pkg_failed=yes
  11238. fi
  11239. fi
  11240. else
  11241. pkg_failed=untried
  11242. fi
  11243. if test -n "$PKG_CONFIG"; then
  11244. if test -n "$OGG_LIBS"; then
  11245. pkg_cv_OGG_LIBS="$OGG_LIBS"
  11246. else
  11247. if test -n "$PKG_CONFIG" && \
  11248. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
  11249. ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
  11250. ac_status=$?
  11251. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11252. test $ac_status = 0; }; then
  11253. pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null`
  11254. else
  11255. pkg_failed=yes
  11256. fi
  11257. fi
  11258. else
  11259. pkg_failed=untried
  11260. fi
  11261. if test $pkg_failed = yes; then
  11262. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11263. _pkg_short_errors_supported=yes
  11264. else
  11265. _pkg_short_errors_supported=no
  11266. fi
  11267. if test $_pkg_short_errors_supported = yes; then
  11268. OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.0"`
  11269. else
  11270. OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"`
  11271. fi
  11272. # Put the nasty error message in config.log where it belongs
  11273. echo "$OGG_PKG_ERRORS" >&5
  11274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11275. $as_echo "no" >&6; }
  11276. HAVE_OGG=no
  11277. elif test $pkg_failed = untried; then
  11278. HAVE_OGG=no
  11279. else
  11280. OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
  11281. OGG_LIBS=$pkg_cv_OGG_LIBS
  11282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11283. $as_echo "yes" >&6; }
  11284. HAVE_OGG=yes
  11285. fi
  11286. fi
  11287. if test "x$HAVE_OGG" = "xno"
  11288. then
  11289. # Check whether --with-ogg was given.
  11290. if test "${with_ogg+set}" = set; then :
  11291. withval=$with_ogg; ogg_prefix="$withval"
  11292. else
  11293. ogg_prefix=""
  11294. fi
  11295. # Check whether --with-ogg-libraries was given.
  11296. if test "${with_ogg_libraries+set}" = set; then :
  11297. withval=$with_ogg_libraries; ogg_libraries="$withval"
  11298. else
  11299. ogg_libraries=""
  11300. fi
  11301. # Check whether --with-ogg-includes was given.
  11302. if test "${with_ogg_includes+set}" = set; then :
  11303. withval=$with_ogg_includes; ogg_includes="$withval"
  11304. else
  11305. ogg_includes=""
  11306. fi
  11307. # Check whether --enable-oggtest was given.
  11308. if test "${enable_oggtest+set}" = set; then :
  11309. enableval=$enable_oggtest;
  11310. else
  11311. enable_oggtest=yes
  11312. fi
  11313. if test "x$ogg_libraries" != "x" ; then
  11314. OGG_LIBS="-L$ogg_libraries"
  11315. elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
  11316. OGG_LIBS=""
  11317. elif test "x$ogg_prefix" != "x" ; then
  11318. OGG_LIBS="-L$ogg_prefix/lib"
  11319. elif test "x$prefix" != "xNONE" ; then
  11320. OGG_LIBS="-L$prefix/lib"
  11321. fi
  11322. if test "x$ogg_prefix" != "xno" ; then
  11323. OGG_LIBS="$OGG_LIBS -logg"
  11324. fi
  11325. if test "x$ogg_includes" != "x" ; then
  11326. OGG_CFLAGS="-I$ogg_includes"
  11327. elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
  11328. OGG_CFLAGS=""
  11329. elif test "x$ogg_prefix" != "x" ; then
  11330. OGG_CFLAGS="-I$ogg_prefix/include"
  11331. elif test "x$prefix" != "xNONE"; then
  11332. OGG_CFLAGS="-I$prefix/include"
  11333. fi
  11334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ogg" >&5
  11335. $as_echo_n "checking for Ogg... " >&6; }
  11336. if test "x$ogg_prefix" = "xno" ; then
  11337. no_ogg="disabled"
  11338. enable_oggtest="no"
  11339. else
  11340. no_ogg=""
  11341. fi
  11342. if test "x$enable_oggtest" = "xyes" ; then
  11343. ac_save_CFLAGS="$CFLAGS"
  11344. ac_save_LIBS="$LIBS"
  11345. CFLAGS="$CFLAGS $OGG_CFLAGS"
  11346. LIBS="$LIBS $OGG_LIBS"
  11347. rm -f conf.oggtest
  11348. if test "$cross_compiling" = yes; then :
  11349. echo $ac_n "cross compiling; assumed OK... $ac_c"
  11350. else
  11351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11352. /* end confdefs.h. */
  11353. #include <stdio.h>
  11354. #include <stdlib.h>
  11355. #include <string.h>
  11356. #include <ogg/ogg.h>
  11357. int main ()
  11358. {
  11359. system("touch conf.oggtest");
  11360. return 0;
  11361. }
  11362. _ACEOF
  11363. if ac_fn_c_try_run "$LINENO"; then :
  11364. else
  11365. no_ogg=yes
  11366. fi
  11367. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11368. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11369. fi
  11370. CFLAGS="$ac_save_CFLAGS"
  11371. LIBS="$ac_save_LIBS"
  11372. fi
  11373. if test "x$no_ogg" = "xdisabled" ; then
  11374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11375. $as_echo "no" >&6; }
  11376. as_fn_error $? "must have Ogg installed!" "$LINENO" 5
  11377. elif test "x$no_ogg" = "x" ; then
  11378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11379. $as_echo "yes" >&6; }
  11380. :
  11381. else
  11382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11383. $as_echo "no" >&6; }
  11384. if test -f conf.oggtest ; then
  11385. :
  11386. else
  11387. echo "*** Could not run Ogg test program, checking why..."
  11388. CFLAGS="$CFLAGS $OGG_CFLAGS"
  11389. LIBS="$LIBS $OGG_LIBS"
  11390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11391. /* end confdefs.h. */
  11392. #include <stdio.h>
  11393. #include <ogg/ogg.h>
  11394. int
  11395. main ()
  11396. {
  11397. return 0;
  11398. ;
  11399. return 0;
  11400. }
  11401. _ACEOF
  11402. if ac_fn_c_try_link "$LINENO"; then :
  11403. echo "*** The test program compiled, but did not run. This usually means"
  11404. echo "*** that the run-time linker is not finding Ogg or finding the wrong"
  11405. echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
  11406. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  11407. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  11408. echo "*** is required on your system"
  11409. echo "***"
  11410. echo "*** If you have an old version installed, it is best to remove it, although"
  11411. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  11412. else
  11413. echo "*** The test program failed to compile or link. See the file config.log for the"
  11414. echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
  11415. echo "*** or that you have moved Ogg since it was installed."
  11416. fi
  11417. rm -f core conftest.err conftest.$ac_objext \
  11418. conftest$ac_exeext conftest.$ac_ext
  11419. CFLAGS="$ac_save_CFLAGS"
  11420. LIBS="$ac_save_LIBS"
  11421. fi
  11422. OGG_CFLAGS=""
  11423. OGG_LIBS=""
  11424. as_fn_error $? "must have Ogg installed!" "$LINENO" 5
  11425. fi
  11426. rm -f conf.oggtest
  11427. libs_save=$LIBS
  11428. LIBS="$OGG_LIBS $VORBIS_LIBS"
  11429. ac_fn_c_check_func "$LINENO" "oggpack_writealign" "ac_cv_func_oggpack_writealign"
  11430. if test "x$ac_cv_func_oggpack_writealign" = xyes; then :
  11431. else
  11432. as_fn_error $? "Ogg >= 1.0 required !" "$LINENO" 5
  11433. fi
  11434. LIBS=$libs_save
  11435. fi
  11436. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11437. if test "x$ac_cv_type_size_t" = xyes; then :
  11438. else
  11439. cat >>confdefs.h <<_ACEOF
  11440. #define size_t unsigned int
  11441. _ACEOF
  11442. fi
  11443. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  11444. # for constant arguments. Useless!
  11445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  11446. $as_echo_n "checking for working alloca.h... " >&6; }
  11447. if ${ac_cv_working_alloca_h+:} false; then :
  11448. $as_echo_n "(cached) " >&6
  11449. else
  11450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11451. /* end confdefs.h. */
  11452. #include <alloca.h>
  11453. int
  11454. main ()
  11455. {
  11456. char *p = (char *) alloca (2 * sizeof (int));
  11457. if (p) return 0;
  11458. ;
  11459. return 0;
  11460. }
  11461. _ACEOF
  11462. if ac_fn_c_try_link "$LINENO"; then :
  11463. ac_cv_working_alloca_h=yes
  11464. else
  11465. ac_cv_working_alloca_h=no
  11466. fi
  11467. rm -f core conftest.err conftest.$ac_objext \
  11468. conftest$ac_exeext conftest.$ac_ext
  11469. fi
  11470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  11471. $as_echo "$ac_cv_working_alloca_h" >&6; }
  11472. if test $ac_cv_working_alloca_h = yes; then
  11473. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  11474. fi
  11475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  11476. $as_echo_n "checking for alloca... " >&6; }
  11477. if ${ac_cv_func_alloca_works+:} false; then :
  11478. $as_echo_n "(cached) " >&6
  11479. else
  11480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11481. /* end confdefs.h. */
  11482. #ifdef __GNUC__
  11483. # define alloca __builtin_alloca
  11484. #else
  11485. # ifdef _MSC_VER
  11486. # include <malloc.h>
  11487. # define alloca _alloca
  11488. # else
  11489. # ifdef HAVE_ALLOCA_H
  11490. # include <alloca.h>
  11491. # else
  11492. # ifdef _AIX
  11493. #pragma alloca
  11494. # else
  11495. # ifndef alloca /* predefined by HP cc +Olibcalls */
  11496. void *alloca (size_t);
  11497. # endif
  11498. # endif
  11499. # endif
  11500. # endif
  11501. #endif
  11502. int
  11503. main ()
  11504. {
  11505. char *p = (char *) alloca (1);
  11506. if (p) return 0;
  11507. ;
  11508. return 0;
  11509. }
  11510. _ACEOF
  11511. if ac_fn_c_try_link "$LINENO"; then :
  11512. ac_cv_func_alloca_works=yes
  11513. else
  11514. ac_cv_func_alloca_works=no
  11515. fi
  11516. rm -f core conftest.err conftest.$ac_objext \
  11517. conftest$ac_exeext conftest.$ac_ext
  11518. fi
  11519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  11520. $as_echo "$ac_cv_func_alloca_works" >&6; }
  11521. if test $ac_cv_func_alloca_works = yes; then
  11522. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  11523. else
  11524. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  11525. # that cause trouble. Some versions do not even contain alloca or
  11526. # contain a buggy version. If you still want to use their alloca,
  11527. # use ar to extract alloca.o from them instead of compiling alloca.c.
  11528. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  11529. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  11530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  11531. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  11532. if ${ac_cv_os_cray+:} false; then :
  11533. $as_echo_n "(cached) " >&6
  11534. else
  11535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11536. /* end confdefs.h. */
  11537. #if defined CRAY && ! defined CRAY2
  11538. webecray
  11539. #else
  11540. wenotbecray
  11541. #endif
  11542. _ACEOF
  11543. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11544. $EGREP "webecray" >/dev/null 2>&1; then :
  11545. ac_cv_os_cray=yes
  11546. else
  11547. ac_cv_os_cray=no
  11548. fi
  11549. rm -f conftest*
  11550. fi
  11551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  11552. $as_echo "$ac_cv_os_cray" >&6; }
  11553. if test $ac_cv_os_cray = yes; then
  11554. for ac_func in _getb67 GETB67 getb67; do
  11555. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11556. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11557. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11558. cat >>confdefs.h <<_ACEOF
  11559. #define CRAY_STACKSEG_END $ac_func
  11560. _ACEOF
  11561. break
  11562. fi
  11563. done
  11564. fi
  11565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  11566. $as_echo_n "checking stack direction for C alloca... " >&6; }
  11567. if ${ac_cv_c_stack_direction+:} false; then :
  11568. $as_echo_n "(cached) " >&6
  11569. else
  11570. if test "$cross_compiling" = yes; then :
  11571. ac_cv_c_stack_direction=0
  11572. else
  11573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11574. /* end confdefs.h. */
  11575. $ac_includes_default
  11576. int
  11577. find_stack_direction (int *addr, int depth)
  11578. {
  11579. int dir, dummy = 0;
  11580. if (! addr)
  11581. addr = &dummy;
  11582. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  11583. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  11584. return dir + dummy;
  11585. }
  11586. int
  11587. main (int argc, char **argv)
  11588. {
  11589. return find_stack_direction (0, argc + !argv + 20) < 0;
  11590. }
  11591. _ACEOF
  11592. if ac_fn_c_try_run "$LINENO"; then :
  11593. ac_cv_c_stack_direction=1
  11594. else
  11595. ac_cv_c_stack_direction=-1
  11596. fi
  11597. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11598. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11599. fi
  11600. fi
  11601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  11602. $as_echo "$ac_cv_c_stack_direction" >&6; }
  11603. cat >>confdefs.h <<_ACEOF
  11604. #define STACK_DIRECTION $ac_cv_c_stack_direction
  11605. _ACEOF
  11606. fi
  11607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  11608. $as_echo_n "checking for working memcmp... " >&6; }
  11609. if ${ac_cv_func_memcmp_working+:} false; then :
  11610. $as_echo_n "(cached) " >&6
  11611. else
  11612. if test "$cross_compiling" = yes; then :
  11613. ac_cv_func_memcmp_working=no
  11614. else
  11615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11616. /* end confdefs.h. */
  11617. $ac_includes_default
  11618. int
  11619. main ()
  11620. {
  11621. /* Some versions of memcmp are not 8-bit clean. */
  11622. char c0 = '\100', c1 = '\200', c2 = '\201';
  11623. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11624. return 1;
  11625. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11626. or more and with at least one buffer not starting on a 4-byte boundary.
  11627. William Lewis provided this test program. */
  11628. {
  11629. char foo[21];
  11630. char bar[21];
  11631. int i;
  11632. for (i = 0; i < 4; i++)
  11633. {
  11634. char *a = foo + i;
  11635. char *b = bar + i;
  11636. strcpy (a, "--------01111111");
  11637. strcpy (b, "--------10000000");
  11638. if (memcmp (a, b, 16) >= 0)
  11639. return 1;
  11640. }
  11641. return 0;
  11642. }
  11643. ;
  11644. return 0;
  11645. }
  11646. _ACEOF
  11647. if ac_fn_c_try_run "$LINENO"; then :
  11648. ac_cv_func_memcmp_working=yes
  11649. else
  11650. ac_cv_func_memcmp_working=no
  11651. fi
  11652. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11653. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11654. fi
  11655. fi
  11656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  11657. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  11658. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  11659. *" memcmp.$ac_objext "* ) ;;
  11660. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  11661. ;;
  11662. esac
  11663. ac_config_files="$ac_config_files Makefile m4/Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile doc/libvorbis/Makefile doc/Doxyfile include/Makefile include/vorbis/Makefile examples/Makefile test/Makefile vq/Makefile libvorbis.spec vorbis.pc vorbisenc.pc vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc vorbisfile-uninstalled.pc"
  11664. ac_config_headers="$ac_config_headers config.h"
  11665. cat >confcache <<\_ACEOF
  11666. # This file is a shell script that caches the results of configure
  11667. # tests run on this system so they can be shared between configure
  11668. # scripts and configure runs, see configure's option --config-cache.
  11669. # It is not useful on other systems. If it contains results you don't
  11670. # want to keep, you may remove or edit it.
  11671. #
  11672. # config.status only pays attention to the cache file if you give it
  11673. # the --recheck option to rerun configure.
  11674. #
  11675. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11676. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11677. # following values.
  11678. _ACEOF
  11679. # The following way of writing the cache mishandles newlines in values,
  11680. # but we know of no workaround that is simple, portable, and efficient.
  11681. # So, we kill variables containing newlines.
  11682. # Ultrix sh set writes to stderr and can't be redirected directly,
  11683. # and sets the high bit in the cache file unless we assign to the vars.
  11684. (
  11685. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11686. eval ac_val=\$$ac_var
  11687. case $ac_val in #(
  11688. *${as_nl}*)
  11689. case $ac_var in #(
  11690. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11691. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11692. esac
  11693. case $ac_var in #(
  11694. _ | IFS | as_nl) ;; #(
  11695. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11696. *) { eval $ac_var=; unset $ac_var;} ;;
  11697. esac ;;
  11698. esac
  11699. done
  11700. (set) 2>&1 |
  11701. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11702. *${as_nl}ac_space=\ *)
  11703. # `set' does not quote correctly, so add quotes: double-quote
  11704. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11705. sed -n \
  11706. "s/'/'\\\\''/g;
  11707. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11708. ;; #(
  11709. *)
  11710. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11711. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11712. ;;
  11713. esac |
  11714. sort
  11715. ) |
  11716. sed '
  11717. /^ac_cv_env_/b end
  11718. t clear
  11719. :clear
  11720. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11721. t end
  11722. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11723. :end' >>confcache
  11724. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11725. if test -w "$cache_file"; then
  11726. if test "x$cache_file" != "x/dev/null"; then
  11727. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11728. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11729. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11730. cat confcache >"$cache_file"
  11731. else
  11732. case $cache_file in #(
  11733. */* | ?:*)
  11734. mv -f confcache "$cache_file"$$ &&
  11735. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11736. *)
  11737. mv -f confcache "$cache_file" ;;
  11738. esac
  11739. fi
  11740. fi
  11741. else
  11742. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11743. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11744. fi
  11745. fi
  11746. rm -f confcache
  11747. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11748. # Let make expand exec_prefix.
  11749. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11750. DEFS=-DHAVE_CONFIG_H
  11751. ac_libobjs=
  11752. ac_ltlibobjs=
  11753. U=
  11754. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11755. # 1. Remove the extension, and $U if already installed.
  11756. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11757. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11758. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11759. # will be set to the directory where LIBOBJS objects are built.
  11760. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11761. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11762. done
  11763. LIBOBJS=$ac_libobjs
  11764. LTLIBOBJS=$ac_ltlibobjs
  11765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11766. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11767. if test -n "$am_sleep_pid"; then
  11768. # Hide warnings about reused PIDs.
  11769. wait $am_sleep_pid 2>/dev/null
  11770. fi
  11771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11772. $as_echo "done" >&6; }
  11773. if test -n "$EXEEXT"; then
  11774. am__EXEEXT_TRUE=
  11775. am__EXEEXT_FALSE='#'
  11776. else
  11777. am__EXEEXT_TRUE='#'
  11778. am__EXEEXT_FALSE=
  11779. fi
  11780. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11781. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  11782. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11783. fi
  11784. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11785. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11786. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11787. fi
  11788. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11789. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11790. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11791. fi
  11792. if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
  11793. as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
  11794. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11795. fi
  11796. if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
  11797. as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
  11798. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11799. fi
  11800. if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
  11801. as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
  11802. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11803. fi
  11804. : "${CONFIG_STATUS=./config.status}"
  11805. ac_write_fail=0
  11806. ac_clean_files_save=$ac_clean_files
  11807. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11808. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11809. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11810. as_write_fail=0
  11811. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11812. #! $SHELL
  11813. # Generated by $as_me.
  11814. # Run this file to recreate the current configuration.
  11815. # Compiler output produced by configure, useful for debugging
  11816. # configure, is in config.log if it exists.
  11817. debug=false
  11818. ac_cs_recheck=false
  11819. ac_cs_silent=false
  11820. SHELL=\${CONFIG_SHELL-$SHELL}
  11821. export SHELL
  11822. _ASEOF
  11823. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11824. ## -------------------- ##
  11825. ## M4sh Initialization. ##
  11826. ## -------------------- ##
  11827. # Be more Bourne compatible
  11828. DUALCASE=1; export DUALCASE # for MKS sh
  11829. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11830. emulate sh
  11831. NULLCMD=:
  11832. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11833. # is contrary to our usage. Disable this feature.
  11834. alias -g '${1+"$@"}'='"$@"'
  11835. setopt NO_GLOB_SUBST
  11836. else
  11837. case `(set -o) 2>/dev/null` in #(
  11838. *posix*) :
  11839. set -o posix ;; #(
  11840. *) :
  11841. ;;
  11842. esac
  11843. fi
  11844. as_nl='
  11845. '
  11846. export as_nl
  11847. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11848. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11849. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11850. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11851. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11852. # but without wasting forks for bash or zsh.
  11853. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11854. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11855. as_echo='print -r --'
  11856. as_echo_n='print -rn --'
  11857. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11858. as_echo='printf %s\n'
  11859. as_echo_n='printf %s'
  11860. else
  11861. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11862. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11863. as_echo_n='/usr/ucb/echo -n'
  11864. else
  11865. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11866. as_echo_n_body='eval
  11867. arg=$1;
  11868. case $arg in #(
  11869. *"$as_nl"*)
  11870. expr "X$arg" : "X\\(.*\\)$as_nl";
  11871. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11872. esac;
  11873. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11874. '
  11875. export as_echo_n_body
  11876. as_echo_n='sh -c $as_echo_n_body as_echo'
  11877. fi
  11878. export as_echo_body
  11879. as_echo='sh -c $as_echo_body as_echo'
  11880. fi
  11881. # The user is always right.
  11882. if test "${PATH_SEPARATOR+set}" != set; then
  11883. PATH_SEPARATOR=:
  11884. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11885. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11886. PATH_SEPARATOR=';'
  11887. }
  11888. fi
  11889. # IFS
  11890. # We need space, tab and new line, in precisely that order. Quoting is
  11891. # there to prevent editors from complaining about space-tab.
  11892. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11893. # splitting by setting IFS to empty value.)
  11894. IFS=" "" $as_nl"
  11895. # Find who we are. Look in the path if we contain no directory separator.
  11896. as_myself=
  11897. case $0 in #((
  11898. *[\\/]* ) as_myself=$0 ;;
  11899. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11900. for as_dir in $PATH
  11901. do
  11902. IFS=$as_save_IFS
  11903. test -z "$as_dir" && as_dir=.
  11904. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11905. done
  11906. IFS=$as_save_IFS
  11907. ;;
  11908. esac
  11909. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11910. # in which case we are not to be found in the path.
  11911. if test "x$as_myself" = x; then
  11912. as_myself=$0
  11913. fi
  11914. if test ! -f "$as_myself"; then
  11915. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11916. exit 1
  11917. fi
  11918. # Unset variables that we do not need and which cause bugs (e.g. in
  11919. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11920. # suppresses any "Segmentation fault" message there. '((' could
  11921. # trigger a bug in pdksh 5.2.14.
  11922. for as_var in BASH_ENV ENV MAIL MAILPATH
  11923. do eval test x\${$as_var+set} = xset \
  11924. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11925. done
  11926. PS1='$ '
  11927. PS2='> '
  11928. PS4='+ '
  11929. # NLS nuisances.
  11930. LC_ALL=C
  11931. export LC_ALL
  11932. LANGUAGE=C
  11933. export LANGUAGE
  11934. # CDPATH.
  11935. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11936. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11937. # ----------------------------------------
  11938. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11939. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11940. # script with STATUS, using 1 if that was 0.
  11941. as_fn_error ()
  11942. {
  11943. as_status=$1; test $as_status -eq 0 && as_status=1
  11944. if test "$4"; then
  11945. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11946. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11947. fi
  11948. $as_echo "$as_me: error: $2" >&2
  11949. as_fn_exit $as_status
  11950. } # as_fn_error
  11951. # as_fn_set_status STATUS
  11952. # -----------------------
  11953. # Set $? to STATUS, without forking.
  11954. as_fn_set_status ()
  11955. {
  11956. return $1
  11957. } # as_fn_set_status
  11958. # as_fn_exit STATUS
  11959. # -----------------
  11960. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11961. as_fn_exit ()
  11962. {
  11963. set +e
  11964. as_fn_set_status $1
  11965. exit $1
  11966. } # as_fn_exit
  11967. # as_fn_unset VAR
  11968. # ---------------
  11969. # Portably unset VAR.
  11970. as_fn_unset ()
  11971. {
  11972. { eval $1=; unset $1;}
  11973. }
  11974. as_unset=as_fn_unset
  11975. # as_fn_append VAR VALUE
  11976. # ----------------------
  11977. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11978. # advantage of any shell optimizations that allow amortized linear growth over
  11979. # repeated appends, instead of the typical quadratic growth present in naive
  11980. # implementations.
  11981. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11982. eval 'as_fn_append ()
  11983. {
  11984. eval $1+=\$2
  11985. }'
  11986. else
  11987. as_fn_append ()
  11988. {
  11989. eval $1=\$$1\$2
  11990. }
  11991. fi # as_fn_append
  11992. # as_fn_arith ARG...
  11993. # ------------------
  11994. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11995. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11996. # must be portable across $(()) and expr.
  11997. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11998. eval 'as_fn_arith ()
  11999. {
  12000. as_val=$(( $* ))
  12001. }'
  12002. else
  12003. as_fn_arith ()
  12004. {
  12005. as_val=`expr "$@" || test $? -eq 1`
  12006. }
  12007. fi # as_fn_arith
  12008. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12009. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12010. as_expr=expr
  12011. else
  12012. as_expr=false
  12013. fi
  12014. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12015. as_basename=basename
  12016. else
  12017. as_basename=false
  12018. fi
  12019. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12020. as_dirname=dirname
  12021. else
  12022. as_dirname=false
  12023. fi
  12024. as_me=`$as_basename -- "$0" ||
  12025. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12026. X"$0" : 'X\(//\)$' \| \
  12027. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12028. $as_echo X/"$0" |
  12029. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12030. s//\1/
  12031. q
  12032. }
  12033. /^X\/\(\/\/\)$/{
  12034. s//\1/
  12035. q
  12036. }
  12037. /^X\/\(\/\).*/{
  12038. s//\1/
  12039. q
  12040. }
  12041. s/.*/./; q'`
  12042. # Avoid depending upon Character Ranges.
  12043. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12044. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12045. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12046. as_cr_digits='0123456789'
  12047. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12048. ECHO_C= ECHO_N= ECHO_T=
  12049. case `echo -n x` in #(((((
  12050. -n*)
  12051. case `echo 'xy\c'` in
  12052. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12053. xy) ECHO_C='\c';;
  12054. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12055. ECHO_T=' ';;
  12056. esac;;
  12057. *)
  12058. ECHO_N='-n';;
  12059. esac
  12060. rm -f conf$$ conf$$.exe conf$$.file
  12061. if test -d conf$$.dir; then
  12062. rm -f conf$$.dir/conf$$.file
  12063. else
  12064. rm -f conf$$.dir
  12065. mkdir conf$$.dir 2>/dev/null
  12066. fi
  12067. if (echo >conf$$.file) 2>/dev/null; then
  12068. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12069. as_ln_s='ln -s'
  12070. # ... but there are two gotchas:
  12071. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12072. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12073. # In both cases, we have to default to `cp -pR'.
  12074. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12075. as_ln_s='cp -pR'
  12076. elif ln conf$$.file conf$$ 2>/dev/null; then
  12077. as_ln_s=ln
  12078. else
  12079. as_ln_s='cp -pR'
  12080. fi
  12081. else
  12082. as_ln_s='cp -pR'
  12083. fi
  12084. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12085. rmdir conf$$.dir 2>/dev/null
  12086. # as_fn_mkdir_p
  12087. # -------------
  12088. # Create "$as_dir" as a directory, including parents if necessary.
  12089. as_fn_mkdir_p ()
  12090. {
  12091. case $as_dir in #(
  12092. -*) as_dir=./$as_dir;;
  12093. esac
  12094. test -d "$as_dir" || eval $as_mkdir_p || {
  12095. as_dirs=
  12096. while :; do
  12097. case $as_dir in #(
  12098. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12099. *) as_qdir=$as_dir;;
  12100. esac
  12101. as_dirs="'$as_qdir' $as_dirs"
  12102. as_dir=`$as_dirname -- "$as_dir" ||
  12103. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12104. X"$as_dir" : 'X\(//\)[^/]' \| \
  12105. X"$as_dir" : 'X\(//\)$' \| \
  12106. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12107. $as_echo X"$as_dir" |
  12108. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12109. s//\1/
  12110. q
  12111. }
  12112. /^X\(\/\/\)[^/].*/{
  12113. s//\1/
  12114. q
  12115. }
  12116. /^X\(\/\/\)$/{
  12117. s//\1/
  12118. q
  12119. }
  12120. /^X\(\/\).*/{
  12121. s//\1/
  12122. q
  12123. }
  12124. s/.*/./; q'`
  12125. test -d "$as_dir" && break
  12126. done
  12127. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12128. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12129. } # as_fn_mkdir_p
  12130. if mkdir -p . 2>/dev/null; then
  12131. as_mkdir_p='mkdir -p "$as_dir"'
  12132. else
  12133. test -d ./-p && rmdir ./-p
  12134. as_mkdir_p=false
  12135. fi
  12136. # as_fn_executable_p FILE
  12137. # -----------------------
  12138. # Test if FILE is an executable regular file.
  12139. as_fn_executable_p ()
  12140. {
  12141. test -f "$1" && test -x "$1"
  12142. } # as_fn_executable_p
  12143. as_test_x='test -x'
  12144. as_executable_p=as_fn_executable_p
  12145. # Sed expression to map a string onto a valid CPP name.
  12146. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12147. # Sed expression to map a string onto a valid variable name.
  12148. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12149. exec 6>&1
  12150. ## ----------------------------------- ##
  12151. ## Main body of $CONFIG_STATUS script. ##
  12152. ## ----------------------------------- ##
  12153. _ASEOF
  12154. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12155. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12156. # Save the log message, to keep $0 and so on meaningful, and to
  12157. # report actual input values of CONFIG_FILES etc. instead of their
  12158. # values after options handling.
  12159. ac_log="
  12160. This file was extended by libvorbis $as_me 1.3.5, which was
  12161. generated by GNU Autoconf 2.69. Invocation command line was
  12162. CONFIG_FILES = $CONFIG_FILES
  12163. CONFIG_HEADERS = $CONFIG_HEADERS
  12164. CONFIG_LINKS = $CONFIG_LINKS
  12165. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12166. $ $0 $@
  12167. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12168. "
  12169. _ACEOF
  12170. case $ac_config_files in *"
  12171. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12172. esac
  12173. case $ac_config_headers in *"
  12174. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12175. esac
  12176. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12177. # Files that config.status was made for.
  12178. config_files="$ac_config_files"
  12179. config_headers="$ac_config_headers"
  12180. config_commands="$ac_config_commands"
  12181. _ACEOF
  12182. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12183. ac_cs_usage="\
  12184. \`$as_me' instantiates files and other configuration actions
  12185. from templates according to the current configuration. Unless the files
  12186. and actions are specified as TAGs, all are instantiated by default.
  12187. Usage: $0 [OPTION]... [TAG]...
  12188. -h, --help print this help, then exit
  12189. -V, --version print version number and configuration settings, then exit
  12190. --config print configuration, then exit
  12191. -q, --quiet, --silent
  12192. do not print progress messages
  12193. -d, --debug don't remove temporary files
  12194. --recheck update $as_me by reconfiguring in the same conditions
  12195. --file=FILE[:TEMPLATE]
  12196. instantiate the configuration file FILE
  12197. --header=FILE[:TEMPLATE]
  12198. instantiate the configuration header FILE
  12199. Configuration files:
  12200. $config_files
  12201. Configuration headers:
  12202. $config_headers
  12203. Configuration commands:
  12204. $config_commands
  12205. Report bugs to <[email protected]>."
  12206. _ACEOF
  12207. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12208. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12209. ac_cs_version="\\
  12210. libvorbis config.status 1.3.5
  12211. configured by $0, generated by GNU Autoconf 2.69,
  12212. with options \\"\$ac_cs_config\\"
  12213. Copyright (C) 2012 Free Software Foundation, Inc.
  12214. This config.status script is free software; the Free Software Foundation
  12215. gives unlimited permission to copy, distribute and modify it."
  12216. ac_pwd='$ac_pwd'
  12217. srcdir='$srcdir'
  12218. INSTALL='$INSTALL'
  12219. MKDIR_P='$MKDIR_P'
  12220. AWK='$AWK'
  12221. test -n "\$AWK" || AWK=awk
  12222. _ACEOF
  12223. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12224. # The default lists apply if the user does not specify any file.
  12225. ac_need_defaults=:
  12226. while test $# != 0
  12227. do
  12228. case $1 in
  12229. --*=?*)
  12230. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12231. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12232. ac_shift=:
  12233. ;;
  12234. --*=)
  12235. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12236. ac_optarg=
  12237. ac_shift=:
  12238. ;;
  12239. *)
  12240. ac_option=$1
  12241. ac_optarg=$2
  12242. ac_shift=shift
  12243. ;;
  12244. esac
  12245. case $ac_option in
  12246. # Handling of the options.
  12247. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12248. ac_cs_recheck=: ;;
  12249. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12250. $as_echo "$ac_cs_version"; exit ;;
  12251. --config | --confi | --conf | --con | --co | --c )
  12252. $as_echo "$ac_cs_config"; exit ;;
  12253. --debug | --debu | --deb | --de | --d | -d )
  12254. debug=: ;;
  12255. --file | --fil | --fi | --f )
  12256. $ac_shift
  12257. case $ac_optarg in
  12258. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12259. '') as_fn_error $? "missing file argument" ;;
  12260. esac
  12261. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12262. ac_need_defaults=false;;
  12263. --header | --heade | --head | --hea )
  12264. $ac_shift
  12265. case $ac_optarg in
  12266. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12267. esac
  12268. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12269. ac_need_defaults=false;;
  12270. --he | --h)
  12271. # Conflict between --help and --header
  12272. as_fn_error $? "ambiguous option: \`$1'
  12273. Try \`$0 --help' for more information.";;
  12274. --help | --hel | -h )
  12275. $as_echo "$ac_cs_usage"; exit ;;
  12276. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12277. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12278. ac_cs_silent=: ;;
  12279. # This is an error.
  12280. -*) as_fn_error $? "unrecognized option: \`$1'
  12281. Try \`$0 --help' for more information." ;;
  12282. *) as_fn_append ac_config_targets " $1"
  12283. ac_need_defaults=false ;;
  12284. esac
  12285. shift
  12286. done
  12287. ac_configure_extra_args=
  12288. if $ac_cs_silent; then
  12289. exec 6>/dev/null
  12290. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12291. fi
  12292. _ACEOF
  12293. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12294. if \$ac_cs_recheck; then
  12295. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12296. shift
  12297. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12298. CONFIG_SHELL='$SHELL'
  12299. export CONFIG_SHELL
  12300. exec "\$@"
  12301. fi
  12302. _ACEOF
  12303. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12304. exec 5>>config.log
  12305. {
  12306. echo
  12307. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12308. ## Running $as_me. ##
  12309. _ASBOX
  12310. $as_echo "$ac_log"
  12311. } >&5
  12312. _ACEOF
  12313. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12314. #
  12315. # INIT-COMMANDS
  12316. #
  12317. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12318. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12319. # if CDPATH is set.
  12320. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12321. sed_quote_subst='$sed_quote_subst'
  12322. double_quote_subst='$double_quote_subst'
  12323. delay_variable_subst='$delay_variable_subst'
  12324. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  12325. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  12326. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12327. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12328. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12329. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12330. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12331. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12332. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12333. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  12334. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12335. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12336. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  12337. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12338. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12339. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12340. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12341. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12342. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12343. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12344. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12345. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12346. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12347. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12348. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12349. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12350. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12351. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12352. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12353. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12354. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12355. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12356. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12357. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  12358. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  12359. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12360. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12361. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12362. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12363. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  12364. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  12365. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  12366. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12367. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12368. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  12369. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12370. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12371. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12372. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12373. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12374. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12375. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12376. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12377. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12378. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12379. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12380. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12381. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  12382. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12383. 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"`'
  12384. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  12385. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  12386. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  12387. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  12388. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12389. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12390. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12391. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12392. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12393. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12394. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12395. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12396. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  12397. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12398. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12399. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12400. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12401. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12402. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12403. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12404. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12405. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12406. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12407. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12408. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12409. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12410. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12411. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12412. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12413. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12414. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12415. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12416. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12417. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12418. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12419. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12420. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12421. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12422. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12423. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12424. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12425. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12426. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12427. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12428. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12429. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12430. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12431. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12432. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12433. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  12434. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12435. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12436. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12437. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12438. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12439. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12440. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12441. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12442. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12443. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12444. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12445. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12446. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12447. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12448. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12449. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12450. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12451. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12452. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  12453. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  12454. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12455. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12456. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12457. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12458. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12459. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12460. LTCC='$LTCC'
  12461. LTCFLAGS='$LTCFLAGS'
  12462. compiler='$compiler_DEFAULT'
  12463. # A function that is used when there is no print builtin or printf.
  12464. func_fallback_echo ()
  12465. {
  12466. eval 'cat <<_LTECHO_EOF
  12467. \$1
  12468. _LTECHO_EOF'
  12469. }
  12470. # Quote evaled strings.
  12471. for var in AS \
  12472. DLLTOOL \
  12473. OBJDUMP \
  12474. SHELL \
  12475. ECHO \
  12476. PATH_SEPARATOR \
  12477. SED \
  12478. GREP \
  12479. EGREP \
  12480. FGREP \
  12481. LD \
  12482. NM \
  12483. LN_S \
  12484. lt_SP2NL \
  12485. lt_NL2SP \
  12486. reload_flag \
  12487. deplibs_check_method \
  12488. file_magic_cmd \
  12489. file_magic_glob \
  12490. want_nocaseglob \
  12491. sharedlib_from_linklib_cmd \
  12492. AR \
  12493. AR_FLAGS \
  12494. archiver_list_spec \
  12495. STRIP \
  12496. RANLIB \
  12497. CC \
  12498. CFLAGS \
  12499. compiler \
  12500. lt_cv_sys_global_symbol_pipe \
  12501. lt_cv_sys_global_symbol_to_cdecl \
  12502. lt_cv_sys_global_symbol_to_import \
  12503. lt_cv_sys_global_symbol_to_c_name_address \
  12504. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12505. lt_cv_nm_interface \
  12506. nm_file_list_spec \
  12507. lt_cv_truncate_bin \
  12508. lt_prog_compiler_no_builtin_flag \
  12509. lt_prog_compiler_pic \
  12510. lt_prog_compiler_wl \
  12511. lt_prog_compiler_static \
  12512. lt_cv_prog_compiler_c_o \
  12513. need_locks \
  12514. MANIFEST_TOOL \
  12515. DSYMUTIL \
  12516. NMEDIT \
  12517. LIPO \
  12518. OTOOL \
  12519. OTOOL64 \
  12520. shrext_cmds \
  12521. export_dynamic_flag_spec \
  12522. whole_archive_flag_spec \
  12523. compiler_needs_object \
  12524. with_gnu_ld \
  12525. allow_undefined_flag \
  12526. no_undefined_flag \
  12527. hardcode_libdir_flag_spec \
  12528. hardcode_libdir_separator \
  12529. exclude_expsyms \
  12530. include_expsyms \
  12531. file_list_spec \
  12532. variables_saved_for_relink \
  12533. libname_spec \
  12534. library_names_spec \
  12535. soname_spec \
  12536. install_override_mode \
  12537. finish_eval \
  12538. old_striplib \
  12539. striplib; do
  12540. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12541. *[\\\\\\\`\\"\\\$]*)
  12542. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  12543. ;;
  12544. *)
  12545. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12546. ;;
  12547. esac
  12548. done
  12549. # Double-quote double-evaled strings.
  12550. for var in reload_cmds \
  12551. old_postinstall_cmds \
  12552. old_postuninstall_cmds \
  12553. old_archive_cmds \
  12554. extract_expsyms_cmds \
  12555. old_archive_from_new_cmds \
  12556. old_archive_from_expsyms_cmds \
  12557. archive_cmds \
  12558. archive_expsym_cmds \
  12559. module_cmds \
  12560. module_expsym_cmds \
  12561. export_symbols_cmds \
  12562. prelink_cmds \
  12563. postlink_cmds \
  12564. postinstall_cmds \
  12565. postuninstall_cmds \
  12566. finish_cmds \
  12567. sys_lib_search_path_spec \
  12568. configure_time_dlsearch_path \
  12569. configure_time_lt_sys_library_path; do
  12570. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12571. *[\\\\\\\`\\"\\\$]*)
  12572. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  12573. ;;
  12574. *)
  12575. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12576. ;;
  12577. esac
  12578. done
  12579. ac_aux_dir='$ac_aux_dir'
  12580. # See if we are running on zsh, and set the options that allow our
  12581. # commands through without removal of \ escapes INIT.
  12582. if test -n "\${ZSH_VERSION+set}"; then
  12583. setopt NO_GLOB_SUBST
  12584. fi
  12585. PACKAGE='$PACKAGE'
  12586. VERSION='$VERSION'
  12587. RM='$RM'
  12588. ofile='$ofile'
  12589. _ACEOF
  12590. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12591. # Handling of arguments.
  12592. for ac_config_target in $ac_config_targets
  12593. do
  12594. case $ac_config_target in
  12595. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12596. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12597. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12598. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  12599. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  12600. "lib/modes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;;
  12601. "lib/books/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;;
  12602. "lib/books/coupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;;
  12603. "lib/books/uncoupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;;
  12604. "lib/books/floor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;;
  12605. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12606. "doc/vorbisfile/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;;
  12607. "doc/vorbisenc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;;
  12608. "doc/libvorbis/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libvorbis/Makefile" ;;
  12609. "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
  12610. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  12611. "include/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;;
  12612. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  12613. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  12614. "vq/Makefile") CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;;
  12615. "libvorbis.spec") CONFIG_FILES="$CONFIG_FILES libvorbis.spec" ;;
  12616. "vorbis.pc") CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;;
  12617. "vorbisenc.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;;
  12618. "vorbisfile.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;;
  12619. "vorbis-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbis-uninstalled.pc" ;;
  12620. "vorbisenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc-uninstalled.pc" ;;
  12621. "vorbisfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile-uninstalled.pc" ;;
  12622. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12623. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12624. esac
  12625. done
  12626. # If the user did not use the arguments to specify the items to instantiate,
  12627. # then the envvar interface is used. Set only those that are not.
  12628. # We use the long form for the default assignment because of an extremely
  12629. # bizarre bug on SunOS 4.1.3.
  12630. if $ac_need_defaults; then
  12631. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12632. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12633. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12634. fi
  12635. # Have a temporary directory for convenience. Make it in the build tree
  12636. # simply because there is no reason against having it here, and in addition,
  12637. # creating and moving files from /tmp can sometimes cause problems.
  12638. # Hook for its removal unless debugging.
  12639. # Note that there is a small window in which the directory will not be cleaned:
  12640. # after its creation but before its name has been assigned to `$tmp'.
  12641. $debug ||
  12642. {
  12643. tmp= ac_tmp=
  12644. trap 'exit_status=$?
  12645. : "${ac_tmp:=$tmp}"
  12646. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12647. ' 0
  12648. trap 'as_fn_exit 1' 1 2 13 15
  12649. }
  12650. # Create a (secure) tmp directory for tmp files.
  12651. {
  12652. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12653. test -d "$tmp"
  12654. } ||
  12655. {
  12656. tmp=./conf$$-$RANDOM
  12657. (umask 077 && mkdir "$tmp")
  12658. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12659. ac_tmp=$tmp
  12660. # Set up the scripts for CONFIG_FILES section.
  12661. # No need to generate them if there are no CONFIG_FILES.
  12662. # This happens for instance with `./config.status config.h'.
  12663. if test -n "$CONFIG_FILES"; then
  12664. ac_cr=`echo X | tr X '\015'`
  12665. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12666. # But we know of no other shell where ac_cr would be empty at this
  12667. # point, so we can use a bashism as a fallback.
  12668. if test "x$ac_cr" = x; then
  12669. eval ac_cr=\$\'\\r\'
  12670. fi
  12671. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12672. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12673. ac_cs_awk_cr='\\r'
  12674. else
  12675. ac_cs_awk_cr=$ac_cr
  12676. fi
  12677. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12678. _ACEOF
  12679. {
  12680. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12681. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12682. echo "_ACEOF"
  12683. } >conf$$subs.sh ||
  12684. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12685. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12686. ac_delim='%!_!# '
  12687. for ac_last_try in false false false false false :; do
  12688. . ./conf$$subs.sh ||
  12689. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12690. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12691. if test $ac_delim_n = $ac_delim_num; then
  12692. break
  12693. elif $ac_last_try; then
  12694. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12695. else
  12696. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12697. fi
  12698. done
  12699. rm -f conf$$subs.sh
  12700. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12701. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12702. _ACEOF
  12703. sed -n '
  12704. h
  12705. s/^/S["/; s/!.*/"]=/
  12706. p
  12707. g
  12708. s/^[^!]*!//
  12709. :repl
  12710. t repl
  12711. s/'"$ac_delim"'$//
  12712. t delim
  12713. :nl
  12714. h
  12715. s/\(.\{148\}\)..*/\1/
  12716. t more1
  12717. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12718. p
  12719. n
  12720. b repl
  12721. :more1
  12722. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12723. p
  12724. g
  12725. s/.\{148\}//
  12726. t nl
  12727. :delim
  12728. h
  12729. s/\(.\{148\}\)..*/\1/
  12730. t more2
  12731. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12732. p
  12733. b
  12734. :more2
  12735. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12736. p
  12737. g
  12738. s/.\{148\}//
  12739. t delim
  12740. ' <conf$$subs.awk | sed '
  12741. /^[^""]/{
  12742. N
  12743. s/\n//
  12744. }
  12745. ' >>$CONFIG_STATUS || ac_write_fail=1
  12746. rm -f conf$$subs.awk
  12747. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12748. _ACAWK
  12749. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12750. for (key in S) S_is_set[key] = 1
  12751. FS = ""
  12752. }
  12753. {
  12754. line = $ 0
  12755. nfields = split(line, field, "@")
  12756. substed = 0
  12757. len = length(field[1])
  12758. for (i = 2; i < nfields; i++) {
  12759. key = field[i]
  12760. keylen = length(key)
  12761. if (S_is_set[key]) {
  12762. value = S[key]
  12763. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12764. len += length(value) + length(field[++i])
  12765. substed = 1
  12766. } else
  12767. len += 1 + keylen
  12768. }
  12769. print line
  12770. }
  12771. _ACAWK
  12772. _ACEOF
  12773. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12774. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12775. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12776. else
  12777. cat
  12778. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12779. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12780. _ACEOF
  12781. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12782. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12783. # trailing colons and then remove the whole line if VPATH becomes empty
  12784. # (actually we leave an empty line to preserve line numbers).
  12785. if test "x$srcdir" = x.; then
  12786. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12787. h
  12788. s///
  12789. s/^/:/
  12790. s/[ ]*$/:/
  12791. s/:\$(srcdir):/:/g
  12792. s/:\${srcdir}:/:/g
  12793. s/:@srcdir@:/:/g
  12794. s/^:*//
  12795. s/:*$//
  12796. x
  12797. s/\(=[ ]*\).*/\1/
  12798. G
  12799. s/\n//
  12800. s/^[^=]*=[ ]*$//
  12801. }'
  12802. fi
  12803. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12804. fi # test -n "$CONFIG_FILES"
  12805. # Set up the scripts for CONFIG_HEADERS section.
  12806. # No need to generate them if there are no CONFIG_HEADERS.
  12807. # This happens for instance with `./config.status Makefile'.
  12808. if test -n "$CONFIG_HEADERS"; then
  12809. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12810. BEGIN {
  12811. _ACEOF
  12812. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12813. # here-document in config.status, that substitutes the proper values into
  12814. # config.h.in to produce config.h.
  12815. # Create a delimiter string that does not exist in confdefs.h, to ease
  12816. # handling of long lines.
  12817. ac_delim='%!_!# '
  12818. for ac_last_try in false false :; do
  12819. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12820. if test -z "$ac_tt"; then
  12821. break
  12822. elif $ac_last_try; then
  12823. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12824. else
  12825. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12826. fi
  12827. done
  12828. # For the awk script, D is an array of macro values keyed by name,
  12829. # likewise P contains macro parameters if any. Preserve backslash
  12830. # newline sequences.
  12831. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12832. sed -n '
  12833. s/.\{148\}/&'"$ac_delim"'/g
  12834. t rset
  12835. :rset
  12836. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12837. t def
  12838. d
  12839. :def
  12840. s/\\$//
  12841. t bsnl
  12842. s/["\\]/\\&/g
  12843. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12844. D["\1"]=" \3"/p
  12845. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12846. d
  12847. :bsnl
  12848. s/["\\]/\\&/g
  12849. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12850. D["\1"]=" \3\\\\\\n"\\/p
  12851. t cont
  12852. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12853. t cont
  12854. d
  12855. :cont
  12856. n
  12857. s/.\{148\}/&'"$ac_delim"'/g
  12858. t clear
  12859. :clear
  12860. s/\\$//
  12861. t bsnlc
  12862. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12863. d
  12864. :bsnlc
  12865. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12866. b cont
  12867. ' <confdefs.h | sed '
  12868. s/'"$ac_delim"'/"\\\
  12869. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12870. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12871. for (key in D) D_is_set[key] = 1
  12872. FS = ""
  12873. }
  12874. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12875. line = \$ 0
  12876. split(line, arg, " ")
  12877. if (arg[1] == "#") {
  12878. defundef = arg[2]
  12879. mac1 = arg[3]
  12880. } else {
  12881. defundef = substr(arg[1], 2)
  12882. mac1 = arg[2]
  12883. }
  12884. split(mac1, mac2, "(") #)
  12885. macro = mac2[1]
  12886. prefix = substr(line, 1, index(line, defundef) - 1)
  12887. if (D_is_set[macro]) {
  12888. # Preserve the white space surrounding the "#".
  12889. print prefix "define", macro P[macro] D[macro]
  12890. next
  12891. } else {
  12892. # Replace #undef with comments. This is necessary, for example,
  12893. # in the case of _POSIX_SOURCE, which is predefined and required
  12894. # on some systems where configure will not decide to define it.
  12895. if (defundef == "undef") {
  12896. print "/*", prefix defundef, macro, "*/"
  12897. next
  12898. }
  12899. }
  12900. }
  12901. { print }
  12902. _ACAWK
  12903. _ACEOF
  12904. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12905. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12906. fi # test -n "$CONFIG_HEADERS"
  12907. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12908. shift
  12909. for ac_tag
  12910. do
  12911. case $ac_tag in
  12912. :[FHLC]) ac_mode=$ac_tag; continue;;
  12913. esac
  12914. case $ac_mode$ac_tag in
  12915. :[FHL]*:*);;
  12916. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12917. :[FH]-) ac_tag=-:-;;
  12918. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12919. esac
  12920. ac_save_IFS=$IFS
  12921. IFS=:
  12922. set x $ac_tag
  12923. IFS=$ac_save_IFS
  12924. shift
  12925. ac_file=$1
  12926. shift
  12927. case $ac_mode in
  12928. :L) ac_source=$1;;
  12929. :[FH])
  12930. ac_file_inputs=
  12931. for ac_f
  12932. do
  12933. case $ac_f in
  12934. -) ac_f="$ac_tmp/stdin";;
  12935. *) # Look for the file first in the build tree, then in the source tree
  12936. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12937. # because $ac_f cannot contain `:'.
  12938. test -f "$ac_f" ||
  12939. case $ac_f in
  12940. [\\/$]*) false;;
  12941. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12942. esac ||
  12943. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12944. esac
  12945. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12946. as_fn_append ac_file_inputs " '$ac_f'"
  12947. done
  12948. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12949. # use $as_me), people would be surprised to read:
  12950. # /* config.h. Generated by config.status. */
  12951. configure_input='Generated from '`
  12952. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12953. `' by configure.'
  12954. if test x"$ac_file" != x-; then
  12955. configure_input="$ac_file. $configure_input"
  12956. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12957. $as_echo "$as_me: creating $ac_file" >&6;}
  12958. fi
  12959. # Neutralize special characters interpreted by sed in replacement strings.
  12960. case $configure_input in #(
  12961. *\&* | *\|* | *\\* )
  12962. ac_sed_conf_input=`$as_echo "$configure_input" |
  12963. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12964. *) ac_sed_conf_input=$configure_input;;
  12965. esac
  12966. case $ac_tag in
  12967. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12968. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12969. esac
  12970. ;;
  12971. esac
  12972. ac_dir=`$as_dirname -- "$ac_file" ||
  12973. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12974. X"$ac_file" : 'X\(//\)[^/]' \| \
  12975. X"$ac_file" : 'X\(//\)$' \| \
  12976. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12977. $as_echo X"$ac_file" |
  12978. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12979. s//\1/
  12980. q
  12981. }
  12982. /^X\(\/\/\)[^/].*/{
  12983. s//\1/
  12984. q
  12985. }
  12986. /^X\(\/\/\)$/{
  12987. s//\1/
  12988. q
  12989. }
  12990. /^X\(\/\).*/{
  12991. s//\1/
  12992. q
  12993. }
  12994. s/.*/./; q'`
  12995. as_dir="$ac_dir"; as_fn_mkdir_p
  12996. ac_builddir=.
  12997. case "$ac_dir" in
  12998. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12999. *)
  13000. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13001. # A ".." for each directory in $ac_dir_suffix.
  13002. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13003. case $ac_top_builddir_sub in
  13004. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13005. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13006. esac ;;
  13007. esac
  13008. ac_abs_top_builddir=$ac_pwd
  13009. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13010. # for backward compatibility:
  13011. ac_top_builddir=$ac_top_build_prefix
  13012. case $srcdir in
  13013. .) # We are building in place.
  13014. ac_srcdir=.
  13015. ac_top_srcdir=$ac_top_builddir_sub
  13016. ac_abs_top_srcdir=$ac_pwd ;;
  13017. [\\/]* | ?:[\\/]* ) # Absolute name.
  13018. ac_srcdir=$srcdir$ac_dir_suffix;
  13019. ac_top_srcdir=$srcdir
  13020. ac_abs_top_srcdir=$srcdir ;;
  13021. *) # Relative name.
  13022. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13023. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13024. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13025. esac
  13026. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13027. case $ac_mode in
  13028. :F)
  13029. #
  13030. # CONFIG_FILE
  13031. #
  13032. case $INSTALL in
  13033. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13034. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13035. esac
  13036. ac_MKDIR_P=$MKDIR_P
  13037. case $MKDIR_P in
  13038. [\\/$]* | ?:[\\/]* ) ;;
  13039. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13040. esac
  13041. _ACEOF
  13042. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13043. # If the template does not know about datarootdir, expand it.
  13044. # FIXME: This hack should be removed a few years after 2.60.
  13045. ac_datarootdir_hack=; ac_datarootdir_seen=
  13046. ac_sed_dataroot='
  13047. /datarootdir/ {
  13048. p
  13049. q
  13050. }
  13051. /@datadir@/p
  13052. /@docdir@/p
  13053. /@infodir@/p
  13054. /@localedir@/p
  13055. /@mandir@/p'
  13056. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13057. *datarootdir*) ac_datarootdir_seen=yes;;
  13058. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13060. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13061. _ACEOF
  13062. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13063. ac_datarootdir_hack='
  13064. s&@datadir@&$datadir&g
  13065. s&@docdir@&$docdir&g
  13066. s&@infodir@&$infodir&g
  13067. s&@localedir@&$localedir&g
  13068. s&@mandir@&$mandir&g
  13069. s&\\\${datarootdir}&$datarootdir&g' ;;
  13070. esac
  13071. _ACEOF
  13072. # Neutralize VPATH when `$srcdir' = `.'.
  13073. # Shell code in configure.ac might set extrasub.
  13074. # FIXME: do we really want to maintain this feature?
  13075. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13076. ac_sed_extra="$ac_vpsub
  13077. $extrasub
  13078. _ACEOF
  13079. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13080. :t
  13081. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13082. s|@configure_input@|$ac_sed_conf_input|;t t
  13083. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13084. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13085. s&@srcdir@&$ac_srcdir&;t t
  13086. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13087. s&@top_srcdir@&$ac_top_srcdir&;t t
  13088. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13089. s&@builddir@&$ac_builddir&;t t
  13090. s&@abs_builddir@&$ac_abs_builddir&;t t
  13091. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13092. s&@INSTALL@&$ac_INSTALL&;t t
  13093. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13094. $ac_datarootdir_hack
  13095. "
  13096. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13097. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13098. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13099. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13100. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13101. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13103. which seems to be undefined. Please make sure it is defined" >&5
  13104. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13105. which seems to be undefined. Please make sure it is defined" >&2;}
  13106. rm -f "$ac_tmp/stdin"
  13107. case $ac_file in
  13108. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13109. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13110. esac \
  13111. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13112. ;;
  13113. :H)
  13114. #
  13115. # CONFIG_HEADER
  13116. #
  13117. if test x"$ac_file" != x-; then
  13118. {
  13119. $as_echo "/* $configure_input */" \
  13120. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13121. } >"$ac_tmp/config.h" \
  13122. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13123. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13124. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13125. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13126. else
  13127. rm -f "$ac_file"
  13128. mv "$ac_tmp/config.h" "$ac_file" \
  13129. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13130. fi
  13131. else
  13132. $as_echo "/* $configure_input */" \
  13133. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13134. || as_fn_error $? "could not create -" "$LINENO" 5
  13135. fi
  13136. # Compute "$ac_file"'s index in $config_headers.
  13137. _am_arg="$ac_file"
  13138. _am_stamp_count=1
  13139. for _am_header in $config_headers :; do
  13140. case $_am_header in
  13141. $_am_arg | $_am_arg:* )
  13142. break ;;
  13143. * )
  13144. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13145. esac
  13146. done
  13147. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13148. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13149. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13150. X"$_am_arg" : 'X\(//\)$' \| \
  13151. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13152. $as_echo X"$_am_arg" |
  13153. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13154. s//\1/
  13155. q
  13156. }
  13157. /^X\(\/\/\)[^/].*/{
  13158. s//\1/
  13159. q
  13160. }
  13161. /^X\(\/\/\)$/{
  13162. s//\1/
  13163. q
  13164. }
  13165. /^X\(\/\).*/{
  13166. s//\1/
  13167. q
  13168. }
  13169. s/.*/./; q'`/stamp-h$_am_stamp_count
  13170. ;;
  13171. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13172. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13173. ;;
  13174. esac
  13175. case $ac_file$ac_mode in
  13176. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13177. # Older Autoconf quotes --file arguments for eval, but not when files
  13178. # are listed without --file. Let's play safe and only enable the eval
  13179. # if we detect the quoting.
  13180. case $CONFIG_FILES in
  13181. *\'*) eval set x "$CONFIG_FILES" ;;
  13182. *) set x $CONFIG_FILES ;;
  13183. esac
  13184. shift
  13185. for mf
  13186. do
  13187. # Strip MF so we end up with the name of the file.
  13188. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13189. # Check whether this is an Automake generated Makefile or not.
  13190. # We used to match only the files named 'Makefile.in', but
  13191. # some people rename them; so instead we look at the file content.
  13192. # Grep'ing the first line is not enough: some people post-process
  13193. # each Makefile.in and add a new line on top of each file to say so.
  13194. # Grep'ing the whole file is not good either: AIX grep has a line
  13195. # limit of 2048, but all sed's we know have understand at least 4000.
  13196. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13197. dirpart=`$as_dirname -- "$mf" ||
  13198. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13199. X"$mf" : 'X\(//\)[^/]' \| \
  13200. X"$mf" : 'X\(//\)$' \| \
  13201. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13202. $as_echo X"$mf" |
  13203. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13204. s//\1/
  13205. q
  13206. }
  13207. /^X\(\/\/\)[^/].*/{
  13208. s//\1/
  13209. q
  13210. }
  13211. /^X\(\/\/\)$/{
  13212. s//\1/
  13213. q
  13214. }
  13215. /^X\(\/\).*/{
  13216. s//\1/
  13217. q
  13218. }
  13219. s/.*/./; q'`
  13220. else
  13221. continue
  13222. fi
  13223. # Extract the definition of DEPDIR, am__include, and am__quote
  13224. # from the Makefile without running 'make'.
  13225. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13226. test -z "$DEPDIR" && continue
  13227. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13228. test -z "$am__include" && continue
  13229. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13230. # Find all dependency output files, they are included files with
  13231. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13232. # simplest approach to changing $(DEPDIR) to its actual value in the
  13233. # expansion.
  13234. for file in `sed -n "
  13235. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13236. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  13237. # Make sure the directory exists.
  13238. test -f "$dirpart/$file" && continue
  13239. fdir=`$as_dirname -- "$file" ||
  13240. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13241. X"$file" : 'X\(//\)[^/]' \| \
  13242. X"$file" : 'X\(//\)$' \| \
  13243. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13244. $as_echo X"$file" |
  13245. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13246. s//\1/
  13247. q
  13248. }
  13249. /^X\(\/\/\)[^/].*/{
  13250. s//\1/
  13251. q
  13252. }
  13253. /^X\(\/\/\)$/{
  13254. s//\1/
  13255. q
  13256. }
  13257. /^X\(\/\).*/{
  13258. s//\1/
  13259. q
  13260. }
  13261. s/.*/./; q'`
  13262. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13263. # echo "creating $dirpart/$file"
  13264. echo '# dummy' > "$dirpart/$file"
  13265. done
  13266. done
  13267. }
  13268. ;;
  13269. "libtool":C)
  13270. # See if we are running on zsh, and set the options that allow our
  13271. # commands through without removal of \ escapes.
  13272. if test -n "${ZSH_VERSION+set}"; then
  13273. setopt NO_GLOB_SUBST
  13274. fi
  13275. cfgfile=${ofile}T
  13276. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13277. $RM "$cfgfile"
  13278. cat <<_LT_EOF >> "$cfgfile"
  13279. #! $SHELL
  13280. # Generated automatically by $as_me ($PACKAGE) $VERSION
  13281. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13282. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13283. # Provide generalized library-building support services.
  13284. # Written by Gordon Matzigkeit, 1996
  13285. # Copyright (C) 2014 Free Software Foundation, Inc.
  13286. # This is free software; see the source for copying conditions. There is NO
  13287. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13288. # GNU Libtool is free software; you can redistribute it and/or modify
  13289. # it under the terms of the GNU General Public License as published by
  13290. # the Free Software Foundation; either version 2 of of the License, or
  13291. # (at your option) any later version.
  13292. #
  13293. # As a special exception to the GNU General Public License, if you
  13294. # distribute this file as part of a program or library that is built
  13295. # using GNU Libtool, you may include this file under the same
  13296. # distribution terms that you use for the rest of that program.
  13297. #
  13298. # GNU Libtool is distributed in the hope that it will be useful, but
  13299. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13300. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13301. # GNU General Public License for more details.
  13302. #
  13303. # You should have received a copy of the GNU General Public License
  13304. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  13305. # The names of the tagged configurations supported by this script.
  13306. available_tags=''
  13307. # Configured defaults for sys_lib_dlsearch_path munging.
  13308. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  13309. # ### BEGIN LIBTOOL CONFIG
  13310. # Assembler program.
  13311. AS=$lt_AS
  13312. # DLL creation program.
  13313. DLLTOOL=$lt_DLLTOOL
  13314. # Object dumper program.
  13315. OBJDUMP=$lt_OBJDUMP
  13316. # Which release of libtool.m4 was used?
  13317. macro_version=$macro_version
  13318. macro_revision=$macro_revision
  13319. # Whether or not to build shared libraries.
  13320. build_libtool_libs=$enable_shared
  13321. # Whether or not to build static libraries.
  13322. build_old_libs=$enable_static
  13323. # What type of objects to build.
  13324. pic_mode=$pic_mode
  13325. # Whether or not to optimize for fast installation.
  13326. fast_install=$enable_fast_install
  13327. # Shared archive member basename,for filename based shared library versioning on AIX.
  13328. shared_archive_member_spec=$shared_archive_member_spec
  13329. # Shell to use when invoking shell scripts.
  13330. SHELL=$lt_SHELL
  13331. # An echo program that protects backslashes.
  13332. ECHO=$lt_ECHO
  13333. # The PATH separator for the build system.
  13334. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  13335. # The host system.
  13336. host_alias=$host_alias
  13337. host=$host
  13338. host_os=$host_os
  13339. # The build system.
  13340. build_alias=$build_alias
  13341. build=$build
  13342. build_os=$build_os
  13343. # A sed program that does not truncate output.
  13344. SED=$lt_SED
  13345. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13346. Xsed="\$SED -e 1s/^X//"
  13347. # A grep program that handles long lines.
  13348. GREP=$lt_GREP
  13349. # An ERE matcher.
  13350. EGREP=$lt_EGREP
  13351. # A literal string matcher.
  13352. FGREP=$lt_FGREP
  13353. # A BSD- or MS-compatible name lister.
  13354. NM=$lt_NM
  13355. # Whether we need soft or hard links.
  13356. LN_S=$lt_LN_S
  13357. # What is the maximum length of a command?
  13358. max_cmd_len=$max_cmd_len
  13359. # Object file suffix (normally "o").
  13360. objext=$ac_objext
  13361. # Executable file suffix (normally "").
  13362. exeext=$exeext
  13363. # whether the shell understands "unset".
  13364. lt_unset=$lt_unset
  13365. # turn spaces into newlines.
  13366. SP2NL=$lt_lt_SP2NL
  13367. # turn newlines into spaces.
  13368. NL2SP=$lt_lt_NL2SP
  13369. # convert \$build file names to \$host format.
  13370. to_host_file_cmd=$lt_cv_to_host_file_cmd
  13371. # convert \$build files to toolchain format.
  13372. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  13373. # Method to check whether dependent libraries are shared objects.
  13374. deplibs_check_method=$lt_deplibs_check_method
  13375. # Command to use when deplibs_check_method = "file_magic".
  13376. file_magic_cmd=$lt_file_magic_cmd
  13377. # How to find potential files when deplibs_check_method = "file_magic".
  13378. file_magic_glob=$lt_file_magic_glob
  13379. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  13380. want_nocaseglob=$lt_want_nocaseglob
  13381. # Command to associate shared and link libraries.
  13382. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  13383. # The archiver.
  13384. AR=$lt_AR
  13385. # Flags to create an archive.
  13386. AR_FLAGS=$lt_AR_FLAGS
  13387. # How to feed a file listing to the archiver.
  13388. archiver_list_spec=$lt_archiver_list_spec
  13389. # A symbol stripping program.
  13390. STRIP=$lt_STRIP
  13391. # Commands used to install an old-style archive.
  13392. RANLIB=$lt_RANLIB
  13393. old_postinstall_cmds=$lt_old_postinstall_cmds
  13394. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13395. # Whether to use a lock for old archive extraction.
  13396. lock_old_archive_extraction=$lock_old_archive_extraction
  13397. # A C compiler.
  13398. LTCC=$lt_CC
  13399. # LTCC compiler flags.
  13400. LTCFLAGS=$lt_CFLAGS
  13401. # Take the output of nm and produce a listing of raw symbols and C names.
  13402. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13403. # Transform the output of nm in a proper C declaration.
  13404. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13405. # Transform the output of nm into a list of symbols to manually relocate.
  13406. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  13407. # Transform the output of nm in a C name address pair.
  13408. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13409. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13410. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13411. # The name lister interface.
  13412. nm_interface=$lt_lt_cv_nm_interface
  13413. # Specify filename containing input files for \$NM.
  13414. nm_file_list_spec=$lt_nm_file_list_spec
  13415. # The root where to search for dependent libraries,and where our libraries should be installed.
  13416. lt_sysroot=$lt_sysroot
  13417. # Command to truncate a binary pipe.
  13418. lt_truncate_bin=$lt_lt_cv_truncate_bin
  13419. # The name of the directory that contains temporary libtool files.
  13420. objdir=$objdir
  13421. # Used to examine libraries when file_magic_cmd begins with "file".
  13422. MAGIC_CMD=$MAGIC_CMD
  13423. # Must we lock files when doing compilation?
  13424. need_locks=$lt_need_locks
  13425. # Manifest tool.
  13426. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  13427. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13428. DSYMUTIL=$lt_DSYMUTIL
  13429. # Tool to change global to local symbols on Mac OS X.
  13430. NMEDIT=$lt_NMEDIT
  13431. # Tool to manipulate fat objects and archives on Mac OS X.
  13432. LIPO=$lt_LIPO
  13433. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13434. OTOOL=$lt_OTOOL
  13435. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13436. OTOOL64=$lt_OTOOL64
  13437. # Old archive suffix (normally "a").
  13438. libext=$libext
  13439. # Shared library suffix (normally ".so").
  13440. shrext_cmds=$lt_shrext_cmds
  13441. # The commands to extract the exported symbol list from a shared archive.
  13442. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13443. # Variables whose values should be saved in libtool wrapper scripts and
  13444. # restored at link time.
  13445. variables_saved_for_relink=$lt_variables_saved_for_relink
  13446. # Do we need the "lib" prefix for modules?
  13447. need_lib_prefix=$need_lib_prefix
  13448. # Do we need a version for libraries?
  13449. need_version=$need_version
  13450. # Library versioning type.
  13451. version_type=$version_type
  13452. # Shared library runtime path variable.
  13453. runpath_var=$runpath_var
  13454. # Shared library path variable.
  13455. shlibpath_var=$shlibpath_var
  13456. # Is shlibpath searched before the hard-coded library search path?
  13457. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13458. # Format of library name prefix.
  13459. libname_spec=$lt_libname_spec
  13460. # List of archive names. First name is the real one, the rest are links.
  13461. # The last name is the one that the linker finds with -lNAME
  13462. library_names_spec=$lt_library_names_spec
  13463. # The coded name of the library, if different from the real name.
  13464. soname_spec=$lt_soname_spec
  13465. # Permission mode override for installation of shared libraries.
  13466. install_override_mode=$lt_install_override_mode
  13467. # Command to use after installation of a shared archive.
  13468. postinstall_cmds=$lt_postinstall_cmds
  13469. # Command to use after uninstallation of a shared archive.
  13470. postuninstall_cmds=$lt_postuninstall_cmds
  13471. # Commands used to finish a libtool library installation in a directory.
  13472. finish_cmds=$lt_finish_cmds
  13473. # As "finish_cmds", except a single script fragment to be evaled but
  13474. # not shown.
  13475. finish_eval=$lt_finish_eval
  13476. # Whether we should hardcode library paths into libraries.
  13477. hardcode_into_libs=$hardcode_into_libs
  13478. # Compile-time system search path for libraries.
  13479. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13480. # Detected run-time system search path for libraries.
  13481. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  13482. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  13483. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  13484. # Whether dlopen is supported.
  13485. dlopen_support=$enable_dlopen
  13486. # Whether dlopen of programs is supported.
  13487. dlopen_self=$enable_dlopen_self
  13488. # Whether dlopen of statically linked programs is supported.
  13489. dlopen_self_static=$enable_dlopen_self_static
  13490. # Commands to strip libraries.
  13491. old_striplib=$lt_old_striplib
  13492. striplib=$lt_striplib
  13493. # The linker used to build libraries.
  13494. LD=$lt_LD
  13495. # How to create reloadable object files.
  13496. reload_flag=$lt_reload_flag
  13497. reload_cmds=$lt_reload_cmds
  13498. # Commands used to build an old-style archive.
  13499. old_archive_cmds=$lt_old_archive_cmds
  13500. # A language specific compiler.
  13501. CC=$lt_compiler
  13502. # Is the compiler the GNU compiler?
  13503. with_gcc=$GCC
  13504. # Compiler flag to turn off builtin functions.
  13505. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13506. # Additional compiler flags for building library objects.
  13507. pic_flag=$lt_lt_prog_compiler_pic
  13508. # How to pass a linker flag through the compiler.
  13509. wl=$lt_lt_prog_compiler_wl
  13510. # Compiler flag to prevent dynamic linking.
  13511. link_static_flag=$lt_lt_prog_compiler_static
  13512. # Does compiler simultaneously support -c and -o options?
  13513. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13514. # Whether or not to add -lc for building shared libraries.
  13515. build_libtool_need_lc=$archive_cmds_need_lc
  13516. # Whether or not to disallow shared libs when runtime libs are static.
  13517. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13518. # Compiler flag to allow reflexive dlopens.
  13519. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13520. # Compiler flag to generate shared objects directly from archives.
  13521. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13522. # Whether the compiler copes with passing no objects directly.
  13523. compiler_needs_object=$lt_compiler_needs_object
  13524. # Create an old-style archive from a shared archive.
  13525. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13526. # Create a temporary old-style archive to link instead of a shared archive.
  13527. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13528. # Commands used to build a shared archive.
  13529. archive_cmds=$lt_archive_cmds
  13530. archive_expsym_cmds=$lt_archive_expsym_cmds
  13531. # Commands used to build a loadable module if different from building
  13532. # a shared archive.
  13533. module_cmds=$lt_module_cmds
  13534. module_expsym_cmds=$lt_module_expsym_cmds
  13535. # Whether we are building with GNU ld or not.
  13536. with_gnu_ld=$lt_with_gnu_ld
  13537. # Flag that allows shared libraries with undefined symbols to be built.
  13538. allow_undefined_flag=$lt_allow_undefined_flag
  13539. # Flag that enforces no undefined symbols.
  13540. no_undefined_flag=$lt_no_undefined_flag
  13541. # Flag to hardcode \$libdir into a binary during linking.
  13542. # This must work even if \$libdir does not exist
  13543. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13544. # Whether we need a single "-rpath" flag with a separated argument.
  13545. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13546. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  13547. # DIR into the resulting binary.
  13548. hardcode_direct=$hardcode_direct
  13549. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  13550. # DIR into the resulting binary and the resulting library dependency is
  13551. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  13552. # library is relocated.
  13553. hardcode_direct_absolute=$hardcode_direct_absolute
  13554. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13555. # into the resulting binary.
  13556. hardcode_minus_L=$hardcode_minus_L
  13557. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13558. # into the resulting binary.
  13559. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13560. # Set to "yes" if building a shared library automatically hardcodes DIR
  13561. # into the library and all subsequent libraries and executables linked
  13562. # against it.
  13563. hardcode_automatic=$hardcode_automatic
  13564. # Set to yes if linker adds runtime paths of dependent libraries
  13565. # to runtime path list.
  13566. inherit_rpath=$inherit_rpath
  13567. # Whether libtool must link a program against all its dependency libraries.
  13568. link_all_deplibs=$link_all_deplibs
  13569. # Set to "yes" if exported symbols are required.
  13570. always_export_symbols=$always_export_symbols
  13571. # The commands to list exported symbols.
  13572. export_symbols_cmds=$lt_export_symbols_cmds
  13573. # Symbols that should not be listed in the preloaded symbols.
  13574. exclude_expsyms=$lt_exclude_expsyms
  13575. # Symbols that must always be exported.
  13576. include_expsyms=$lt_include_expsyms
  13577. # Commands necessary for linking programs (against libraries) with templates.
  13578. prelink_cmds=$lt_prelink_cmds
  13579. # Commands necessary for finishing linking programs.
  13580. postlink_cmds=$lt_postlink_cmds
  13581. # Specify filename containing input files.
  13582. file_list_spec=$lt_file_list_spec
  13583. # How to hardcode a shared library path into an executable.
  13584. hardcode_action=$hardcode_action
  13585. # ### END LIBTOOL CONFIG
  13586. _LT_EOF
  13587. cat <<'_LT_EOF' >> "$cfgfile"
  13588. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  13589. # func_munge_path_list VARIABLE PATH
  13590. # -----------------------------------
  13591. # VARIABLE is name of variable containing _space_ separated list of
  13592. # directories to be munged by the contents of PATH, which is string
  13593. # having a format:
  13594. # "DIR[:DIR]:"
  13595. # string "DIR[ DIR]" will be prepended to VARIABLE
  13596. # ":DIR[:DIR]"
  13597. # string "DIR[ DIR]" will be appended to VARIABLE
  13598. # "DIRP[:DIRP]::[DIRA:]DIRA"
  13599. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  13600. # "DIRA[ DIRA]" will be appended to VARIABLE
  13601. # "DIR[:DIR]"
  13602. # VARIABLE will be replaced by "DIR[ DIR]"
  13603. func_munge_path_list ()
  13604. {
  13605. case x$2 in
  13606. x)
  13607. ;;
  13608. *:)
  13609. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  13610. ;;
  13611. x:*)
  13612. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  13613. ;;
  13614. *::*)
  13615. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  13616. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  13617. ;;
  13618. *)
  13619. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  13620. ;;
  13621. esac
  13622. }
  13623. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  13624. func_cc_basename ()
  13625. {
  13626. for cc_temp in $*""; do
  13627. case $cc_temp in
  13628. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13629. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13630. \-*) ;;
  13631. *) break;;
  13632. esac
  13633. done
  13634. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  13635. }
  13636. # ### END FUNCTIONS SHARED WITH CONFIGURE
  13637. _LT_EOF
  13638. case $host_os in
  13639. aix3*)
  13640. cat <<\_LT_EOF >> "$cfgfile"
  13641. # AIX sometimes has problems with the GCC collect2 program. For some
  13642. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13643. # vanish in a puff of smoke.
  13644. if test set != "${COLLECT_NAMES+set}"; then
  13645. COLLECT_NAMES=
  13646. export COLLECT_NAMES
  13647. fi
  13648. _LT_EOF
  13649. ;;
  13650. esac
  13651. ltmain=$ac_aux_dir/ltmain.sh
  13652. # We use sed instead of cat because bash on DJGPP gets confused if
  13653. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13654. # text mode, it properly converts lines to CR/LF. This bash problem
  13655. # is reportedly fixed, but why not run on old versions too?
  13656. sed '$q' "$ltmain" >> "$cfgfile" \
  13657. || (rm -f "$cfgfile"; exit 1)
  13658. mv -f "$cfgfile" "$ofile" ||
  13659. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13660. chmod +x "$ofile"
  13661. ;;
  13662. esac
  13663. done # for ac_tag
  13664. as_fn_exit 0
  13665. _ACEOF
  13666. ac_clean_files=$ac_clean_files_save
  13667. test $ac_write_fail = 0 ||
  13668. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13669. # configure is writing to config.log, and then calls config.status.
  13670. # config.status does its own redirection, appending to config.log.
  13671. # Unfortunately, on DOS this fails, as config.log is still kept open
  13672. # by configure, so config.status won't be able to write to it; its
  13673. # output is simply discarded. So we exec the FD to /dev/null,
  13674. # effectively closing config.log, so it can be properly (re)opened and
  13675. # appended to by config.status. When coming back to configure, we
  13676. # need to make the FD available again.
  13677. if test "$no_create" != yes; then
  13678. ac_cs_success=:
  13679. ac_config_status_args=
  13680. test "$silent" = yes &&
  13681. ac_config_status_args="$ac_config_status_args --quiet"
  13682. exec 5>/dev/null
  13683. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13684. exec 5>>config.log
  13685. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13686. # would make configure fail if this is the last instruction.
  13687. $ac_cs_success || as_fn_exit 1
  13688. fi
  13689. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13691. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13692. fi