configure 445 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libogg 1.3.3.
  4. #
  5. # Report bugs to <ogg-dev@xiph.org>.
  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 bug-autoconf@gnu.org and ogg-dev@xiph.org
  259. $0: about your system, including any error possibly output
  260. $0: before this message. Then install a modern shell, or
  261. $0: manually run the script under such a shell if you do
  262. $0: 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='libogg'
  542. PACKAGE_TARNAME='libogg'
  543. PACKAGE_VERSION='1.3.3'
  544. PACKAGE_STRING='libogg 1.3.3'
  545. PACKAGE_BUGREPORT='ogg-dev@xiph.org'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/framing.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. PROFILE
  587. DEBUG
  588. OPT
  589. SIZE64
  590. USIZE32
  591. SIZE32
  592. USIZE16
  593. SIZE16
  594. INCLUDE_SYS_TYPES_H
  595. INCLUDE_STDINT_H
  596. INCLUDE_INTTYPES_H
  597. LIBTOOL_DEPS
  598. LIBOBJS
  599. CPP
  600. LT_SYS_LIBRARY_PATH
  601. OTOOL64
  602. OTOOL
  603. LIPO
  604. NMEDIT
  605. DSYMUTIL
  606. MANIFEST_TOOL
  607. RANLIB
  608. ac_ct_AR
  609. AR
  610. DLLTOOL
  611. OBJDUMP
  612. LN_S
  613. NM
  614. ac_ct_DUMPBIN
  615. DUMPBIN
  616. LD
  617. FGREP
  618. EGREP
  619. GREP
  620. SED
  621. host_os
  622. host_vendor
  623. host_cpu
  624. host
  625. build_os
  626. build_vendor
  627. build_cpu
  628. build
  629. LIBTOOL
  630. am__fastdepCC_FALSE
  631. am__fastdepCC_TRUE
  632. CCDEPMODE
  633. am__nodep
  634. AMDEPBACKSLASH
  635. AMDEP_FALSE
  636. AMDEP_TRUE
  637. am__quote
  638. am__include
  639. DEPDIR
  640. OBJEXT
  641. EXEEXT
  642. ac_ct_CC
  643. CPPFLAGS
  644. LDFLAGS
  645. CFLAGS
  646. CC
  647. LIB_AGE
  648. LIB_REVISION
  649. LIB_CURRENT
  650. MAINT
  651. MAINTAINER_MODE_FALSE
  652. MAINTAINER_MODE_TRUE
  653. AM_BACKSLASH
  654. AM_DEFAULT_VERBOSITY
  655. AM_DEFAULT_V
  656. AM_V
  657. am__untar
  658. am__tar
  659. AMTAR
  660. am__leading_dot
  661. SET_MAKE
  662. AWK
  663. mkdir_p
  664. MKDIR_P
  665. INSTALL_STRIP_PROGRAM
  666. STRIP
  667. install_sh
  668. MAKEINFO
  669. AUTOHEADER
  670. AUTOMAKE
  671. AUTOCONF
  672. ACLOCAL
  673. VERSION
  674. PACKAGE
  675. CYGPATH_W
  676. am__isrc
  677. INSTALL_DATA
  678. INSTALL_SCRIPT
  679. INSTALL_PROGRAM
  680. target_alias
  681. host_alias
  682. build_alias
  683. LIBS
  684. ECHO_T
  685. ECHO_N
  686. ECHO_C
  687. DEFS
  688. mandir
  689. localedir
  690. libdir
  691. psdir
  692. pdfdir
  693. dvidir
  694. htmldir
  695. infodir
  696. docdir
  697. oldincludedir
  698. includedir
  699. localstatedir
  700. sharedstatedir
  701. sysconfdir
  702. datadir
  703. datarootdir
  704. libexecdir
  705. sbindir
  706. bindir
  707. program_transform_name
  708. prefix
  709. exec_prefix
  710. PACKAGE_URL
  711. PACKAGE_BUGREPORT
  712. PACKAGE_STRING
  713. PACKAGE_VERSION
  714. PACKAGE_TARNAME
  715. PACKAGE_NAME
  716. PATH_SEPARATOR
  717. SHELL'
  718. ac_subst_files=''
  719. ac_user_opts='
  720. enable_option_checking
  721. enable_silent_rules
  722. enable_maintainer_mode
  723. enable_dependency_tracking
  724. enable_shared
  725. enable_static
  726. with_pic
  727. enable_fast_install
  728. with_aix_soname
  729. with_gnu_ld
  730. with_sysroot
  731. enable_libtool_lock
  732. '
  733. ac_precious_vars='build_alias
  734. host_alias
  735. target_alias
  736. CC
  737. CFLAGS
  738. LDFLAGS
  739. LIBS
  740. CPPFLAGS
  741. LT_SYS_LIBRARY_PATH
  742. CPP'
  743. # Initialize some variables set by options.
  744. ac_init_help=
  745. ac_init_version=false
  746. ac_unrecognized_opts=
  747. ac_unrecognized_sep=
  748. # The variables have the same names as the options, with
  749. # dashes changed to underlines.
  750. cache_file=/dev/null
  751. exec_prefix=NONE
  752. no_create=
  753. no_recursion=
  754. prefix=NONE
  755. program_prefix=NONE
  756. program_suffix=NONE
  757. program_transform_name=s,x,x,
  758. silent=
  759. site=
  760. srcdir=
  761. verbose=
  762. x_includes=NONE
  763. x_libraries=NONE
  764. # Installation directory options.
  765. # These are left unexpanded so users can "make install exec_prefix=/foo"
  766. # and all the variables that are supposed to be based on exec_prefix
  767. # by default will actually change.
  768. # Use braces instead of parens because sh, perl, etc. also accept them.
  769. # (The list follows the same order as the GNU Coding Standards.)
  770. bindir='${exec_prefix}/bin'
  771. sbindir='${exec_prefix}/sbin'
  772. libexecdir='${exec_prefix}/libexec'
  773. datarootdir='${prefix}/share'
  774. datadir='${datarootdir}'
  775. sysconfdir='${prefix}/etc'
  776. sharedstatedir='${prefix}/com'
  777. localstatedir='${prefix}/var'
  778. includedir='${prefix}/include'
  779. oldincludedir='/usr/include'
  780. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  781. infodir='${datarootdir}/info'
  782. htmldir='${docdir}'
  783. dvidir='${docdir}'
  784. pdfdir='${docdir}'
  785. psdir='${docdir}'
  786. libdir='${exec_prefix}/lib'
  787. localedir='${datarootdir}/locale'
  788. mandir='${datarootdir}/man'
  789. ac_prev=
  790. ac_dashdash=
  791. for ac_option
  792. do
  793. # If the previous option needs an argument, assign it.
  794. if test -n "$ac_prev"; then
  795. eval $ac_prev=\$ac_option
  796. ac_prev=
  797. continue
  798. fi
  799. case $ac_option in
  800. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  801. *=) ac_optarg= ;;
  802. *) ac_optarg=yes ;;
  803. esac
  804. # Accept the important Cygnus configure options, so we can diagnose typos.
  805. case $ac_dashdash$ac_option in
  806. --)
  807. ac_dashdash=yes ;;
  808. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  809. ac_prev=bindir ;;
  810. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  811. bindir=$ac_optarg ;;
  812. -build | --build | --buil | --bui | --bu)
  813. ac_prev=build_alias ;;
  814. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  815. build_alias=$ac_optarg ;;
  816. -cache-file | --cache-file | --cache-fil | --cache-fi \
  817. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  818. ac_prev=cache_file ;;
  819. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  820. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  821. cache_file=$ac_optarg ;;
  822. --config-cache | -C)
  823. cache_file=config.cache ;;
  824. -datadir | --datadir | --datadi | --datad)
  825. ac_prev=datadir ;;
  826. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  827. datadir=$ac_optarg ;;
  828. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  829. | --dataroo | --dataro | --datar)
  830. ac_prev=datarootdir ;;
  831. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  832. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  833. datarootdir=$ac_optarg ;;
  834. -disable-* | --disable-*)
  835. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  836. # Reject names that are not valid shell variable names.
  837. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  838. as_fn_error $? "invalid feature name: $ac_useropt"
  839. ac_useropt_orig=$ac_useropt
  840. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  841. case $ac_user_opts in
  842. *"
  843. "enable_$ac_useropt"
  844. "*) ;;
  845. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  846. ac_unrecognized_sep=', ';;
  847. esac
  848. eval enable_$ac_useropt=no ;;
  849. -docdir | --docdir | --docdi | --doc | --do)
  850. ac_prev=docdir ;;
  851. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  852. docdir=$ac_optarg ;;
  853. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  854. ac_prev=dvidir ;;
  855. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  856. dvidir=$ac_optarg ;;
  857. -enable-* | --enable-*)
  858. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  859. # Reject names that are not valid shell variable names.
  860. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  861. as_fn_error $? "invalid feature name: $ac_useropt"
  862. ac_useropt_orig=$ac_useropt
  863. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  864. case $ac_user_opts in
  865. *"
  866. "enable_$ac_useropt"
  867. "*) ;;
  868. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  869. ac_unrecognized_sep=', ';;
  870. esac
  871. eval enable_$ac_useropt=\$ac_optarg ;;
  872. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  873. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  874. | --exec | --exe | --ex)
  875. ac_prev=exec_prefix ;;
  876. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  877. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  878. | --exec=* | --exe=* | --ex=*)
  879. exec_prefix=$ac_optarg ;;
  880. -gas | --gas | --ga | --g)
  881. # Obsolete; use --with-gas.
  882. with_gas=yes ;;
  883. -help | --help | --hel | --he | -h)
  884. ac_init_help=long ;;
  885. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  886. ac_init_help=recursive ;;
  887. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  888. ac_init_help=short ;;
  889. -host | --host | --hos | --ho)
  890. ac_prev=host_alias ;;
  891. -host=* | --host=* | --hos=* | --ho=*)
  892. host_alias=$ac_optarg ;;
  893. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  894. ac_prev=htmldir ;;
  895. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  896. | --ht=*)
  897. htmldir=$ac_optarg ;;
  898. -includedir | --includedir | --includedi | --included | --include \
  899. | --includ | --inclu | --incl | --inc)
  900. ac_prev=includedir ;;
  901. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  902. | --includ=* | --inclu=* | --incl=* | --inc=*)
  903. includedir=$ac_optarg ;;
  904. -infodir | --infodir | --infodi | --infod | --info | --inf)
  905. ac_prev=infodir ;;
  906. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  907. infodir=$ac_optarg ;;
  908. -libdir | --libdir | --libdi | --libd)
  909. ac_prev=libdir ;;
  910. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  911. libdir=$ac_optarg ;;
  912. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  913. | --libexe | --libex | --libe)
  914. ac_prev=libexecdir ;;
  915. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  916. | --libexe=* | --libex=* | --libe=*)
  917. libexecdir=$ac_optarg ;;
  918. -localedir | --localedir | --localedi | --localed | --locale)
  919. ac_prev=localedir ;;
  920. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  921. localedir=$ac_optarg ;;
  922. -localstatedir | --localstatedir | --localstatedi | --localstated \
  923. | --localstate | --localstat | --localsta | --localst | --locals)
  924. ac_prev=localstatedir ;;
  925. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  926. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  927. localstatedir=$ac_optarg ;;
  928. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  929. ac_prev=mandir ;;
  930. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  931. mandir=$ac_optarg ;;
  932. -nfp | --nfp | --nf)
  933. # Obsolete; use --without-fp.
  934. with_fp=no ;;
  935. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  936. | --no-cr | --no-c | -n)
  937. no_create=yes ;;
  938. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  939. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  940. no_recursion=yes ;;
  941. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  942. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  943. | --oldin | --oldi | --old | --ol | --o)
  944. ac_prev=oldincludedir ;;
  945. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  946. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  947. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  948. oldincludedir=$ac_optarg ;;
  949. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  950. ac_prev=prefix ;;
  951. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  952. prefix=$ac_optarg ;;
  953. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  954. | --program-pre | --program-pr | --program-p)
  955. ac_prev=program_prefix ;;
  956. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  957. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  958. program_prefix=$ac_optarg ;;
  959. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  960. | --program-suf | --program-su | --program-s)
  961. ac_prev=program_suffix ;;
  962. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  963. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  964. program_suffix=$ac_optarg ;;
  965. -program-transform-name | --program-transform-name \
  966. | --program-transform-nam | --program-transform-na \
  967. | --program-transform-n | --program-transform- \
  968. | --program-transform | --program-transfor \
  969. | --program-transfo | --program-transf \
  970. | --program-trans | --program-tran \
  971. | --progr-tra | --program-tr | --program-t)
  972. ac_prev=program_transform_name ;;
  973. -program-transform-name=* | --program-transform-name=* \
  974. | --program-transform-nam=* | --program-transform-na=* \
  975. | --program-transform-n=* | --program-transform-=* \
  976. | --program-transform=* | --program-transfor=* \
  977. | --program-transfo=* | --program-transf=* \
  978. | --program-trans=* | --program-tran=* \
  979. | --progr-tra=* | --program-tr=* | --program-t=*)
  980. program_transform_name=$ac_optarg ;;
  981. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  982. ac_prev=pdfdir ;;
  983. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  984. pdfdir=$ac_optarg ;;
  985. -psdir | --psdir | --psdi | --psd | --ps)
  986. ac_prev=psdir ;;
  987. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  988. psdir=$ac_optarg ;;
  989. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  990. | -silent | --silent | --silen | --sile | --sil)
  991. silent=yes ;;
  992. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  993. ac_prev=sbindir ;;
  994. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  995. | --sbi=* | --sb=*)
  996. sbindir=$ac_optarg ;;
  997. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  998. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  999. | --sharedst | --shareds | --shared | --share | --shar \
  1000. | --sha | --sh)
  1001. ac_prev=sharedstatedir ;;
  1002. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1003. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1004. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1005. | --sha=* | --sh=*)
  1006. sharedstatedir=$ac_optarg ;;
  1007. -site | --site | --sit)
  1008. ac_prev=site ;;
  1009. -site=* | --site=* | --sit=*)
  1010. site=$ac_optarg ;;
  1011. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1012. ac_prev=srcdir ;;
  1013. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1014. srcdir=$ac_optarg ;;
  1015. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1016. | --syscon | --sysco | --sysc | --sys | --sy)
  1017. ac_prev=sysconfdir ;;
  1018. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1019. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1020. sysconfdir=$ac_optarg ;;
  1021. -target | --target | --targe | --targ | --tar | --ta | --t)
  1022. ac_prev=target_alias ;;
  1023. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1024. target_alias=$ac_optarg ;;
  1025. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1026. verbose=yes ;;
  1027. -version | --version | --versio | --versi | --vers | -V)
  1028. ac_init_version=: ;;
  1029. -with-* | --with-*)
  1030. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1031. # Reject names that are not valid shell variable names.
  1032. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1033. as_fn_error $? "invalid package name: $ac_useropt"
  1034. ac_useropt_orig=$ac_useropt
  1035. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1036. case $ac_user_opts in
  1037. *"
  1038. "with_$ac_useropt"
  1039. "*) ;;
  1040. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1041. ac_unrecognized_sep=', ';;
  1042. esac
  1043. eval with_$ac_useropt=\$ac_optarg ;;
  1044. -without-* | --without-*)
  1045. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1046. # Reject names that are not valid shell variable names.
  1047. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1048. as_fn_error $? "invalid package name: $ac_useropt"
  1049. ac_useropt_orig=$ac_useropt
  1050. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1051. case $ac_user_opts in
  1052. *"
  1053. "with_$ac_useropt"
  1054. "*) ;;
  1055. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1056. ac_unrecognized_sep=', ';;
  1057. esac
  1058. eval with_$ac_useropt=no ;;
  1059. --x)
  1060. # Obsolete; use --with-x.
  1061. with_x=yes ;;
  1062. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1063. | --x-incl | --x-inc | --x-in | --x-i)
  1064. ac_prev=x_includes ;;
  1065. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1066. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1067. x_includes=$ac_optarg ;;
  1068. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1069. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1070. ac_prev=x_libraries ;;
  1071. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1072. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1073. x_libraries=$ac_optarg ;;
  1074. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1075. Try \`$0 --help' for more information"
  1076. ;;
  1077. *=*)
  1078. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1079. # Reject names that are not valid shell variable names.
  1080. case $ac_envvar in #(
  1081. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1082. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1083. esac
  1084. eval $ac_envvar=\$ac_optarg
  1085. export $ac_envvar ;;
  1086. *)
  1087. # FIXME: should be removed in autoconf 3.0.
  1088. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1089. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1090. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1091. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1092. ;;
  1093. esac
  1094. done
  1095. if test -n "$ac_prev"; then
  1096. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1097. as_fn_error $? "missing argument to $ac_option"
  1098. fi
  1099. if test -n "$ac_unrecognized_opts"; then
  1100. case $enable_option_checking in
  1101. no) ;;
  1102. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1103. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1104. esac
  1105. fi
  1106. # Check all directory arguments for consistency.
  1107. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1108. datadir sysconfdir sharedstatedir localstatedir includedir \
  1109. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1110. libdir localedir mandir
  1111. do
  1112. eval ac_val=\$$ac_var
  1113. # Remove trailing slashes.
  1114. case $ac_val in
  1115. */ )
  1116. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1117. eval $ac_var=\$ac_val;;
  1118. esac
  1119. # Be sure to have absolute directory names.
  1120. case $ac_val in
  1121. [\\/$]* | ?:[\\/]* ) continue;;
  1122. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1123. esac
  1124. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1125. done
  1126. # There might be people who depend on the old broken behavior: `$host'
  1127. # used to hold the argument of --host etc.
  1128. # FIXME: To remove some day.
  1129. build=$build_alias
  1130. host=$host_alias
  1131. target=$target_alias
  1132. # FIXME: To remove some day.
  1133. if test "x$host_alias" != x; then
  1134. if test "x$build_alias" = x; then
  1135. cross_compiling=maybe
  1136. elif test "x$build_alias" != "x$host_alias"; then
  1137. cross_compiling=yes
  1138. fi
  1139. fi
  1140. ac_tool_prefix=
  1141. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1142. test "$silent" = yes && exec 6>/dev/null
  1143. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1144. ac_ls_di=`ls -di .` &&
  1145. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1146. as_fn_error $? "working directory cannot be determined"
  1147. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1148. as_fn_error $? "pwd does not report name of working directory"
  1149. # Find the source files, if location was not specified.
  1150. if test -z "$srcdir"; then
  1151. ac_srcdir_defaulted=yes
  1152. # Try the directory containing this script, then the parent directory.
  1153. ac_confdir=`$as_dirname -- "$as_myself" ||
  1154. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1155. X"$as_myself" : 'X\(//\)[^/]' \| \
  1156. X"$as_myself" : 'X\(//\)$' \| \
  1157. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1158. $as_echo X"$as_myself" |
  1159. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1160. s//\1/
  1161. q
  1162. }
  1163. /^X\(\/\/\)[^/].*/{
  1164. s//\1/
  1165. q
  1166. }
  1167. /^X\(\/\/\)$/{
  1168. s//\1/
  1169. q
  1170. }
  1171. /^X\(\/\).*/{
  1172. s//\1/
  1173. q
  1174. }
  1175. s/.*/./; q'`
  1176. srcdir=$ac_confdir
  1177. if test ! -r "$srcdir/$ac_unique_file"; then
  1178. srcdir=..
  1179. fi
  1180. else
  1181. ac_srcdir_defaulted=no
  1182. fi
  1183. if test ! -r "$srcdir/$ac_unique_file"; then
  1184. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1185. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1186. fi
  1187. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1188. ac_abs_confdir=`(
  1189. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1190. pwd)`
  1191. # When building in place, set srcdir=.
  1192. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1193. srcdir=.
  1194. fi
  1195. # Remove unnecessary trailing slashes from srcdir.
  1196. # Double slashes in file names in object file debugging info
  1197. # mess up M-x gdb in Emacs.
  1198. case $srcdir in
  1199. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1200. esac
  1201. for ac_var in $ac_precious_vars; do
  1202. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1203. eval ac_env_${ac_var}_value=\$${ac_var}
  1204. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1205. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1206. done
  1207. #
  1208. # Report the --help message.
  1209. #
  1210. if test "$ac_init_help" = "long"; then
  1211. # Omit some internal or obsolete options to make the list less imposing.
  1212. # This message is too long to be a string in the A/UX 3.1 sh.
  1213. cat <<_ACEOF
  1214. \`configure' configures libogg 1.3.3 to adapt to many kinds of systems.
  1215. Usage: $0 [OPTION]... [VAR=VALUE]...
  1216. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1217. VAR=VALUE. See below for descriptions of some of the useful variables.
  1218. Defaults for the options are specified in brackets.
  1219. Configuration:
  1220. -h, --help display this help and exit
  1221. --help=short display options specific to this package
  1222. --help=recursive display the short help of all the included packages
  1223. -V, --version display version information and exit
  1224. -q, --quiet, --silent do not print \`checking ...' messages
  1225. --cache-file=FILE cache test results in FILE [disabled]
  1226. -C, --config-cache alias for \`--cache-file=config.cache'
  1227. -n, --no-create do not create output files
  1228. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1229. Installation directories:
  1230. --prefix=PREFIX install architecture-independent files in PREFIX
  1231. [$ac_default_prefix]
  1232. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1233. [PREFIX]
  1234. By default, \`make install' will install all the files in
  1235. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1236. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1237. for instance \`--prefix=\$HOME'.
  1238. For better control, use the options below.
  1239. Fine tuning of the installation directories:
  1240. --bindir=DIR user executables [EPREFIX/bin]
  1241. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1242. --libexecdir=DIR program executables [EPREFIX/libexec]
  1243. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1244. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1245. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1246. --libdir=DIR object code libraries [EPREFIX/lib]
  1247. --includedir=DIR C header files [PREFIX/include]
  1248. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1249. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1250. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1251. --infodir=DIR info documentation [DATAROOTDIR/info]
  1252. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1253. --mandir=DIR man documentation [DATAROOTDIR/man]
  1254. --docdir=DIR documentation root [DATAROOTDIR/doc/libogg]
  1255. --htmldir=DIR html documentation [DOCDIR]
  1256. --dvidir=DIR dvi documentation [DOCDIR]
  1257. --pdfdir=DIR pdf documentation [DOCDIR]
  1258. --psdir=DIR ps documentation [DOCDIR]
  1259. _ACEOF
  1260. cat <<\_ACEOF
  1261. Program names:
  1262. --program-prefix=PREFIX prepend PREFIX to installed program names
  1263. --program-suffix=SUFFIX append SUFFIX to installed program names
  1264. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1265. System types:
  1266. --build=BUILD configure for building on BUILD [guessed]
  1267. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1268. _ACEOF
  1269. fi
  1270. if test -n "$ac_init_help"; then
  1271. case $ac_init_help in
  1272. short | recursive ) echo "Configuration of libogg 1.3.3:";;
  1273. esac
  1274. cat <<\_ACEOF
  1275. Optional Features:
  1276. --disable-option-checking ignore unrecognized --enable/--with options
  1277. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1278. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1279. --enable-silent-rules less verbose build output (undo: "make V=1")
  1280. --disable-silent-rules verbose build output (undo: "make V=0")
  1281. --disable-maintainer-mode
  1282. disable make rules and dependencies not useful (and
  1283. sometimes confusing) to the casual installer
  1284. --enable-dependency-tracking
  1285. do not reject slow dependency extractors
  1286. --disable-dependency-tracking
  1287. speeds up one-time build
  1288. --enable-shared[=PKGS] build shared libraries [default=yes]
  1289. --enable-static[=PKGS] build static libraries [default=yes]
  1290. --enable-fast-install[=PKGS]
  1291. optimize for fast installation [default=yes]
  1292. --disable-libtool-lock avoid locking (might break parallel builds)
  1293. Optional Packages:
  1294. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1295. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1296. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1297. both]
  1298. --with-aix-soname=aix|svr4|both
  1299. shared library versioning (aka "SONAME") variant to
  1300. provide on AIX, [default=aix].
  1301. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1302. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1303. compiler's sysroot if not specified).
  1304. Some influential environment variables:
  1305. CC C compiler command
  1306. CFLAGS C compiler flags
  1307. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1308. nonstandard directory <lib dir>
  1309. LIBS libraries to pass to the linker, e.g. -l<library>
  1310. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1311. you have headers in a nonstandard directory <include dir>
  1312. LT_SYS_LIBRARY_PATH
  1313. User-defined run-time library search path.
  1314. CPP C preprocessor
  1315. Use these variables to override the choices made by `configure' or to help
  1316. it to find libraries and programs with nonstandard names/locations.
  1317. Report bugs to <ogg-dev@xiph.org>.
  1318. _ACEOF
  1319. ac_status=$?
  1320. fi
  1321. if test "$ac_init_help" = "recursive"; then
  1322. # If there are subdirs, report their specific --help.
  1323. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1324. test -d "$ac_dir" ||
  1325. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1326. continue
  1327. ac_builddir=.
  1328. case "$ac_dir" in
  1329. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1330. *)
  1331. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1332. # A ".." for each directory in $ac_dir_suffix.
  1333. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1334. case $ac_top_builddir_sub in
  1335. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1336. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1337. esac ;;
  1338. esac
  1339. ac_abs_top_builddir=$ac_pwd
  1340. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1341. # for backward compatibility:
  1342. ac_top_builddir=$ac_top_build_prefix
  1343. case $srcdir in
  1344. .) # We are building in place.
  1345. ac_srcdir=.
  1346. ac_top_srcdir=$ac_top_builddir_sub
  1347. ac_abs_top_srcdir=$ac_pwd ;;
  1348. [\\/]* | ?:[\\/]* ) # Absolute name.
  1349. ac_srcdir=$srcdir$ac_dir_suffix;
  1350. ac_top_srcdir=$srcdir
  1351. ac_abs_top_srcdir=$srcdir ;;
  1352. *) # Relative name.
  1353. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1354. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1355. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1356. esac
  1357. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1358. cd "$ac_dir" || { ac_status=$?; continue; }
  1359. # Check for guested configure.
  1360. if test -f "$ac_srcdir/configure.gnu"; then
  1361. echo &&
  1362. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1363. elif test -f "$ac_srcdir/configure"; then
  1364. echo &&
  1365. $SHELL "$ac_srcdir/configure" --help=recursive
  1366. else
  1367. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1368. fi || ac_status=$?
  1369. cd "$ac_pwd" || { ac_status=$?; break; }
  1370. done
  1371. fi
  1372. test -n "$ac_init_help" && exit $ac_status
  1373. if $ac_init_version; then
  1374. cat <<\_ACEOF
  1375. libogg configure 1.3.3
  1376. generated by GNU Autoconf 2.69
  1377. Copyright (C) 2012 Free Software Foundation, Inc.
  1378. This configure script is free software; the Free Software Foundation
  1379. gives unlimited permission to copy, distribute and modify it.
  1380. _ACEOF
  1381. exit
  1382. fi
  1383. ## ------------------------ ##
  1384. ## Autoconf initialization. ##
  1385. ## ------------------------ ##
  1386. # ac_fn_c_try_compile LINENO
  1387. # --------------------------
  1388. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1389. ac_fn_c_try_compile ()
  1390. {
  1391. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1392. rm -f conftest.$ac_objext
  1393. if { { ac_try="$ac_compile"
  1394. case "(($ac_try" in
  1395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1396. *) ac_try_echo=$ac_try;;
  1397. esac
  1398. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1399. $as_echo "$ac_try_echo"; } >&5
  1400. (eval "$ac_compile") 2>conftest.err
  1401. ac_status=$?
  1402. if test -s conftest.err; then
  1403. grep -v '^ *+' conftest.err >conftest.er1
  1404. cat conftest.er1 >&5
  1405. mv -f conftest.er1 conftest.err
  1406. fi
  1407. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1408. test $ac_status = 0; } && {
  1409. test -z "$ac_c_werror_flag" ||
  1410. test ! -s conftest.err
  1411. } && test -s conftest.$ac_objext; then :
  1412. ac_retval=0
  1413. else
  1414. $as_echo "$as_me: failed program was:" >&5
  1415. sed 's/^/| /' conftest.$ac_ext >&5
  1416. ac_retval=1
  1417. fi
  1418. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1419. as_fn_set_status $ac_retval
  1420. } # ac_fn_c_try_compile
  1421. # ac_fn_c_try_link LINENO
  1422. # -----------------------
  1423. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1424. ac_fn_c_try_link ()
  1425. {
  1426. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1427. rm -f conftest.$ac_objext conftest$ac_exeext
  1428. if { { ac_try="$ac_link"
  1429. case "(($ac_try" in
  1430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1431. *) ac_try_echo=$ac_try;;
  1432. esac
  1433. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1434. $as_echo "$ac_try_echo"; } >&5
  1435. (eval "$ac_link") 2>conftest.err
  1436. ac_status=$?
  1437. if test -s conftest.err; then
  1438. grep -v '^ *+' conftest.err >conftest.er1
  1439. cat conftest.er1 >&5
  1440. mv -f conftest.er1 conftest.err
  1441. fi
  1442. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1443. test $ac_status = 0; } && {
  1444. test -z "$ac_c_werror_flag" ||
  1445. test ! -s conftest.err
  1446. } && test -s conftest$ac_exeext && {
  1447. test "$cross_compiling" = yes ||
  1448. test -x conftest$ac_exeext
  1449. }; then :
  1450. ac_retval=0
  1451. else
  1452. $as_echo "$as_me: failed program was:" >&5
  1453. sed 's/^/| /' conftest.$ac_ext >&5
  1454. ac_retval=1
  1455. fi
  1456. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1457. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1458. # interfere with the next link command; also delete a directory that is
  1459. # left behind by Apple's compiler. We do this before executing the actions.
  1460. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1461. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1462. as_fn_set_status $ac_retval
  1463. } # ac_fn_c_try_link
  1464. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1465. # -------------------------------------------------------
  1466. # Tests whether HEADER exists and can be compiled using the include files in
  1467. # INCLUDES, setting the cache variable VAR accordingly.
  1468. ac_fn_c_check_header_compile ()
  1469. {
  1470. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1472. $as_echo_n "checking for $2... " >&6; }
  1473. if eval \${$3+:} false; then :
  1474. $as_echo_n "(cached) " >&6
  1475. else
  1476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1477. /* end confdefs.h. */
  1478. $4
  1479. #include <$2>
  1480. _ACEOF
  1481. if ac_fn_c_try_compile "$LINENO"; then :
  1482. eval "$3=yes"
  1483. else
  1484. eval "$3=no"
  1485. fi
  1486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1487. fi
  1488. eval ac_res=\$$3
  1489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1490. $as_echo "$ac_res" >&6; }
  1491. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1492. } # ac_fn_c_check_header_compile
  1493. # ac_fn_c_try_cpp LINENO
  1494. # ----------------------
  1495. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1496. ac_fn_c_try_cpp ()
  1497. {
  1498. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1499. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1500. case "(($ac_try" in
  1501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1502. *) ac_try_echo=$ac_try;;
  1503. esac
  1504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1505. $as_echo "$ac_try_echo"; } >&5
  1506. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1507. ac_status=$?
  1508. if test -s conftest.err; then
  1509. grep -v '^ *+' conftest.err >conftest.er1
  1510. cat conftest.er1 >&5
  1511. mv -f conftest.er1 conftest.err
  1512. fi
  1513. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1514. test $ac_status = 0; } > conftest.i && {
  1515. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1516. test ! -s conftest.err
  1517. }; then :
  1518. ac_retval=0
  1519. else
  1520. $as_echo "$as_me: failed program was:" >&5
  1521. sed 's/^/| /' conftest.$ac_ext >&5
  1522. ac_retval=1
  1523. fi
  1524. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1525. as_fn_set_status $ac_retval
  1526. } # ac_fn_c_try_cpp
  1527. # ac_fn_c_try_run LINENO
  1528. # ----------------------
  1529. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1530. # that executables *can* be run.
  1531. ac_fn_c_try_run ()
  1532. {
  1533. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1534. if { { ac_try="$ac_link"
  1535. case "(($ac_try" in
  1536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1537. *) ac_try_echo=$ac_try;;
  1538. esac
  1539. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1540. $as_echo "$ac_try_echo"; } >&5
  1541. (eval "$ac_link") 2>&5
  1542. ac_status=$?
  1543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1544. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1545. { { case "(($ac_try" in
  1546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1547. *) ac_try_echo=$ac_try;;
  1548. esac
  1549. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1550. $as_echo "$ac_try_echo"; } >&5
  1551. (eval "$ac_try") 2>&5
  1552. ac_status=$?
  1553. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1554. test $ac_status = 0; }; }; then :
  1555. ac_retval=0
  1556. else
  1557. $as_echo "$as_me: program exited with status $ac_status" >&5
  1558. $as_echo "$as_me: failed program was:" >&5
  1559. sed 's/^/| /' conftest.$ac_ext >&5
  1560. ac_retval=$ac_status
  1561. fi
  1562. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1563. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1564. as_fn_set_status $ac_retval
  1565. } # ac_fn_c_try_run
  1566. # ac_fn_c_check_func LINENO FUNC VAR
  1567. # ----------------------------------
  1568. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1569. ac_fn_c_check_func ()
  1570. {
  1571. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1573. $as_echo_n "checking for $2... " >&6; }
  1574. if eval \${$3+:} false; then :
  1575. $as_echo_n "(cached) " >&6
  1576. else
  1577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1578. /* end confdefs.h. */
  1579. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1580. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1581. #define $2 innocuous_$2
  1582. /* System header to define __stub macros and hopefully few prototypes,
  1583. which can conflict with char $2 (); below.
  1584. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1585. <limits.h> exists even on freestanding compilers. */
  1586. #ifdef __STDC__
  1587. # include <limits.h>
  1588. #else
  1589. # include <assert.h>
  1590. #endif
  1591. #undef $2
  1592. /* Override any GCC internal prototype to avoid an error.
  1593. Use char because int might match the return type of a GCC
  1594. builtin and then its argument prototype would still apply. */
  1595. #ifdef __cplusplus
  1596. extern "C"
  1597. #endif
  1598. char $2 ();
  1599. /* The GNU C library defines this for functions which it implements
  1600. to always fail with ENOSYS. Some functions are actually named
  1601. something starting with __ and the normal name is an alias. */
  1602. #if defined __stub_$2 || defined __stub___$2
  1603. choke me
  1604. #endif
  1605. int
  1606. main ()
  1607. {
  1608. return $2 ();
  1609. ;
  1610. return 0;
  1611. }
  1612. _ACEOF
  1613. if ac_fn_c_try_link "$LINENO"; then :
  1614. eval "$3=yes"
  1615. else
  1616. eval "$3=no"
  1617. fi
  1618. rm -f core conftest.err conftest.$ac_objext \
  1619. conftest$ac_exeext conftest.$ac_ext
  1620. fi
  1621. eval ac_res=\$$3
  1622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1623. $as_echo "$ac_res" >&6; }
  1624. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1625. } # ac_fn_c_check_func
  1626. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1627. # -------------------------------------------------------
  1628. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1629. # the include files in INCLUDES and setting the cache variable VAR
  1630. # accordingly.
  1631. ac_fn_c_check_header_mongrel ()
  1632. {
  1633. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1634. if eval \${$3+:} false; then :
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1636. $as_echo_n "checking for $2... " >&6; }
  1637. if eval \${$3+:} false; then :
  1638. $as_echo_n "(cached) " >&6
  1639. fi
  1640. eval ac_res=\$$3
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1642. $as_echo "$ac_res" >&6; }
  1643. else
  1644. # Is the header compilable?
  1645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1646. $as_echo_n "checking $2 usability... " >&6; }
  1647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1648. /* end confdefs.h. */
  1649. $4
  1650. #include <$2>
  1651. _ACEOF
  1652. if ac_fn_c_try_compile "$LINENO"; then :
  1653. ac_header_compiler=yes
  1654. else
  1655. ac_header_compiler=no
  1656. fi
  1657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1659. $as_echo "$ac_header_compiler" >&6; }
  1660. # Is the header present?
  1661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1662. $as_echo_n "checking $2 presence... " >&6; }
  1663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1664. /* end confdefs.h. */
  1665. #include <$2>
  1666. _ACEOF
  1667. if ac_fn_c_try_cpp "$LINENO"; then :
  1668. ac_header_preproc=yes
  1669. else
  1670. ac_header_preproc=no
  1671. fi
  1672. rm -f conftest.err conftest.i conftest.$ac_ext
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1674. $as_echo "$ac_header_preproc" >&6; }
  1675. # So? What about this header?
  1676. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1677. yes:no: )
  1678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1679. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1681. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1682. ;;
  1683. no:yes:* )
  1684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1685. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1687. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1688. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1689. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1691. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1693. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1694. ( $as_echo "## ------------------------------- ##
  1695. ## Report this to ogg-dev@xiph.org ##
  1696. ## ------------------------------- ##"
  1697. ) | sed "s/^/$as_me: WARNING: /" >&2
  1698. ;;
  1699. esac
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1701. $as_echo_n "checking for $2... " >&6; }
  1702. if eval \${$3+:} false; then :
  1703. $as_echo_n "(cached) " >&6
  1704. else
  1705. eval "$3=\$ac_header_compiler"
  1706. fi
  1707. eval ac_res=\$$3
  1708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1709. $as_echo "$ac_res" >&6; }
  1710. fi
  1711. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1712. } # ac_fn_c_check_header_mongrel
  1713. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1714. # --------------------------------------------
  1715. # Tries to find the compile-time value of EXPR in a program that includes
  1716. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1717. # computed
  1718. ac_fn_c_compute_int ()
  1719. {
  1720. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1721. if test "$cross_compiling" = yes; then
  1722. # Depending upon the size, compute the lo and hi bounds.
  1723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1724. /* end confdefs.h. */
  1725. $4
  1726. int
  1727. main ()
  1728. {
  1729. static int test_array [1 - 2 * !(($2) >= 0)];
  1730. test_array [0] = 0;
  1731. return test_array [0];
  1732. ;
  1733. return 0;
  1734. }
  1735. _ACEOF
  1736. if ac_fn_c_try_compile "$LINENO"; then :
  1737. ac_lo=0 ac_mid=0
  1738. while :; do
  1739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1740. /* end confdefs.h. */
  1741. $4
  1742. int
  1743. main ()
  1744. {
  1745. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1746. test_array [0] = 0;
  1747. return test_array [0];
  1748. ;
  1749. return 0;
  1750. }
  1751. _ACEOF
  1752. if ac_fn_c_try_compile "$LINENO"; then :
  1753. ac_hi=$ac_mid; break
  1754. else
  1755. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1756. if test $ac_lo -le $ac_mid; then
  1757. ac_lo= ac_hi=
  1758. break
  1759. fi
  1760. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1761. fi
  1762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1763. done
  1764. else
  1765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1766. /* end confdefs.h. */
  1767. $4
  1768. int
  1769. main ()
  1770. {
  1771. static int test_array [1 - 2 * !(($2) < 0)];
  1772. test_array [0] = 0;
  1773. return test_array [0];
  1774. ;
  1775. return 0;
  1776. }
  1777. _ACEOF
  1778. if ac_fn_c_try_compile "$LINENO"; then :
  1779. ac_hi=-1 ac_mid=-1
  1780. while :; do
  1781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1782. /* end confdefs.h. */
  1783. $4
  1784. int
  1785. main ()
  1786. {
  1787. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1788. test_array [0] = 0;
  1789. return test_array [0];
  1790. ;
  1791. return 0;
  1792. }
  1793. _ACEOF
  1794. if ac_fn_c_try_compile "$LINENO"; then :
  1795. ac_lo=$ac_mid; break
  1796. else
  1797. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1798. if test $ac_mid -le $ac_hi; then
  1799. ac_lo= ac_hi=
  1800. break
  1801. fi
  1802. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1803. fi
  1804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1805. done
  1806. else
  1807. ac_lo= ac_hi=
  1808. fi
  1809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1810. fi
  1811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1812. # Binary search between lo and hi bounds.
  1813. while test "x$ac_lo" != "x$ac_hi"; do
  1814. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1816. /* end confdefs.h. */
  1817. $4
  1818. int
  1819. main ()
  1820. {
  1821. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1822. test_array [0] = 0;
  1823. return test_array [0];
  1824. ;
  1825. return 0;
  1826. }
  1827. _ACEOF
  1828. if ac_fn_c_try_compile "$LINENO"; then :
  1829. ac_hi=$ac_mid
  1830. else
  1831. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1832. fi
  1833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1834. done
  1835. case $ac_lo in #((
  1836. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1837. '') ac_retval=1 ;;
  1838. esac
  1839. else
  1840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1841. /* end confdefs.h. */
  1842. $4
  1843. static long int longval () { return $2; }
  1844. static unsigned long int ulongval () { return $2; }
  1845. #include <stdio.h>
  1846. #include <stdlib.h>
  1847. int
  1848. main ()
  1849. {
  1850. FILE *f = fopen ("conftest.val", "w");
  1851. if (! f)
  1852. return 1;
  1853. if (($2) < 0)
  1854. {
  1855. long int i = longval ();
  1856. if (i != ($2))
  1857. return 1;
  1858. fprintf (f, "%ld", i);
  1859. }
  1860. else
  1861. {
  1862. unsigned long int i = ulongval ();
  1863. if (i != ($2))
  1864. return 1;
  1865. fprintf (f, "%lu", i);
  1866. }
  1867. /* Do not output a trailing newline, as this causes \r\n confusion
  1868. on some platforms. */
  1869. return ferror (f) || fclose (f) != 0;
  1870. ;
  1871. return 0;
  1872. }
  1873. _ACEOF
  1874. if ac_fn_c_try_run "$LINENO"; then :
  1875. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1876. else
  1877. ac_retval=1
  1878. fi
  1879. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1880. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1881. rm -f conftest.val
  1882. fi
  1883. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1884. as_fn_set_status $ac_retval
  1885. } # ac_fn_c_compute_int
  1886. cat >config.log <<_ACEOF
  1887. This file contains any messages produced by compilers while
  1888. running configure, to aid debugging if configure makes a mistake.
  1889. It was created by libogg $as_me 1.3.3, which was
  1890. generated by GNU Autoconf 2.69. Invocation command line was
  1891. $ $0 $@
  1892. _ACEOF
  1893. exec 5>>config.log
  1894. {
  1895. cat <<_ASUNAME
  1896. ## --------- ##
  1897. ## Platform. ##
  1898. ## --------- ##
  1899. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1900. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1901. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1902. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1903. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1904. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1905. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1906. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1907. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1908. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1909. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1910. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1911. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1912. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1913. _ASUNAME
  1914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1915. for as_dir in $PATH
  1916. do
  1917. IFS=$as_save_IFS
  1918. test -z "$as_dir" && as_dir=.
  1919. $as_echo "PATH: $as_dir"
  1920. done
  1921. IFS=$as_save_IFS
  1922. } >&5
  1923. cat >&5 <<_ACEOF
  1924. ## ----------- ##
  1925. ## Core tests. ##
  1926. ## ----------- ##
  1927. _ACEOF
  1928. # Keep a trace of the command line.
  1929. # Strip out --no-create and --no-recursion so they do not pile up.
  1930. # Strip out --silent because we don't want to record it for future runs.
  1931. # Also quote any args containing shell meta-characters.
  1932. # Make two passes to allow for proper duplicate-argument suppression.
  1933. ac_configure_args=
  1934. ac_configure_args0=
  1935. ac_configure_args1=
  1936. ac_must_keep_next=false
  1937. for ac_pass in 1 2
  1938. do
  1939. for ac_arg
  1940. do
  1941. case $ac_arg in
  1942. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1943. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1944. | -silent | --silent | --silen | --sile | --sil)
  1945. continue ;;
  1946. *\'*)
  1947. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1948. esac
  1949. case $ac_pass in
  1950. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1951. 2)
  1952. as_fn_append ac_configure_args1 " '$ac_arg'"
  1953. if test $ac_must_keep_next = true; then
  1954. ac_must_keep_next=false # Got value, back to normal.
  1955. else
  1956. case $ac_arg in
  1957. *=* | --config-cache | -C | -disable-* | --disable-* \
  1958. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1959. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1960. | -with-* | --with-* | -without-* | --without-* | --x)
  1961. case "$ac_configure_args0 " in
  1962. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1963. esac
  1964. ;;
  1965. -* ) ac_must_keep_next=true ;;
  1966. esac
  1967. fi
  1968. as_fn_append ac_configure_args " '$ac_arg'"
  1969. ;;
  1970. esac
  1971. done
  1972. done
  1973. { ac_configure_args0=; unset ac_configure_args0;}
  1974. { ac_configure_args1=; unset ac_configure_args1;}
  1975. # When interrupted or exit'd, cleanup temporary files, and complete
  1976. # config.log. We remove comments because anyway the quotes in there
  1977. # would cause problems or look ugly.
  1978. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1979. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1980. trap 'exit_status=$?
  1981. # Save into config.log some information that might help in debugging.
  1982. {
  1983. echo
  1984. $as_echo "## ---------------- ##
  1985. ## Cache variables. ##
  1986. ## ---------------- ##"
  1987. echo
  1988. # The following way of writing the cache mishandles newlines in values,
  1989. (
  1990. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1991. eval ac_val=\$$ac_var
  1992. case $ac_val in #(
  1993. *${as_nl}*)
  1994. case $ac_var in #(
  1995. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1996. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1997. esac
  1998. case $ac_var in #(
  1999. _ | IFS | as_nl) ;; #(
  2000. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2001. *) { eval $ac_var=; unset $ac_var;} ;;
  2002. esac ;;
  2003. esac
  2004. done
  2005. (set) 2>&1 |
  2006. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2007. *${as_nl}ac_space=\ *)
  2008. sed -n \
  2009. "s/'\''/'\''\\\\'\'''\''/g;
  2010. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2011. ;; #(
  2012. *)
  2013. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2014. ;;
  2015. esac |
  2016. sort
  2017. )
  2018. echo
  2019. $as_echo "## ----------------- ##
  2020. ## Output variables. ##
  2021. ## ----------------- ##"
  2022. echo
  2023. for ac_var in $ac_subst_vars
  2024. do
  2025. eval ac_val=\$$ac_var
  2026. case $ac_val in
  2027. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2028. esac
  2029. $as_echo "$ac_var='\''$ac_val'\''"
  2030. done | sort
  2031. echo
  2032. if test -n "$ac_subst_files"; then
  2033. $as_echo "## ------------------- ##
  2034. ## File substitutions. ##
  2035. ## ------------------- ##"
  2036. echo
  2037. for ac_var in $ac_subst_files
  2038. do
  2039. eval ac_val=\$$ac_var
  2040. case $ac_val in
  2041. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2042. esac
  2043. $as_echo "$ac_var='\''$ac_val'\''"
  2044. done | sort
  2045. echo
  2046. fi
  2047. if test -s confdefs.h; then
  2048. $as_echo "## ----------- ##
  2049. ## confdefs.h. ##
  2050. ## ----------- ##"
  2051. echo
  2052. cat confdefs.h
  2053. echo
  2054. fi
  2055. test "$ac_signal" != 0 &&
  2056. $as_echo "$as_me: caught signal $ac_signal"
  2057. $as_echo "$as_me: exit $exit_status"
  2058. } >&5
  2059. rm -f core *.core core.conftest.* &&
  2060. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2061. exit $exit_status
  2062. ' 0
  2063. for ac_signal in 1 2 13 15; do
  2064. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2065. done
  2066. ac_signal=0
  2067. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2068. rm -f -r conftest* confdefs.h
  2069. $as_echo "/* confdefs.h */" > confdefs.h
  2070. # Predefined preprocessor variables.
  2071. cat >>confdefs.h <<_ACEOF
  2072. #define PACKAGE_NAME "$PACKAGE_NAME"
  2073. _ACEOF
  2074. cat >>confdefs.h <<_ACEOF
  2075. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2076. _ACEOF
  2077. cat >>confdefs.h <<_ACEOF
  2078. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2079. _ACEOF
  2080. cat >>confdefs.h <<_ACEOF
  2081. #define PACKAGE_STRING "$PACKAGE_STRING"
  2082. _ACEOF
  2083. cat >>confdefs.h <<_ACEOF
  2084. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2085. _ACEOF
  2086. cat >>confdefs.h <<_ACEOF
  2087. #define PACKAGE_URL "$PACKAGE_URL"
  2088. _ACEOF
  2089. # Let the site file select an alternate cache file if it wants to.
  2090. # Prefer an explicitly selected file to automatically selected ones.
  2091. ac_site_file1=NONE
  2092. ac_site_file2=NONE
  2093. if test -n "$CONFIG_SITE"; then
  2094. # We do not want a PATH search for config.site.
  2095. case $CONFIG_SITE in #((
  2096. -*) ac_site_file1=./$CONFIG_SITE;;
  2097. */*) ac_site_file1=$CONFIG_SITE;;
  2098. *) ac_site_file1=./$CONFIG_SITE;;
  2099. esac
  2100. elif test "x$prefix" != xNONE; then
  2101. ac_site_file1=$prefix/share/config.site
  2102. ac_site_file2=$prefix/etc/config.site
  2103. else
  2104. ac_site_file1=$ac_default_prefix/share/config.site
  2105. ac_site_file2=$ac_default_prefix/etc/config.site
  2106. fi
  2107. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2108. do
  2109. test "x$ac_site_file" = xNONE && continue
  2110. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2112. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2113. sed 's/^/| /' "$ac_site_file" >&5
  2114. . "$ac_site_file" \
  2115. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2116. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2117. as_fn_error $? "failed to load site script $ac_site_file
  2118. See \`config.log' for more details" "$LINENO" 5; }
  2119. fi
  2120. done
  2121. if test -r "$cache_file"; then
  2122. # Some versions of bash will fail to source /dev/null (special files
  2123. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2124. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2126. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2127. case $cache_file in
  2128. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2129. *) . "./$cache_file";;
  2130. esac
  2131. fi
  2132. else
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2134. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2135. >$cache_file
  2136. fi
  2137. # Check that the precious variables saved in the cache have kept the same
  2138. # value.
  2139. ac_cache_corrupted=false
  2140. for ac_var in $ac_precious_vars; do
  2141. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2142. eval ac_new_set=\$ac_env_${ac_var}_set
  2143. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2144. eval ac_new_val=\$ac_env_${ac_var}_value
  2145. case $ac_old_set,$ac_new_set in
  2146. set,)
  2147. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2148. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2149. ac_cache_corrupted=: ;;
  2150. ,set)
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2152. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2153. ac_cache_corrupted=: ;;
  2154. ,);;
  2155. *)
  2156. if test "x$ac_old_val" != "x$ac_new_val"; then
  2157. # differences in whitespace do not lead to failure.
  2158. ac_old_val_w=`echo x $ac_old_val`
  2159. ac_new_val_w=`echo x $ac_new_val`
  2160. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2162. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2163. ac_cache_corrupted=:
  2164. else
  2165. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2166. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2167. eval $ac_var=\$ac_old_val
  2168. fi
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2170. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2171. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2172. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2173. fi;;
  2174. esac
  2175. # Pass precious variables to config.status.
  2176. if test "$ac_new_set" = set; then
  2177. case $ac_new_val in
  2178. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2179. *) ac_arg=$ac_var=$ac_new_val ;;
  2180. esac
  2181. case " $ac_configure_args " in
  2182. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2183. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2184. esac
  2185. fi
  2186. done
  2187. if $ac_cache_corrupted; then
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2189. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2190. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2191. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2192. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2193. fi
  2194. ## -------------------- ##
  2195. ## Main body of script. ##
  2196. ## -------------------- ##
  2197. ac_ext=c
  2198. ac_cpp='$CPP $CPPFLAGS'
  2199. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2200. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2201. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2202. am__api_version='1.15'
  2203. ac_aux_dir=
  2204. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2205. if test -f "$ac_dir/install-sh"; then
  2206. ac_aux_dir=$ac_dir
  2207. ac_install_sh="$ac_aux_dir/install-sh -c"
  2208. break
  2209. elif test -f "$ac_dir/install.sh"; then
  2210. ac_aux_dir=$ac_dir
  2211. ac_install_sh="$ac_aux_dir/install.sh -c"
  2212. break
  2213. elif test -f "$ac_dir/shtool"; then
  2214. ac_aux_dir=$ac_dir
  2215. ac_install_sh="$ac_aux_dir/shtool install -c"
  2216. break
  2217. fi
  2218. done
  2219. if test -z "$ac_aux_dir"; then
  2220. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2221. fi
  2222. # These three variables are undocumented and unsupported,
  2223. # and are intended to be withdrawn in a future Autoconf release.
  2224. # They can cause serious problems if a builder's source tree is in a directory
  2225. # whose full name contains unusual characters.
  2226. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2227. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2228. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2229. # Find a good install program. We prefer a C program (faster),
  2230. # so one script is as good as another. But avoid the broken or
  2231. # incompatible versions:
  2232. # SysV /etc/install, /usr/sbin/install
  2233. # SunOS /usr/etc/install
  2234. # IRIX /sbin/install
  2235. # AIX /bin/install
  2236. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2237. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2238. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2239. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2240. # OS/2's system install, which has a completely different semantic
  2241. # ./install, which can be erroneously created by make from ./install.sh.
  2242. # Reject install programs that cannot install multiple files.
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2244. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2245. if test -z "$INSTALL"; then
  2246. if ${ac_cv_path_install+:} false; then :
  2247. $as_echo_n "(cached) " >&6
  2248. else
  2249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2250. for as_dir in $PATH
  2251. do
  2252. IFS=$as_save_IFS
  2253. test -z "$as_dir" && as_dir=.
  2254. # Account for people who put trailing slashes in PATH elements.
  2255. case $as_dir/ in #((
  2256. ./ | .// | /[cC]/* | \
  2257. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2258. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2259. /usr/ucb/* ) ;;
  2260. *)
  2261. # OSF1 and SCO ODT 3.0 have their own names for install.
  2262. # Don't use installbsd from OSF since it installs stuff as root
  2263. # by default.
  2264. for ac_prog in ginstall scoinst install; do
  2265. for ac_exec_ext in '' $ac_executable_extensions; do
  2266. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2267. if test $ac_prog = install &&
  2268. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2269. # AIX install. It has an incompatible calling convention.
  2270. :
  2271. elif test $ac_prog = install &&
  2272. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2273. # program-specific install script used by HP pwplus--don't use.
  2274. :
  2275. else
  2276. rm -rf conftest.one conftest.two conftest.dir
  2277. echo one > conftest.one
  2278. echo two > conftest.two
  2279. mkdir conftest.dir
  2280. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2281. test -s conftest.one && test -s conftest.two &&
  2282. test -s conftest.dir/conftest.one &&
  2283. test -s conftest.dir/conftest.two
  2284. then
  2285. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2286. break 3
  2287. fi
  2288. fi
  2289. fi
  2290. done
  2291. done
  2292. ;;
  2293. esac
  2294. done
  2295. IFS=$as_save_IFS
  2296. rm -rf conftest.one conftest.two conftest.dir
  2297. fi
  2298. if test "${ac_cv_path_install+set}" = set; then
  2299. INSTALL=$ac_cv_path_install
  2300. else
  2301. # As a last resort, use the slow shell script. Don't cache a
  2302. # value for INSTALL within a source directory, because that will
  2303. # break other packages using the cache if that directory is
  2304. # removed, or if the value is a relative name.
  2305. INSTALL=$ac_install_sh
  2306. fi
  2307. fi
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2309. $as_echo "$INSTALL" >&6; }
  2310. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2311. # It thinks the first close brace ends the variable substitution.
  2312. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2313. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2314. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2316. $as_echo_n "checking whether build environment is sane... " >&6; }
  2317. # Reject unsafe characters in $srcdir or the absolute working directory
  2318. # name. Accept space and tab only in the latter.
  2319. am_lf='
  2320. '
  2321. case `pwd` in
  2322. *[\\\"\#\$\&\'\`$am_lf]*)
  2323. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2324. esac
  2325. case $srcdir in
  2326. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2327. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2328. esac
  2329. # Do 'set' in a subshell so we don't clobber the current shell's
  2330. # arguments. Must try -L first in case configure is actually a
  2331. # symlink; some systems play weird games with the mod time of symlinks
  2332. # (eg FreeBSD returns the mod time of the symlink's containing
  2333. # directory).
  2334. if (
  2335. am_has_slept=no
  2336. for am_try in 1 2; do
  2337. echo "timestamp, slept: $am_has_slept" > conftest.file
  2338. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2339. if test "$*" = "X"; then
  2340. # -L didn't work.
  2341. set X `ls -t "$srcdir/configure" conftest.file`
  2342. fi
  2343. if test "$*" != "X $srcdir/configure conftest.file" \
  2344. && test "$*" != "X conftest.file $srcdir/configure"; then
  2345. # If neither matched, then we have a broken ls. This can happen
  2346. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2347. # broken ls alias from the environment. This has actually
  2348. # happened. Such a system could not be considered "sane".
  2349. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2350. alias in your environment" "$LINENO" 5
  2351. fi
  2352. if test "$2" = conftest.file || test $am_try -eq 2; then
  2353. break
  2354. fi
  2355. # Just in case.
  2356. sleep 1
  2357. am_has_slept=yes
  2358. done
  2359. test "$2" = conftest.file
  2360. )
  2361. then
  2362. # Ok.
  2363. :
  2364. else
  2365. as_fn_error $? "newly created file is older than distributed files!
  2366. Check your system clock" "$LINENO" 5
  2367. fi
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2369. $as_echo "yes" >&6; }
  2370. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2371. # generated files are strictly newer.
  2372. am_sleep_pid=
  2373. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2374. ( sleep 1 ) &
  2375. am_sleep_pid=$!
  2376. fi
  2377. rm -f conftest.file
  2378. test "$program_prefix" != NONE &&
  2379. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2380. # Use a double $ so make ignores it.
  2381. test "$program_suffix" != NONE &&
  2382. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2383. # Double any \ or $.
  2384. # By default was `s,x,x', remove it if useless.
  2385. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2386. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2387. # Expand $ac_aux_dir to an absolute path.
  2388. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2389. if test x"${MISSING+set}" != xset; then
  2390. case $am_aux_dir in
  2391. *\ * | *\ *)
  2392. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2393. *)
  2394. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2395. esac
  2396. fi
  2397. # Use eval to expand $SHELL
  2398. if eval "$MISSING --is-lightweight"; then
  2399. am_missing_run="$MISSING "
  2400. else
  2401. am_missing_run=
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2403. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2404. fi
  2405. if test x"${install_sh+set}" != xset; then
  2406. case $am_aux_dir in
  2407. *\ * | *\ *)
  2408. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2409. *)
  2410. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2411. esac
  2412. fi
  2413. # Installed binaries are usually stripped using 'strip' when the user
  2414. # run "make install-strip". However 'strip' might not be the right
  2415. # tool to use in cross-compilation environments, therefore Automake
  2416. # will honor the 'STRIP' environment variable to overrule this program.
  2417. if test "$cross_compiling" != no; then
  2418. if test -n "$ac_tool_prefix"; then
  2419. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2420. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2422. $as_echo_n "checking for $ac_word... " >&6; }
  2423. if ${ac_cv_prog_STRIP+:} false; then :
  2424. $as_echo_n "(cached) " >&6
  2425. else
  2426. if test -n "$STRIP"; then
  2427. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2428. else
  2429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2430. for as_dir in $PATH
  2431. do
  2432. IFS=$as_save_IFS
  2433. test -z "$as_dir" && as_dir=.
  2434. for ac_exec_ext in '' $ac_executable_extensions; do
  2435. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2436. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2438. break 2
  2439. fi
  2440. done
  2441. done
  2442. IFS=$as_save_IFS
  2443. fi
  2444. fi
  2445. STRIP=$ac_cv_prog_STRIP
  2446. if test -n "$STRIP"; then
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2448. $as_echo "$STRIP" >&6; }
  2449. else
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2451. $as_echo "no" >&6; }
  2452. fi
  2453. fi
  2454. if test -z "$ac_cv_prog_STRIP"; then
  2455. ac_ct_STRIP=$STRIP
  2456. # Extract the first word of "strip", so it can be a program name with args.
  2457. set dummy strip; ac_word=$2
  2458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2459. $as_echo_n "checking for $ac_word... " >&6; }
  2460. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2461. $as_echo_n "(cached) " >&6
  2462. else
  2463. if test -n "$ac_ct_STRIP"; then
  2464. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2465. else
  2466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2467. for as_dir in $PATH
  2468. do
  2469. IFS=$as_save_IFS
  2470. test -z "$as_dir" && as_dir=.
  2471. for ac_exec_ext in '' $ac_executable_extensions; do
  2472. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2473. ac_cv_prog_ac_ct_STRIP="strip"
  2474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2475. break 2
  2476. fi
  2477. done
  2478. done
  2479. IFS=$as_save_IFS
  2480. fi
  2481. fi
  2482. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2483. if test -n "$ac_ct_STRIP"; then
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2485. $as_echo "$ac_ct_STRIP" >&6; }
  2486. else
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2488. $as_echo "no" >&6; }
  2489. fi
  2490. if test "x$ac_ct_STRIP" = x; then
  2491. STRIP=":"
  2492. else
  2493. case $cross_compiling:$ac_tool_warned in
  2494. yes:)
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2496. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2497. ac_tool_warned=yes ;;
  2498. esac
  2499. STRIP=$ac_ct_STRIP
  2500. fi
  2501. else
  2502. STRIP="$ac_cv_prog_STRIP"
  2503. fi
  2504. fi
  2505. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2507. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2508. if test -z "$MKDIR_P"; then
  2509. if ${ac_cv_path_mkdir+:} false; then :
  2510. $as_echo_n "(cached) " >&6
  2511. else
  2512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2513. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2514. do
  2515. IFS=$as_save_IFS
  2516. test -z "$as_dir" && as_dir=.
  2517. for ac_prog in mkdir gmkdir; do
  2518. for ac_exec_ext in '' $ac_executable_extensions; do
  2519. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2520. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2521. 'mkdir (GNU coreutils) '* | \
  2522. 'mkdir (coreutils) '* | \
  2523. 'mkdir (fileutils) '4.1*)
  2524. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2525. break 3;;
  2526. esac
  2527. done
  2528. done
  2529. done
  2530. IFS=$as_save_IFS
  2531. fi
  2532. test -d ./--version && rmdir ./--version
  2533. if test "${ac_cv_path_mkdir+set}" = set; then
  2534. MKDIR_P="$ac_cv_path_mkdir -p"
  2535. else
  2536. # As a last resort, use the slow shell script. Don't cache a
  2537. # value for MKDIR_P within a source directory, because that will
  2538. # break other packages using the cache if that directory is
  2539. # removed, or if the value is a relative name.
  2540. MKDIR_P="$ac_install_sh -d"
  2541. fi
  2542. fi
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2544. $as_echo "$MKDIR_P" >&6; }
  2545. for ac_prog in gawk mawk nawk awk
  2546. do
  2547. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2548. set dummy $ac_prog; ac_word=$2
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2550. $as_echo_n "checking for $ac_word... " >&6; }
  2551. if ${ac_cv_prog_AWK+:} false; then :
  2552. $as_echo_n "(cached) " >&6
  2553. else
  2554. if test -n "$AWK"; then
  2555. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2556. else
  2557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2558. for as_dir in $PATH
  2559. do
  2560. IFS=$as_save_IFS
  2561. test -z "$as_dir" && as_dir=.
  2562. for ac_exec_ext in '' $ac_executable_extensions; do
  2563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2564. ac_cv_prog_AWK="$ac_prog"
  2565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2566. break 2
  2567. fi
  2568. done
  2569. done
  2570. IFS=$as_save_IFS
  2571. fi
  2572. fi
  2573. AWK=$ac_cv_prog_AWK
  2574. if test -n "$AWK"; then
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2576. $as_echo "$AWK" >&6; }
  2577. else
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2579. $as_echo "no" >&6; }
  2580. fi
  2581. test -n "$AWK" && break
  2582. done
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2584. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2585. set x ${MAKE-make}
  2586. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2587. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2588. $as_echo_n "(cached) " >&6
  2589. else
  2590. cat >conftest.make <<\_ACEOF
  2591. SHELL = /bin/sh
  2592. all:
  2593. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2594. _ACEOF
  2595. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2596. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2597. *@@@%%%=?*=@@@%%%*)
  2598. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2599. *)
  2600. eval ac_cv_prog_make_${ac_make}_set=no;;
  2601. esac
  2602. rm -f conftest.make
  2603. fi
  2604. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2606. $as_echo "yes" >&6; }
  2607. SET_MAKE=
  2608. else
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2610. $as_echo "no" >&6; }
  2611. SET_MAKE="MAKE=${MAKE-make}"
  2612. fi
  2613. rm -rf .tst 2>/dev/null
  2614. mkdir .tst 2>/dev/null
  2615. if test -d .tst; then
  2616. am__leading_dot=.
  2617. else
  2618. am__leading_dot=_
  2619. fi
  2620. rmdir .tst 2>/dev/null
  2621. # Check whether --enable-silent-rules was given.
  2622. if test "${enable_silent_rules+set}" = set; then :
  2623. enableval=$enable_silent_rules;
  2624. fi
  2625. case $enable_silent_rules in # (((
  2626. yes) AM_DEFAULT_VERBOSITY=0;;
  2627. no) AM_DEFAULT_VERBOSITY=1;;
  2628. *) AM_DEFAULT_VERBOSITY=1;;
  2629. esac
  2630. am_make=${MAKE-make}
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2632. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2633. if ${am_cv_make_support_nested_variables+:} false; then :
  2634. $as_echo_n "(cached) " >&6
  2635. else
  2636. if $as_echo 'TRUE=$(BAR$(V))
  2637. BAR0=false
  2638. BAR1=true
  2639. V=1
  2640. am__doit:
  2641. @$(TRUE)
  2642. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2643. am_cv_make_support_nested_variables=yes
  2644. else
  2645. am_cv_make_support_nested_variables=no
  2646. fi
  2647. fi
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2649. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2650. if test $am_cv_make_support_nested_variables = yes; then
  2651. AM_V='$(V)'
  2652. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2653. else
  2654. AM_V=$AM_DEFAULT_VERBOSITY
  2655. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2656. fi
  2657. AM_BACKSLASH='\'
  2658. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2659. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2660. # is not polluted with repeated "-I."
  2661. am__isrc=' -I$(srcdir)'
  2662. # test to see if srcdir already configured
  2663. if test -f $srcdir/config.status; then
  2664. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2665. fi
  2666. fi
  2667. # test whether we have cygpath
  2668. if test -z "$CYGPATH_W"; then
  2669. if (cygpath --version) >/dev/null 2>/dev/null; then
  2670. CYGPATH_W='cygpath -w'
  2671. else
  2672. CYGPATH_W=echo
  2673. fi
  2674. fi
  2675. # Define the identity of the package.
  2676. PACKAGE='libogg'
  2677. VERSION='1.3.3'
  2678. cat >>confdefs.h <<_ACEOF
  2679. #define PACKAGE "$PACKAGE"
  2680. _ACEOF
  2681. cat >>confdefs.h <<_ACEOF
  2682. #define VERSION "$VERSION"
  2683. _ACEOF
  2684. # Some tools Automake needs.
  2685. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2686. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2687. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2688. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2689. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2690. # For better backward compatibility. To be removed once Automake 1.9.x
  2691. # dies out for good. For more background, see:
  2692. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2693. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2694. mkdir_p='$(MKDIR_P)'
  2695. # We need awk for the "check" target (and possibly the TAP driver). The
  2696. # system "awk" is bad on some platforms.
  2697. # Always define AMTAR for backward compatibility. Yes, it's still used
  2698. # in the wild :-( We should find a proper way to deprecate it ...
  2699. AMTAR='$${TAR-tar}'
  2700. # We'll loop over all known methods to create a tar archive until one works.
  2701. _am_tools='gnutar pax cpio none'
  2702. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2703. # POSIX will say in a future version that running "rm -f" with no argument
  2704. # is OK; and we want to be able to make that assumption in our Makefile
  2705. # recipes. So use an aggressive probe to check that the usage we want is
  2706. # actually supported "in the wild" to an acceptable degree.
  2707. # See automake bug#10828.
  2708. # To make any issue more visible, cause the running configure to be aborted
  2709. # by default if the 'rm' program in use doesn't match our expectations; the
  2710. # user can still override this though.
  2711. if rm -f && rm -fr && rm -rf; then : OK; else
  2712. cat >&2 <<'END'
  2713. Oops!
  2714. Your 'rm' program seems unable to run without file operands specified
  2715. on the command line, even when the '-f' option is present. This is contrary
  2716. to the behaviour of most rm programs out there, and not conforming with
  2717. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2718. Please tell bug-automake@gnu.org about your system, including the value
  2719. of your $PATH and any error possibly output before this message. This
  2720. can help us improve future automake versions.
  2721. END
  2722. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2723. echo 'Configuration will proceed anyway, since you have set the' >&2
  2724. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2725. echo >&2
  2726. else
  2727. cat >&2 <<'END'
  2728. Aborting the configuration process, to ensure you take notice of the issue.
  2729. You can download and install GNU coreutils to get an 'rm' implementation
  2730. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2731. If you want to complete the configuration process using your problematic
  2732. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2733. to "yes", and re-run configure.
  2734. END
  2735. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2736. fi
  2737. fi
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2739. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2740. # Check whether --enable-maintainer-mode was given.
  2741. if test "${enable_maintainer_mode+set}" = set; then :
  2742. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2743. else
  2744. USE_MAINTAINER_MODE=yes
  2745. fi
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2747. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2748. if test $USE_MAINTAINER_MODE = yes; then
  2749. MAINTAINER_MODE_TRUE=
  2750. MAINTAINER_MODE_FALSE='#'
  2751. else
  2752. MAINTAINER_MODE_TRUE='#'
  2753. MAINTAINER_MODE_FALSE=
  2754. fi
  2755. MAINT=$MAINTAINER_MODE_TRUE
  2756. LIB_CURRENT=8
  2757. LIB_REVISION=3
  2758. LIB_AGE=8
  2759. ac_ext=c
  2760. ac_cpp='$CPP $CPPFLAGS'
  2761. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2762. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2763. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2764. if test -n "$ac_tool_prefix"; then
  2765. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2766. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2768. $as_echo_n "checking for $ac_word... " >&6; }
  2769. if ${ac_cv_prog_CC+:} false; then :
  2770. $as_echo_n "(cached) " >&6
  2771. else
  2772. if test -n "$CC"; then
  2773. ac_cv_prog_CC="$CC" # Let the user override the test.
  2774. else
  2775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2776. for as_dir in $PATH
  2777. do
  2778. IFS=$as_save_IFS
  2779. test -z "$as_dir" && as_dir=.
  2780. for ac_exec_ext in '' $ac_executable_extensions; do
  2781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2782. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2784. break 2
  2785. fi
  2786. done
  2787. done
  2788. IFS=$as_save_IFS
  2789. fi
  2790. fi
  2791. CC=$ac_cv_prog_CC
  2792. if test -n "$CC"; then
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2794. $as_echo "$CC" >&6; }
  2795. else
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2797. $as_echo "no" >&6; }
  2798. fi
  2799. fi
  2800. if test -z "$ac_cv_prog_CC"; then
  2801. ac_ct_CC=$CC
  2802. # Extract the first word of "gcc", so it can be a program name with args.
  2803. set dummy gcc; ac_word=$2
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2805. $as_echo_n "checking for $ac_word... " >&6; }
  2806. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2807. $as_echo_n "(cached) " >&6
  2808. else
  2809. if test -n "$ac_ct_CC"; then
  2810. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2811. else
  2812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2813. for as_dir in $PATH
  2814. do
  2815. IFS=$as_save_IFS
  2816. test -z "$as_dir" && as_dir=.
  2817. for ac_exec_ext in '' $ac_executable_extensions; do
  2818. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2819. ac_cv_prog_ac_ct_CC="gcc"
  2820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2821. break 2
  2822. fi
  2823. done
  2824. done
  2825. IFS=$as_save_IFS
  2826. fi
  2827. fi
  2828. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2829. if test -n "$ac_ct_CC"; then
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2831. $as_echo "$ac_ct_CC" >&6; }
  2832. else
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2834. $as_echo "no" >&6; }
  2835. fi
  2836. if test "x$ac_ct_CC" = x; then
  2837. CC=""
  2838. else
  2839. case $cross_compiling:$ac_tool_warned in
  2840. yes:)
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2843. ac_tool_warned=yes ;;
  2844. esac
  2845. CC=$ac_ct_CC
  2846. fi
  2847. else
  2848. CC="$ac_cv_prog_CC"
  2849. fi
  2850. if test -z "$CC"; then
  2851. if test -n "$ac_tool_prefix"; then
  2852. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2853. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2855. $as_echo_n "checking for $ac_word... " >&6; }
  2856. if ${ac_cv_prog_CC+:} false; then :
  2857. $as_echo_n "(cached) " >&6
  2858. else
  2859. if test -n "$CC"; then
  2860. ac_cv_prog_CC="$CC" # Let the user override the test.
  2861. else
  2862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2863. for as_dir in $PATH
  2864. do
  2865. IFS=$as_save_IFS
  2866. test -z "$as_dir" && as_dir=.
  2867. for ac_exec_ext in '' $ac_executable_extensions; do
  2868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2869. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2871. break 2
  2872. fi
  2873. done
  2874. done
  2875. IFS=$as_save_IFS
  2876. fi
  2877. fi
  2878. CC=$ac_cv_prog_CC
  2879. if test -n "$CC"; then
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2881. $as_echo "$CC" >&6; }
  2882. else
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2884. $as_echo "no" >&6; }
  2885. fi
  2886. fi
  2887. fi
  2888. if test -z "$CC"; then
  2889. # Extract the first word of "cc", so it can be a program name with args.
  2890. set dummy cc; ac_word=$2
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2892. $as_echo_n "checking for $ac_word... " >&6; }
  2893. if ${ac_cv_prog_CC+:} false; then :
  2894. $as_echo_n "(cached) " >&6
  2895. else
  2896. if test -n "$CC"; then
  2897. ac_cv_prog_CC="$CC" # Let the user override the test.
  2898. else
  2899. ac_prog_rejected=no
  2900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2901. for as_dir in $PATH
  2902. do
  2903. IFS=$as_save_IFS
  2904. test -z "$as_dir" && as_dir=.
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2907. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2908. ac_prog_rejected=yes
  2909. continue
  2910. fi
  2911. ac_cv_prog_CC="cc"
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2913. break 2
  2914. fi
  2915. done
  2916. done
  2917. IFS=$as_save_IFS
  2918. if test $ac_prog_rejected = yes; then
  2919. # We found a bogon in the path, so make sure we never use it.
  2920. set dummy $ac_cv_prog_CC
  2921. shift
  2922. if test $# != 0; then
  2923. # We chose a different compiler from the bogus one.
  2924. # However, it has the same basename, so the bogon will be chosen
  2925. # first if we set CC to just the basename; use the full file name.
  2926. shift
  2927. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2928. fi
  2929. fi
  2930. fi
  2931. fi
  2932. CC=$ac_cv_prog_CC
  2933. if test -n "$CC"; then
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2935. $as_echo "$CC" >&6; }
  2936. else
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2938. $as_echo "no" >&6; }
  2939. fi
  2940. fi
  2941. if test -z "$CC"; then
  2942. if test -n "$ac_tool_prefix"; then
  2943. for ac_prog in cl.exe
  2944. do
  2945. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2946. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2948. $as_echo_n "checking for $ac_word... " >&6; }
  2949. if ${ac_cv_prog_CC+:} false; then :
  2950. $as_echo_n "(cached) " >&6
  2951. else
  2952. if test -n "$CC"; then
  2953. ac_cv_prog_CC="$CC" # Let the user override the test.
  2954. else
  2955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2956. for as_dir in $PATH
  2957. do
  2958. IFS=$as_save_IFS
  2959. test -z "$as_dir" && as_dir=.
  2960. for ac_exec_ext in '' $ac_executable_extensions; do
  2961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2962. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2964. break 2
  2965. fi
  2966. done
  2967. done
  2968. IFS=$as_save_IFS
  2969. fi
  2970. fi
  2971. CC=$ac_cv_prog_CC
  2972. if test -n "$CC"; then
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2974. $as_echo "$CC" >&6; }
  2975. else
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2977. $as_echo "no" >&6; }
  2978. fi
  2979. test -n "$CC" && break
  2980. done
  2981. fi
  2982. if test -z "$CC"; then
  2983. ac_ct_CC=$CC
  2984. for ac_prog in cl.exe
  2985. do
  2986. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2987. set dummy $ac_prog; ac_word=$2
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2989. $as_echo_n "checking for $ac_word... " >&6; }
  2990. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2991. $as_echo_n "(cached) " >&6
  2992. else
  2993. if test -n "$ac_ct_CC"; then
  2994. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2995. else
  2996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2997. for as_dir in $PATH
  2998. do
  2999. IFS=$as_save_IFS
  3000. test -z "$as_dir" && as_dir=.
  3001. for ac_exec_ext in '' $ac_executable_extensions; do
  3002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3003. ac_cv_prog_ac_ct_CC="$ac_prog"
  3004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3005. break 2
  3006. fi
  3007. done
  3008. done
  3009. IFS=$as_save_IFS
  3010. fi
  3011. fi
  3012. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3013. if test -n "$ac_ct_CC"; then
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3015. $as_echo "$ac_ct_CC" >&6; }
  3016. else
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3018. $as_echo "no" >&6; }
  3019. fi
  3020. test -n "$ac_ct_CC" && break
  3021. done
  3022. if test "x$ac_ct_CC" = x; then
  3023. CC=""
  3024. else
  3025. case $cross_compiling:$ac_tool_warned in
  3026. yes:)
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3028. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3029. ac_tool_warned=yes ;;
  3030. esac
  3031. CC=$ac_ct_CC
  3032. fi
  3033. fi
  3034. fi
  3035. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3036. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3037. as_fn_error $? "no acceptable C compiler found in \$PATH
  3038. See \`config.log' for more details" "$LINENO" 5; }
  3039. # Provide some information about the compiler.
  3040. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3041. set X $ac_compile
  3042. ac_compiler=$2
  3043. for ac_option in --version -v -V -qversion; do
  3044. { { ac_try="$ac_compiler $ac_option >&5"
  3045. case "(($ac_try" in
  3046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3047. *) ac_try_echo=$ac_try;;
  3048. esac
  3049. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3050. $as_echo "$ac_try_echo"; } >&5
  3051. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3052. ac_status=$?
  3053. if test -s conftest.err; then
  3054. sed '10a\
  3055. ... rest of stderr output deleted ...
  3056. 10q' conftest.err >conftest.er1
  3057. cat conftest.er1 >&5
  3058. fi
  3059. rm -f conftest.er1 conftest.err
  3060. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3061. test $ac_status = 0; }
  3062. done
  3063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3064. /* end confdefs.h. */
  3065. int
  3066. main ()
  3067. {
  3068. ;
  3069. return 0;
  3070. }
  3071. _ACEOF
  3072. ac_clean_files_save=$ac_clean_files
  3073. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3074. # Try to create an executable without -o first, disregard a.out.
  3075. # It will help us diagnose broken compilers, and finding out an intuition
  3076. # of exeext.
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3078. $as_echo_n "checking whether the C compiler works... " >&6; }
  3079. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3080. # The possible output files:
  3081. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3082. ac_rmfiles=
  3083. for ac_file in $ac_files
  3084. do
  3085. case $ac_file in
  3086. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3087. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3088. esac
  3089. done
  3090. rm -f $ac_rmfiles
  3091. if { { ac_try="$ac_link_default"
  3092. case "(($ac_try" in
  3093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3094. *) ac_try_echo=$ac_try;;
  3095. esac
  3096. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3097. $as_echo "$ac_try_echo"; } >&5
  3098. (eval "$ac_link_default") 2>&5
  3099. ac_status=$?
  3100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3101. test $ac_status = 0; }; then :
  3102. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3103. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3104. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3105. # so that the user can short-circuit this test for compilers unknown to
  3106. # Autoconf.
  3107. for ac_file in $ac_files ''
  3108. do
  3109. test -f "$ac_file" || continue
  3110. case $ac_file in
  3111. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3112. ;;
  3113. [ab].out )
  3114. # We found the default executable, but exeext='' is most
  3115. # certainly right.
  3116. break;;
  3117. *.* )
  3118. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3119. then :; else
  3120. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3121. fi
  3122. # We set ac_cv_exeext here because the later test for it is not
  3123. # safe: cross compilers may not add the suffix if given an `-o'
  3124. # argument, so we may need to know it at that point already.
  3125. # Even if this section looks crufty: it has the advantage of
  3126. # actually working.
  3127. break;;
  3128. * )
  3129. break;;
  3130. esac
  3131. done
  3132. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3133. else
  3134. ac_file=''
  3135. fi
  3136. if test -z "$ac_file"; then :
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3138. $as_echo "no" >&6; }
  3139. $as_echo "$as_me: failed program was:" >&5
  3140. sed 's/^/| /' conftest.$ac_ext >&5
  3141. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3142. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3143. as_fn_error 77 "C compiler cannot create executables
  3144. See \`config.log' for more details" "$LINENO" 5; }
  3145. else
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3147. $as_echo "yes" >&6; }
  3148. fi
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3150. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3152. $as_echo "$ac_file" >&6; }
  3153. ac_exeext=$ac_cv_exeext
  3154. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3155. ac_clean_files=$ac_clean_files_save
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3157. $as_echo_n "checking for suffix of executables... " >&6; }
  3158. if { { ac_try="$ac_link"
  3159. case "(($ac_try" in
  3160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3161. *) ac_try_echo=$ac_try;;
  3162. esac
  3163. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3164. $as_echo "$ac_try_echo"; } >&5
  3165. (eval "$ac_link") 2>&5
  3166. ac_status=$?
  3167. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3168. test $ac_status = 0; }; then :
  3169. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3170. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3171. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3172. # `rm'.
  3173. for ac_file in conftest.exe conftest conftest.*; do
  3174. test -f "$ac_file" || continue
  3175. case $ac_file in
  3176. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3177. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3178. break;;
  3179. * ) break;;
  3180. esac
  3181. done
  3182. else
  3183. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3184. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3185. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3186. See \`config.log' for more details" "$LINENO" 5; }
  3187. fi
  3188. rm -f conftest conftest$ac_cv_exeext
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3190. $as_echo "$ac_cv_exeext" >&6; }
  3191. rm -f conftest.$ac_ext
  3192. EXEEXT=$ac_cv_exeext
  3193. ac_exeext=$EXEEXT
  3194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3195. /* end confdefs.h. */
  3196. #include <stdio.h>
  3197. int
  3198. main ()
  3199. {
  3200. FILE *f = fopen ("conftest.out", "w");
  3201. return ferror (f) || fclose (f) != 0;
  3202. ;
  3203. return 0;
  3204. }
  3205. _ACEOF
  3206. ac_clean_files="$ac_clean_files conftest.out"
  3207. # Check that the compiler produces executables we can run. If not, either
  3208. # the compiler is broken, or we cross compile.
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3210. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3211. if test "$cross_compiling" != yes; then
  3212. { { ac_try="$ac_link"
  3213. case "(($ac_try" in
  3214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3215. *) ac_try_echo=$ac_try;;
  3216. esac
  3217. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3218. $as_echo "$ac_try_echo"; } >&5
  3219. (eval "$ac_link") 2>&5
  3220. ac_status=$?
  3221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3222. test $ac_status = 0; }
  3223. if { ac_try='./conftest$ac_cv_exeext'
  3224. { { case "(($ac_try" in
  3225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3226. *) ac_try_echo=$ac_try;;
  3227. esac
  3228. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3229. $as_echo "$ac_try_echo"; } >&5
  3230. (eval "$ac_try") 2>&5
  3231. ac_status=$?
  3232. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3233. test $ac_status = 0; }; }; then
  3234. cross_compiling=no
  3235. else
  3236. if test "$cross_compiling" = maybe; then
  3237. cross_compiling=yes
  3238. else
  3239. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3240. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3241. as_fn_error $? "cannot run C compiled programs.
  3242. If you meant to cross compile, use \`--host'.
  3243. See \`config.log' for more details" "$LINENO" 5; }
  3244. fi
  3245. fi
  3246. fi
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3248. $as_echo "$cross_compiling" >&6; }
  3249. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3250. ac_clean_files=$ac_clean_files_save
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3252. $as_echo_n "checking for suffix of object files... " >&6; }
  3253. if ${ac_cv_objext+:} false; then :
  3254. $as_echo_n "(cached) " >&6
  3255. else
  3256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3257. /* end confdefs.h. */
  3258. int
  3259. main ()
  3260. {
  3261. ;
  3262. return 0;
  3263. }
  3264. _ACEOF
  3265. rm -f conftest.o conftest.obj
  3266. if { { ac_try="$ac_compile"
  3267. case "(($ac_try" in
  3268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3269. *) ac_try_echo=$ac_try;;
  3270. esac
  3271. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3272. $as_echo "$ac_try_echo"; } >&5
  3273. (eval "$ac_compile") 2>&5
  3274. ac_status=$?
  3275. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3276. test $ac_status = 0; }; then :
  3277. for ac_file in conftest.o conftest.obj conftest.*; do
  3278. test -f "$ac_file" || continue;
  3279. case $ac_file in
  3280. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3281. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3282. break;;
  3283. esac
  3284. done
  3285. else
  3286. $as_echo "$as_me: failed program was:" >&5
  3287. sed 's/^/| /' conftest.$ac_ext >&5
  3288. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3289. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3290. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3291. See \`config.log' for more details" "$LINENO" 5; }
  3292. fi
  3293. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3294. fi
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3296. $as_echo "$ac_cv_objext" >&6; }
  3297. OBJEXT=$ac_cv_objext
  3298. ac_objext=$OBJEXT
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3300. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3301. if ${ac_cv_c_compiler_gnu+:} false; then :
  3302. $as_echo_n "(cached) " >&6
  3303. else
  3304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3305. /* end confdefs.h. */
  3306. int
  3307. main ()
  3308. {
  3309. #ifndef __GNUC__
  3310. choke me
  3311. #endif
  3312. ;
  3313. return 0;
  3314. }
  3315. _ACEOF
  3316. if ac_fn_c_try_compile "$LINENO"; then :
  3317. ac_compiler_gnu=yes
  3318. else
  3319. ac_compiler_gnu=no
  3320. fi
  3321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3322. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3323. fi
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3325. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3326. if test $ac_compiler_gnu = yes; then
  3327. GCC=yes
  3328. else
  3329. GCC=
  3330. fi
  3331. ac_test_CFLAGS=${CFLAGS+set}
  3332. ac_save_CFLAGS=$CFLAGS
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3334. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3335. if ${ac_cv_prog_cc_g+:} false; then :
  3336. $as_echo_n "(cached) " >&6
  3337. else
  3338. ac_save_c_werror_flag=$ac_c_werror_flag
  3339. ac_c_werror_flag=yes
  3340. ac_cv_prog_cc_g=no
  3341. CFLAGS="-g"
  3342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3343. /* end confdefs.h. */
  3344. int
  3345. main ()
  3346. {
  3347. ;
  3348. return 0;
  3349. }
  3350. _ACEOF
  3351. if ac_fn_c_try_compile "$LINENO"; then :
  3352. ac_cv_prog_cc_g=yes
  3353. else
  3354. CFLAGS=""
  3355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3356. /* end confdefs.h. */
  3357. int
  3358. main ()
  3359. {
  3360. ;
  3361. return 0;
  3362. }
  3363. _ACEOF
  3364. if ac_fn_c_try_compile "$LINENO"; then :
  3365. else
  3366. ac_c_werror_flag=$ac_save_c_werror_flag
  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. fi
  3380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3381. fi
  3382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3383. fi
  3384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3385. ac_c_werror_flag=$ac_save_c_werror_flag
  3386. fi
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3388. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3389. if test "$ac_test_CFLAGS" = set; then
  3390. CFLAGS=$ac_save_CFLAGS
  3391. elif test $ac_cv_prog_cc_g = yes; then
  3392. if test "$GCC" = yes; then
  3393. CFLAGS="-g -O2"
  3394. else
  3395. CFLAGS="-g"
  3396. fi
  3397. else
  3398. if test "$GCC" = yes; then
  3399. CFLAGS="-O2"
  3400. else
  3401. CFLAGS=
  3402. fi
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3405. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3406. if ${ac_cv_prog_cc_c89+:} false; then :
  3407. $as_echo_n "(cached) " >&6
  3408. else
  3409. ac_cv_prog_cc_c89=no
  3410. ac_save_CC=$CC
  3411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3412. /* end confdefs.h. */
  3413. #include <stdarg.h>
  3414. #include <stdio.h>
  3415. struct stat;
  3416. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3417. struct buf { int x; };
  3418. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3419. static char *e (p, i)
  3420. char **p;
  3421. int i;
  3422. {
  3423. return p[i];
  3424. }
  3425. static char *f (char * (*g) (char **, int), char **p, ...)
  3426. {
  3427. char *s;
  3428. va_list v;
  3429. va_start (v,p);
  3430. s = g (p, va_arg (v,int));
  3431. va_end (v);
  3432. return s;
  3433. }
  3434. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3435. function prototypes and stuff, but not '\xHH' hex character constants.
  3436. These don't provoke an error unfortunately, instead are silently treated
  3437. as 'x'. The following induces an error, until -std is added to get
  3438. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3439. array size at least. It's necessary to write '\x00'==0 to get something
  3440. that's true only with -std. */
  3441. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3442. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3443. inside strings and character constants. */
  3444. #define FOO(x) 'x'
  3445. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3446. int test (int i, double x);
  3447. struct s1 {int (*f) (int a);};
  3448. struct s2 {int (*f) (double a);};
  3449. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3450. int argc;
  3451. char **argv;
  3452. int
  3453. main ()
  3454. {
  3455. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3456. ;
  3457. return 0;
  3458. }
  3459. _ACEOF
  3460. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3461. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3462. do
  3463. CC="$ac_save_CC $ac_arg"
  3464. if ac_fn_c_try_compile "$LINENO"; then :
  3465. ac_cv_prog_cc_c89=$ac_arg
  3466. fi
  3467. rm -f core conftest.err conftest.$ac_objext
  3468. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3469. done
  3470. rm -f conftest.$ac_ext
  3471. CC=$ac_save_CC
  3472. fi
  3473. # AC_CACHE_VAL
  3474. case "x$ac_cv_prog_cc_c89" in
  3475. x)
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3477. $as_echo "none needed" >&6; } ;;
  3478. xno)
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3480. $as_echo "unsupported" >&6; } ;;
  3481. *)
  3482. CC="$CC $ac_cv_prog_cc_c89"
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3484. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3485. esac
  3486. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3487. fi
  3488. ac_ext=c
  3489. ac_cpp='$CPP $CPPFLAGS'
  3490. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3491. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3492. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3493. ac_ext=c
  3494. ac_cpp='$CPP $CPPFLAGS'
  3495. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3496. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3497. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3499. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3500. if ${am_cv_prog_cc_c_o+:} false; then :
  3501. $as_echo_n "(cached) " >&6
  3502. else
  3503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3504. /* end confdefs.h. */
  3505. int
  3506. main ()
  3507. {
  3508. ;
  3509. return 0;
  3510. }
  3511. _ACEOF
  3512. # Make sure it works both with $CC and with simple cc.
  3513. # Following AC_PROG_CC_C_O, we do the test twice because some
  3514. # compilers refuse to overwrite an existing .o file with -o,
  3515. # though they will create one.
  3516. am_cv_prog_cc_c_o=yes
  3517. for am_i in 1 2; do
  3518. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3519. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3520. ac_status=$?
  3521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3522. (exit $ac_status); } \
  3523. && test -f conftest2.$ac_objext; then
  3524. : OK
  3525. else
  3526. am_cv_prog_cc_c_o=no
  3527. break
  3528. fi
  3529. done
  3530. rm -f core conftest*
  3531. unset am_i
  3532. fi
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3534. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3535. if test "$am_cv_prog_cc_c_o" != yes; then
  3536. # Losing compiler, so override with the script.
  3537. # FIXME: It is wrong to rewrite CC.
  3538. # But if we don't then we get into trouble of one sort or another.
  3539. # A longer-term fix would be to have automake use am__CC in this case,
  3540. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3541. CC="$am_aux_dir/compile $CC"
  3542. fi
  3543. ac_ext=c
  3544. ac_cpp='$CPP $CPPFLAGS'
  3545. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3546. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3547. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3548. DEPDIR="${am__leading_dot}deps"
  3549. ac_config_commands="$ac_config_commands depfiles"
  3550. am_make=${MAKE-make}
  3551. cat > confinc << 'END'
  3552. am__doit:
  3553. @echo this is the am__doit target
  3554. .PHONY: am__doit
  3555. END
  3556. # If we don't find an include directive, just comment out the code.
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3558. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3559. am__include="#"
  3560. am__quote=
  3561. _am_result=none
  3562. # First try GNU make style include.
  3563. echo "include confinc" > confmf
  3564. # Ignore all kinds of additional output from 'make'.
  3565. case `$am_make -s -f confmf 2> /dev/null` in #(
  3566. *the\ am__doit\ target*)
  3567. am__include=include
  3568. am__quote=
  3569. _am_result=GNU
  3570. ;;
  3571. esac
  3572. # Now try BSD make style include.
  3573. if test "$am__include" = "#"; then
  3574. echo '.include "confinc"' > confmf
  3575. case `$am_make -s -f confmf 2> /dev/null` in #(
  3576. *the\ am__doit\ target*)
  3577. am__include=.include
  3578. am__quote="\""
  3579. _am_result=BSD
  3580. ;;
  3581. esac
  3582. fi
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3584. $as_echo "$_am_result" >&6; }
  3585. rm -f confinc confmf
  3586. # Check whether --enable-dependency-tracking was given.
  3587. if test "${enable_dependency_tracking+set}" = set; then :
  3588. enableval=$enable_dependency_tracking;
  3589. fi
  3590. if test "x$enable_dependency_tracking" != xno; then
  3591. am_depcomp="$ac_aux_dir/depcomp"
  3592. AMDEPBACKSLASH='\'
  3593. am__nodep='_no'
  3594. fi
  3595. if test "x$enable_dependency_tracking" != xno; then
  3596. AMDEP_TRUE=
  3597. AMDEP_FALSE='#'
  3598. else
  3599. AMDEP_TRUE='#'
  3600. AMDEP_FALSE=
  3601. fi
  3602. depcc="$CC" am_compiler_list=
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3604. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3605. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3606. $as_echo_n "(cached) " >&6
  3607. else
  3608. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3609. # We make a subdir and do the tests there. Otherwise we can end up
  3610. # making bogus files that we don't know about and never remove. For
  3611. # instance it was reported that on HP-UX the gcc test will end up
  3612. # making a dummy file named 'D' -- because '-MD' means "put the output
  3613. # in D".
  3614. rm -rf conftest.dir
  3615. mkdir conftest.dir
  3616. # Copy depcomp to subdir because otherwise we won't find it if we're
  3617. # using a relative directory.
  3618. cp "$am_depcomp" conftest.dir
  3619. cd conftest.dir
  3620. # We will build objects and dependencies in a subdirectory because
  3621. # it helps to detect inapplicable dependency modes. For instance
  3622. # both Tru64's cc and ICC support -MD to output dependencies as a
  3623. # side effect of compilation, but ICC will put the dependencies in
  3624. # the current directory while Tru64 will put them in the object
  3625. # directory.
  3626. mkdir sub
  3627. am_cv_CC_dependencies_compiler_type=none
  3628. if test "$am_compiler_list" = ""; then
  3629. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3630. fi
  3631. am__universal=false
  3632. case " $depcc " in #(
  3633. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3634. esac
  3635. for depmode in $am_compiler_list; do
  3636. # Setup a source with many dependencies, because some compilers
  3637. # like to wrap large dependency lists on column 80 (with \), and
  3638. # we should not choose a depcomp mode which is confused by this.
  3639. #
  3640. # We need to recreate these files for each test, as the compiler may
  3641. # overwrite some of them when testing with obscure command lines.
  3642. # This happens at least with the AIX C compiler.
  3643. : > sub/conftest.c
  3644. for i in 1 2 3 4 5 6; do
  3645. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3646. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3647. # Solaris 10 /bin/sh.
  3648. echo '/* dummy */' > sub/conftst$i.h
  3649. done
  3650. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3651. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3652. # mode. It turns out that the SunPro C++ compiler does not properly
  3653. # handle '-M -o', and we need to detect this. Also, some Intel
  3654. # versions had trouble with output in subdirs.
  3655. am__obj=sub/conftest.${OBJEXT-o}
  3656. am__minus_obj="-o $am__obj"
  3657. case $depmode in
  3658. gcc)
  3659. # This depmode causes a compiler race in universal mode.
  3660. test "$am__universal" = false || continue
  3661. ;;
  3662. nosideeffect)
  3663. # After this tag, mechanisms are not by side-effect, so they'll
  3664. # only be used when explicitly requested.
  3665. if test "x$enable_dependency_tracking" = xyes; then
  3666. continue
  3667. else
  3668. break
  3669. fi
  3670. ;;
  3671. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3672. # This compiler won't grok '-c -o', but also, the minuso test has
  3673. # not run yet. These depmodes are late enough in the game, and
  3674. # so weak that their functioning should not be impacted.
  3675. am__obj=conftest.${OBJEXT-o}
  3676. am__minus_obj=
  3677. ;;
  3678. none) break ;;
  3679. esac
  3680. if depmode=$depmode \
  3681. source=sub/conftest.c object=$am__obj \
  3682. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3683. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3684. >/dev/null 2>conftest.err &&
  3685. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3686. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3687. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3688. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3689. # icc doesn't choke on unknown options, it will just issue warnings
  3690. # or remarks (even with -Werror). So we grep stderr for any message
  3691. # that says an option was ignored or not supported.
  3692. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3693. # icc: Command line warning: ignoring option '-M'; no argument required
  3694. # The diagnosis changed in icc 8.0:
  3695. # icc: Command line remark: option '-MP' not supported
  3696. if (grep 'ignoring option' conftest.err ||
  3697. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3698. am_cv_CC_dependencies_compiler_type=$depmode
  3699. break
  3700. fi
  3701. fi
  3702. done
  3703. cd ..
  3704. rm -rf conftest.dir
  3705. else
  3706. am_cv_CC_dependencies_compiler_type=none
  3707. fi
  3708. fi
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3710. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3711. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3712. if
  3713. test "x$enable_dependency_tracking" != xno \
  3714. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3715. am__fastdepCC_TRUE=
  3716. am__fastdepCC_FALSE='#'
  3717. else
  3718. am__fastdepCC_TRUE='#'
  3719. am__fastdepCC_FALSE=
  3720. fi
  3721. case `pwd` in
  3722. *\ * | *\ *)
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3724. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3725. esac
  3726. macro_version='2.4.6'
  3727. macro_revision='2.4.6'
  3728. ltmain=$ac_aux_dir/ltmain.sh
  3729. # Make sure we can run config.sub.
  3730. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3731. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3733. $as_echo_n "checking build system type... " >&6; }
  3734. if ${ac_cv_build+:} false; then :
  3735. $as_echo_n "(cached) " >&6
  3736. else
  3737. ac_build_alias=$build_alias
  3738. test "x$ac_build_alias" = x &&
  3739. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3740. test "x$ac_build_alias" = x &&
  3741. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3742. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3743. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3744. fi
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3746. $as_echo "$ac_cv_build" >&6; }
  3747. case $ac_cv_build in
  3748. *-*-*) ;;
  3749. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3750. esac
  3751. build=$ac_cv_build
  3752. ac_save_IFS=$IFS; IFS='-'
  3753. set x $ac_cv_build
  3754. shift
  3755. build_cpu=$1
  3756. build_vendor=$2
  3757. shift; shift
  3758. # Remember, the first character of IFS is used to create $*,
  3759. # except with old shells:
  3760. build_os=$*
  3761. IFS=$ac_save_IFS
  3762. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3764. $as_echo_n "checking host system type... " >&6; }
  3765. if ${ac_cv_host+:} false; then :
  3766. $as_echo_n "(cached) " >&6
  3767. else
  3768. if test "x$host_alias" = x; then
  3769. ac_cv_host=$ac_cv_build
  3770. else
  3771. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3772. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3773. fi
  3774. fi
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3776. $as_echo "$ac_cv_host" >&6; }
  3777. case $ac_cv_host in
  3778. *-*-*) ;;
  3779. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3780. esac
  3781. host=$ac_cv_host
  3782. ac_save_IFS=$IFS; IFS='-'
  3783. set x $ac_cv_host
  3784. shift
  3785. host_cpu=$1
  3786. host_vendor=$2
  3787. shift; shift
  3788. # Remember, the first character of IFS is used to create $*,
  3789. # except with old shells:
  3790. host_os=$*
  3791. IFS=$ac_save_IFS
  3792. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3793. # Backslashify metacharacters that are still active within
  3794. # double-quoted strings.
  3795. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3796. # Same as above, but do not quote variable references.
  3797. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3798. # Sed substitution to delay expansion of an escaped shell variable in a
  3799. # double_quote_subst'ed string.
  3800. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3801. # Sed substitution to delay expansion of an escaped single quote.
  3802. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3803. # Sed substitution to avoid accidental globbing in evaled expressions
  3804. no_glob_subst='s/\*/\\\*/g'
  3805. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3806. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3807. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3809. $as_echo_n "checking how to print strings... " >&6; }
  3810. # Test print first, because it will be a builtin if present.
  3811. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3812. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3813. ECHO='print -r --'
  3814. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3815. ECHO='printf %s\n'
  3816. else
  3817. # Use this function as a fallback that always works.
  3818. func_fallback_echo ()
  3819. {
  3820. eval 'cat <<_LTECHO_EOF
  3821. $1
  3822. _LTECHO_EOF'
  3823. }
  3824. ECHO='func_fallback_echo'
  3825. fi
  3826. # func_echo_all arg...
  3827. # Invoke $ECHO with all args, space-separated.
  3828. func_echo_all ()
  3829. {
  3830. $ECHO ""
  3831. }
  3832. case $ECHO in
  3833. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3834. $as_echo "printf" >&6; } ;;
  3835. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3836. $as_echo "print -r" >&6; } ;;
  3837. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3838. $as_echo "cat" >&6; } ;;
  3839. esac
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3841. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3842. if ${ac_cv_path_SED+:} false; then :
  3843. $as_echo_n "(cached) " >&6
  3844. else
  3845. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3846. for ac_i in 1 2 3 4 5 6 7; do
  3847. ac_script="$ac_script$as_nl$ac_script"
  3848. done
  3849. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3850. { ac_script=; unset ac_script;}
  3851. if test -z "$SED"; then
  3852. ac_path_SED_found=false
  3853. # Loop through the user's path and test for each of PROGNAME-LIST
  3854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3855. for as_dir in $PATH
  3856. do
  3857. IFS=$as_save_IFS
  3858. test -z "$as_dir" && as_dir=.
  3859. for ac_prog in sed gsed; do
  3860. for ac_exec_ext in '' $ac_executable_extensions; do
  3861. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3862. as_fn_executable_p "$ac_path_SED" || continue
  3863. # Check for GNU ac_path_SED and select it if it is found.
  3864. # Check for GNU $ac_path_SED
  3865. case `"$ac_path_SED" --version 2>&1` in
  3866. *GNU*)
  3867. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3868. *)
  3869. ac_count=0
  3870. $as_echo_n 0123456789 >"conftest.in"
  3871. while :
  3872. do
  3873. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3874. mv "conftest.tmp" "conftest.in"
  3875. cp "conftest.in" "conftest.nl"
  3876. $as_echo '' >> "conftest.nl"
  3877. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3878. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3879. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3880. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3881. # Best one so far, save it but keep looking for a better one
  3882. ac_cv_path_SED="$ac_path_SED"
  3883. ac_path_SED_max=$ac_count
  3884. fi
  3885. # 10*(2^10) chars as input seems more than enough
  3886. test $ac_count -gt 10 && break
  3887. done
  3888. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3889. esac
  3890. $ac_path_SED_found && break 3
  3891. done
  3892. done
  3893. done
  3894. IFS=$as_save_IFS
  3895. if test -z "$ac_cv_path_SED"; then
  3896. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3897. fi
  3898. else
  3899. ac_cv_path_SED=$SED
  3900. fi
  3901. fi
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3903. $as_echo "$ac_cv_path_SED" >&6; }
  3904. SED="$ac_cv_path_SED"
  3905. rm -f conftest.sed
  3906. test -z "$SED" && SED=sed
  3907. Xsed="$SED -e 1s/^X//"
  3908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3909. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3910. if ${ac_cv_path_GREP+:} false; then :
  3911. $as_echo_n "(cached) " >&6
  3912. else
  3913. if test -z "$GREP"; then
  3914. ac_path_GREP_found=false
  3915. # Loop through the user's path and test for each of PROGNAME-LIST
  3916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3917. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3918. do
  3919. IFS=$as_save_IFS
  3920. test -z "$as_dir" && as_dir=.
  3921. for ac_prog in grep ggrep; do
  3922. for ac_exec_ext in '' $ac_executable_extensions; do
  3923. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3924. as_fn_executable_p "$ac_path_GREP" || continue
  3925. # Check for GNU ac_path_GREP and select it if it is found.
  3926. # Check for GNU $ac_path_GREP
  3927. case `"$ac_path_GREP" --version 2>&1` in
  3928. *GNU*)
  3929. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3930. *)
  3931. ac_count=0
  3932. $as_echo_n 0123456789 >"conftest.in"
  3933. while :
  3934. do
  3935. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3936. mv "conftest.tmp" "conftest.in"
  3937. cp "conftest.in" "conftest.nl"
  3938. $as_echo 'GREP' >> "conftest.nl"
  3939. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3940. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3941. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3942. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3943. # Best one so far, save it but keep looking for a better one
  3944. ac_cv_path_GREP="$ac_path_GREP"
  3945. ac_path_GREP_max=$ac_count
  3946. fi
  3947. # 10*(2^10) chars as input seems more than enough
  3948. test $ac_count -gt 10 && break
  3949. done
  3950. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3951. esac
  3952. $ac_path_GREP_found && break 3
  3953. done
  3954. done
  3955. done
  3956. IFS=$as_save_IFS
  3957. if test -z "$ac_cv_path_GREP"; then
  3958. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3959. fi
  3960. else
  3961. ac_cv_path_GREP=$GREP
  3962. fi
  3963. fi
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3965. $as_echo "$ac_cv_path_GREP" >&6; }
  3966. GREP="$ac_cv_path_GREP"
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3968. $as_echo_n "checking for egrep... " >&6; }
  3969. if ${ac_cv_path_EGREP+:} false; then :
  3970. $as_echo_n "(cached) " >&6
  3971. else
  3972. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3973. then ac_cv_path_EGREP="$GREP -E"
  3974. else
  3975. if test -z "$EGREP"; then
  3976. ac_path_EGREP_found=false
  3977. # Loop through the user's path and test for each of PROGNAME-LIST
  3978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3979. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3980. do
  3981. IFS=$as_save_IFS
  3982. test -z "$as_dir" && as_dir=.
  3983. for ac_prog in egrep; do
  3984. for ac_exec_ext in '' $ac_executable_extensions; do
  3985. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3986. as_fn_executable_p "$ac_path_EGREP" || continue
  3987. # Check for GNU ac_path_EGREP and select it if it is found.
  3988. # Check for GNU $ac_path_EGREP
  3989. case `"$ac_path_EGREP" --version 2>&1` in
  3990. *GNU*)
  3991. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3992. *)
  3993. ac_count=0
  3994. $as_echo_n 0123456789 >"conftest.in"
  3995. while :
  3996. do
  3997. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3998. mv "conftest.tmp" "conftest.in"
  3999. cp "conftest.in" "conftest.nl"
  4000. $as_echo 'EGREP' >> "conftest.nl"
  4001. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4002. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4003. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4004. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4005. # Best one so far, save it but keep looking for a better one
  4006. ac_cv_path_EGREP="$ac_path_EGREP"
  4007. ac_path_EGREP_max=$ac_count
  4008. fi
  4009. # 10*(2^10) chars as input seems more than enough
  4010. test $ac_count -gt 10 && break
  4011. done
  4012. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4013. esac
  4014. $ac_path_EGREP_found && break 3
  4015. done
  4016. done
  4017. done
  4018. IFS=$as_save_IFS
  4019. if test -z "$ac_cv_path_EGREP"; then
  4020. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4021. fi
  4022. else
  4023. ac_cv_path_EGREP=$EGREP
  4024. fi
  4025. fi
  4026. fi
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4028. $as_echo "$ac_cv_path_EGREP" >&6; }
  4029. EGREP="$ac_cv_path_EGREP"
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4031. $as_echo_n "checking for fgrep... " >&6; }
  4032. if ${ac_cv_path_FGREP+:} false; then :
  4033. $as_echo_n "(cached) " >&6
  4034. else
  4035. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4036. then ac_cv_path_FGREP="$GREP -F"
  4037. else
  4038. if test -z "$FGREP"; then
  4039. ac_path_FGREP_found=false
  4040. # Loop through the user's path and test for each of PROGNAME-LIST
  4041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4042. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4043. do
  4044. IFS=$as_save_IFS
  4045. test -z "$as_dir" && as_dir=.
  4046. for ac_prog in fgrep; do
  4047. for ac_exec_ext in '' $ac_executable_extensions; do
  4048. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4049. as_fn_executable_p "$ac_path_FGREP" || continue
  4050. # Check for GNU ac_path_FGREP and select it if it is found.
  4051. # Check for GNU $ac_path_FGREP
  4052. case `"$ac_path_FGREP" --version 2>&1` in
  4053. *GNU*)
  4054. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4055. *)
  4056. ac_count=0
  4057. $as_echo_n 0123456789 >"conftest.in"
  4058. while :
  4059. do
  4060. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4061. mv "conftest.tmp" "conftest.in"
  4062. cp "conftest.in" "conftest.nl"
  4063. $as_echo 'FGREP' >> "conftest.nl"
  4064. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4065. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4066. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4067. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4068. # Best one so far, save it but keep looking for a better one
  4069. ac_cv_path_FGREP="$ac_path_FGREP"
  4070. ac_path_FGREP_max=$ac_count
  4071. fi
  4072. # 10*(2^10) chars as input seems more than enough
  4073. test $ac_count -gt 10 && break
  4074. done
  4075. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4076. esac
  4077. $ac_path_FGREP_found && break 3
  4078. done
  4079. done
  4080. done
  4081. IFS=$as_save_IFS
  4082. if test -z "$ac_cv_path_FGREP"; then
  4083. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4084. fi
  4085. else
  4086. ac_cv_path_FGREP=$FGREP
  4087. fi
  4088. fi
  4089. fi
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4091. $as_echo "$ac_cv_path_FGREP" >&6; }
  4092. FGREP="$ac_cv_path_FGREP"
  4093. test -z "$GREP" && GREP=grep
  4094. # Check whether --with-gnu-ld was given.
  4095. if test "${with_gnu_ld+set}" = set; then :
  4096. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4097. else
  4098. with_gnu_ld=no
  4099. fi
  4100. ac_prog=ld
  4101. if test yes = "$GCC"; then
  4102. # Check if gcc -print-prog-name=ld gives a path.
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4104. $as_echo_n "checking for ld used by $CC... " >&6; }
  4105. case $host in
  4106. *-*-mingw*)
  4107. # gcc leaves a trailing carriage return, which upsets mingw
  4108. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4109. *)
  4110. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4111. esac
  4112. case $ac_prog in
  4113. # Accept absolute paths.
  4114. [\\/]* | ?:[\\/]*)
  4115. re_direlt='/[^/][^/]*/\.\./'
  4116. # Canonicalize the pathname of ld
  4117. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4118. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4119. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4120. done
  4121. test -z "$LD" && LD=$ac_prog
  4122. ;;
  4123. "")
  4124. # If it fails, then pretend we aren't using GCC.
  4125. ac_prog=ld
  4126. ;;
  4127. *)
  4128. # If it is relative, then search for the first ld in PATH.
  4129. with_gnu_ld=unknown
  4130. ;;
  4131. esac
  4132. elif test yes = "$with_gnu_ld"; then
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4134. $as_echo_n "checking for GNU ld... " >&6; }
  4135. else
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4137. $as_echo_n "checking for non-GNU ld... " >&6; }
  4138. fi
  4139. if ${lt_cv_path_LD+:} false; then :
  4140. $as_echo_n "(cached) " >&6
  4141. else
  4142. if test -z "$LD"; then
  4143. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4144. for ac_dir in $PATH; do
  4145. IFS=$lt_save_ifs
  4146. test -z "$ac_dir" && ac_dir=.
  4147. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4148. lt_cv_path_LD=$ac_dir/$ac_prog
  4149. # Check to see if the program is GNU ld. I'd rather use --version,
  4150. # but apparently some variants of GNU ld only accept -v.
  4151. # Break only if it was the GNU/non-GNU ld that we prefer.
  4152. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4153. *GNU* | *'with BFD'*)
  4154. test no != "$with_gnu_ld" && break
  4155. ;;
  4156. *)
  4157. test yes != "$with_gnu_ld" && break
  4158. ;;
  4159. esac
  4160. fi
  4161. done
  4162. IFS=$lt_save_ifs
  4163. else
  4164. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4165. fi
  4166. fi
  4167. LD=$lt_cv_path_LD
  4168. if test -n "$LD"; then
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4170. $as_echo "$LD" >&6; }
  4171. else
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4173. $as_echo "no" >&6; }
  4174. fi
  4175. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4177. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4178. if ${lt_cv_prog_gnu_ld+:} false; then :
  4179. $as_echo_n "(cached) " >&6
  4180. else
  4181. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4182. case `$LD -v 2>&1 </dev/null` in
  4183. *GNU* | *'with BFD'*)
  4184. lt_cv_prog_gnu_ld=yes
  4185. ;;
  4186. *)
  4187. lt_cv_prog_gnu_ld=no
  4188. ;;
  4189. esac
  4190. fi
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4192. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4193. with_gnu_ld=$lt_cv_prog_gnu_ld
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4195. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4196. if ${lt_cv_path_NM+:} false; then :
  4197. $as_echo_n "(cached) " >&6
  4198. else
  4199. if test -n "$NM"; then
  4200. # Let the user override the test.
  4201. lt_cv_path_NM=$NM
  4202. else
  4203. lt_nm_to_check=${ac_tool_prefix}nm
  4204. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4205. lt_nm_to_check="$lt_nm_to_check nm"
  4206. fi
  4207. for lt_tmp_nm in $lt_nm_to_check; do
  4208. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4209. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4210. IFS=$lt_save_ifs
  4211. test -z "$ac_dir" && ac_dir=.
  4212. tmp_nm=$ac_dir/$lt_tmp_nm
  4213. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4214. # Check to see if the nm accepts a BSD-compat flag.
  4215. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4216. # nm: unknown option "B" ignored
  4217. # Tru64's nm complains that /dev/null is an invalid object file
  4218. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4219. case $build_os in
  4220. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4221. *) lt_bad_file=/dev/null ;;
  4222. esac
  4223. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4224. *$lt_bad_file* | *'Invalid file or object type'*)
  4225. lt_cv_path_NM="$tmp_nm -B"
  4226. break 2
  4227. ;;
  4228. *)
  4229. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4230. */dev/null*)
  4231. lt_cv_path_NM="$tmp_nm -p"
  4232. break 2
  4233. ;;
  4234. *)
  4235. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4236. continue # so that we can try to find one that supports BSD flags
  4237. ;;
  4238. esac
  4239. ;;
  4240. esac
  4241. fi
  4242. done
  4243. IFS=$lt_save_ifs
  4244. done
  4245. : ${lt_cv_path_NM=no}
  4246. fi
  4247. fi
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4249. $as_echo "$lt_cv_path_NM" >&6; }
  4250. if test no != "$lt_cv_path_NM"; then
  4251. NM=$lt_cv_path_NM
  4252. else
  4253. # Didn't find any BSD compatible name lister, look for dumpbin.
  4254. if test -n "$DUMPBIN"; then :
  4255. # Let the user override the test.
  4256. else
  4257. if test -n "$ac_tool_prefix"; then
  4258. for ac_prog in dumpbin "link -dump"
  4259. do
  4260. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4261. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4263. $as_echo_n "checking for $ac_word... " >&6; }
  4264. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4265. $as_echo_n "(cached) " >&6
  4266. else
  4267. if test -n "$DUMPBIN"; then
  4268. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4269. else
  4270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4271. for as_dir in $PATH
  4272. do
  4273. IFS=$as_save_IFS
  4274. test -z "$as_dir" && as_dir=.
  4275. for ac_exec_ext in '' $ac_executable_extensions; do
  4276. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4277. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4279. break 2
  4280. fi
  4281. done
  4282. done
  4283. IFS=$as_save_IFS
  4284. fi
  4285. fi
  4286. DUMPBIN=$ac_cv_prog_DUMPBIN
  4287. if test -n "$DUMPBIN"; then
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4289. $as_echo "$DUMPBIN" >&6; }
  4290. else
  4291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4292. $as_echo "no" >&6; }
  4293. fi
  4294. test -n "$DUMPBIN" && break
  4295. done
  4296. fi
  4297. if test -z "$DUMPBIN"; then
  4298. ac_ct_DUMPBIN=$DUMPBIN
  4299. for ac_prog in dumpbin "link -dump"
  4300. do
  4301. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4302. set dummy $ac_prog; ac_word=$2
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4304. $as_echo_n "checking for $ac_word... " >&6; }
  4305. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4306. $as_echo_n "(cached) " >&6
  4307. else
  4308. if test -n "$ac_ct_DUMPBIN"; then
  4309. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4310. else
  4311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4312. for as_dir in $PATH
  4313. do
  4314. IFS=$as_save_IFS
  4315. test -z "$as_dir" && as_dir=.
  4316. for ac_exec_ext in '' $ac_executable_extensions; do
  4317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4318. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4320. break 2
  4321. fi
  4322. done
  4323. done
  4324. IFS=$as_save_IFS
  4325. fi
  4326. fi
  4327. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4328. if test -n "$ac_ct_DUMPBIN"; then
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4330. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4331. else
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4333. $as_echo "no" >&6; }
  4334. fi
  4335. test -n "$ac_ct_DUMPBIN" && break
  4336. done
  4337. if test "x$ac_ct_DUMPBIN" = x; then
  4338. DUMPBIN=":"
  4339. else
  4340. case $cross_compiling:$ac_tool_warned in
  4341. yes:)
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4343. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4344. ac_tool_warned=yes ;;
  4345. esac
  4346. DUMPBIN=$ac_ct_DUMPBIN
  4347. fi
  4348. fi
  4349. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4350. *COFF*)
  4351. DUMPBIN="$DUMPBIN -symbols -headers"
  4352. ;;
  4353. *)
  4354. DUMPBIN=:
  4355. ;;
  4356. esac
  4357. fi
  4358. if test : != "$DUMPBIN"; then
  4359. NM=$DUMPBIN
  4360. fi
  4361. fi
  4362. test -z "$NM" && NM=nm
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4364. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4365. if ${lt_cv_nm_interface+:} false; then :
  4366. $as_echo_n "(cached) " >&6
  4367. else
  4368. lt_cv_nm_interface="BSD nm"
  4369. echo "int some_variable = 0;" > conftest.$ac_ext
  4370. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4371. (eval "$ac_compile" 2>conftest.err)
  4372. cat conftest.err >&5
  4373. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4374. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4375. cat conftest.err >&5
  4376. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4377. cat conftest.out >&5
  4378. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4379. lt_cv_nm_interface="MS dumpbin"
  4380. fi
  4381. rm -f conftest*
  4382. fi
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4384. $as_echo "$lt_cv_nm_interface" >&6; }
  4385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4386. $as_echo_n "checking whether ln -s works... " >&6; }
  4387. LN_S=$as_ln_s
  4388. if test "$LN_S" = "ln -s"; then
  4389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4390. $as_echo "yes" >&6; }
  4391. else
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4393. $as_echo "no, using $LN_S" >&6; }
  4394. fi
  4395. # find the maximum length of command line arguments
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4397. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4398. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4399. $as_echo_n "(cached) " >&6
  4400. else
  4401. i=0
  4402. teststring=ABCD
  4403. case $build_os in
  4404. msdosdjgpp*)
  4405. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4406. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4407. # during glob expansion). Even if it were fixed, the result of this
  4408. # check would be larger than it should be.
  4409. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4410. ;;
  4411. gnu*)
  4412. # Under GNU Hurd, this test is not required because there is
  4413. # no limit to the length of command line arguments.
  4414. # Libtool will interpret -1 as no limit whatsoever
  4415. lt_cv_sys_max_cmd_len=-1;
  4416. ;;
  4417. cygwin* | mingw* | cegcc*)
  4418. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4419. # about 5 minutes as the teststring grows exponentially.
  4420. # Worse, since 9x/ME are not pre-emptively multitasking,
  4421. # you end up with a "frozen" computer, even though with patience
  4422. # the test eventually succeeds (with a max line length of 256k).
  4423. # Instead, let's just punt: use the minimum linelength reported by
  4424. # all of the supported platforms: 8192 (on NT/2K/XP).
  4425. lt_cv_sys_max_cmd_len=8192;
  4426. ;;
  4427. mint*)
  4428. # On MiNT this can take a long time and run out of memory.
  4429. lt_cv_sys_max_cmd_len=8192;
  4430. ;;
  4431. amigaos*)
  4432. # On AmigaOS with pdksh, this test takes hours, literally.
  4433. # So we just punt and use a minimum line length of 8192.
  4434. lt_cv_sys_max_cmd_len=8192;
  4435. ;;
  4436. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4437. # This has been around since 386BSD, at least. Likely further.
  4438. if test -x /sbin/sysctl; then
  4439. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4440. elif test -x /usr/sbin/sysctl; then
  4441. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4442. else
  4443. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4444. fi
  4445. # And add a safety zone
  4446. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4447. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4448. ;;
  4449. interix*)
  4450. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4451. lt_cv_sys_max_cmd_len=196608
  4452. ;;
  4453. os2*)
  4454. # The test takes a long time on OS/2.
  4455. lt_cv_sys_max_cmd_len=8192
  4456. ;;
  4457. osf*)
  4458. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4459. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4460. # nice to cause kernel panics so lets avoid the loop below.
  4461. # First set a reasonable default.
  4462. lt_cv_sys_max_cmd_len=16384
  4463. #
  4464. if test -x /sbin/sysconfig; then
  4465. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4466. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4467. esac
  4468. fi
  4469. ;;
  4470. sco3.2v5*)
  4471. lt_cv_sys_max_cmd_len=102400
  4472. ;;
  4473. sysv5* | sco5v6* | sysv4.2uw2*)
  4474. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4475. if test -n "$kargmax"; then
  4476. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4477. else
  4478. lt_cv_sys_max_cmd_len=32768
  4479. fi
  4480. ;;
  4481. *)
  4482. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4483. if test -n "$lt_cv_sys_max_cmd_len" && \
  4484. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4485. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4486. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4487. else
  4488. # Make teststring a little bigger before we do anything with it.
  4489. # a 1K string should be a reasonable start.
  4490. for i in 1 2 3 4 5 6 7 8; do
  4491. teststring=$teststring$teststring
  4492. done
  4493. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4494. # If test is not a shell built-in, we'll probably end up computing a
  4495. # maximum length that is only half of the actual maximum length, but
  4496. # we can't tell.
  4497. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4498. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4499. test 17 != "$i" # 1/2 MB should be enough
  4500. do
  4501. i=`expr $i + 1`
  4502. teststring=$teststring$teststring
  4503. done
  4504. # Only check the string length outside the loop.
  4505. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4506. teststring=
  4507. # Add a significant safety factor because C++ compilers can tack on
  4508. # massive amounts of additional arguments before passing them to the
  4509. # linker. It appears as though 1/2 is a usable value.
  4510. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4511. fi
  4512. ;;
  4513. esac
  4514. fi
  4515. if test -n "$lt_cv_sys_max_cmd_len"; then
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4517. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4518. else
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4520. $as_echo "none" >&6; }
  4521. fi
  4522. max_cmd_len=$lt_cv_sys_max_cmd_len
  4523. : ${CP="cp -f"}
  4524. : ${MV="mv -f"}
  4525. : ${RM="rm -f"}
  4526. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4527. lt_unset=unset
  4528. else
  4529. lt_unset=false
  4530. fi
  4531. # test EBCDIC or ASCII
  4532. case `echo X|tr X '\101'` in
  4533. A) # ASCII based system
  4534. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4535. lt_SP2NL='tr \040 \012'
  4536. lt_NL2SP='tr \015\012 \040\040'
  4537. ;;
  4538. *) # EBCDIC based system
  4539. lt_SP2NL='tr \100 \n'
  4540. lt_NL2SP='tr \r\n \100\100'
  4541. ;;
  4542. esac
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4544. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4545. if ${lt_cv_to_host_file_cmd+:} false; then :
  4546. $as_echo_n "(cached) " >&6
  4547. else
  4548. case $host in
  4549. *-*-mingw* )
  4550. case $build in
  4551. *-*-mingw* ) # actually msys
  4552. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4553. ;;
  4554. *-*-cygwin* )
  4555. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4556. ;;
  4557. * ) # otherwise, assume *nix
  4558. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4559. ;;
  4560. esac
  4561. ;;
  4562. *-*-cygwin* )
  4563. case $build in
  4564. *-*-mingw* ) # actually msys
  4565. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4566. ;;
  4567. *-*-cygwin* )
  4568. lt_cv_to_host_file_cmd=func_convert_file_noop
  4569. ;;
  4570. * ) # otherwise, assume *nix
  4571. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4572. ;;
  4573. esac
  4574. ;;
  4575. * ) # unhandled hosts (and "normal" native builds)
  4576. lt_cv_to_host_file_cmd=func_convert_file_noop
  4577. ;;
  4578. esac
  4579. fi
  4580. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4582. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4584. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4585. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4586. $as_echo_n "(cached) " >&6
  4587. else
  4588. #assume ordinary cross tools, or native build.
  4589. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4590. case $host in
  4591. *-*-mingw* )
  4592. case $build in
  4593. *-*-mingw* ) # actually msys
  4594. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4595. ;;
  4596. esac
  4597. ;;
  4598. esac
  4599. fi
  4600. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4602. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4604. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4605. if ${lt_cv_ld_reload_flag+:} false; then :
  4606. $as_echo_n "(cached) " >&6
  4607. else
  4608. lt_cv_ld_reload_flag='-r'
  4609. fi
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4611. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4612. reload_flag=$lt_cv_ld_reload_flag
  4613. case $reload_flag in
  4614. "" | " "*) ;;
  4615. *) reload_flag=" $reload_flag" ;;
  4616. esac
  4617. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4618. case $host_os in
  4619. cygwin* | mingw* | pw32* | cegcc*)
  4620. if test yes != "$GCC"; then
  4621. reload_cmds=false
  4622. fi
  4623. ;;
  4624. darwin*)
  4625. if test yes = "$GCC"; then
  4626. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4627. else
  4628. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4629. fi
  4630. ;;
  4631. esac
  4632. if test -n "$ac_tool_prefix"; then
  4633. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4634. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4636. $as_echo_n "checking for $ac_word... " >&6; }
  4637. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4638. $as_echo_n "(cached) " >&6
  4639. else
  4640. if test -n "$OBJDUMP"; then
  4641. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4642. else
  4643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4644. for as_dir in $PATH
  4645. do
  4646. IFS=$as_save_IFS
  4647. test -z "$as_dir" && as_dir=.
  4648. for ac_exec_ext in '' $ac_executable_extensions; do
  4649. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4650. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4652. break 2
  4653. fi
  4654. done
  4655. done
  4656. IFS=$as_save_IFS
  4657. fi
  4658. fi
  4659. OBJDUMP=$ac_cv_prog_OBJDUMP
  4660. if test -n "$OBJDUMP"; then
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4662. $as_echo "$OBJDUMP" >&6; }
  4663. else
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4665. $as_echo "no" >&6; }
  4666. fi
  4667. fi
  4668. if test -z "$ac_cv_prog_OBJDUMP"; then
  4669. ac_ct_OBJDUMP=$OBJDUMP
  4670. # Extract the first word of "objdump", so it can be a program name with args.
  4671. set dummy objdump; ac_word=$2
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4673. $as_echo_n "checking for $ac_word... " >&6; }
  4674. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4675. $as_echo_n "(cached) " >&6
  4676. else
  4677. if test -n "$ac_ct_OBJDUMP"; then
  4678. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4679. else
  4680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4681. for as_dir in $PATH
  4682. do
  4683. IFS=$as_save_IFS
  4684. test -z "$as_dir" && as_dir=.
  4685. for ac_exec_ext in '' $ac_executable_extensions; do
  4686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4687. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4689. break 2
  4690. fi
  4691. done
  4692. done
  4693. IFS=$as_save_IFS
  4694. fi
  4695. fi
  4696. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4697. if test -n "$ac_ct_OBJDUMP"; then
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4699. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4700. else
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4702. $as_echo "no" >&6; }
  4703. fi
  4704. if test "x$ac_ct_OBJDUMP" = x; then
  4705. OBJDUMP="false"
  4706. else
  4707. case $cross_compiling:$ac_tool_warned in
  4708. yes:)
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4710. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4711. ac_tool_warned=yes ;;
  4712. esac
  4713. OBJDUMP=$ac_ct_OBJDUMP
  4714. fi
  4715. else
  4716. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4717. fi
  4718. test -z "$OBJDUMP" && OBJDUMP=objdump
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4720. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4721. if ${lt_cv_deplibs_check_method+:} false; then :
  4722. $as_echo_n "(cached) " >&6
  4723. else
  4724. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4725. lt_cv_file_magic_test_file=
  4726. lt_cv_deplibs_check_method='unknown'
  4727. # Need to set the preceding variable on all platforms that support
  4728. # interlibrary dependencies.
  4729. # 'none' -- dependencies not supported.
  4730. # 'unknown' -- same as none, but documents that we really don't know.
  4731. # 'pass_all' -- all dependencies passed with no checks.
  4732. # 'test_compile' -- check by making test program.
  4733. # 'file_magic [[regex]]' -- check by looking for files in library path
  4734. # that responds to the $file_magic_cmd with a given extended regex.
  4735. # If you have 'file' or equivalent on your system and you're not sure
  4736. # whether 'pass_all' will *always* work, you probably want this one.
  4737. case $host_os in
  4738. aix[4-9]*)
  4739. lt_cv_deplibs_check_method=pass_all
  4740. ;;
  4741. beos*)
  4742. lt_cv_deplibs_check_method=pass_all
  4743. ;;
  4744. bsdi[45]*)
  4745. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4746. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4747. lt_cv_file_magic_test_file=/shlib/libc.so
  4748. ;;
  4749. cygwin*)
  4750. # func_win32_libid is a shell function defined in ltmain.sh
  4751. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4752. lt_cv_file_magic_cmd='func_win32_libid'
  4753. ;;
  4754. mingw* | pw32*)
  4755. # Base MSYS/MinGW do not provide the 'file' command needed by
  4756. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4757. # unless we find 'file', for example because we are cross-compiling.
  4758. if ( file / ) >/dev/null 2>&1; then
  4759. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4760. lt_cv_file_magic_cmd='func_win32_libid'
  4761. else
  4762. # Keep this pattern in sync with the one in func_win32_libid.
  4763. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4764. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4765. fi
  4766. ;;
  4767. cegcc*)
  4768. # use the weaker test based on 'objdump'. See mingw*.
  4769. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4770. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4771. ;;
  4772. darwin* | rhapsody*)
  4773. lt_cv_deplibs_check_method=pass_all
  4774. ;;
  4775. freebsd* | dragonfly*)
  4776. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4777. case $host_cpu in
  4778. i*86 )
  4779. # Not sure whether the presence of OpenBSD here was a mistake.
  4780. # Let's accept both of them until this is cleared up.
  4781. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4782. lt_cv_file_magic_cmd=/usr/bin/file
  4783. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4784. ;;
  4785. esac
  4786. else
  4787. lt_cv_deplibs_check_method=pass_all
  4788. fi
  4789. ;;
  4790. haiku*)
  4791. lt_cv_deplibs_check_method=pass_all
  4792. ;;
  4793. hpux10.20* | hpux11*)
  4794. lt_cv_file_magic_cmd=/usr/bin/file
  4795. case $host_cpu in
  4796. ia64*)
  4797. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4798. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4799. ;;
  4800. hppa*64*)
  4801. 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]'
  4802. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4803. ;;
  4804. *)
  4805. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4806. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4807. ;;
  4808. esac
  4809. ;;
  4810. interix[3-9]*)
  4811. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4812. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4813. ;;
  4814. irix5* | irix6* | nonstopux*)
  4815. case $LD in
  4816. *-32|*"-32 ") libmagic=32-bit;;
  4817. *-n32|*"-n32 ") libmagic=N32;;
  4818. *-64|*"-64 ") libmagic=64-bit;;
  4819. *) libmagic=never-match;;
  4820. esac
  4821. lt_cv_deplibs_check_method=pass_all
  4822. ;;
  4823. # This must be glibc/ELF.
  4824. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4825. lt_cv_deplibs_check_method=pass_all
  4826. ;;
  4827. netbsd*)
  4828. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4829. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4830. else
  4831. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4832. fi
  4833. ;;
  4834. newos6*)
  4835. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4836. lt_cv_file_magic_cmd=/usr/bin/file
  4837. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4838. ;;
  4839. *nto* | *qnx*)
  4840. lt_cv_deplibs_check_method=pass_all
  4841. ;;
  4842. openbsd* | bitrig*)
  4843. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4844. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4845. else
  4846. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4847. fi
  4848. ;;
  4849. osf3* | osf4* | osf5*)
  4850. lt_cv_deplibs_check_method=pass_all
  4851. ;;
  4852. rdos*)
  4853. lt_cv_deplibs_check_method=pass_all
  4854. ;;
  4855. solaris*)
  4856. lt_cv_deplibs_check_method=pass_all
  4857. ;;
  4858. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4859. lt_cv_deplibs_check_method=pass_all
  4860. ;;
  4861. sysv4 | sysv4.3*)
  4862. case $host_vendor in
  4863. motorola)
  4864. 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]'
  4865. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4866. ;;
  4867. ncr)
  4868. lt_cv_deplibs_check_method=pass_all
  4869. ;;
  4870. sequent)
  4871. lt_cv_file_magic_cmd='/bin/file'
  4872. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4873. ;;
  4874. sni)
  4875. lt_cv_file_magic_cmd='/bin/file'
  4876. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4877. lt_cv_file_magic_test_file=/lib/libc.so
  4878. ;;
  4879. siemens)
  4880. lt_cv_deplibs_check_method=pass_all
  4881. ;;
  4882. pc)
  4883. lt_cv_deplibs_check_method=pass_all
  4884. ;;
  4885. esac
  4886. ;;
  4887. tpf*)
  4888. lt_cv_deplibs_check_method=pass_all
  4889. ;;
  4890. os2*)
  4891. lt_cv_deplibs_check_method=pass_all
  4892. ;;
  4893. esac
  4894. fi
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4896. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4897. file_magic_glob=
  4898. want_nocaseglob=no
  4899. if test "$build" = "$host"; then
  4900. case $host_os in
  4901. mingw* | pw32*)
  4902. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4903. want_nocaseglob=yes
  4904. else
  4905. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4906. fi
  4907. ;;
  4908. esac
  4909. fi
  4910. file_magic_cmd=$lt_cv_file_magic_cmd
  4911. deplibs_check_method=$lt_cv_deplibs_check_method
  4912. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4913. if test -n "$ac_tool_prefix"; then
  4914. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4915. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4917. $as_echo_n "checking for $ac_word... " >&6; }
  4918. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4919. $as_echo_n "(cached) " >&6
  4920. else
  4921. if test -n "$DLLTOOL"; then
  4922. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4923. else
  4924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4925. for as_dir in $PATH
  4926. do
  4927. IFS=$as_save_IFS
  4928. test -z "$as_dir" && as_dir=.
  4929. for ac_exec_ext in '' $ac_executable_extensions; do
  4930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4931. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4933. break 2
  4934. fi
  4935. done
  4936. done
  4937. IFS=$as_save_IFS
  4938. fi
  4939. fi
  4940. DLLTOOL=$ac_cv_prog_DLLTOOL
  4941. if test -n "$DLLTOOL"; then
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4943. $as_echo "$DLLTOOL" >&6; }
  4944. else
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4946. $as_echo "no" >&6; }
  4947. fi
  4948. fi
  4949. if test -z "$ac_cv_prog_DLLTOOL"; then
  4950. ac_ct_DLLTOOL=$DLLTOOL
  4951. # Extract the first word of "dlltool", so it can be a program name with args.
  4952. set dummy dlltool; ac_word=$2
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4954. $as_echo_n "checking for $ac_word... " >&6; }
  4955. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4956. $as_echo_n "(cached) " >&6
  4957. else
  4958. if test -n "$ac_ct_DLLTOOL"; then
  4959. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4960. else
  4961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4962. for as_dir in $PATH
  4963. do
  4964. IFS=$as_save_IFS
  4965. test -z "$as_dir" && as_dir=.
  4966. for ac_exec_ext in '' $ac_executable_extensions; do
  4967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4968. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4970. break 2
  4971. fi
  4972. done
  4973. done
  4974. IFS=$as_save_IFS
  4975. fi
  4976. fi
  4977. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4978. if test -n "$ac_ct_DLLTOOL"; then
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4980. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4981. else
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4983. $as_echo "no" >&6; }
  4984. fi
  4985. if test "x$ac_ct_DLLTOOL" = x; then
  4986. DLLTOOL="false"
  4987. else
  4988. case $cross_compiling:$ac_tool_warned in
  4989. yes:)
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4991. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4992. ac_tool_warned=yes ;;
  4993. esac
  4994. DLLTOOL=$ac_ct_DLLTOOL
  4995. fi
  4996. else
  4997. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4998. fi
  4999. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5001. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5002. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5003. $as_echo_n "(cached) " >&6
  5004. else
  5005. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5006. case $host_os in
  5007. cygwin* | mingw* | pw32* | cegcc*)
  5008. # two different shell functions defined in ltmain.sh;
  5009. # decide which one to use based on capabilities of $DLLTOOL
  5010. case `$DLLTOOL --help 2>&1` in
  5011. *--identify-strict*)
  5012. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5013. ;;
  5014. *)
  5015. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5016. ;;
  5017. esac
  5018. ;;
  5019. *)
  5020. # fallback: assume linklib IS sharedlib
  5021. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5022. ;;
  5023. esac
  5024. fi
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5026. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5027. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5028. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5029. if test -n "$ac_tool_prefix"; then
  5030. for ac_prog in ar
  5031. do
  5032. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5033. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5035. $as_echo_n "checking for $ac_word... " >&6; }
  5036. if ${ac_cv_prog_AR+:} false; then :
  5037. $as_echo_n "(cached) " >&6
  5038. else
  5039. if test -n "$AR"; then
  5040. ac_cv_prog_AR="$AR" # Let the user override the test.
  5041. else
  5042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5043. for as_dir in $PATH
  5044. do
  5045. IFS=$as_save_IFS
  5046. test -z "$as_dir" && as_dir=.
  5047. for ac_exec_ext in '' $ac_executable_extensions; do
  5048. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5049. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5051. break 2
  5052. fi
  5053. done
  5054. done
  5055. IFS=$as_save_IFS
  5056. fi
  5057. fi
  5058. AR=$ac_cv_prog_AR
  5059. if test -n "$AR"; then
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5061. $as_echo "$AR" >&6; }
  5062. else
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5064. $as_echo "no" >&6; }
  5065. fi
  5066. test -n "$AR" && break
  5067. done
  5068. fi
  5069. if test -z "$AR"; then
  5070. ac_ct_AR=$AR
  5071. for ac_prog in ar
  5072. do
  5073. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5074. set dummy $ac_prog; ac_word=$2
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5076. $as_echo_n "checking for $ac_word... " >&6; }
  5077. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5078. $as_echo_n "(cached) " >&6
  5079. else
  5080. if test -n "$ac_ct_AR"; then
  5081. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5082. else
  5083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5084. for as_dir in $PATH
  5085. do
  5086. IFS=$as_save_IFS
  5087. test -z "$as_dir" && as_dir=.
  5088. for ac_exec_ext in '' $ac_executable_extensions; do
  5089. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5090. ac_cv_prog_ac_ct_AR="$ac_prog"
  5091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5092. break 2
  5093. fi
  5094. done
  5095. done
  5096. IFS=$as_save_IFS
  5097. fi
  5098. fi
  5099. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5100. if test -n "$ac_ct_AR"; then
  5101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5102. $as_echo "$ac_ct_AR" >&6; }
  5103. else
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5105. $as_echo "no" >&6; }
  5106. fi
  5107. test -n "$ac_ct_AR" && break
  5108. done
  5109. if test "x$ac_ct_AR" = x; then
  5110. AR="false"
  5111. else
  5112. case $cross_compiling:$ac_tool_warned in
  5113. yes:)
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5115. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5116. ac_tool_warned=yes ;;
  5117. esac
  5118. AR=$ac_ct_AR
  5119. fi
  5120. fi
  5121. : ${AR=ar}
  5122. : ${AR_FLAGS=cru}
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5124. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5125. if ${lt_cv_ar_at_file+:} false; then :
  5126. $as_echo_n "(cached) " >&6
  5127. else
  5128. lt_cv_ar_at_file=no
  5129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5130. /* end confdefs.h. */
  5131. int
  5132. main ()
  5133. {
  5134. ;
  5135. return 0;
  5136. }
  5137. _ACEOF
  5138. if ac_fn_c_try_compile "$LINENO"; then :
  5139. echo conftest.$ac_objext > conftest.lst
  5140. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5141. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5142. (eval $lt_ar_try) 2>&5
  5143. ac_status=$?
  5144. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5145. test $ac_status = 0; }
  5146. if test 0 -eq "$ac_status"; then
  5147. # Ensure the archiver fails upon bogus file names.
  5148. rm -f conftest.$ac_objext libconftest.a
  5149. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5150. (eval $lt_ar_try) 2>&5
  5151. ac_status=$?
  5152. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5153. test $ac_status = 0; }
  5154. if test 0 -ne "$ac_status"; then
  5155. lt_cv_ar_at_file=@
  5156. fi
  5157. fi
  5158. rm -f conftest.* libconftest.a
  5159. fi
  5160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5161. fi
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5163. $as_echo "$lt_cv_ar_at_file" >&6; }
  5164. if test no = "$lt_cv_ar_at_file"; then
  5165. archiver_list_spec=
  5166. else
  5167. archiver_list_spec=$lt_cv_ar_at_file
  5168. fi
  5169. if test -n "$ac_tool_prefix"; then
  5170. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5171. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5173. $as_echo_n "checking for $ac_word... " >&6; }
  5174. if ${ac_cv_prog_STRIP+:} false; then :
  5175. $as_echo_n "(cached) " >&6
  5176. else
  5177. if test -n "$STRIP"; then
  5178. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5179. else
  5180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5181. for as_dir in $PATH
  5182. do
  5183. IFS=$as_save_IFS
  5184. test -z "$as_dir" && as_dir=.
  5185. for ac_exec_ext in '' $ac_executable_extensions; do
  5186. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5187. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5189. break 2
  5190. fi
  5191. done
  5192. done
  5193. IFS=$as_save_IFS
  5194. fi
  5195. fi
  5196. STRIP=$ac_cv_prog_STRIP
  5197. if test -n "$STRIP"; then
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5199. $as_echo "$STRIP" >&6; }
  5200. else
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5202. $as_echo "no" >&6; }
  5203. fi
  5204. fi
  5205. if test -z "$ac_cv_prog_STRIP"; then
  5206. ac_ct_STRIP=$STRIP
  5207. # Extract the first word of "strip", so it can be a program name with args.
  5208. set dummy strip; ac_word=$2
  5209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5210. $as_echo_n "checking for $ac_word... " >&6; }
  5211. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5212. $as_echo_n "(cached) " >&6
  5213. else
  5214. if test -n "$ac_ct_STRIP"; then
  5215. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5216. else
  5217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5218. for as_dir in $PATH
  5219. do
  5220. IFS=$as_save_IFS
  5221. test -z "$as_dir" && as_dir=.
  5222. for ac_exec_ext in '' $ac_executable_extensions; do
  5223. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5224. ac_cv_prog_ac_ct_STRIP="strip"
  5225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5226. break 2
  5227. fi
  5228. done
  5229. done
  5230. IFS=$as_save_IFS
  5231. fi
  5232. fi
  5233. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5234. if test -n "$ac_ct_STRIP"; then
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5236. $as_echo "$ac_ct_STRIP" >&6; }
  5237. else
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5239. $as_echo "no" >&6; }
  5240. fi
  5241. if test "x$ac_ct_STRIP" = x; then
  5242. STRIP=":"
  5243. else
  5244. case $cross_compiling:$ac_tool_warned in
  5245. yes:)
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5247. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5248. ac_tool_warned=yes ;;
  5249. esac
  5250. STRIP=$ac_ct_STRIP
  5251. fi
  5252. else
  5253. STRIP="$ac_cv_prog_STRIP"
  5254. fi
  5255. test -z "$STRIP" && STRIP=:
  5256. if test -n "$ac_tool_prefix"; then
  5257. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5258. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5260. $as_echo_n "checking for $ac_word... " >&6; }
  5261. if ${ac_cv_prog_RANLIB+:} false; then :
  5262. $as_echo_n "(cached) " >&6
  5263. else
  5264. if test -n "$RANLIB"; then
  5265. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5266. else
  5267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5268. for as_dir in $PATH
  5269. do
  5270. IFS=$as_save_IFS
  5271. test -z "$as_dir" && as_dir=.
  5272. for ac_exec_ext in '' $ac_executable_extensions; do
  5273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5274. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5276. break 2
  5277. fi
  5278. done
  5279. done
  5280. IFS=$as_save_IFS
  5281. fi
  5282. fi
  5283. RANLIB=$ac_cv_prog_RANLIB
  5284. if test -n "$RANLIB"; then
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5286. $as_echo "$RANLIB" >&6; }
  5287. else
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5289. $as_echo "no" >&6; }
  5290. fi
  5291. fi
  5292. if test -z "$ac_cv_prog_RANLIB"; then
  5293. ac_ct_RANLIB=$RANLIB
  5294. # Extract the first word of "ranlib", so it can be a program name with args.
  5295. set dummy ranlib; ac_word=$2
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5297. $as_echo_n "checking for $ac_word... " >&6; }
  5298. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5299. $as_echo_n "(cached) " >&6
  5300. else
  5301. if test -n "$ac_ct_RANLIB"; then
  5302. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5303. else
  5304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5305. for as_dir in $PATH
  5306. do
  5307. IFS=$as_save_IFS
  5308. test -z "$as_dir" && as_dir=.
  5309. for ac_exec_ext in '' $ac_executable_extensions; do
  5310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5311. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5313. break 2
  5314. fi
  5315. done
  5316. done
  5317. IFS=$as_save_IFS
  5318. fi
  5319. fi
  5320. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5321. if test -n "$ac_ct_RANLIB"; then
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5323. $as_echo "$ac_ct_RANLIB" >&6; }
  5324. else
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5326. $as_echo "no" >&6; }
  5327. fi
  5328. if test "x$ac_ct_RANLIB" = x; then
  5329. RANLIB=":"
  5330. else
  5331. case $cross_compiling:$ac_tool_warned in
  5332. yes:)
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5334. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5335. ac_tool_warned=yes ;;
  5336. esac
  5337. RANLIB=$ac_ct_RANLIB
  5338. fi
  5339. else
  5340. RANLIB="$ac_cv_prog_RANLIB"
  5341. fi
  5342. test -z "$RANLIB" && RANLIB=:
  5343. # Determine commands to create old-style static archives.
  5344. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5345. old_postinstall_cmds='chmod 644 $oldlib'
  5346. old_postuninstall_cmds=
  5347. if test -n "$RANLIB"; then
  5348. case $host_os in
  5349. bitrig* | openbsd*)
  5350. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5351. ;;
  5352. *)
  5353. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5354. ;;
  5355. esac
  5356. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5357. fi
  5358. case $host_os in
  5359. darwin*)
  5360. lock_old_archive_extraction=yes ;;
  5361. *)
  5362. lock_old_archive_extraction=no ;;
  5363. esac
  5364. # If no C compiler was specified, use CC.
  5365. LTCC=${LTCC-"$CC"}
  5366. # If no C compiler flags were specified, use CFLAGS.
  5367. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5368. # Allow CC to be a program name with arguments.
  5369. compiler=$CC
  5370. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5372. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5373. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5374. $as_echo_n "(cached) " >&6
  5375. else
  5376. # These are sane defaults that work on at least a few old systems.
  5377. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5378. # Character class describing NM global symbol codes.
  5379. symcode='[BCDEGRST]'
  5380. # Regexp to match symbols that can be accessed directly from C.
  5381. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5382. # Define system-specific variables.
  5383. case $host_os in
  5384. aix*)
  5385. symcode='[BCDT]'
  5386. ;;
  5387. cygwin* | mingw* | pw32* | cegcc*)
  5388. symcode='[ABCDGISTW]'
  5389. ;;
  5390. hpux*)
  5391. if test ia64 = "$host_cpu"; then
  5392. symcode='[ABCDEGRST]'
  5393. fi
  5394. ;;
  5395. irix* | nonstopux*)
  5396. symcode='[BCDEGRST]'
  5397. ;;
  5398. osf*)
  5399. symcode='[BCDEGQRST]'
  5400. ;;
  5401. solaris*)
  5402. symcode='[BDRT]'
  5403. ;;
  5404. sco3.2v5*)
  5405. symcode='[DT]'
  5406. ;;
  5407. sysv4.2uw2*)
  5408. symcode='[DT]'
  5409. ;;
  5410. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5411. symcode='[ABDT]'
  5412. ;;
  5413. sysv4)
  5414. symcode='[DFNSTU]'
  5415. ;;
  5416. esac
  5417. # If we're using GNU nm, then use its standard symbol codes.
  5418. case `$NM -V 2>&1` in
  5419. *GNU* | *'with BFD'*)
  5420. symcode='[ABCDGIRSTW]' ;;
  5421. esac
  5422. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5423. # Gets list of data symbols to import.
  5424. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5425. # Adjust the below global symbol transforms to fixup imported variables.
  5426. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5427. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5428. lt_c_name_lib_hook="\
  5429. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5430. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5431. else
  5432. # Disable hooks by default.
  5433. lt_cv_sys_global_symbol_to_import=
  5434. lt_cdecl_hook=
  5435. lt_c_name_hook=
  5436. lt_c_name_lib_hook=
  5437. fi
  5438. # Transform an extracted symbol line into a proper C declaration.
  5439. # Some systems (esp. on ia64) link data and code symbols differently,
  5440. # so use this general approach.
  5441. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5442. $lt_cdecl_hook\
  5443. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5444. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5445. # Transform an extracted symbol line into symbol name and symbol address
  5446. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5447. $lt_c_name_hook\
  5448. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5449. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5450. # Transform an extracted symbol line into symbol name with lib prefix and
  5451. # symbol address.
  5452. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5453. $lt_c_name_lib_hook\
  5454. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5455. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5456. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5457. # Handle CRLF in mingw tool chain
  5458. opt_cr=
  5459. case $build_os in
  5460. mingw*)
  5461. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5462. ;;
  5463. esac
  5464. # Try without a prefix underscore, then with it.
  5465. for ac_symprfx in "" "_"; do
  5466. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5467. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5468. # Write the raw and C identifiers.
  5469. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5470. # Fake it for dumpbin and say T for any non-static function,
  5471. # D for any global variable and I for any imported variable.
  5472. # Also find C++ and __fastcall symbols from MSVC++,
  5473. # which start with @ or ?.
  5474. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5475. " {last_section=section; section=\$ 3};"\
  5476. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5477. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5478. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5479. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5480. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5481. " \$ 0!~/External *\|/{next};"\
  5482. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5483. " {if(hide[section]) next};"\
  5484. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5485. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5486. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5487. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5488. " ' prfx=^$ac_symprfx"
  5489. else
  5490. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5491. fi
  5492. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5493. # Check to see that the pipe works correctly.
  5494. pipe_works=no
  5495. rm -f conftest*
  5496. cat > conftest.$ac_ext <<_LT_EOF
  5497. #ifdef __cplusplus
  5498. extern "C" {
  5499. #endif
  5500. char nm_test_var;
  5501. void nm_test_func(void);
  5502. void nm_test_func(void){}
  5503. #ifdef __cplusplus
  5504. }
  5505. #endif
  5506. int main(){nm_test_var='a';nm_test_func();return(0);}
  5507. _LT_EOF
  5508. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5509. (eval $ac_compile) 2>&5
  5510. ac_status=$?
  5511. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5512. test $ac_status = 0; }; then
  5513. # Now try to grab the symbols.
  5514. nlist=conftest.nm
  5515. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5516. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5517. ac_status=$?
  5518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5519. test $ac_status = 0; } && test -s "$nlist"; then
  5520. # Try sorting and uniquifying the output.
  5521. if sort "$nlist" | uniq > "$nlist"T; then
  5522. mv -f "$nlist"T "$nlist"
  5523. else
  5524. rm -f "$nlist"T
  5525. fi
  5526. # Make sure that we snagged all the symbols we need.
  5527. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5528. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5529. cat <<_LT_EOF > conftest.$ac_ext
  5530. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5531. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5532. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5533. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5534. # define LT_DLSYM_CONST
  5535. #elif defined __osf__
  5536. /* This system does not cope well with relocations in const data. */
  5537. # define LT_DLSYM_CONST
  5538. #else
  5539. # define LT_DLSYM_CONST const
  5540. #endif
  5541. #ifdef __cplusplus
  5542. extern "C" {
  5543. #endif
  5544. _LT_EOF
  5545. # Now generate the symbol file.
  5546. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5547. cat <<_LT_EOF >> conftest.$ac_ext
  5548. /* The mapping between symbol names and symbols. */
  5549. LT_DLSYM_CONST struct {
  5550. const char *name;
  5551. void *address;
  5552. }
  5553. lt__PROGRAM__LTX_preloaded_symbols[] =
  5554. {
  5555. { "@PROGRAM@", (void *) 0 },
  5556. _LT_EOF
  5557. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5558. cat <<\_LT_EOF >> conftest.$ac_ext
  5559. {0, (void *) 0}
  5560. };
  5561. /* This works around a problem in FreeBSD linker */
  5562. #ifdef FREEBSD_WORKAROUND
  5563. static const void *lt_preloaded_setup() {
  5564. return lt__PROGRAM__LTX_preloaded_symbols;
  5565. }
  5566. #endif
  5567. #ifdef __cplusplus
  5568. }
  5569. #endif
  5570. _LT_EOF
  5571. # Now try linking the two files.
  5572. mv conftest.$ac_objext conftstm.$ac_objext
  5573. lt_globsym_save_LIBS=$LIBS
  5574. lt_globsym_save_CFLAGS=$CFLAGS
  5575. LIBS=conftstm.$ac_objext
  5576. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5577. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5578. (eval $ac_link) 2>&5
  5579. ac_status=$?
  5580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5581. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5582. pipe_works=yes
  5583. fi
  5584. LIBS=$lt_globsym_save_LIBS
  5585. CFLAGS=$lt_globsym_save_CFLAGS
  5586. else
  5587. echo "cannot find nm_test_func in $nlist" >&5
  5588. fi
  5589. else
  5590. echo "cannot find nm_test_var in $nlist" >&5
  5591. fi
  5592. else
  5593. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5594. fi
  5595. else
  5596. echo "$progname: failed program was:" >&5
  5597. cat conftest.$ac_ext >&5
  5598. fi
  5599. rm -rf conftest* conftst*
  5600. # Do not use the global_symbol_pipe unless it works.
  5601. if test yes = "$pipe_works"; then
  5602. break
  5603. else
  5604. lt_cv_sys_global_symbol_pipe=
  5605. fi
  5606. done
  5607. fi
  5608. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5609. lt_cv_sys_global_symbol_to_cdecl=
  5610. fi
  5611. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5613. $as_echo "failed" >&6; }
  5614. else
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5616. $as_echo "ok" >&6; }
  5617. fi
  5618. # Response file support.
  5619. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5620. nm_file_list_spec='@'
  5621. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5622. nm_file_list_spec='@'
  5623. fi
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5625. $as_echo_n "checking for sysroot... " >&6; }
  5626. # Check whether --with-sysroot was given.
  5627. if test "${with_sysroot+set}" = set; then :
  5628. withval=$with_sysroot;
  5629. else
  5630. with_sysroot=no
  5631. fi
  5632. lt_sysroot=
  5633. case $with_sysroot in #(
  5634. yes)
  5635. if test yes = "$GCC"; then
  5636. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5637. fi
  5638. ;; #(
  5639. /*)
  5640. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5641. ;; #(
  5642. no|'')
  5643. ;; #(
  5644. *)
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5646. $as_echo "$with_sysroot" >&6; }
  5647. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5648. ;;
  5649. esac
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5651. $as_echo "${lt_sysroot:-no}" >&6; }
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5653. $as_echo_n "checking for a working dd... " >&6; }
  5654. if ${ac_cv_path_lt_DD+:} false; then :
  5655. $as_echo_n "(cached) " >&6
  5656. else
  5657. printf 0123456789abcdef0123456789abcdef >conftest.i
  5658. cat conftest.i conftest.i >conftest2.i
  5659. : ${lt_DD:=$DD}
  5660. if test -z "$lt_DD"; then
  5661. ac_path_lt_DD_found=false
  5662. # Loop through the user's path and test for each of PROGNAME-LIST
  5663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5664. for as_dir in $PATH
  5665. do
  5666. IFS=$as_save_IFS
  5667. test -z "$as_dir" && as_dir=.
  5668. for ac_prog in dd; do
  5669. for ac_exec_ext in '' $ac_executable_extensions; do
  5670. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5671. as_fn_executable_p "$ac_path_lt_DD" || continue
  5672. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5673. cmp -s conftest.i conftest.out \
  5674. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5675. fi
  5676. $ac_path_lt_DD_found && break 3
  5677. done
  5678. done
  5679. done
  5680. IFS=$as_save_IFS
  5681. if test -z "$ac_cv_path_lt_DD"; then
  5682. :
  5683. fi
  5684. else
  5685. ac_cv_path_lt_DD=$lt_DD
  5686. fi
  5687. rm -f conftest.i conftest2.i conftest.out
  5688. fi
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5690. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5692. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5693. if ${lt_cv_truncate_bin+:} false; then :
  5694. $as_echo_n "(cached) " >&6
  5695. else
  5696. printf 0123456789abcdef0123456789abcdef >conftest.i
  5697. cat conftest.i conftest.i >conftest2.i
  5698. lt_cv_truncate_bin=
  5699. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5700. cmp -s conftest.i conftest.out \
  5701. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5702. fi
  5703. rm -f conftest.i conftest2.i conftest.out
  5704. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5705. fi
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5707. $as_echo "$lt_cv_truncate_bin" >&6; }
  5708. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5709. func_cc_basename ()
  5710. {
  5711. for cc_temp in $*""; do
  5712. case $cc_temp in
  5713. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5714. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5715. \-*) ;;
  5716. *) break;;
  5717. esac
  5718. done
  5719. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5720. }
  5721. # Check whether --enable-libtool-lock was given.
  5722. if test "${enable_libtool_lock+set}" = set; then :
  5723. enableval=$enable_libtool_lock;
  5724. fi
  5725. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5726. # Some flags need to be propagated to the compiler or linker for good
  5727. # libtool support.
  5728. case $host in
  5729. ia64-*-hpux*)
  5730. # Find out what ABI is being produced by ac_compile, and set mode
  5731. # options accordingly.
  5732. echo 'int i;' > conftest.$ac_ext
  5733. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5734. (eval $ac_compile) 2>&5
  5735. ac_status=$?
  5736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5737. test $ac_status = 0; }; then
  5738. case `/usr/bin/file conftest.$ac_objext` in
  5739. *ELF-32*)
  5740. HPUX_IA64_MODE=32
  5741. ;;
  5742. *ELF-64*)
  5743. HPUX_IA64_MODE=64
  5744. ;;
  5745. esac
  5746. fi
  5747. rm -rf conftest*
  5748. ;;
  5749. *-*-irix6*)
  5750. # Find out what ABI is being produced by ac_compile, and set linker
  5751. # options accordingly.
  5752. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5753. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5754. (eval $ac_compile) 2>&5
  5755. ac_status=$?
  5756. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5757. test $ac_status = 0; }; then
  5758. if test yes = "$lt_cv_prog_gnu_ld"; then
  5759. case `/usr/bin/file conftest.$ac_objext` in
  5760. *32-bit*)
  5761. LD="${LD-ld} -melf32bsmip"
  5762. ;;
  5763. *N32*)
  5764. LD="${LD-ld} -melf32bmipn32"
  5765. ;;
  5766. *64-bit*)
  5767. LD="${LD-ld} -melf64bmip"
  5768. ;;
  5769. esac
  5770. else
  5771. case `/usr/bin/file conftest.$ac_objext` in
  5772. *32-bit*)
  5773. LD="${LD-ld} -32"
  5774. ;;
  5775. *N32*)
  5776. LD="${LD-ld} -n32"
  5777. ;;
  5778. *64-bit*)
  5779. LD="${LD-ld} -64"
  5780. ;;
  5781. esac
  5782. fi
  5783. fi
  5784. rm -rf conftest*
  5785. ;;
  5786. mips64*-*linux*)
  5787. # Find out what ABI is being produced by ac_compile, and set linker
  5788. # options accordingly.
  5789. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5790. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5791. (eval $ac_compile) 2>&5
  5792. ac_status=$?
  5793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5794. test $ac_status = 0; }; then
  5795. emul=elf
  5796. case `/usr/bin/file conftest.$ac_objext` in
  5797. *32-bit*)
  5798. emul="${emul}32"
  5799. ;;
  5800. *64-bit*)
  5801. emul="${emul}64"
  5802. ;;
  5803. esac
  5804. case `/usr/bin/file conftest.$ac_objext` in
  5805. *MSB*)
  5806. emul="${emul}btsmip"
  5807. ;;
  5808. *LSB*)
  5809. emul="${emul}ltsmip"
  5810. ;;
  5811. esac
  5812. case `/usr/bin/file conftest.$ac_objext` in
  5813. *N32*)
  5814. emul="${emul}n32"
  5815. ;;
  5816. esac
  5817. LD="${LD-ld} -m $emul"
  5818. fi
  5819. rm -rf conftest*
  5820. ;;
  5821. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5822. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5823. # Find out what ABI is being produced by ac_compile, and set linker
  5824. # options accordingly. Note that the listed cases only cover the
  5825. # situations where additional linker options are needed (such as when
  5826. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5827. # vice versa); the common cases where no linker options are needed do
  5828. # not appear in the list.
  5829. echo 'int i;' > conftest.$ac_ext
  5830. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5831. (eval $ac_compile) 2>&5
  5832. ac_status=$?
  5833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5834. test $ac_status = 0; }; then
  5835. case `/usr/bin/file conftest.o` in
  5836. *32-bit*)
  5837. case $host in
  5838. x86_64-*kfreebsd*-gnu)
  5839. LD="${LD-ld} -m elf_i386_fbsd"
  5840. ;;
  5841. x86_64-*linux*)
  5842. case `/usr/bin/file conftest.o` in
  5843. *x86-64*)
  5844. LD="${LD-ld} -m elf32_x86_64"
  5845. ;;
  5846. *)
  5847. LD="${LD-ld} -m elf_i386"
  5848. ;;
  5849. esac
  5850. ;;
  5851. powerpc64le-*linux*)
  5852. LD="${LD-ld} -m elf32lppclinux"
  5853. ;;
  5854. powerpc64-*linux*)
  5855. LD="${LD-ld} -m elf32ppclinux"
  5856. ;;
  5857. s390x-*linux*)
  5858. LD="${LD-ld} -m elf_s390"
  5859. ;;
  5860. sparc64-*linux*)
  5861. LD="${LD-ld} -m elf32_sparc"
  5862. ;;
  5863. esac
  5864. ;;
  5865. *64-bit*)
  5866. case $host in
  5867. x86_64-*kfreebsd*-gnu)
  5868. LD="${LD-ld} -m elf_x86_64_fbsd"
  5869. ;;
  5870. x86_64-*linux*)
  5871. LD="${LD-ld} -m elf_x86_64"
  5872. ;;
  5873. powerpcle-*linux*)
  5874. LD="${LD-ld} -m elf64lppc"
  5875. ;;
  5876. powerpc-*linux*)
  5877. LD="${LD-ld} -m elf64ppc"
  5878. ;;
  5879. s390*-*linux*|s390*-*tpf*)
  5880. LD="${LD-ld} -m elf64_s390"
  5881. ;;
  5882. sparc*-*linux*)
  5883. LD="${LD-ld} -m elf64_sparc"
  5884. ;;
  5885. esac
  5886. ;;
  5887. esac
  5888. fi
  5889. rm -rf conftest*
  5890. ;;
  5891. *-*-sco3.2v5*)
  5892. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5893. SAVE_CFLAGS=$CFLAGS
  5894. CFLAGS="$CFLAGS -belf"
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5896. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5897. if ${lt_cv_cc_needs_belf+:} false; then :
  5898. $as_echo_n "(cached) " >&6
  5899. else
  5900. ac_ext=c
  5901. ac_cpp='$CPP $CPPFLAGS'
  5902. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5903. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5904. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5906. /* end confdefs.h. */
  5907. int
  5908. main ()
  5909. {
  5910. ;
  5911. return 0;
  5912. }
  5913. _ACEOF
  5914. if ac_fn_c_try_link "$LINENO"; then :
  5915. lt_cv_cc_needs_belf=yes
  5916. else
  5917. lt_cv_cc_needs_belf=no
  5918. fi
  5919. rm -f core conftest.err conftest.$ac_objext \
  5920. conftest$ac_exeext conftest.$ac_ext
  5921. ac_ext=c
  5922. ac_cpp='$CPP $CPPFLAGS'
  5923. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5924. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5925. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5926. fi
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5928. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5929. if test yes != "$lt_cv_cc_needs_belf"; then
  5930. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5931. CFLAGS=$SAVE_CFLAGS
  5932. fi
  5933. ;;
  5934. *-*solaris*)
  5935. # Find out what ABI is being produced by ac_compile, and set linker
  5936. # options accordingly.
  5937. echo 'int i;' > conftest.$ac_ext
  5938. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5939. (eval $ac_compile) 2>&5
  5940. ac_status=$?
  5941. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5942. test $ac_status = 0; }; then
  5943. case `/usr/bin/file conftest.o` in
  5944. *64-bit*)
  5945. case $lt_cv_prog_gnu_ld in
  5946. yes*)
  5947. case $host in
  5948. i?86-*-solaris*|x86_64-*-solaris*)
  5949. LD="${LD-ld} -m elf_x86_64"
  5950. ;;
  5951. sparc*-*-solaris*)
  5952. LD="${LD-ld} -m elf64_sparc"
  5953. ;;
  5954. esac
  5955. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5956. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5957. LD=${LD-ld}_sol2
  5958. fi
  5959. ;;
  5960. *)
  5961. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5962. LD="${LD-ld} -64"
  5963. fi
  5964. ;;
  5965. esac
  5966. ;;
  5967. esac
  5968. fi
  5969. rm -rf conftest*
  5970. ;;
  5971. esac
  5972. need_locks=$enable_libtool_lock
  5973. if test -n "$ac_tool_prefix"; then
  5974. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5975. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5977. $as_echo_n "checking for $ac_word... " >&6; }
  5978. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5979. $as_echo_n "(cached) " >&6
  5980. else
  5981. if test -n "$MANIFEST_TOOL"; then
  5982. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5983. else
  5984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5985. for as_dir in $PATH
  5986. do
  5987. IFS=$as_save_IFS
  5988. test -z "$as_dir" && as_dir=.
  5989. for ac_exec_ext in '' $ac_executable_extensions; do
  5990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5991. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5993. break 2
  5994. fi
  5995. done
  5996. done
  5997. IFS=$as_save_IFS
  5998. fi
  5999. fi
  6000. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6001. if test -n "$MANIFEST_TOOL"; then
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6003. $as_echo "$MANIFEST_TOOL" >&6; }
  6004. else
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6006. $as_echo "no" >&6; }
  6007. fi
  6008. fi
  6009. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6010. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6011. # Extract the first word of "mt", so it can be a program name with args.
  6012. set dummy mt; ac_word=$2
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6014. $as_echo_n "checking for $ac_word... " >&6; }
  6015. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6016. $as_echo_n "(cached) " >&6
  6017. else
  6018. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6019. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6020. else
  6021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6022. for as_dir in $PATH
  6023. do
  6024. IFS=$as_save_IFS
  6025. test -z "$as_dir" && as_dir=.
  6026. for ac_exec_ext in '' $ac_executable_extensions; do
  6027. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6028. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6030. break 2
  6031. fi
  6032. done
  6033. done
  6034. IFS=$as_save_IFS
  6035. fi
  6036. fi
  6037. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6038. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6040. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6041. else
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6043. $as_echo "no" >&6; }
  6044. fi
  6045. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6046. MANIFEST_TOOL=":"
  6047. else
  6048. case $cross_compiling:$ac_tool_warned in
  6049. yes:)
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6051. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6052. ac_tool_warned=yes ;;
  6053. esac
  6054. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6055. fi
  6056. else
  6057. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6058. fi
  6059. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6061. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6062. if ${lt_cv_path_mainfest_tool+:} false; then :
  6063. $as_echo_n "(cached) " >&6
  6064. else
  6065. lt_cv_path_mainfest_tool=no
  6066. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6067. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6068. cat conftest.err >&5
  6069. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6070. lt_cv_path_mainfest_tool=yes
  6071. fi
  6072. rm -f conftest*
  6073. fi
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6075. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6076. if test yes != "$lt_cv_path_mainfest_tool"; then
  6077. MANIFEST_TOOL=:
  6078. fi
  6079. case $host_os in
  6080. rhapsody* | darwin*)
  6081. if test -n "$ac_tool_prefix"; then
  6082. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6083. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6085. $as_echo_n "checking for $ac_word... " >&6; }
  6086. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6087. $as_echo_n "(cached) " >&6
  6088. else
  6089. if test -n "$DSYMUTIL"; then
  6090. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6091. else
  6092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6093. for as_dir in $PATH
  6094. do
  6095. IFS=$as_save_IFS
  6096. test -z "$as_dir" && as_dir=.
  6097. for ac_exec_ext in '' $ac_executable_extensions; do
  6098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6099. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6101. break 2
  6102. fi
  6103. done
  6104. done
  6105. IFS=$as_save_IFS
  6106. fi
  6107. fi
  6108. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6109. if test -n "$DSYMUTIL"; then
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6111. $as_echo "$DSYMUTIL" >&6; }
  6112. else
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6114. $as_echo "no" >&6; }
  6115. fi
  6116. fi
  6117. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6118. ac_ct_DSYMUTIL=$DSYMUTIL
  6119. # Extract the first word of "dsymutil", so it can be a program name with args.
  6120. set dummy dsymutil; ac_word=$2
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6122. $as_echo_n "checking for $ac_word... " >&6; }
  6123. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6124. $as_echo_n "(cached) " >&6
  6125. else
  6126. if test -n "$ac_ct_DSYMUTIL"; then
  6127. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6128. else
  6129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6130. for as_dir in $PATH
  6131. do
  6132. IFS=$as_save_IFS
  6133. test -z "$as_dir" && as_dir=.
  6134. for ac_exec_ext in '' $ac_executable_extensions; do
  6135. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6136. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6138. break 2
  6139. fi
  6140. done
  6141. done
  6142. IFS=$as_save_IFS
  6143. fi
  6144. fi
  6145. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6146. if test -n "$ac_ct_DSYMUTIL"; then
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6148. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6149. else
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6151. $as_echo "no" >&6; }
  6152. fi
  6153. if test "x$ac_ct_DSYMUTIL" = x; then
  6154. DSYMUTIL=":"
  6155. else
  6156. case $cross_compiling:$ac_tool_warned in
  6157. yes:)
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6159. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6160. ac_tool_warned=yes ;;
  6161. esac
  6162. DSYMUTIL=$ac_ct_DSYMUTIL
  6163. fi
  6164. else
  6165. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6166. fi
  6167. if test -n "$ac_tool_prefix"; then
  6168. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6169. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6171. $as_echo_n "checking for $ac_word... " >&6; }
  6172. if ${ac_cv_prog_NMEDIT+:} false; then :
  6173. $as_echo_n "(cached) " >&6
  6174. else
  6175. if test -n "$NMEDIT"; then
  6176. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6177. else
  6178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6179. for as_dir in $PATH
  6180. do
  6181. IFS=$as_save_IFS
  6182. test -z "$as_dir" && as_dir=.
  6183. for ac_exec_ext in '' $ac_executable_extensions; do
  6184. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6185. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6187. break 2
  6188. fi
  6189. done
  6190. done
  6191. IFS=$as_save_IFS
  6192. fi
  6193. fi
  6194. NMEDIT=$ac_cv_prog_NMEDIT
  6195. if test -n "$NMEDIT"; then
  6196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6197. $as_echo "$NMEDIT" >&6; }
  6198. else
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6200. $as_echo "no" >&6; }
  6201. fi
  6202. fi
  6203. if test -z "$ac_cv_prog_NMEDIT"; then
  6204. ac_ct_NMEDIT=$NMEDIT
  6205. # Extract the first word of "nmedit", so it can be a program name with args.
  6206. set dummy nmedit; ac_word=$2
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6208. $as_echo_n "checking for $ac_word... " >&6; }
  6209. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6210. $as_echo_n "(cached) " >&6
  6211. else
  6212. if test -n "$ac_ct_NMEDIT"; then
  6213. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6214. else
  6215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6216. for as_dir in $PATH
  6217. do
  6218. IFS=$as_save_IFS
  6219. test -z "$as_dir" && as_dir=.
  6220. for ac_exec_ext in '' $ac_executable_extensions; do
  6221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6222. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6224. break 2
  6225. fi
  6226. done
  6227. done
  6228. IFS=$as_save_IFS
  6229. fi
  6230. fi
  6231. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6232. if test -n "$ac_ct_NMEDIT"; then
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6234. $as_echo "$ac_ct_NMEDIT" >&6; }
  6235. else
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6237. $as_echo "no" >&6; }
  6238. fi
  6239. if test "x$ac_ct_NMEDIT" = x; then
  6240. NMEDIT=":"
  6241. else
  6242. case $cross_compiling:$ac_tool_warned in
  6243. yes:)
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6245. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6246. ac_tool_warned=yes ;;
  6247. esac
  6248. NMEDIT=$ac_ct_NMEDIT
  6249. fi
  6250. else
  6251. NMEDIT="$ac_cv_prog_NMEDIT"
  6252. fi
  6253. if test -n "$ac_tool_prefix"; then
  6254. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6255. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6257. $as_echo_n "checking for $ac_word... " >&6; }
  6258. if ${ac_cv_prog_LIPO+:} false; then :
  6259. $as_echo_n "(cached) " >&6
  6260. else
  6261. if test -n "$LIPO"; then
  6262. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6263. else
  6264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6265. for as_dir in $PATH
  6266. do
  6267. IFS=$as_save_IFS
  6268. test -z "$as_dir" && as_dir=.
  6269. for ac_exec_ext in '' $ac_executable_extensions; do
  6270. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6271. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6273. break 2
  6274. fi
  6275. done
  6276. done
  6277. IFS=$as_save_IFS
  6278. fi
  6279. fi
  6280. LIPO=$ac_cv_prog_LIPO
  6281. if test -n "$LIPO"; then
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6283. $as_echo "$LIPO" >&6; }
  6284. else
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6286. $as_echo "no" >&6; }
  6287. fi
  6288. fi
  6289. if test -z "$ac_cv_prog_LIPO"; then
  6290. ac_ct_LIPO=$LIPO
  6291. # Extract the first word of "lipo", so it can be a program name with args.
  6292. set dummy lipo; ac_word=$2
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6294. $as_echo_n "checking for $ac_word... " >&6; }
  6295. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6296. $as_echo_n "(cached) " >&6
  6297. else
  6298. if test -n "$ac_ct_LIPO"; then
  6299. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6300. else
  6301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6302. for as_dir in $PATH
  6303. do
  6304. IFS=$as_save_IFS
  6305. test -z "$as_dir" && as_dir=.
  6306. for ac_exec_ext in '' $ac_executable_extensions; do
  6307. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6308. ac_cv_prog_ac_ct_LIPO="lipo"
  6309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6310. break 2
  6311. fi
  6312. done
  6313. done
  6314. IFS=$as_save_IFS
  6315. fi
  6316. fi
  6317. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6318. if test -n "$ac_ct_LIPO"; then
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6320. $as_echo "$ac_ct_LIPO" >&6; }
  6321. else
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6323. $as_echo "no" >&6; }
  6324. fi
  6325. if test "x$ac_ct_LIPO" = x; then
  6326. LIPO=":"
  6327. else
  6328. case $cross_compiling:$ac_tool_warned in
  6329. yes:)
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6331. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6332. ac_tool_warned=yes ;;
  6333. esac
  6334. LIPO=$ac_ct_LIPO
  6335. fi
  6336. else
  6337. LIPO="$ac_cv_prog_LIPO"
  6338. fi
  6339. if test -n "$ac_tool_prefix"; then
  6340. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6341. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6343. $as_echo_n "checking for $ac_word... " >&6; }
  6344. if ${ac_cv_prog_OTOOL+:} false; then :
  6345. $as_echo_n "(cached) " >&6
  6346. else
  6347. if test -n "$OTOOL"; then
  6348. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6349. else
  6350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6351. for as_dir in $PATH
  6352. do
  6353. IFS=$as_save_IFS
  6354. test -z "$as_dir" && as_dir=.
  6355. for ac_exec_ext in '' $ac_executable_extensions; do
  6356. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6357. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6359. break 2
  6360. fi
  6361. done
  6362. done
  6363. IFS=$as_save_IFS
  6364. fi
  6365. fi
  6366. OTOOL=$ac_cv_prog_OTOOL
  6367. if test -n "$OTOOL"; then
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6369. $as_echo "$OTOOL" >&6; }
  6370. else
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6372. $as_echo "no" >&6; }
  6373. fi
  6374. fi
  6375. if test -z "$ac_cv_prog_OTOOL"; then
  6376. ac_ct_OTOOL=$OTOOL
  6377. # Extract the first word of "otool", so it can be a program name with args.
  6378. set dummy otool; ac_word=$2
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6380. $as_echo_n "checking for $ac_word... " >&6; }
  6381. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6382. $as_echo_n "(cached) " >&6
  6383. else
  6384. if test -n "$ac_ct_OTOOL"; then
  6385. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6386. else
  6387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6388. for as_dir in $PATH
  6389. do
  6390. IFS=$as_save_IFS
  6391. test -z "$as_dir" && as_dir=.
  6392. for ac_exec_ext in '' $ac_executable_extensions; do
  6393. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6394. ac_cv_prog_ac_ct_OTOOL="otool"
  6395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6396. break 2
  6397. fi
  6398. done
  6399. done
  6400. IFS=$as_save_IFS
  6401. fi
  6402. fi
  6403. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6404. if test -n "$ac_ct_OTOOL"; then
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6406. $as_echo "$ac_ct_OTOOL" >&6; }
  6407. else
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6409. $as_echo "no" >&6; }
  6410. fi
  6411. if test "x$ac_ct_OTOOL" = x; then
  6412. OTOOL=":"
  6413. else
  6414. case $cross_compiling:$ac_tool_warned in
  6415. yes:)
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6417. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6418. ac_tool_warned=yes ;;
  6419. esac
  6420. OTOOL=$ac_ct_OTOOL
  6421. fi
  6422. else
  6423. OTOOL="$ac_cv_prog_OTOOL"
  6424. fi
  6425. if test -n "$ac_tool_prefix"; then
  6426. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6427. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6429. $as_echo_n "checking for $ac_word... " >&6; }
  6430. if ${ac_cv_prog_OTOOL64+:} false; then :
  6431. $as_echo_n "(cached) " >&6
  6432. else
  6433. if test -n "$OTOOL64"; then
  6434. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6435. else
  6436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6437. for as_dir in $PATH
  6438. do
  6439. IFS=$as_save_IFS
  6440. test -z "$as_dir" && as_dir=.
  6441. for ac_exec_ext in '' $ac_executable_extensions; do
  6442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6443. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6445. break 2
  6446. fi
  6447. done
  6448. done
  6449. IFS=$as_save_IFS
  6450. fi
  6451. fi
  6452. OTOOL64=$ac_cv_prog_OTOOL64
  6453. if test -n "$OTOOL64"; then
  6454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6455. $as_echo "$OTOOL64" >&6; }
  6456. else
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6458. $as_echo "no" >&6; }
  6459. fi
  6460. fi
  6461. if test -z "$ac_cv_prog_OTOOL64"; then
  6462. ac_ct_OTOOL64=$OTOOL64
  6463. # Extract the first word of "otool64", so it can be a program name with args.
  6464. set dummy otool64; ac_word=$2
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6466. $as_echo_n "checking for $ac_word... " >&6; }
  6467. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6468. $as_echo_n "(cached) " >&6
  6469. else
  6470. if test -n "$ac_ct_OTOOL64"; then
  6471. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6472. else
  6473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6474. for as_dir in $PATH
  6475. do
  6476. IFS=$as_save_IFS
  6477. test -z "$as_dir" && as_dir=.
  6478. for ac_exec_ext in '' $ac_executable_extensions; do
  6479. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6480. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6482. break 2
  6483. fi
  6484. done
  6485. done
  6486. IFS=$as_save_IFS
  6487. fi
  6488. fi
  6489. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6490. if test -n "$ac_ct_OTOOL64"; then
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6492. $as_echo "$ac_ct_OTOOL64" >&6; }
  6493. else
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6495. $as_echo "no" >&6; }
  6496. fi
  6497. if test "x$ac_ct_OTOOL64" = x; then
  6498. OTOOL64=":"
  6499. else
  6500. case $cross_compiling:$ac_tool_warned in
  6501. yes:)
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6503. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6504. ac_tool_warned=yes ;;
  6505. esac
  6506. OTOOL64=$ac_ct_OTOOL64
  6507. fi
  6508. else
  6509. OTOOL64="$ac_cv_prog_OTOOL64"
  6510. fi
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6512. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6513. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6514. $as_echo_n "(cached) " >&6
  6515. else
  6516. lt_cv_apple_cc_single_mod=no
  6517. if test -z "$LT_MULTI_MODULE"; then
  6518. # By default we will add the -single_module flag. You can override
  6519. # by either setting the environment variable LT_MULTI_MODULE
  6520. # non-empty at configure time, or by adding -multi_module to the
  6521. # link flags.
  6522. rm -rf libconftest.dylib*
  6523. echo "int foo(void){return 1;}" > conftest.c
  6524. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6525. -dynamiclib -Wl,-single_module conftest.c" >&5
  6526. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6527. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6528. _lt_result=$?
  6529. # If there is a non-empty error log, and "single_module"
  6530. # appears in it, assume the flag caused a linker warning
  6531. if test -s conftest.err && $GREP single_module conftest.err; then
  6532. cat conftest.err >&5
  6533. # Otherwise, if the output was created with a 0 exit code from
  6534. # the compiler, it worked.
  6535. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6536. lt_cv_apple_cc_single_mod=yes
  6537. else
  6538. cat conftest.err >&5
  6539. fi
  6540. rm -rf libconftest.dylib*
  6541. rm -f conftest.*
  6542. fi
  6543. fi
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6545. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6547. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6548. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6549. $as_echo_n "(cached) " >&6
  6550. else
  6551. lt_cv_ld_exported_symbols_list=no
  6552. save_LDFLAGS=$LDFLAGS
  6553. echo "_main" > conftest.sym
  6554. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6556. /* end confdefs.h. */
  6557. int
  6558. main ()
  6559. {
  6560. ;
  6561. return 0;
  6562. }
  6563. _ACEOF
  6564. if ac_fn_c_try_link "$LINENO"; then :
  6565. lt_cv_ld_exported_symbols_list=yes
  6566. else
  6567. lt_cv_ld_exported_symbols_list=no
  6568. fi
  6569. rm -f core conftest.err conftest.$ac_objext \
  6570. conftest$ac_exeext conftest.$ac_ext
  6571. LDFLAGS=$save_LDFLAGS
  6572. fi
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6574. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6576. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6577. if ${lt_cv_ld_force_load+:} false; then :
  6578. $as_echo_n "(cached) " >&6
  6579. else
  6580. lt_cv_ld_force_load=no
  6581. cat > conftest.c << _LT_EOF
  6582. int forced_loaded() { return 2;}
  6583. _LT_EOF
  6584. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6585. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6586. echo "$AR cru libconftest.a conftest.o" >&5
  6587. $AR cru libconftest.a conftest.o 2>&5
  6588. echo "$RANLIB libconftest.a" >&5
  6589. $RANLIB libconftest.a 2>&5
  6590. cat > conftest.c << _LT_EOF
  6591. int main() { return 0;}
  6592. _LT_EOF
  6593. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6594. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6595. _lt_result=$?
  6596. if test -s conftest.err && $GREP force_load conftest.err; then
  6597. cat conftest.err >&5
  6598. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6599. lt_cv_ld_force_load=yes
  6600. else
  6601. cat conftest.err >&5
  6602. fi
  6603. rm -f conftest.err libconftest.a conftest conftest.c
  6604. rm -rf conftest.dSYM
  6605. fi
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6607. $as_echo "$lt_cv_ld_force_load" >&6; }
  6608. case $host_os in
  6609. rhapsody* | darwin1.[012])
  6610. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6611. darwin1.*)
  6612. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6613. darwin*) # darwin 5.x on
  6614. # if running on 10.5 or later, the deployment target defaults
  6615. # to the OS version, if on x86, and 10.4, the deployment
  6616. # target defaults to 10.4. Don't you love it?
  6617. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6618. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6619. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6620. 10.[012][,.]*)
  6621. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6622. 10.*)
  6623. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6624. esac
  6625. ;;
  6626. esac
  6627. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6628. _lt_dar_single_mod='$single_module'
  6629. fi
  6630. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6631. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6632. else
  6633. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6634. fi
  6635. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6636. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6637. else
  6638. _lt_dsymutil=
  6639. fi
  6640. ;;
  6641. esac
  6642. # func_munge_path_list VARIABLE PATH
  6643. # -----------------------------------
  6644. # VARIABLE is name of variable containing _space_ separated list of
  6645. # directories to be munged by the contents of PATH, which is string
  6646. # having a format:
  6647. # "DIR[:DIR]:"
  6648. # string "DIR[ DIR]" will be prepended to VARIABLE
  6649. # ":DIR[:DIR]"
  6650. # string "DIR[ DIR]" will be appended to VARIABLE
  6651. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6652. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6653. # "DIRA[ DIRA]" will be appended to VARIABLE
  6654. # "DIR[:DIR]"
  6655. # VARIABLE will be replaced by "DIR[ DIR]"
  6656. func_munge_path_list ()
  6657. {
  6658. case x$2 in
  6659. x)
  6660. ;;
  6661. *:)
  6662. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6663. ;;
  6664. x:*)
  6665. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6666. ;;
  6667. *::*)
  6668. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6669. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6670. ;;
  6671. *)
  6672. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6673. ;;
  6674. esac
  6675. }
  6676. ac_ext=c
  6677. ac_cpp='$CPP $CPPFLAGS'
  6678. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6679. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6680. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6682. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6683. # On Suns, sometimes $CPP names a directory.
  6684. if test -n "$CPP" && test -d "$CPP"; then
  6685. CPP=
  6686. fi
  6687. if test -z "$CPP"; then
  6688. if ${ac_cv_prog_CPP+:} false; then :
  6689. $as_echo_n "(cached) " >&6
  6690. else
  6691. # Double quotes because CPP needs to be expanded
  6692. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6693. do
  6694. ac_preproc_ok=false
  6695. for ac_c_preproc_warn_flag in '' yes
  6696. do
  6697. # Use a header file that comes with gcc, so configuring glibc
  6698. # with a fresh cross-compiler works.
  6699. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6700. # <limits.h> exists even on freestanding compilers.
  6701. # On the NeXT, cc -E runs the code through the compiler's parser,
  6702. # not just through cpp. "Syntax error" is here to catch this case.
  6703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6704. /* end confdefs.h. */
  6705. #ifdef __STDC__
  6706. # include <limits.h>
  6707. #else
  6708. # include <assert.h>
  6709. #endif
  6710. Syntax error
  6711. _ACEOF
  6712. if ac_fn_c_try_cpp "$LINENO"; then :
  6713. else
  6714. # Broken: fails on valid input.
  6715. continue
  6716. fi
  6717. rm -f conftest.err conftest.i conftest.$ac_ext
  6718. # OK, works on sane cases. Now check whether nonexistent headers
  6719. # can be detected and how.
  6720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6721. /* end confdefs.h. */
  6722. #include <ac_nonexistent.h>
  6723. _ACEOF
  6724. if ac_fn_c_try_cpp "$LINENO"; then :
  6725. # Broken: success on invalid input.
  6726. continue
  6727. else
  6728. # Passes both tests.
  6729. ac_preproc_ok=:
  6730. break
  6731. fi
  6732. rm -f conftest.err conftest.i conftest.$ac_ext
  6733. done
  6734. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6735. rm -f conftest.i conftest.err conftest.$ac_ext
  6736. if $ac_preproc_ok; then :
  6737. break
  6738. fi
  6739. done
  6740. ac_cv_prog_CPP=$CPP
  6741. fi
  6742. CPP=$ac_cv_prog_CPP
  6743. else
  6744. ac_cv_prog_CPP=$CPP
  6745. fi
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6747. $as_echo "$CPP" >&6; }
  6748. ac_preproc_ok=false
  6749. for ac_c_preproc_warn_flag in '' yes
  6750. do
  6751. # Use a header file that comes with gcc, so configuring glibc
  6752. # with a fresh cross-compiler works.
  6753. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6754. # <limits.h> exists even on freestanding compilers.
  6755. # On the NeXT, cc -E runs the code through the compiler's parser,
  6756. # not just through cpp. "Syntax error" is here to catch this case.
  6757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6758. /* end confdefs.h. */
  6759. #ifdef __STDC__
  6760. # include <limits.h>
  6761. #else
  6762. # include <assert.h>
  6763. #endif
  6764. Syntax error
  6765. _ACEOF
  6766. if ac_fn_c_try_cpp "$LINENO"; then :
  6767. else
  6768. # Broken: fails on valid input.
  6769. continue
  6770. fi
  6771. rm -f conftest.err conftest.i conftest.$ac_ext
  6772. # OK, works on sane cases. Now check whether nonexistent headers
  6773. # can be detected and how.
  6774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6775. /* end confdefs.h. */
  6776. #include <ac_nonexistent.h>
  6777. _ACEOF
  6778. if ac_fn_c_try_cpp "$LINENO"; then :
  6779. # Broken: success on invalid input.
  6780. continue
  6781. else
  6782. # Passes both tests.
  6783. ac_preproc_ok=:
  6784. break
  6785. fi
  6786. rm -f conftest.err conftest.i conftest.$ac_ext
  6787. done
  6788. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6789. rm -f conftest.i conftest.err conftest.$ac_ext
  6790. if $ac_preproc_ok; then :
  6791. else
  6792. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6793. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6794. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6795. See \`config.log' for more details" "$LINENO" 5; }
  6796. fi
  6797. ac_ext=c
  6798. ac_cpp='$CPP $CPPFLAGS'
  6799. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6800. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6801. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6803. $as_echo_n "checking for ANSI C header files... " >&6; }
  6804. if ${ac_cv_header_stdc+:} false; then :
  6805. $as_echo_n "(cached) " >&6
  6806. else
  6807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6808. /* end confdefs.h. */
  6809. #include <stdlib.h>
  6810. #include <stdarg.h>
  6811. #include <string.h>
  6812. #include <float.h>
  6813. int
  6814. main ()
  6815. {
  6816. ;
  6817. return 0;
  6818. }
  6819. _ACEOF
  6820. if ac_fn_c_try_compile "$LINENO"; then :
  6821. ac_cv_header_stdc=yes
  6822. else
  6823. ac_cv_header_stdc=no
  6824. fi
  6825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6826. if test $ac_cv_header_stdc = yes; then
  6827. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6829. /* end confdefs.h. */
  6830. #include <string.h>
  6831. _ACEOF
  6832. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6833. $EGREP "memchr" >/dev/null 2>&1; then :
  6834. else
  6835. ac_cv_header_stdc=no
  6836. fi
  6837. rm -f conftest*
  6838. fi
  6839. if test $ac_cv_header_stdc = yes; then
  6840. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6842. /* end confdefs.h. */
  6843. #include <stdlib.h>
  6844. _ACEOF
  6845. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6846. $EGREP "free" >/dev/null 2>&1; then :
  6847. else
  6848. ac_cv_header_stdc=no
  6849. fi
  6850. rm -f conftest*
  6851. fi
  6852. if test $ac_cv_header_stdc = yes; then
  6853. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6854. if test "$cross_compiling" = yes; then :
  6855. :
  6856. else
  6857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6858. /* end confdefs.h. */
  6859. #include <ctype.h>
  6860. #include <stdlib.h>
  6861. #if ((' ' & 0x0FF) == 0x020)
  6862. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6863. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6864. #else
  6865. # define ISLOWER(c) \
  6866. (('a' <= (c) && (c) <= 'i') \
  6867. || ('j' <= (c) && (c) <= 'r') \
  6868. || ('s' <= (c) && (c) <= 'z'))
  6869. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6870. #endif
  6871. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6872. int
  6873. main ()
  6874. {
  6875. int i;
  6876. for (i = 0; i < 256; i++)
  6877. if (XOR (islower (i), ISLOWER (i))
  6878. || toupper (i) != TOUPPER (i))
  6879. return 2;
  6880. return 0;
  6881. }
  6882. _ACEOF
  6883. if ac_fn_c_try_run "$LINENO"; then :
  6884. else
  6885. ac_cv_header_stdc=no
  6886. fi
  6887. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6888. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6889. fi
  6890. fi
  6891. fi
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6893. $as_echo "$ac_cv_header_stdc" >&6; }
  6894. if test $ac_cv_header_stdc = yes; then
  6895. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6896. fi
  6897. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6898. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6899. inttypes.h stdint.h unistd.h
  6900. do :
  6901. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6902. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6903. "
  6904. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6905. cat >>confdefs.h <<_ACEOF
  6906. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6907. _ACEOF
  6908. fi
  6909. done
  6910. for ac_header in dlfcn.h
  6911. do :
  6912. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6913. "
  6914. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6915. cat >>confdefs.h <<_ACEOF
  6916. #define HAVE_DLFCN_H 1
  6917. _ACEOF
  6918. fi
  6919. done
  6920. # Set options
  6921. enable_dlopen=no
  6922. enable_win32_dll=no
  6923. # Check whether --enable-shared was given.
  6924. if test "${enable_shared+set}" = set; then :
  6925. enableval=$enable_shared; p=${PACKAGE-default}
  6926. case $enableval in
  6927. yes) enable_shared=yes ;;
  6928. no) enable_shared=no ;;
  6929. *)
  6930. enable_shared=no
  6931. # Look at the argument we got. We use all the common list separators.
  6932. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6933. for pkg in $enableval; do
  6934. IFS=$lt_save_ifs
  6935. if test "X$pkg" = "X$p"; then
  6936. enable_shared=yes
  6937. fi
  6938. done
  6939. IFS=$lt_save_ifs
  6940. ;;
  6941. esac
  6942. else
  6943. enable_shared=yes
  6944. fi
  6945. # Check whether --enable-static was given.
  6946. if test "${enable_static+set}" = set; then :
  6947. enableval=$enable_static; p=${PACKAGE-default}
  6948. case $enableval in
  6949. yes) enable_static=yes ;;
  6950. no) enable_static=no ;;
  6951. *)
  6952. enable_static=no
  6953. # Look at the argument we got. We use all the common list separators.
  6954. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6955. for pkg in $enableval; do
  6956. IFS=$lt_save_ifs
  6957. if test "X$pkg" = "X$p"; then
  6958. enable_static=yes
  6959. fi
  6960. done
  6961. IFS=$lt_save_ifs
  6962. ;;
  6963. esac
  6964. else
  6965. enable_static=yes
  6966. fi
  6967. # Check whether --with-pic was given.
  6968. if test "${with_pic+set}" = set; then :
  6969. withval=$with_pic; lt_p=${PACKAGE-default}
  6970. case $withval in
  6971. yes|no) pic_mode=$withval ;;
  6972. *)
  6973. pic_mode=default
  6974. # Look at the argument we got. We use all the common list separators.
  6975. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6976. for lt_pkg in $withval; do
  6977. IFS=$lt_save_ifs
  6978. if test "X$lt_pkg" = "X$lt_p"; then
  6979. pic_mode=yes
  6980. fi
  6981. done
  6982. IFS=$lt_save_ifs
  6983. ;;
  6984. esac
  6985. else
  6986. pic_mode=default
  6987. fi
  6988. # Check whether --enable-fast-install was given.
  6989. if test "${enable_fast_install+set}" = set; then :
  6990. enableval=$enable_fast_install; p=${PACKAGE-default}
  6991. case $enableval in
  6992. yes) enable_fast_install=yes ;;
  6993. no) enable_fast_install=no ;;
  6994. *)
  6995. enable_fast_install=no
  6996. # Look at the argument we got. We use all the common list separators.
  6997. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6998. for pkg in $enableval; do
  6999. IFS=$lt_save_ifs
  7000. if test "X$pkg" = "X$p"; then
  7001. enable_fast_install=yes
  7002. fi
  7003. done
  7004. IFS=$lt_save_ifs
  7005. ;;
  7006. esac
  7007. else
  7008. enable_fast_install=yes
  7009. fi
  7010. shared_archive_member_spec=
  7011. case $host,$enable_shared in
  7012. power*-*-aix[5-9]*,yes)
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7014. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7015. # Check whether --with-aix-soname was given.
  7016. if test "${with_aix_soname+set}" = set; then :
  7017. withval=$with_aix_soname; case $withval in
  7018. aix|svr4|both)
  7019. ;;
  7020. *)
  7021. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7022. ;;
  7023. esac
  7024. lt_cv_with_aix_soname=$with_aix_soname
  7025. else
  7026. if ${lt_cv_with_aix_soname+:} false; then :
  7027. $as_echo_n "(cached) " >&6
  7028. else
  7029. lt_cv_with_aix_soname=aix
  7030. fi
  7031. with_aix_soname=$lt_cv_with_aix_soname
  7032. fi
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7034. $as_echo "$with_aix_soname" >&6; }
  7035. if test aix != "$with_aix_soname"; then
  7036. # For the AIX way of multilib, we name the shared archive member
  7037. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7038. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7039. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7040. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7041. if test 64 = "${OBJECT_MODE-32}"; then
  7042. shared_archive_member_spec=shr_64
  7043. else
  7044. shared_archive_member_spec=shr
  7045. fi
  7046. fi
  7047. ;;
  7048. *)
  7049. with_aix_soname=aix
  7050. ;;
  7051. esac
  7052. # This can be used to rebuild libtool when needed
  7053. LIBTOOL_DEPS=$ltmain
  7054. # Always use our own libtool.
  7055. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7056. test -z "$LN_S" && LN_S="ln -s"
  7057. if test -n "${ZSH_VERSION+set}"; then
  7058. setopt NO_GLOB_SUBST
  7059. fi
  7060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7061. $as_echo_n "checking for objdir... " >&6; }
  7062. if ${lt_cv_objdir+:} false; then :
  7063. $as_echo_n "(cached) " >&6
  7064. else
  7065. rm -f .libs 2>/dev/null
  7066. mkdir .libs 2>/dev/null
  7067. if test -d .libs; then
  7068. lt_cv_objdir=.libs
  7069. else
  7070. # MS-DOS does not allow filenames that begin with a dot.
  7071. lt_cv_objdir=_libs
  7072. fi
  7073. rmdir .libs 2>/dev/null
  7074. fi
  7075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7076. $as_echo "$lt_cv_objdir" >&6; }
  7077. objdir=$lt_cv_objdir
  7078. cat >>confdefs.h <<_ACEOF
  7079. #define LT_OBJDIR "$lt_cv_objdir/"
  7080. _ACEOF
  7081. case $host_os in
  7082. aix3*)
  7083. # AIX sometimes has problems with the GCC collect2 program. For some
  7084. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7085. # vanish in a puff of smoke.
  7086. if test set != "${COLLECT_NAMES+set}"; then
  7087. COLLECT_NAMES=
  7088. export COLLECT_NAMES
  7089. fi
  7090. ;;
  7091. esac
  7092. # Global variables:
  7093. ofile=libtool
  7094. can_build_shared=yes
  7095. # All known linkers require a '.a' archive for static linking (except MSVC,
  7096. # which needs '.lib').
  7097. libext=a
  7098. with_gnu_ld=$lt_cv_prog_gnu_ld
  7099. old_CC=$CC
  7100. old_CFLAGS=$CFLAGS
  7101. # Set sane defaults for various variables
  7102. test -z "$CC" && CC=cc
  7103. test -z "$LTCC" && LTCC=$CC
  7104. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7105. test -z "$LD" && LD=ld
  7106. test -z "$ac_objext" && ac_objext=o
  7107. func_cc_basename $compiler
  7108. cc_basename=$func_cc_basename_result
  7109. # Only perform the check for file, if the check method requires it
  7110. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7111. case $deplibs_check_method in
  7112. file_magic*)
  7113. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7115. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7116. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7117. $as_echo_n "(cached) " >&6
  7118. else
  7119. case $MAGIC_CMD in
  7120. [\\/*] | ?:[\\/]*)
  7121. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7122. ;;
  7123. *)
  7124. lt_save_MAGIC_CMD=$MAGIC_CMD
  7125. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7126. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7127. for ac_dir in $ac_dummy; do
  7128. IFS=$lt_save_ifs
  7129. test -z "$ac_dir" && ac_dir=.
  7130. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7131. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7132. if test -n "$file_magic_test_file"; then
  7133. case $deplibs_check_method in
  7134. "file_magic "*)
  7135. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7136. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7137. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7138. $EGREP "$file_magic_regex" > /dev/null; then
  7139. :
  7140. else
  7141. cat <<_LT_EOF 1>&2
  7142. *** Warning: the command libtool uses to detect shared libraries,
  7143. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7144. *** The result is that libtool may fail to recognize shared libraries
  7145. *** as such. This will affect the creation of libtool libraries that
  7146. *** depend on shared libraries, but programs linked with such libtool
  7147. *** libraries will work regardless of this problem. Nevertheless, you
  7148. *** may want to report the problem to your system manager and/or to
  7149. *** bug-libtool@gnu.org
  7150. _LT_EOF
  7151. fi ;;
  7152. esac
  7153. fi
  7154. break
  7155. fi
  7156. done
  7157. IFS=$lt_save_ifs
  7158. MAGIC_CMD=$lt_save_MAGIC_CMD
  7159. ;;
  7160. esac
  7161. fi
  7162. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7163. if test -n "$MAGIC_CMD"; then
  7164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7165. $as_echo "$MAGIC_CMD" >&6; }
  7166. else
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7168. $as_echo "no" >&6; }
  7169. fi
  7170. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7171. if test -n "$ac_tool_prefix"; then
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7173. $as_echo_n "checking for file... " >&6; }
  7174. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7175. $as_echo_n "(cached) " >&6
  7176. else
  7177. case $MAGIC_CMD in
  7178. [\\/*] | ?:[\\/]*)
  7179. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7180. ;;
  7181. *)
  7182. lt_save_MAGIC_CMD=$MAGIC_CMD
  7183. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7184. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7185. for ac_dir in $ac_dummy; do
  7186. IFS=$lt_save_ifs
  7187. test -z "$ac_dir" && ac_dir=.
  7188. if test -f "$ac_dir/file"; then
  7189. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7190. if test -n "$file_magic_test_file"; then
  7191. case $deplibs_check_method in
  7192. "file_magic "*)
  7193. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7194. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7195. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7196. $EGREP "$file_magic_regex" > /dev/null; then
  7197. :
  7198. else
  7199. cat <<_LT_EOF 1>&2
  7200. *** Warning: the command libtool uses to detect shared libraries,
  7201. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7202. *** The result is that libtool may fail to recognize shared libraries
  7203. *** as such. This will affect the creation of libtool libraries that
  7204. *** depend on shared libraries, but programs linked with such libtool
  7205. *** libraries will work regardless of this problem. Nevertheless, you
  7206. *** may want to report the problem to your system manager and/or to
  7207. *** bug-libtool@gnu.org
  7208. _LT_EOF
  7209. fi ;;
  7210. esac
  7211. fi
  7212. break
  7213. fi
  7214. done
  7215. IFS=$lt_save_ifs
  7216. MAGIC_CMD=$lt_save_MAGIC_CMD
  7217. ;;
  7218. esac
  7219. fi
  7220. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7221. if test -n "$MAGIC_CMD"; then
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7223. $as_echo "$MAGIC_CMD" >&6; }
  7224. else
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7226. $as_echo "no" >&6; }
  7227. fi
  7228. else
  7229. MAGIC_CMD=:
  7230. fi
  7231. fi
  7232. fi
  7233. ;;
  7234. esac
  7235. # Use C for the default configuration in the libtool script
  7236. lt_save_CC=$CC
  7237. ac_ext=c
  7238. ac_cpp='$CPP $CPPFLAGS'
  7239. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7240. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7241. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7242. # Source file extension for C test sources.
  7243. ac_ext=c
  7244. # Object file extension for compiled C test sources.
  7245. objext=o
  7246. objext=$objext
  7247. # Code to be used in simple compile tests
  7248. lt_simple_compile_test_code="int some_variable = 0;"
  7249. # Code to be used in simple link tests
  7250. lt_simple_link_test_code='int main(){return(0);}'
  7251. # If no C compiler was specified, use CC.
  7252. LTCC=${LTCC-"$CC"}
  7253. # If no C compiler flags were specified, use CFLAGS.
  7254. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7255. # Allow CC to be a program name with arguments.
  7256. compiler=$CC
  7257. # Save the default compiler, since it gets overwritten when the other
  7258. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7259. compiler_DEFAULT=$CC
  7260. # save warnings/boilerplate of simple test code
  7261. ac_outfile=conftest.$ac_objext
  7262. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7263. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7264. _lt_compiler_boilerplate=`cat conftest.err`
  7265. $RM conftest*
  7266. ac_outfile=conftest.$ac_objext
  7267. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7268. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7269. _lt_linker_boilerplate=`cat conftest.err`
  7270. $RM -r conftest*
  7271. if test -n "$compiler"; then
  7272. lt_prog_compiler_no_builtin_flag=
  7273. if test yes = "$GCC"; then
  7274. case $cc_basename in
  7275. nvcc*)
  7276. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7277. *)
  7278. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7279. esac
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7281. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7282. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7283. $as_echo_n "(cached) " >&6
  7284. else
  7285. lt_cv_prog_compiler_rtti_exceptions=no
  7286. ac_outfile=conftest.$ac_objext
  7287. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7288. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7289. # Insert the option either (1) after the last *FLAGS variable, or
  7290. # (2) before a word containing "conftest.", or (3) at the end.
  7291. # Note that $ac_compile itself does not contain backslashes and begins
  7292. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7293. # The option is referenced via a variable to avoid confusing sed.
  7294. lt_compile=`echo "$ac_compile" | $SED \
  7295. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7296. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7297. -e 's:$: $lt_compiler_flag:'`
  7298. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7299. (eval "$lt_compile" 2>conftest.err)
  7300. ac_status=$?
  7301. cat conftest.err >&5
  7302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7303. if (exit $ac_status) && test -s "$ac_outfile"; then
  7304. # The compiler can only warn and ignore the option if not recognized
  7305. # So say no if there are warnings other than the usual output.
  7306. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7307. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7308. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7309. lt_cv_prog_compiler_rtti_exceptions=yes
  7310. fi
  7311. fi
  7312. $RM conftest*
  7313. fi
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7315. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7316. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7317. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7318. else
  7319. :
  7320. fi
  7321. fi
  7322. lt_prog_compiler_wl=
  7323. lt_prog_compiler_pic=
  7324. lt_prog_compiler_static=
  7325. if test yes = "$GCC"; then
  7326. lt_prog_compiler_wl='-Wl,'
  7327. lt_prog_compiler_static='-static'
  7328. case $host_os in
  7329. aix*)
  7330. # All AIX code is PIC.
  7331. if test ia64 = "$host_cpu"; then
  7332. # AIX 5 now supports IA64 processor
  7333. lt_prog_compiler_static='-Bstatic'
  7334. fi
  7335. lt_prog_compiler_pic='-fPIC'
  7336. ;;
  7337. amigaos*)
  7338. case $host_cpu in
  7339. powerpc)
  7340. # see comment about AmigaOS4 .so support
  7341. lt_prog_compiler_pic='-fPIC'
  7342. ;;
  7343. m68k)
  7344. # FIXME: we need at least 68020 code to build shared libraries, but
  7345. # adding the '-m68020' flag to GCC prevents building anything better,
  7346. # like '-m68040'.
  7347. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7348. ;;
  7349. esac
  7350. ;;
  7351. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7352. # PIC is the default for these OSes.
  7353. ;;
  7354. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7355. # This hack is so that the source file can tell whether it is being
  7356. # built for inclusion in a dll (and should export symbols for example).
  7357. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7358. # (--disable-auto-import) libraries
  7359. lt_prog_compiler_pic='-DDLL_EXPORT'
  7360. case $host_os in
  7361. os2*)
  7362. lt_prog_compiler_static='$wl-static'
  7363. ;;
  7364. esac
  7365. ;;
  7366. darwin* | rhapsody*)
  7367. # PIC is the default on this platform
  7368. # Common symbols not allowed in MH_DYLIB files
  7369. lt_prog_compiler_pic='-fno-common'
  7370. ;;
  7371. haiku*)
  7372. # PIC is the default for Haiku.
  7373. # The "-static" flag exists, but is broken.
  7374. lt_prog_compiler_static=
  7375. ;;
  7376. hpux*)
  7377. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7378. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7379. # sets the default TLS model and affects inlining.
  7380. case $host_cpu in
  7381. hppa*64*)
  7382. # +Z the default
  7383. ;;
  7384. *)
  7385. lt_prog_compiler_pic='-fPIC'
  7386. ;;
  7387. esac
  7388. ;;
  7389. interix[3-9]*)
  7390. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7391. # Instead, we relocate shared libraries at runtime.
  7392. ;;
  7393. msdosdjgpp*)
  7394. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7395. # on systems that don't support them.
  7396. lt_prog_compiler_can_build_shared=no
  7397. enable_shared=no
  7398. ;;
  7399. *nto* | *qnx*)
  7400. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7401. # it will coredump.
  7402. lt_prog_compiler_pic='-fPIC -shared'
  7403. ;;
  7404. sysv4*MP*)
  7405. if test -d /usr/nec; then
  7406. lt_prog_compiler_pic=-Kconform_pic
  7407. fi
  7408. ;;
  7409. *)
  7410. lt_prog_compiler_pic='-fPIC'
  7411. ;;
  7412. esac
  7413. case $cc_basename in
  7414. nvcc*) # Cuda Compiler Driver 2.2
  7415. lt_prog_compiler_wl='-Xlinker '
  7416. if test -n "$lt_prog_compiler_pic"; then
  7417. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7418. fi
  7419. ;;
  7420. esac
  7421. else
  7422. # PORTME Check for flag to pass linker flags through the system compiler.
  7423. case $host_os in
  7424. aix*)
  7425. lt_prog_compiler_wl='-Wl,'
  7426. if test ia64 = "$host_cpu"; then
  7427. # AIX 5 now supports IA64 processor
  7428. lt_prog_compiler_static='-Bstatic'
  7429. else
  7430. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7431. fi
  7432. ;;
  7433. darwin* | rhapsody*)
  7434. # PIC is the default on this platform
  7435. # Common symbols not allowed in MH_DYLIB files
  7436. lt_prog_compiler_pic='-fno-common'
  7437. case $cc_basename in
  7438. nagfor*)
  7439. # NAG Fortran compiler
  7440. lt_prog_compiler_wl='-Wl,-Wl,,'
  7441. lt_prog_compiler_pic='-PIC'
  7442. lt_prog_compiler_static='-Bstatic'
  7443. ;;
  7444. esac
  7445. ;;
  7446. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7447. # This hack is so that the source file can tell whether it is being
  7448. # built for inclusion in a dll (and should export symbols for example).
  7449. lt_prog_compiler_pic='-DDLL_EXPORT'
  7450. case $host_os in
  7451. os2*)
  7452. lt_prog_compiler_static='$wl-static'
  7453. ;;
  7454. esac
  7455. ;;
  7456. hpux9* | hpux10* | hpux11*)
  7457. lt_prog_compiler_wl='-Wl,'
  7458. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7459. # not for PA HP-UX.
  7460. case $host_cpu in
  7461. hppa*64*|ia64*)
  7462. # +Z the default
  7463. ;;
  7464. *)
  7465. lt_prog_compiler_pic='+Z'
  7466. ;;
  7467. esac
  7468. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7469. lt_prog_compiler_static='$wl-a ${wl}archive'
  7470. ;;
  7471. irix5* | irix6* | nonstopux*)
  7472. lt_prog_compiler_wl='-Wl,'
  7473. # PIC (with -KPIC) is the default.
  7474. lt_prog_compiler_static='-non_shared'
  7475. ;;
  7476. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7477. case $cc_basename in
  7478. # old Intel for x86_64, which still supported -KPIC.
  7479. ecc*)
  7480. lt_prog_compiler_wl='-Wl,'
  7481. lt_prog_compiler_pic='-KPIC'
  7482. lt_prog_compiler_static='-static'
  7483. ;;
  7484. # icc used to be incompatible with GCC.
  7485. # ICC 10 doesn't accept -KPIC any more.
  7486. icc* | ifort*)
  7487. lt_prog_compiler_wl='-Wl,'
  7488. lt_prog_compiler_pic='-fPIC'
  7489. lt_prog_compiler_static='-static'
  7490. ;;
  7491. # Lahey Fortran 8.1.
  7492. lf95*)
  7493. lt_prog_compiler_wl='-Wl,'
  7494. lt_prog_compiler_pic='--shared'
  7495. lt_prog_compiler_static='--static'
  7496. ;;
  7497. nagfor*)
  7498. # NAG Fortran compiler
  7499. lt_prog_compiler_wl='-Wl,-Wl,,'
  7500. lt_prog_compiler_pic='-PIC'
  7501. lt_prog_compiler_static='-Bstatic'
  7502. ;;
  7503. tcc*)
  7504. # Fabrice Bellard et al's Tiny C Compiler
  7505. lt_prog_compiler_wl='-Wl,'
  7506. lt_prog_compiler_pic='-fPIC'
  7507. lt_prog_compiler_static='-static'
  7508. ;;
  7509. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7510. # Portland Group compilers (*not* the Pentium gcc compiler,
  7511. # which looks to be a dead project)
  7512. lt_prog_compiler_wl='-Wl,'
  7513. lt_prog_compiler_pic='-fpic'
  7514. lt_prog_compiler_static='-Bstatic'
  7515. ;;
  7516. ccc*)
  7517. lt_prog_compiler_wl='-Wl,'
  7518. # All Alpha code is PIC.
  7519. lt_prog_compiler_static='-non_shared'
  7520. ;;
  7521. xl* | bgxl* | bgf* | mpixl*)
  7522. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7523. lt_prog_compiler_wl='-Wl,'
  7524. lt_prog_compiler_pic='-qpic'
  7525. lt_prog_compiler_static='-qstaticlink'
  7526. ;;
  7527. *)
  7528. case `$CC -V 2>&1 | sed 5q` in
  7529. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7530. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7531. lt_prog_compiler_pic='-KPIC'
  7532. lt_prog_compiler_static='-Bstatic'
  7533. lt_prog_compiler_wl=''
  7534. ;;
  7535. *Sun\ F* | *Sun*Fortran*)
  7536. lt_prog_compiler_pic='-KPIC'
  7537. lt_prog_compiler_static='-Bstatic'
  7538. lt_prog_compiler_wl='-Qoption ld '
  7539. ;;
  7540. *Sun\ C*)
  7541. # Sun C 5.9
  7542. lt_prog_compiler_pic='-KPIC'
  7543. lt_prog_compiler_static='-Bstatic'
  7544. lt_prog_compiler_wl='-Wl,'
  7545. ;;
  7546. *Intel*\ [CF]*Compiler*)
  7547. lt_prog_compiler_wl='-Wl,'
  7548. lt_prog_compiler_pic='-fPIC'
  7549. lt_prog_compiler_static='-static'
  7550. ;;
  7551. *Portland\ Group*)
  7552. lt_prog_compiler_wl='-Wl,'
  7553. lt_prog_compiler_pic='-fpic'
  7554. lt_prog_compiler_static='-Bstatic'
  7555. ;;
  7556. esac
  7557. ;;
  7558. esac
  7559. ;;
  7560. newsos6)
  7561. lt_prog_compiler_pic='-KPIC'
  7562. lt_prog_compiler_static='-Bstatic'
  7563. ;;
  7564. *nto* | *qnx*)
  7565. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7566. # it will coredump.
  7567. lt_prog_compiler_pic='-fPIC -shared'
  7568. ;;
  7569. osf3* | osf4* | osf5*)
  7570. lt_prog_compiler_wl='-Wl,'
  7571. # All OSF/1 code is PIC.
  7572. lt_prog_compiler_static='-non_shared'
  7573. ;;
  7574. rdos*)
  7575. lt_prog_compiler_static='-non_shared'
  7576. ;;
  7577. solaris*)
  7578. lt_prog_compiler_pic='-KPIC'
  7579. lt_prog_compiler_static='-Bstatic'
  7580. case $cc_basename in
  7581. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7582. lt_prog_compiler_wl='-Qoption ld ';;
  7583. *)
  7584. lt_prog_compiler_wl='-Wl,';;
  7585. esac
  7586. ;;
  7587. sunos4*)
  7588. lt_prog_compiler_wl='-Qoption ld '
  7589. lt_prog_compiler_pic='-PIC'
  7590. lt_prog_compiler_static='-Bstatic'
  7591. ;;
  7592. sysv4 | sysv4.2uw2* | sysv4.3*)
  7593. lt_prog_compiler_wl='-Wl,'
  7594. lt_prog_compiler_pic='-KPIC'
  7595. lt_prog_compiler_static='-Bstatic'
  7596. ;;
  7597. sysv4*MP*)
  7598. if test -d /usr/nec; then
  7599. lt_prog_compiler_pic='-Kconform_pic'
  7600. lt_prog_compiler_static='-Bstatic'
  7601. fi
  7602. ;;
  7603. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7604. lt_prog_compiler_wl='-Wl,'
  7605. lt_prog_compiler_pic='-KPIC'
  7606. lt_prog_compiler_static='-Bstatic'
  7607. ;;
  7608. unicos*)
  7609. lt_prog_compiler_wl='-Wl,'
  7610. lt_prog_compiler_can_build_shared=no
  7611. ;;
  7612. uts4*)
  7613. lt_prog_compiler_pic='-pic'
  7614. lt_prog_compiler_static='-Bstatic'
  7615. ;;
  7616. *)
  7617. lt_prog_compiler_can_build_shared=no
  7618. ;;
  7619. esac
  7620. fi
  7621. case $host_os in
  7622. # For platforms that do not support PIC, -DPIC is meaningless:
  7623. *djgpp*)
  7624. lt_prog_compiler_pic=
  7625. ;;
  7626. *)
  7627. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7628. ;;
  7629. esac
  7630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7631. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7632. if ${lt_cv_prog_compiler_pic+:} false; then :
  7633. $as_echo_n "(cached) " >&6
  7634. else
  7635. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7636. fi
  7637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7638. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7639. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7640. #
  7641. # Check to make sure the PIC flag actually works.
  7642. #
  7643. if test -n "$lt_prog_compiler_pic"; then
  7644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7645. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7646. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7647. $as_echo_n "(cached) " >&6
  7648. else
  7649. lt_cv_prog_compiler_pic_works=no
  7650. ac_outfile=conftest.$ac_objext
  7651. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7652. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7653. # Insert the option either (1) after the last *FLAGS variable, or
  7654. # (2) before a word containing "conftest.", or (3) at the end.
  7655. # Note that $ac_compile itself does not contain backslashes and begins
  7656. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7657. # The option is referenced via a variable to avoid confusing sed.
  7658. lt_compile=`echo "$ac_compile" | $SED \
  7659. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7660. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7661. -e 's:$: $lt_compiler_flag:'`
  7662. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7663. (eval "$lt_compile" 2>conftest.err)
  7664. ac_status=$?
  7665. cat conftest.err >&5
  7666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7667. if (exit $ac_status) && test -s "$ac_outfile"; then
  7668. # The compiler can only warn and ignore the option if not recognized
  7669. # So say no if there are warnings other than the usual output.
  7670. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7671. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7672. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7673. lt_cv_prog_compiler_pic_works=yes
  7674. fi
  7675. fi
  7676. $RM conftest*
  7677. fi
  7678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7679. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7680. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7681. case $lt_prog_compiler_pic in
  7682. "" | " "*) ;;
  7683. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7684. esac
  7685. else
  7686. lt_prog_compiler_pic=
  7687. lt_prog_compiler_can_build_shared=no
  7688. fi
  7689. fi
  7690. #
  7691. # Check to make sure the static flag actually works.
  7692. #
  7693. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7695. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7696. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7697. $as_echo_n "(cached) " >&6
  7698. else
  7699. lt_cv_prog_compiler_static_works=no
  7700. save_LDFLAGS=$LDFLAGS
  7701. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7702. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7703. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7704. # The linker can only warn and ignore the option if not recognized
  7705. # So say no if there are warnings
  7706. if test -s conftest.err; then
  7707. # Append any errors to the config.log.
  7708. cat conftest.err 1>&5
  7709. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7710. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7711. if diff conftest.exp conftest.er2 >/dev/null; then
  7712. lt_cv_prog_compiler_static_works=yes
  7713. fi
  7714. else
  7715. lt_cv_prog_compiler_static_works=yes
  7716. fi
  7717. fi
  7718. $RM -r conftest*
  7719. LDFLAGS=$save_LDFLAGS
  7720. fi
  7721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7722. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7723. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7724. :
  7725. else
  7726. lt_prog_compiler_static=
  7727. fi
  7728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7729. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7730. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7731. $as_echo_n "(cached) " >&6
  7732. else
  7733. lt_cv_prog_compiler_c_o=no
  7734. $RM -r conftest 2>/dev/null
  7735. mkdir conftest
  7736. cd conftest
  7737. mkdir out
  7738. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7739. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7740. # Insert the option either (1) after the last *FLAGS variable, or
  7741. # (2) before a word containing "conftest.", or (3) at the end.
  7742. # Note that $ac_compile itself does not contain backslashes and begins
  7743. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7744. lt_compile=`echo "$ac_compile" | $SED \
  7745. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7746. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7747. -e 's:$: $lt_compiler_flag:'`
  7748. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7749. (eval "$lt_compile" 2>out/conftest.err)
  7750. ac_status=$?
  7751. cat out/conftest.err >&5
  7752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7753. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7754. then
  7755. # The compiler can only warn and ignore the option if not recognized
  7756. # So say no if there are warnings
  7757. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7758. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7759. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7760. lt_cv_prog_compiler_c_o=yes
  7761. fi
  7762. fi
  7763. chmod u+w . 2>&5
  7764. $RM conftest*
  7765. # SGI C++ compiler will create directory out/ii_files/ for
  7766. # template instantiation
  7767. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7768. $RM out/* && rmdir out
  7769. cd ..
  7770. $RM -r conftest
  7771. $RM conftest*
  7772. fi
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7774. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7776. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7777. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7778. $as_echo_n "(cached) " >&6
  7779. else
  7780. lt_cv_prog_compiler_c_o=no
  7781. $RM -r conftest 2>/dev/null
  7782. mkdir conftest
  7783. cd conftest
  7784. mkdir out
  7785. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7786. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7787. # Insert the option either (1) after the last *FLAGS variable, or
  7788. # (2) before a word containing "conftest.", or (3) at the end.
  7789. # Note that $ac_compile itself does not contain backslashes and begins
  7790. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7791. lt_compile=`echo "$ac_compile" | $SED \
  7792. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7793. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7794. -e 's:$: $lt_compiler_flag:'`
  7795. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7796. (eval "$lt_compile" 2>out/conftest.err)
  7797. ac_status=$?
  7798. cat out/conftest.err >&5
  7799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7800. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7801. then
  7802. # The compiler can only warn and ignore the option if not recognized
  7803. # So say no if there are warnings
  7804. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7805. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7806. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7807. lt_cv_prog_compiler_c_o=yes
  7808. fi
  7809. fi
  7810. chmod u+w . 2>&5
  7811. $RM conftest*
  7812. # SGI C++ compiler will create directory out/ii_files/ for
  7813. # template instantiation
  7814. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7815. $RM out/* && rmdir out
  7816. cd ..
  7817. $RM -r conftest
  7818. $RM conftest*
  7819. fi
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7821. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7822. hard_links=nottested
  7823. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7824. # do not overwrite the value of need_locks provided by the user
  7825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7826. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7827. hard_links=yes
  7828. $RM conftest*
  7829. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7830. touch conftest.a
  7831. ln conftest.a conftest.b 2>&5 || hard_links=no
  7832. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7834. $as_echo "$hard_links" >&6; }
  7835. if test no = "$hard_links"; then
  7836. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7837. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7838. need_locks=warn
  7839. fi
  7840. else
  7841. need_locks=no
  7842. fi
  7843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7844. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7845. runpath_var=
  7846. allow_undefined_flag=
  7847. always_export_symbols=no
  7848. archive_cmds=
  7849. archive_expsym_cmds=
  7850. compiler_needs_object=no
  7851. enable_shared_with_static_runtimes=no
  7852. export_dynamic_flag_spec=
  7853. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7854. hardcode_automatic=no
  7855. hardcode_direct=no
  7856. hardcode_direct_absolute=no
  7857. hardcode_libdir_flag_spec=
  7858. hardcode_libdir_separator=
  7859. hardcode_minus_L=no
  7860. hardcode_shlibpath_var=unsupported
  7861. inherit_rpath=no
  7862. link_all_deplibs=unknown
  7863. module_cmds=
  7864. module_expsym_cmds=
  7865. old_archive_from_new_cmds=
  7866. old_archive_from_expsyms_cmds=
  7867. thread_safe_flag_spec=
  7868. whole_archive_flag_spec=
  7869. # include_expsyms should be a list of space-separated symbols to be *always*
  7870. # included in the symbol list
  7871. include_expsyms=
  7872. # exclude_expsyms can be an extended regexp of symbols to exclude
  7873. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7874. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7875. # as well as any symbol that contains 'd'.
  7876. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7877. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7878. # platforms (ab)use it in PIC code, but their linkers get confused if
  7879. # the symbol is explicitly referenced. Since portable code cannot
  7880. # rely on this symbol name, it's probably fine to never include it in
  7881. # preloaded symbol tables.
  7882. # Exclude shared library initialization/finalization symbols.
  7883. extract_expsyms_cmds=
  7884. case $host_os in
  7885. cygwin* | mingw* | pw32* | cegcc*)
  7886. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7887. # When not using gcc, we currently assume that we are using
  7888. # Microsoft Visual C++.
  7889. if test yes != "$GCC"; then
  7890. with_gnu_ld=no
  7891. fi
  7892. ;;
  7893. interix*)
  7894. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7895. with_gnu_ld=yes
  7896. ;;
  7897. openbsd* | bitrig*)
  7898. with_gnu_ld=no
  7899. ;;
  7900. esac
  7901. ld_shlibs=yes
  7902. # On some targets, GNU ld is compatible enough with the native linker
  7903. # that we're better off using the native interface for both.
  7904. lt_use_gnu_ld_interface=no
  7905. if test yes = "$with_gnu_ld"; then
  7906. case $host_os in
  7907. aix*)
  7908. # The AIX port of GNU ld has always aspired to compatibility
  7909. # with the native linker. However, as the warning in the GNU ld
  7910. # block says, versions before 2.19.5* couldn't really create working
  7911. # shared libraries, regardless of the interface used.
  7912. case `$LD -v 2>&1` in
  7913. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7914. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7915. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7916. *)
  7917. lt_use_gnu_ld_interface=yes
  7918. ;;
  7919. esac
  7920. ;;
  7921. *)
  7922. lt_use_gnu_ld_interface=yes
  7923. ;;
  7924. esac
  7925. fi
  7926. if test yes = "$lt_use_gnu_ld_interface"; then
  7927. # If archive_cmds runs LD, not CC, wlarc should be empty
  7928. wlarc='$wl'
  7929. # Set some defaults for GNU ld with shared library support. These
  7930. # are reset later if shared libraries are not supported. Putting them
  7931. # here allows them to be overridden if necessary.
  7932. runpath_var=LD_RUN_PATH
  7933. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7934. export_dynamic_flag_spec='$wl--export-dynamic'
  7935. # ancient GNU ld didn't support --whole-archive et. al.
  7936. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7937. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7938. else
  7939. whole_archive_flag_spec=
  7940. fi
  7941. supports_anon_versioning=no
  7942. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  7943. *GNU\ gold*) supports_anon_versioning=yes ;;
  7944. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7945. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7946. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7947. *\ 2.11.*) ;; # other 2.11 versions
  7948. *) supports_anon_versioning=yes ;;
  7949. esac
  7950. # See if GNU ld supports shared libraries.
  7951. case $host_os in
  7952. aix[3-9]*)
  7953. # On AIX/PPC, the GNU linker is very broken
  7954. if test ia64 != "$host_cpu"; then
  7955. ld_shlibs=no
  7956. cat <<_LT_EOF 1>&2
  7957. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7958. *** to be unable to reliably create shared libraries on AIX.
  7959. *** Therefore, libtool is disabling shared libraries support. If you
  7960. *** really care for shared libraries, you may want to install binutils
  7961. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7962. *** You will then need to restart the configuration process.
  7963. _LT_EOF
  7964. fi
  7965. ;;
  7966. amigaos*)
  7967. case $host_cpu in
  7968. powerpc)
  7969. # see comment about AmigaOS4 .so support
  7970. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7971. archive_expsym_cmds=''
  7972. ;;
  7973. m68k)
  7974. 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)'
  7975. hardcode_libdir_flag_spec='-L$libdir'
  7976. hardcode_minus_L=yes
  7977. ;;
  7978. esac
  7979. ;;
  7980. beos*)
  7981. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7982. allow_undefined_flag=unsupported
  7983. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7984. # support --undefined. This deserves some investigation. FIXME
  7985. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7986. else
  7987. ld_shlibs=no
  7988. fi
  7989. ;;
  7990. cygwin* | mingw* | pw32* | cegcc*)
  7991. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7992. # as there is no search path for DLLs.
  7993. hardcode_libdir_flag_spec='-L$libdir'
  7994. export_dynamic_flag_spec='$wl--export-all-symbols'
  7995. allow_undefined_flag=unsupported
  7996. always_export_symbols=no
  7997. enable_shared_with_static_runtimes=yes
  7998. 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'
  7999. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8000. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8001. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8002. # If the export-symbols file already is a .def file, use it as
  8003. # is; otherwise, prepend EXPORTS...
  8004. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8005. cp $export_symbols $output_objdir/$soname.def;
  8006. else
  8007. echo EXPORTS > $output_objdir/$soname.def;
  8008. cat $export_symbols >> $output_objdir/$soname.def;
  8009. fi~
  8010. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8011. else
  8012. ld_shlibs=no
  8013. fi
  8014. ;;
  8015. haiku*)
  8016. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8017. link_all_deplibs=yes
  8018. ;;
  8019. os2*)
  8020. hardcode_libdir_flag_spec='-L$libdir'
  8021. hardcode_minus_L=yes
  8022. allow_undefined_flag=unsupported
  8023. shrext_cmds=.dll
  8024. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8025. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8026. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8027. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8028. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8029. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8030. emximp -o $lib $output_objdir/$libname.def'
  8031. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8032. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8033. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8034. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8035. prefix_cmds="$SED"~
  8036. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8037. prefix_cmds="$prefix_cmds -e 1d";
  8038. fi~
  8039. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8040. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8041. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8042. emximp -o $lib $output_objdir/$libname.def'
  8043. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8044. enable_shared_with_static_runtimes=yes
  8045. ;;
  8046. interix[3-9]*)
  8047. hardcode_direct=no
  8048. hardcode_shlibpath_var=no
  8049. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8050. export_dynamic_flag_spec='$wl-E'
  8051. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8052. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8053. # default) and relocated if they conflict, which is a slow very memory
  8054. # consuming and fragmenting process. To avoid this, we pick a random,
  8055. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8056. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8057. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8058. 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'
  8059. ;;
  8060. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8061. tmp_diet=no
  8062. if test linux-dietlibc = "$host_os"; then
  8063. case $cc_basename in
  8064. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8065. esac
  8066. fi
  8067. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8068. && test no = "$tmp_diet"
  8069. then
  8070. tmp_addflag=' $pic_flag'
  8071. tmp_sharedflag='-shared'
  8072. case $cc_basename,$host_cpu in
  8073. pgcc*) # Portland Group C compiler
  8074. 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'
  8075. tmp_addflag=' $pic_flag'
  8076. ;;
  8077. pgf77* | pgf90* | pgf95* | pgfortran*)
  8078. # Portland Group f77 and f90 compilers
  8079. 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'
  8080. tmp_addflag=' $pic_flag -Mnomain' ;;
  8081. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8082. tmp_addflag=' -i_dynamic' ;;
  8083. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8084. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8085. ifc* | ifort*) # Intel Fortran compiler
  8086. tmp_addflag=' -nofor_main' ;;
  8087. lf95*) # Lahey Fortran 8.1
  8088. whole_archive_flag_spec=
  8089. tmp_sharedflag='--shared' ;;
  8090. nagfor*) # NAGFOR 5.3
  8091. tmp_sharedflag='-Wl,-shared' ;;
  8092. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8093. tmp_sharedflag='-qmkshrobj'
  8094. tmp_addflag= ;;
  8095. nvcc*) # Cuda Compiler Driver 2.2
  8096. 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'
  8097. compiler_needs_object=yes
  8098. ;;
  8099. esac
  8100. case `$CC -V 2>&1 | sed 5q` in
  8101. *Sun\ C*) # Sun C 5.9
  8102. 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'
  8103. compiler_needs_object=yes
  8104. tmp_sharedflag='-G' ;;
  8105. *Sun\ F*) # Sun Fortran 8.3
  8106. tmp_sharedflag='-G' ;;
  8107. esac
  8108. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8109. if test yes = "$supports_anon_versioning"; then
  8110. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8111. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8112. echo "local: *; };" >> $output_objdir/$libname.ver~
  8113. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8114. fi
  8115. case $cc_basename in
  8116. tcc*)
  8117. export_dynamic_flag_spec='-rdynamic'
  8118. ;;
  8119. xlf* | bgf* | bgxlf* | mpixlf*)
  8120. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8121. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8122. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8123. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8124. if test yes = "$supports_anon_versioning"; then
  8125. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8126. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8127. echo "local: *; };" >> $output_objdir/$libname.ver~
  8128. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8129. fi
  8130. ;;
  8131. esac
  8132. else
  8133. ld_shlibs=no
  8134. fi
  8135. ;;
  8136. netbsd*)
  8137. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8138. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8139. wlarc=
  8140. else
  8141. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8142. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8143. fi
  8144. ;;
  8145. solaris*)
  8146. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8147. ld_shlibs=no
  8148. cat <<_LT_EOF 1>&2
  8149. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8150. *** create shared libraries on Solaris systems. Therefore, libtool
  8151. *** is disabling shared libraries support. We urge you to upgrade GNU
  8152. *** binutils to release 2.9.1 or newer. Another option is to modify
  8153. *** your PATH or compiler configuration so that the native linker is
  8154. *** used, and then restart.
  8155. _LT_EOF
  8156. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8157. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8158. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8159. else
  8160. ld_shlibs=no
  8161. fi
  8162. ;;
  8163. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8164. case `$LD -v 2>&1` in
  8165. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8166. ld_shlibs=no
  8167. cat <<_LT_EOF 1>&2
  8168. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8169. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8170. *** is disabling shared libraries support. We urge you to upgrade GNU
  8171. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8172. *** your PATH or compiler configuration so that the native linker is
  8173. *** used, and then restart.
  8174. _LT_EOF
  8175. ;;
  8176. *)
  8177. # For security reasons, it is highly recommended that you always
  8178. # use absolute paths for naming shared libraries, and exclude the
  8179. # DT_RUNPATH tag from executables and libraries. But doing so
  8180. # requires that you compile everything twice, which is a pain.
  8181. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8182. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8183. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8184. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8185. else
  8186. ld_shlibs=no
  8187. fi
  8188. ;;
  8189. esac
  8190. ;;
  8191. sunos4*)
  8192. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8193. wlarc=
  8194. hardcode_direct=yes
  8195. hardcode_shlibpath_var=no
  8196. ;;
  8197. *)
  8198. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8199. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8200. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8201. else
  8202. ld_shlibs=no
  8203. fi
  8204. ;;
  8205. esac
  8206. if test no = "$ld_shlibs"; then
  8207. runpath_var=
  8208. hardcode_libdir_flag_spec=
  8209. export_dynamic_flag_spec=
  8210. whole_archive_flag_spec=
  8211. fi
  8212. else
  8213. # PORTME fill in a description of your system's linker (not GNU ld)
  8214. case $host_os in
  8215. aix3*)
  8216. allow_undefined_flag=unsupported
  8217. always_export_symbols=yes
  8218. 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'
  8219. # Note: this linker hardcodes the directories in LIBPATH if there
  8220. # are no directories specified by -L.
  8221. hardcode_minus_L=yes
  8222. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8223. # Neither direct hardcoding nor static linking is supported with a
  8224. # broken collect2.
  8225. hardcode_direct=unsupported
  8226. fi
  8227. ;;
  8228. aix[4-9]*)
  8229. if test ia64 = "$host_cpu"; then
  8230. # On IA64, the linker does run time linking by default, so we don't
  8231. # have to do anything special.
  8232. aix_use_runtimelinking=no
  8233. exp_sym_flag='-Bexport'
  8234. no_entry_flag=
  8235. else
  8236. # If we're using GNU nm, then we don't want the "-C" option.
  8237. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8238. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8239. # weak defined symbols like other global defined symbols, whereas
  8240. # GNU nm marks them as "W".
  8241. # While the 'weak' keyword is ignored in the Export File, we need
  8242. # it in the Import File for the 'aix-soname' feature, so we have
  8243. # to replace the "-B" option with "-P" for AIX nm.
  8244. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8245. 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'
  8246. else
  8247. 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'
  8248. fi
  8249. aix_use_runtimelinking=no
  8250. # Test if we are trying to use run time linking or normal
  8251. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8252. # have runtime linking enabled, and use it for executables.
  8253. # For shared libraries, we enable/disable runtime linking
  8254. # depending on the kind of the shared library created -
  8255. # when "with_aix_soname,aix_use_runtimelinking" is:
  8256. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8257. # "aix,yes" lib.so shared, rtl:yes, for executables
  8258. # lib.a static archive
  8259. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8260. # lib.a(lib.so.V) shared, rtl:no, for executables
  8261. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8262. # lib.a(lib.so.V) shared, rtl:no
  8263. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8264. # lib.a static archive
  8265. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8266. for ld_flag in $LDFLAGS; do
  8267. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8268. aix_use_runtimelinking=yes
  8269. break
  8270. fi
  8271. done
  8272. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8273. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8274. # so we don't have lib.a shared libs to link our executables.
  8275. # We have to force runtime linking in this case.
  8276. aix_use_runtimelinking=yes
  8277. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8278. fi
  8279. ;;
  8280. esac
  8281. exp_sym_flag='-bexport'
  8282. no_entry_flag='-bnoentry'
  8283. fi
  8284. # When large executables or shared objects are built, AIX ld can
  8285. # have problems creating the table of contents. If linking a library
  8286. # or program results in "error TOC overflow" add -mminimal-toc to
  8287. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8288. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8289. archive_cmds=''
  8290. hardcode_direct=yes
  8291. hardcode_direct_absolute=yes
  8292. hardcode_libdir_separator=':'
  8293. link_all_deplibs=yes
  8294. file_list_spec='$wl-f,'
  8295. case $with_aix_soname,$aix_use_runtimelinking in
  8296. aix,*) ;; # traditional, no import file
  8297. svr4,* | *,yes) # use import file
  8298. # The Import File defines what to hardcode.
  8299. hardcode_direct=no
  8300. hardcode_direct_absolute=no
  8301. ;;
  8302. esac
  8303. if test yes = "$GCC"; then
  8304. case $host_os in aix4.[012]|aix4.[012].*)
  8305. # We only want to do this on AIX 4.2 and lower, the check
  8306. # below for broken collect2 doesn't work under 4.3+
  8307. collect2name=`$CC -print-prog-name=collect2`
  8308. if test -f "$collect2name" &&
  8309. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8310. then
  8311. # We have reworked collect2
  8312. :
  8313. else
  8314. # We have old collect2
  8315. hardcode_direct=unsupported
  8316. # It fails to find uninstalled libraries when the uninstalled
  8317. # path is not listed in the libpath. Setting hardcode_minus_L
  8318. # to unsupported forces relinking
  8319. hardcode_minus_L=yes
  8320. hardcode_libdir_flag_spec='-L$libdir'
  8321. hardcode_libdir_separator=
  8322. fi
  8323. ;;
  8324. esac
  8325. shared_flag='-shared'
  8326. if test yes = "$aix_use_runtimelinking"; then
  8327. shared_flag="$shared_flag "'$wl-G'
  8328. fi
  8329. # Need to ensure runtime linking is disabled for the traditional
  8330. # shared library, or the linker may eventually find shared libraries
  8331. # /with/ Import File - we do not want to mix them.
  8332. shared_flag_aix='-shared'
  8333. shared_flag_svr4='-shared $wl-G'
  8334. else
  8335. # not using gcc
  8336. if test ia64 = "$host_cpu"; then
  8337. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8338. # chokes on -Wl,-G. The following line is correct:
  8339. shared_flag='-G'
  8340. else
  8341. if test yes = "$aix_use_runtimelinking"; then
  8342. shared_flag='$wl-G'
  8343. else
  8344. shared_flag='$wl-bM:SRE'
  8345. fi
  8346. shared_flag_aix='$wl-bM:SRE'
  8347. shared_flag_svr4='$wl-G'
  8348. fi
  8349. fi
  8350. export_dynamic_flag_spec='$wl-bexpall'
  8351. # It seems that -bexpall does not export symbols beginning with
  8352. # underscore (_), so it is better to generate a list of symbols to export.
  8353. always_export_symbols=yes
  8354. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8355. # Warning - without using the other runtime loading flags (-brtl),
  8356. # -berok will link without error, but may produce a broken library.
  8357. allow_undefined_flag='-berok'
  8358. # Determine the default libpath from the value encoded in an
  8359. # empty executable.
  8360. if test set = "${lt_cv_aix_libpath+set}"; then
  8361. aix_libpath=$lt_cv_aix_libpath
  8362. else
  8363. if ${lt_cv_aix_libpath_+:} false; then :
  8364. $as_echo_n "(cached) " >&6
  8365. else
  8366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8367. /* end confdefs.h. */
  8368. int
  8369. main ()
  8370. {
  8371. ;
  8372. return 0;
  8373. }
  8374. _ACEOF
  8375. if ac_fn_c_try_link "$LINENO"; then :
  8376. lt_aix_libpath_sed='
  8377. /Import File Strings/,/^$/ {
  8378. /^0/ {
  8379. s/^0 *\([^ ]*\) *$/\1/
  8380. p
  8381. }
  8382. }'
  8383. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8384. # Check for a 64-bit object if we didn't find anything.
  8385. if test -z "$lt_cv_aix_libpath_"; then
  8386. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8387. fi
  8388. fi
  8389. rm -f core conftest.err conftest.$ac_objext \
  8390. conftest$ac_exeext conftest.$ac_ext
  8391. if test -z "$lt_cv_aix_libpath_"; then
  8392. lt_cv_aix_libpath_=/usr/lib:/lib
  8393. fi
  8394. fi
  8395. aix_libpath=$lt_cv_aix_libpath_
  8396. fi
  8397. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8398. 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
  8399. else
  8400. if test ia64 = "$host_cpu"; then
  8401. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8402. allow_undefined_flag="-z nodefs"
  8403. 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"
  8404. else
  8405. # Determine the default libpath from the value encoded in an
  8406. # empty executable.
  8407. if test set = "${lt_cv_aix_libpath+set}"; then
  8408. aix_libpath=$lt_cv_aix_libpath
  8409. else
  8410. if ${lt_cv_aix_libpath_+:} false; then :
  8411. $as_echo_n "(cached) " >&6
  8412. else
  8413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8414. /* end confdefs.h. */
  8415. int
  8416. main ()
  8417. {
  8418. ;
  8419. return 0;
  8420. }
  8421. _ACEOF
  8422. if ac_fn_c_try_link "$LINENO"; then :
  8423. lt_aix_libpath_sed='
  8424. /Import File Strings/,/^$/ {
  8425. /^0/ {
  8426. s/^0 *\([^ ]*\) *$/\1/
  8427. p
  8428. }
  8429. }'
  8430. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8431. # Check for a 64-bit object if we didn't find anything.
  8432. if test -z "$lt_cv_aix_libpath_"; then
  8433. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8434. fi
  8435. fi
  8436. rm -f core conftest.err conftest.$ac_objext \
  8437. conftest$ac_exeext conftest.$ac_ext
  8438. if test -z "$lt_cv_aix_libpath_"; then
  8439. lt_cv_aix_libpath_=/usr/lib:/lib
  8440. fi
  8441. fi
  8442. aix_libpath=$lt_cv_aix_libpath_
  8443. fi
  8444. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8445. # Warning - without using the other run time loading flags,
  8446. # -berok will link without error, but may produce a broken library.
  8447. no_undefined_flag=' $wl-bernotok'
  8448. allow_undefined_flag=' $wl-berok'
  8449. if test yes = "$with_gnu_ld"; then
  8450. # We only use this code for GNU lds that support --whole-archive.
  8451. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8452. else
  8453. # Exported symbols can be pulled into shared objects from archives
  8454. whole_archive_flag_spec='$convenience'
  8455. fi
  8456. archive_cmds_need_lc=yes
  8457. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8458. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8459. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8460. if test svr4 != "$with_aix_soname"; then
  8461. # This is similar to how AIX traditionally builds its shared libraries.
  8462. 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'
  8463. fi
  8464. if test aix != "$with_aix_soname"; then
  8465. 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'
  8466. else
  8467. # used by -dlpreopen to get the symbols
  8468. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8469. fi
  8470. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8471. fi
  8472. fi
  8473. ;;
  8474. amigaos*)
  8475. case $host_cpu in
  8476. powerpc)
  8477. # see comment about AmigaOS4 .so support
  8478. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8479. archive_expsym_cmds=''
  8480. ;;
  8481. m68k)
  8482. 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)'
  8483. hardcode_libdir_flag_spec='-L$libdir'
  8484. hardcode_minus_L=yes
  8485. ;;
  8486. esac
  8487. ;;
  8488. bsdi[45]*)
  8489. export_dynamic_flag_spec=-rdynamic
  8490. ;;
  8491. cygwin* | mingw* | pw32* | cegcc*)
  8492. # When not using gcc, we currently assume that we are using
  8493. # Microsoft Visual C++.
  8494. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8495. # no search path for DLLs.
  8496. case $cc_basename in
  8497. cl*)
  8498. # Native MSVC
  8499. hardcode_libdir_flag_spec=' '
  8500. allow_undefined_flag=unsupported
  8501. always_export_symbols=yes
  8502. file_list_spec='@'
  8503. # Tell ltmain to make .lib files, not .a files.
  8504. libext=lib
  8505. # Tell ltmain to make .dll files, not .so files.
  8506. shrext_cmds=.dll
  8507. # FIXME: Setting linknames here is a bad hack.
  8508. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8509. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8510. cp "$export_symbols" "$output_objdir/$soname.def";
  8511. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8512. else
  8513. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8514. fi~
  8515. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8516. linknames='
  8517. # The linker will not automatically build a static lib if we build a DLL.
  8518. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8519. enable_shared_with_static_runtimes=yes
  8520. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8521. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8522. # Don't use ranlib
  8523. old_postinstall_cmds='chmod 644 $oldlib'
  8524. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8525. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8526. case $lt_outputfile in
  8527. *.exe|*.EXE) ;;
  8528. *)
  8529. lt_outputfile=$lt_outputfile.exe
  8530. lt_tool_outputfile=$lt_tool_outputfile.exe
  8531. ;;
  8532. esac~
  8533. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8534. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8535. $RM "$lt_outputfile.manifest";
  8536. fi'
  8537. ;;
  8538. *)
  8539. # Assume MSVC wrapper
  8540. hardcode_libdir_flag_spec=' '
  8541. allow_undefined_flag=unsupported
  8542. # Tell ltmain to make .lib files, not .a files.
  8543. libext=lib
  8544. # Tell ltmain to make .dll files, not .so files.
  8545. shrext_cmds=.dll
  8546. # FIXME: Setting linknames here is a bad hack.
  8547. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8548. # The linker will automatically build a .lib file if we build a DLL.
  8549. old_archive_from_new_cmds='true'
  8550. # FIXME: Should let the user specify the lib program.
  8551. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8552. enable_shared_with_static_runtimes=yes
  8553. ;;
  8554. esac
  8555. ;;
  8556. darwin* | rhapsody*)
  8557. archive_cmds_need_lc=no
  8558. hardcode_direct=no
  8559. hardcode_automatic=yes
  8560. hardcode_shlibpath_var=unsupported
  8561. if test yes = "$lt_cv_ld_force_load"; then
  8562. 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\"`'
  8563. else
  8564. whole_archive_flag_spec=''
  8565. fi
  8566. link_all_deplibs=yes
  8567. allow_undefined_flag=$_lt_dar_allow_undefined
  8568. case $cc_basename in
  8569. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8570. *) _lt_dar_can_shared=$GCC ;;
  8571. esac
  8572. if test yes = "$_lt_dar_can_shared"; then
  8573. output_verbose_link_cmd=func_echo_all
  8574. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8575. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8576. 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"
  8577. 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"
  8578. else
  8579. ld_shlibs=no
  8580. fi
  8581. ;;
  8582. dgux*)
  8583. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8584. hardcode_libdir_flag_spec='-L$libdir'
  8585. hardcode_shlibpath_var=no
  8586. ;;
  8587. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8588. # support. Future versions do this automatically, but an explicit c++rt0.o
  8589. # does not break anything, and helps significantly (at the cost of a little
  8590. # extra space).
  8591. freebsd2.2*)
  8592. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8593. hardcode_libdir_flag_spec='-R$libdir'
  8594. hardcode_direct=yes
  8595. hardcode_shlibpath_var=no
  8596. ;;
  8597. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8598. freebsd2.*)
  8599. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8600. hardcode_direct=yes
  8601. hardcode_minus_L=yes
  8602. hardcode_shlibpath_var=no
  8603. ;;
  8604. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8605. freebsd* | dragonfly*)
  8606. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8607. hardcode_libdir_flag_spec='-R$libdir'
  8608. hardcode_direct=yes
  8609. hardcode_shlibpath_var=no
  8610. ;;
  8611. hpux9*)
  8612. if test yes = "$GCC"; then
  8613. 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'
  8614. else
  8615. 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'
  8616. fi
  8617. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8618. hardcode_libdir_separator=:
  8619. hardcode_direct=yes
  8620. # hardcode_minus_L: Not really in the search PATH,
  8621. # but as the default location of the library.
  8622. hardcode_minus_L=yes
  8623. export_dynamic_flag_spec='$wl-E'
  8624. ;;
  8625. hpux10*)
  8626. if test yes,no = "$GCC,$with_gnu_ld"; then
  8627. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8628. else
  8629. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8630. fi
  8631. if test no = "$with_gnu_ld"; then
  8632. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8633. hardcode_libdir_separator=:
  8634. hardcode_direct=yes
  8635. hardcode_direct_absolute=yes
  8636. export_dynamic_flag_spec='$wl-E'
  8637. # hardcode_minus_L: Not really in the search PATH,
  8638. # but as the default location of the library.
  8639. hardcode_minus_L=yes
  8640. fi
  8641. ;;
  8642. hpux11*)
  8643. if test yes,no = "$GCC,$with_gnu_ld"; then
  8644. case $host_cpu in
  8645. hppa*64*)
  8646. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8647. ;;
  8648. ia64*)
  8649. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8650. ;;
  8651. *)
  8652. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8653. ;;
  8654. esac
  8655. else
  8656. case $host_cpu in
  8657. hppa*64*)
  8658. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8659. ;;
  8660. ia64*)
  8661. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8662. ;;
  8663. *)
  8664. # Older versions of the 11.00 compiler do not understand -b yet
  8665. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8667. $as_echo_n "checking if $CC understands -b... " >&6; }
  8668. if ${lt_cv_prog_compiler__b+:} false; then :
  8669. $as_echo_n "(cached) " >&6
  8670. else
  8671. lt_cv_prog_compiler__b=no
  8672. save_LDFLAGS=$LDFLAGS
  8673. LDFLAGS="$LDFLAGS -b"
  8674. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8675. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8676. # The linker can only warn and ignore the option if not recognized
  8677. # So say no if there are warnings
  8678. if test -s conftest.err; then
  8679. # Append any errors to the config.log.
  8680. cat conftest.err 1>&5
  8681. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8682. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8683. if diff conftest.exp conftest.er2 >/dev/null; then
  8684. lt_cv_prog_compiler__b=yes
  8685. fi
  8686. else
  8687. lt_cv_prog_compiler__b=yes
  8688. fi
  8689. fi
  8690. $RM -r conftest*
  8691. LDFLAGS=$save_LDFLAGS
  8692. fi
  8693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8694. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8695. if test yes = "$lt_cv_prog_compiler__b"; then
  8696. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8697. else
  8698. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8699. fi
  8700. ;;
  8701. esac
  8702. fi
  8703. if test no = "$with_gnu_ld"; then
  8704. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8705. hardcode_libdir_separator=:
  8706. case $host_cpu in
  8707. hppa*64*|ia64*)
  8708. hardcode_direct=no
  8709. hardcode_shlibpath_var=no
  8710. ;;
  8711. *)
  8712. hardcode_direct=yes
  8713. hardcode_direct_absolute=yes
  8714. export_dynamic_flag_spec='$wl-E'
  8715. # hardcode_minus_L: Not really in the search PATH,
  8716. # but as the default location of the library.
  8717. hardcode_minus_L=yes
  8718. ;;
  8719. esac
  8720. fi
  8721. ;;
  8722. irix5* | irix6* | nonstopux*)
  8723. if test yes = "$GCC"; then
  8724. 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'
  8725. # Try to use the -exported_symbol ld option, if it does not
  8726. # work, assume that -exports_file does not work either and
  8727. # implicitly export all symbols.
  8728. # This should be the same for all languages, so no per-tag cache variable.
  8729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8730. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8731. if ${lt_cv_irix_exported_symbol+:} false; then :
  8732. $as_echo_n "(cached) " >&6
  8733. else
  8734. save_LDFLAGS=$LDFLAGS
  8735. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8737. /* end confdefs.h. */
  8738. int foo (void) { return 0; }
  8739. _ACEOF
  8740. if ac_fn_c_try_link "$LINENO"; then :
  8741. lt_cv_irix_exported_symbol=yes
  8742. else
  8743. lt_cv_irix_exported_symbol=no
  8744. fi
  8745. rm -f core conftest.err conftest.$ac_objext \
  8746. conftest$ac_exeext conftest.$ac_ext
  8747. LDFLAGS=$save_LDFLAGS
  8748. fi
  8749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8750. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8751. if test yes = "$lt_cv_irix_exported_symbol"; then
  8752. 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'
  8753. fi
  8754. else
  8755. 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'
  8756. 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'
  8757. fi
  8758. archive_cmds_need_lc='no'
  8759. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8760. hardcode_libdir_separator=:
  8761. inherit_rpath=yes
  8762. link_all_deplibs=yes
  8763. ;;
  8764. linux*)
  8765. case $cc_basename in
  8766. tcc*)
  8767. # Fabrice Bellard et al's Tiny C Compiler
  8768. ld_shlibs=yes
  8769. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8770. ;;
  8771. esac
  8772. ;;
  8773. netbsd*)
  8774. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8775. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8776. else
  8777. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8778. fi
  8779. hardcode_libdir_flag_spec='-R$libdir'
  8780. hardcode_direct=yes
  8781. hardcode_shlibpath_var=no
  8782. ;;
  8783. newsos6)
  8784. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8785. hardcode_direct=yes
  8786. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8787. hardcode_libdir_separator=:
  8788. hardcode_shlibpath_var=no
  8789. ;;
  8790. *nto* | *qnx*)
  8791. ;;
  8792. openbsd* | bitrig*)
  8793. if test -f /usr/libexec/ld.so; then
  8794. hardcode_direct=yes
  8795. hardcode_shlibpath_var=no
  8796. hardcode_direct_absolute=yes
  8797. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8798. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8799. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8800. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8801. export_dynamic_flag_spec='$wl-E'
  8802. else
  8803. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8804. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8805. fi
  8806. else
  8807. ld_shlibs=no
  8808. fi
  8809. ;;
  8810. os2*)
  8811. hardcode_libdir_flag_spec='-L$libdir'
  8812. hardcode_minus_L=yes
  8813. allow_undefined_flag=unsupported
  8814. shrext_cmds=.dll
  8815. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8816. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8817. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8818. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8819. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8820. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8821. emximp -o $lib $output_objdir/$libname.def'
  8822. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8823. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8824. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8825. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8826. prefix_cmds="$SED"~
  8827. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8828. prefix_cmds="$prefix_cmds -e 1d";
  8829. fi~
  8830. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8831. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8832. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8833. emximp -o $lib $output_objdir/$libname.def'
  8834. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8835. enable_shared_with_static_runtimes=yes
  8836. ;;
  8837. osf3*)
  8838. if test yes = "$GCC"; then
  8839. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8840. 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'
  8841. else
  8842. allow_undefined_flag=' -expect_unresolved \*'
  8843. 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'
  8844. fi
  8845. archive_cmds_need_lc='no'
  8846. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8847. hardcode_libdir_separator=:
  8848. ;;
  8849. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8850. if test yes = "$GCC"; then
  8851. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8852. 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'
  8853. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8854. else
  8855. allow_undefined_flag=' -expect_unresolved \*'
  8856. 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'
  8857. 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~
  8858. $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'
  8859. # Both c and cxx compiler support -rpath directly
  8860. hardcode_libdir_flag_spec='-rpath $libdir'
  8861. fi
  8862. archive_cmds_need_lc='no'
  8863. hardcode_libdir_separator=:
  8864. ;;
  8865. solaris*)
  8866. no_undefined_flag=' -z defs'
  8867. if test yes = "$GCC"; then
  8868. wlarc='$wl'
  8869. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8870. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8871. $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'
  8872. else
  8873. case `$CC -V 2>&1` in
  8874. *"Compilers 5.0"*)
  8875. wlarc=''
  8876. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8877. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8878. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8879. ;;
  8880. *)
  8881. wlarc='$wl'
  8882. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8883. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8884. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8885. ;;
  8886. esac
  8887. fi
  8888. hardcode_libdir_flag_spec='-R$libdir'
  8889. hardcode_shlibpath_var=no
  8890. case $host_os in
  8891. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8892. *)
  8893. # The compiler driver will combine and reorder linker options,
  8894. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8895. # but is careful enough not to reorder.
  8896. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8897. if test yes = "$GCC"; then
  8898. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8899. else
  8900. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8901. fi
  8902. ;;
  8903. esac
  8904. link_all_deplibs=yes
  8905. ;;
  8906. sunos4*)
  8907. if test sequent = "$host_vendor"; then
  8908. # Use $CC to link under sequent, because it throws in some extra .o
  8909. # files that make .init and .fini sections work.
  8910. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8911. else
  8912. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8913. fi
  8914. hardcode_libdir_flag_spec='-L$libdir'
  8915. hardcode_direct=yes
  8916. hardcode_minus_L=yes
  8917. hardcode_shlibpath_var=no
  8918. ;;
  8919. sysv4)
  8920. case $host_vendor in
  8921. sni)
  8922. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8923. hardcode_direct=yes # is this really true???
  8924. ;;
  8925. siemens)
  8926. ## LD is ld it makes a PLAMLIB
  8927. ## CC just makes a GrossModule.
  8928. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8929. reload_cmds='$CC -r -o $output$reload_objs'
  8930. hardcode_direct=no
  8931. ;;
  8932. motorola)
  8933. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8934. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8935. ;;
  8936. esac
  8937. runpath_var='LD_RUN_PATH'
  8938. hardcode_shlibpath_var=no
  8939. ;;
  8940. sysv4.3*)
  8941. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8942. hardcode_shlibpath_var=no
  8943. export_dynamic_flag_spec='-Bexport'
  8944. ;;
  8945. sysv4*MP*)
  8946. if test -d /usr/nec; then
  8947. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8948. hardcode_shlibpath_var=no
  8949. runpath_var=LD_RUN_PATH
  8950. hardcode_runpath_var=yes
  8951. ld_shlibs=yes
  8952. fi
  8953. ;;
  8954. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8955. no_undefined_flag='$wl-z,text'
  8956. archive_cmds_need_lc=no
  8957. hardcode_shlibpath_var=no
  8958. runpath_var='LD_RUN_PATH'
  8959. if test yes = "$GCC"; then
  8960. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8961. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8962. else
  8963. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8964. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8965. fi
  8966. ;;
  8967. sysv5* | sco3.2v5* | sco5v6*)
  8968. # Note: We CANNOT use -z defs as we might desire, because we do not
  8969. # link with -lc, and that would cause any symbols used from libc to
  8970. # always be unresolved, which means just about no library would
  8971. # ever link correctly. If we're not using GNU ld we use -z text
  8972. # though, which does catch some bad symbols but isn't as heavy-handed
  8973. # as -z defs.
  8974. no_undefined_flag='$wl-z,text'
  8975. allow_undefined_flag='$wl-z,nodefs'
  8976. archive_cmds_need_lc=no
  8977. hardcode_shlibpath_var=no
  8978. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8979. hardcode_libdir_separator=':'
  8980. link_all_deplibs=yes
  8981. export_dynamic_flag_spec='$wl-Bexport'
  8982. runpath_var='LD_RUN_PATH'
  8983. if test yes = "$GCC"; then
  8984. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8985. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8986. else
  8987. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8988. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8989. fi
  8990. ;;
  8991. uts4*)
  8992. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8993. hardcode_libdir_flag_spec='-L$libdir'
  8994. hardcode_shlibpath_var=no
  8995. ;;
  8996. *)
  8997. ld_shlibs=no
  8998. ;;
  8999. esac
  9000. if test sni = "$host_vendor"; then
  9001. case $host in
  9002. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9003. export_dynamic_flag_spec='$wl-Blargedynsym'
  9004. ;;
  9005. esac
  9006. fi
  9007. fi
  9008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9009. $as_echo "$ld_shlibs" >&6; }
  9010. test no = "$ld_shlibs" && can_build_shared=no
  9011. with_gnu_ld=$with_gnu_ld
  9012. #
  9013. # Do we need to explicitly link libc?
  9014. #
  9015. case "x$archive_cmds_need_lc" in
  9016. x|xyes)
  9017. # Assume -lc should be added
  9018. archive_cmds_need_lc=yes
  9019. if test yes,yes = "$GCC,$enable_shared"; then
  9020. case $archive_cmds in
  9021. *'~'*)
  9022. # FIXME: we may have to deal with multi-command sequences.
  9023. ;;
  9024. '$CC '*)
  9025. # Test whether the compiler implicitly links with -lc since on some
  9026. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9027. # to ld, don't add -lc before -lgcc.
  9028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9029. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9030. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9031. $as_echo_n "(cached) " >&6
  9032. else
  9033. $RM conftest*
  9034. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9035. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9036. (eval $ac_compile) 2>&5
  9037. ac_status=$?
  9038. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9039. test $ac_status = 0; } 2>conftest.err; then
  9040. soname=conftest
  9041. lib=conftest
  9042. libobjs=conftest.$ac_objext
  9043. deplibs=
  9044. wl=$lt_prog_compiler_wl
  9045. pic_flag=$lt_prog_compiler_pic
  9046. compiler_flags=-v
  9047. linker_flags=-v
  9048. verstring=
  9049. output_objdir=.
  9050. libname=conftest
  9051. lt_save_allow_undefined_flag=$allow_undefined_flag
  9052. allow_undefined_flag=
  9053. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9054. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9055. ac_status=$?
  9056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9057. test $ac_status = 0; }
  9058. then
  9059. lt_cv_archive_cmds_need_lc=no
  9060. else
  9061. lt_cv_archive_cmds_need_lc=yes
  9062. fi
  9063. allow_undefined_flag=$lt_save_allow_undefined_flag
  9064. else
  9065. cat conftest.err 1>&5
  9066. fi
  9067. $RM conftest*
  9068. fi
  9069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9070. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9071. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9072. ;;
  9073. esac
  9074. fi
  9075. ;;
  9076. esac
  9077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9078. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9079. if test yes = "$GCC"; then
  9080. case $host_os in
  9081. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9082. *) lt_awk_arg='/^libraries:/' ;;
  9083. esac
  9084. case $host_os in
  9085. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9086. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9087. esac
  9088. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9089. case $lt_search_path_spec in
  9090. *\;*)
  9091. # if the path contains ";" then we assume it to be the separator
  9092. # otherwise default to the standard path separator (i.e. ":") - it is
  9093. # assumed that no part of a normal pathname contains ";" but that should
  9094. # okay in the real world where ";" in dirpaths is itself problematic.
  9095. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9096. ;;
  9097. *)
  9098. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9099. ;;
  9100. esac
  9101. # Ok, now we have the path, separated by spaces, we can step through it
  9102. # and add multilib dir if necessary...
  9103. lt_tmp_lt_search_path_spec=
  9104. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9105. # ...but if some path component already ends with the multilib dir we assume
  9106. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9107. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9108. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9109. lt_multi_os_dir=
  9110. ;;
  9111. esac
  9112. for lt_sys_path in $lt_search_path_spec; do
  9113. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9114. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9115. elif test -n "$lt_multi_os_dir"; then
  9116. test -d "$lt_sys_path" && \
  9117. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9118. fi
  9119. done
  9120. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9121. BEGIN {RS = " "; FS = "/|\n";} {
  9122. lt_foo = "";
  9123. lt_count = 0;
  9124. for (lt_i = NF; lt_i > 0; lt_i--) {
  9125. if ($lt_i != "" && $lt_i != ".") {
  9126. if ($lt_i == "..") {
  9127. lt_count++;
  9128. } else {
  9129. if (lt_count == 0) {
  9130. lt_foo = "/" $lt_i lt_foo;
  9131. } else {
  9132. lt_count--;
  9133. }
  9134. }
  9135. }
  9136. }
  9137. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9138. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9139. }'`
  9140. # AWK program above erroneously prepends '/' to C:/dos/paths
  9141. # for these hosts.
  9142. case $host_os in
  9143. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9144. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9145. esac
  9146. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9147. else
  9148. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9149. fi
  9150. library_names_spec=
  9151. libname_spec='lib$name'
  9152. soname_spec=
  9153. shrext_cmds=.so
  9154. postinstall_cmds=
  9155. postuninstall_cmds=
  9156. finish_cmds=
  9157. finish_eval=
  9158. shlibpath_var=
  9159. shlibpath_overrides_runpath=unknown
  9160. version_type=none
  9161. dynamic_linker="$host_os ld.so"
  9162. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9163. need_lib_prefix=unknown
  9164. hardcode_into_libs=no
  9165. # when you set need_version to no, make sure it does not cause -set_version
  9166. # flags to be left without arguments
  9167. need_version=unknown
  9168. case $host_os in
  9169. aix3*)
  9170. version_type=linux # correct to gnu/linux during the next big refactor
  9171. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9172. shlibpath_var=LIBPATH
  9173. # AIX 3 has no versioning support, so we append a major version to the name.
  9174. soname_spec='$libname$release$shared_ext$major'
  9175. ;;
  9176. aix[4-9]*)
  9177. version_type=linux # correct to gnu/linux during the next big refactor
  9178. need_lib_prefix=no
  9179. need_version=no
  9180. hardcode_into_libs=yes
  9181. if test ia64 = "$host_cpu"; then
  9182. # AIX 5 supports IA64
  9183. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9184. shlibpath_var=LD_LIBRARY_PATH
  9185. else
  9186. # With GCC up to 2.95.x, collect2 would create an import file
  9187. # for dependence libraries. The import file would start with
  9188. # the line '#! .'. This would cause the generated library to
  9189. # depend on '.', always an invalid library. This was fixed in
  9190. # development snapshots of GCC prior to 3.0.
  9191. case $host_os in
  9192. aix4 | aix4.[01] | aix4.[01].*)
  9193. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9194. echo ' yes '
  9195. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9196. :
  9197. else
  9198. can_build_shared=no
  9199. fi
  9200. ;;
  9201. esac
  9202. # Using Import Files as archive members, it is possible to support
  9203. # filename-based versioning of shared library archives on AIX. While
  9204. # this would work for both with and without runtime linking, it will
  9205. # prevent static linking of such archives. So we do filename-based
  9206. # shared library versioning with .so extension only, which is used
  9207. # when both runtime linking and shared linking is enabled.
  9208. # Unfortunately, runtime linking may impact performance, so we do
  9209. # not want this to be the default eventually. Also, we use the
  9210. # versioned .so libs for executables only if there is the -brtl
  9211. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9212. # To allow for filename-based versioning support, we need to create
  9213. # libNAME.so.V as an archive file, containing:
  9214. # *) an Import File, referring to the versioned filename of the
  9215. # archive as well as the shared archive member, telling the
  9216. # bitwidth (32 or 64) of that shared object, and providing the
  9217. # list of exported symbols of that shared object, eventually
  9218. # decorated with the 'weak' keyword
  9219. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9220. # it being seen by the linker.
  9221. # At run time we better use the real file rather than another symlink,
  9222. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9223. case $with_aix_soname,$aix_use_runtimelinking in
  9224. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9225. # soname into executable. Probably we can add versioning support to
  9226. # collect2, so additional links can be useful in future.
  9227. aix,yes) # traditional libtool
  9228. dynamic_linker='AIX unversionable lib.so'
  9229. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9230. # instead of lib<name>.a to let people know that these are not
  9231. # typical AIX shared libraries.
  9232. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9233. ;;
  9234. aix,no) # traditional AIX only
  9235. dynamic_linker='AIX lib.a(lib.so.V)'
  9236. # We preserve .a as extension for shared libraries through AIX4.2
  9237. # and later when we are not doing run time linking.
  9238. library_names_spec='$libname$release.a $libname.a'
  9239. soname_spec='$libname$release$shared_ext$major'
  9240. ;;
  9241. svr4,*) # full svr4 only
  9242. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9243. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9244. # We do not specify a path in Import Files, so LIBPATH fires.
  9245. shlibpath_overrides_runpath=yes
  9246. ;;
  9247. *,yes) # both, prefer svr4
  9248. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9249. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9250. # unpreferred sharedlib libNAME.a needs extra handling
  9251. 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"'
  9252. 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"'
  9253. # We do not specify a path in Import Files, so LIBPATH fires.
  9254. shlibpath_overrides_runpath=yes
  9255. ;;
  9256. *,no) # both, prefer aix
  9257. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9258. library_names_spec='$libname$release.a $libname.a'
  9259. soname_spec='$libname$release$shared_ext$major'
  9260. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9261. 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)'
  9262. 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"'
  9263. ;;
  9264. esac
  9265. shlibpath_var=LIBPATH
  9266. fi
  9267. ;;
  9268. amigaos*)
  9269. case $host_cpu in
  9270. powerpc)
  9271. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9272. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9273. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9274. ;;
  9275. m68k)
  9276. library_names_spec='$libname.ixlibrary $libname.a'
  9277. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9278. 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'
  9279. ;;
  9280. esac
  9281. ;;
  9282. beos*)
  9283. library_names_spec='$libname$shared_ext'
  9284. dynamic_linker="$host_os ld.so"
  9285. shlibpath_var=LIBRARY_PATH
  9286. ;;
  9287. bsdi[45]*)
  9288. version_type=linux # correct to gnu/linux during the next big refactor
  9289. need_version=no
  9290. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9291. soname_spec='$libname$release$shared_ext$major'
  9292. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9293. shlibpath_var=LD_LIBRARY_PATH
  9294. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9295. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9296. # the default ld.so.conf also contains /usr/contrib/lib and
  9297. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9298. # libtool to hard-code these into programs
  9299. ;;
  9300. cygwin* | mingw* | pw32* | cegcc*)
  9301. version_type=windows
  9302. shrext_cmds=.dll
  9303. need_version=no
  9304. need_lib_prefix=no
  9305. case $GCC,$cc_basename in
  9306. yes,*)
  9307. # gcc
  9308. library_names_spec='$libname.dll.a'
  9309. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9310. postinstall_cmds='base_file=`basename \$file`~
  9311. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9312. dldir=$destdir/`dirname \$dlpath`~
  9313. test -d \$dldir || mkdir -p \$dldir~
  9314. $install_prog $dir/$dlname \$dldir/$dlname~
  9315. chmod a+x \$dldir/$dlname~
  9316. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9317. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9318. fi'
  9319. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9320. dlpath=$dir/\$dldll~
  9321. $RM \$dlpath'
  9322. shlibpath_overrides_runpath=yes
  9323. case $host_os in
  9324. cygwin*)
  9325. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9326. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9327. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9328. ;;
  9329. mingw* | cegcc*)
  9330. # MinGW DLLs use traditional 'lib' prefix
  9331. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9332. ;;
  9333. pw32*)
  9334. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9335. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9336. ;;
  9337. esac
  9338. dynamic_linker='Win32 ld.exe'
  9339. ;;
  9340. *,cl*)
  9341. # Native MSVC
  9342. libname_spec='$name'
  9343. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9344. library_names_spec='$libname.dll.lib'
  9345. case $build_os in
  9346. mingw*)
  9347. sys_lib_search_path_spec=
  9348. lt_save_ifs=$IFS
  9349. IFS=';'
  9350. for lt_path in $LIB
  9351. do
  9352. IFS=$lt_save_ifs
  9353. # Let DOS variable expansion print the short 8.3 style file name.
  9354. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9355. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9356. done
  9357. IFS=$lt_save_ifs
  9358. # Convert to MSYS style.
  9359. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9360. ;;
  9361. cygwin*)
  9362. # Convert to unix form, then to dos form, then back to unix form
  9363. # but this time dos style (no spaces!) so that the unix form looks
  9364. # like /cygdrive/c/PROGRA~1:/cygdr...
  9365. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9366. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9367. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9368. ;;
  9369. *)
  9370. sys_lib_search_path_spec=$LIB
  9371. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9372. # It is most probably a Windows format PATH.
  9373. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9374. else
  9375. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9376. fi
  9377. # FIXME: find the short name or the path components, as spaces are
  9378. # common. (e.g. "Program Files" -> "PROGRA~1")
  9379. ;;
  9380. esac
  9381. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9382. postinstall_cmds='base_file=`basename \$file`~
  9383. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9384. dldir=$destdir/`dirname \$dlpath`~
  9385. test -d \$dldir || mkdir -p \$dldir~
  9386. $install_prog $dir/$dlname \$dldir/$dlname'
  9387. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9388. dlpath=$dir/\$dldll~
  9389. $RM \$dlpath'
  9390. shlibpath_overrides_runpath=yes
  9391. dynamic_linker='Win32 link.exe'
  9392. ;;
  9393. *)
  9394. # Assume MSVC wrapper
  9395. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9396. dynamic_linker='Win32 ld.exe'
  9397. ;;
  9398. esac
  9399. # FIXME: first we should search . and the directory the executable is in
  9400. shlibpath_var=PATH
  9401. ;;
  9402. darwin* | rhapsody*)
  9403. dynamic_linker="$host_os dyld"
  9404. version_type=darwin
  9405. need_lib_prefix=no
  9406. need_version=no
  9407. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9408. soname_spec='$libname$release$major$shared_ext'
  9409. shlibpath_overrides_runpath=yes
  9410. shlibpath_var=DYLD_LIBRARY_PATH
  9411. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9412. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9413. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9414. ;;
  9415. dgux*)
  9416. version_type=linux # correct to gnu/linux during the next big refactor
  9417. need_lib_prefix=no
  9418. need_version=no
  9419. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9420. soname_spec='$libname$release$shared_ext$major'
  9421. shlibpath_var=LD_LIBRARY_PATH
  9422. ;;
  9423. freebsd* | dragonfly*)
  9424. # DragonFly does not have aout. When/if they implement a new
  9425. # versioning mechanism, adjust this.
  9426. if test -x /usr/bin/objformat; then
  9427. objformat=`/usr/bin/objformat`
  9428. else
  9429. case $host_os in
  9430. freebsd[23].*) objformat=aout ;;
  9431. *) objformat=elf ;;
  9432. esac
  9433. fi
  9434. version_type=freebsd-$objformat
  9435. case $version_type in
  9436. freebsd-elf*)
  9437. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9438. soname_spec='$libname$release$shared_ext$major'
  9439. need_version=no
  9440. need_lib_prefix=no
  9441. ;;
  9442. freebsd-*)
  9443. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9444. need_version=yes
  9445. ;;
  9446. esac
  9447. shlibpath_var=LD_LIBRARY_PATH
  9448. case $host_os in
  9449. freebsd2.*)
  9450. shlibpath_overrides_runpath=yes
  9451. ;;
  9452. freebsd3.[01]* | freebsdelf3.[01]*)
  9453. shlibpath_overrides_runpath=yes
  9454. hardcode_into_libs=yes
  9455. ;;
  9456. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9457. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9458. shlibpath_overrides_runpath=no
  9459. hardcode_into_libs=yes
  9460. ;;
  9461. *) # from 4.6 on, and DragonFly
  9462. shlibpath_overrides_runpath=yes
  9463. hardcode_into_libs=yes
  9464. ;;
  9465. esac
  9466. ;;
  9467. haiku*)
  9468. version_type=linux # correct to gnu/linux during the next big refactor
  9469. need_lib_prefix=no
  9470. need_version=no
  9471. dynamic_linker="$host_os runtime_loader"
  9472. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9473. soname_spec='$libname$release$shared_ext$major'
  9474. shlibpath_var=LIBRARY_PATH
  9475. shlibpath_overrides_runpath=no
  9476. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9477. hardcode_into_libs=yes
  9478. ;;
  9479. hpux9* | hpux10* | hpux11*)
  9480. # Give a soname corresponding to the major version so that dld.sl refuses to
  9481. # link against other versions.
  9482. version_type=sunos
  9483. need_lib_prefix=no
  9484. need_version=no
  9485. case $host_cpu in
  9486. ia64*)
  9487. shrext_cmds='.so'
  9488. hardcode_into_libs=yes
  9489. dynamic_linker="$host_os dld.so"
  9490. shlibpath_var=LD_LIBRARY_PATH
  9491. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9492. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9493. soname_spec='$libname$release$shared_ext$major'
  9494. if test 32 = "$HPUX_IA64_MODE"; then
  9495. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9496. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9497. else
  9498. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9499. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9500. fi
  9501. ;;
  9502. hppa*64*)
  9503. shrext_cmds='.sl'
  9504. hardcode_into_libs=yes
  9505. dynamic_linker="$host_os dld.sl"
  9506. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9507. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9508. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9509. soname_spec='$libname$release$shared_ext$major'
  9510. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9511. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9512. ;;
  9513. *)
  9514. shrext_cmds='.sl'
  9515. dynamic_linker="$host_os dld.sl"
  9516. shlibpath_var=SHLIB_PATH
  9517. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9518. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9519. soname_spec='$libname$release$shared_ext$major'
  9520. ;;
  9521. esac
  9522. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9523. postinstall_cmds='chmod 555 $lib'
  9524. # or fails outright, so override atomically:
  9525. install_override_mode=555
  9526. ;;
  9527. interix[3-9]*)
  9528. version_type=linux # correct to gnu/linux during the next big refactor
  9529. need_lib_prefix=no
  9530. need_version=no
  9531. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9532. soname_spec='$libname$release$shared_ext$major'
  9533. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9534. shlibpath_var=LD_LIBRARY_PATH
  9535. shlibpath_overrides_runpath=no
  9536. hardcode_into_libs=yes
  9537. ;;
  9538. irix5* | irix6* | nonstopux*)
  9539. case $host_os in
  9540. nonstopux*) version_type=nonstopux ;;
  9541. *)
  9542. if test yes = "$lt_cv_prog_gnu_ld"; then
  9543. version_type=linux # correct to gnu/linux during the next big refactor
  9544. else
  9545. version_type=irix
  9546. fi ;;
  9547. esac
  9548. need_lib_prefix=no
  9549. need_version=no
  9550. soname_spec='$libname$release$shared_ext$major'
  9551. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9552. case $host_os in
  9553. irix5* | nonstopux*)
  9554. libsuff= shlibsuff=
  9555. ;;
  9556. *)
  9557. case $LD in # libtool.m4 will add one of these switches to LD
  9558. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9559. libsuff= shlibsuff= libmagic=32-bit;;
  9560. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9561. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9562. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9563. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9564. *) libsuff= shlibsuff= libmagic=never-match;;
  9565. esac
  9566. ;;
  9567. esac
  9568. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9569. shlibpath_overrides_runpath=no
  9570. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9571. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9572. hardcode_into_libs=yes
  9573. ;;
  9574. # No shared lib support for Linux oldld, aout, or coff.
  9575. linux*oldld* | linux*aout* | linux*coff*)
  9576. dynamic_linker=no
  9577. ;;
  9578. linux*android*)
  9579. version_type=none # Android doesn't support versioned libraries.
  9580. need_lib_prefix=no
  9581. need_version=no
  9582. library_names_spec='$libname$release$shared_ext'
  9583. soname_spec='$libname$release$shared_ext'
  9584. finish_cmds=
  9585. shlibpath_var=LD_LIBRARY_PATH
  9586. shlibpath_overrides_runpath=yes
  9587. # This implies no fast_install, which is unacceptable.
  9588. # Some rework will be needed to allow for fast_install
  9589. # before this can be enabled.
  9590. hardcode_into_libs=yes
  9591. dynamic_linker='Android linker'
  9592. # Don't embed -rpath directories since the linker doesn't support them.
  9593. hardcode_libdir_flag_spec='-L$libdir'
  9594. ;;
  9595. # This must be glibc/ELF.
  9596. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9597. version_type=linux # correct to gnu/linux during the next big refactor
  9598. need_lib_prefix=no
  9599. need_version=no
  9600. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9601. soname_spec='$libname$release$shared_ext$major'
  9602. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9603. shlibpath_var=LD_LIBRARY_PATH
  9604. shlibpath_overrides_runpath=no
  9605. # Some binutils ld are patched to set DT_RUNPATH
  9606. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9607. $as_echo_n "(cached) " >&6
  9608. else
  9609. lt_cv_shlibpath_overrides_runpath=no
  9610. save_LDFLAGS=$LDFLAGS
  9611. save_libdir=$libdir
  9612. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9613. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9615. /* end confdefs.h. */
  9616. int
  9617. main ()
  9618. {
  9619. ;
  9620. return 0;
  9621. }
  9622. _ACEOF
  9623. if ac_fn_c_try_link "$LINENO"; then :
  9624. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9625. lt_cv_shlibpath_overrides_runpath=yes
  9626. fi
  9627. fi
  9628. rm -f core conftest.err conftest.$ac_objext \
  9629. conftest$ac_exeext conftest.$ac_ext
  9630. LDFLAGS=$save_LDFLAGS
  9631. libdir=$save_libdir
  9632. fi
  9633. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9634. # This implies no fast_install, which is unacceptable.
  9635. # Some rework will be needed to allow for fast_install
  9636. # before this can be enabled.
  9637. hardcode_into_libs=yes
  9638. # Add ABI-specific directories to the system library path.
  9639. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9640. # Ideally, we could use ldconfig to report *all* directores which are
  9641. # searched for libraries, however this is still not possible. Aside from not
  9642. # being certain /sbin/ldconfig is available, command
  9643. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9644. # even though it is searched at run-time. Try to do the best guess by
  9645. # appending ld.so.conf contents (and includes) to the search path.
  9646. if test -f /etc/ld.so.conf; then
  9647. 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' ' '`
  9648. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9649. fi
  9650. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9651. # powerpc, because MkLinux only supported shared libraries with the
  9652. # GNU dynamic linker. Since this was broken with cross compilers,
  9653. # most powerpc-linux boxes support dynamic linking these days and
  9654. # people can always --disable-shared, the test was removed, and we
  9655. # assume the GNU/Linux dynamic linker is in use.
  9656. dynamic_linker='GNU/Linux ld.so'
  9657. ;;
  9658. netbsd*)
  9659. version_type=sunos
  9660. need_lib_prefix=no
  9661. need_version=no
  9662. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9663. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9664. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9665. dynamic_linker='NetBSD (a.out) ld.so'
  9666. else
  9667. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9668. soname_spec='$libname$release$shared_ext$major'
  9669. dynamic_linker='NetBSD ld.elf_so'
  9670. fi
  9671. shlibpath_var=LD_LIBRARY_PATH
  9672. shlibpath_overrides_runpath=yes
  9673. hardcode_into_libs=yes
  9674. ;;
  9675. newsos6)
  9676. version_type=linux # correct to gnu/linux during the next big refactor
  9677. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9678. shlibpath_var=LD_LIBRARY_PATH
  9679. shlibpath_overrides_runpath=yes
  9680. ;;
  9681. *nto* | *qnx*)
  9682. version_type=qnx
  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. shlibpath_overrides_runpath=no
  9689. hardcode_into_libs=yes
  9690. dynamic_linker='ldqnx.so'
  9691. ;;
  9692. openbsd* | bitrig*)
  9693. version_type=sunos
  9694. sys_lib_dlsearch_path_spec=/usr/lib
  9695. need_lib_prefix=no
  9696. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9697. need_version=no
  9698. else
  9699. need_version=yes
  9700. fi
  9701. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9702. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9703. shlibpath_var=LD_LIBRARY_PATH
  9704. shlibpath_overrides_runpath=yes
  9705. ;;
  9706. os2*)
  9707. libname_spec='$name'
  9708. version_type=windows
  9709. shrext_cmds=.dll
  9710. need_version=no
  9711. need_lib_prefix=no
  9712. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9713. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9714. v=$($ECHO $release$versuffix | tr -d .-);
  9715. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9716. $ECHO $n$v`$shared_ext'
  9717. library_names_spec='${libname}_dll.$libext'
  9718. dynamic_linker='OS/2 ld.exe'
  9719. shlibpath_var=BEGINLIBPATH
  9720. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9721. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9722. postinstall_cmds='base_file=`basename \$file`~
  9723. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9724. dldir=$destdir/`dirname \$dlpath`~
  9725. test -d \$dldir || mkdir -p \$dldir~
  9726. $install_prog $dir/$dlname \$dldir/$dlname~
  9727. chmod a+x \$dldir/$dlname~
  9728. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9729. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9730. fi'
  9731. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9732. dlpath=$dir/\$dldll~
  9733. $RM \$dlpath'
  9734. ;;
  9735. osf3* | osf4* | osf5*)
  9736. version_type=osf
  9737. need_lib_prefix=no
  9738. need_version=no
  9739. soname_spec='$libname$release$shared_ext$major'
  9740. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9741. shlibpath_var=LD_LIBRARY_PATH
  9742. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9743. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9744. ;;
  9745. rdos*)
  9746. dynamic_linker=no
  9747. ;;
  9748. solaris*)
  9749. version_type=linux # correct to gnu/linux during the next big refactor
  9750. need_lib_prefix=no
  9751. need_version=no
  9752. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9753. soname_spec='$libname$release$shared_ext$major'
  9754. shlibpath_var=LD_LIBRARY_PATH
  9755. shlibpath_overrides_runpath=yes
  9756. hardcode_into_libs=yes
  9757. # ldd complains unless libraries are executable
  9758. postinstall_cmds='chmod +x $lib'
  9759. ;;
  9760. sunos4*)
  9761. version_type=sunos
  9762. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9763. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9764. shlibpath_var=LD_LIBRARY_PATH
  9765. shlibpath_overrides_runpath=yes
  9766. if test yes = "$with_gnu_ld"; then
  9767. need_lib_prefix=no
  9768. fi
  9769. need_version=yes
  9770. ;;
  9771. sysv4 | sysv4.3*)
  9772. version_type=linux # correct to gnu/linux during the next big refactor
  9773. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9774. soname_spec='$libname$release$shared_ext$major'
  9775. shlibpath_var=LD_LIBRARY_PATH
  9776. case $host_vendor in
  9777. sni)
  9778. shlibpath_overrides_runpath=no
  9779. need_lib_prefix=no
  9780. runpath_var=LD_RUN_PATH
  9781. ;;
  9782. siemens)
  9783. need_lib_prefix=no
  9784. ;;
  9785. motorola)
  9786. need_lib_prefix=no
  9787. need_version=no
  9788. shlibpath_overrides_runpath=no
  9789. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9790. ;;
  9791. esac
  9792. ;;
  9793. sysv4*MP*)
  9794. if test -d /usr/nec; then
  9795. version_type=linux # correct to gnu/linux during the next big refactor
  9796. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9797. soname_spec='$libname$shared_ext.$major'
  9798. shlibpath_var=LD_LIBRARY_PATH
  9799. fi
  9800. ;;
  9801. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9802. version_type=sco
  9803. need_lib_prefix=no
  9804. need_version=no
  9805. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9806. soname_spec='$libname$release$shared_ext$major'
  9807. shlibpath_var=LD_LIBRARY_PATH
  9808. shlibpath_overrides_runpath=yes
  9809. hardcode_into_libs=yes
  9810. if test yes = "$with_gnu_ld"; then
  9811. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9812. else
  9813. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9814. case $host_os in
  9815. sco3.2v5*)
  9816. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9817. ;;
  9818. esac
  9819. fi
  9820. sys_lib_dlsearch_path_spec='/usr/lib'
  9821. ;;
  9822. tpf*)
  9823. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9824. version_type=linux # correct to gnu/linux during the next big refactor
  9825. need_lib_prefix=no
  9826. need_version=no
  9827. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9828. shlibpath_var=LD_LIBRARY_PATH
  9829. shlibpath_overrides_runpath=no
  9830. hardcode_into_libs=yes
  9831. ;;
  9832. uts4*)
  9833. version_type=linux # correct to gnu/linux during the next big refactor
  9834. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9835. soname_spec='$libname$release$shared_ext$major'
  9836. shlibpath_var=LD_LIBRARY_PATH
  9837. ;;
  9838. *)
  9839. dynamic_linker=no
  9840. ;;
  9841. esac
  9842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9843. $as_echo "$dynamic_linker" >&6; }
  9844. test no = "$dynamic_linker" && can_build_shared=no
  9845. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9846. if test yes = "$GCC"; then
  9847. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9848. fi
  9849. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9850. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9851. fi
  9852. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9853. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9854. fi
  9855. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9856. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9857. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9858. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9859. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9860. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9862. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9863. hardcode_action=
  9864. if test -n "$hardcode_libdir_flag_spec" ||
  9865. test -n "$runpath_var" ||
  9866. test yes = "$hardcode_automatic"; then
  9867. # We can hardcode non-existent directories.
  9868. if test no != "$hardcode_direct" &&
  9869. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9870. # have to relink, otherwise we might link with an installed library
  9871. # when we should be linking with a yet-to-be-installed one
  9872. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9873. test no != "$hardcode_minus_L"; then
  9874. # Linking always hardcodes the temporary library directory.
  9875. hardcode_action=relink
  9876. else
  9877. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9878. hardcode_action=immediate
  9879. fi
  9880. else
  9881. # We cannot hardcode anything, or else we can only hardcode existing
  9882. # directories.
  9883. hardcode_action=unsupported
  9884. fi
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9886. $as_echo "$hardcode_action" >&6; }
  9887. if test relink = "$hardcode_action" ||
  9888. test yes = "$inherit_rpath"; then
  9889. # Fast installation is not supported
  9890. enable_fast_install=no
  9891. elif test yes = "$shlibpath_overrides_runpath" ||
  9892. test no = "$enable_shared"; then
  9893. # Fast installation is not necessary
  9894. enable_fast_install=needless
  9895. fi
  9896. if test yes != "$enable_dlopen"; then
  9897. enable_dlopen=unknown
  9898. enable_dlopen_self=unknown
  9899. enable_dlopen_self_static=unknown
  9900. else
  9901. lt_cv_dlopen=no
  9902. lt_cv_dlopen_libs=
  9903. case $host_os in
  9904. beos*)
  9905. lt_cv_dlopen=load_add_on
  9906. lt_cv_dlopen_libs=
  9907. lt_cv_dlopen_self=yes
  9908. ;;
  9909. mingw* | pw32* | cegcc*)
  9910. lt_cv_dlopen=LoadLibrary
  9911. lt_cv_dlopen_libs=
  9912. ;;
  9913. cygwin*)
  9914. lt_cv_dlopen=dlopen
  9915. lt_cv_dlopen_libs=
  9916. ;;
  9917. darwin*)
  9918. # if libdl is installed we need to link against it
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9920. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9921. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9922. $as_echo_n "(cached) " >&6
  9923. else
  9924. ac_check_lib_save_LIBS=$LIBS
  9925. LIBS="-ldl $LIBS"
  9926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9927. /* end confdefs.h. */
  9928. /* Override any GCC internal prototype to avoid an error.
  9929. Use char because int might match the return type of a GCC
  9930. builtin and then its argument prototype would still apply. */
  9931. #ifdef __cplusplus
  9932. extern "C"
  9933. #endif
  9934. char dlopen ();
  9935. int
  9936. main ()
  9937. {
  9938. return dlopen ();
  9939. ;
  9940. return 0;
  9941. }
  9942. _ACEOF
  9943. if ac_fn_c_try_link "$LINENO"; then :
  9944. ac_cv_lib_dl_dlopen=yes
  9945. else
  9946. ac_cv_lib_dl_dlopen=no
  9947. fi
  9948. rm -f core conftest.err conftest.$ac_objext \
  9949. conftest$ac_exeext conftest.$ac_ext
  9950. LIBS=$ac_check_lib_save_LIBS
  9951. fi
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9953. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9954. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9955. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9956. else
  9957. lt_cv_dlopen=dyld
  9958. lt_cv_dlopen_libs=
  9959. lt_cv_dlopen_self=yes
  9960. fi
  9961. ;;
  9962. tpf*)
  9963. # Don't try to run any link tests for TPF. We know it's impossible
  9964. # because TPF is a cross-compiler, and we know how we open DSOs.
  9965. lt_cv_dlopen=dlopen
  9966. lt_cv_dlopen_libs=
  9967. lt_cv_dlopen_self=no
  9968. ;;
  9969. *)
  9970. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9971. if test "x$ac_cv_func_shl_load" = xyes; then :
  9972. lt_cv_dlopen=shl_load
  9973. else
  9974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9975. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9976. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9977. $as_echo_n "(cached) " >&6
  9978. else
  9979. ac_check_lib_save_LIBS=$LIBS
  9980. LIBS="-ldld $LIBS"
  9981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9982. /* end confdefs.h. */
  9983. /* Override any GCC internal prototype to avoid an error.
  9984. Use char because int might match the return type of a GCC
  9985. builtin and then its argument prototype would still apply. */
  9986. #ifdef __cplusplus
  9987. extern "C"
  9988. #endif
  9989. char shl_load ();
  9990. int
  9991. main ()
  9992. {
  9993. return shl_load ();
  9994. ;
  9995. return 0;
  9996. }
  9997. _ACEOF
  9998. if ac_fn_c_try_link "$LINENO"; then :
  9999. ac_cv_lib_dld_shl_load=yes
  10000. else
  10001. ac_cv_lib_dld_shl_load=no
  10002. fi
  10003. rm -f core conftest.err conftest.$ac_objext \
  10004. conftest$ac_exeext conftest.$ac_ext
  10005. LIBS=$ac_check_lib_save_LIBS
  10006. fi
  10007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10008. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10009. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10010. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10011. else
  10012. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10013. if test "x$ac_cv_func_dlopen" = xyes; then :
  10014. lt_cv_dlopen=dlopen
  10015. else
  10016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10017. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10018. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10019. $as_echo_n "(cached) " >&6
  10020. else
  10021. ac_check_lib_save_LIBS=$LIBS
  10022. LIBS="-ldl $LIBS"
  10023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10024. /* end confdefs.h. */
  10025. /* Override any GCC internal prototype to avoid an error.
  10026. Use char because int might match the return type of a GCC
  10027. builtin and then its argument prototype would still apply. */
  10028. #ifdef __cplusplus
  10029. extern "C"
  10030. #endif
  10031. char dlopen ();
  10032. int
  10033. main ()
  10034. {
  10035. return dlopen ();
  10036. ;
  10037. return 0;
  10038. }
  10039. _ACEOF
  10040. if ac_fn_c_try_link "$LINENO"; then :
  10041. ac_cv_lib_dl_dlopen=yes
  10042. else
  10043. ac_cv_lib_dl_dlopen=no
  10044. fi
  10045. rm -f core conftest.err conftest.$ac_objext \
  10046. conftest$ac_exeext conftest.$ac_ext
  10047. LIBS=$ac_check_lib_save_LIBS
  10048. fi
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10050. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10051. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10052. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10053. else
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10055. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10056. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10057. $as_echo_n "(cached) " >&6
  10058. else
  10059. ac_check_lib_save_LIBS=$LIBS
  10060. LIBS="-lsvld $LIBS"
  10061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10062. /* end confdefs.h. */
  10063. /* Override any GCC internal prototype to avoid an error.
  10064. Use char because int might match the return type of a GCC
  10065. builtin and then its argument prototype would still apply. */
  10066. #ifdef __cplusplus
  10067. extern "C"
  10068. #endif
  10069. char dlopen ();
  10070. int
  10071. main ()
  10072. {
  10073. return dlopen ();
  10074. ;
  10075. return 0;
  10076. }
  10077. _ACEOF
  10078. if ac_fn_c_try_link "$LINENO"; then :
  10079. ac_cv_lib_svld_dlopen=yes
  10080. else
  10081. ac_cv_lib_svld_dlopen=no
  10082. fi
  10083. rm -f core conftest.err conftest.$ac_objext \
  10084. conftest$ac_exeext conftest.$ac_ext
  10085. LIBS=$ac_check_lib_save_LIBS
  10086. fi
  10087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10088. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10089. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10090. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10091. else
  10092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10093. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10094. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10095. $as_echo_n "(cached) " >&6
  10096. else
  10097. ac_check_lib_save_LIBS=$LIBS
  10098. LIBS="-ldld $LIBS"
  10099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10100. /* end confdefs.h. */
  10101. /* Override any GCC internal prototype to avoid an error.
  10102. Use char because int might match the return type of a GCC
  10103. builtin and then its argument prototype would still apply. */
  10104. #ifdef __cplusplus
  10105. extern "C"
  10106. #endif
  10107. char dld_link ();
  10108. int
  10109. main ()
  10110. {
  10111. return dld_link ();
  10112. ;
  10113. return 0;
  10114. }
  10115. _ACEOF
  10116. if ac_fn_c_try_link "$LINENO"; then :
  10117. ac_cv_lib_dld_dld_link=yes
  10118. else
  10119. ac_cv_lib_dld_dld_link=no
  10120. fi
  10121. rm -f core conftest.err conftest.$ac_objext \
  10122. conftest$ac_exeext conftest.$ac_ext
  10123. LIBS=$ac_check_lib_save_LIBS
  10124. fi
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10126. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10127. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10128. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10129. fi
  10130. fi
  10131. fi
  10132. fi
  10133. fi
  10134. fi
  10135. ;;
  10136. esac
  10137. if test no = "$lt_cv_dlopen"; then
  10138. enable_dlopen=no
  10139. else
  10140. enable_dlopen=yes
  10141. fi
  10142. case $lt_cv_dlopen in
  10143. dlopen)
  10144. save_CPPFLAGS=$CPPFLAGS
  10145. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10146. save_LDFLAGS=$LDFLAGS
  10147. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10148. save_LIBS=$LIBS
  10149. LIBS="$lt_cv_dlopen_libs $LIBS"
  10150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10151. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10152. if ${lt_cv_dlopen_self+:} false; then :
  10153. $as_echo_n "(cached) " >&6
  10154. else
  10155. if test yes = "$cross_compiling"; then :
  10156. lt_cv_dlopen_self=cross
  10157. else
  10158. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10159. lt_status=$lt_dlunknown
  10160. cat > conftest.$ac_ext <<_LT_EOF
  10161. #line $LINENO "configure"
  10162. #include "confdefs.h"
  10163. #if HAVE_DLFCN_H
  10164. #include <dlfcn.h>
  10165. #endif
  10166. #include <stdio.h>
  10167. #ifdef RTLD_GLOBAL
  10168. # define LT_DLGLOBAL RTLD_GLOBAL
  10169. #else
  10170. # ifdef DL_GLOBAL
  10171. # define LT_DLGLOBAL DL_GLOBAL
  10172. # else
  10173. # define LT_DLGLOBAL 0
  10174. # endif
  10175. #endif
  10176. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10177. find out it does not work in some platform. */
  10178. #ifndef LT_DLLAZY_OR_NOW
  10179. # ifdef RTLD_LAZY
  10180. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10181. # else
  10182. # ifdef DL_LAZY
  10183. # define LT_DLLAZY_OR_NOW DL_LAZY
  10184. # else
  10185. # ifdef RTLD_NOW
  10186. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10187. # else
  10188. # ifdef DL_NOW
  10189. # define LT_DLLAZY_OR_NOW DL_NOW
  10190. # else
  10191. # define LT_DLLAZY_OR_NOW 0
  10192. # endif
  10193. # endif
  10194. # endif
  10195. # endif
  10196. #endif
  10197. /* When -fvisibility=hidden is used, assume the code has been annotated
  10198. correspondingly for the symbols needed. */
  10199. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10200. int fnord () __attribute__((visibility("default")));
  10201. #endif
  10202. int fnord () { return 42; }
  10203. int main ()
  10204. {
  10205. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10206. int status = $lt_dlunknown;
  10207. if (self)
  10208. {
  10209. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10210. else
  10211. {
  10212. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10213. else puts (dlerror ());
  10214. }
  10215. /* dlclose (self); */
  10216. }
  10217. else
  10218. puts (dlerror ());
  10219. return status;
  10220. }
  10221. _LT_EOF
  10222. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10223. (eval $ac_link) 2>&5
  10224. ac_status=$?
  10225. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10226. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10227. (./conftest; exit; ) >&5 2>/dev/null
  10228. lt_status=$?
  10229. case x$lt_status in
  10230. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10231. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10232. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10233. esac
  10234. else :
  10235. # compilation failed
  10236. lt_cv_dlopen_self=no
  10237. fi
  10238. fi
  10239. rm -fr conftest*
  10240. fi
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10242. $as_echo "$lt_cv_dlopen_self" >&6; }
  10243. if test yes = "$lt_cv_dlopen_self"; then
  10244. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10246. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10247. if ${lt_cv_dlopen_self_static+:} false; then :
  10248. $as_echo_n "(cached) " >&6
  10249. else
  10250. if test yes = "$cross_compiling"; then :
  10251. lt_cv_dlopen_self_static=cross
  10252. else
  10253. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10254. lt_status=$lt_dlunknown
  10255. cat > conftest.$ac_ext <<_LT_EOF
  10256. #line $LINENO "configure"
  10257. #include "confdefs.h"
  10258. #if HAVE_DLFCN_H
  10259. #include <dlfcn.h>
  10260. #endif
  10261. #include <stdio.h>
  10262. #ifdef RTLD_GLOBAL
  10263. # define LT_DLGLOBAL RTLD_GLOBAL
  10264. #else
  10265. # ifdef DL_GLOBAL
  10266. # define LT_DLGLOBAL DL_GLOBAL
  10267. # else
  10268. # define LT_DLGLOBAL 0
  10269. # endif
  10270. #endif
  10271. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10272. find out it does not work in some platform. */
  10273. #ifndef LT_DLLAZY_OR_NOW
  10274. # ifdef RTLD_LAZY
  10275. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10276. # else
  10277. # ifdef DL_LAZY
  10278. # define LT_DLLAZY_OR_NOW DL_LAZY
  10279. # else
  10280. # ifdef RTLD_NOW
  10281. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10282. # else
  10283. # ifdef DL_NOW
  10284. # define LT_DLLAZY_OR_NOW DL_NOW
  10285. # else
  10286. # define LT_DLLAZY_OR_NOW 0
  10287. # endif
  10288. # endif
  10289. # endif
  10290. # endif
  10291. #endif
  10292. /* When -fvisibility=hidden is used, assume the code has been annotated
  10293. correspondingly for the symbols needed. */
  10294. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10295. int fnord () __attribute__((visibility("default")));
  10296. #endif
  10297. int fnord () { return 42; }
  10298. int main ()
  10299. {
  10300. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10301. int status = $lt_dlunknown;
  10302. if (self)
  10303. {
  10304. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10305. else
  10306. {
  10307. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10308. else puts (dlerror ());
  10309. }
  10310. /* dlclose (self); */
  10311. }
  10312. else
  10313. puts (dlerror ());
  10314. return status;
  10315. }
  10316. _LT_EOF
  10317. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10318. (eval $ac_link) 2>&5
  10319. ac_status=$?
  10320. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10321. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10322. (./conftest; exit; ) >&5 2>/dev/null
  10323. lt_status=$?
  10324. case x$lt_status in
  10325. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10326. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10327. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10328. esac
  10329. else :
  10330. # compilation failed
  10331. lt_cv_dlopen_self_static=no
  10332. fi
  10333. fi
  10334. rm -fr conftest*
  10335. fi
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10337. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10338. fi
  10339. CPPFLAGS=$save_CPPFLAGS
  10340. LDFLAGS=$save_LDFLAGS
  10341. LIBS=$save_LIBS
  10342. ;;
  10343. esac
  10344. case $lt_cv_dlopen_self in
  10345. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10346. *) enable_dlopen_self=unknown ;;
  10347. esac
  10348. case $lt_cv_dlopen_self_static in
  10349. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10350. *) enable_dlopen_self_static=unknown ;;
  10351. esac
  10352. fi
  10353. striplib=
  10354. old_striplib=
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10356. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10357. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10358. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10359. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10361. $as_echo "yes" >&6; }
  10362. else
  10363. # FIXME - insert some real tests, host_os isn't really good enough
  10364. case $host_os in
  10365. darwin*)
  10366. if test -n "$STRIP"; then
  10367. striplib="$STRIP -x"
  10368. old_striplib="$STRIP -S"
  10369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10370. $as_echo "yes" >&6; }
  10371. else
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10373. $as_echo "no" >&6; }
  10374. fi
  10375. ;;
  10376. *)
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10378. $as_echo "no" >&6; }
  10379. ;;
  10380. esac
  10381. fi
  10382. # Report what library types will actually be built
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10384. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10386. $as_echo "$can_build_shared" >&6; }
  10387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10388. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10389. test no = "$can_build_shared" && enable_shared=no
  10390. # On AIX, shared libraries and static libraries use the same namespace, and
  10391. # are all built from PIC.
  10392. case $host_os in
  10393. aix3*)
  10394. test yes = "$enable_shared" && enable_static=no
  10395. if test -n "$RANLIB"; then
  10396. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10397. postinstall_cmds='$RANLIB $lib'
  10398. fi
  10399. ;;
  10400. aix[4-9]*)
  10401. if test ia64 != "$host_cpu"; then
  10402. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10403. yes,aix,yes) ;; # shared object as lib.so file only
  10404. yes,svr4,*) ;; # shared object as lib.so archive member only
  10405. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10406. esac
  10407. fi
  10408. ;;
  10409. esac
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10411. $as_echo "$enable_shared" >&6; }
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10413. $as_echo_n "checking whether to build static libraries... " >&6; }
  10414. # Make sure either enable_shared or enable_static is yes.
  10415. test yes = "$enable_shared" || enable_static=yes
  10416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10417. $as_echo "$enable_static" >&6; }
  10418. fi
  10419. ac_ext=c
  10420. ac_cpp='$CPP $CPPFLAGS'
  10421. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10422. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10423. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10424. CC=$lt_save_CC
  10425. ac_config_commands="$ac_config_commands libtool"
  10426. # Only expand once:
  10427. cflags_save="$CFLAGS"
  10428. if test -z "$GCC"; then
  10429. case $host in
  10430. *-*-irix*)
  10431. DEBUG="-g -signed"
  10432. CFLAGS="-O2 -w -signed"
  10433. PROFILE="-p -g3 -O2 -signed"
  10434. ;;
  10435. sparc-sun-solaris*)
  10436. DEBUG="-v -g"
  10437. CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
  10438. PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
  10439. ;;
  10440. *)
  10441. DEBUG="-g"
  10442. CFLAGS="-O"
  10443. PROFILE="-g -p"
  10444. ;;
  10445. esac
  10446. else
  10447. case $host in
  10448. *-*-linux*)
  10449. DEBUG="-g -Wall -fsigned-char"
  10450. CFLAGS="-O20 -Wall -ffast-math -fsigned-char"
  10451. PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char"
  10452. ;;
  10453. sparc-sun-*)
  10454. DEBUG="-g -Wall -fsigned-char"
  10455. CFLAGS="-O20 -ffast-math -fsigned-char"
  10456. PROFILE="-pg -g -O20 -fsigned-char"
  10457. ;;
  10458. *-*-darwin*)
  10459. DEBUG="-fno-common -g -Wall -fsigned-char"
  10460. CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
  10461. PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
  10462. ;;
  10463. *)
  10464. DEBUG="-g -Wall -fsigned-char"
  10465. CFLAGS="-O20 -fsigned-char"
  10466. PROFILE="-O20 -g -pg -fsigned-char"
  10467. ;;
  10468. esac
  10469. fi
  10470. CFLAGS="$CFLAGS $cflags_save"
  10471. DEBUG="$DEBUG $cflags_save"
  10472. PROFILE="$PROFILE $cflags_save"
  10473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10474. $as_echo_n "checking for ANSI C header files... " >&6; }
  10475. if ${ac_cv_header_stdc+:} false; then :
  10476. $as_echo_n "(cached) " >&6
  10477. else
  10478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10479. /* end confdefs.h. */
  10480. #include <stdlib.h>
  10481. #include <stdarg.h>
  10482. #include <string.h>
  10483. #include <float.h>
  10484. int
  10485. main ()
  10486. {
  10487. ;
  10488. return 0;
  10489. }
  10490. _ACEOF
  10491. if ac_fn_c_try_compile "$LINENO"; then :
  10492. ac_cv_header_stdc=yes
  10493. else
  10494. ac_cv_header_stdc=no
  10495. fi
  10496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10497. if test $ac_cv_header_stdc = yes; then
  10498. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10500. /* end confdefs.h. */
  10501. #include <string.h>
  10502. _ACEOF
  10503. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10504. $EGREP "memchr" >/dev/null 2>&1; then :
  10505. else
  10506. ac_cv_header_stdc=no
  10507. fi
  10508. rm -f conftest*
  10509. fi
  10510. if test $ac_cv_header_stdc = yes; then
  10511. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10513. /* end confdefs.h. */
  10514. #include <stdlib.h>
  10515. _ACEOF
  10516. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10517. $EGREP "free" >/dev/null 2>&1; then :
  10518. else
  10519. ac_cv_header_stdc=no
  10520. fi
  10521. rm -f conftest*
  10522. fi
  10523. if test $ac_cv_header_stdc = yes; then
  10524. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10525. if test "$cross_compiling" = yes; then :
  10526. :
  10527. else
  10528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10529. /* end confdefs.h. */
  10530. #include <ctype.h>
  10531. #include <stdlib.h>
  10532. #if ((' ' & 0x0FF) == 0x020)
  10533. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10534. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10535. #else
  10536. # define ISLOWER(c) \
  10537. (('a' <= (c) && (c) <= 'i') \
  10538. || ('j' <= (c) && (c) <= 'r') \
  10539. || ('s' <= (c) && (c) <= 'z'))
  10540. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10541. #endif
  10542. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10543. int
  10544. main ()
  10545. {
  10546. int i;
  10547. for (i = 0; i < 256; i++)
  10548. if (XOR (islower (i), ISLOWER (i))
  10549. || toupper (i) != TOUPPER (i))
  10550. return 2;
  10551. return 0;
  10552. }
  10553. _ACEOF
  10554. if ac_fn_c_try_run "$LINENO"; then :
  10555. else
  10556. ac_cv_header_stdc=no
  10557. fi
  10558. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10559. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10560. fi
  10561. fi
  10562. fi
  10563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10564. $as_echo "$ac_cv_header_stdc" >&6; }
  10565. if test $ac_cv_header_stdc = yes; then
  10566. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10567. fi
  10568. INCLUDE_INTTYPES_H=0
  10569. INCLUDE_STDINT_H=0
  10570. INCLUDE_SYS_TYPES_H=0
  10571. ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  10572. if test "x$ac_cv_header_inttypes_h" = xyes; then :
  10573. INCLUDE_INTTYPES_H=1
  10574. fi
  10575. ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10576. if test "x$ac_cv_header_stdint_h" = xyes; then :
  10577. INCLUDE_STDINT_H=1
  10578. fi
  10579. ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  10580. if test "x$ac_cv_header_sys_types_h" = xyes; then :
  10581. INCLUDE_SYS_TYPES_H=1
  10582. fi
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10584. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10585. if ${ac_cv_c_const+:} false; then :
  10586. $as_echo_n "(cached) " >&6
  10587. else
  10588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10589. /* end confdefs.h. */
  10590. int
  10591. main ()
  10592. {
  10593. #ifndef __cplusplus
  10594. /* Ultrix mips cc rejects this sort of thing. */
  10595. typedef int charset[2];
  10596. const charset cs = { 0, 0 };
  10597. /* SunOS 4.1.1 cc rejects this. */
  10598. char const *const *pcpcc;
  10599. char **ppc;
  10600. /* NEC SVR4.0.2 mips cc rejects this. */
  10601. struct point {int x, y;};
  10602. static struct point const zero = {0,0};
  10603. /* AIX XL C 1.02.0.0 rejects this.
  10604. It does not let you subtract one const X* pointer from another in
  10605. an arm of an if-expression whose if-part is not a constant
  10606. expression */
  10607. const char *g = "string";
  10608. pcpcc = &g + (g ? g-g : 0);
  10609. /* HPUX 7.0 cc rejects these. */
  10610. ++pcpcc;
  10611. ppc = (char**) pcpcc;
  10612. pcpcc = (char const *const *) ppc;
  10613. { /* SCO 3.2v4 cc rejects this sort of thing. */
  10614. char tx;
  10615. char *t = &tx;
  10616. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10617. *t++ = 0;
  10618. if (s) return 0;
  10619. }
  10620. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10621. int x[] = {25, 17};
  10622. const int *foo = &x[0];
  10623. ++foo;
  10624. }
  10625. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10626. typedef const int *iptr;
  10627. iptr p = 0;
  10628. ++p;
  10629. }
  10630. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  10631. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10632. struct s { int j; const int *ap[3]; } bx;
  10633. struct s *b = &bx; b->j = 5;
  10634. }
  10635. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10636. const int foo = 10;
  10637. if (!foo) return 0;
  10638. }
  10639. return !cs[0] && !zero.x;
  10640. #endif
  10641. ;
  10642. return 0;
  10643. }
  10644. _ACEOF
  10645. if ac_fn_c_try_compile "$LINENO"; then :
  10646. ac_cv_c_const=yes
  10647. else
  10648. ac_cv_c_const=no
  10649. fi
  10650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10651. fi
  10652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10653. $as_echo "$ac_cv_c_const" >&6; }
  10654. if test $ac_cv_c_const = no; then
  10655. $as_echo "#define const /**/" >>confdefs.h
  10656. fi
  10657. # The cast to long int works around a bug in the HP C Compiler
  10658. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10659. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10660. # This bug is HP SR number 8606223364.
  10661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
  10662. $as_echo_n "checking size of int16_t... " >&6; }
  10663. if ${ac_cv_sizeof_int16_t+:} false; then :
  10664. $as_echo_n "(cached) " >&6
  10665. else
  10666. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"; then :
  10667. else
  10668. if test "$ac_cv_type_int16_t" = yes; then
  10669. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10670. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10671. as_fn_error 77 "cannot compute sizeof (int16_t)
  10672. See \`config.log' for more details" "$LINENO" 5; }
  10673. else
  10674. ac_cv_sizeof_int16_t=0
  10675. fi
  10676. fi
  10677. fi
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
  10679. $as_echo "$ac_cv_sizeof_int16_t" >&6; }
  10680. cat >>confdefs.h <<_ACEOF
  10681. #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
  10682. _ACEOF
  10683. # The cast to long int works around a bug in the HP C Compiler
  10684. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10685. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10686. # This bug is HP SR number 8606223364.
  10687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
  10688. $as_echo_n "checking size of uint16_t... " >&6; }
  10689. if ${ac_cv_sizeof_uint16_t+:} false; then :
  10690. $as_echo_n "(cached) " >&6
  10691. else
  10692. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then :
  10693. else
  10694. if test "$ac_cv_type_uint16_t" = yes; then
  10695. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10696. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10697. as_fn_error 77 "cannot compute sizeof (uint16_t)
  10698. See \`config.log' for more details" "$LINENO" 5; }
  10699. else
  10700. ac_cv_sizeof_uint16_t=0
  10701. fi
  10702. fi
  10703. fi
  10704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
  10705. $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
  10706. cat >>confdefs.h <<_ACEOF
  10707. #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
  10708. _ACEOF
  10709. # The cast to long int works around a bug in the HP C Compiler
  10710. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10711. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10712. # This bug is HP SR number 8606223364.
  10713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5
  10714. $as_echo_n "checking size of u_int16_t... " >&6; }
  10715. if ${ac_cv_sizeof_u_int16_t+:} false; then :
  10716. $as_echo_n "(cached) " >&6
  10717. else
  10718. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t" "$ac_includes_default"; then :
  10719. else
  10720. if test "$ac_cv_type_u_int16_t" = yes; then
  10721. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10722. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10723. as_fn_error 77 "cannot compute sizeof (u_int16_t)
  10724. See \`config.log' for more details" "$LINENO" 5; }
  10725. else
  10726. ac_cv_sizeof_u_int16_t=0
  10727. fi
  10728. fi
  10729. fi
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5
  10731. $as_echo "$ac_cv_sizeof_u_int16_t" >&6; }
  10732. cat >>confdefs.h <<_ACEOF
  10733. #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
  10734. _ACEOF
  10735. # The cast to long int works around a bug in the HP C Compiler
  10736. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10737. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10738. # This bug is HP SR number 8606223364.
  10739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
  10740. $as_echo_n "checking size of int32_t... " >&6; }
  10741. if ${ac_cv_sizeof_int32_t+:} false; then :
  10742. $as_echo_n "(cached) " >&6
  10743. else
  10744. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
  10745. else
  10746. if test "$ac_cv_type_int32_t" = yes; then
  10747. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10748. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10749. as_fn_error 77 "cannot compute sizeof (int32_t)
  10750. See \`config.log' for more details" "$LINENO" 5; }
  10751. else
  10752. ac_cv_sizeof_int32_t=0
  10753. fi
  10754. fi
  10755. fi
  10756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
  10757. $as_echo "$ac_cv_sizeof_int32_t" >&6; }
  10758. cat >>confdefs.h <<_ACEOF
  10759. #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
  10760. _ACEOF
  10761. # The cast to long int works around a bug in the HP C Compiler
  10762. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10763. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10764. # This bug is HP SR number 8606223364.
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
  10766. $as_echo_n "checking size of uint32_t... " >&6; }
  10767. if ${ac_cv_sizeof_uint32_t+:} false; then :
  10768. $as_echo_n "(cached) " >&6
  10769. else
  10770. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then :
  10771. else
  10772. if test "$ac_cv_type_uint32_t" = yes; then
  10773. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10774. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10775. as_fn_error 77 "cannot compute sizeof (uint32_t)
  10776. See \`config.log' for more details" "$LINENO" 5; }
  10777. else
  10778. ac_cv_sizeof_uint32_t=0
  10779. fi
  10780. fi
  10781. fi
  10782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
  10783. $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
  10784. cat >>confdefs.h <<_ACEOF
  10785. #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
  10786. _ACEOF
  10787. # The cast to long int works around a bug in the HP C Compiler
  10788. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10789. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10790. # This bug is HP SR number 8606223364.
  10791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5
  10792. $as_echo_n "checking size of u_int32_t... " >&6; }
  10793. if ${ac_cv_sizeof_u_int32_t+:} false; then :
  10794. $as_echo_n "(cached) " >&6
  10795. else
  10796. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t" "$ac_includes_default"; then :
  10797. else
  10798. if test "$ac_cv_type_u_int32_t" = yes; then
  10799. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10800. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10801. as_fn_error 77 "cannot compute sizeof (u_int32_t)
  10802. See \`config.log' for more details" "$LINENO" 5; }
  10803. else
  10804. ac_cv_sizeof_u_int32_t=0
  10805. fi
  10806. fi
  10807. fi
  10808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5
  10809. $as_echo "$ac_cv_sizeof_u_int32_t" >&6; }
  10810. cat >>confdefs.h <<_ACEOF
  10811. #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
  10812. _ACEOF
  10813. # The cast to long int works around a bug in the HP C Compiler
  10814. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10815. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10816. # This bug is HP SR number 8606223364.
  10817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
  10818. $as_echo_n "checking size of int64_t... " >&6; }
  10819. if ${ac_cv_sizeof_int64_t+:} false; then :
  10820. $as_echo_n "(cached) " >&6
  10821. else
  10822. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
  10823. else
  10824. if test "$ac_cv_type_int64_t" = yes; then
  10825. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10826. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10827. as_fn_error 77 "cannot compute sizeof (int64_t)
  10828. See \`config.log' for more details" "$LINENO" 5; }
  10829. else
  10830. ac_cv_sizeof_int64_t=0
  10831. fi
  10832. fi
  10833. fi
  10834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
  10835. $as_echo "$ac_cv_sizeof_int64_t" >&6; }
  10836. cat >>confdefs.h <<_ACEOF
  10837. #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
  10838. _ACEOF
  10839. # The cast to long int works around a bug in the HP C Compiler
  10840. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10841. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10842. # This bug is HP SR number 8606223364.
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  10844. $as_echo_n "checking size of short... " >&6; }
  10845. if ${ac_cv_sizeof_short+:} false; then :
  10846. $as_echo_n "(cached) " >&6
  10847. else
  10848. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  10849. else
  10850. if test "$ac_cv_type_short" = yes; then
  10851. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10852. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10853. as_fn_error 77 "cannot compute sizeof (short)
  10854. See \`config.log' for more details" "$LINENO" 5; }
  10855. else
  10856. ac_cv_sizeof_short=0
  10857. fi
  10858. fi
  10859. fi
  10860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  10861. $as_echo "$ac_cv_sizeof_short" >&6; }
  10862. cat >>confdefs.h <<_ACEOF
  10863. #define SIZEOF_SHORT $ac_cv_sizeof_short
  10864. _ACEOF
  10865. # The cast to long int works around a bug in the HP C Compiler
  10866. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10867. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10868. # This bug is HP SR number 8606223364.
  10869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  10870. $as_echo_n "checking size of int... " >&6; }
  10871. if ${ac_cv_sizeof_int+:} false; then :
  10872. $as_echo_n "(cached) " >&6
  10873. else
  10874. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  10875. else
  10876. if test "$ac_cv_type_int" = yes; then
  10877. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10878. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10879. as_fn_error 77 "cannot compute sizeof (int)
  10880. See \`config.log' for more details" "$LINENO" 5; }
  10881. else
  10882. ac_cv_sizeof_int=0
  10883. fi
  10884. fi
  10885. fi
  10886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  10887. $as_echo "$ac_cv_sizeof_int" >&6; }
  10888. cat >>confdefs.h <<_ACEOF
  10889. #define SIZEOF_INT $ac_cv_sizeof_int
  10890. _ACEOF
  10891. # The cast to long int works around a bug in the HP C Compiler
  10892. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10893. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10894. # This bug is HP SR number 8606223364.
  10895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  10896. $as_echo_n "checking size of long... " >&6; }
  10897. if ${ac_cv_sizeof_long+:} false; then :
  10898. $as_echo_n "(cached) " >&6
  10899. else
  10900. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  10901. else
  10902. if test "$ac_cv_type_long" = yes; then
  10903. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10904. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10905. as_fn_error 77 "cannot compute sizeof (long)
  10906. See \`config.log' for more details" "$LINENO" 5; }
  10907. else
  10908. ac_cv_sizeof_long=0
  10909. fi
  10910. fi
  10911. fi
  10912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  10913. $as_echo "$ac_cv_sizeof_long" >&6; }
  10914. cat >>confdefs.h <<_ACEOF
  10915. #define SIZEOF_LONG $ac_cv_sizeof_long
  10916. _ACEOF
  10917. # The cast to long int works around a bug in the HP C Compiler
  10918. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10919. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10920. # This bug is HP SR number 8606223364.
  10921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  10922. $as_echo_n "checking size of long long... " >&6; }
  10923. if ${ac_cv_sizeof_long_long+:} false; then :
  10924. $as_echo_n "(cached) " >&6
  10925. else
  10926. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  10927. else
  10928. if test "$ac_cv_type_long_long" = yes; then
  10929. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10930. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10931. as_fn_error 77 "cannot compute sizeof (long long)
  10932. See \`config.log' for more details" "$LINENO" 5; }
  10933. else
  10934. ac_cv_sizeof_long_long=0
  10935. fi
  10936. fi
  10937. fi
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  10939. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  10940. cat >>confdefs.h <<_ACEOF
  10941. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10942. _ACEOF
  10943. case 2 in
  10944. $ac_cv_sizeof_int16_t) SIZE16="int16_t";;
  10945. $ac_cv_sizeof_short) SIZE16="short";;
  10946. $ac_cv_sizeof_int) SIZE16="int";;
  10947. esac
  10948. case 2 in
  10949. $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";;
  10950. $ac_cv_sizeof_short) USIZE16="unsigned short";;
  10951. $ac_cv_sizeof_int) USIZE16="unsigned int";;
  10952. $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";;
  10953. esac
  10954. case 4 in
  10955. $ac_cv_sizeof_int32_t) SIZE32="int32_t";;
  10956. $ac_cv_sizeof_short) SIZE32="short";;
  10957. $ac_cv_sizeof_int) SIZE32="int";;
  10958. $ac_cv_sizeof_long) SIZE32="long";;
  10959. esac
  10960. case 4 in
  10961. $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";;
  10962. $ac_cv_sizeof_short) USIZE32="unsigned short";;
  10963. $ac_cv_sizeof_int) USIZE32="unsigned int";;
  10964. $ac_cv_sizeof_long) USIZE32="unsigned long";;
  10965. $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";;
  10966. esac
  10967. case 8 in
  10968. $ac_cv_sizeof_int64_t) SIZE64="int64_t";;
  10969. $ac_cv_sizeof_int) SIZE64="int";;
  10970. $ac_cv_sizeof_long) SIZE64="long";;
  10971. $ac_cv_sizeof_long_long) SIZE64="long long";;
  10972. esac
  10973. if test -z "$SIZE16"; then
  10974. as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5
  10975. fi
  10976. if test -z "$USIZE16"; then
  10977. as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5
  10978. fi
  10979. if test -z "$SIZE32"; then
  10980. as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5
  10981. fi
  10982. if test -z "$USIZE32"; then
  10983. as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5
  10984. fi
  10985. if test -z "$SIZE64"; then
  10986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64 bit type found on this platform!" >&5
  10987. $as_echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
  10988. fi
  10989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  10990. $as_echo_n "checking for working memcmp... " >&6; }
  10991. if ${ac_cv_func_memcmp_working+:} false; then :
  10992. $as_echo_n "(cached) " >&6
  10993. else
  10994. if test "$cross_compiling" = yes; then :
  10995. ac_cv_func_memcmp_working=no
  10996. else
  10997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10998. /* end confdefs.h. */
  10999. $ac_includes_default
  11000. int
  11001. main ()
  11002. {
  11003. /* Some versions of memcmp are not 8-bit clean. */
  11004. char c0 = '\100', c1 = '\200', c2 = '\201';
  11005. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11006. return 1;
  11007. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11008. or more and with at least one buffer not starting on a 4-byte boundary.
  11009. William Lewis provided this test program. */
  11010. {
  11011. char foo[21];
  11012. char bar[21];
  11013. int i;
  11014. for (i = 0; i < 4; i++)
  11015. {
  11016. char *a = foo + i;
  11017. char *b = bar + i;
  11018. strcpy (a, "--------01111111");
  11019. strcpy (b, "--------10000000");
  11020. if (memcmp (a, b, 16) >= 0)
  11021. return 1;
  11022. }
  11023. return 0;
  11024. }
  11025. ;
  11026. return 0;
  11027. }
  11028. _ACEOF
  11029. if ac_fn_c_try_run "$LINENO"; then :
  11030. ac_cv_func_memcmp_working=yes
  11031. else
  11032. ac_cv_func_memcmp_working=no
  11033. fi
  11034. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11035. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11036. fi
  11037. fi
  11038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  11039. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  11040. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  11041. *" memcmp.$ac_objext "* ) ;;
  11042. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  11043. ;;
  11044. esac
  11045. ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc"
  11046. ac_config_headers="$ac_config_headers config.h"
  11047. cat >confcache <<\_ACEOF
  11048. # This file is a shell script that caches the results of configure
  11049. # tests run on this system so they can be shared between configure
  11050. # scripts and configure runs, see configure's option --config-cache.
  11051. # It is not useful on other systems. If it contains results you don't
  11052. # want to keep, you may remove or edit it.
  11053. #
  11054. # config.status only pays attention to the cache file if you give it
  11055. # the --recheck option to rerun configure.
  11056. #
  11057. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11058. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11059. # following values.
  11060. _ACEOF
  11061. # The following way of writing the cache mishandles newlines in values,
  11062. # but we know of no workaround that is simple, portable, and efficient.
  11063. # So, we kill variables containing newlines.
  11064. # Ultrix sh set writes to stderr and can't be redirected directly,
  11065. # and sets the high bit in the cache file unless we assign to the vars.
  11066. (
  11067. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11068. eval ac_val=\$$ac_var
  11069. case $ac_val in #(
  11070. *${as_nl}*)
  11071. case $ac_var in #(
  11072. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11073. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11074. esac
  11075. case $ac_var in #(
  11076. _ | IFS | as_nl) ;; #(
  11077. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11078. *) { eval $ac_var=; unset $ac_var;} ;;
  11079. esac ;;
  11080. esac
  11081. done
  11082. (set) 2>&1 |
  11083. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11084. *${as_nl}ac_space=\ *)
  11085. # `set' does not quote correctly, so add quotes: double-quote
  11086. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11087. sed -n \
  11088. "s/'/'\\\\''/g;
  11089. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11090. ;; #(
  11091. *)
  11092. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11093. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11094. ;;
  11095. esac |
  11096. sort
  11097. ) |
  11098. sed '
  11099. /^ac_cv_env_/b end
  11100. t clear
  11101. :clear
  11102. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11103. t end
  11104. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11105. :end' >>confcache
  11106. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11107. if test -w "$cache_file"; then
  11108. if test "x$cache_file" != "x/dev/null"; then
  11109. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11110. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11111. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11112. cat confcache >"$cache_file"
  11113. else
  11114. case $cache_file in #(
  11115. */* | ?:*)
  11116. mv -f confcache "$cache_file"$$ &&
  11117. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11118. *)
  11119. mv -f confcache "$cache_file" ;;
  11120. esac
  11121. fi
  11122. fi
  11123. else
  11124. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11125. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11126. fi
  11127. fi
  11128. rm -f confcache
  11129. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11130. # Let make expand exec_prefix.
  11131. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11132. DEFS=-DHAVE_CONFIG_H
  11133. ac_libobjs=
  11134. ac_ltlibobjs=
  11135. U=
  11136. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11137. # 1. Remove the extension, and $U if already installed.
  11138. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11139. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11140. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11141. # will be set to the directory where LIBOBJS objects are built.
  11142. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11143. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11144. done
  11145. LIBOBJS=$ac_libobjs
  11146. LTLIBOBJS=$ac_ltlibobjs
  11147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11148. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11149. if test -n "$am_sleep_pid"; then
  11150. # Hide warnings about reused PIDs.
  11151. wait $am_sleep_pid 2>/dev/null
  11152. fi
  11153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11154. $as_echo "done" >&6; }
  11155. if test -n "$EXEEXT"; then
  11156. am__EXEEXT_TRUE=
  11157. am__EXEEXT_FALSE='#'
  11158. else
  11159. am__EXEEXT_TRUE='#'
  11160. am__EXEEXT_FALSE=
  11161. fi
  11162. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11163. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  11164. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11165. fi
  11166. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11167. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11168. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11169. fi
  11170. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11171. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11172. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11173. fi
  11174. : "${CONFIG_STATUS=./config.status}"
  11175. ac_write_fail=0
  11176. ac_clean_files_save=$ac_clean_files
  11177. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11178. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11179. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11180. as_write_fail=0
  11181. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11182. #! $SHELL
  11183. # Generated by $as_me.
  11184. # Run this file to recreate the current configuration.
  11185. # Compiler output produced by configure, useful for debugging
  11186. # configure, is in config.log if it exists.
  11187. debug=false
  11188. ac_cs_recheck=false
  11189. ac_cs_silent=false
  11190. SHELL=\${CONFIG_SHELL-$SHELL}
  11191. export SHELL
  11192. _ASEOF
  11193. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11194. ## -------------------- ##
  11195. ## M4sh Initialization. ##
  11196. ## -------------------- ##
  11197. # Be more Bourne compatible
  11198. DUALCASE=1; export DUALCASE # for MKS sh
  11199. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11200. emulate sh
  11201. NULLCMD=:
  11202. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11203. # is contrary to our usage. Disable this feature.
  11204. alias -g '${1+"$@"}'='"$@"'
  11205. setopt NO_GLOB_SUBST
  11206. else
  11207. case `(set -o) 2>/dev/null` in #(
  11208. *posix*) :
  11209. set -o posix ;; #(
  11210. *) :
  11211. ;;
  11212. esac
  11213. fi
  11214. as_nl='
  11215. '
  11216. export as_nl
  11217. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11218. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11219. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11220. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11221. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11222. # but without wasting forks for bash or zsh.
  11223. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11224. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11225. as_echo='print -r --'
  11226. as_echo_n='print -rn --'
  11227. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11228. as_echo='printf %s\n'
  11229. as_echo_n='printf %s'
  11230. else
  11231. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11232. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11233. as_echo_n='/usr/ucb/echo -n'
  11234. else
  11235. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11236. as_echo_n_body='eval
  11237. arg=$1;
  11238. case $arg in #(
  11239. *"$as_nl"*)
  11240. expr "X$arg" : "X\\(.*\\)$as_nl";
  11241. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11242. esac;
  11243. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11244. '
  11245. export as_echo_n_body
  11246. as_echo_n='sh -c $as_echo_n_body as_echo'
  11247. fi
  11248. export as_echo_body
  11249. as_echo='sh -c $as_echo_body as_echo'
  11250. fi
  11251. # The user is always right.
  11252. if test "${PATH_SEPARATOR+set}" != set; then
  11253. PATH_SEPARATOR=:
  11254. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11255. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11256. PATH_SEPARATOR=';'
  11257. }
  11258. fi
  11259. # IFS
  11260. # We need space, tab and new line, in precisely that order. Quoting is
  11261. # there to prevent editors from complaining about space-tab.
  11262. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11263. # splitting by setting IFS to empty value.)
  11264. IFS=" "" $as_nl"
  11265. # Find who we are. Look in the path if we contain no directory separator.
  11266. as_myself=
  11267. case $0 in #((
  11268. *[\\/]* ) as_myself=$0 ;;
  11269. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11270. for as_dir in $PATH
  11271. do
  11272. IFS=$as_save_IFS
  11273. test -z "$as_dir" && as_dir=.
  11274. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11275. done
  11276. IFS=$as_save_IFS
  11277. ;;
  11278. esac
  11279. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11280. # in which case we are not to be found in the path.
  11281. if test "x$as_myself" = x; then
  11282. as_myself=$0
  11283. fi
  11284. if test ! -f "$as_myself"; then
  11285. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11286. exit 1
  11287. fi
  11288. # Unset variables that we do not need and which cause bugs (e.g. in
  11289. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11290. # suppresses any "Segmentation fault" message there. '((' could
  11291. # trigger a bug in pdksh 5.2.14.
  11292. for as_var in BASH_ENV ENV MAIL MAILPATH
  11293. do eval test x\${$as_var+set} = xset \
  11294. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11295. done
  11296. PS1='$ '
  11297. PS2='> '
  11298. PS4='+ '
  11299. # NLS nuisances.
  11300. LC_ALL=C
  11301. export LC_ALL
  11302. LANGUAGE=C
  11303. export LANGUAGE
  11304. # CDPATH.
  11305. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11306. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11307. # ----------------------------------------
  11308. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11309. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11310. # script with STATUS, using 1 if that was 0.
  11311. as_fn_error ()
  11312. {
  11313. as_status=$1; test $as_status -eq 0 && as_status=1
  11314. if test "$4"; then
  11315. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11316. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11317. fi
  11318. $as_echo "$as_me: error: $2" >&2
  11319. as_fn_exit $as_status
  11320. } # as_fn_error
  11321. # as_fn_set_status STATUS
  11322. # -----------------------
  11323. # Set $? to STATUS, without forking.
  11324. as_fn_set_status ()
  11325. {
  11326. return $1
  11327. } # as_fn_set_status
  11328. # as_fn_exit STATUS
  11329. # -----------------
  11330. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11331. as_fn_exit ()
  11332. {
  11333. set +e
  11334. as_fn_set_status $1
  11335. exit $1
  11336. } # as_fn_exit
  11337. # as_fn_unset VAR
  11338. # ---------------
  11339. # Portably unset VAR.
  11340. as_fn_unset ()
  11341. {
  11342. { eval $1=; unset $1;}
  11343. }
  11344. as_unset=as_fn_unset
  11345. # as_fn_append VAR VALUE
  11346. # ----------------------
  11347. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11348. # advantage of any shell optimizations that allow amortized linear growth over
  11349. # repeated appends, instead of the typical quadratic growth present in naive
  11350. # implementations.
  11351. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11352. eval 'as_fn_append ()
  11353. {
  11354. eval $1+=\$2
  11355. }'
  11356. else
  11357. as_fn_append ()
  11358. {
  11359. eval $1=\$$1\$2
  11360. }
  11361. fi # as_fn_append
  11362. # as_fn_arith ARG...
  11363. # ------------------
  11364. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11365. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11366. # must be portable across $(()) and expr.
  11367. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11368. eval 'as_fn_arith ()
  11369. {
  11370. as_val=$(( $* ))
  11371. }'
  11372. else
  11373. as_fn_arith ()
  11374. {
  11375. as_val=`expr "$@" || test $? -eq 1`
  11376. }
  11377. fi # as_fn_arith
  11378. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11379. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11380. as_expr=expr
  11381. else
  11382. as_expr=false
  11383. fi
  11384. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11385. as_basename=basename
  11386. else
  11387. as_basename=false
  11388. fi
  11389. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11390. as_dirname=dirname
  11391. else
  11392. as_dirname=false
  11393. fi
  11394. as_me=`$as_basename -- "$0" ||
  11395. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11396. X"$0" : 'X\(//\)$' \| \
  11397. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11398. $as_echo X/"$0" |
  11399. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11400. s//\1/
  11401. q
  11402. }
  11403. /^X\/\(\/\/\)$/{
  11404. s//\1/
  11405. q
  11406. }
  11407. /^X\/\(\/\).*/{
  11408. s//\1/
  11409. q
  11410. }
  11411. s/.*/./; q'`
  11412. # Avoid depending upon Character Ranges.
  11413. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11414. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11415. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11416. as_cr_digits='0123456789'
  11417. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11418. ECHO_C= ECHO_N= ECHO_T=
  11419. case `echo -n x` in #(((((
  11420. -n*)
  11421. case `echo 'xy\c'` in
  11422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11423. xy) ECHO_C='\c';;
  11424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11425. ECHO_T=' ';;
  11426. esac;;
  11427. *)
  11428. ECHO_N='-n';;
  11429. esac
  11430. rm -f conf$$ conf$$.exe conf$$.file
  11431. if test -d conf$$.dir; then
  11432. rm -f conf$$.dir/conf$$.file
  11433. else
  11434. rm -f conf$$.dir
  11435. mkdir conf$$.dir 2>/dev/null
  11436. fi
  11437. if (echo >conf$$.file) 2>/dev/null; then
  11438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11439. as_ln_s='ln -s'
  11440. # ... but there are two gotchas:
  11441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11443. # In both cases, we have to default to `cp -pR'.
  11444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11445. as_ln_s='cp -pR'
  11446. elif ln conf$$.file conf$$ 2>/dev/null; then
  11447. as_ln_s=ln
  11448. else
  11449. as_ln_s='cp -pR'
  11450. fi
  11451. else
  11452. as_ln_s='cp -pR'
  11453. fi
  11454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11455. rmdir conf$$.dir 2>/dev/null
  11456. # as_fn_mkdir_p
  11457. # -------------
  11458. # Create "$as_dir" as a directory, including parents if necessary.
  11459. as_fn_mkdir_p ()
  11460. {
  11461. case $as_dir in #(
  11462. -*) as_dir=./$as_dir;;
  11463. esac
  11464. test -d "$as_dir" || eval $as_mkdir_p || {
  11465. as_dirs=
  11466. while :; do
  11467. case $as_dir in #(
  11468. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11469. *) as_qdir=$as_dir;;
  11470. esac
  11471. as_dirs="'$as_qdir' $as_dirs"
  11472. as_dir=`$as_dirname -- "$as_dir" ||
  11473. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11474. X"$as_dir" : 'X\(//\)[^/]' \| \
  11475. X"$as_dir" : 'X\(//\)$' \| \
  11476. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11477. $as_echo X"$as_dir" |
  11478. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11479. s//\1/
  11480. q
  11481. }
  11482. /^X\(\/\/\)[^/].*/{
  11483. s//\1/
  11484. q
  11485. }
  11486. /^X\(\/\/\)$/{
  11487. s//\1/
  11488. q
  11489. }
  11490. /^X\(\/\).*/{
  11491. s//\1/
  11492. q
  11493. }
  11494. s/.*/./; q'`
  11495. test -d "$as_dir" && break
  11496. done
  11497. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11498. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11499. } # as_fn_mkdir_p
  11500. if mkdir -p . 2>/dev/null; then
  11501. as_mkdir_p='mkdir -p "$as_dir"'
  11502. else
  11503. test -d ./-p && rmdir ./-p
  11504. as_mkdir_p=false
  11505. fi
  11506. # as_fn_executable_p FILE
  11507. # -----------------------
  11508. # Test if FILE is an executable regular file.
  11509. as_fn_executable_p ()
  11510. {
  11511. test -f "$1" && test -x "$1"
  11512. } # as_fn_executable_p
  11513. as_test_x='test -x'
  11514. as_executable_p=as_fn_executable_p
  11515. # Sed expression to map a string onto a valid CPP name.
  11516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11517. # Sed expression to map a string onto a valid variable name.
  11518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11519. exec 6>&1
  11520. ## ----------------------------------- ##
  11521. ## Main body of $CONFIG_STATUS script. ##
  11522. ## ----------------------------------- ##
  11523. _ASEOF
  11524. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11525. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11526. # Save the log message, to keep $0 and so on meaningful, and to
  11527. # report actual input values of CONFIG_FILES etc. instead of their
  11528. # values after options handling.
  11529. ac_log="
  11530. This file was extended by libogg $as_me 1.3.3, which was
  11531. generated by GNU Autoconf 2.69. Invocation command line was
  11532. CONFIG_FILES = $CONFIG_FILES
  11533. CONFIG_HEADERS = $CONFIG_HEADERS
  11534. CONFIG_LINKS = $CONFIG_LINKS
  11535. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11536. $ $0 $@
  11537. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11538. "
  11539. _ACEOF
  11540. case $ac_config_files in *"
  11541. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11542. esac
  11543. case $ac_config_headers in *"
  11544. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11545. esac
  11546. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11547. # Files that config.status was made for.
  11548. config_files="$ac_config_files"
  11549. config_headers="$ac_config_headers"
  11550. config_commands="$ac_config_commands"
  11551. _ACEOF
  11552. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11553. ac_cs_usage="\
  11554. \`$as_me' instantiates files and other configuration actions
  11555. from templates according to the current configuration. Unless the files
  11556. and actions are specified as TAGs, all are instantiated by default.
  11557. Usage: $0 [OPTION]... [TAG]...
  11558. -h, --help print this help, then exit
  11559. -V, --version print version number and configuration settings, then exit
  11560. --config print configuration, then exit
  11561. -q, --quiet, --silent
  11562. do not print progress messages
  11563. -d, --debug don't remove temporary files
  11564. --recheck update $as_me by reconfiguring in the same conditions
  11565. --file=FILE[:TEMPLATE]
  11566. instantiate the configuration file FILE
  11567. --header=FILE[:TEMPLATE]
  11568. instantiate the configuration header FILE
  11569. Configuration files:
  11570. $config_files
  11571. Configuration headers:
  11572. $config_headers
  11573. Configuration commands:
  11574. $config_commands
  11575. Report bugs to <ogg-dev@xiph.org>."
  11576. _ACEOF
  11577. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11578. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11579. ac_cs_version="\\
  11580. libogg config.status 1.3.3
  11581. configured by $0, generated by GNU Autoconf 2.69,
  11582. with options \\"\$ac_cs_config\\"
  11583. Copyright (C) 2012 Free Software Foundation, Inc.
  11584. This config.status script is free software; the Free Software Foundation
  11585. gives unlimited permission to copy, distribute and modify it."
  11586. ac_pwd='$ac_pwd'
  11587. srcdir='$srcdir'
  11588. INSTALL='$INSTALL'
  11589. MKDIR_P='$MKDIR_P'
  11590. AWK='$AWK'
  11591. test -n "\$AWK" || AWK=awk
  11592. _ACEOF
  11593. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11594. # The default lists apply if the user does not specify any file.
  11595. ac_need_defaults=:
  11596. while test $# != 0
  11597. do
  11598. case $1 in
  11599. --*=?*)
  11600. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11601. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11602. ac_shift=:
  11603. ;;
  11604. --*=)
  11605. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11606. ac_optarg=
  11607. ac_shift=:
  11608. ;;
  11609. *)
  11610. ac_option=$1
  11611. ac_optarg=$2
  11612. ac_shift=shift
  11613. ;;
  11614. esac
  11615. case $ac_option in
  11616. # Handling of the options.
  11617. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11618. ac_cs_recheck=: ;;
  11619. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11620. $as_echo "$ac_cs_version"; exit ;;
  11621. --config | --confi | --conf | --con | --co | --c )
  11622. $as_echo "$ac_cs_config"; exit ;;
  11623. --debug | --debu | --deb | --de | --d | -d )
  11624. debug=: ;;
  11625. --file | --fil | --fi | --f )
  11626. $ac_shift
  11627. case $ac_optarg in
  11628. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11629. '') as_fn_error $? "missing file argument" ;;
  11630. esac
  11631. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11632. ac_need_defaults=false;;
  11633. --header | --heade | --head | --hea )
  11634. $ac_shift
  11635. case $ac_optarg in
  11636. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11637. esac
  11638. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11639. ac_need_defaults=false;;
  11640. --he | --h)
  11641. # Conflict between --help and --header
  11642. as_fn_error $? "ambiguous option: \`$1'
  11643. Try \`$0 --help' for more information.";;
  11644. --help | --hel | -h )
  11645. $as_echo "$ac_cs_usage"; exit ;;
  11646. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11647. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11648. ac_cs_silent=: ;;
  11649. # This is an error.
  11650. -*) as_fn_error $? "unrecognized option: \`$1'
  11651. Try \`$0 --help' for more information." ;;
  11652. *) as_fn_append ac_config_targets " $1"
  11653. ac_need_defaults=false ;;
  11654. esac
  11655. shift
  11656. done
  11657. ac_configure_extra_args=
  11658. if $ac_cs_silent; then
  11659. exec 6>/dev/null
  11660. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11661. fi
  11662. _ACEOF
  11663. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11664. if \$ac_cs_recheck; then
  11665. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11666. shift
  11667. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11668. CONFIG_SHELL='$SHELL'
  11669. export CONFIG_SHELL
  11670. exec "\$@"
  11671. fi
  11672. _ACEOF
  11673. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11674. exec 5>>config.log
  11675. {
  11676. echo
  11677. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11678. ## Running $as_me. ##
  11679. _ASBOX
  11680. $as_echo "$ac_log"
  11681. } >&5
  11682. _ACEOF
  11683. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11684. #
  11685. # INIT-COMMANDS
  11686. #
  11687. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11688. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11689. # if CDPATH is set.
  11690. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11691. sed_quote_subst='$sed_quote_subst'
  11692. double_quote_subst='$double_quote_subst'
  11693. delay_variable_subst='$delay_variable_subst'
  11694. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11695. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11696. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11697. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11698. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11699. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11700. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  11701. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11702. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11703. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11704. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11705. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11706. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11707. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11708. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11709. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11710. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11711. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11712. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11713. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11714. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11715. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11716. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11717. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11718. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11719. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11720. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11721. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11722. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11723. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11724. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11725. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11726. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11727. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11728. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11729. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11730. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11731. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11732. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11733. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11734. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11735. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11736. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11737. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11738. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11739. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11740. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11741. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11742. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11743. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11744. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11745. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11746. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11747. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11748. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11749. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11750. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  11751. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11752. 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"`'
  11753. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  11754. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11755. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11756. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  11757. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11758. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11759. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11760. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11761. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11762. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11763. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11764. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11765. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11766. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11767. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11768. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11769. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11770. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11771. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11772. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11773. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11774. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11775. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11776. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11777. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11778. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11779. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11780. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11781. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11782. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11783. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11784. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11785. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11786. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11787. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11788. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11789. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11790. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11791. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11792. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11793. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11794. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11795. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11796. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11797. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11798. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11799. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11800. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11801. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11802. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11803. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11804. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11805. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11806. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11807. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11808. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11809. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11810. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11811. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11812. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11813. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11814. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11815. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11816. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11817. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11818. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11819. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11820. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11821. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  11822. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  11823. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11824. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11825. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11826. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11827. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11828. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11829. LTCC='$LTCC'
  11830. LTCFLAGS='$LTCFLAGS'
  11831. compiler='$compiler_DEFAULT'
  11832. # A function that is used when there is no print builtin or printf.
  11833. func_fallback_echo ()
  11834. {
  11835. eval 'cat <<_LTECHO_EOF
  11836. \$1
  11837. _LTECHO_EOF'
  11838. }
  11839. # Quote evaled strings.
  11840. for var in SHELL \
  11841. ECHO \
  11842. PATH_SEPARATOR \
  11843. SED \
  11844. GREP \
  11845. EGREP \
  11846. FGREP \
  11847. LD \
  11848. NM \
  11849. LN_S \
  11850. lt_SP2NL \
  11851. lt_NL2SP \
  11852. reload_flag \
  11853. OBJDUMP \
  11854. deplibs_check_method \
  11855. file_magic_cmd \
  11856. file_magic_glob \
  11857. want_nocaseglob \
  11858. DLLTOOL \
  11859. sharedlib_from_linklib_cmd \
  11860. AR \
  11861. AR_FLAGS \
  11862. archiver_list_spec \
  11863. STRIP \
  11864. RANLIB \
  11865. CC \
  11866. CFLAGS \
  11867. compiler \
  11868. lt_cv_sys_global_symbol_pipe \
  11869. lt_cv_sys_global_symbol_to_cdecl \
  11870. lt_cv_sys_global_symbol_to_import \
  11871. lt_cv_sys_global_symbol_to_c_name_address \
  11872. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11873. lt_cv_nm_interface \
  11874. nm_file_list_spec \
  11875. lt_cv_truncate_bin \
  11876. lt_prog_compiler_no_builtin_flag \
  11877. lt_prog_compiler_pic \
  11878. lt_prog_compiler_wl \
  11879. lt_prog_compiler_static \
  11880. lt_cv_prog_compiler_c_o \
  11881. need_locks \
  11882. MANIFEST_TOOL \
  11883. DSYMUTIL \
  11884. NMEDIT \
  11885. LIPO \
  11886. OTOOL \
  11887. OTOOL64 \
  11888. shrext_cmds \
  11889. export_dynamic_flag_spec \
  11890. whole_archive_flag_spec \
  11891. compiler_needs_object \
  11892. with_gnu_ld \
  11893. allow_undefined_flag \
  11894. no_undefined_flag \
  11895. hardcode_libdir_flag_spec \
  11896. hardcode_libdir_separator \
  11897. exclude_expsyms \
  11898. include_expsyms \
  11899. file_list_spec \
  11900. variables_saved_for_relink \
  11901. libname_spec \
  11902. library_names_spec \
  11903. soname_spec \
  11904. install_override_mode \
  11905. finish_eval \
  11906. old_striplib \
  11907. striplib; do
  11908. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11909. *[\\\\\\\`\\"\\\$]*)
  11910. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  11911. ;;
  11912. *)
  11913. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11914. ;;
  11915. esac
  11916. done
  11917. # Double-quote double-evaled strings.
  11918. for var in reload_cmds \
  11919. old_postinstall_cmds \
  11920. old_postuninstall_cmds \
  11921. old_archive_cmds \
  11922. extract_expsyms_cmds \
  11923. old_archive_from_new_cmds \
  11924. old_archive_from_expsyms_cmds \
  11925. archive_cmds \
  11926. archive_expsym_cmds \
  11927. module_cmds \
  11928. module_expsym_cmds \
  11929. export_symbols_cmds \
  11930. prelink_cmds \
  11931. postlink_cmds \
  11932. postinstall_cmds \
  11933. postuninstall_cmds \
  11934. finish_cmds \
  11935. sys_lib_search_path_spec \
  11936. configure_time_dlsearch_path \
  11937. configure_time_lt_sys_library_path; do
  11938. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11939. *[\\\\\\\`\\"\\\$]*)
  11940. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  11941. ;;
  11942. *)
  11943. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11944. ;;
  11945. esac
  11946. done
  11947. ac_aux_dir='$ac_aux_dir'
  11948. # See if we are running on zsh, and set the options that allow our
  11949. # commands through without removal of \ escapes INIT.
  11950. if test -n "\${ZSH_VERSION+set}"; then
  11951. setopt NO_GLOB_SUBST
  11952. fi
  11953. PACKAGE='$PACKAGE'
  11954. VERSION='$VERSION'
  11955. RM='$RM'
  11956. ofile='$ofile'
  11957. _ACEOF
  11958. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11959. # Handling of arguments.
  11960. for ac_config_target in $ac_config_targets
  11961. do
  11962. case $ac_config_target in
  11963. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11964. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11965. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11966. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11967. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  11968. "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
  11969. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  11970. "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
  11971. "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
  11972. "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
  11973. "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
  11974. "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
  11975. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11976. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11977. esac
  11978. done
  11979. # If the user did not use the arguments to specify the items to instantiate,
  11980. # then the envvar interface is used. Set only those that are not.
  11981. # We use the long form for the default assignment because of an extremely
  11982. # bizarre bug on SunOS 4.1.3.
  11983. if $ac_need_defaults; then
  11984. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11985. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11986. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11987. fi
  11988. # Have a temporary directory for convenience. Make it in the build tree
  11989. # simply because there is no reason against having it here, and in addition,
  11990. # creating and moving files from /tmp can sometimes cause problems.
  11991. # Hook for its removal unless debugging.
  11992. # Note that there is a small window in which the directory will not be cleaned:
  11993. # after its creation but before its name has been assigned to `$tmp'.
  11994. $debug ||
  11995. {
  11996. tmp= ac_tmp=
  11997. trap 'exit_status=$?
  11998. : "${ac_tmp:=$tmp}"
  11999. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12000. ' 0
  12001. trap 'as_fn_exit 1' 1 2 13 15
  12002. }
  12003. # Create a (secure) tmp directory for tmp files.
  12004. {
  12005. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12006. test -d "$tmp"
  12007. } ||
  12008. {
  12009. tmp=./conf$$-$RANDOM
  12010. (umask 077 && mkdir "$tmp")
  12011. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12012. ac_tmp=$tmp
  12013. # Set up the scripts for CONFIG_FILES section.
  12014. # No need to generate them if there are no CONFIG_FILES.
  12015. # This happens for instance with `./config.status config.h'.
  12016. if test -n "$CONFIG_FILES"; then
  12017. ac_cr=`echo X | tr X '\015'`
  12018. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12019. # But we know of no other shell where ac_cr would be empty at this
  12020. # point, so we can use a bashism as a fallback.
  12021. if test "x$ac_cr" = x; then
  12022. eval ac_cr=\$\'\\r\'
  12023. fi
  12024. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12025. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12026. ac_cs_awk_cr='\\r'
  12027. else
  12028. ac_cs_awk_cr=$ac_cr
  12029. fi
  12030. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12031. _ACEOF
  12032. {
  12033. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12034. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12035. echo "_ACEOF"
  12036. } >conf$$subs.sh ||
  12037. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12038. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12039. ac_delim='%!_!# '
  12040. for ac_last_try in false false false false false :; do
  12041. . ./conf$$subs.sh ||
  12042. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12043. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12044. if test $ac_delim_n = $ac_delim_num; then
  12045. break
  12046. elif $ac_last_try; then
  12047. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12048. else
  12049. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12050. fi
  12051. done
  12052. rm -f conf$$subs.sh
  12053. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12054. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12055. _ACEOF
  12056. sed -n '
  12057. h
  12058. s/^/S["/; s/!.*/"]=/
  12059. p
  12060. g
  12061. s/^[^!]*!//
  12062. :repl
  12063. t repl
  12064. s/'"$ac_delim"'$//
  12065. t delim
  12066. :nl
  12067. h
  12068. s/\(.\{148\}\)..*/\1/
  12069. t more1
  12070. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12071. p
  12072. n
  12073. b repl
  12074. :more1
  12075. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12076. p
  12077. g
  12078. s/.\{148\}//
  12079. t nl
  12080. :delim
  12081. h
  12082. s/\(.\{148\}\)..*/\1/
  12083. t more2
  12084. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12085. p
  12086. b
  12087. :more2
  12088. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12089. p
  12090. g
  12091. s/.\{148\}//
  12092. t delim
  12093. ' <conf$$subs.awk | sed '
  12094. /^[^""]/{
  12095. N
  12096. s/\n//
  12097. }
  12098. ' >>$CONFIG_STATUS || ac_write_fail=1
  12099. rm -f conf$$subs.awk
  12100. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12101. _ACAWK
  12102. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12103. for (key in S) S_is_set[key] = 1
  12104. FS = ""
  12105. }
  12106. {
  12107. line = $ 0
  12108. nfields = split(line, field, "@")
  12109. substed = 0
  12110. len = length(field[1])
  12111. for (i = 2; i < nfields; i++) {
  12112. key = field[i]
  12113. keylen = length(key)
  12114. if (S_is_set[key]) {
  12115. value = S[key]
  12116. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12117. len += length(value) + length(field[++i])
  12118. substed = 1
  12119. } else
  12120. len += 1 + keylen
  12121. }
  12122. print line
  12123. }
  12124. _ACAWK
  12125. _ACEOF
  12126. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12127. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12128. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12129. else
  12130. cat
  12131. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12132. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12133. _ACEOF
  12134. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12135. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12136. # trailing colons and then remove the whole line if VPATH becomes empty
  12137. # (actually we leave an empty line to preserve line numbers).
  12138. if test "x$srcdir" = x.; then
  12139. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12140. h
  12141. s///
  12142. s/^/:/
  12143. s/[ ]*$/:/
  12144. s/:\$(srcdir):/:/g
  12145. s/:\${srcdir}:/:/g
  12146. s/:@srcdir@:/:/g
  12147. s/^:*//
  12148. s/:*$//
  12149. x
  12150. s/\(=[ ]*\).*/\1/
  12151. G
  12152. s/\n//
  12153. s/^[^=]*=[ ]*$//
  12154. }'
  12155. fi
  12156. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12157. fi # test -n "$CONFIG_FILES"
  12158. # Set up the scripts for CONFIG_HEADERS section.
  12159. # No need to generate them if there are no CONFIG_HEADERS.
  12160. # This happens for instance with `./config.status Makefile'.
  12161. if test -n "$CONFIG_HEADERS"; then
  12162. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12163. BEGIN {
  12164. _ACEOF
  12165. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12166. # here-document in config.status, that substitutes the proper values into
  12167. # config.h.in to produce config.h.
  12168. # Create a delimiter string that does not exist in confdefs.h, to ease
  12169. # handling of long lines.
  12170. ac_delim='%!_!# '
  12171. for ac_last_try in false false :; do
  12172. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12173. if test -z "$ac_tt"; then
  12174. break
  12175. elif $ac_last_try; then
  12176. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12177. else
  12178. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12179. fi
  12180. done
  12181. # For the awk script, D is an array of macro values keyed by name,
  12182. # likewise P contains macro parameters if any. Preserve backslash
  12183. # newline sequences.
  12184. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12185. sed -n '
  12186. s/.\{148\}/&'"$ac_delim"'/g
  12187. t rset
  12188. :rset
  12189. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12190. t def
  12191. d
  12192. :def
  12193. s/\\$//
  12194. t bsnl
  12195. s/["\\]/\\&/g
  12196. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12197. D["\1"]=" \3"/p
  12198. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12199. d
  12200. :bsnl
  12201. s/["\\]/\\&/g
  12202. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12203. D["\1"]=" \3\\\\\\n"\\/p
  12204. t cont
  12205. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12206. t cont
  12207. d
  12208. :cont
  12209. n
  12210. s/.\{148\}/&'"$ac_delim"'/g
  12211. t clear
  12212. :clear
  12213. s/\\$//
  12214. t bsnlc
  12215. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12216. d
  12217. :bsnlc
  12218. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12219. b cont
  12220. ' <confdefs.h | sed '
  12221. s/'"$ac_delim"'/"\\\
  12222. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12223. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12224. for (key in D) D_is_set[key] = 1
  12225. FS = ""
  12226. }
  12227. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12228. line = \$ 0
  12229. split(line, arg, " ")
  12230. if (arg[1] == "#") {
  12231. defundef = arg[2]
  12232. mac1 = arg[3]
  12233. } else {
  12234. defundef = substr(arg[1], 2)
  12235. mac1 = arg[2]
  12236. }
  12237. split(mac1, mac2, "(") #)
  12238. macro = mac2[1]
  12239. prefix = substr(line, 1, index(line, defundef) - 1)
  12240. if (D_is_set[macro]) {
  12241. # Preserve the white space surrounding the "#".
  12242. print prefix "define", macro P[macro] D[macro]
  12243. next
  12244. } else {
  12245. # Replace #undef with comments. This is necessary, for example,
  12246. # in the case of _POSIX_SOURCE, which is predefined and required
  12247. # on some systems where configure will not decide to define it.
  12248. if (defundef == "undef") {
  12249. print "/*", prefix defundef, macro, "*/"
  12250. next
  12251. }
  12252. }
  12253. }
  12254. { print }
  12255. _ACAWK
  12256. _ACEOF
  12257. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12258. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12259. fi # test -n "$CONFIG_HEADERS"
  12260. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12261. shift
  12262. for ac_tag
  12263. do
  12264. case $ac_tag in
  12265. :[FHLC]) ac_mode=$ac_tag; continue;;
  12266. esac
  12267. case $ac_mode$ac_tag in
  12268. :[FHL]*:*);;
  12269. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12270. :[FH]-) ac_tag=-:-;;
  12271. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12272. esac
  12273. ac_save_IFS=$IFS
  12274. IFS=:
  12275. set x $ac_tag
  12276. IFS=$ac_save_IFS
  12277. shift
  12278. ac_file=$1
  12279. shift
  12280. case $ac_mode in
  12281. :L) ac_source=$1;;
  12282. :[FH])
  12283. ac_file_inputs=
  12284. for ac_f
  12285. do
  12286. case $ac_f in
  12287. -) ac_f="$ac_tmp/stdin";;
  12288. *) # Look for the file first in the build tree, then in the source tree
  12289. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12290. # because $ac_f cannot contain `:'.
  12291. test -f "$ac_f" ||
  12292. case $ac_f in
  12293. [\\/$]*) false;;
  12294. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12295. esac ||
  12296. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12297. esac
  12298. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12299. as_fn_append ac_file_inputs " '$ac_f'"
  12300. done
  12301. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12302. # use $as_me), people would be surprised to read:
  12303. # /* config.h. Generated by config.status. */
  12304. configure_input='Generated from '`
  12305. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12306. `' by configure.'
  12307. if test x"$ac_file" != x-; then
  12308. configure_input="$ac_file. $configure_input"
  12309. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12310. $as_echo "$as_me: creating $ac_file" >&6;}
  12311. fi
  12312. # Neutralize special characters interpreted by sed in replacement strings.
  12313. case $configure_input in #(
  12314. *\&* | *\|* | *\\* )
  12315. ac_sed_conf_input=`$as_echo "$configure_input" |
  12316. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12317. *) ac_sed_conf_input=$configure_input;;
  12318. esac
  12319. case $ac_tag in
  12320. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12321. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12322. esac
  12323. ;;
  12324. esac
  12325. ac_dir=`$as_dirname -- "$ac_file" ||
  12326. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12327. X"$ac_file" : 'X\(//\)[^/]' \| \
  12328. X"$ac_file" : 'X\(//\)$' \| \
  12329. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12330. $as_echo X"$ac_file" |
  12331. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12332. s//\1/
  12333. q
  12334. }
  12335. /^X\(\/\/\)[^/].*/{
  12336. s//\1/
  12337. q
  12338. }
  12339. /^X\(\/\/\)$/{
  12340. s//\1/
  12341. q
  12342. }
  12343. /^X\(\/\).*/{
  12344. s//\1/
  12345. q
  12346. }
  12347. s/.*/./; q'`
  12348. as_dir="$ac_dir"; as_fn_mkdir_p
  12349. ac_builddir=.
  12350. case "$ac_dir" in
  12351. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12352. *)
  12353. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12354. # A ".." for each directory in $ac_dir_suffix.
  12355. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12356. case $ac_top_builddir_sub in
  12357. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12358. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12359. esac ;;
  12360. esac
  12361. ac_abs_top_builddir=$ac_pwd
  12362. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12363. # for backward compatibility:
  12364. ac_top_builddir=$ac_top_build_prefix
  12365. case $srcdir in
  12366. .) # We are building in place.
  12367. ac_srcdir=.
  12368. ac_top_srcdir=$ac_top_builddir_sub
  12369. ac_abs_top_srcdir=$ac_pwd ;;
  12370. [\\/]* | ?:[\\/]* ) # Absolute name.
  12371. ac_srcdir=$srcdir$ac_dir_suffix;
  12372. ac_top_srcdir=$srcdir
  12373. ac_abs_top_srcdir=$srcdir ;;
  12374. *) # Relative name.
  12375. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12376. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12377. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12378. esac
  12379. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12380. case $ac_mode in
  12381. :F)
  12382. #
  12383. # CONFIG_FILE
  12384. #
  12385. case $INSTALL in
  12386. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12387. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12388. esac
  12389. ac_MKDIR_P=$MKDIR_P
  12390. case $MKDIR_P in
  12391. [\\/$]* | ?:[\\/]* ) ;;
  12392. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12393. esac
  12394. _ACEOF
  12395. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12396. # If the template does not know about datarootdir, expand it.
  12397. # FIXME: This hack should be removed a few years after 2.60.
  12398. ac_datarootdir_hack=; ac_datarootdir_seen=
  12399. ac_sed_dataroot='
  12400. /datarootdir/ {
  12401. p
  12402. q
  12403. }
  12404. /@datadir@/p
  12405. /@docdir@/p
  12406. /@infodir@/p
  12407. /@localedir@/p
  12408. /@mandir@/p'
  12409. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12410. *datarootdir*) ac_datarootdir_seen=yes;;
  12411. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12413. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12414. _ACEOF
  12415. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12416. ac_datarootdir_hack='
  12417. s&@datadir@&$datadir&g
  12418. s&@docdir@&$docdir&g
  12419. s&@infodir@&$infodir&g
  12420. s&@localedir@&$localedir&g
  12421. s&@mandir@&$mandir&g
  12422. s&\\\${datarootdir}&$datarootdir&g' ;;
  12423. esac
  12424. _ACEOF
  12425. # Neutralize VPATH when `$srcdir' = `.'.
  12426. # Shell code in configure.ac might set extrasub.
  12427. # FIXME: do we really want to maintain this feature?
  12428. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12429. ac_sed_extra="$ac_vpsub
  12430. $extrasub
  12431. _ACEOF
  12432. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12433. :t
  12434. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12435. s|@configure_input@|$ac_sed_conf_input|;t t
  12436. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12437. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12438. s&@srcdir@&$ac_srcdir&;t t
  12439. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12440. s&@top_srcdir@&$ac_top_srcdir&;t t
  12441. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12442. s&@builddir@&$ac_builddir&;t t
  12443. s&@abs_builddir@&$ac_abs_builddir&;t t
  12444. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12445. s&@INSTALL@&$ac_INSTALL&;t t
  12446. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12447. $ac_datarootdir_hack
  12448. "
  12449. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12450. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12451. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12452. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12453. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12454. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12455. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12456. which seems to be undefined. Please make sure it is defined" >&5
  12457. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12458. which seems to be undefined. Please make sure it is defined" >&2;}
  12459. rm -f "$ac_tmp/stdin"
  12460. case $ac_file in
  12461. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12462. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12463. esac \
  12464. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12465. ;;
  12466. :H)
  12467. #
  12468. # CONFIG_HEADER
  12469. #
  12470. if test x"$ac_file" != x-; then
  12471. {
  12472. $as_echo "/* $configure_input */" \
  12473. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12474. } >"$ac_tmp/config.h" \
  12475. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12476. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12477. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12478. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12479. else
  12480. rm -f "$ac_file"
  12481. mv "$ac_tmp/config.h" "$ac_file" \
  12482. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12483. fi
  12484. else
  12485. $as_echo "/* $configure_input */" \
  12486. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12487. || as_fn_error $? "could not create -" "$LINENO" 5
  12488. fi
  12489. # Compute "$ac_file"'s index in $config_headers.
  12490. _am_arg="$ac_file"
  12491. _am_stamp_count=1
  12492. for _am_header in $config_headers :; do
  12493. case $_am_header in
  12494. $_am_arg | $_am_arg:* )
  12495. break ;;
  12496. * )
  12497. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12498. esac
  12499. done
  12500. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12501. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12502. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12503. X"$_am_arg" : 'X\(//\)$' \| \
  12504. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12505. $as_echo X"$_am_arg" |
  12506. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12507. s//\1/
  12508. q
  12509. }
  12510. /^X\(\/\/\)[^/].*/{
  12511. s//\1/
  12512. q
  12513. }
  12514. /^X\(\/\/\)$/{
  12515. s//\1/
  12516. q
  12517. }
  12518. /^X\(\/\).*/{
  12519. s//\1/
  12520. q
  12521. }
  12522. s/.*/./; q'`/stamp-h$_am_stamp_count
  12523. ;;
  12524. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12525. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12526. ;;
  12527. esac
  12528. case $ac_file$ac_mode in
  12529. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12530. # Older Autoconf quotes --file arguments for eval, but not when files
  12531. # are listed without --file. Let's play safe and only enable the eval
  12532. # if we detect the quoting.
  12533. case $CONFIG_FILES in
  12534. *\'*) eval set x "$CONFIG_FILES" ;;
  12535. *) set x $CONFIG_FILES ;;
  12536. esac
  12537. shift
  12538. for mf
  12539. do
  12540. # Strip MF so we end up with the name of the file.
  12541. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12542. # Check whether this is an Automake generated Makefile or not.
  12543. # We used to match only the files named 'Makefile.in', but
  12544. # some people rename them; so instead we look at the file content.
  12545. # Grep'ing the first line is not enough: some people post-process
  12546. # each Makefile.in and add a new line on top of each file to say so.
  12547. # Grep'ing the whole file is not good either: AIX grep has a line
  12548. # limit of 2048, but all sed's we know have understand at least 4000.
  12549. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12550. dirpart=`$as_dirname -- "$mf" ||
  12551. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12552. X"$mf" : 'X\(//\)[^/]' \| \
  12553. X"$mf" : 'X\(//\)$' \| \
  12554. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12555. $as_echo X"$mf" |
  12556. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12557. s//\1/
  12558. q
  12559. }
  12560. /^X\(\/\/\)[^/].*/{
  12561. s//\1/
  12562. q
  12563. }
  12564. /^X\(\/\/\)$/{
  12565. s//\1/
  12566. q
  12567. }
  12568. /^X\(\/\).*/{
  12569. s//\1/
  12570. q
  12571. }
  12572. s/.*/./; q'`
  12573. else
  12574. continue
  12575. fi
  12576. # Extract the definition of DEPDIR, am__include, and am__quote
  12577. # from the Makefile without running 'make'.
  12578. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12579. test -z "$DEPDIR" && continue
  12580. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12581. test -z "$am__include" && continue
  12582. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12583. # Find all dependency output files, they are included files with
  12584. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12585. # simplest approach to changing $(DEPDIR) to its actual value in the
  12586. # expansion.
  12587. for file in `sed -n "
  12588. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12589. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12590. # Make sure the directory exists.
  12591. test -f "$dirpart/$file" && continue
  12592. fdir=`$as_dirname -- "$file" ||
  12593. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12594. X"$file" : 'X\(//\)[^/]' \| \
  12595. X"$file" : 'X\(//\)$' \| \
  12596. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12597. $as_echo X"$file" |
  12598. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12599. s//\1/
  12600. q
  12601. }
  12602. /^X\(\/\/\)[^/].*/{
  12603. s//\1/
  12604. q
  12605. }
  12606. /^X\(\/\/\)$/{
  12607. s//\1/
  12608. q
  12609. }
  12610. /^X\(\/\).*/{
  12611. s//\1/
  12612. q
  12613. }
  12614. s/.*/./; q'`
  12615. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12616. # echo "creating $dirpart/$file"
  12617. echo '# dummy' > "$dirpart/$file"
  12618. done
  12619. done
  12620. }
  12621. ;;
  12622. "libtool":C)
  12623. # See if we are running on zsh, and set the options that allow our
  12624. # commands through without removal of \ escapes.
  12625. if test -n "${ZSH_VERSION+set}"; then
  12626. setopt NO_GLOB_SUBST
  12627. fi
  12628. cfgfile=${ofile}T
  12629. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12630. $RM "$cfgfile"
  12631. cat <<_LT_EOF >> "$cfgfile"
  12632. #! $SHELL
  12633. # Generated automatically by $as_me ($PACKAGE) $VERSION
  12634. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12635. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12636. # Provide generalized library-building support services.
  12637. # Written by Gordon Matzigkeit, 1996
  12638. # Copyright (C) 2014 Free Software Foundation, Inc.
  12639. # This is free software; see the source for copying conditions. There is NO
  12640. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12641. # GNU Libtool is free software; you can redistribute it and/or modify
  12642. # it under the terms of the GNU General Public License as published by
  12643. # the Free Software Foundation; either version 2 of of the License, or
  12644. # (at your option) any later version.
  12645. #
  12646. # As a special exception to the GNU General Public License, if you
  12647. # distribute this file as part of a program or library that is built
  12648. # using GNU Libtool, you may include this file under the same
  12649. # distribution terms that you use for the rest of that program.
  12650. #
  12651. # GNU Libtool is distributed in the hope that it will be useful, but
  12652. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12653. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12654. # GNU General Public License for more details.
  12655. #
  12656. # You should have received a copy of the GNU General Public License
  12657. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  12658. # The names of the tagged configurations supported by this script.
  12659. available_tags=''
  12660. # Configured defaults for sys_lib_dlsearch_path munging.
  12661. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  12662. # ### BEGIN LIBTOOL CONFIG
  12663. # Which release of libtool.m4 was used?
  12664. macro_version=$macro_version
  12665. macro_revision=$macro_revision
  12666. # Whether or not to build shared libraries.
  12667. build_libtool_libs=$enable_shared
  12668. # Whether or not to build static libraries.
  12669. build_old_libs=$enable_static
  12670. # What type of objects to build.
  12671. pic_mode=$pic_mode
  12672. # Whether or not to optimize for fast installation.
  12673. fast_install=$enable_fast_install
  12674. # Shared archive member basename,for filename based shared library versioning on AIX.
  12675. shared_archive_member_spec=$shared_archive_member_spec
  12676. # Shell to use when invoking shell scripts.
  12677. SHELL=$lt_SHELL
  12678. # An echo program that protects backslashes.
  12679. ECHO=$lt_ECHO
  12680. # The PATH separator for the build system.
  12681. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12682. # The host system.
  12683. host_alias=$host_alias
  12684. host=$host
  12685. host_os=$host_os
  12686. # The build system.
  12687. build_alias=$build_alias
  12688. build=$build
  12689. build_os=$build_os
  12690. # A sed program that does not truncate output.
  12691. SED=$lt_SED
  12692. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12693. Xsed="\$SED -e 1s/^X//"
  12694. # A grep program that handles long lines.
  12695. GREP=$lt_GREP
  12696. # An ERE matcher.
  12697. EGREP=$lt_EGREP
  12698. # A literal string matcher.
  12699. FGREP=$lt_FGREP
  12700. # A BSD- or MS-compatible name lister.
  12701. NM=$lt_NM
  12702. # Whether we need soft or hard links.
  12703. LN_S=$lt_LN_S
  12704. # What is the maximum length of a command?
  12705. max_cmd_len=$max_cmd_len
  12706. # Object file suffix (normally "o").
  12707. objext=$ac_objext
  12708. # Executable file suffix (normally "").
  12709. exeext=$exeext
  12710. # whether the shell understands "unset".
  12711. lt_unset=$lt_unset
  12712. # turn spaces into newlines.
  12713. SP2NL=$lt_lt_SP2NL
  12714. # turn newlines into spaces.
  12715. NL2SP=$lt_lt_NL2SP
  12716. # convert \$build file names to \$host format.
  12717. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12718. # convert \$build files to toolchain format.
  12719. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12720. # An object symbol dumper.
  12721. OBJDUMP=$lt_OBJDUMP
  12722. # Method to check whether dependent libraries are shared objects.
  12723. deplibs_check_method=$lt_deplibs_check_method
  12724. # Command to use when deplibs_check_method = "file_magic".
  12725. file_magic_cmd=$lt_file_magic_cmd
  12726. # How to find potential files when deplibs_check_method = "file_magic".
  12727. file_magic_glob=$lt_file_magic_glob
  12728. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12729. want_nocaseglob=$lt_want_nocaseglob
  12730. # DLL creation program.
  12731. DLLTOOL=$lt_DLLTOOL
  12732. # Command to associate shared and link libraries.
  12733. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12734. # The archiver.
  12735. AR=$lt_AR
  12736. # Flags to create an archive.
  12737. AR_FLAGS=$lt_AR_FLAGS
  12738. # How to feed a file listing to the archiver.
  12739. archiver_list_spec=$lt_archiver_list_spec
  12740. # A symbol stripping program.
  12741. STRIP=$lt_STRIP
  12742. # Commands used to install an old-style archive.
  12743. RANLIB=$lt_RANLIB
  12744. old_postinstall_cmds=$lt_old_postinstall_cmds
  12745. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12746. # Whether to use a lock for old archive extraction.
  12747. lock_old_archive_extraction=$lock_old_archive_extraction
  12748. # A C compiler.
  12749. LTCC=$lt_CC
  12750. # LTCC compiler flags.
  12751. LTCFLAGS=$lt_CFLAGS
  12752. # Take the output of nm and produce a listing of raw symbols and C names.
  12753. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12754. # Transform the output of nm in a proper C declaration.
  12755. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12756. # Transform the output of nm into a list of symbols to manually relocate.
  12757. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  12758. # Transform the output of nm in a C name address pair.
  12759. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12760. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12761. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12762. # The name lister interface.
  12763. nm_interface=$lt_lt_cv_nm_interface
  12764. # Specify filename containing input files for \$NM.
  12765. nm_file_list_spec=$lt_nm_file_list_spec
  12766. # The root where to search for dependent libraries,and where our libraries should be installed.
  12767. lt_sysroot=$lt_sysroot
  12768. # Command to truncate a binary pipe.
  12769. lt_truncate_bin=$lt_lt_cv_truncate_bin
  12770. # The name of the directory that contains temporary libtool files.
  12771. objdir=$objdir
  12772. # Used to examine libraries when file_magic_cmd begins with "file".
  12773. MAGIC_CMD=$MAGIC_CMD
  12774. # Must we lock files when doing compilation?
  12775. need_locks=$lt_need_locks
  12776. # Manifest tool.
  12777. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12778. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12779. DSYMUTIL=$lt_DSYMUTIL
  12780. # Tool to change global to local symbols on Mac OS X.
  12781. NMEDIT=$lt_NMEDIT
  12782. # Tool to manipulate fat objects and archives on Mac OS X.
  12783. LIPO=$lt_LIPO
  12784. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12785. OTOOL=$lt_OTOOL
  12786. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12787. OTOOL64=$lt_OTOOL64
  12788. # Old archive suffix (normally "a").
  12789. libext=$libext
  12790. # Shared library suffix (normally ".so").
  12791. shrext_cmds=$lt_shrext_cmds
  12792. # The commands to extract the exported symbol list from a shared archive.
  12793. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12794. # Variables whose values should be saved in libtool wrapper scripts and
  12795. # restored at link time.
  12796. variables_saved_for_relink=$lt_variables_saved_for_relink
  12797. # Do we need the "lib" prefix for modules?
  12798. need_lib_prefix=$need_lib_prefix
  12799. # Do we need a version for libraries?
  12800. need_version=$need_version
  12801. # Library versioning type.
  12802. version_type=$version_type
  12803. # Shared library runtime path variable.
  12804. runpath_var=$runpath_var
  12805. # Shared library path variable.
  12806. shlibpath_var=$shlibpath_var
  12807. # Is shlibpath searched before the hard-coded library search path?
  12808. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12809. # Format of library name prefix.
  12810. libname_spec=$lt_libname_spec
  12811. # List of archive names. First name is the real one, the rest are links.
  12812. # The last name is the one that the linker finds with -lNAME
  12813. library_names_spec=$lt_library_names_spec
  12814. # The coded name of the library, if different from the real name.
  12815. soname_spec=$lt_soname_spec
  12816. # Permission mode override for installation of shared libraries.
  12817. install_override_mode=$lt_install_override_mode
  12818. # Command to use after installation of a shared archive.
  12819. postinstall_cmds=$lt_postinstall_cmds
  12820. # Command to use after uninstallation of a shared archive.
  12821. postuninstall_cmds=$lt_postuninstall_cmds
  12822. # Commands used to finish a libtool library installation in a directory.
  12823. finish_cmds=$lt_finish_cmds
  12824. # As "finish_cmds", except a single script fragment to be evaled but
  12825. # not shown.
  12826. finish_eval=$lt_finish_eval
  12827. # Whether we should hardcode library paths into libraries.
  12828. hardcode_into_libs=$hardcode_into_libs
  12829. # Compile-time system search path for libraries.
  12830. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12831. # Detected run-time system search path for libraries.
  12832. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  12833. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  12834. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  12835. # Whether dlopen is supported.
  12836. dlopen_support=$enable_dlopen
  12837. # Whether dlopen of programs is supported.
  12838. dlopen_self=$enable_dlopen_self
  12839. # Whether dlopen of statically linked programs is supported.
  12840. dlopen_self_static=$enable_dlopen_self_static
  12841. # Commands to strip libraries.
  12842. old_striplib=$lt_old_striplib
  12843. striplib=$lt_striplib
  12844. # The linker used to build libraries.
  12845. LD=$lt_LD
  12846. # How to create reloadable object files.
  12847. reload_flag=$lt_reload_flag
  12848. reload_cmds=$lt_reload_cmds
  12849. # Commands used to build an old-style archive.
  12850. old_archive_cmds=$lt_old_archive_cmds
  12851. # A language specific compiler.
  12852. CC=$lt_compiler
  12853. # Is the compiler the GNU compiler?
  12854. with_gcc=$GCC
  12855. # Compiler flag to turn off builtin functions.
  12856. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12857. # Additional compiler flags for building library objects.
  12858. pic_flag=$lt_lt_prog_compiler_pic
  12859. # How to pass a linker flag through the compiler.
  12860. wl=$lt_lt_prog_compiler_wl
  12861. # Compiler flag to prevent dynamic linking.
  12862. link_static_flag=$lt_lt_prog_compiler_static
  12863. # Does compiler simultaneously support -c and -o options?
  12864. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12865. # Whether or not to add -lc for building shared libraries.
  12866. build_libtool_need_lc=$archive_cmds_need_lc
  12867. # Whether or not to disallow shared libs when runtime libs are static.
  12868. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12869. # Compiler flag to allow reflexive dlopens.
  12870. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12871. # Compiler flag to generate shared objects directly from archives.
  12872. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12873. # Whether the compiler copes with passing no objects directly.
  12874. compiler_needs_object=$lt_compiler_needs_object
  12875. # Create an old-style archive from a shared archive.
  12876. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12877. # Create a temporary old-style archive to link instead of a shared archive.
  12878. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12879. # Commands used to build a shared archive.
  12880. archive_cmds=$lt_archive_cmds
  12881. archive_expsym_cmds=$lt_archive_expsym_cmds
  12882. # Commands used to build a loadable module if different from building
  12883. # a shared archive.
  12884. module_cmds=$lt_module_cmds
  12885. module_expsym_cmds=$lt_module_expsym_cmds
  12886. # Whether we are building with GNU ld or not.
  12887. with_gnu_ld=$lt_with_gnu_ld
  12888. # Flag that allows shared libraries with undefined symbols to be built.
  12889. allow_undefined_flag=$lt_allow_undefined_flag
  12890. # Flag that enforces no undefined symbols.
  12891. no_undefined_flag=$lt_no_undefined_flag
  12892. # Flag to hardcode \$libdir into a binary during linking.
  12893. # This must work even if \$libdir does not exist
  12894. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12895. # Whether we need a single "-rpath" flag with a separated argument.
  12896. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12897. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  12898. # DIR into the resulting binary.
  12899. hardcode_direct=$hardcode_direct
  12900. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  12901. # DIR into the resulting binary and the resulting library dependency is
  12902. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  12903. # library is relocated.
  12904. hardcode_direct_absolute=$hardcode_direct_absolute
  12905. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12906. # into the resulting binary.
  12907. hardcode_minus_L=$hardcode_minus_L
  12908. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12909. # into the resulting binary.
  12910. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12911. # Set to "yes" if building a shared library automatically hardcodes DIR
  12912. # into the library and all subsequent libraries and executables linked
  12913. # against it.
  12914. hardcode_automatic=$hardcode_automatic
  12915. # Set to yes if linker adds runtime paths of dependent libraries
  12916. # to runtime path list.
  12917. inherit_rpath=$inherit_rpath
  12918. # Whether libtool must link a program against all its dependency libraries.
  12919. link_all_deplibs=$link_all_deplibs
  12920. # Set to "yes" if exported symbols are required.
  12921. always_export_symbols=$always_export_symbols
  12922. # The commands to list exported symbols.
  12923. export_symbols_cmds=$lt_export_symbols_cmds
  12924. # Symbols that should not be listed in the preloaded symbols.
  12925. exclude_expsyms=$lt_exclude_expsyms
  12926. # Symbols that must always be exported.
  12927. include_expsyms=$lt_include_expsyms
  12928. # Commands necessary for linking programs (against libraries) with templates.
  12929. prelink_cmds=$lt_prelink_cmds
  12930. # Commands necessary for finishing linking programs.
  12931. postlink_cmds=$lt_postlink_cmds
  12932. # Specify filename containing input files.
  12933. file_list_spec=$lt_file_list_spec
  12934. # How to hardcode a shared library path into an executable.
  12935. hardcode_action=$hardcode_action
  12936. # ### END LIBTOOL CONFIG
  12937. _LT_EOF
  12938. cat <<'_LT_EOF' >> "$cfgfile"
  12939. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  12940. # func_munge_path_list VARIABLE PATH
  12941. # -----------------------------------
  12942. # VARIABLE is name of variable containing _space_ separated list of
  12943. # directories to be munged by the contents of PATH, which is string
  12944. # having a format:
  12945. # "DIR[:DIR]:"
  12946. # string "DIR[ DIR]" will be prepended to VARIABLE
  12947. # ":DIR[:DIR]"
  12948. # string "DIR[ DIR]" will be appended to VARIABLE
  12949. # "DIRP[:DIRP]::[DIRA:]DIRA"
  12950. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  12951. # "DIRA[ DIRA]" will be appended to VARIABLE
  12952. # "DIR[:DIR]"
  12953. # VARIABLE will be replaced by "DIR[ DIR]"
  12954. func_munge_path_list ()
  12955. {
  12956. case x$2 in
  12957. x)
  12958. ;;
  12959. *:)
  12960. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  12961. ;;
  12962. x:*)
  12963. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  12964. ;;
  12965. *::*)
  12966. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  12967. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  12968. ;;
  12969. *)
  12970. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  12971. ;;
  12972. esac
  12973. }
  12974. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  12975. func_cc_basename ()
  12976. {
  12977. for cc_temp in $*""; do
  12978. case $cc_temp in
  12979. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12980. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12981. \-*) ;;
  12982. *) break;;
  12983. esac
  12984. done
  12985. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  12986. }
  12987. # ### END FUNCTIONS SHARED WITH CONFIGURE
  12988. _LT_EOF
  12989. case $host_os in
  12990. aix3*)
  12991. cat <<\_LT_EOF >> "$cfgfile"
  12992. # AIX sometimes has problems with the GCC collect2 program. For some
  12993. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12994. # vanish in a puff of smoke.
  12995. if test set != "${COLLECT_NAMES+set}"; then
  12996. COLLECT_NAMES=
  12997. export COLLECT_NAMES
  12998. fi
  12999. _LT_EOF
  13000. ;;
  13001. esac
  13002. ltmain=$ac_aux_dir/ltmain.sh
  13003. # We use sed instead of cat because bash on DJGPP gets confused if
  13004. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13005. # text mode, it properly converts lines to CR/LF. This bash problem
  13006. # is reportedly fixed, but why not run on old versions too?
  13007. sed '$q' "$ltmain" >> "$cfgfile" \
  13008. || (rm -f "$cfgfile"; exit 1)
  13009. mv -f "$cfgfile" "$ofile" ||
  13010. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13011. chmod +x "$ofile"
  13012. ;;
  13013. esac
  13014. done # for ac_tag
  13015. as_fn_exit 0
  13016. _ACEOF
  13017. ac_clean_files=$ac_clean_files_save
  13018. test $ac_write_fail = 0 ||
  13019. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13020. # configure is writing to config.log, and then calls config.status.
  13021. # config.status does its own redirection, appending to config.log.
  13022. # Unfortunately, on DOS this fails, as config.log is still kept open
  13023. # by configure, so config.status won't be able to write to it; its
  13024. # output is simply discarded. So we exec the FD to /dev/null,
  13025. # effectively closing config.log, so it can be properly (re)opened and
  13026. # appended to by config.status. When coming back to configure, we
  13027. # need to make the FD available again.
  13028. if test "$no_create" != yes; then
  13029. ac_cs_success=:
  13030. ac_config_status_args=
  13031. test "$silent" = yes &&
  13032. ac_config_status_args="$ac_config_status_args --quiet"
  13033. exec 5>/dev/null
  13034. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13035. exec 5>>config.log
  13036. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13037. # would make configure fail if this is the last instruction.
  13038. $ac_cs_success || as_fn_exit 1
  13039. fi
  13040. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13042. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13043. fi