configure 464 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libogg 1.3.5.
  4. #
  5. # Report bugs to <[email protected]>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and [email protected]
  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.5'
  544. PACKAGE_STRING='libogg 1.3.5'
  545. PACKAGE_BUGREPORT='[email protected]'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_unique_file="src/framing.c"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. PROFILE
  587. DEBUG
  588. OPT
  589. USIZE64
  590. SIZE64
  591. USIZE32
  592. SIZE32
  593. USIZE16
  594. SIZE16
  595. INCLUDE_SYS_TYPES_H
  596. INCLUDE_STDINT_H
  597. INCLUDE_INTTYPES_H
  598. LIBTOOL_DEPS
  599. LIBOBJS
  600. DISABLE_CRC_FALSE
  601. DISABLE_CRC_TRUE
  602. LIB_AGE
  603. LIB_REVISION
  604. LIB_CURRENT
  605. MAINT
  606. MAINTAINER_MODE_FALSE
  607. MAINTAINER_MODE_TRUE
  608. AM_BACKSLASH
  609. AM_DEFAULT_VERBOSITY
  610. AM_DEFAULT_V
  611. AM_V
  612. am__fastdepCC_FALSE
  613. am__fastdepCC_TRUE
  614. CCDEPMODE
  615. am__nodep
  616. AMDEPBACKSLASH
  617. AMDEP_FALSE
  618. AMDEP_TRUE
  619. am__include
  620. DEPDIR
  621. am__untar
  622. am__tar
  623. AMTAR
  624. am__leading_dot
  625. SET_MAKE
  626. mkdir_p
  627. MKDIR_P
  628. INSTALL_STRIP_PROGRAM
  629. install_sh
  630. MAKEINFO
  631. AUTOHEADER
  632. AUTOMAKE
  633. AUTOCONF
  634. ACLOCAL
  635. VERSION
  636. PACKAGE
  637. CYGPATH_W
  638. am__isrc
  639. INSTALL_DATA
  640. INSTALL_SCRIPT
  641. INSTALL_PROGRAM
  642. CPP
  643. LT_SYS_LIBRARY_PATH
  644. OTOOL64
  645. OTOOL
  646. LIPO
  647. NMEDIT
  648. DSYMUTIL
  649. MANIFEST_TOOL
  650. AWK
  651. RANLIB
  652. STRIP
  653. ac_ct_AR
  654. AR
  655. DLLTOOL
  656. OBJDUMP
  657. LN_S
  658. NM
  659. ac_ct_DUMPBIN
  660. DUMPBIN
  661. LD
  662. FGREP
  663. EGREP
  664. GREP
  665. SED
  666. OBJEXT
  667. EXEEXT
  668. ac_ct_CC
  669. CPPFLAGS
  670. LDFLAGS
  671. CFLAGS
  672. CC
  673. host_os
  674. host_vendor
  675. host_cpu
  676. host
  677. build_os
  678. build_vendor
  679. build_cpu
  680. build
  681. LIBTOOL
  682. target_alias
  683. host_alias
  684. build_alias
  685. LIBS
  686. ECHO_T
  687. ECHO_N
  688. ECHO_C
  689. DEFS
  690. mandir
  691. localedir
  692. libdir
  693. psdir
  694. pdfdir
  695. dvidir
  696. htmldir
  697. infodir
  698. docdir
  699. oldincludedir
  700. includedir
  701. runstatedir
  702. localstatedir
  703. sharedstatedir
  704. sysconfdir
  705. datadir
  706. datarootdir
  707. libexecdir
  708. sbindir
  709. bindir
  710. program_transform_name
  711. prefix
  712. exec_prefix
  713. PACKAGE_URL
  714. PACKAGE_BUGREPORT
  715. PACKAGE_STRING
  716. PACKAGE_VERSION
  717. PACKAGE_TARNAME
  718. PACKAGE_NAME
  719. PATH_SEPARATOR
  720. SHELL
  721. am__quote'
  722. ac_subst_files=''
  723. ac_user_opts='
  724. enable_option_checking
  725. enable_shared
  726. enable_static
  727. with_pic
  728. enable_fast_install
  729. with_aix_soname
  730. with_gnu_ld
  731. with_sysroot
  732. enable_libtool_lock
  733. enable_dependency_tracking
  734. enable_silent_rules
  735. enable_maintainer_mode
  736. enable_crc
  737. '
  738. ac_precious_vars='build_alias
  739. host_alias
  740. target_alias
  741. CC
  742. CFLAGS
  743. LDFLAGS
  744. LIBS
  745. CPPFLAGS
  746. LT_SYS_LIBRARY_PATH
  747. CPP'
  748. # Initialize some variables set by options.
  749. ac_init_help=
  750. ac_init_version=false
  751. ac_unrecognized_opts=
  752. ac_unrecognized_sep=
  753. # The variables have the same names as the options, with
  754. # dashes changed to underlines.
  755. cache_file=/dev/null
  756. exec_prefix=NONE
  757. no_create=
  758. no_recursion=
  759. prefix=NONE
  760. program_prefix=NONE
  761. program_suffix=NONE
  762. program_transform_name=s,x,x,
  763. silent=
  764. site=
  765. srcdir=
  766. verbose=
  767. x_includes=NONE
  768. x_libraries=NONE
  769. # Installation directory options.
  770. # These are left unexpanded so users can "make install exec_prefix=/foo"
  771. # and all the variables that are supposed to be based on exec_prefix
  772. # by default will actually change.
  773. # Use braces instead of parens because sh, perl, etc. also accept them.
  774. # (The list follows the same order as the GNU Coding Standards.)
  775. bindir='${exec_prefix}/bin'
  776. sbindir='${exec_prefix}/sbin'
  777. libexecdir='${exec_prefix}/libexec'
  778. datarootdir='${prefix}/share'
  779. datadir='${datarootdir}'
  780. sysconfdir='${prefix}/etc'
  781. sharedstatedir='${prefix}/com'
  782. localstatedir='${prefix}/var'
  783. runstatedir='${localstatedir}/run'
  784. includedir='${prefix}/include'
  785. oldincludedir='/usr/include'
  786. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  787. infodir='${datarootdir}/info'
  788. htmldir='${docdir}'
  789. dvidir='${docdir}'
  790. pdfdir='${docdir}'
  791. psdir='${docdir}'
  792. libdir='${exec_prefix}/lib'
  793. localedir='${datarootdir}/locale'
  794. mandir='${datarootdir}/man'
  795. ac_prev=
  796. ac_dashdash=
  797. for ac_option
  798. do
  799. # If the previous option needs an argument, assign it.
  800. if test -n "$ac_prev"; then
  801. eval $ac_prev=\$ac_option
  802. ac_prev=
  803. continue
  804. fi
  805. case $ac_option in
  806. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  807. *=) ac_optarg= ;;
  808. *) ac_optarg=yes ;;
  809. esac
  810. # Accept the important Cygnus configure options, so we can diagnose typos.
  811. case $ac_dashdash$ac_option in
  812. --)
  813. ac_dashdash=yes ;;
  814. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  815. ac_prev=bindir ;;
  816. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  817. bindir=$ac_optarg ;;
  818. -build | --build | --buil | --bui | --bu)
  819. ac_prev=build_alias ;;
  820. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  821. build_alias=$ac_optarg ;;
  822. -cache-file | --cache-file | --cache-fil | --cache-fi \
  823. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  824. ac_prev=cache_file ;;
  825. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  826. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  827. cache_file=$ac_optarg ;;
  828. --config-cache | -C)
  829. cache_file=config.cache ;;
  830. -datadir | --datadir | --datadi | --datad)
  831. ac_prev=datadir ;;
  832. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  833. datadir=$ac_optarg ;;
  834. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  835. | --dataroo | --dataro | --datar)
  836. ac_prev=datarootdir ;;
  837. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  838. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  839. datarootdir=$ac_optarg ;;
  840. -disable-* | --disable-*)
  841. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  842. # Reject names that are not valid shell variable names.
  843. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  844. as_fn_error $? "invalid feature name: $ac_useropt"
  845. ac_useropt_orig=$ac_useropt
  846. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  847. case $ac_user_opts in
  848. *"
  849. "enable_$ac_useropt"
  850. "*) ;;
  851. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  852. ac_unrecognized_sep=', ';;
  853. esac
  854. eval enable_$ac_useropt=no ;;
  855. -docdir | --docdir | --docdi | --doc | --do)
  856. ac_prev=docdir ;;
  857. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  858. docdir=$ac_optarg ;;
  859. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  860. ac_prev=dvidir ;;
  861. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  862. dvidir=$ac_optarg ;;
  863. -enable-* | --enable-*)
  864. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  865. # Reject names that are not valid shell variable names.
  866. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  867. as_fn_error $? "invalid feature name: $ac_useropt"
  868. ac_useropt_orig=$ac_useropt
  869. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  870. case $ac_user_opts in
  871. *"
  872. "enable_$ac_useropt"
  873. "*) ;;
  874. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  875. ac_unrecognized_sep=', ';;
  876. esac
  877. eval enable_$ac_useropt=\$ac_optarg ;;
  878. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  879. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  880. | --exec | --exe | --ex)
  881. ac_prev=exec_prefix ;;
  882. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  883. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  884. | --exec=* | --exe=* | --ex=*)
  885. exec_prefix=$ac_optarg ;;
  886. -gas | --gas | --ga | --g)
  887. # Obsolete; use --with-gas.
  888. with_gas=yes ;;
  889. -help | --help | --hel | --he | -h)
  890. ac_init_help=long ;;
  891. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  892. ac_init_help=recursive ;;
  893. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  894. ac_init_help=short ;;
  895. -host | --host | --hos | --ho)
  896. ac_prev=host_alias ;;
  897. -host=* | --host=* | --hos=* | --ho=*)
  898. host_alias=$ac_optarg ;;
  899. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  900. ac_prev=htmldir ;;
  901. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  902. | --ht=*)
  903. htmldir=$ac_optarg ;;
  904. -includedir | --includedir | --includedi | --included | --include \
  905. | --includ | --inclu | --incl | --inc)
  906. ac_prev=includedir ;;
  907. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  908. | --includ=* | --inclu=* | --incl=* | --inc=*)
  909. includedir=$ac_optarg ;;
  910. -infodir | --infodir | --infodi | --infod | --info | --inf)
  911. ac_prev=infodir ;;
  912. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  913. infodir=$ac_optarg ;;
  914. -libdir | --libdir | --libdi | --libd)
  915. ac_prev=libdir ;;
  916. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  917. libdir=$ac_optarg ;;
  918. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  919. | --libexe | --libex | --libe)
  920. ac_prev=libexecdir ;;
  921. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  922. | --libexe=* | --libex=* | --libe=*)
  923. libexecdir=$ac_optarg ;;
  924. -localedir | --localedir | --localedi | --localed | --locale)
  925. ac_prev=localedir ;;
  926. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  927. localedir=$ac_optarg ;;
  928. -localstatedir | --localstatedir | --localstatedi | --localstated \
  929. | --localstate | --localstat | --localsta | --localst | --locals)
  930. ac_prev=localstatedir ;;
  931. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  932. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  933. localstatedir=$ac_optarg ;;
  934. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  935. ac_prev=mandir ;;
  936. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  937. mandir=$ac_optarg ;;
  938. -nfp | --nfp | --nf)
  939. # Obsolete; use --without-fp.
  940. with_fp=no ;;
  941. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  942. | --no-cr | --no-c | -n)
  943. no_create=yes ;;
  944. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  945. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  946. no_recursion=yes ;;
  947. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  948. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  949. | --oldin | --oldi | --old | --ol | --o)
  950. ac_prev=oldincludedir ;;
  951. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  952. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  953. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  954. oldincludedir=$ac_optarg ;;
  955. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  956. ac_prev=prefix ;;
  957. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  958. prefix=$ac_optarg ;;
  959. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  960. | --program-pre | --program-pr | --program-p)
  961. ac_prev=program_prefix ;;
  962. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  963. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  964. program_prefix=$ac_optarg ;;
  965. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  966. | --program-suf | --program-su | --program-s)
  967. ac_prev=program_suffix ;;
  968. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  969. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  970. program_suffix=$ac_optarg ;;
  971. -program-transform-name | --program-transform-name \
  972. | --program-transform-nam | --program-transform-na \
  973. | --program-transform-n | --program-transform- \
  974. | --program-transform | --program-transfor \
  975. | --program-transfo | --program-transf \
  976. | --program-trans | --program-tran \
  977. | --progr-tra | --program-tr | --program-t)
  978. ac_prev=program_transform_name ;;
  979. -program-transform-name=* | --program-transform-name=* \
  980. | --program-transform-nam=* | --program-transform-na=* \
  981. | --program-transform-n=* | --program-transform-=* \
  982. | --program-transform=* | --program-transfor=* \
  983. | --program-transfo=* | --program-transf=* \
  984. | --program-trans=* | --program-tran=* \
  985. | --progr-tra=* | --program-tr=* | --program-t=*)
  986. program_transform_name=$ac_optarg ;;
  987. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  988. ac_prev=pdfdir ;;
  989. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  990. pdfdir=$ac_optarg ;;
  991. -psdir | --psdir | --psdi | --psd | --ps)
  992. ac_prev=psdir ;;
  993. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  994. psdir=$ac_optarg ;;
  995. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  996. | -silent | --silent | --silen | --sile | --sil)
  997. silent=yes ;;
  998. -runstatedir | --runstatedir | --runstatedi | --runstated \
  999. | --runstate | --runstat | --runsta | --runst | --runs \
  1000. | --run | --ru | --r)
  1001. ac_prev=runstatedir ;;
  1002. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1003. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1004. | --run=* | --ru=* | --r=*)
  1005. runstatedir=$ac_optarg ;;
  1006. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1007. ac_prev=sbindir ;;
  1008. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1009. | --sbi=* | --sb=*)
  1010. sbindir=$ac_optarg ;;
  1011. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1012. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1013. | --sharedst | --shareds | --shared | --share | --shar \
  1014. | --sha | --sh)
  1015. ac_prev=sharedstatedir ;;
  1016. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1017. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1018. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1019. | --sha=* | --sh=*)
  1020. sharedstatedir=$ac_optarg ;;
  1021. -site | --site | --sit)
  1022. ac_prev=site ;;
  1023. -site=* | --site=* | --sit=*)
  1024. site=$ac_optarg ;;
  1025. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1026. ac_prev=srcdir ;;
  1027. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1028. srcdir=$ac_optarg ;;
  1029. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1030. | --syscon | --sysco | --sysc | --sys | --sy)
  1031. ac_prev=sysconfdir ;;
  1032. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1033. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1034. sysconfdir=$ac_optarg ;;
  1035. -target | --target | --targe | --targ | --tar | --ta | --t)
  1036. ac_prev=target_alias ;;
  1037. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1038. target_alias=$ac_optarg ;;
  1039. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1040. verbose=yes ;;
  1041. -version | --version | --versio | --versi | --vers | -V)
  1042. ac_init_version=: ;;
  1043. -with-* | --with-*)
  1044. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1045. # Reject names that are not valid shell variable names.
  1046. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1047. as_fn_error $? "invalid package name: $ac_useropt"
  1048. ac_useropt_orig=$ac_useropt
  1049. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1050. case $ac_user_opts in
  1051. *"
  1052. "with_$ac_useropt"
  1053. "*) ;;
  1054. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1055. ac_unrecognized_sep=', ';;
  1056. esac
  1057. eval with_$ac_useropt=\$ac_optarg ;;
  1058. -without-* | --without-*)
  1059. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1060. # Reject names that are not valid shell variable names.
  1061. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1062. as_fn_error $? "invalid package name: $ac_useropt"
  1063. ac_useropt_orig=$ac_useropt
  1064. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1065. case $ac_user_opts in
  1066. *"
  1067. "with_$ac_useropt"
  1068. "*) ;;
  1069. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1070. ac_unrecognized_sep=', ';;
  1071. esac
  1072. eval with_$ac_useropt=no ;;
  1073. --x)
  1074. # Obsolete; use --with-x.
  1075. with_x=yes ;;
  1076. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1077. | --x-incl | --x-inc | --x-in | --x-i)
  1078. ac_prev=x_includes ;;
  1079. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1080. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1081. x_includes=$ac_optarg ;;
  1082. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1083. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1084. ac_prev=x_libraries ;;
  1085. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1086. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1087. x_libraries=$ac_optarg ;;
  1088. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1089. Try \`$0 --help' for more information"
  1090. ;;
  1091. *=*)
  1092. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1093. # Reject names that are not valid shell variable names.
  1094. case $ac_envvar in #(
  1095. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1096. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1097. esac
  1098. eval $ac_envvar=\$ac_optarg
  1099. export $ac_envvar ;;
  1100. *)
  1101. # FIXME: should be removed in autoconf 3.0.
  1102. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1103. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1104. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1105. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1106. ;;
  1107. esac
  1108. done
  1109. if test -n "$ac_prev"; then
  1110. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1111. as_fn_error $? "missing argument to $ac_option"
  1112. fi
  1113. if test -n "$ac_unrecognized_opts"; then
  1114. case $enable_option_checking in
  1115. no) ;;
  1116. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1117. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1118. esac
  1119. fi
  1120. # Check all directory arguments for consistency.
  1121. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1122. datadir sysconfdir sharedstatedir localstatedir includedir \
  1123. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1124. libdir localedir mandir runstatedir
  1125. do
  1126. eval ac_val=\$$ac_var
  1127. # Remove trailing slashes.
  1128. case $ac_val in
  1129. */ )
  1130. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1131. eval $ac_var=\$ac_val;;
  1132. esac
  1133. # Be sure to have absolute directory names.
  1134. case $ac_val in
  1135. [\\/$]* | ?:[\\/]* ) continue;;
  1136. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1137. esac
  1138. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1139. done
  1140. # There might be people who depend on the old broken behavior: `$host'
  1141. # used to hold the argument of --host etc.
  1142. # FIXME: To remove some day.
  1143. build=$build_alias
  1144. host=$host_alias
  1145. target=$target_alias
  1146. # FIXME: To remove some day.
  1147. if test "x$host_alias" != x; then
  1148. if test "x$build_alias" = x; then
  1149. cross_compiling=maybe
  1150. elif test "x$build_alias" != "x$host_alias"; then
  1151. cross_compiling=yes
  1152. fi
  1153. fi
  1154. ac_tool_prefix=
  1155. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1156. test "$silent" = yes && exec 6>/dev/null
  1157. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1158. ac_ls_di=`ls -di .` &&
  1159. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1160. as_fn_error $? "working directory cannot be determined"
  1161. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1162. as_fn_error $? "pwd does not report name of working directory"
  1163. # Find the source files, if location was not specified.
  1164. if test -z "$srcdir"; then
  1165. ac_srcdir_defaulted=yes
  1166. # Try the directory containing this script, then the parent directory.
  1167. ac_confdir=`$as_dirname -- "$as_myself" ||
  1168. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1169. X"$as_myself" : 'X\(//\)[^/]' \| \
  1170. X"$as_myself" : 'X\(//\)$' \| \
  1171. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1172. $as_echo X"$as_myself" |
  1173. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1174. s//\1/
  1175. q
  1176. }
  1177. /^X\(\/\/\)[^/].*/{
  1178. s//\1/
  1179. q
  1180. }
  1181. /^X\(\/\/\)$/{
  1182. s//\1/
  1183. q
  1184. }
  1185. /^X\(\/\).*/{
  1186. s//\1/
  1187. q
  1188. }
  1189. s/.*/./; q'`
  1190. srcdir=$ac_confdir
  1191. if test ! -r "$srcdir/$ac_unique_file"; then
  1192. srcdir=..
  1193. fi
  1194. else
  1195. ac_srcdir_defaulted=no
  1196. fi
  1197. if test ! -r "$srcdir/$ac_unique_file"; then
  1198. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1199. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1200. fi
  1201. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1202. ac_abs_confdir=`(
  1203. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1204. pwd)`
  1205. # When building in place, set srcdir=.
  1206. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1207. srcdir=.
  1208. fi
  1209. # Remove unnecessary trailing slashes from srcdir.
  1210. # Double slashes in file names in object file debugging info
  1211. # mess up M-x gdb in Emacs.
  1212. case $srcdir in
  1213. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1214. esac
  1215. for ac_var in $ac_precious_vars; do
  1216. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1217. eval ac_env_${ac_var}_value=\$${ac_var}
  1218. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1219. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1220. done
  1221. #
  1222. # Report the --help message.
  1223. #
  1224. if test "$ac_init_help" = "long"; then
  1225. # Omit some internal or obsolete options to make the list less imposing.
  1226. # This message is too long to be a string in the A/UX 3.1 sh.
  1227. cat <<_ACEOF
  1228. \`configure' configures libogg 1.3.5 to adapt to many kinds of systems.
  1229. Usage: $0 [OPTION]... [VAR=VALUE]...
  1230. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1231. VAR=VALUE. See below for descriptions of some of the useful variables.
  1232. Defaults for the options are specified in brackets.
  1233. Configuration:
  1234. -h, --help display this help and exit
  1235. --help=short display options specific to this package
  1236. --help=recursive display the short help of all the included packages
  1237. -V, --version display version information and exit
  1238. -q, --quiet, --silent do not print \`checking ...' messages
  1239. --cache-file=FILE cache test results in FILE [disabled]
  1240. -C, --config-cache alias for \`--cache-file=config.cache'
  1241. -n, --no-create do not create output files
  1242. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1243. Installation directories:
  1244. --prefix=PREFIX install architecture-independent files in PREFIX
  1245. [$ac_default_prefix]
  1246. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1247. [PREFIX]
  1248. By default, \`make install' will install all the files in
  1249. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1250. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1251. for instance \`--prefix=\$HOME'.
  1252. For better control, use the options below.
  1253. Fine tuning of the installation directories:
  1254. --bindir=DIR user executables [EPREFIX/bin]
  1255. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1256. --libexecdir=DIR program executables [EPREFIX/libexec]
  1257. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1258. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1259. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1260. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1261. --libdir=DIR object code libraries [EPREFIX/lib]
  1262. --includedir=DIR C header files [PREFIX/include]
  1263. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1264. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1265. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1266. --infodir=DIR info documentation [DATAROOTDIR/info]
  1267. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1268. --mandir=DIR man documentation [DATAROOTDIR/man]
  1269. --docdir=DIR documentation root [DATAROOTDIR/doc/libogg]
  1270. --htmldir=DIR html documentation [DOCDIR]
  1271. --dvidir=DIR dvi documentation [DOCDIR]
  1272. --pdfdir=DIR pdf documentation [DOCDIR]
  1273. --psdir=DIR ps documentation [DOCDIR]
  1274. _ACEOF
  1275. cat <<\_ACEOF
  1276. Program names:
  1277. --program-prefix=PREFIX prepend PREFIX to installed program names
  1278. --program-suffix=SUFFIX append SUFFIX to installed program names
  1279. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1280. System types:
  1281. --build=BUILD configure for building on BUILD [guessed]
  1282. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1283. _ACEOF
  1284. fi
  1285. if test -n "$ac_init_help"; then
  1286. case $ac_init_help in
  1287. short | recursive ) echo "Configuration of libogg 1.3.5:";;
  1288. esac
  1289. cat <<\_ACEOF
  1290. Optional Features:
  1291. --disable-option-checking ignore unrecognized --enable/--with options
  1292. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1293. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1294. --enable-shared[=PKGS] build shared libraries [default=yes]
  1295. --enable-static[=PKGS] build static libraries [default=yes]
  1296. --enable-fast-install[=PKGS]
  1297. optimize for fast installation [default=yes]
  1298. --disable-libtool-lock avoid locking (might break parallel builds)
  1299. --enable-dependency-tracking
  1300. do not reject slow dependency extractors
  1301. --disable-dependency-tracking
  1302. speeds up one-time build
  1303. --enable-silent-rules less verbose build output (undo: "make V=1")
  1304. --disable-silent-rules verbose build output (undo: "make V=0")
  1305. --disable-maintainer-mode
  1306. disable make rules and dependencies not useful (and
  1307. sometimes confusing) to the casual installer
  1308. --disable-crc Disable CRC in the demuxer
  1309. Optional Packages:
  1310. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1311. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1312. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1313. both]
  1314. --with-aix-soname=aix|svr4|both
  1315. shared library versioning (aka "SONAME") variant to
  1316. provide on AIX, [default=aix].
  1317. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1318. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1319. compiler's sysroot if not specified).
  1320. Some influential environment variables:
  1321. CC C compiler command
  1322. CFLAGS C compiler flags
  1323. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1324. nonstandard directory <lib dir>
  1325. LIBS libraries to pass to the linker, e.g. -l<library>
  1326. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1327. you have headers in a nonstandard directory <include dir>
  1328. LT_SYS_LIBRARY_PATH
  1329. User-defined run-time library search path.
  1330. CPP C preprocessor
  1331. Use these variables to override the choices made by `configure' or to help
  1332. it to find libraries and programs with nonstandard names/locations.
  1333. Report bugs to <[email protected]>.
  1334. _ACEOF
  1335. ac_status=$?
  1336. fi
  1337. if test "$ac_init_help" = "recursive"; then
  1338. # If there are subdirs, report their specific --help.
  1339. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1340. test -d "$ac_dir" ||
  1341. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1342. continue
  1343. ac_builddir=.
  1344. case "$ac_dir" in
  1345. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1346. *)
  1347. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1348. # A ".." for each directory in $ac_dir_suffix.
  1349. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1350. case $ac_top_builddir_sub in
  1351. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1352. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1353. esac ;;
  1354. esac
  1355. ac_abs_top_builddir=$ac_pwd
  1356. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1357. # for backward compatibility:
  1358. ac_top_builddir=$ac_top_build_prefix
  1359. case $srcdir in
  1360. .) # We are building in place.
  1361. ac_srcdir=.
  1362. ac_top_srcdir=$ac_top_builddir_sub
  1363. ac_abs_top_srcdir=$ac_pwd ;;
  1364. [\\/]* | ?:[\\/]* ) # Absolute name.
  1365. ac_srcdir=$srcdir$ac_dir_suffix;
  1366. ac_top_srcdir=$srcdir
  1367. ac_abs_top_srcdir=$srcdir ;;
  1368. *) # Relative name.
  1369. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1370. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1371. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1372. esac
  1373. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1374. cd "$ac_dir" || { ac_status=$?; continue; }
  1375. # Check for guested configure.
  1376. if test -f "$ac_srcdir/configure.gnu"; then
  1377. echo &&
  1378. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1379. elif test -f "$ac_srcdir/configure"; then
  1380. echo &&
  1381. $SHELL "$ac_srcdir/configure" --help=recursive
  1382. else
  1383. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1384. fi || ac_status=$?
  1385. cd "$ac_pwd" || { ac_status=$?; break; }
  1386. done
  1387. fi
  1388. test -n "$ac_init_help" && exit $ac_status
  1389. if $ac_init_version; then
  1390. cat <<\_ACEOF
  1391. libogg configure 1.3.5
  1392. generated by GNU Autoconf 2.69
  1393. Copyright (C) 2012 Free Software Foundation, Inc.
  1394. This configure script is free software; the Free Software Foundation
  1395. gives unlimited permission to copy, distribute and modify it.
  1396. _ACEOF
  1397. exit
  1398. fi
  1399. ## ------------------------ ##
  1400. ## Autoconf initialization. ##
  1401. ## ------------------------ ##
  1402. # ac_fn_c_try_compile LINENO
  1403. # --------------------------
  1404. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1405. ac_fn_c_try_compile ()
  1406. {
  1407. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1408. rm -f conftest.$ac_objext
  1409. if { { ac_try="$ac_compile"
  1410. case "(($ac_try" in
  1411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1412. *) ac_try_echo=$ac_try;;
  1413. esac
  1414. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1415. $as_echo "$ac_try_echo"; } >&5
  1416. (eval "$ac_compile") 2>conftest.err
  1417. ac_status=$?
  1418. if test -s conftest.err; then
  1419. grep -v '^ *+' conftest.err >conftest.er1
  1420. cat conftest.er1 >&5
  1421. mv -f conftest.er1 conftest.err
  1422. fi
  1423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1424. test $ac_status = 0; } && {
  1425. test -z "$ac_c_werror_flag" ||
  1426. test ! -s conftest.err
  1427. } && test -s conftest.$ac_objext; then :
  1428. ac_retval=0
  1429. else
  1430. $as_echo "$as_me: failed program was:" >&5
  1431. sed 's/^/| /' conftest.$ac_ext >&5
  1432. ac_retval=1
  1433. fi
  1434. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1435. as_fn_set_status $ac_retval
  1436. } # ac_fn_c_try_compile
  1437. # ac_fn_c_try_link LINENO
  1438. # -----------------------
  1439. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1440. ac_fn_c_try_link ()
  1441. {
  1442. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1443. rm -f conftest.$ac_objext conftest$ac_exeext
  1444. if { { ac_try="$ac_link"
  1445. case "(($ac_try" in
  1446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1447. *) ac_try_echo=$ac_try;;
  1448. esac
  1449. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1450. $as_echo "$ac_try_echo"; } >&5
  1451. (eval "$ac_link") 2>conftest.err
  1452. ac_status=$?
  1453. if test -s conftest.err; then
  1454. grep -v '^ *+' conftest.err >conftest.er1
  1455. cat conftest.er1 >&5
  1456. mv -f conftest.er1 conftest.err
  1457. fi
  1458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1459. test $ac_status = 0; } && {
  1460. test -z "$ac_c_werror_flag" ||
  1461. test ! -s conftest.err
  1462. } && test -s conftest$ac_exeext && {
  1463. test "$cross_compiling" = yes ||
  1464. test -x conftest$ac_exeext
  1465. }; then :
  1466. ac_retval=0
  1467. else
  1468. $as_echo "$as_me: failed program was:" >&5
  1469. sed 's/^/| /' conftest.$ac_ext >&5
  1470. ac_retval=1
  1471. fi
  1472. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1473. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1474. # interfere with the next link command; also delete a directory that is
  1475. # left behind by Apple's compiler. We do this before executing the actions.
  1476. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1477. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1478. as_fn_set_status $ac_retval
  1479. } # ac_fn_c_try_link
  1480. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1481. # -------------------------------------------------------
  1482. # Tests whether HEADER exists and can be compiled using the include files in
  1483. # INCLUDES, setting the cache variable VAR accordingly.
  1484. ac_fn_c_check_header_compile ()
  1485. {
  1486. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1488. $as_echo_n "checking for $2... " >&6; }
  1489. if eval \${$3+:} false; then :
  1490. $as_echo_n "(cached) " >&6
  1491. else
  1492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1493. /* end confdefs.h. */
  1494. $4
  1495. #include <$2>
  1496. _ACEOF
  1497. if ac_fn_c_try_compile "$LINENO"; then :
  1498. eval "$3=yes"
  1499. else
  1500. eval "$3=no"
  1501. fi
  1502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1503. fi
  1504. eval ac_res=\$$3
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1506. $as_echo "$ac_res" >&6; }
  1507. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1508. } # ac_fn_c_check_header_compile
  1509. # ac_fn_c_try_cpp LINENO
  1510. # ----------------------
  1511. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1512. ac_fn_c_try_cpp ()
  1513. {
  1514. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1515. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1516. case "(($ac_try" in
  1517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1518. *) ac_try_echo=$ac_try;;
  1519. esac
  1520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1521. $as_echo "$ac_try_echo"; } >&5
  1522. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1523. ac_status=$?
  1524. if test -s conftest.err; then
  1525. grep -v '^ *+' conftest.err >conftest.er1
  1526. cat conftest.er1 >&5
  1527. mv -f conftest.er1 conftest.err
  1528. fi
  1529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1530. test $ac_status = 0; } > conftest.i && {
  1531. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1532. test ! -s conftest.err
  1533. }; then :
  1534. ac_retval=0
  1535. else
  1536. $as_echo "$as_me: failed program was:" >&5
  1537. sed 's/^/| /' conftest.$ac_ext >&5
  1538. ac_retval=1
  1539. fi
  1540. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1541. as_fn_set_status $ac_retval
  1542. } # ac_fn_c_try_cpp
  1543. # ac_fn_c_try_run LINENO
  1544. # ----------------------
  1545. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1546. # that executables *can* be run.
  1547. ac_fn_c_try_run ()
  1548. {
  1549. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1550. if { { ac_try="$ac_link"
  1551. case "(($ac_try" in
  1552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1553. *) ac_try_echo=$ac_try;;
  1554. esac
  1555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1556. $as_echo "$ac_try_echo"; } >&5
  1557. (eval "$ac_link") 2>&5
  1558. ac_status=$?
  1559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1560. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1561. { { case "(($ac_try" in
  1562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1563. *) ac_try_echo=$ac_try;;
  1564. esac
  1565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1566. $as_echo "$ac_try_echo"; } >&5
  1567. (eval "$ac_try") 2>&5
  1568. ac_status=$?
  1569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1570. test $ac_status = 0; }; }; then :
  1571. ac_retval=0
  1572. else
  1573. $as_echo "$as_me: program exited with status $ac_status" >&5
  1574. $as_echo "$as_me: failed program was:" >&5
  1575. sed 's/^/| /' conftest.$ac_ext >&5
  1576. ac_retval=$ac_status
  1577. fi
  1578. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1579. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1580. as_fn_set_status $ac_retval
  1581. } # ac_fn_c_try_run
  1582. # ac_fn_c_check_func LINENO FUNC VAR
  1583. # ----------------------------------
  1584. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1585. ac_fn_c_check_func ()
  1586. {
  1587. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1589. $as_echo_n "checking for $2... " >&6; }
  1590. if eval \${$3+:} false; then :
  1591. $as_echo_n "(cached) " >&6
  1592. else
  1593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1594. /* end confdefs.h. */
  1595. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1596. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1597. #define $2 innocuous_$2
  1598. /* System header to define __stub macros and hopefully few prototypes,
  1599. which can conflict with char $2 (); below.
  1600. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1601. <limits.h> exists even on freestanding compilers. */
  1602. #ifdef __STDC__
  1603. # include <limits.h>
  1604. #else
  1605. # include <assert.h>
  1606. #endif
  1607. #undef $2
  1608. /* Override any GCC internal prototype to avoid an error.
  1609. Use char because int might match the return type of a GCC
  1610. builtin and then its argument prototype would still apply. */
  1611. #ifdef __cplusplus
  1612. extern "C"
  1613. #endif
  1614. char $2 ();
  1615. /* The GNU C library defines this for functions which it implements
  1616. to always fail with ENOSYS. Some functions are actually named
  1617. something starting with __ and the normal name is an alias. */
  1618. #if defined __stub_$2 || defined __stub___$2
  1619. choke me
  1620. #endif
  1621. int
  1622. main ()
  1623. {
  1624. return $2 ();
  1625. ;
  1626. return 0;
  1627. }
  1628. _ACEOF
  1629. if ac_fn_c_try_link "$LINENO"; then :
  1630. eval "$3=yes"
  1631. else
  1632. eval "$3=no"
  1633. fi
  1634. rm -f core conftest.err conftest.$ac_objext \
  1635. conftest$ac_exeext conftest.$ac_ext
  1636. fi
  1637. eval ac_res=\$$3
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1639. $as_echo "$ac_res" >&6; }
  1640. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1641. } # ac_fn_c_check_func
  1642. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1643. # -------------------------------------------------------
  1644. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1645. # the include files in INCLUDES and setting the cache variable VAR
  1646. # accordingly.
  1647. ac_fn_c_check_header_mongrel ()
  1648. {
  1649. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1650. if eval \${$3+:} false; then :
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1652. $as_echo_n "checking for $2... " >&6; }
  1653. if eval \${$3+:} false; then :
  1654. $as_echo_n "(cached) " >&6
  1655. fi
  1656. eval ac_res=\$$3
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1658. $as_echo "$ac_res" >&6; }
  1659. else
  1660. # Is the header compilable?
  1661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1662. $as_echo_n "checking $2 usability... " >&6; }
  1663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1664. /* end confdefs.h. */
  1665. $4
  1666. #include <$2>
  1667. _ACEOF
  1668. if ac_fn_c_try_compile "$LINENO"; then :
  1669. ac_header_compiler=yes
  1670. else
  1671. ac_header_compiler=no
  1672. fi
  1673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1675. $as_echo "$ac_header_compiler" >&6; }
  1676. # Is the header present?
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1678. $as_echo_n "checking $2 presence... " >&6; }
  1679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1680. /* end confdefs.h. */
  1681. #include <$2>
  1682. _ACEOF
  1683. if ac_fn_c_try_cpp "$LINENO"; then :
  1684. ac_header_preproc=yes
  1685. else
  1686. ac_header_preproc=no
  1687. fi
  1688. rm -f conftest.err conftest.i conftest.$ac_ext
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1690. $as_echo "$ac_header_preproc" >&6; }
  1691. # So? What about this header?
  1692. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1693. yes:no: )
  1694. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1695. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1697. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1698. ;;
  1699. no:yes:* )
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1701. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1703. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1705. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1707. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1709. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1710. ( $as_echo "## ------------------------------- ##
  1711. ## Report this to [email protected] ##
  1712. ## ------------------------------- ##"
  1713. ) | sed "s/^/$as_me: WARNING: /" >&2
  1714. ;;
  1715. esac
  1716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1717. $as_echo_n "checking for $2... " >&6; }
  1718. if eval \${$3+:} false; then :
  1719. $as_echo_n "(cached) " >&6
  1720. else
  1721. eval "$3=\$ac_header_compiler"
  1722. fi
  1723. eval ac_res=\$$3
  1724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1725. $as_echo "$ac_res" >&6; }
  1726. fi
  1727. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1728. } # ac_fn_c_check_header_mongrel
  1729. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1730. # --------------------------------------------
  1731. # Tries to find the compile-time value of EXPR in a program that includes
  1732. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1733. # computed
  1734. ac_fn_c_compute_int ()
  1735. {
  1736. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1737. if test "$cross_compiling" = yes; then
  1738. # Depending upon the size, compute the lo and hi bounds.
  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) >= 0)];
  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_lo=0 ac_mid=0
  1754. while :; do
  1755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1756. /* end confdefs.h. */
  1757. $4
  1758. int
  1759. main ()
  1760. {
  1761. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1762. test_array [0] = 0;
  1763. return test_array [0];
  1764. ;
  1765. return 0;
  1766. }
  1767. _ACEOF
  1768. if ac_fn_c_try_compile "$LINENO"; then :
  1769. ac_hi=$ac_mid; break
  1770. else
  1771. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1772. if test $ac_lo -le $ac_mid; then
  1773. ac_lo= ac_hi=
  1774. break
  1775. fi
  1776. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1777. fi
  1778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1779. done
  1780. else
  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) < 0)];
  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_hi=-1 ac_mid=-1
  1796. while :; do
  1797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1798. /* end confdefs.h. */
  1799. $4
  1800. int
  1801. main ()
  1802. {
  1803. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1804. test_array [0] = 0;
  1805. return test_array [0];
  1806. ;
  1807. return 0;
  1808. }
  1809. _ACEOF
  1810. if ac_fn_c_try_compile "$LINENO"; then :
  1811. ac_lo=$ac_mid; break
  1812. else
  1813. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1814. if test $ac_mid -le $ac_hi; then
  1815. ac_lo= ac_hi=
  1816. break
  1817. fi
  1818. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1819. fi
  1820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1821. done
  1822. else
  1823. ac_lo= ac_hi=
  1824. fi
  1825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1826. fi
  1827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1828. # Binary search between lo and hi bounds.
  1829. while test "x$ac_lo" != "x$ac_hi"; do
  1830. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1832. /* end confdefs.h. */
  1833. $4
  1834. int
  1835. main ()
  1836. {
  1837. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1838. test_array [0] = 0;
  1839. return test_array [0];
  1840. ;
  1841. return 0;
  1842. }
  1843. _ACEOF
  1844. if ac_fn_c_try_compile "$LINENO"; then :
  1845. ac_hi=$ac_mid
  1846. else
  1847. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1848. fi
  1849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1850. done
  1851. case $ac_lo in #((
  1852. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1853. '') ac_retval=1 ;;
  1854. esac
  1855. else
  1856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1857. /* end confdefs.h. */
  1858. $4
  1859. static long int longval () { return $2; }
  1860. static unsigned long int ulongval () { return $2; }
  1861. #include <stdio.h>
  1862. #include <stdlib.h>
  1863. int
  1864. main ()
  1865. {
  1866. FILE *f = fopen ("conftest.val", "w");
  1867. if (! f)
  1868. return 1;
  1869. if (($2) < 0)
  1870. {
  1871. long int i = longval ();
  1872. if (i != ($2))
  1873. return 1;
  1874. fprintf (f, "%ld", i);
  1875. }
  1876. else
  1877. {
  1878. unsigned long int i = ulongval ();
  1879. if (i != ($2))
  1880. return 1;
  1881. fprintf (f, "%lu", i);
  1882. }
  1883. /* Do not output a trailing newline, as this causes \r\n confusion
  1884. on some platforms. */
  1885. return ferror (f) || fclose (f) != 0;
  1886. ;
  1887. return 0;
  1888. }
  1889. _ACEOF
  1890. if ac_fn_c_try_run "$LINENO"; then :
  1891. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1892. else
  1893. ac_retval=1
  1894. fi
  1895. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1896. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1897. rm -f conftest.val
  1898. fi
  1899. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1900. as_fn_set_status $ac_retval
  1901. } # ac_fn_c_compute_int
  1902. cat >config.log <<_ACEOF
  1903. This file contains any messages produced by compilers while
  1904. running configure, to aid debugging if configure makes a mistake.
  1905. It was created by libogg $as_me 1.3.5, which was
  1906. generated by GNU Autoconf 2.69. Invocation command line was
  1907. $ $0 $@
  1908. _ACEOF
  1909. exec 5>>config.log
  1910. {
  1911. cat <<_ASUNAME
  1912. ## --------- ##
  1913. ## Platform. ##
  1914. ## --------- ##
  1915. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1916. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1917. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1918. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1919. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1920. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1921. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1922. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1923. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1924. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1925. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1926. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1927. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1928. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1929. _ASUNAME
  1930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1931. for as_dir in $PATH
  1932. do
  1933. IFS=$as_save_IFS
  1934. test -z "$as_dir" && as_dir=.
  1935. $as_echo "PATH: $as_dir"
  1936. done
  1937. IFS=$as_save_IFS
  1938. } >&5
  1939. cat >&5 <<_ACEOF
  1940. ## ----------- ##
  1941. ## Core tests. ##
  1942. ## ----------- ##
  1943. _ACEOF
  1944. # Keep a trace of the command line.
  1945. # Strip out --no-create and --no-recursion so they do not pile up.
  1946. # Strip out --silent because we don't want to record it for future runs.
  1947. # Also quote any args containing shell meta-characters.
  1948. # Make two passes to allow for proper duplicate-argument suppression.
  1949. ac_configure_args=
  1950. ac_configure_args0=
  1951. ac_configure_args1=
  1952. ac_must_keep_next=false
  1953. for ac_pass in 1 2
  1954. do
  1955. for ac_arg
  1956. do
  1957. case $ac_arg in
  1958. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1959. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1960. | -silent | --silent | --silen | --sile | --sil)
  1961. continue ;;
  1962. *\'*)
  1963. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1964. esac
  1965. case $ac_pass in
  1966. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1967. 2)
  1968. as_fn_append ac_configure_args1 " '$ac_arg'"
  1969. if test $ac_must_keep_next = true; then
  1970. ac_must_keep_next=false # Got value, back to normal.
  1971. else
  1972. case $ac_arg in
  1973. *=* | --config-cache | -C | -disable-* | --disable-* \
  1974. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1975. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1976. | -with-* | --with-* | -without-* | --without-* | --x)
  1977. case "$ac_configure_args0 " in
  1978. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1979. esac
  1980. ;;
  1981. -* ) ac_must_keep_next=true ;;
  1982. esac
  1983. fi
  1984. as_fn_append ac_configure_args " '$ac_arg'"
  1985. ;;
  1986. esac
  1987. done
  1988. done
  1989. { ac_configure_args0=; unset ac_configure_args0;}
  1990. { ac_configure_args1=; unset ac_configure_args1;}
  1991. # When interrupted or exit'd, cleanup temporary files, and complete
  1992. # config.log. We remove comments because anyway the quotes in there
  1993. # would cause problems or look ugly.
  1994. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1995. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1996. trap 'exit_status=$?
  1997. # Save into config.log some information that might help in debugging.
  1998. {
  1999. echo
  2000. $as_echo "## ---------------- ##
  2001. ## Cache variables. ##
  2002. ## ---------------- ##"
  2003. echo
  2004. # The following way of writing the cache mishandles newlines in values,
  2005. (
  2006. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2007. eval ac_val=\$$ac_var
  2008. case $ac_val in #(
  2009. *${as_nl}*)
  2010. case $ac_var in #(
  2011. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2012. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2013. esac
  2014. case $ac_var in #(
  2015. _ | IFS | as_nl) ;; #(
  2016. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2017. *) { eval $ac_var=; unset $ac_var;} ;;
  2018. esac ;;
  2019. esac
  2020. done
  2021. (set) 2>&1 |
  2022. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2023. *${as_nl}ac_space=\ *)
  2024. sed -n \
  2025. "s/'\''/'\''\\\\'\'''\''/g;
  2026. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2027. ;; #(
  2028. *)
  2029. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2030. ;;
  2031. esac |
  2032. sort
  2033. )
  2034. echo
  2035. $as_echo "## ----------------- ##
  2036. ## Output variables. ##
  2037. ## ----------------- ##"
  2038. echo
  2039. for ac_var in $ac_subst_vars
  2040. do
  2041. eval ac_val=\$$ac_var
  2042. case $ac_val in
  2043. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2044. esac
  2045. $as_echo "$ac_var='\''$ac_val'\''"
  2046. done | sort
  2047. echo
  2048. if test -n "$ac_subst_files"; then
  2049. $as_echo "## ------------------- ##
  2050. ## File substitutions. ##
  2051. ## ------------------- ##"
  2052. echo
  2053. for ac_var in $ac_subst_files
  2054. do
  2055. eval ac_val=\$$ac_var
  2056. case $ac_val in
  2057. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2058. esac
  2059. $as_echo "$ac_var='\''$ac_val'\''"
  2060. done | sort
  2061. echo
  2062. fi
  2063. if test -s confdefs.h; then
  2064. $as_echo "## ----------- ##
  2065. ## confdefs.h. ##
  2066. ## ----------- ##"
  2067. echo
  2068. cat confdefs.h
  2069. echo
  2070. fi
  2071. test "$ac_signal" != 0 &&
  2072. $as_echo "$as_me: caught signal $ac_signal"
  2073. $as_echo "$as_me: exit $exit_status"
  2074. } >&5
  2075. rm -f core *.core core.conftest.* &&
  2076. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2077. exit $exit_status
  2078. ' 0
  2079. for ac_signal in 1 2 13 15; do
  2080. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2081. done
  2082. ac_signal=0
  2083. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2084. rm -f -r conftest* confdefs.h
  2085. $as_echo "/* confdefs.h */" > confdefs.h
  2086. # Predefined preprocessor variables.
  2087. cat >>confdefs.h <<_ACEOF
  2088. #define PACKAGE_NAME "$PACKAGE_NAME"
  2089. _ACEOF
  2090. cat >>confdefs.h <<_ACEOF
  2091. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2092. _ACEOF
  2093. cat >>confdefs.h <<_ACEOF
  2094. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2095. _ACEOF
  2096. cat >>confdefs.h <<_ACEOF
  2097. #define PACKAGE_STRING "$PACKAGE_STRING"
  2098. _ACEOF
  2099. cat >>confdefs.h <<_ACEOF
  2100. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2101. _ACEOF
  2102. cat >>confdefs.h <<_ACEOF
  2103. #define PACKAGE_URL "$PACKAGE_URL"
  2104. _ACEOF
  2105. # Let the site file select an alternate cache file if it wants to.
  2106. # Prefer an explicitly selected file to automatically selected ones.
  2107. ac_site_file1=NONE
  2108. ac_site_file2=NONE
  2109. if test -n "$CONFIG_SITE"; then
  2110. # We do not want a PATH search for config.site.
  2111. case $CONFIG_SITE in #((
  2112. -*) ac_site_file1=./$CONFIG_SITE;;
  2113. */*) ac_site_file1=$CONFIG_SITE;;
  2114. *) ac_site_file1=./$CONFIG_SITE;;
  2115. esac
  2116. elif test "x$prefix" != xNONE; then
  2117. ac_site_file1=$prefix/share/config.site
  2118. ac_site_file2=$prefix/etc/config.site
  2119. else
  2120. ac_site_file1=$ac_default_prefix/share/config.site
  2121. ac_site_file2=$ac_default_prefix/etc/config.site
  2122. fi
  2123. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2124. do
  2125. test "x$ac_site_file" = xNONE && continue
  2126. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2128. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2129. sed 's/^/| /' "$ac_site_file" >&5
  2130. . "$ac_site_file" \
  2131. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2132. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2133. as_fn_error $? "failed to load site script $ac_site_file
  2134. See \`config.log' for more details" "$LINENO" 5; }
  2135. fi
  2136. done
  2137. if test -r "$cache_file"; then
  2138. # Some versions of bash will fail to source /dev/null (special files
  2139. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2140. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2142. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2143. case $cache_file in
  2144. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2145. *) . "./$cache_file";;
  2146. esac
  2147. fi
  2148. else
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2150. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2151. >$cache_file
  2152. fi
  2153. # Check that the precious variables saved in the cache have kept the same
  2154. # value.
  2155. ac_cache_corrupted=false
  2156. for ac_var in $ac_precious_vars; do
  2157. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2158. eval ac_new_set=\$ac_env_${ac_var}_set
  2159. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2160. eval ac_new_val=\$ac_env_${ac_var}_value
  2161. case $ac_old_set,$ac_new_set in
  2162. set,)
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2164. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2165. ac_cache_corrupted=: ;;
  2166. ,set)
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2168. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2169. ac_cache_corrupted=: ;;
  2170. ,);;
  2171. *)
  2172. if test "x$ac_old_val" != "x$ac_new_val"; then
  2173. # differences in whitespace do not lead to failure.
  2174. ac_old_val_w=`echo x $ac_old_val`
  2175. ac_new_val_w=`echo x $ac_new_val`
  2176. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2178. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2179. ac_cache_corrupted=:
  2180. else
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2182. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2183. eval $ac_var=\$ac_old_val
  2184. fi
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2186. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2188. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2189. fi;;
  2190. esac
  2191. # Pass precious variables to config.status.
  2192. if test "$ac_new_set" = set; then
  2193. case $ac_new_val in
  2194. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2195. *) ac_arg=$ac_var=$ac_new_val ;;
  2196. esac
  2197. case " $ac_configure_args " in
  2198. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2199. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2200. esac
  2201. fi
  2202. done
  2203. if $ac_cache_corrupted; then
  2204. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2205. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2207. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2208. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2209. fi
  2210. ## -------------------- ##
  2211. ## Main body of script. ##
  2212. ## -------------------- ##
  2213. ac_ext=c
  2214. ac_cpp='$CPP $CPPFLAGS'
  2215. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2216. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2217. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2218. ac_aux_dir=
  2219. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2220. if test -f "$ac_dir/install-sh"; then
  2221. ac_aux_dir=$ac_dir
  2222. ac_install_sh="$ac_aux_dir/install-sh -c"
  2223. break
  2224. elif test -f "$ac_dir/install.sh"; then
  2225. ac_aux_dir=$ac_dir
  2226. ac_install_sh="$ac_aux_dir/install.sh -c"
  2227. break
  2228. elif test -f "$ac_dir/shtool"; then
  2229. ac_aux_dir=$ac_dir
  2230. ac_install_sh="$ac_aux_dir/shtool install -c"
  2231. break
  2232. fi
  2233. done
  2234. if test -z "$ac_aux_dir"; then
  2235. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2236. fi
  2237. # These three variables are undocumented and unsupported,
  2238. # and are intended to be withdrawn in a future Autoconf release.
  2239. # They can cause serious problems if a builder's source tree is in a directory
  2240. # whose full name contains unusual characters.
  2241. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2242. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2243. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2244. case `pwd` in
  2245. *\ * | *\ *)
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2247. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2248. esac
  2249. macro_version='2.4.6'
  2250. macro_revision='2.4.6'
  2251. ltmain=$ac_aux_dir/ltmain.sh
  2252. # Make sure we can run config.sub.
  2253. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2254. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2256. $as_echo_n "checking build system type... " >&6; }
  2257. if ${ac_cv_build+:} false; then :
  2258. $as_echo_n "(cached) " >&6
  2259. else
  2260. ac_build_alias=$build_alias
  2261. test "x$ac_build_alias" = x &&
  2262. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2263. test "x$ac_build_alias" = x &&
  2264. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2265. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2266. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2267. fi
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2269. $as_echo "$ac_cv_build" >&6; }
  2270. case $ac_cv_build in
  2271. *-*-*) ;;
  2272. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2273. esac
  2274. build=$ac_cv_build
  2275. ac_save_IFS=$IFS; IFS='-'
  2276. set x $ac_cv_build
  2277. shift
  2278. build_cpu=$1
  2279. build_vendor=$2
  2280. shift; shift
  2281. # Remember, the first character of IFS is used to create $*,
  2282. # except with old shells:
  2283. build_os=$*
  2284. IFS=$ac_save_IFS
  2285. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2287. $as_echo_n "checking host system type... " >&6; }
  2288. if ${ac_cv_host+:} false; then :
  2289. $as_echo_n "(cached) " >&6
  2290. else
  2291. if test "x$host_alias" = x; then
  2292. ac_cv_host=$ac_cv_build
  2293. else
  2294. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2295. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2296. fi
  2297. fi
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2299. $as_echo "$ac_cv_host" >&6; }
  2300. case $ac_cv_host in
  2301. *-*-*) ;;
  2302. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2303. esac
  2304. host=$ac_cv_host
  2305. ac_save_IFS=$IFS; IFS='-'
  2306. set x $ac_cv_host
  2307. shift
  2308. host_cpu=$1
  2309. host_vendor=$2
  2310. shift; shift
  2311. # Remember, the first character of IFS is used to create $*,
  2312. # except with old shells:
  2313. host_os=$*
  2314. IFS=$ac_save_IFS
  2315. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2316. # Backslashify metacharacters that are still active within
  2317. # double-quoted strings.
  2318. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2319. # Same as above, but do not quote variable references.
  2320. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2321. # Sed substitution to delay expansion of an escaped shell variable in a
  2322. # double_quote_subst'ed string.
  2323. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2324. # Sed substitution to delay expansion of an escaped single quote.
  2325. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2326. # Sed substitution to avoid accidental globbing in evaled expressions
  2327. no_glob_subst='s/\*/\\\*/g'
  2328. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2329. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2330. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2332. $as_echo_n "checking how to print strings... " >&6; }
  2333. # Test print first, because it will be a builtin if present.
  2334. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2335. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2336. ECHO='print -r --'
  2337. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2338. ECHO='printf %s\n'
  2339. else
  2340. # Use this function as a fallback that always works.
  2341. func_fallback_echo ()
  2342. {
  2343. eval 'cat <<_LTECHO_EOF
  2344. $1
  2345. _LTECHO_EOF'
  2346. }
  2347. ECHO='func_fallback_echo'
  2348. fi
  2349. # func_echo_all arg...
  2350. # Invoke $ECHO with all args, space-separated.
  2351. func_echo_all ()
  2352. {
  2353. $ECHO ""
  2354. }
  2355. case $ECHO in
  2356. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2357. $as_echo "printf" >&6; } ;;
  2358. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2359. $as_echo "print -r" >&6; } ;;
  2360. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2361. $as_echo "cat" >&6; } ;;
  2362. esac
  2363. # Expand $ac_aux_dir to an absolute path.
  2364. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2365. ac_ext=c
  2366. ac_cpp='$CPP $CPPFLAGS'
  2367. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2368. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2369. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2370. if test -n "$ac_tool_prefix"; then
  2371. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2372. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2374. $as_echo_n "checking for $ac_word... " >&6; }
  2375. if ${ac_cv_prog_CC+:} false; then :
  2376. $as_echo_n "(cached) " >&6
  2377. else
  2378. if test -n "$CC"; then
  2379. ac_cv_prog_CC="$CC" # Let the user override the test.
  2380. else
  2381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2382. for as_dir in $PATH
  2383. do
  2384. IFS=$as_save_IFS
  2385. test -z "$as_dir" && as_dir=.
  2386. for ac_exec_ext in '' $ac_executable_extensions; do
  2387. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2388. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2390. break 2
  2391. fi
  2392. done
  2393. done
  2394. IFS=$as_save_IFS
  2395. fi
  2396. fi
  2397. CC=$ac_cv_prog_CC
  2398. if test -n "$CC"; then
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2400. $as_echo "$CC" >&6; }
  2401. else
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2403. $as_echo "no" >&6; }
  2404. fi
  2405. fi
  2406. if test -z "$ac_cv_prog_CC"; then
  2407. ac_ct_CC=$CC
  2408. # Extract the first word of "gcc", so it can be a program name with args.
  2409. set dummy gcc; ac_word=$2
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2411. $as_echo_n "checking for $ac_word... " >&6; }
  2412. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2413. $as_echo_n "(cached) " >&6
  2414. else
  2415. if test -n "$ac_ct_CC"; then
  2416. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2417. else
  2418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2419. for as_dir in $PATH
  2420. do
  2421. IFS=$as_save_IFS
  2422. test -z "$as_dir" && as_dir=.
  2423. for ac_exec_ext in '' $ac_executable_extensions; do
  2424. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2425. ac_cv_prog_ac_ct_CC="gcc"
  2426. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2427. break 2
  2428. fi
  2429. done
  2430. done
  2431. IFS=$as_save_IFS
  2432. fi
  2433. fi
  2434. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2435. if test -n "$ac_ct_CC"; then
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2437. $as_echo "$ac_ct_CC" >&6; }
  2438. else
  2439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2440. $as_echo "no" >&6; }
  2441. fi
  2442. if test "x$ac_ct_CC" = x; then
  2443. CC=""
  2444. else
  2445. case $cross_compiling:$ac_tool_warned in
  2446. yes:)
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2448. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2449. ac_tool_warned=yes ;;
  2450. esac
  2451. CC=$ac_ct_CC
  2452. fi
  2453. else
  2454. CC="$ac_cv_prog_CC"
  2455. fi
  2456. if test -z "$CC"; then
  2457. if test -n "$ac_tool_prefix"; then
  2458. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2459. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2461. $as_echo_n "checking for $ac_word... " >&6; }
  2462. if ${ac_cv_prog_CC+:} false; then :
  2463. $as_echo_n "(cached) " >&6
  2464. else
  2465. if test -n "$CC"; then
  2466. ac_cv_prog_CC="$CC" # Let the user override the test.
  2467. else
  2468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2469. for as_dir in $PATH
  2470. do
  2471. IFS=$as_save_IFS
  2472. test -z "$as_dir" && as_dir=.
  2473. for ac_exec_ext in '' $ac_executable_extensions; do
  2474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2475. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2477. break 2
  2478. fi
  2479. done
  2480. done
  2481. IFS=$as_save_IFS
  2482. fi
  2483. fi
  2484. CC=$ac_cv_prog_CC
  2485. if test -n "$CC"; then
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2487. $as_echo "$CC" >&6; }
  2488. else
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2490. $as_echo "no" >&6; }
  2491. fi
  2492. fi
  2493. fi
  2494. if test -z "$CC"; then
  2495. # Extract the first word of "cc", so it can be a program name with args.
  2496. set dummy cc; ac_word=$2
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2498. $as_echo_n "checking for $ac_word... " >&6; }
  2499. if ${ac_cv_prog_CC+:} false; then :
  2500. $as_echo_n "(cached) " >&6
  2501. else
  2502. if test -n "$CC"; then
  2503. ac_cv_prog_CC="$CC" # Let the user override the test.
  2504. else
  2505. ac_prog_rejected=no
  2506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2507. for as_dir in $PATH
  2508. do
  2509. IFS=$as_save_IFS
  2510. test -z "$as_dir" && as_dir=.
  2511. for ac_exec_ext in '' $ac_executable_extensions; do
  2512. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2513. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2514. ac_prog_rejected=yes
  2515. continue
  2516. fi
  2517. ac_cv_prog_CC="cc"
  2518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2519. break 2
  2520. fi
  2521. done
  2522. done
  2523. IFS=$as_save_IFS
  2524. if test $ac_prog_rejected = yes; then
  2525. # We found a bogon in the path, so make sure we never use it.
  2526. set dummy $ac_cv_prog_CC
  2527. shift
  2528. if test $# != 0; then
  2529. # We chose a different compiler from the bogus one.
  2530. # However, it has the same basename, so the bogon will be chosen
  2531. # first if we set CC to just the basename; use the full file name.
  2532. shift
  2533. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2534. fi
  2535. fi
  2536. fi
  2537. fi
  2538. CC=$ac_cv_prog_CC
  2539. if test -n "$CC"; then
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2541. $as_echo "$CC" >&6; }
  2542. else
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2544. $as_echo "no" >&6; }
  2545. fi
  2546. fi
  2547. if test -z "$CC"; then
  2548. if test -n "$ac_tool_prefix"; then
  2549. for ac_prog in cl.exe
  2550. do
  2551. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2552. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2554. $as_echo_n "checking for $ac_word... " >&6; }
  2555. if ${ac_cv_prog_CC+:} false; then :
  2556. $as_echo_n "(cached) " >&6
  2557. else
  2558. if test -n "$CC"; then
  2559. ac_cv_prog_CC="$CC" # Let the user override the test.
  2560. else
  2561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2562. for as_dir in $PATH
  2563. do
  2564. IFS=$as_save_IFS
  2565. test -z "$as_dir" && as_dir=.
  2566. for ac_exec_ext in '' $ac_executable_extensions; do
  2567. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2568. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2570. break 2
  2571. fi
  2572. done
  2573. done
  2574. IFS=$as_save_IFS
  2575. fi
  2576. fi
  2577. CC=$ac_cv_prog_CC
  2578. if test -n "$CC"; then
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2580. $as_echo "$CC" >&6; }
  2581. else
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2583. $as_echo "no" >&6; }
  2584. fi
  2585. test -n "$CC" && break
  2586. done
  2587. fi
  2588. if test -z "$CC"; then
  2589. ac_ct_CC=$CC
  2590. for ac_prog in cl.exe
  2591. do
  2592. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2593. set dummy $ac_prog; ac_word=$2
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2595. $as_echo_n "checking for $ac_word... " >&6; }
  2596. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2597. $as_echo_n "(cached) " >&6
  2598. else
  2599. if test -n "$ac_ct_CC"; then
  2600. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2601. else
  2602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2603. for as_dir in $PATH
  2604. do
  2605. IFS=$as_save_IFS
  2606. test -z "$as_dir" && as_dir=.
  2607. for ac_exec_ext in '' $ac_executable_extensions; do
  2608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2609. ac_cv_prog_ac_ct_CC="$ac_prog"
  2610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2611. break 2
  2612. fi
  2613. done
  2614. done
  2615. IFS=$as_save_IFS
  2616. fi
  2617. fi
  2618. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2619. if test -n "$ac_ct_CC"; then
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2621. $as_echo "$ac_ct_CC" >&6; }
  2622. else
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2624. $as_echo "no" >&6; }
  2625. fi
  2626. test -n "$ac_ct_CC" && break
  2627. done
  2628. if test "x$ac_ct_CC" = x; then
  2629. CC=""
  2630. else
  2631. case $cross_compiling:$ac_tool_warned in
  2632. yes:)
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2634. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2635. ac_tool_warned=yes ;;
  2636. esac
  2637. CC=$ac_ct_CC
  2638. fi
  2639. fi
  2640. fi
  2641. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2642. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2643. as_fn_error $? "no acceptable C compiler found in \$PATH
  2644. See \`config.log' for more details" "$LINENO" 5; }
  2645. # Provide some information about the compiler.
  2646. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2647. set X $ac_compile
  2648. ac_compiler=$2
  2649. for ac_option in --version -v -V -qversion; do
  2650. { { ac_try="$ac_compiler $ac_option >&5"
  2651. case "(($ac_try" in
  2652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2653. *) ac_try_echo=$ac_try;;
  2654. esac
  2655. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2656. $as_echo "$ac_try_echo"; } >&5
  2657. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2658. ac_status=$?
  2659. if test -s conftest.err; then
  2660. sed '10a\
  2661. ... rest of stderr output deleted ...
  2662. 10q' conftest.err >conftest.er1
  2663. cat conftest.er1 >&5
  2664. fi
  2665. rm -f conftest.er1 conftest.err
  2666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2667. test $ac_status = 0; }
  2668. done
  2669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2670. /* end confdefs.h. */
  2671. int
  2672. main ()
  2673. {
  2674. ;
  2675. return 0;
  2676. }
  2677. _ACEOF
  2678. ac_clean_files_save=$ac_clean_files
  2679. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2680. # Try to create an executable without -o first, disregard a.out.
  2681. # It will help us diagnose broken compilers, and finding out an intuition
  2682. # of exeext.
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2684. $as_echo_n "checking whether the C compiler works... " >&6; }
  2685. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2686. # The possible output files:
  2687. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2688. ac_rmfiles=
  2689. for ac_file in $ac_files
  2690. do
  2691. case $ac_file in
  2692. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2693. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2694. esac
  2695. done
  2696. rm -f $ac_rmfiles
  2697. if { { ac_try="$ac_link_default"
  2698. case "(($ac_try" in
  2699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2700. *) ac_try_echo=$ac_try;;
  2701. esac
  2702. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2703. $as_echo "$ac_try_echo"; } >&5
  2704. (eval "$ac_link_default") 2>&5
  2705. ac_status=$?
  2706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2707. test $ac_status = 0; }; then :
  2708. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2709. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2710. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2711. # so that the user can short-circuit this test for compilers unknown to
  2712. # Autoconf.
  2713. for ac_file in $ac_files ''
  2714. do
  2715. test -f "$ac_file" || continue
  2716. case $ac_file in
  2717. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2718. ;;
  2719. [ab].out )
  2720. # We found the default executable, but exeext='' is most
  2721. # certainly right.
  2722. break;;
  2723. *.* )
  2724. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2725. then :; else
  2726. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2727. fi
  2728. # We set ac_cv_exeext here because the later test for it is not
  2729. # safe: cross compilers may not add the suffix if given an `-o'
  2730. # argument, so we may need to know it at that point already.
  2731. # Even if this section looks crufty: it has the advantage of
  2732. # actually working.
  2733. break;;
  2734. * )
  2735. break;;
  2736. esac
  2737. done
  2738. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2739. else
  2740. ac_file=''
  2741. fi
  2742. if test -z "$ac_file"; then :
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2744. $as_echo "no" >&6; }
  2745. $as_echo "$as_me: failed program was:" >&5
  2746. sed 's/^/| /' conftest.$ac_ext >&5
  2747. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2748. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2749. as_fn_error 77 "C compiler cannot create executables
  2750. See \`config.log' for more details" "$LINENO" 5; }
  2751. else
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2753. $as_echo "yes" >&6; }
  2754. fi
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2756. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2758. $as_echo "$ac_file" >&6; }
  2759. ac_exeext=$ac_cv_exeext
  2760. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2761. ac_clean_files=$ac_clean_files_save
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2763. $as_echo_n "checking for suffix of executables... " >&6; }
  2764. if { { ac_try="$ac_link"
  2765. case "(($ac_try" in
  2766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2767. *) ac_try_echo=$ac_try;;
  2768. esac
  2769. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2770. $as_echo "$ac_try_echo"; } >&5
  2771. (eval "$ac_link") 2>&5
  2772. ac_status=$?
  2773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2774. test $ac_status = 0; }; then :
  2775. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2776. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2777. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2778. # `rm'.
  2779. for ac_file in conftest.exe conftest conftest.*; do
  2780. test -f "$ac_file" || continue
  2781. case $ac_file in
  2782. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2783. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2784. break;;
  2785. * ) break;;
  2786. esac
  2787. done
  2788. else
  2789. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2790. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2791. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2792. See \`config.log' for more details" "$LINENO" 5; }
  2793. fi
  2794. rm -f conftest conftest$ac_cv_exeext
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2796. $as_echo "$ac_cv_exeext" >&6; }
  2797. rm -f conftest.$ac_ext
  2798. EXEEXT=$ac_cv_exeext
  2799. ac_exeext=$EXEEXT
  2800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2801. /* end confdefs.h. */
  2802. #include <stdio.h>
  2803. int
  2804. main ()
  2805. {
  2806. FILE *f = fopen ("conftest.out", "w");
  2807. return ferror (f) || fclose (f) != 0;
  2808. ;
  2809. return 0;
  2810. }
  2811. _ACEOF
  2812. ac_clean_files="$ac_clean_files conftest.out"
  2813. # Check that the compiler produces executables we can run. If not, either
  2814. # the compiler is broken, or we cross compile.
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2816. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2817. if test "$cross_compiling" != yes; then
  2818. { { ac_try="$ac_link"
  2819. case "(($ac_try" in
  2820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2821. *) ac_try_echo=$ac_try;;
  2822. esac
  2823. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2824. $as_echo "$ac_try_echo"; } >&5
  2825. (eval "$ac_link") 2>&5
  2826. ac_status=$?
  2827. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2828. test $ac_status = 0; }
  2829. if { ac_try='./conftest$ac_cv_exeext'
  2830. { { case "(($ac_try" in
  2831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2832. *) ac_try_echo=$ac_try;;
  2833. esac
  2834. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2835. $as_echo "$ac_try_echo"; } >&5
  2836. (eval "$ac_try") 2>&5
  2837. ac_status=$?
  2838. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2839. test $ac_status = 0; }; }; then
  2840. cross_compiling=no
  2841. else
  2842. if test "$cross_compiling" = maybe; then
  2843. cross_compiling=yes
  2844. else
  2845. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2846. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2847. as_fn_error $? "cannot run C compiled programs.
  2848. If you meant to cross compile, use \`--host'.
  2849. See \`config.log' for more details" "$LINENO" 5; }
  2850. fi
  2851. fi
  2852. fi
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2854. $as_echo "$cross_compiling" >&6; }
  2855. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2856. ac_clean_files=$ac_clean_files_save
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2858. $as_echo_n "checking for suffix of object files... " >&6; }
  2859. if ${ac_cv_objext+:} false; then :
  2860. $as_echo_n "(cached) " >&6
  2861. else
  2862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2863. /* end confdefs.h. */
  2864. int
  2865. main ()
  2866. {
  2867. ;
  2868. return 0;
  2869. }
  2870. _ACEOF
  2871. rm -f conftest.o conftest.obj
  2872. if { { ac_try="$ac_compile"
  2873. case "(($ac_try" in
  2874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2875. *) ac_try_echo=$ac_try;;
  2876. esac
  2877. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2878. $as_echo "$ac_try_echo"; } >&5
  2879. (eval "$ac_compile") 2>&5
  2880. ac_status=$?
  2881. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2882. test $ac_status = 0; }; then :
  2883. for ac_file in conftest.o conftest.obj conftest.*; do
  2884. test -f "$ac_file" || continue;
  2885. case $ac_file in
  2886. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2887. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2888. break;;
  2889. esac
  2890. done
  2891. else
  2892. $as_echo "$as_me: failed program was:" >&5
  2893. sed 's/^/| /' conftest.$ac_ext >&5
  2894. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2895. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2896. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2897. See \`config.log' for more details" "$LINENO" 5; }
  2898. fi
  2899. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2900. fi
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2902. $as_echo "$ac_cv_objext" >&6; }
  2903. OBJEXT=$ac_cv_objext
  2904. ac_objext=$OBJEXT
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2906. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2907. if ${ac_cv_c_compiler_gnu+:} false; then :
  2908. $as_echo_n "(cached) " >&6
  2909. else
  2910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2911. /* end confdefs.h. */
  2912. int
  2913. main ()
  2914. {
  2915. #ifndef __GNUC__
  2916. choke me
  2917. #endif
  2918. ;
  2919. return 0;
  2920. }
  2921. _ACEOF
  2922. if ac_fn_c_try_compile "$LINENO"; then :
  2923. ac_compiler_gnu=yes
  2924. else
  2925. ac_compiler_gnu=no
  2926. fi
  2927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2928. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2929. fi
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2931. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2932. if test $ac_compiler_gnu = yes; then
  2933. GCC=yes
  2934. else
  2935. GCC=
  2936. fi
  2937. ac_test_CFLAGS=${CFLAGS+set}
  2938. ac_save_CFLAGS=$CFLAGS
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2940. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2941. if ${ac_cv_prog_cc_g+:} false; then :
  2942. $as_echo_n "(cached) " >&6
  2943. else
  2944. ac_save_c_werror_flag=$ac_c_werror_flag
  2945. ac_c_werror_flag=yes
  2946. ac_cv_prog_cc_g=no
  2947. CFLAGS="-g"
  2948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2949. /* end confdefs.h. */
  2950. int
  2951. main ()
  2952. {
  2953. ;
  2954. return 0;
  2955. }
  2956. _ACEOF
  2957. if ac_fn_c_try_compile "$LINENO"; then :
  2958. ac_cv_prog_cc_g=yes
  2959. else
  2960. CFLAGS=""
  2961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2962. /* end confdefs.h. */
  2963. int
  2964. main ()
  2965. {
  2966. ;
  2967. return 0;
  2968. }
  2969. _ACEOF
  2970. if ac_fn_c_try_compile "$LINENO"; then :
  2971. else
  2972. ac_c_werror_flag=$ac_save_c_werror_flag
  2973. CFLAGS="-g"
  2974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2975. /* end confdefs.h. */
  2976. int
  2977. main ()
  2978. {
  2979. ;
  2980. return 0;
  2981. }
  2982. _ACEOF
  2983. if ac_fn_c_try_compile "$LINENO"; then :
  2984. ac_cv_prog_cc_g=yes
  2985. fi
  2986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2987. fi
  2988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2989. fi
  2990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2991. ac_c_werror_flag=$ac_save_c_werror_flag
  2992. fi
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2994. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2995. if test "$ac_test_CFLAGS" = set; then
  2996. CFLAGS=$ac_save_CFLAGS
  2997. elif test $ac_cv_prog_cc_g = yes; then
  2998. if test "$GCC" = yes; then
  2999. CFLAGS="-g -O2"
  3000. else
  3001. CFLAGS="-g"
  3002. fi
  3003. else
  3004. if test "$GCC" = yes; then
  3005. CFLAGS="-O2"
  3006. else
  3007. CFLAGS=
  3008. fi
  3009. fi
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3011. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3012. if ${ac_cv_prog_cc_c89+:} false; then :
  3013. $as_echo_n "(cached) " >&6
  3014. else
  3015. ac_cv_prog_cc_c89=no
  3016. ac_save_CC=$CC
  3017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3018. /* end confdefs.h. */
  3019. #include <stdarg.h>
  3020. #include <stdio.h>
  3021. struct stat;
  3022. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3023. struct buf { int x; };
  3024. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3025. static char *e (p, i)
  3026. char **p;
  3027. int i;
  3028. {
  3029. return p[i];
  3030. }
  3031. static char *f (char * (*g) (char **, int), char **p, ...)
  3032. {
  3033. char *s;
  3034. va_list v;
  3035. va_start (v,p);
  3036. s = g (p, va_arg (v,int));
  3037. va_end (v);
  3038. return s;
  3039. }
  3040. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3041. function prototypes and stuff, but not '\xHH' hex character constants.
  3042. These don't provoke an error unfortunately, instead are silently treated
  3043. as 'x'. The following induces an error, until -std is added to get
  3044. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3045. array size at least. It's necessary to write '\x00'==0 to get something
  3046. that's true only with -std. */
  3047. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3048. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3049. inside strings and character constants. */
  3050. #define FOO(x) 'x'
  3051. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3052. int test (int i, double x);
  3053. struct s1 {int (*f) (int a);};
  3054. struct s2 {int (*f) (double a);};
  3055. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3056. int argc;
  3057. char **argv;
  3058. int
  3059. main ()
  3060. {
  3061. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3062. ;
  3063. return 0;
  3064. }
  3065. _ACEOF
  3066. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3067. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3068. do
  3069. CC="$ac_save_CC $ac_arg"
  3070. if ac_fn_c_try_compile "$LINENO"; then :
  3071. ac_cv_prog_cc_c89=$ac_arg
  3072. fi
  3073. rm -f core conftest.err conftest.$ac_objext
  3074. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3075. done
  3076. rm -f conftest.$ac_ext
  3077. CC=$ac_save_CC
  3078. fi
  3079. # AC_CACHE_VAL
  3080. case "x$ac_cv_prog_cc_c89" in
  3081. x)
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3083. $as_echo "none needed" >&6; } ;;
  3084. xno)
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3086. $as_echo "unsupported" >&6; } ;;
  3087. *)
  3088. CC="$CC $ac_cv_prog_cc_c89"
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3090. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3091. esac
  3092. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3093. fi
  3094. ac_ext=c
  3095. ac_cpp='$CPP $CPPFLAGS'
  3096. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3097. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3098. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3099. ac_ext=c
  3100. ac_cpp='$CPP $CPPFLAGS'
  3101. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3102. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3103. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3105. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3106. if ${am_cv_prog_cc_c_o+:} false; then :
  3107. $as_echo_n "(cached) " >&6
  3108. else
  3109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3110. /* end confdefs.h. */
  3111. int
  3112. main ()
  3113. {
  3114. ;
  3115. return 0;
  3116. }
  3117. _ACEOF
  3118. # Make sure it works both with $CC and with simple cc.
  3119. # Following AC_PROG_CC_C_O, we do the test twice because some
  3120. # compilers refuse to overwrite an existing .o file with -o,
  3121. # though they will create one.
  3122. am_cv_prog_cc_c_o=yes
  3123. for am_i in 1 2; do
  3124. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3125. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3126. ac_status=$?
  3127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3128. (exit $ac_status); } \
  3129. && test -f conftest2.$ac_objext; then
  3130. : OK
  3131. else
  3132. am_cv_prog_cc_c_o=no
  3133. break
  3134. fi
  3135. done
  3136. rm -f core conftest*
  3137. unset am_i
  3138. fi
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3140. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3141. if test "$am_cv_prog_cc_c_o" != yes; then
  3142. # Losing compiler, so override with the script.
  3143. # FIXME: It is wrong to rewrite CC.
  3144. # But if we don't then we get into trouble of one sort or another.
  3145. # A longer-term fix would be to have automake use am__CC in this case,
  3146. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3147. CC="$am_aux_dir/compile $CC"
  3148. fi
  3149. ac_ext=c
  3150. ac_cpp='$CPP $CPPFLAGS'
  3151. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3152. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3153. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3155. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3156. if ${ac_cv_path_SED+:} false; then :
  3157. $as_echo_n "(cached) " >&6
  3158. else
  3159. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3160. for ac_i in 1 2 3 4 5 6 7; do
  3161. ac_script="$ac_script$as_nl$ac_script"
  3162. done
  3163. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3164. { ac_script=; unset ac_script;}
  3165. if test -z "$SED"; then
  3166. ac_path_SED_found=false
  3167. # Loop through the user's path and test for each of PROGNAME-LIST
  3168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3169. for as_dir in $PATH
  3170. do
  3171. IFS=$as_save_IFS
  3172. test -z "$as_dir" && as_dir=.
  3173. for ac_prog in sed gsed; do
  3174. for ac_exec_ext in '' $ac_executable_extensions; do
  3175. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3176. as_fn_executable_p "$ac_path_SED" || continue
  3177. # Check for GNU ac_path_SED and select it if it is found.
  3178. # Check for GNU $ac_path_SED
  3179. case `"$ac_path_SED" --version 2>&1` in
  3180. *GNU*)
  3181. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3182. *)
  3183. ac_count=0
  3184. $as_echo_n 0123456789 >"conftest.in"
  3185. while :
  3186. do
  3187. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3188. mv "conftest.tmp" "conftest.in"
  3189. cp "conftest.in" "conftest.nl"
  3190. $as_echo '' >> "conftest.nl"
  3191. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3192. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3193. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3194. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3195. # Best one so far, save it but keep looking for a better one
  3196. ac_cv_path_SED="$ac_path_SED"
  3197. ac_path_SED_max=$ac_count
  3198. fi
  3199. # 10*(2^10) chars as input seems more than enough
  3200. test $ac_count -gt 10 && break
  3201. done
  3202. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3203. esac
  3204. $ac_path_SED_found && break 3
  3205. done
  3206. done
  3207. done
  3208. IFS=$as_save_IFS
  3209. if test -z "$ac_cv_path_SED"; then
  3210. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3211. fi
  3212. else
  3213. ac_cv_path_SED=$SED
  3214. fi
  3215. fi
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3217. $as_echo "$ac_cv_path_SED" >&6; }
  3218. SED="$ac_cv_path_SED"
  3219. rm -f conftest.sed
  3220. test -z "$SED" && SED=sed
  3221. Xsed="$SED -e 1s/^X//"
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3223. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3224. if ${ac_cv_path_GREP+:} false; then :
  3225. $as_echo_n "(cached) " >&6
  3226. else
  3227. if test -z "$GREP"; then
  3228. ac_path_GREP_found=false
  3229. # Loop through the user's path and test for each of PROGNAME-LIST
  3230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3231. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3232. do
  3233. IFS=$as_save_IFS
  3234. test -z "$as_dir" && as_dir=.
  3235. for ac_prog in grep ggrep; do
  3236. for ac_exec_ext in '' $ac_executable_extensions; do
  3237. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3238. as_fn_executable_p "$ac_path_GREP" || continue
  3239. # Check for GNU ac_path_GREP and select it if it is found.
  3240. # Check for GNU $ac_path_GREP
  3241. case `"$ac_path_GREP" --version 2>&1` in
  3242. *GNU*)
  3243. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3244. *)
  3245. ac_count=0
  3246. $as_echo_n 0123456789 >"conftest.in"
  3247. while :
  3248. do
  3249. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3250. mv "conftest.tmp" "conftest.in"
  3251. cp "conftest.in" "conftest.nl"
  3252. $as_echo 'GREP' >> "conftest.nl"
  3253. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3254. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3255. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3256. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3257. # Best one so far, save it but keep looking for a better one
  3258. ac_cv_path_GREP="$ac_path_GREP"
  3259. ac_path_GREP_max=$ac_count
  3260. fi
  3261. # 10*(2^10) chars as input seems more than enough
  3262. test $ac_count -gt 10 && break
  3263. done
  3264. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3265. esac
  3266. $ac_path_GREP_found && break 3
  3267. done
  3268. done
  3269. done
  3270. IFS=$as_save_IFS
  3271. if test -z "$ac_cv_path_GREP"; then
  3272. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3273. fi
  3274. else
  3275. ac_cv_path_GREP=$GREP
  3276. fi
  3277. fi
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3279. $as_echo "$ac_cv_path_GREP" >&6; }
  3280. GREP="$ac_cv_path_GREP"
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3282. $as_echo_n "checking for egrep... " >&6; }
  3283. if ${ac_cv_path_EGREP+:} false; then :
  3284. $as_echo_n "(cached) " >&6
  3285. else
  3286. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3287. then ac_cv_path_EGREP="$GREP -E"
  3288. else
  3289. if test -z "$EGREP"; then
  3290. ac_path_EGREP_found=false
  3291. # Loop through the user's path and test for each of PROGNAME-LIST
  3292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3293. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3294. do
  3295. IFS=$as_save_IFS
  3296. test -z "$as_dir" && as_dir=.
  3297. for ac_prog in egrep; do
  3298. for ac_exec_ext in '' $ac_executable_extensions; do
  3299. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3300. as_fn_executable_p "$ac_path_EGREP" || continue
  3301. # Check for GNU ac_path_EGREP and select it if it is found.
  3302. # Check for GNU $ac_path_EGREP
  3303. case `"$ac_path_EGREP" --version 2>&1` in
  3304. *GNU*)
  3305. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3306. *)
  3307. ac_count=0
  3308. $as_echo_n 0123456789 >"conftest.in"
  3309. while :
  3310. do
  3311. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3312. mv "conftest.tmp" "conftest.in"
  3313. cp "conftest.in" "conftest.nl"
  3314. $as_echo 'EGREP' >> "conftest.nl"
  3315. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3316. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3317. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3318. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3319. # Best one so far, save it but keep looking for a better one
  3320. ac_cv_path_EGREP="$ac_path_EGREP"
  3321. ac_path_EGREP_max=$ac_count
  3322. fi
  3323. # 10*(2^10) chars as input seems more than enough
  3324. test $ac_count -gt 10 && break
  3325. done
  3326. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3327. esac
  3328. $ac_path_EGREP_found && break 3
  3329. done
  3330. done
  3331. done
  3332. IFS=$as_save_IFS
  3333. if test -z "$ac_cv_path_EGREP"; then
  3334. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3335. fi
  3336. else
  3337. ac_cv_path_EGREP=$EGREP
  3338. fi
  3339. fi
  3340. fi
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3342. $as_echo "$ac_cv_path_EGREP" >&6; }
  3343. EGREP="$ac_cv_path_EGREP"
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3345. $as_echo_n "checking for fgrep... " >&6; }
  3346. if ${ac_cv_path_FGREP+:} false; then :
  3347. $as_echo_n "(cached) " >&6
  3348. else
  3349. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3350. then ac_cv_path_FGREP="$GREP -F"
  3351. else
  3352. if test -z "$FGREP"; then
  3353. ac_path_FGREP_found=false
  3354. # Loop through the user's path and test for each of PROGNAME-LIST
  3355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3356. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3357. do
  3358. IFS=$as_save_IFS
  3359. test -z "$as_dir" && as_dir=.
  3360. for ac_prog in fgrep; do
  3361. for ac_exec_ext in '' $ac_executable_extensions; do
  3362. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3363. as_fn_executable_p "$ac_path_FGREP" || continue
  3364. # Check for GNU ac_path_FGREP and select it if it is found.
  3365. # Check for GNU $ac_path_FGREP
  3366. case `"$ac_path_FGREP" --version 2>&1` in
  3367. *GNU*)
  3368. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3369. *)
  3370. ac_count=0
  3371. $as_echo_n 0123456789 >"conftest.in"
  3372. while :
  3373. do
  3374. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3375. mv "conftest.tmp" "conftest.in"
  3376. cp "conftest.in" "conftest.nl"
  3377. $as_echo 'FGREP' >> "conftest.nl"
  3378. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3379. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3380. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3381. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3382. # Best one so far, save it but keep looking for a better one
  3383. ac_cv_path_FGREP="$ac_path_FGREP"
  3384. ac_path_FGREP_max=$ac_count
  3385. fi
  3386. # 10*(2^10) chars as input seems more than enough
  3387. test $ac_count -gt 10 && break
  3388. done
  3389. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3390. esac
  3391. $ac_path_FGREP_found && break 3
  3392. done
  3393. done
  3394. done
  3395. IFS=$as_save_IFS
  3396. if test -z "$ac_cv_path_FGREP"; then
  3397. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3398. fi
  3399. else
  3400. ac_cv_path_FGREP=$FGREP
  3401. fi
  3402. fi
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3405. $as_echo "$ac_cv_path_FGREP" >&6; }
  3406. FGREP="$ac_cv_path_FGREP"
  3407. test -z "$GREP" && GREP=grep
  3408. # Check whether --with-gnu-ld was given.
  3409. if test "${with_gnu_ld+set}" = set; then :
  3410. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3411. else
  3412. with_gnu_ld=no
  3413. fi
  3414. ac_prog=ld
  3415. if test yes = "$GCC"; then
  3416. # Check if gcc -print-prog-name=ld gives a path.
  3417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3418. $as_echo_n "checking for ld used by $CC... " >&6; }
  3419. case $host in
  3420. *-*-mingw*)
  3421. # gcc leaves a trailing carriage return, which upsets mingw
  3422. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3423. *)
  3424. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3425. esac
  3426. case $ac_prog in
  3427. # Accept absolute paths.
  3428. [\\/]* | ?:[\\/]*)
  3429. re_direlt='/[^/][^/]*/\.\./'
  3430. # Canonicalize the pathname of ld
  3431. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3432. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3433. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3434. done
  3435. test -z "$LD" && LD=$ac_prog
  3436. ;;
  3437. "")
  3438. # If it fails, then pretend we aren't using GCC.
  3439. ac_prog=ld
  3440. ;;
  3441. *)
  3442. # If it is relative, then search for the first ld in PATH.
  3443. with_gnu_ld=unknown
  3444. ;;
  3445. esac
  3446. elif test yes = "$with_gnu_ld"; then
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3448. $as_echo_n "checking for GNU ld... " >&6; }
  3449. else
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3451. $as_echo_n "checking for non-GNU ld... " >&6; }
  3452. fi
  3453. if ${lt_cv_path_LD+:} false; then :
  3454. $as_echo_n "(cached) " >&6
  3455. else
  3456. if test -z "$LD"; then
  3457. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3458. for ac_dir in $PATH; do
  3459. IFS=$lt_save_ifs
  3460. test -z "$ac_dir" && ac_dir=.
  3461. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3462. lt_cv_path_LD=$ac_dir/$ac_prog
  3463. # Check to see if the program is GNU ld. I'd rather use --version,
  3464. # but apparently some variants of GNU ld only accept -v.
  3465. # Break only if it was the GNU/non-GNU ld that we prefer.
  3466. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3467. *GNU* | *'with BFD'*)
  3468. test no != "$with_gnu_ld" && break
  3469. ;;
  3470. *)
  3471. test yes != "$with_gnu_ld" && break
  3472. ;;
  3473. esac
  3474. fi
  3475. done
  3476. IFS=$lt_save_ifs
  3477. else
  3478. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3479. fi
  3480. fi
  3481. LD=$lt_cv_path_LD
  3482. if test -n "$LD"; then
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3484. $as_echo "$LD" >&6; }
  3485. else
  3486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3487. $as_echo "no" >&6; }
  3488. fi
  3489. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3491. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3492. if ${lt_cv_prog_gnu_ld+:} false; then :
  3493. $as_echo_n "(cached) " >&6
  3494. else
  3495. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3496. case `$LD -v 2>&1 </dev/null` in
  3497. *GNU* | *'with BFD'*)
  3498. lt_cv_prog_gnu_ld=yes
  3499. ;;
  3500. *)
  3501. lt_cv_prog_gnu_ld=no
  3502. ;;
  3503. esac
  3504. fi
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3506. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3507. with_gnu_ld=$lt_cv_prog_gnu_ld
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3509. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3510. if ${lt_cv_path_NM+:} false; then :
  3511. $as_echo_n "(cached) " >&6
  3512. else
  3513. if test -n "$NM"; then
  3514. # Let the user override the test.
  3515. lt_cv_path_NM=$NM
  3516. else
  3517. lt_nm_to_check=${ac_tool_prefix}nm
  3518. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3519. lt_nm_to_check="$lt_nm_to_check nm"
  3520. fi
  3521. for lt_tmp_nm in $lt_nm_to_check; do
  3522. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3523. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3524. IFS=$lt_save_ifs
  3525. test -z "$ac_dir" && ac_dir=.
  3526. tmp_nm=$ac_dir/$lt_tmp_nm
  3527. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3528. # Check to see if the nm accepts a BSD-compat flag.
  3529. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3530. # nm: unknown option "B" ignored
  3531. # Tru64's nm complains that /dev/null is an invalid object file
  3532. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3533. case $build_os in
  3534. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3535. *) lt_bad_file=/dev/null ;;
  3536. esac
  3537. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3538. *$lt_bad_file* | *'Invalid file or object type'*)
  3539. lt_cv_path_NM="$tmp_nm -B"
  3540. break 2
  3541. ;;
  3542. *)
  3543. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3544. */dev/null*)
  3545. lt_cv_path_NM="$tmp_nm -p"
  3546. break 2
  3547. ;;
  3548. *)
  3549. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3550. continue # so that we can try to find one that supports BSD flags
  3551. ;;
  3552. esac
  3553. ;;
  3554. esac
  3555. fi
  3556. done
  3557. IFS=$lt_save_ifs
  3558. done
  3559. : ${lt_cv_path_NM=no}
  3560. fi
  3561. fi
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3563. $as_echo "$lt_cv_path_NM" >&6; }
  3564. if test no != "$lt_cv_path_NM"; then
  3565. NM=$lt_cv_path_NM
  3566. else
  3567. # Didn't find any BSD compatible name lister, look for dumpbin.
  3568. if test -n "$DUMPBIN"; then :
  3569. # Let the user override the test.
  3570. else
  3571. if test -n "$ac_tool_prefix"; then
  3572. for ac_prog in dumpbin "link -dump"
  3573. do
  3574. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3575. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3577. $as_echo_n "checking for $ac_word... " >&6; }
  3578. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3579. $as_echo_n "(cached) " >&6
  3580. else
  3581. if test -n "$DUMPBIN"; then
  3582. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3583. else
  3584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3585. for as_dir in $PATH
  3586. do
  3587. IFS=$as_save_IFS
  3588. test -z "$as_dir" && as_dir=.
  3589. for ac_exec_ext in '' $ac_executable_extensions; do
  3590. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3591. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3593. break 2
  3594. fi
  3595. done
  3596. done
  3597. IFS=$as_save_IFS
  3598. fi
  3599. fi
  3600. DUMPBIN=$ac_cv_prog_DUMPBIN
  3601. if test -n "$DUMPBIN"; then
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3603. $as_echo "$DUMPBIN" >&6; }
  3604. else
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3606. $as_echo "no" >&6; }
  3607. fi
  3608. test -n "$DUMPBIN" && break
  3609. done
  3610. fi
  3611. if test -z "$DUMPBIN"; then
  3612. ac_ct_DUMPBIN=$DUMPBIN
  3613. for ac_prog in dumpbin "link -dump"
  3614. do
  3615. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3616. set dummy $ac_prog; ac_word=$2
  3617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3618. $as_echo_n "checking for $ac_word... " >&6; }
  3619. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3620. $as_echo_n "(cached) " >&6
  3621. else
  3622. if test -n "$ac_ct_DUMPBIN"; then
  3623. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3624. else
  3625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3626. for as_dir in $PATH
  3627. do
  3628. IFS=$as_save_IFS
  3629. test -z "$as_dir" && as_dir=.
  3630. for ac_exec_ext in '' $ac_executable_extensions; do
  3631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3632. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3634. break 2
  3635. fi
  3636. done
  3637. done
  3638. IFS=$as_save_IFS
  3639. fi
  3640. fi
  3641. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3642. if test -n "$ac_ct_DUMPBIN"; then
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3644. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3645. else
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3647. $as_echo "no" >&6; }
  3648. fi
  3649. test -n "$ac_ct_DUMPBIN" && break
  3650. done
  3651. if test "x$ac_ct_DUMPBIN" = x; then
  3652. DUMPBIN=":"
  3653. else
  3654. case $cross_compiling:$ac_tool_warned in
  3655. yes:)
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3657. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3658. ac_tool_warned=yes ;;
  3659. esac
  3660. DUMPBIN=$ac_ct_DUMPBIN
  3661. fi
  3662. fi
  3663. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  3664. *COFF*)
  3665. DUMPBIN="$DUMPBIN -symbols -headers"
  3666. ;;
  3667. *)
  3668. DUMPBIN=:
  3669. ;;
  3670. esac
  3671. fi
  3672. if test : != "$DUMPBIN"; then
  3673. NM=$DUMPBIN
  3674. fi
  3675. fi
  3676. test -z "$NM" && NM=nm
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3678. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3679. if ${lt_cv_nm_interface+:} false; then :
  3680. $as_echo_n "(cached) " >&6
  3681. else
  3682. lt_cv_nm_interface="BSD nm"
  3683. echo "int some_variable = 0;" > conftest.$ac_ext
  3684. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3685. (eval "$ac_compile" 2>conftest.err)
  3686. cat conftest.err >&5
  3687. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3688. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3689. cat conftest.err >&5
  3690. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3691. cat conftest.out >&5
  3692. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3693. lt_cv_nm_interface="MS dumpbin"
  3694. fi
  3695. rm -f conftest*
  3696. fi
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3698. $as_echo "$lt_cv_nm_interface" >&6; }
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3700. $as_echo_n "checking whether ln -s works... " >&6; }
  3701. LN_S=$as_ln_s
  3702. if test "$LN_S" = "ln -s"; then
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3704. $as_echo "yes" >&6; }
  3705. else
  3706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3707. $as_echo "no, using $LN_S" >&6; }
  3708. fi
  3709. # find the maximum length of command line arguments
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3711. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3712. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3713. $as_echo_n "(cached) " >&6
  3714. else
  3715. i=0
  3716. teststring=ABCD
  3717. case $build_os in
  3718. msdosdjgpp*)
  3719. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3720. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3721. # during glob expansion). Even if it were fixed, the result of this
  3722. # check would be larger than it should be.
  3723. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3724. ;;
  3725. gnu*)
  3726. # Under GNU Hurd, this test is not required because there is
  3727. # no limit to the length of command line arguments.
  3728. # Libtool will interpret -1 as no limit whatsoever
  3729. lt_cv_sys_max_cmd_len=-1;
  3730. ;;
  3731. cygwin* | mingw* | cegcc*)
  3732. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3733. # about 5 minutes as the teststring grows exponentially.
  3734. # Worse, since 9x/ME are not pre-emptively multitasking,
  3735. # you end up with a "frozen" computer, even though with patience
  3736. # the test eventually succeeds (with a max line length of 256k).
  3737. # Instead, let's just punt: use the minimum linelength reported by
  3738. # all of the supported platforms: 8192 (on NT/2K/XP).
  3739. lt_cv_sys_max_cmd_len=8192;
  3740. ;;
  3741. mint*)
  3742. # On MiNT this can take a long time and run out of memory.
  3743. lt_cv_sys_max_cmd_len=8192;
  3744. ;;
  3745. amigaos*)
  3746. # On AmigaOS with pdksh, this test takes hours, literally.
  3747. # So we just punt and use a minimum line length of 8192.
  3748. lt_cv_sys_max_cmd_len=8192;
  3749. ;;
  3750. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  3751. # This has been around since 386BSD, at least. Likely further.
  3752. if test -x /sbin/sysctl; then
  3753. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3754. elif test -x /usr/sbin/sysctl; then
  3755. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3756. else
  3757. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3758. fi
  3759. # And add a safety zone
  3760. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3761. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3762. ;;
  3763. interix*)
  3764. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3765. lt_cv_sys_max_cmd_len=196608
  3766. ;;
  3767. os2*)
  3768. # The test takes a long time on OS/2.
  3769. lt_cv_sys_max_cmd_len=8192
  3770. ;;
  3771. osf*)
  3772. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3773. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3774. # nice to cause kernel panics so lets avoid the loop below.
  3775. # First set a reasonable default.
  3776. lt_cv_sys_max_cmd_len=16384
  3777. #
  3778. if test -x /sbin/sysconfig; then
  3779. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3780. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3781. esac
  3782. fi
  3783. ;;
  3784. sco3.2v5*)
  3785. lt_cv_sys_max_cmd_len=102400
  3786. ;;
  3787. sysv5* | sco5v6* | sysv4.2uw2*)
  3788. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3789. if test -n "$kargmax"; then
  3790. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3791. else
  3792. lt_cv_sys_max_cmd_len=32768
  3793. fi
  3794. ;;
  3795. *)
  3796. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3797. if test -n "$lt_cv_sys_max_cmd_len" && \
  3798. test undefined != "$lt_cv_sys_max_cmd_len"; then
  3799. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3800. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3801. else
  3802. # Make teststring a little bigger before we do anything with it.
  3803. # a 1K string should be a reasonable start.
  3804. for i in 1 2 3 4 5 6 7 8; do
  3805. teststring=$teststring$teststring
  3806. done
  3807. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3808. # If test is not a shell built-in, we'll probably end up computing a
  3809. # maximum length that is only half of the actual maximum length, but
  3810. # we can't tell.
  3811. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  3812. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3813. test 17 != "$i" # 1/2 MB should be enough
  3814. do
  3815. i=`expr $i + 1`
  3816. teststring=$teststring$teststring
  3817. done
  3818. # Only check the string length outside the loop.
  3819. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3820. teststring=
  3821. # Add a significant safety factor because C++ compilers can tack on
  3822. # massive amounts of additional arguments before passing them to the
  3823. # linker. It appears as though 1/2 is a usable value.
  3824. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3825. fi
  3826. ;;
  3827. esac
  3828. fi
  3829. if test -n "$lt_cv_sys_max_cmd_len"; then
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3831. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3832. else
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3834. $as_echo "none" >&6; }
  3835. fi
  3836. max_cmd_len=$lt_cv_sys_max_cmd_len
  3837. : ${CP="cp -f"}
  3838. : ${MV="mv -f"}
  3839. : ${RM="rm -f"}
  3840. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3841. lt_unset=unset
  3842. else
  3843. lt_unset=false
  3844. fi
  3845. # test EBCDIC or ASCII
  3846. case `echo X|tr X '\101'` in
  3847. A) # ASCII based system
  3848. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  3849. lt_SP2NL='tr \040 \012'
  3850. lt_NL2SP='tr \015\012 \040\040'
  3851. ;;
  3852. *) # EBCDIC based system
  3853. lt_SP2NL='tr \100 \n'
  3854. lt_NL2SP='tr \r\n \100\100'
  3855. ;;
  3856. esac
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  3858. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  3859. if ${lt_cv_to_host_file_cmd+:} false; then :
  3860. $as_echo_n "(cached) " >&6
  3861. else
  3862. case $host in
  3863. *-*-mingw* )
  3864. case $build in
  3865. *-*-mingw* ) # actually msys
  3866. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  3867. ;;
  3868. *-*-cygwin* )
  3869. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  3870. ;;
  3871. * ) # otherwise, assume *nix
  3872. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  3873. ;;
  3874. esac
  3875. ;;
  3876. *-*-cygwin* )
  3877. case $build in
  3878. *-*-mingw* ) # actually msys
  3879. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  3880. ;;
  3881. *-*-cygwin* )
  3882. lt_cv_to_host_file_cmd=func_convert_file_noop
  3883. ;;
  3884. * ) # otherwise, assume *nix
  3885. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  3886. ;;
  3887. esac
  3888. ;;
  3889. * ) # unhandled hosts (and "normal" native builds)
  3890. lt_cv_to_host_file_cmd=func_convert_file_noop
  3891. ;;
  3892. esac
  3893. fi
  3894. to_host_file_cmd=$lt_cv_to_host_file_cmd
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  3896. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  3897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  3898. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  3899. if ${lt_cv_to_tool_file_cmd+:} false; then :
  3900. $as_echo_n "(cached) " >&6
  3901. else
  3902. #assume ordinary cross tools, or native build.
  3903. lt_cv_to_tool_file_cmd=func_convert_file_noop
  3904. case $host in
  3905. *-*-mingw* )
  3906. case $build in
  3907. *-*-mingw* ) # actually msys
  3908. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  3909. ;;
  3910. esac
  3911. ;;
  3912. esac
  3913. fi
  3914. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  3916. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  3918. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  3919. if ${lt_cv_ld_reload_flag+:} false; then :
  3920. $as_echo_n "(cached) " >&6
  3921. else
  3922. lt_cv_ld_reload_flag='-r'
  3923. fi
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  3925. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  3926. reload_flag=$lt_cv_ld_reload_flag
  3927. case $reload_flag in
  3928. "" | " "*) ;;
  3929. *) reload_flag=" $reload_flag" ;;
  3930. esac
  3931. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3932. case $host_os in
  3933. cygwin* | mingw* | pw32* | cegcc*)
  3934. if test yes != "$GCC"; then
  3935. reload_cmds=false
  3936. fi
  3937. ;;
  3938. darwin*)
  3939. if test yes = "$GCC"; then
  3940. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  3941. else
  3942. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3943. fi
  3944. ;;
  3945. esac
  3946. if test -n "$ac_tool_prefix"; then
  3947. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3948. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3950. $as_echo_n "checking for $ac_word... " >&6; }
  3951. if ${ac_cv_prog_OBJDUMP+:} false; then :
  3952. $as_echo_n "(cached) " >&6
  3953. else
  3954. if test -n "$OBJDUMP"; then
  3955. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3956. else
  3957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3958. for as_dir in $PATH
  3959. do
  3960. IFS=$as_save_IFS
  3961. test -z "$as_dir" && as_dir=.
  3962. for ac_exec_ext in '' $ac_executable_extensions; do
  3963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3964. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3966. break 2
  3967. fi
  3968. done
  3969. done
  3970. IFS=$as_save_IFS
  3971. fi
  3972. fi
  3973. OBJDUMP=$ac_cv_prog_OBJDUMP
  3974. if test -n "$OBJDUMP"; then
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3976. $as_echo "$OBJDUMP" >&6; }
  3977. else
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3979. $as_echo "no" >&6; }
  3980. fi
  3981. fi
  3982. if test -z "$ac_cv_prog_OBJDUMP"; then
  3983. ac_ct_OBJDUMP=$OBJDUMP
  3984. # Extract the first word of "objdump", so it can be a program name with args.
  3985. set dummy objdump; ac_word=$2
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3987. $as_echo_n "checking for $ac_word... " >&6; }
  3988. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  3989. $as_echo_n "(cached) " >&6
  3990. else
  3991. if test -n "$ac_ct_OBJDUMP"; then
  3992. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3993. else
  3994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3995. for as_dir in $PATH
  3996. do
  3997. IFS=$as_save_IFS
  3998. test -z "$as_dir" && as_dir=.
  3999. for ac_exec_ext in '' $ac_executable_extensions; do
  4000. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4001. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4003. break 2
  4004. fi
  4005. done
  4006. done
  4007. IFS=$as_save_IFS
  4008. fi
  4009. fi
  4010. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4011. if test -n "$ac_ct_OBJDUMP"; then
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4013. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4014. else
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4016. $as_echo "no" >&6; }
  4017. fi
  4018. if test "x$ac_ct_OBJDUMP" = x; then
  4019. OBJDUMP="false"
  4020. else
  4021. case $cross_compiling:$ac_tool_warned in
  4022. yes:)
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4024. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4025. ac_tool_warned=yes ;;
  4026. esac
  4027. OBJDUMP=$ac_ct_OBJDUMP
  4028. fi
  4029. else
  4030. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4031. fi
  4032. test -z "$OBJDUMP" && OBJDUMP=objdump
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4034. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4035. if ${lt_cv_deplibs_check_method+:} false; then :
  4036. $as_echo_n "(cached) " >&6
  4037. else
  4038. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4039. lt_cv_file_magic_test_file=
  4040. lt_cv_deplibs_check_method='unknown'
  4041. # Need to set the preceding variable on all platforms that support
  4042. # interlibrary dependencies.
  4043. # 'none' -- dependencies not supported.
  4044. # 'unknown' -- same as none, but documents that we really don't know.
  4045. # 'pass_all' -- all dependencies passed with no checks.
  4046. # 'test_compile' -- check by making test program.
  4047. # 'file_magic [[regex]]' -- check by looking for files in library path
  4048. # that responds to the $file_magic_cmd with a given extended regex.
  4049. # If you have 'file' or equivalent on your system and you're not sure
  4050. # whether 'pass_all' will *always* work, you probably want this one.
  4051. case $host_os in
  4052. aix[4-9]*)
  4053. lt_cv_deplibs_check_method=pass_all
  4054. ;;
  4055. beos*)
  4056. lt_cv_deplibs_check_method=pass_all
  4057. ;;
  4058. bsdi[45]*)
  4059. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4060. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4061. lt_cv_file_magic_test_file=/shlib/libc.so
  4062. ;;
  4063. cygwin*)
  4064. # func_win32_libid is a shell function defined in ltmain.sh
  4065. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4066. lt_cv_file_magic_cmd='func_win32_libid'
  4067. ;;
  4068. mingw* | pw32*)
  4069. # Base MSYS/MinGW do not provide the 'file' command needed by
  4070. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4071. # unless we find 'file', for example because we are cross-compiling.
  4072. if ( file / ) >/dev/null 2>&1; then
  4073. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4074. lt_cv_file_magic_cmd='func_win32_libid'
  4075. else
  4076. # Keep this pattern in sync with the one in func_win32_libid.
  4077. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4078. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4079. fi
  4080. ;;
  4081. cegcc*)
  4082. # use the weaker test based on 'objdump'. See mingw*.
  4083. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4084. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4085. ;;
  4086. darwin* | rhapsody*)
  4087. lt_cv_deplibs_check_method=pass_all
  4088. ;;
  4089. freebsd* | dragonfly*)
  4090. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4091. case $host_cpu in
  4092. i*86 )
  4093. # Not sure whether the presence of OpenBSD here was a mistake.
  4094. # Let's accept both of them until this is cleared up.
  4095. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4096. lt_cv_file_magic_cmd=/usr/bin/file
  4097. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4098. ;;
  4099. esac
  4100. else
  4101. lt_cv_deplibs_check_method=pass_all
  4102. fi
  4103. ;;
  4104. haiku*)
  4105. lt_cv_deplibs_check_method=pass_all
  4106. ;;
  4107. hpux10.20* | hpux11*)
  4108. lt_cv_file_magic_cmd=/usr/bin/file
  4109. case $host_cpu in
  4110. ia64*)
  4111. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4112. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4113. ;;
  4114. hppa*64*)
  4115. 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]'
  4116. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4117. ;;
  4118. *)
  4119. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4120. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4121. ;;
  4122. esac
  4123. ;;
  4124. interix[3-9]*)
  4125. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4126. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4127. ;;
  4128. irix5* | irix6* | nonstopux*)
  4129. case $LD in
  4130. *-32|*"-32 ") libmagic=32-bit;;
  4131. *-n32|*"-n32 ") libmagic=N32;;
  4132. *-64|*"-64 ") libmagic=64-bit;;
  4133. *) libmagic=never-match;;
  4134. esac
  4135. lt_cv_deplibs_check_method=pass_all
  4136. ;;
  4137. # This must be glibc/ELF.
  4138. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4139. lt_cv_deplibs_check_method=pass_all
  4140. ;;
  4141. netbsd* | netbsdelf*-gnu)
  4142. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4143. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4144. else
  4145. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4146. fi
  4147. ;;
  4148. newos6*)
  4149. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4150. lt_cv_file_magic_cmd=/usr/bin/file
  4151. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4152. ;;
  4153. *nto* | *qnx*)
  4154. lt_cv_deplibs_check_method=pass_all
  4155. ;;
  4156. openbsd* | bitrig*)
  4157. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4158. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4159. else
  4160. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4161. fi
  4162. ;;
  4163. osf3* | osf4* | osf5*)
  4164. lt_cv_deplibs_check_method=pass_all
  4165. ;;
  4166. rdos*)
  4167. lt_cv_deplibs_check_method=pass_all
  4168. ;;
  4169. solaris*)
  4170. lt_cv_deplibs_check_method=pass_all
  4171. ;;
  4172. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4173. lt_cv_deplibs_check_method=pass_all
  4174. ;;
  4175. sysv4 | sysv4.3*)
  4176. case $host_vendor in
  4177. motorola)
  4178. 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]'
  4179. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4180. ;;
  4181. ncr)
  4182. lt_cv_deplibs_check_method=pass_all
  4183. ;;
  4184. sequent)
  4185. lt_cv_file_magic_cmd='/bin/file'
  4186. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4187. ;;
  4188. sni)
  4189. lt_cv_file_magic_cmd='/bin/file'
  4190. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4191. lt_cv_file_magic_test_file=/lib/libc.so
  4192. ;;
  4193. siemens)
  4194. lt_cv_deplibs_check_method=pass_all
  4195. ;;
  4196. pc)
  4197. lt_cv_deplibs_check_method=pass_all
  4198. ;;
  4199. esac
  4200. ;;
  4201. tpf*)
  4202. lt_cv_deplibs_check_method=pass_all
  4203. ;;
  4204. os2*)
  4205. lt_cv_deplibs_check_method=pass_all
  4206. ;;
  4207. esac
  4208. fi
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4210. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4211. file_magic_glob=
  4212. want_nocaseglob=no
  4213. if test "$build" = "$host"; then
  4214. case $host_os in
  4215. mingw* | pw32*)
  4216. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4217. want_nocaseglob=yes
  4218. else
  4219. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4220. fi
  4221. ;;
  4222. esac
  4223. fi
  4224. file_magic_cmd=$lt_cv_file_magic_cmd
  4225. deplibs_check_method=$lt_cv_deplibs_check_method
  4226. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4227. if test -n "$ac_tool_prefix"; then
  4228. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4229. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4231. $as_echo_n "checking for $ac_word... " >&6; }
  4232. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4233. $as_echo_n "(cached) " >&6
  4234. else
  4235. if test -n "$DLLTOOL"; then
  4236. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4237. else
  4238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4239. for as_dir in $PATH
  4240. do
  4241. IFS=$as_save_IFS
  4242. test -z "$as_dir" && as_dir=.
  4243. for ac_exec_ext in '' $ac_executable_extensions; do
  4244. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4245. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4246. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4247. break 2
  4248. fi
  4249. done
  4250. done
  4251. IFS=$as_save_IFS
  4252. fi
  4253. fi
  4254. DLLTOOL=$ac_cv_prog_DLLTOOL
  4255. if test -n "$DLLTOOL"; then
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4257. $as_echo "$DLLTOOL" >&6; }
  4258. else
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4260. $as_echo "no" >&6; }
  4261. fi
  4262. fi
  4263. if test -z "$ac_cv_prog_DLLTOOL"; then
  4264. ac_ct_DLLTOOL=$DLLTOOL
  4265. # Extract the first word of "dlltool", so it can be a program name with args.
  4266. set dummy dlltool; ac_word=$2
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4268. $as_echo_n "checking for $ac_word... " >&6; }
  4269. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4270. $as_echo_n "(cached) " >&6
  4271. else
  4272. if test -n "$ac_ct_DLLTOOL"; then
  4273. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4274. else
  4275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4276. for as_dir in $PATH
  4277. do
  4278. IFS=$as_save_IFS
  4279. test -z "$as_dir" && as_dir=.
  4280. for ac_exec_ext in '' $ac_executable_extensions; do
  4281. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4282. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4284. break 2
  4285. fi
  4286. done
  4287. done
  4288. IFS=$as_save_IFS
  4289. fi
  4290. fi
  4291. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4292. if test -n "$ac_ct_DLLTOOL"; then
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4294. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4295. else
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4297. $as_echo "no" >&6; }
  4298. fi
  4299. if test "x$ac_ct_DLLTOOL" = x; then
  4300. DLLTOOL="false"
  4301. else
  4302. case $cross_compiling:$ac_tool_warned in
  4303. yes:)
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4305. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4306. ac_tool_warned=yes ;;
  4307. esac
  4308. DLLTOOL=$ac_ct_DLLTOOL
  4309. fi
  4310. else
  4311. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4312. fi
  4313. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4315. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4316. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4317. $as_echo_n "(cached) " >&6
  4318. else
  4319. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4320. case $host_os in
  4321. cygwin* | mingw* | pw32* | cegcc*)
  4322. # two different shell functions defined in ltmain.sh;
  4323. # decide which one to use based on capabilities of $DLLTOOL
  4324. case `$DLLTOOL --help 2>&1` in
  4325. *--identify-strict*)
  4326. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4327. ;;
  4328. *)
  4329. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4330. ;;
  4331. esac
  4332. ;;
  4333. *)
  4334. # fallback: assume linklib IS sharedlib
  4335. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4336. ;;
  4337. esac
  4338. fi
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4340. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4341. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4342. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4343. if test -n "$ac_tool_prefix"; then
  4344. for ac_prog in ar
  4345. do
  4346. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4347. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4349. $as_echo_n "checking for $ac_word... " >&6; }
  4350. if ${ac_cv_prog_AR+:} false; then :
  4351. $as_echo_n "(cached) " >&6
  4352. else
  4353. if test -n "$AR"; then
  4354. ac_cv_prog_AR="$AR" # Let the user override the test.
  4355. else
  4356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4357. for as_dir in $PATH
  4358. do
  4359. IFS=$as_save_IFS
  4360. test -z "$as_dir" && as_dir=.
  4361. for ac_exec_ext in '' $ac_executable_extensions; do
  4362. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4363. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4365. break 2
  4366. fi
  4367. done
  4368. done
  4369. IFS=$as_save_IFS
  4370. fi
  4371. fi
  4372. AR=$ac_cv_prog_AR
  4373. if test -n "$AR"; then
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4375. $as_echo "$AR" >&6; }
  4376. else
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4378. $as_echo "no" >&6; }
  4379. fi
  4380. test -n "$AR" && break
  4381. done
  4382. fi
  4383. if test -z "$AR"; then
  4384. ac_ct_AR=$AR
  4385. for ac_prog in ar
  4386. do
  4387. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4388. set dummy $ac_prog; ac_word=$2
  4389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4390. $as_echo_n "checking for $ac_word... " >&6; }
  4391. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4392. $as_echo_n "(cached) " >&6
  4393. else
  4394. if test -n "$ac_ct_AR"; then
  4395. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4396. else
  4397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4398. for as_dir in $PATH
  4399. do
  4400. IFS=$as_save_IFS
  4401. test -z "$as_dir" && as_dir=.
  4402. for ac_exec_ext in '' $ac_executable_extensions; do
  4403. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4404. ac_cv_prog_ac_ct_AR="$ac_prog"
  4405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4406. break 2
  4407. fi
  4408. done
  4409. done
  4410. IFS=$as_save_IFS
  4411. fi
  4412. fi
  4413. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4414. if test -n "$ac_ct_AR"; then
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4416. $as_echo "$ac_ct_AR" >&6; }
  4417. else
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4419. $as_echo "no" >&6; }
  4420. fi
  4421. test -n "$ac_ct_AR" && break
  4422. done
  4423. if test "x$ac_ct_AR" = x; then
  4424. AR="false"
  4425. else
  4426. case $cross_compiling:$ac_tool_warned in
  4427. yes:)
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4429. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4430. ac_tool_warned=yes ;;
  4431. esac
  4432. AR=$ac_ct_AR
  4433. fi
  4434. fi
  4435. : ${AR=ar}
  4436. : ${AR_FLAGS=cr}
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4438. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4439. if ${lt_cv_ar_at_file+:} false; then :
  4440. $as_echo_n "(cached) " >&6
  4441. else
  4442. lt_cv_ar_at_file=no
  4443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4444. /* end confdefs.h. */
  4445. int
  4446. main ()
  4447. {
  4448. ;
  4449. return 0;
  4450. }
  4451. _ACEOF
  4452. if ac_fn_c_try_compile "$LINENO"; then :
  4453. echo conftest.$ac_objext > conftest.lst
  4454. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4455. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4456. (eval $lt_ar_try) 2>&5
  4457. ac_status=$?
  4458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4459. test $ac_status = 0; }
  4460. if test 0 -eq "$ac_status"; then
  4461. # Ensure the archiver fails upon bogus file names.
  4462. rm -f conftest.$ac_objext libconftest.a
  4463. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4464. (eval $lt_ar_try) 2>&5
  4465. ac_status=$?
  4466. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4467. test $ac_status = 0; }
  4468. if test 0 -ne "$ac_status"; then
  4469. lt_cv_ar_at_file=@
  4470. fi
  4471. fi
  4472. rm -f conftest.* libconftest.a
  4473. fi
  4474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4475. fi
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4477. $as_echo "$lt_cv_ar_at_file" >&6; }
  4478. if test no = "$lt_cv_ar_at_file"; then
  4479. archiver_list_spec=
  4480. else
  4481. archiver_list_spec=$lt_cv_ar_at_file
  4482. fi
  4483. if test -n "$ac_tool_prefix"; then
  4484. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4485. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4487. $as_echo_n "checking for $ac_word... " >&6; }
  4488. if ${ac_cv_prog_STRIP+:} false; then :
  4489. $as_echo_n "(cached) " >&6
  4490. else
  4491. if test -n "$STRIP"; then
  4492. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4493. else
  4494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4495. for as_dir in $PATH
  4496. do
  4497. IFS=$as_save_IFS
  4498. test -z "$as_dir" && as_dir=.
  4499. for ac_exec_ext in '' $ac_executable_extensions; do
  4500. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4501. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4503. break 2
  4504. fi
  4505. done
  4506. done
  4507. IFS=$as_save_IFS
  4508. fi
  4509. fi
  4510. STRIP=$ac_cv_prog_STRIP
  4511. if test -n "$STRIP"; then
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4513. $as_echo "$STRIP" >&6; }
  4514. else
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4516. $as_echo "no" >&6; }
  4517. fi
  4518. fi
  4519. if test -z "$ac_cv_prog_STRIP"; then
  4520. ac_ct_STRIP=$STRIP
  4521. # Extract the first word of "strip", so it can be a program name with args.
  4522. set dummy strip; ac_word=$2
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4524. $as_echo_n "checking for $ac_word... " >&6; }
  4525. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4526. $as_echo_n "(cached) " >&6
  4527. else
  4528. if test -n "$ac_ct_STRIP"; then
  4529. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4530. else
  4531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4532. for as_dir in $PATH
  4533. do
  4534. IFS=$as_save_IFS
  4535. test -z "$as_dir" && as_dir=.
  4536. for ac_exec_ext in '' $ac_executable_extensions; do
  4537. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4538. ac_cv_prog_ac_ct_STRIP="strip"
  4539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4540. break 2
  4541. fi
  4542. done
  4543. done
  4544. IFS=$as_save_IFS
  4545. fi
  4546. fi
  4547. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4548. if test -n "$ac_ct_STRIP"; then
  4549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4550. $as_echo "$ac_ct_STRIP" >&6; }
  4551. else
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4553. $as_echo "no" >&6; }
  4554. fi
  4555. if test "x$ac_ct_STRIP" = x; then
  4556. STRIP=":"
  4557. else
  4558. case $cross_compiling:$ac_tool_warned in
  4559. yes:)
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4561. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4562. ac_tool_warned=yes ;;
  4563. esac
  4564. STRIP=$ac_ct_STRIP
  4565. fi
  4566. else
  4567. STRIP="$ac_cv_prog_STRIP"
  4568. fi
  4569. test -z "$STRIP" && STRIP=:
  4570. if test -n "$ac_tool_prefix"; then
  4571. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4572. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4574. $as_echo_n "checking for $ac_word... " >&6; }
  4575. if ${ac_cv_prog_RANLIB+:} false; then :
  4576. $as_echo_n "(cached) " >&6
  4577. else
  4578. if test -n "$RANLIB"; then
  4579. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4580. else
  4581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4582. for as_dir in $PATH
  4583. do
  4584. IFS=$as_save_IFS
  4585. test -z "$as_dir" && as_dir=.
  4586. for ac_exec_ext in '' $ac_executable_extensions; do
  4587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4588. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4590. break 2
  4591. fi
  4592. done
  4593. done
  4594. IFS=$as_save_IFS
  4595. fi
  4596. fi
  4597. RANLIB=$ac_cv_prog_RANLIB
  4598. if test -n "$RANLIB"; then
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4600. $as_echo "$RANLIB" >&6; }
  4601. else
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4603. $as_echo "no" >&6; }
  4604. fi
  4605. fi
  4606. if test -z "$ac_cv_prog_RANLIB"; then
  4607. ac_ct_RANLIB=$RANLIB
  4608. # Extract the first word of "ranlib", so it can be a program name with args.
  4609. set dummy ranlib; ac_word=$2
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4611. $as_echo_n "checking for $ac_word... " >&6; }
  4612. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4613. $as_echo_n "(cached) " >&6
  4614. else
  4615. if test -n "$ac_ct_RANLIB"; then
  4616. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4617. else
  4618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4619. for as_dir in $PATH
  4620. do
  4621. IFS=$as_save_IFS
  4622. test -z "$as_dir" && as_dir=.
  4623. for ac_exec_ext in '' $ac_executable_extensions; do
  4624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4625. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4627. break 2
  4628. fi
  4629. done
  4630. done
  4631. IFS=$as_save_IFS
  4632. fi
  4633. fi
  4634. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4635. if test -n "$ac_ct_RANLIB"; then
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4637. $as_echo "$ac_ct_RANLIB" >&6; }
  4638. else
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4640. $as_echo "no" >&6; }
  4641. fi
  4642. if test "x$ac_ct_RANLIB" = x; then
  4643. RANLIB=":"
  4644. else
  4645. case $cross_compiling:$ac_tool_warned in
  4646. yes:)
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4648. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4649. ac_tool_warned=yes ;;
  4650. esac
  4651. RANLIB=$ac_ct_RANLIB
  4652. fi
  4653. else
  4654. RANLIB="$ac_cv_prog_RANLIB"
  4655. fi
  4656. test -z "$RANLIB" && RANLIB=:
  4657. # Determine commands to create old-style static archives.
  4658. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4659. old_postinstall_cmds='chmod 644 $oldlib'
  4660. old_postuninstall_cmds=
  4661. if test -n "$RANLIB"; then
  4662. case $host_os in
  4663. bitrig* | openbsd*)
  4664. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4665. ;;
  4666. *)
  4667. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4668. ;;
  4669. esac
  4670. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4671. fi
  4672. case $host_os in
  4673. darwin*)
  4674. lock_old_archive_extraction=yes ;;
  4675. *)
  4676. lock_old_archive_extraction=no ;;
  4677. esac
  4678. for ac_prog in gawk mawk nawk awk
  4679. do
  4680. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4681. set dummy $ac_prog; ac_word=$2
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4683. $as_echo_n "checking for $ac_word... " >&6; }
  4684. if ${ac_cv_prog_AWK+:} false; then :
  4685. $as_echo_n "(cached) " >&6
  4686. else
  4687. if test -n "$AWK"; then
  4688. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4689. else
  4690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4691. for as_dir in $PATH
  4692. do
  4693. IFS=$as_save_IFS
  4694. test -z "$as_dir" && as_dir=.
  4695. for ac_exec_ext in '' $ac_executable_extensions; do
  4696. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4697. ac_cv_prog_AWK="$ac_prog"
  4698. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4699. break 2
  4700. fi
  4701. done
  4702. done
  4703. IFS=$as_save_IFS
  4704. fi
  4705. fi
  4706. AWK=$ac_cv_prog_AWK
  4707. if test -n "$AWK"; then
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4709. $as_echo "$AWK" >&6; }
  4710. else
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4712. $as_echo "no" >&6; }
  4713. fi
  4714. test -n "$AWK" && break
  4715. done
  4716. # If no C compiler was specified, use CC.
  4717. LTCC=${LTCC-"$CC"}
  4718. # If no C compiler flags were specified, use CFLAGS.
  4719. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4720. # Allow CC to be a program name with arguments.
  4721. compiler=$CC
  4722. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4724. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4725. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4726. $as_echo_n "(cached) " >&6
  4727. else
  4728. # These are sane defaults that work on at least a few old systems.
  4729. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4730. # Character class describing NM global symbol codes.
  4731. symcode='[BCDEGRST]'
  4732. # Regexp to match symbols that can be accessed directly from C.
  4733. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4734. # Define system-specific variables.
  4735. case $host_os in
  4736. aix*)
  4737. symcode='[BCDT]'
  4738. ;;
  4739. cygwin* | mingw* | pw32* | cegcc*)
  4740. symcode='[ABCDGISTW]'
  4741. ;;
  4742. hpux*)
  4743. if test ia64 = "$host_cpu"; then
  4744. symcode='[ABCDEGRST]'
  4745. fi
  4746. ;;
  4747. irix* | nonstopux*)
  4748. symcode='[BCDEGRST]'
  4749. ;;
  4750. osf*)
  4751. symcode='[BCDEGQRST]'
  4752. ;;
  4753. solaris*)
  4754. symcode='[BDRT]'
  4755. ;;
  4756. sco3.2v5*)
  4757. symcode='[DT]'
  4758. ;;
  4759. sysv4.2uw2*)
  4760. symcode='[DT]'
  4761. ;;
  4762. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4763. symcode='[ABDT]'
  4764. ;;
  4765. sysv4)
  4766. symcode='[DFNSTU]'
  4767. ;;
  4768. esac
  4769. # If we're using GNU nm, then use its standard symbol codes.
  4770. case `$NM -V 2>&1` in
  4771. *GNU* | *'with BFD'*)
  4772. symcode='[ABCDGIRSTW]' ;;
  4773. esac
  4774. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4775. # Gets list of data symbols to import.
  4776. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  4777. # Adjust the below global symbol transforms to fixup imported variables.
  4778. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  4779. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  4780. lt_c_name_lib_hook="\
  4781. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  4782. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  4783. else
  4784. # Disable hooks by default.
  4785. lt_cv_sys_global_symbol_to_import=
  4786. lt_cdecl_hook=
  4787. lt_c_name_hook=
  4788. lt_c_name_lib_hook=
  4789. fi
  4790. # Transform an extracted symbol line into a proper C declaration.
  4791. # Some systems (esp. on ia64) link data and code symbols differently,
  4792. # so use this general approach.
  4793. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  4794. $lt_cdecl_hook\
  4795. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  4796. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  4797. # Transform an extracted symbol line into symbol name and symbol address
  4798. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  4799. $lt_c_name_hook\
  4800. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  4801. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  4802. # Transform an extracted symbol line into symbol name with lib prefix and
  4803. # symbol address.
  4804. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  4805. $lt_c_name_lib_hook\
  4806. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  4807. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  4808. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  4809. # Handle CRLF in mingw tool chain
  4810. opt_cr=
  4811. case $build_os in
  4812. mingw*)
  4813. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4814. ;;
  4815. esac
  4816. # Try without a prefix underscore, then with it.
  4817. for ac_symprfx in "" "_"; do
  4818. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4819. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4820. # Write the raw and C identifiers.
  4821. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4822. # Fake it for dumpbin and say T for any non-static function,
  4823. # D for any global variable and I for any imported variable.
  4824. # Also find C++ and __fastcall symbols from MSVC++,
  4825. # which start with @ or ?.
  4826. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4827. " {last_section=section; section=\$ 3};"\
  4828. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4829. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4830. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  4831. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  4832. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  4833. " \$ 0!~/External *\|/{next};"\
  4834. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4835. " {if(hide[section]) next};"\
  4836. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  4837. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  4838. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  4839. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  4840. " ' prfx=^$ac_symprfx"
  4841. else
  4842. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4843. fi
  4844. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4845. # Check to see that the pipe works correctly.
  4846. pipe_works=no
  4847. rm -f conftest*
  4848. cat > conftest.$ac_ext <<_LT_EOF
  4849. #ifdef __cplusplus
  4850. extern "C" {
  4851. #endif
  4852. char nm_test_var;
  4853. void nm_test_func(void);
  4854. void nm_test_func(void){}
  4855. #ifdef __cplusplus
  4856. }
  4857. #endif
  4858. int main(){nm_test_var='a';nm_test_func();return(0);}
  4859. _LT_EOF
  4860. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4861. (eval $ac_compile) 2>&5
  4862. ac_status=$?
  4863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4864. test $ac_status = 0; }; then
  4865. # Now try to grab the symbols.
  4866. nlist=conftest.nm
  4867. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  4868. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  4869. # Try sorting and uniquifying the output.
  4870. if sort "$nlist" | uniq > "$nlist"T; then
  4871. mv -f "$nlist"T "$nlist"
  4872. else
  4873. rm -f "$nlist"T
  4874. fi
  4875. # Make sure that we snagged all the symbols we need.
  4876. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4877. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4878. cat <<_LT_EOF > conftest.$ac_ext
  4879. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  4880. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  4881. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  4882. relocations are performed -- see ld's documentation on pseudo-relocs. */
  4883. # define LT_DLSYM_CONST
  4884. #elif defined __osf__
  4885. /* This system does not cope well with relocations in const data. */
  4886. # define LT_DLSYM_CONST
  4887. #else
  4888. # define LT_DLSYM_CONST const
  4889. #endif
  4890. #ifdef __cplusplus
  4891. extern "C" {
  4892. #endif
  4893. _LT_EOF
  4894. # Now generate the symbol file.
  4895. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4896. cat <<_LT_EOF >> conftest.$ac_ext
  4897. /* The mapping between symbol names and symbols. */
  4898. LT_DLSYM_CONST struct {
  4899. const char *name;
  4900. void *address;
  4901. }
  4902. lt__PROGRAM__LTX_preloaded_symbols[] =
  4903. {
  4904. { "@PROGRAM@", (void *) 0 },
  4905. _LT_EOF
  4906. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4907. cat <<\_LT_EOF >> conftest.$ac_ext
  4908. {0, (void *) 0}
  4909. };
  4910. /* This works around a problem in FreeBSD linker */
  4911. #ifdef FREEBSD_WORKAROUND
  4912. static const void *lt_preloaded_setup() {
  4913. return lt__PROGRAM__LTX_preloaded_symbols;
  4914. }
  4915. #endif
  4916. #ifdef __cplusplus
  4917. }
  4918. #endif
  4919. _LT_EOF
  4920. # Now try linking the two files.
  4921. mv conftest.$ac_objext conftstm.$ac_objext
  4922. lt_globsym_save_LIBS=$LIBS
  4923. lt_globsym_save_CFLAGS=$CFLAGS
  4924. LIBS=conftstm.$ac_objext
  4925. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4926. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  4927. (eval $ac_link) 2>&5
  4928. ac_status=$?
  4929. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4930. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  4931. pipe_works=yes
  4932. fi
  4933. LIBS=$lt_globsym_save_LIBS
  4934. CFLAGS=$lt_globsym_save_CFLAGS
  4935. else
  4936. echo "cannot find nm_test_func in $nlist" >&5
  4937. fi
  4938. else
  4939. echo "cannot find nm_test_var in $nlist" >&5
  4940. fi
  4941. else
  4942. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4943. fi
  4944. else
  4945. echo "$progname: failed program was:" >&5
  4946. cat conftest.$ac_ext >&5
  4947. fi
  4948. rm -rf conftest* conftst*
  4949. # Do not use the global_symbol_pipe unless it works.
  4950. if test yes = "$pipe_works"; then
  4951. break
  4952. else
  4953. lt_cv_sys_global_symbol_pipe=
  4954. fi
  4955. done
  4956. fi
  4957. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4958. lt_cv_sys_global_symbol_to_cdecl=
  4959. fi
  4960. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  4962. $as_echo "failed" >&6; }
  4963. else
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  4965. $as_echo "ok" >&6; }
  4966. fi
  4967. # Response file support.
  4968. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4969. nm_file_list_spec='@'
  4970. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  4971. nm_file_list_spec='@'
  4972. fi
  4973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  4974. $as_echo_n "checking for sysroot... " >&6; }
  4975. # Check whether --with-sysroot was given.
  4976. if test "${with_sysroot+set}" = set; then :
  4977. withval=$with_sysroot;
  4978. else
  4979. with_sysroot=no
  4980. fi
  4981. lt_sysroot=
  4982. case $with_sysroot in #(
  4983. yes)
  4984. if test yes = "$GCC"; then
  4985. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  4986. fi
  4987. ;; #(
  4988. /*)
  4989. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  4990. ;; #(
  4991. no|'')
  4992. ;; #(
  4993. *)
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  4995. $as_echo "$with_sysroot" >&6; }
  4996. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  4997. ;;
  4998. esac
  4999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5000. $as_echo "${lt_sysroot:-no}" >&6; }
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5002. $as_echo_n "checking for a working dd... " >&6; }
  5003. if ${ac_cv_path_lt_DD+:} false; then :
  5004. $as_echo_n "(cached) " >&6
  5005. else
  5006. printf 0123456789abcdef0123456789abcdef >conftest.i
  5007. cat conftest.i conftest.i >conftest2.i
  5008. : ${lt_DD:=$DD}
  5009. if test -z "$lt_DD"; then
  5010. ac_path_lt_DD_found=false
  5011. # Loop through the user's path and test for each of PROGNAME-LIST
  5012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5013. for as_dir in $PATH
  5014. do
  5015. IFS=$as_save_IFS
  5016. test -z "$as_dir" && as_dir=.
  5017. for ac_prog in dd; do
  5018. for ac_exec_ext in '' $ac_executable_extensions; do
  5019. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5020. as_fn_executable_p "$ac_path_lt_DD" || continue
  5021. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5022. cmp -s conftest.i conftest.out \
  5023. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5024. fi
  5025. $ac_path_lt_DD_found && break 3
  5026. done
  5027. done
  5028. done
  5029. IFS=$as_save_IFS
  5030. if test -z "$ac_cv_path_lt_DD"; then
  5031. :
  5032. fi
  5033. else
  5034. ac_cv_path_lt_DD=$lt_DD
  5035. fi
  5036. rm -f conftest.i conftest2.i conftest.out
  5037. fi
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5039. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5041. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5042. if ${lt_cv_truncate_bin+:} false; then :
  5043. $as_echo_n "(cached) " >&6
  5044. else
  5045. printf 0123456789abcdef0123456789abcdef >conftest.i
  5046. cat conftest.i conftest.i >conftest2.i
  5047. lt_cv_truncate_bin=
  5048. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5049. cmp -s conftest.i conftest.out \
  5050. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5051. fi
  5052. rm -f conftest.i conftest2.i conftest.out
  5053. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5054. fi
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5056. $as_echo "$lt_cv_truncate_bin" >&6; }
  5057. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5058. func_cc_basename ()
  5059. {
  5060. for cc_temp in $*""; do
  5061. case $cc_temp in
  5062. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5063. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5064. \-*) ;;
  5065. *) break;;
  5066. esac
  5067. done
  5068. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5069. }
  5070. # Check whether --enable-libtool-lock was given.
  5071. if test "${enable_libtool_lock+set}" = set; then :
  5072. enableval=$enable_libtool_lock;
  5073. fi
  5074. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5075. # Some flags need to be propagated to the compiler or linker for good
  5076. # libtool support.
  5077. case $host in
  5078. ia64-*-hpux*)
  5079. # Find out what ABI is being produced by ac_compile, and set mode
  5080. # options accordingly.
  5081. echo 'int i;' > conftest.$ac_ext
  5082. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5083. (eval $ac_compile) 2>&5
  5084. ac_status=$?
  5085. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5086. test $ac_status = 0; }; then
  5087. case `/usr/bin/file conftest.$ac_objext` in
  5088. *ELF-32*)
  5089. HPUX_IA64_MODE=32
  5090. ;;
  5091. *ELF-64*)
  5092. HPUX_IA64_MODE=64
  5093. ;;
  5094. esac
  5095. fi
  5096. rm -rf conftest*
  5097. ;;
  5098. *-*-irix6*)
  5099. # Find out what ABI is being produced by ac_compile, and set linker
  5100. # options accordingly.
  5101. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5102. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5103. (eval $ac_compile) 2>&5
  5104. ac_status=$?
  5105. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5106. test $ac_status = 0; }; then
  5107. if test yes = "$lt_cv_prog_gnu_ld"; then
  5108. case `/usr/bin/file conftest.$ac_objext` in
  5109. *32-bit*)
  5110. LD="${LD-ld} -melf32bsmip"
  5111. ;;
  5112. *N32*)
  5113. LD="${LD-ld} -melf32bmipn32"
  5114. ;;
  5115. *64-bit*)
  5116. LD="${LD-ld} -melf64bmip"
  5117. ;;
  5118. esac
  5119. else
  5120. case `/usr/bin/file conftest.$ac_objext` in
  5121. *32-bit*)
  5122. LD="${LD-ld} -32"
  5123. ;;
  5124. *N32*)
  5125. LD="${LD-ld} -n32"
  5126. ;;
  5127. *64-bit*)
  5128. LD="${LD-ld} -64"
  5129. ;;
  5130. esac
  5131. fi
  5132. fi
  5133. rm -rf conftest*
  5134. ;;
  5135. mips64*-*linux*)
  5136. # Find out what ABI is being produced by ac_compile, and set linker
  5137. # options accordingly.
  5138. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5139. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5140. (eval $ac_compile) 2>&5
  5141. ac_status=$?
  5142. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5143. test $ac_status = 0; }; then
  5144. emul=elf
  5145. case `/usr/bin/file conftest.$ac_objext` in
  5146. *32-bit*)
  5147. emul="${emul}32"
  5148. ;;
  5149. *64-bit*)
  5150. emul="${emul}64"
  5151. ;;
  5152. esac
  5153. case `/usr/bin/file conftest.$ac_objext` in
  5154. *MSB*)
  5155. emul="${emul}btsmip"
  5156. ;;
  5157. *LSB*)
  5158. emul="${emul}ltsmip"
  5159. ;;
  5160. esac
  5161. case `/usr/bin/file conftest.$ac_objext` in
  5162. *N32*)
  5163. emul="${emul}n32"
  5164. ;;
  5165. esac
  5166. LD="${LD-ld} -m $emul"
  5167. fi
  5168. rm -rf conftest*
  5169. ;;
  5170. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5171. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5172. # Find out what ABI is being produced by ac_compile, and set linker
  5173. # options accordingly. Note that the listed cases only cover the
  5174. # situations where additional linker options are needed (such as when
  5175. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5176. # vice versa); the common cases where no linker options are needed do
  5177. # not appear in the list.
  5178. echo 'int i;' > conftest.$ac_ext
  5179. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5180. (eval $ac_compile) 2>&5
  5181. ac_status=$?
  5182. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5183. test $ac_status = 0; }; then
  5184. case `/usr/bin/file conftest.o` in
  5185. *32-bit*)
  5186. case $host in
  5187. x86_64-*kfreebsd*-gnu)
  5188. LD="${LD-ld} -m elf_i386_fbsd"
  5189. ;;
  5190. x86_64-*linux*)
  5191. case `/usr/bin/file conftest.o` in
  5192. *x86-64*)
  5193. LD="${LD-ld} -m elf32_x86_64"
  5194. ;;
  5195. *)
  5196. LD="${LD-ld} -m elf_i386"
  5197. ;;
  5198. esac
  5199. ;;
  5200. powerpc64le-*linux*)
  5201. LD="${LD-ld} -m elf32lppclinux"
  5202. ;;
  5203. powerpc64-*linux*)
  5204. LD="${LD-ld} -m elf32ppclinux"
  5205. ;;
  5206. s390x-*linux*)
  5207. LD="${LD-ld} -m elf_s390"
  5208. ;;
  5209. sparc64-*linux*)
  5210. LD="${LD-ld} -m elf32_sparc"
  5211. ;;
  5212. esac
  5213. ;;
  5214. *64-bit*)
  5215. case $host in
  5216. x86_64-*kfreebsd*-gnu)
  5217. LD="${LD-ld} -m elf_x86_64_fbsd"
  5218. ;;
  5219. x86_64-*linux*)
  5220. LD="${LD-ld} -m elf_x86_64"
  5221. ;;
  5222. powerpcle-*linux*)
  5223. LD="${LD-ld} -m elf64lppc"
  5224. ;;
  5225. powerpc-*linux*)
  5226. LD="${LD-ld} -m elf64ppc"
  5227. ;;
  5228. s390*-*linux*|s390*-*tpf*)
  5229. LD="${LD-ld} -m elf64_s390"
  5230. ;;
  5231. sparc*-*linux*)
  5232. LD="${LD-ld} -m elf64_sparc"
  5233. ;;
  5234. esac
  5235. ;;
  5236. esac
  5237. fi
  5238. rm -rf conftest*
  5239. ;;
  5240. *-*-sco3.2v5*)
  5241. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5242. SAVE_CFLAGS=$CFLAGS
  5243. CFLAGS="$CFLAGS -belf"
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5245. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5246. if ${lt_cv_cc_needs_belf+:} false; then :
  5247. $as_echo_n "(cached) " >&6
  5248. else
  5249. ac_ext=c
  5250. ac_cpp='$CPP $CPPFLAGS'
  5251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5252. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5255. /* end confdefs.h. */
  5256. int
  5257. main ()
  5258. {
  5259. ;
  5260. return 0;
  5261. }
  5262. _ACEOF
  5263. if ac_fn_c_try_link "$LINENO"; then :
  5264. lt_cv_cc_needs_belf=yes
  5265. else
  5266. lt_cv_cc_needs_belf=no
  5267. fi
  5268. rm -f core conftest.err conftest.$ac_objext \
  5269. conftest$ac_exeext conftest.$ac_ext
  5270. ac_ext=c
  5271. ac_cpp='$CPP $CPPFLAGS'
  5272. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5273. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5274. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5275. fi
  5276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5277. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5278. if test yes != "$lt_cv_cc_needs_belf"; then
  5279. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5280. CFLAGS=$SAVE_CFLAGS
  5281. fi
  5282. ;;
  5283. *-*solaris*)
  5284. # Find out what ABI is being produced by ac_compile, and set linker
  5285. # options accordingly.
  5286. echo 'int i;' > conftest.$ac_ext
  5287. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5288. (eval $ac_compile) 2>&5
  5289. ac_status=$?
  5290. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5291. test $ac_status = 0; }; then
  5292. case `/usr/bin/file conftest.o` in
  5293. *64-bit*)
  5294. case $lt_cv_prog_gnu_ld in
  5295. yes*)
  5296. case $host in
  5297. i?86-*-solaris*|x86_64-*-solaris*)
  5298. LD="${LD-ld} -m elf_x86_64"
  5299. ;;
  5300. sparc*-*-solaris*)
  5301. LD="${LD-ld} -m elf64_sparc"
  5302. ;;
  5303. esac
  5304. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5305. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5306. LD=${LD-ld}_sol2
  5307. fi
  5308. ;;
  5309. *)
  5310. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5311. LD="${LD-ld} -64"
  5312. fi
  5313. ;;
  5314. esac
  5315. ;;
  5316. esac
  5317. fi
  5318. rm -rf conftest*
  5319. ;;
  5320. esac
  5321. need_locks=$enable_libtool_lock
  5322. if test -n "$ac_tool_prefix"; then
  5323. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5324. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5326. $as_echo_n "checking for $ac_word... " >&6; }
  5327. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5328. $as_echo_n "(cached) " >&6
  5329. else
  5330. if test -n "$MANIFEST_TOOL"; then
  5331. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5332. else
  5333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5334. for as_dir in $PATH
  5335. do
  5336. IFS=$as_save_IFS
  5337. test -z "$as_dir" && as_dir=.
  5338. for ac_exec_ext in '' $ac_executable_extensions; do
  5339. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5340. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5342. break 2
  5343. fi
  5344. done
  5345. done
  5346. IFS=$as_save_IFS
  5347. fi
  5348. fi
  5349. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5350. if test -n "$MANIFEST_TOOL"; then
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5352. $as_echo "$MANIFEST_TOOL" >&6; }
  5353. else
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5355. $as_echo "no" >&6; }
  5356. fi
  5357. fi
  5358. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5359. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5360. # Extract the first word of "mt", so it can be a program name with args.
  5361. set dummy mt; ac_word=$2
  5362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5363. $as_echo_n "checking for $ac_word... " >&6; }
  5364. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5365. $as_echo_n "(cached) " >&6
  5366. else
  5367. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5368. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5369. else
  5370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5371. for as_dir in $PATH
  5372. do
  5373. IFS=$as_save_IFS
  5374. test -z "$as_dir" && as_dir=.
  5375. for ac_exec_ext in '' $ac_executable_extensions; do
  5376. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5377. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5379. break 2
  5380. fi
  5381. done
  5382. done
  5383. IFS=$as_save_IFS
  5384. fi
  5385. fi
  5386. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5387. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5389. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5390. else
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5392. $as_echo "no" >&6; }
  5393. fi
  5394. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5395. MANIFEST_TOOL=":"
  5396. else
  5397. case $cross_compiling:$ac_tool_warned in
  5398. yes:)
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5400. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5401. ac_tool_warned=yes ;;
  5402. esac
  5403. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5404. fi
  5405. else
  5406. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5407. fi
  5408. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5410. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5411. if ${lt_cv_path_mainfest_tool+:} false; then :
  5412. $as_echo_n "(cached) " >&6
  5413. else
  5414. lt_cv_path_mainfest_tool=no
  5415. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5416. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5417. cat conftest.err >&5
  5418. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5419. lt_cv_path_mainfest_tool=yes
  5420. fi
  5421. rm -f conftest*
  5422. fi
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5424. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5425. if test yes != "$lt_cv_path_mainfest_tool"; then
  5426. MANIFEST_TOOL=:
  5427. fi
  5428. case $host_os in
  5429. rhapsody* | darwin*)
  5430. if test -n "$ac_tool_prefix"; then
  5431. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5432. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5434. $as_echo_n "checking for $ac_word... " >&6; }
  5435. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5436. $as_echo_n "(cached) " >&6
  5437. else
  5438. if test -n "$DSYMUTIL"; then
  5439. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5440. else
  5441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5442. for as_dir in $PATH
  5443. do
  5444. IFS=$as_save_IFS
  5445. test -z "$as_dir" && as_dir=.
  5446. for ac_exec_ext in '' $ac_executable_extensions; do
  5447. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5448. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5449. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5450. break 2
  5451. fi
  5452. done
  5453. done
  5454. IFS=$as_save_IFS
  5455. fi
  5456. fi
  5457. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5458. if test -n "$DSYMUTIL"; then
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5460. $as_echo "$DSYMUTIL" >&6; }
  5461. else
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5463. $as_echo "no" >&6; }
  5464. fi
  5465. fi
  5466. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5467. ac_ct_DSYMUTIL=$DSYMUTIL
  5468. # Extract the first word of "dsymutil", so it can be a program name with args.
  5469. set dummy dsymutil; ac_word=$2
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5471. $as_echo_n "checking for $ac_word... " >&6; }
  5472. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5473. $as_echo_n "(cached) " >&6
  5474. else
  5475. if test -n "$ac_ct_DSYMUTIL"; then
  5476. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5477. else
  5478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5479. for as_dir in $PATH
  5480. do
  5481. IFS=$as_save_IFS
  5482. test -z "$as_dir" && as_dir=.
  5483. for ac_exec_ext in '' $ac_executable_extensions; do
  5484. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5485. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5486. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5487. break 2
  5488. fi
  5489. done
  5490. done
  5491. IFS=$as_save_IFS
  5492. fi
  5493. fi
  5494. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5495. if test -n "$ac_ct_DSYMUTIL"; then
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5497. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5498. else
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5500. $as_echo "no" >&6; }
  5501. fi
  5502. if test "x$ac_ct_DSYMUTIL" = x; then
  5503. DSYMUTIL=":"
  5504. else
  5505. case $cross_compiling:$ac_tool_warned in
  5506. yes:)
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5508. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5509. ac_tool_warned=yes ;;
  5510. esac
  5511. DSYMUTIL=$ac_ct_DSYMUTIL
  5512. fi
  5513. else
  5514. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5515. fi
  5516. if test -n "$ac_tool_prefix"; then
  5517. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5518. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5520. $as_echo_n "checking for $ac_word... " >&6; }
  5521. if ${ac_cv_prog_NMEDIT+:} false; then :
  5522. $as_echo_n "(cached) " >&6
  5523. else
  5524. if test -n "$NMEDIT"; then
  5525. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5526. else
  5527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5528. for as_dir in $PATH
  5529. do
  5530. IFS=$as_save_IFS
  5531. test -z "$as_dir" && as_dir=.
  5532. for ac_exec_ext in '' $ac_executable_extensions; do
  5533. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5534. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5536. break 2
  5537. fi
  5538. done
  5539. done
  5540. IFS=$as_save_IFS
  5541. fi
  5542. fi
  5543. NMEDIT=$ac_cv_prog_NMEDIT
  5544. if test -n "$NMEDIT"; then
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5546. $as_echo "$NMEDIT" >&6; }
  5547. else
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5549. $as_echo "no" >&6; }
  5550. fi
  5551. fi
  5552. if test -z "$ac_cv_prog_NMEDIT"; then
  5553. ac_ct_NMEDIT=$NMEDIT
  5554. # Extract the first word of "nmedit", so it can be a program name with args.
  5555. set dummy nmedit; ac_word=$2
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5557. $as_echo_n "checking for $ac_word... " >&6; }
  5558. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5559. $as_echo_n "(cached) " >&6
  5560. else
  5561. if test -n "$ac_ct_NMEDIT"; then
  5562. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5563. else
  5564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5565. for as_dir in $PATH
  5566. do
  5567. IFS=$as_save_IFS
  5568. test -z "$as_dir" && as_dir=.
  5569. for ac_exec_ext in '' $ac_executable_extensions; do
  5570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5571. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5573. break 2
  5574. fi
  5575. done
  5576. done
  5577. IFS=$as_save_IFS
  5578. fi
  5579. fi
  5580. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5581. if test -n "$ac_ct_NMEDIT"; then
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5583. $as_echo "$ac_ct_NMEDIT" >&6; }
  5584. else
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5586. $as_echo "no" >&6; }
  5587. fi
  5588. if test "x$ac_ct_NMEDIT" = x; then
  5589. NMEDIT=":"
  5590. else
  5591. case $cross_compiling:$ac_tool_warned in
  5592. yes:)
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5594. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5595. ac_tool_warned=yes ;;
  5596. esac
  5597. NMEDIT=$ac_ct_NMEDIT
  5598. fi
  5599. else
  5600. NMEDIT="$ac_cv_prog_NMEDIT"
  5601. fi
  5602. if test -n "$ac_tool_prefix"; then
  5603. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5604. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5606. $as_echo_n "checking for $ac_word... " >&6; }
  5607. if ${ac_cv_prog_LIPO+:} false; then :
  5608. $as_echo_n "(cached) " >&6
  5609. else
  5610. if test -n "$LIPO"; then
  5611. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5612. else
  5613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5614. for as_dir in $PATH
  5615. do
  5616. IFS=$as_save_IFS
  5617. test -z "$as_dir" && as_dir=.
  5618. for ac_exec_ext in '' $ac_executable_extensions; do
  5619. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5620. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5622. break 2
  5623. fi
  5624. done
  5625. done
  5626. IFS=$as_save_IFS
  5627. fi
  5628. fi
  5629. LIPO=$ac_cv_prog_LIPO
  5630. if test -n "$LIPO"; then
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5632. $as_echo "$LIPO" >&6; }
  5633. else
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5635. $as_echo "no" >&6; }
  5636. fi
  5637. fi
  5638. if test -z "$ac_cv_prog_LIPO"; then
  5639. ac_ct_LIPO=$LIPO
  5640. # Extract the first word of "lipo", so it can be a program name with args.
  5641. set dummy lipo; ac_word=$2
  5642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5643. $as_echo_n "checking for $ac_word... " >&6; }
  5644. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5645. $as_echo_n "(cached) " >&6
  5646. else
  5647. if test -n "$ac_ct_LIPO"; then
  5648. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5649. else
  5650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5651. for as_dir in $PATH
  5652. do
  5653. IFS=$as_save_IFS
  5654. test -z "$as_dir" && as_dir=.
  5655. for ac_exec_ext in '' $ac_executable_extensions; do
  5656. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5657. ac_cv_prog_ac_ct_LIPO="lipo"
  5658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5659. break 2
  5660. fi
  5661. done
  5662. done
  5663. IFS=$as_save_IFS
  5664. fi
  5665. fi
  5666. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5667. if test -n "$ac_ct_LIPO"; then
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5669. $as_echo "$ac_ct_LIPO" >&6; }
  5670. else
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5672. $as_echo "no" >&6; }
  5673. fi
  5674. if test "x$ac_ct_LIPO" = x; then
  5675. LIPO=":"
  5676. else
  5677. case $cross_compiling:$ac_tool_warned in
  5678. yes:)
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5680. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5681. ac_tool_warned=yes ;;
  5682. esac
  5683. LIPO=$ac_ct_LIPO
  5684. fi
  5685. else
  5686. LIPO="$ac_cv_prog_LIPO"
  5687. fi
  5688. if test -n "$ac_tool_prefix"; then
  5689. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5690. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5692. $as_echo_n "checking for $ac_word... " >&6; }
  5693. if ${ac_cv_prog_OTOOL+:} false; then :
  5694. $as_echo_n "(cached) " >&6
  5695. else
  5696. if test -n "$OTOOL"; then
  5697. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5698. else
  5699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5700. for as_dir in $PATH
  5701. do
  5702. IFS=$as_save_IFS
  5703. test -z "$as_dir" && as_dir=.
  5704. for ac_exec_ext in '' $ac_executable_extensions; do
  5705. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5706. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5708. break 2
  5709. fi
  5710. done
  5711. done
  5712. IFS=$as_save_IFS
  5713. fi
  5714. fi
  5715. OTOOL=$ac_cv_prog_OTOOL
  5716. if test -n "$OTOOL"; then
  5717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5718. $as_echo "$OTOOL" >&6; }
  5719. else
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5721. $as_echo "no" >&6; }
  5722. fi
  5723. fi
  5724. if test -z "$ac_cv_prog_OTOOL"; then
  5725. ac_ct_OTOOL=$OTOOL
  5726. # Extract the first word of "otool", so it can be a program name with args.
  5727. set dummy otool; ac_word=$2
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5729. $as_echo_n "checking for $ac_word... " >&6; }
  5730. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5731. $as_echo_n "(cached) " >&6
  5732. else
  5733. if test -n "$ac_ct_OTOOL"; then
  5734. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5735. else
  5736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5737. for as_dir in $PATH
  5738. do
  5739. IFS=$as_save_IFS
  5740. test -z "$as_dir" && as_dir=.
  5741. for ac_exec_ext in '' $ac_executable_extensions; do
  5742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5743. ac_cv_prog_ac_ct_OTOOL="otool"
  5744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5745. break 2
  5746. fi
  5747. done
  5748. done
  5749. IFS=$as_save_IFS
  5750. fi
  5751. fi
  5752. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5753. if test -n "$ac_ct_OTOOL"; then
  5754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5755. $as_echo "$ac_ct_OTOOL" >&6; }
  5756. else
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5758. $as_echo "no" >&6; }
  5759. fi
  5760. if test "x$ac_ct_OTOOL" = x; then
  5761. OTOOL=":"
  5762. else
  5763. case $cross_compiling:$ac_tool_warned in
  5764. yes:)
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5766. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5767. ac_tool_warned=yes ;;
  5768. esac
  5769. OTOOL=$ac_ct_OTOOL
  5770. fi
  5771. else
  5772. OTOOL="$ac_cv_prog_OTOOL"
  5773. fi
  5774. if test -n "$ac_tool_prefix"; then
  5775. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5776. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5778. $as_echo_n "checking for $ac_word... " >&6; }
  5779. if ${ac_cv_prog_OTOOL64+:} false; then :
  5780. $as_echo_n "(cached) " >&6
  5781. else
  5782. if test -n "$OTOOL64"; then
  5783. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5784. else
  5785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5786. for as_dir in $PATH
  5787. do
  5788. IFS=$as_save_IFS
  5789. test -z "$as_dir" && as_dir=.
  5790. for ac_exec_ext in '' $ac_executable_extensions; do
  5791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5792. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5794. break 2
  5795. fi
  5796. done
  5797. done
  5798. IFS=$as_save_IFS
  5799. fi
  5800. fi
  5801. OTOOL64=$ac_cv_prog_OTOOL64
  5802. if test -n "$OTOOL64"; then
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5804. $as_echo "$OTOOL64" >&6; }
  5805. else
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5807. $as_echo "no" >&6; }
  5808. fi
  5809. fi
  5810. if test -z "$ac_cv_prog_OTOOL64"; then
  5811. ac_ct_OTOOL64=$OTOOL64
  5812. # Extract the first word of "otool64", so it can be a program name with args.
  5813. set dummy otool64; ac_word=$2
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5815. $as_echo_n "checking for $ac_word... " >&6; }
  5816. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5817. $as_echo_n "(cached) " >&6
  5818. else
  5819. if test -n "$ac_ct_OTOOL64"; then
  5820. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5821. else
  5822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5823. for as_dir in $PATH
  5824. do
  5825. IFS=$as_save_IFS
  5826. test -z "$as_dir" && as_dir=.
  5827. for ac_exec_ext in '' $ac_executable_extensions; do
  5828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5829. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5831. break 2
  5832. fi
  5833. done
  5834. done
  5835. IFS=$as_save_IFS
  5836. fi
  5837. fi
  5838. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5839. if test -n "$ac_ct_OTOOL64"; then
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5841. $as_echo "$ac_ct_OTOOL64" >&6; }
  5842. else
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5844. $as_echo "no" >&6; }
  5845. fi
  5846. if test "x$ac_ct_OTOOL64" = x; then
  5847. OTOOL64=":"
  5848. else
  5849. case $cross_compiling:$ac_tool_warned in
  5850. yes:)
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5852. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5853. ac_tool_warned=yes ;;
  5854. esac
  5855. OTOOL64=$ac_ct_OTOOL64
  5856. fi
  5857. else
  5858. OTOOL64="$ac_cv_prog_OTOOL64"
  5859. fi
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5861. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5862. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5863. $as_echo_n "(cached) " >&6
  5864. else
  5865. lt_cv_apple_cc_single_mod=no
  5866. if test -z "$LT_MULTI_MODULE"; then
  5867. # By default we will add the -single_module flag. You can override
  5868. # by either setting the environment variable LT_MULTI_MODULE
  5869. # non-empty at configure time, or by adding -multi_module to the
  5870. # link flags.
  5871. rm -rf libconftest.dylib*
  5872. echo "int foo(void){return 1;}" > conftest.c
  5873. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5874. -dynamiclib -Wl,-single_module conftest.c" >&5
  5875. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5876. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5877. _lt_result=$?
  5878. # If there is a non-empty error log, and "single_module"
  5879. # appears in it, assume the flag caused a linker warning
  5880. if test -s conftest.err && $GREP single_module conftest.err; then
  5881. cat conftest.err >&5
  5882. # Otherwise, if the output was created with a 0 exit code from
  5883. # the compiler, it worked.
  5884. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  5885. lt_cv_apple_cc_single_mod=yes
  5886. else
  5887. cat conftest.err >&5
  5888. fi
  5889. rm -rf libconftest.dylib*
  5890. rm -f conftest.*
  5891. fi
  5892. fi
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5894. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5896. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5897. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5898. $as_echo_n "(cached) " >&6
  5899. else
  5900. lt_cv_ld_exported_symbols_list=no
  5901. save_LDFLAGS=$LDFLAGS
  5902. echo "_main" > conftest.sym
  5903. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5905. /* end confdefs.h. */
  5906. int
  5907. main ()
  5908. {
  5909. ;
  5910. return 0;
  5911. }
  5912. _ACEOF
  5913. if ac_fn_c_try_link "$LINENO"; then :
  5914. lt_cv_ld_exported_symbols_list=yes
  5915. else
  5916. lt_cv_ld_exported_symbols_list=no
  5917. fi
  5918. rm -f core conftest.err conftest.$ac_objext \
  5919. conftest$ac_exeext conftest.$ac_ext
  5920. LDFLAGS=$save_LDFLAGS
  5921. fi
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5923. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5925. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5926. if ${lt_cv_ld_force_load+:} false; then :
  5927. $as_echo_n "(cached) " >&6
  5928. else
  5929. lt_cv_ld_force_load=no
  5930. cat > conftest.c << _LT_EOF
  5931. int forced_loaded() { return 2;}
  5932. _LT_EOF
  5933. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5934. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5935. echo "$AR cr libconftest.a conftest.o" >&5
  5936. $AR cr libconftest.a conftest.o 2>&5
  5937. echo "$RANLIB libconftest.a" >&5
  5938. $RANLIB libconftest.a 2>&5
  5939. cat > conftest.c << _LT_EOF
  5940. int main() { return 0;}
  5941. _LT_EOF
  5942. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5943. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5944. _lt_result=$?
  5945. if test -s conftest.err && $GREP force_load conftest.err; then
  5946. cat conftest.err >&5
  5947. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  5948. lt_cv_ld_force_load=yes
  5949. else
  5950. cat conftest.err >&5
  5951. fi
  5952. rm -f conftest.err libconftest.a conftest conftest.c
  5953. rm -rf conftest.dSYM
  5954. fi
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5956. $as_echo "$lt_cv_ld_force_load" >&6; }
  5957. case $host_os in
  5958. rhapsody* | darwin1.[012])
  5959. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  5960. darwin1.*)
  5961. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  5962. darwin*) # darwin 5.x on
  5963. # if running on 10.5 or later, the deployment target defaults
  5964. # to the OS version, if on x86, and 10.4, the deployment
  5965. # target defaults to 10.4. Don't you love it?
  5966. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5967. 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
  5968. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  5969. 10.[012][,.]*)
  5970. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  5971. 10.*|11.*)
  5972. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  5973. esac
  5974. ;;
  5975. esac
  5976. if test yes = "$lt_cv_apple_cc_single_mod"; then
  5977. _lt_dar_single_mod='$single_module'
  5978. fi
  5979. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  5980. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  5981. else
  5982. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  5983. fi
  5984. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  5985. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5986. else
  5987. _lt_dsymutil=
  5988. fi
  5989. ;;
  5990. esac
  5991. # func_munge_path_list VARIABLE PATH
  5992. # -----------------------------------
  5993. # VARIABLE is name of variable containing _space_ separated list of
  5994. # directories to be munged by the contents of PATH, which is string
  5995. # having a format:
  5996. # "DIR[:DIR]:"
  5997. # string "DIR[ DIR]" will be prepended to VARIABLE
  5998. # ":DIR[:DIR]"
  5999. # string "DIR[ DIR]" will be appended to VARIABLE
  6000. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6001. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6002. # "DIRA[ DIRA]" will be appended to VARIABLE
  6003. # "DIR[:DIR]"
  6004. # VARIABLE will be replaced by "DIR[ DIR]"
  6005. func_munge_path_list ()
  6006. {
  6007. case x$2 in
  6008. x)
  6009. ;;
  6010. *:)
  6011. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6012. ;;
  6013. x:*)
  6014. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6015. ;;
  6016. *::*)
  6017. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6018. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6019. ;;
  6020. *)
  6021. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6022. ;;
  6023. esac
  6024. }
  6025. ac_ext=c
  6026. ac_cpp='$CPP $CPPFLAGS'
  6027. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6028. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6029. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6031. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6032. # On Suns, sometimes $CPP names a directory.
  6033. if test -n "$CPP" && test -d "$CPP"; then
  6034. CPP=
  6035. fi
  6036. if test -z "$CPP"; then
  6037. if ${ac_cv_prog_CPP+:} false; then :
  6038. $as_echo_n "(cached) " >&6
  6039. else
  6040. # Double quotes because CPP needs to be expanded
  6041. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6042. do
  6043. ac_preproc_ok=false
  6044. for ac_c_preproc_warn_flag in '' yes
  6045. do
  6046. # Use a header file that comes with gcc, so configuring glibc
  6047. # with a fresh cross-compiler works.
  6048. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6049. # <limits.h> exists even on freestanding compilers.
  6050. # On the NeXT, cc -E runs the code through the compiler's parser,
  6051. # not just through cpp. "Syntax error" is here to catch this case.
  6052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6053. /* end confdefs.h. */
  6054. #ifdef __STDC__
  6055. # include <limits.h>
  6056. #else
  6057. # include <assert.h>
  6058. #endif
  6059. Syntax error
  6060. _ACEOF
  6061. if ac_fn_c_try_cpp "$LINENO"; then :
  6062. else
  6063. # Broken: fails on valid input.
  6064. continue
  6065. fi
  6066. rm -f conftest.err conftest.i conftest.$ac_ext
  6067. # OK, works on sane cases. Now check whether nonexistent headers
  6068. # can be detected and how.
  6069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6070. /* end confdefs.h. */
  6071. #include <ac_nonexistent.h>
  6072. _ACEOF
  6073. if ac_fn_c_try_cpp "$LINENO"; then :
  6074. # Broken: success on invalid input.
  6075. continue
  6076. else
  6077. # Passes both tests.
  6078. ac_preproc_ok=:
  6079. break
  6080. fi
  6081. rm -f conftest.err conftest.i conftest.$ac_ext
  6082. done
  6083. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6084. rm -f conftest.i conftest.err conftest.$ac_ext
  6085. if $ac_preproc_ok; then :
  6086. break
  6087. fi
  6088. done
  6089. ac_cv_prog_CPP=$CPP
  6090. fi
  6091. CPP=$ac_cv_prog_CPP
  6092. else
  6093. ac_cv_prog_CPP=$CPP
  6094. fi
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6096. $as_echo "$CPP" >&6; }
  6097. ac_preproc_ok=false
  6098. for ac_c_preproc_warn_flag in '' yes
  6099. do
  6100. # Use a header file that comes with gcc, so configuring glibc
  6101. # with a fresh cross-compiler works.
  6102. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6103. # <limits.h> exists even on freestanding compilers.
  6104. # On the NeXT, cc -E runs the code through the compiler's parser,
  6105. # not just through cpp. "Syntax error" is here to catch this case.
  6106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6107. /* end confdefs.h. */
  6108. #ifdef __STDC__
  6109. # include <limits.h>
  6110. #else
  6111. # include <assert.h>
  6112. #endif
  6113. Syntax error
  6114. _ACEOF
  6115. if ac_fn_c_try_cpp "$LINENO"; then :
  6116. else
  6117. # Broken: fails on valid input.
  6118. continue
  6119. fi
  6120. rm -f conftest.err conftest.i conftest.$ac_ext
  6121. # OK, works on sane cases. Now check whether nonexistent headers
  6122. # can be detected and how.
  6123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6124. /* end confdefs.h. */
  6125. #include <ac_nonexistent.h>
  6126. _ACEOF
  6127. if ac_fn_c_try_cpp "$LINENO"; then :
  6128. # Broken: success on invalid input.
  6129. continue
  6130. else
  6131. # Passes both tests.
  6132. ac_preproc_ok=:
  6133. break
  6134. fi
  6135. rm -f conftest.err conftest.i conftest.$ac_ext
  6136. done
  6137. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6138. rm -f conftest.i conftest.err conftest.$ac_ext
  6139. if $ac_preproc_ok; then :
  6140. else
  6141. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6142. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6143. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6144. See \`config.log' for more details" "$LINENO" 5; }
  6145. fi
  6146. ac_ext=c
  6147. ac_cpp='$CPP $CPPFLAGS'
  6148. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6149. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6150. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6152. $as_echo_n "checking for ANSI C header files... " >&6; }
  6153. if ${ac_cv_header_stdc+:} false; then :
  6154. $as_echo_n "(cached) " >&6
  6155. else
  6156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6157. /* end confdefs.h. */
  6158. #include <stdlib.h>
  6159. #include <stdarg.h>
  6160. #include <string.h>
  6161. #include <float.h>
  6162. int
  6163. main ()
  6164. {
  6165. ;
  6166. return 0;
  6167. }
  6168. _ACEOF
  6169. if ac_fn_c_try_compile "$LINENO"; then :
  6170. ac_cv_header_stdc=yes
  6171. else
  6172. ac_cv_header_stdc=no
  6173. fi
  6174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6175. if test $ac_cv_header_stdc = yes; then
  6176. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6178. /* end confdefs.h. */
  6179. #include <string.h>
  6180. _ACEOF
  6181. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6182. $EGREP "memchr" >/dev/null 2>&1; then :
  6183. else
  6184. ac_cv_header_stdc=no
  6185. fi
  6186. rm -f conftest*
  6187. fi
  6188. if test $ac_cv_header_stdc = yes; then
  6189. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6191. /* end confdefs.h. */
  6192. #include <stdlib.h>
  6193. _ACEOF
  6194. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6195. $EGREP "free" >/dev/null 2>&1; then :
  6196. else
  6197. ac_cv_header_stdc=no
  6198. fi
  6199. rm -f conftest*
  6200. fi
  6201. if test $ac_cv_header_stdc = yes; then
  6202. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6203. if test "$cross_compiling" = yes; then :
  6204. :
  6205. else
  6206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6207. /* end confdefs.h. */
  6208. #include <ctype.h>
  6209. #include <stdlib.h>
  6210. #if ((' ' & 0x0FF) == 0x020)
  6211. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6212. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6213. #else
  6214. # define ISLOWER(c) \
  6215. (('a' <= (c) && (c) <= 'i') \
  6216. || ('j' <= (c) && (c) <= 'r') \
  6217. || ('s' <= (c) && (c) <= 'z'))
  6218. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6219. #endif
  6220. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6221. int
  6222. main ()
  6223. {
  6224. int i;
  6225. for (i = 0; i < 256; i++)
  6226. if (XOR (islower (i), ISLOWER (i))
  6227. || toupper (i) != TOUPPER (i))
  6228. return 2;
  6229. return 0;
  6230. }
  6231. _ACEOF
  6232. if ac_fn_c_try_run "$LINENO"; then :
  6233. else
  6234. ac_cv_header_stdc=no
  6235. fi
  6236. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6237. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6238. fi
  6239. fi
  6240. fi
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6242. $as_echo "$ac_cv_header_stdc" >&6; }
  6243. if test $ac_cv_header_stdc = yes; then
  6244. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6245. fi
  6246. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6247. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6248. inttypes.h stdint.h unistd.h
  6249. do :
  6250. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6251. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6252. "
  6253. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6254. cat >>confdefs.h <<_ACEOF
  6255. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6256. _ACEOF
  6257. fi
  6258. done
  6259. for ac_header in dlfcn.h
  6260. do :
  6261. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6262. "
  6263. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6264. cat >>confdefs.h <<_ACEOF
  6265. #define HAVE_DLFCN_H 1
  6266. _ACEOF
  6267. fi
  6268. done
  6269. # Set options
  6270. enable_dlopen=no
  6271. enable_win32_dll=no
  6272. # Check whether --enable-shared was given.
  6273. if test "${enable_shared+set}" = set; then :
  6274. enableval=$enable_shared; p=${PACKAGE-default}
  6275. case $enableval in
  6276. yes) enable_shared=yes ;;
  6277. no) enable_shared=no ;;
  6278. *)
  6279. enable_shared=no
  6280. # Look at the argument we got. We use all the common list separators.
  6281. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6282. for pkg in $enableval; do
  6283. IFS=$lt_save_ifs
  6284. if test "X$pkg" = "X$p"; then
  6285. enable_shared=yes
  6286. fi
  6287. done
  6288. IFS=$lt_save_ifs
  6289. ;;
  6290. esac
  6291. else
  6292. enable_shared=yes
  6293. fi
  6294. # Check whether --enable-static was given.
  6295. if test "${enable_static+set}" = set; then :
  6296. enableval=$enable_static; p=${PACKAGE-default}
  6297. case $enableval in
  6298. yes) enable_static=yes ;;
  6299. no) enable_static=no ;;
  6300. *)
  6301. enable_static=no
  6302. # Look at the argument we got. We use all the common list separators.
  6303. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6304. for pkg in $enableval; do
  6305. IFS=$lt_save_ifs
  6306. if test "X$pkg" = "X$p"; then
  6307. enable_static=yes
  6308. fi
  6309. done
  6310. IFS=$lt_save_ifs
  6311. ;;
  6312. esac
  6313. else
  6314. enable_static=yes
  6315. fi
  6316. # Check whether --with-pic was given.
  6317. if test "${with_pic+set}" = set; then :
  6318. withval=$with_pic; lt_p=${PACKAGE-default}
  6319. case $withval in
  6320. yes|no) pic_mode=$withval ;;
  6321. *)
  6322. pic_mode=default
  6323. # Look at the argument we got. We use all the common list separators.
  6324. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6325. for lt_pkg in $withval; do
  6326. IFS=$lt_save_ifs
  6327. if test "X$lt_pkg" = "X$lt_p"; then
  6328. pic_mode=yes
  6329. fi
  6330. done
  6331. IFS=$lt_save_ifs
  6332. ;;
  6333. esac
  6334. else
  6335. pic_mode=default
  6336. fi
  6337. # Check whether --enable-fast-install was given.
  6338. if test "${enable_fast_install+set}" = set; then :
  6339. enableval=$enable_fast_install; p=${PACKAGE-default}
  6340. case $enableval in
  6341. yes) enable_fast_install=yes ;;
  6342. no) enable_fast_install=no ;;
  6343. *)
  6344. enable_fast_install=no
  6345. # Look at the argument we got. We use all the common list separators.
  6346. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6347. for pkg in $enableval; do
  6348. IFS=$lt_save_ifs
  6349. if test "X$pkg" = "X$p"; then
  6350. enable_fast_install=yes
  6351. fi
  6352. done
  6353. IFS=$lt_save_ifs
  6354. ;;
  6355. esac
  6356. else
  6357. enable_fast_install=yes
  6358. fi
  6359. shared_archive_member_spec=
  6360. case $host,$enable_shared in
  6361. power*-*-aix[5-9]*,yes)
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6363. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6364. # Check whether --with-aix-soname was given.
  6365. if test "${with_aix_soname+set}" = set; then :
  6366. withval=$with_aix_soname; case $withval in
  6367. aix|svr4|both)
  6368. ;;
  6369. *)
  6370. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6371. ;;
  6372. esac
  6373. lt_cv_with_aix_soname=$with_aix_soname
  6374. else
  6375. if ${lt_cv_with_aix_soname+:} false; then :
  6376. $as_echo_n "(cached) " >&6
  6377. else
  6378. lt_cv_with_aix_soname=aix
  6379. fi
  6380. with_aix_soname=$lt_cv_with_aix_soname
  6381. fi
  6382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6383. $as_echo "$with_aix_soname" >&6; }
  6384. if test aix != "$with_aix_soname"; then
  6385. # For the AIX way of multilib, we name the shared archive member
  6386. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6387. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6388. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6389. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6390. if test 64 = "${OBJECT_MODE-32}"; then
  6391. shared_archive_member_spec=shr_64
  6392. else
  6393. shared_archive_member_spec=shr
  6394. fi
  6395. fi
  6396. ;;
  6397. *)
  6398. with_aix_soname=aix
  6399. ;;
  6400. esac
  6401. # This can be used to rebuild libtool when needed
  6402. LIBTOOL_DEPS=$ltmain
  6403. # Always use our own libtool.
  6404. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6405. test -z "$LN_S" && LN_S="ln -s"
  6406. if test -n "${ZSH_VERSION+set}"; then
  6407. setopt NO_GLOB_SUBST
  6408. fi
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6410. $as_echo_n "checking for objdir... " >&6; }
  6411. if ${lt_cv_objdir+:} false; then :
  6412. $as_echo_n "(cached) " >&6
  6413. else
  6414. rm -f .libs 2>/dev/null
  6415. mkdir .libs 2>/dev/null
  6416. if test -d .libs; then
  6417. lt_cv_objdir=.libs
  6418. else
  6419. # MS-DOS does not allow filenames that begin with a dot.
  6420. lt_cv_objdir=_libs
  6421. fi
  6422. rmdir .libs 2>/dev/null
  6423. fi
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6425. $as_echo "$lt_cv_objdir" >&6; }
  6426. objdir=$lt_cv_objdir
  6427. cat >>confdefs.h <<_ACEOF
  6428. #define LT_OBJDIR "$lt_cv_objdir/"
  6429. _ACEOF
  6430. case $host_os in
  6431. aix3*)
  6432. # AIX sometimes has problems with the GCC collect2 program. For some
  6433. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6434. # vanish in a puff of smoke.
  6435. if test set != "${COLLECT_NAMES+set}"; then
  6436. COLLECT_NAMES=
  6437. export COLLECT_NAMES
  6438. fi
  6439. ;;
  6440. esac
  6441. # Global variables:
  6442. ofile=libtool
  6443. can_build_shared=yes
  6444. # All known linkers require a '.a' archive for static linking (except MSVC,
  6445. # which needs '.lib').
  6446. libext=a
  6447. with_gnu_ld=$lt_cv_prog_gnu_ld
  6448. old_CC=$CC
  6449. old_CFLAGS=$CFLAGS
  6450. # Set sane defaults for various variables
  6451. test -z "$CC" && CC=cc
  6452. test -z "$LTCC" && LTCC=$CC
  6453. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6454. test -z "$LD" && LD=ld
  6455. test -z "$ac_objext" && ac_objext=o
  6456. func_cc_basename $compiler
  6457. cc_basename=$func_cc_basename_result
  6458. # Only perform the check for file, if the check method requires it
  6459. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6460. case $deplibs_check_method in
  6461. file_magic*)
  6462. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6464. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6465. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6466. $as_echo_n "(cached) " >&6
  6467. else
  6468. case $MAGIC_CMD in
  6469. [\\/*] | ?:[\\/]*)
  6470. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  6471. ;;
  6472. *)
  6473. lt_save_MAGIC_CMD=$MAGIC_CMD
  6474. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6475. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6476. for ac_dir in $ac_dummy; do
  6477. IFS=$lt_save_ifs
  6478. test -z "$ac_dir" && ac_dir=.
  6479. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  6480. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  6481. if test -n "$file_magic_test_file"; then
  6482. case $deplibs_check_method in
  6483. "file_magic "*)
  6484. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6485. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6486. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6487. $EGREP "$file_magic_regex" > /dev/null; then
  6488. :
  6489. else
  6490. cat <<_LT_EOF 1>&2
  6491. *** Warning: the command libtool uses to detect shared libraries,
  6492. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6493. *** The result is that libtool may fail to recognize shared libraries
  6494. *** as such. This will affect the creation of libtool libraries that
  6495. *** depend on shared libraries, but programs linked with such libtool
  6496. *** libraries will work regardless of this problem. Nevertheless, you
  6497. *** may want to report the problem to your system manager and/or to
  6498. *** [email protected]
  6499. _LT_EOF
  6500. fi ;;
  6501. esac
  6502. fi
  6503. break
  6504. fi
  6505. done
  6506. IFS=$lt_save_ifs
  6507. MAGIC_CMD=$lt_save_MAGIC_CMD
  6508. ;;
  6509. esac
  6510. fi
  6511. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6512. if test -n "$MAGIC_CMD"; then
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6514. $as_echo "$MAGIC_CMD" >&6; }
  6515. else
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6517. $as_echo "no" >&6; }
  6518. fi
  6519. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6520. if test -n "$ac_tool_prefix"; then
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6522. $as_echo_n "checking for file... " >&6; }
  6523. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6524. $as_echo_n "(cached) " >&6
  6525. else
  6526. case $MAGIC_CMD in
  6527. [\\/*] | ?:[\\/]*)
  6528. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  6529. ;;
  6530. *)
  6531. lt_save_MAGIC_CMD=$MAGIC_CMD
  6532. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6533. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6534. for ac_dir in $ac_dummy; do
  6535. IFS=$lt_save_ifs
  6536. test -z "$ac_dir" && ac_dir=.
  6537. if test -f "$ac_dir/file"; then
  6538. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  6539. if test -n "$file_magic_test_file"; then
  6540. case $deplibs_check_method in
  6541. "file_magic "*)
  6542. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6543. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6544. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6545. $EGREP "$file_magic_regex" > /dev/null; then
  6546. :
  6547. else
  6548. cat <<_LT_EOF 1>&2
  6549. *** Warning: the command libtool uses to detect shared libraries,
  6550. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6551. *** The result is that libtool may fail to recognize shared libraries
  6552. *** as such. This will affect the creation of libtool libraries that
  6553. *** depend on shared libraries, but programs linked with such libtool
  6554. *** libraries will work regardless of this problem. Nevertheless, you
  6555. *** may want to report the problem to your system manager and/or to
  6556. *** [email protected]
  6557. _LT_EOF
  6558. fi ;;
  6559. esac
  6560. fi
  6561. break
  6562. fi
  6563. done
  6564. IFS=$lt_save_ifs
  6565. MAGIC_CMD=$lt_save_MAGIC_CMD
  6566. ;;
  6567. esac
  6568. fi
  6569. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6570. if test -n "$MAGIC_CMD"; then
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6572. $as_echo "$MAGIC_CMD" >&6; }
  6573. else
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6575. $as_echo "no" >&6; }
  6576. fi
  6577. else
  6578. MAGIC_CMD=:
  6579. fi
  6580. fi
  6581. fi
  6582. ;;
  6583. esac
  6584. # Use C for the default configuration in the libtool script
  6585. lt_save_CC=$CC
  6586. ac_ext=c
  6587. ac_cpp='$CPP $CPPFLAGS'
  6588. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6589. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6590. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6591. # Source file extension for C test sources.
  6592. ac_ext=c
  6593. # Object file extension for compiled C test sources.
  6594. objext=o
  6595. objext=$objext
  6596. # Code to be used in simple compile tests
  6597. lt_simple_compile_test_code="int some_variable = 0;"
  6598. # Code to be used in simple link tests
  6599. lt_simple_link_test_code='int main(){return(0);}'
  6600. # If no C compiler was specified, use CC.
  6601. LTCC=${LTCC-"$CC"}
  6602. # If no C compiler flags were specified, use CFLAGS.
  6603. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6604. # Allow CC to be a program name with arguments.
  6605. compiler=$CC
  6606. # Save the default compiler, since it gets overwritten when the other
  6607. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6608. compiler_DEFAULT=$CC
  6609. # save warnings/boilerplate of simple test code
  6610. ac_outfile=conftest.$ac_objext
  6611. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6612. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6613. _lt_compiler_boilerplate=`cat conftest.err`
  6614. $RM conftest*
  6615. ac_outfile=conftest.$ac_objext
  6616. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6617. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6618. _lt_linker_boilerplate=`cat conftest.err`
  6619. $RM -r conftest*
  6620. ## CAVEAT EMPTOR:
  6621. ## There is no encapsulation within the following macros, do not change
  6622. ## the running order or otherwise move them around unless you know exactly
  6623. ## what you are doing...
  6624. if test -n "$compiler"; then
  6625. lt_prog_compiler_no_builtin_flag=
  6626. if test yes = "$GCC"; then
  6627. case $cc_basename in
  6628. nvcc*)
  6629. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6630. *)
  6631. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6632. esac
  6633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6634. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6635. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6636. $as_echo_n "(cached) " >&6
  6637. else
  6638. lt_cv_prog_compiler_rtti_exceptions=no
  6639. ac_outfile=conftest.$ac_objext
  6640. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6641. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  6642. # Insert the option either (1) after the last *FLAGS variable, or
  6643. # (2) before a word containing "conftest.", or (3) at the end.
  6644. # Note that $ac_compile itself does not contain backslashes and begins
  6645. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6646. # The option is referenced via a variable to avoid confusing sed.
  6647. lt_compile=`echo "$ac_compile" | $SED \
  6648. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6649. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6650. -e 's:$: $lt_compiler_flag:'`
  6651. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6652. (eval "$lt_compile" 2>conftest.err)
  6653. ac_status=$?
  6654. cat conftest.err >&5
  6655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6656. if (exit $ac_status) && test -s "$ac_outfile"; then
  6657. # The compiler can only warn and ignore the option if not recognized
  6658. # So say no if there are warnings other than the usual output.
  6659. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6660. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6661. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6662. lt_cv_prog_compiler_rtti_exceptions=yes
  6663. fi
  6664. fi
  6665. $RM conftest*
  6666. fi
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6668. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6669. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  6670. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6671. else
  6672. :
  6673. fi
  6674. fi
  6675. lt_prog_compiler_wl=
  6676. lt_prog_compiler_pic=
  6677. lt_prog_compiler_static=
  6678. if test yes = "$GCC"; then
  6679. lt_prog_compiler_wl='-Wl,'
  6680. lt_prog_compiler_static='-static'
  6681. case $host_os in
  6682. aix*)
  6683. # All AIX code is PIC.
  6684. if test ia64 = "$host_cpu"; then
  6685. # AIX 5 now supports IA64 processor
  6686. lt_prog_compiler_static='-Bstatic'
  6687. fi
  6688. lt_prog_compiler_pic='-fPIC'
  6689. ;;
  6690. amigaos*)
  6691. case $host_cpu in
  6692. powerpc)
  6693. # see comment about AmigaOS4 .so support
  6694. lt_prog_compiler_pic='-fPIC'
  6695. ;;
  6696. m68k)
  6697. # FIXME: we need at least 68020 code to build shared libraries, but
  6698. # adding the '-m68020' flag to GCC prevents building anything better,
  6699. # like '-m68040'.
  6700. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6701. ;;
  6702. esac
  6703. ;;
  6704. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6705. # PIC is the default for these OSes.
  6706. ;;
  6707. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6708. # This hack is so that the source file can tell whether it is being
  6709. # built for inclusion in a dll (and should export symbols for example).
  6710. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6711. # (--disable-auto-import) libraries
  6712. lt_prog_compiler_pic='-DDLL_EXPORT'
  6713. case $host_os in
  6714. os2*)
  6715. lt_prog_compiler_static='$wl-static'
  6716. ;;
  6717. esac
  6718. ;;
  6719. darwin* | rhapsody*)
  6720. # PIC is the default on this platform
  6721. # Common symbols not allowed in MH_DYLIB files
  6722. lt_prog_compiler_pic='-fno-common'
  6723. ;;
  6724. haiku*)
  6725. # PIC is the default for Haiku.
  6726. # The "-static" flag exists, but is broken.
  6727. lt_prog_compiler_static=
  6728. ;;
  6729. hpux*)
  6730. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6731. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6732. # sets the default TLS model and affects inlining.
  6733. case $host_cpu in
  6734. hppa*64*)
  6735. # +Z the default
  6736. ;;
  6737. *)
  6738. lt_prog_compiler_pic='-fPIC'
  6739. ;;
  6740. esac
  6741. ;;
  6742. interix[3-9]*)
  6743. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6744. # Instead, we relocate shared libraries at runtime.
  6745. ;;
  6746. msdosdjgpp*)
  6747. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6748. # on systems that don't support them.
  6749. lt_prog_compiler_can_build_shared=no
  6750. enable_shared=no
  6751. ;;
  6752. *nto* | *qnx*)
  6753. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6754. # it will coredump.
  6755. lt_prog_compiler_pic='-fPIC -shared'
  6756. ;;
  6757. sysv4*MP*)
  6758. if test -d /usr/nec; then
  6759. lt_prog_compiler_pic=-Kconform_pic
  6760. fi
  6761. ;;
  6762. *)
  6763. lt_prog_compiler_pic='-fPIC'
  6764. ;;
  6765. esac
  6766. case $cc_basename in
  6767. nvcc*) # Cuda Compiler Driver 2.2
  6768. lt_prog_compiler_wl='-Xlinker '
  6769. if test -n "$lt_prog_compiler_pic"; then
  6770. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6771. fi
  6772. ;;
  6773. esac
  6774. else
  6775. # PORTME Check for flag to pass linker flags through the system compiler.
  6776. case $host_os in
  6777. aix*)
  6778. lt_prog_compiler_wl='-Wl,'
  6779. if test ia64 = "$host_cpu"; then
  6780. # AIX 5 now supports IA64 processor
  6781. lt_prog_compiler_static='-Bstatic'
  6782. else
  6783. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6784. fi
  6785. ;;
  6786. darwin* | rhapsody*)
  6787. # PIC is the default on this platform
  6788. # Common symbols not allowed in MH_DYLIB files
  6789. lt_prog_compiler_pic='-fno-common'
  6790. case $cc_basename in
  6791. nagfor*)
  6792. # NAG Fortran compiler
  6793. lt_prog_compiler_wl='-Wl,-Wl,,'
  6794. lt_prog_compiler_pic='-PIC'
  6795. lt_prog_compiler_static='-Bstatic'
  6796. ;;
  6797. esac
  6798. ;;
  6799. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6800. # This hack is so that the source file can tell whether it is being
  6801. # built for inclusion in a dll (and should export symbols for example).
  6802. lt_prog_compiler_pic='-DDLL_EXPORT'
  6803. case $host_os in
  6804. os2*)
  6805. lt_prog_compiler_static='$wl-static'
  6806. ;;
  6807. esac
  6808. ;;
  6809. hpux9* | hpux10* | hpux11*)
  6810. lt_prog_compiler_wl='-Wl,'
  6811. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6812. # not for PA HP-UX.
  6813. case $host_cpu in
  6814. hppa*64*|ia64*)
  6815. # +Z the default
  6816. ;;
  6817. *)
  6818. lt_prog_compiler_pic='+Z'
  6819. ;;
  6820. esac
  6821. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6822. lt_prog_compiler_static='$wl-a ${wl}archive'
  6823. ;;
  6824. irix5* | irix6* | nonstopux*)
  6825. lt_prog_compiler_wl='-Wl,'
  6826. # PIC (with -KPIC) is the default.
  6827. lt_prog_compiler_static='-non_shared'
  6828. ;;
  6829. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6830. case $cc_basename in
  6831. # old Intel for x86_64, which still supported -KPIC.
  6832. ecc*)
  6833. lt_prog_compiler_wl='-Wl,'
  6834. lt_prog_compiler_pic='-KPIC'
  6835. lt_prog_compiler_static='-static'
  6836. ;;
  6837. # flang / f18. f95 an alias for gfortran or flang on Debian
  6838. flang* | f18* | f95*)
  6839. lt_prog_compiler_wl='-Wl,'
  6840. lt_prog_compiler_pic='-fPIC'
  6841. lt_prog_compiler_static='-static'
  6842. ;;
  6843. # icc used to be incompatible with GCC.
  6844. # ICC 10 doesn't accept -KPIC any more.
  6845. icc* | ifort*)
  6846. lt_prog_compiler_wl='-Wl,'
  6847. lt_prog_compiler_pic='-fPIC'
  6848. lt_prog_compiler_static='-static'
  6849. ;;
  6850. # Lahey Fortran 8.1.
  6851. lf95*)
  6852. lt_prog_compiler_wl='-Wl,'
  6853. lt_prog_compiler_pic='--shared'
  6854. lt_prog_compiler_static='--static'
  6855. ;;
  6856. nagfor*)
  6857. # NAG Fortran compiler
  6858. lt_prog_compiler_wl='-Wl,-Wl,,'
  6859. lt_prog_compiler_pic='-PIC'
  6860. lt_prog_compiler_static='-Bstatic'
  6861. ;;
  6862. tcc*)
  6863. # Fabrice Bellard et al's Tiny C Compiler
  6864. lt_prog_compiler_wl='-Wl,'
  6865. lt_prog_compiler_pic='-fPIC'
  6866. lt_prog_compiler_static='-static'
  6867. ;;
  6868. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6869. # Portland Group compilers (*not* the Pentium gcc compiler,
  6870. # which looks to be a dead project)
  6871. lt_prog_compiler_wl='-Wl,'
  6872. lt_prog_compiler_pic='-fpic'
  6873. lt_prog_compiler_static='-Bstatic'
  6874. ;;
  6875. ccc*)
  6876. lt_prog_compiler_wl='-Wl,'
  6877. # All Alpha code is PIC.
  6878. lt_prog_compiler_static='-non_shared'
  6879. ;;
  6880. xl* | bgxl* | bgf* | mpixl*)
  6881. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6882. lt_prog_compiler_wl='-Wl,'
  6883. lt_prog_compiler_pic='-qpic'
  6884. lt_prog_compiler_static='-qstaticlink'
  6885. ;;
  6886. *)
  6887. case `$CC -V 2>&1 | sed 5q` in
  6888. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  6889. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6890. lt_prog_compiler_pic='-KPIC'
  6891. lt_prog_compiler_static='-Bstatic'
  6892. lt_prog_compiler_wl=''
  6893. ;;
  6894. *Sun\ F* | *Sun*Fortran*)
  6895. lt_prog_compiler_pic='-KPIC'
  6896. lt_prog_compiler_static='-Bstatic'
  6897. lt_prog_compiler_wl='-Qoption ld '
  6898. ;;
  6899. *Sun\ C*)
  6900. # Sun C 5.9
  6901. lt_prog_compiler_pic='-KPIC'
  6902. lt_prog_compiler_static='-Bstatic'
  6903. lt_prog_compiler_wl='-Wl,'
  6904. ;;
  6905. *Intel*\ [CF]*Compiler*)
  6906. lt_prog_compiler_wl='-Wl,'
  6907. lt_prog_compiler_pic='-fPIC'
  6908. lt_prog_compiler_static='-static'
  6909. ;;
  6910. *Portland\ Group*)
  6911. lt_prog_compiler_wl='-Wl,'
  6912. lt_prog_compiler_pic='-fpic'
  6913. lt_prog_compiler_static='-Bstatic'
  6914. ;;
  6915. esac
  6916. ;;
  6917. esac
  6918. ;;
  6919. newsos6)
  6920. lt_prog_compiler_pic='-KPIC'
  6921. lt_prog_compiler_static='-Bstatic'
  6922. ;;
  6923. *nto* | *qnx*)
  6924. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6925. # it will coredump.
  6926. lt_prog_compiler_pic='-fPIC -shared'
  6927. ;;
  6928. osf3* | osf4* | osf5*)
  6929. lt_prog_compiler_wl='-Wl,'
  6930. # All OSF/1 code is PIC.
  6931. lt_prog_compiler_static='-non_shared'
  6932. ;;
  6933. rdos*)
  6934. lt_prog_compiler_static='-non_shared'
  6935. ;;
  6936. solaris*)
  6937. lt_prog_compiler_pic='-KPIC'
  6938. lt_prog_compiler_static='-Bstatic'
  6939. case $cc_basename in
  6940. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  6941. lt_prog_compiler_wl='-Qoption ld ';;
  6942. *)
  6943. lt_prog_compiler_wl='-Wl,';;
  6944. esac
  6945. ;;
  6946. sunos4*)
  6947. lt_prog_compiler_wl='-Qoption ld '
  6948. lt_prog_compiler_pic='-PIC'
  6949. lt_prog_compiler_static='-Bstatic'
  6950. ;;
  6951. sysv4 | sysv4.2uw2* | sysv4.3*)
  6952. lt_prog_compiler_wl='-Wl,'
  6953. lt_prog_compiler_pic='-KPIC'
  6954. lt_prog_compiler_static='-Bstatic'
  6955. ;;
  6956. sysv4*MP*)
  6957. if test -d /usr/nec; then
  6958. lt_prog_compiler_pic='-Kconform_pic'
  6959. lt_prog_compiler_static='-Bstatic'
  6960. fi
  6961. ;;
  6962. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6963. lt_prog_compiler_wl='-Wl,'
  6964. lt_prog_compiler_pic='-KPIC'
  6965. lt_prog_compiler_static='-Bstatic'
  6966. ;;
  6967. unicos*)
  6968. lt_prog_compiler_wl='-Wl,'
  6969. lt_prog_compiler_can_build_shared=no
  6970. ;;
  6971. uts4*)
  6972. lt_prog_compiler_pic='-pic'
  6973. lt_prog_compiler_static='-Bstatic'
  6974. ;;
  6975. *)
  6976. lt_prog_compiler_can_build_shared=no
  6977. ;;
  6978. esac
  6979. fi
  6980. case $host_os in
  6981. # For platforms that do not support PIC, -DPIC is meaningless:
  6982. *djgpp*)
  6983. lt_prog_compiler_pic=
  6984. ;;
  6985. *)
  6986. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6987. ;;
  6988. esac
  6989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6990. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6991. if ${lt_cv_prog_compiler_pic+:} false; then :
  6992. $as_echo_n "(cached) " >&6
  6993. else
  6994. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  6995. fi
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  6997. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  6998. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  6999. #
  7000. # Check to make sure the PIC flag actually works.
  7001. #
  7002. if test -n "$lt_prog_compiler_pic"; then
  7003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7004. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7005. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7006. $as_echo_n "(cached) " >&6
  7007. else
  7008. lt_cv_prog_compiler_pic_works=no
  7009. ac_outfile=conftest.$ac_objext
  7010. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7011. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7012. # Insert the option either (1) after the last *FLAGS variable, or
  7013. # (2) before a word containing "conftest.", or (3) at the end.
  7014. # Note that $ac_compile itself does not contain backslashes and begins
  7015. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7016. # The option is referenced via a variable to avoid confusing sed.
  7017. lt_compile=`echo "$ac_compile" | $SED \
  7018. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7019. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7020. -e 's:$: $lt_compiler_flag:'`
  7021. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7022. (eval "$lt_compile" 2>conftest.err)
  7023. ac_status=$?
  7024. cat conftest.err >&5
  7025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7026. if (exit $ac_status) && test -s "$ac_outfile"; then
  7027. # The compiler can only warn and ignore the option if not recognized
  7028. # So say no if there are warnings other than the usual output.
  7029. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7030. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7031. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7032. lt_cv_prog_compiler_pic_works=yes
  7033. fi
  7034. fi
  7035. $RM conftest*
  7036. fi
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7038. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7039. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7040. case $lt_prog_compiler_pic in
  7041. "" | " "*) ;;
  7042. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7043. esac
  7044. else
  7045. lt_prog_compiler_pic=
  7046. lt_prog_compiler_can_build_shared=no
  7047. fi
  7048. fi
  7049. #
  7050. # Check to make sure the static flag actually works.
  7051. #
  7052. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7054. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7055. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7056. $as_echo_n "(cached) " >&6
  7057. else
  7058. lt_cv_prog_compiler_static_works=no
  7059. save_LDFLAGS=$LDFLAGS
  7060. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7061. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7062. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7063. # The linker can only warn and ignore the option if not recognized
  7064. # So say no if there are warnings
  7065. if test -s conftest.err; then
  7066. # Append any errors to the config.log.
  7067. cat conftest.err 1>&5
  7068. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7069. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7070. if diff conftest.exp conftest.er2 >/dev/null; then
  7071. lt_cv_prog_compiler_static_works=yes
  7072. fi
  7073. else
  7074. lt_cv_prog_compiler_static_works=yes
  7075. fi
  7076. fi
  7077. $RM -r conftest*
  7078. LDFLAGS=$save_LDFLAGS
  7079. fi
  7080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7081. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7082. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7083. :
  7084. else
  7085. lt_prog_compiler_static=
  7086. fi
  7087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7088. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7089. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7090. $as_echo_n "(cached) " >&6
  7091. else
  7092. lt_cv_prog_compiler_c_o=no
  7093. $RM -r conftest 2>/dev/null
  7094. mkdir conftest
  7095. cd conftest
  7096. mkdir out
  7097. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7098. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7099. # Insert the option either (1) after the last *FLAGS variable, or
  7100. # (2) before a word containing "conftest.", or (3) at the end.
  7101. # Note that $ac_compile itself does not contain backslashes and begins
  7102. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7103. lt_compile=`echo "$ac_compile" | $SED \
  7104. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7105. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7106. -e 's:$: $lt_compiler_flag:'`
  7107. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7108. (eval "$lt_compile" 2>out/conftest.err)
  7109. ac_status=$?
  7110. cat out/conftest.err >&5
  7111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7112. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7113. then
  7114. # The compiler can only warn and ignore the option if not recognized
  7115. # So say no if there are warnings
  7116. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7117. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7118. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7119. lt_cv_prog_compiler_c_o=yes
  7120. fi
  7121. fi
  7122. chmod u+w . 2>&5
  7123. $RM conftest*
  7124. # SGI C++ compiler will create directory out/ii_files/ for
  7125. # template instantiation
  7126. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7127. $RM out/* && rmdir out
  7128. cd ..
  7129. $RM -r conftest
  7130. $RM conftest*
  7131. fi
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7133. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7135. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7136. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7137. $as_echo_n "(cached) " >&6
  7138. else
  7139. lt_cv_prog_compiler_c_o=no
  7140. $RM -r conftest 2>/dev/null
  7141. mkdir conftest
  7142. cd conftest
  7143. mkdir out
  7144. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7145. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7146. # Insert the option either (1) after the last *FLAGS variable, or
  7147. # (2) before a word containing "conftest.", or (3) at the end.
  7148. # Note that $ac_compile itself does not contain backslashes and begins
  7149. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7150. lt_compile=`echo "$ac_compile" | $SED \
  7151. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7152. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7153. -e 's:$: $lt_compiler_flag:'`
  7154. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7155. (eval "$lt_compile" 2>out/conftest.err)
  7156. ac_status=$?
  7157. cat out/conftest.err >&5
  7158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7159. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7160. then
  7161. # The compiler can only warn and ignore the option if not recognized
  7162. # So say no if there are warnings
  7163. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7164. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7165. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7166. lt_cv_prog_compiler_c_o=yes
  7167. fi
  7168. fi
  7169. chmod u+w . 2>&5
  7170. $RM conftest*
  7171. # SGI C++ compiler will create directory out/ii_files/ for
  7172. # template instantiation
  7173. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7174. $RM out/* && rmdir out
  7175. cd ..
  7176. $RM -r conftest
  7177. $RM conftest*
  7178. fi
  7179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7180. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7181. hard_links=nottested
  7182. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7183. # do not overwrite the value of need_locks provided by the user
  7184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7185. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7186. hard_links=yes
  7187. $RM conftest*
  7188. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7189. touch conftest.a
  7190. ln conftest.a conftest.b 2>&5 || hard_links=no
  7191. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7193. $as_echo "$hard_links" >&6; }
  7194. if test no = "$hard_links"; then
  7195. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7196. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7197. need_locks=warn
  7198. fi
  7199. else
  7200. need_locks=no
  7201. fi
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7203. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7204. runpath_var=
  7205. allow_undefined_flag=
  7206. always_export_symbols=no
  7207. archive_cmds=
  7208. archive_expsym_cmds=
  7209. compiler_needs_object=no
  7210. enable_shared_with_static_runtimes=no
  7211. export_dynamic_flag_spec=
  7212. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7213. hardcode_automatic=no
  7214. hardcode_direct=no
  7215. hardcode_direct_absolute=no
  7216. hardcode_libdir_flag_spec=
  7217. hardcode_libdir_separator=
  7218. hardcode_minus_L=no
  7219. hardcode_shlibpath_var=unsupported
  7220. inherit_rpath=no
  7221. link_all_deplibs=unknown
  7222. module_cmds=
  7223. module_expsym_cmds=
  7224. old_archive_from_new_cmds=
  7225. old_archive_from_expsyms_cmds=
  7226. thread_safe_flag_spec=
  7227. whole_archive_flag_spec=
  7228. # include_expsyms should be a list of space-separated symbols to be *always*
  7229. # included in the symbol list
  7230. include_expsyms=
  7231. # exclude_expsyms can be an extended regexp of symbols to exclude
  7232. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7233. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7234. # as well as any symbol that contains 'd'.
  7235. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7236. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7237. # platforms (ab)use it in PIC code, but their linkers get confused if
  7238. # the symbol is explicitly referenced. Since portable code cannot
  7239. # rely on this symbol name, it's probably fine to never include it in
  7240. # preloaded symbol tables.
  7241. # Exclude shared library initialization/finalization symbols.
  7242. extract_expsyms_cmds=
  7243. case $host_os in
  7244. cygwin* | mingw* | pw32* | cegcc*)
  7245. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7246. # When not using gcc, we currently assume that we are using
  7247. # Microsoft Visual C++.
  7248. if test yes != "$GCC"; then
  7249. with_gnu_ld=no
  7250. fi
  7251. ;;
  7252. interix*)
  7253. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7254. with_gnu_ld=yes
  7255. ;;
  7256. openbsd* | bitrig*)
  7257. with_gnu_ld=no
  7258. ;;
  7259. linux* | k*bsd*-gnu | gnu*)
  7260. link_all_deplibs=no
  7261. ;;
  7262. esac
  7263. ld_shlibs=yes
  7264. # On some targets, GNU ld is compatible enough with the native linker
  7265. # that we're better off using the native interface for both.
  7266. lt_use_gnu_ld_interface=no
  7267. if test yes = "$with_gnu_ld"; then
  7268. case $host_os in
  7269. aix*)
  7270. # The AIX port of GNU ld has always aspired to compatibility
  7271. # with the native linker. However, as the warning in the GNU ld
  7272. # block says, versions before 2.19.5* couldn't really create working
  7273. # shared libraries, regardless of the interface used.
  7274. case `$LD -v 2>&1` in
  7275. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7276. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7277. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7278. *)
  7279. lt_use_gnu_ld_interface=yes
  7280. ;;
  7281. esac
  7282. ;;
  7283. *)
  7284. lt_use_gnu_ld_interface=yes
  7285. ;;
  7286. esac
  7287. fi
  7288. if test yes = "$lt_use_gnu_ld_interface"; then
  7289. # If archive_cmds runs LD, not CC, wlarc should be empty
  7290. wlarc='$wl'
  7291. # Set some defaults for GNU ld with shared library support. These
  7292. # are reset later if shared libraries are not supported. Putting them
  7293. # here allows them to be overridden if necessary.
  7294. runpath_var=LD_RUN_PATH
  7295. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7296. export_dynamic_flag_spec='$wl--export-dynamic'
  7297. # ancient GNU ld didn't support --whole-archive et. al.
  7298. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7299. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7300. else
  7301. whole_archive_flag_spec=
  7302. fi
  7303. supports_anon_versioning=no
  7304. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  7305. *GNU\ gold*) supports_anon_versioning=yes ;;
  7306. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7307. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7308. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7309. *\ 2.11.*) ;; # other 2.11 versions
  7310. *) supports_anon_versioning=yes ;;
  7311. esac
  7312. # See if GNU ld supports shared libraries.
  7313. case $host_os in
  7314. aix[3-9]*)
  7315. # On AIX/PPC, the GNU linker is very broken
  7316. if test ia64 != "$host_cpu"; then
  7317. ld_shlibs=no
  7318. cat <<_LT_EOF 1>&2
  7319. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7320. *** to be unable to reliably create shared libraries on AIX.
  7321. *** Therefore, libtool is disabling shared libraries support. If you
  7322. *** really care for shared libraries, you may want to install binutils
  7323. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7324. *** You will then need to restart the configuration process.
  7325. _LT_EOF
  7326. fi
  7327. ;;
  7328. amigaos*)
  7329. case $host_cpu in
  7330. powerpc)
  7331. # see comment about AmigaOS4 .so support
  7332. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7333. archive_expsym_cmds=''
  7334. ;;
  7335. m68k)
  7336. 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)'
  7337. hardcode_libdir_flag_spec='-L$libdir'
  7338. hardcode_minus_L=yes
  7339. ;;
  7340. esac
  7341. ;;
  7342. beos*)
  7343. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7344. allow_undefined_flag=unsupported
  7345. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7346. # support --undefined. This deserves some investigation. FIXME
  7347. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7348. else
  7349. ld_shlibs=no
  7350. fi
  7351. ;;
  7352. cygwin* | mingw* | pw32* | cegcc*)
  7353. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7354. # as there is no search path for DLLs.
  7355. hardcode_libdir_flag_spec='-L$libdir'
  7356. export_dynamic_flag_spec='$wl--export-all-symbols'
  7357. allow_undefined_flag=unsupported
  7358. always_export_symbols=no
  7359. enable_shared_with_static_runtimes=yes
  7360. 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'
  7361. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7362. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7363. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7364. # If the export-symbols file already is a .def file, use it as
  7365. # is; otherwise, prepend EXPORTS...
  7366. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7367. cp $export_symbols $output_objdir/$soname.def;
  7368. else
  7369. echo EXPORTS > $output_objdir/$soname.def;
  7370. cat $export_symbols >> $output_objdir/$soname.def;
  7371. fi~
  7372. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7373. else
  7374. ld_shlibs=no
  7375. fi
  7376. ;;
  7377. haiku*)
  7378. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7379. link_all_deplibs=yes
  7380. ;;
  7381. os2*)
  7382. hardcode_libdir_flag_spec='-L$libdir'
  7383. hardcode_minus_L=yes
  7384. allow_undefined_flag=unsupported
  7385. shrext_cmds=.dll
  7386. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7387. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7388. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7389. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7390. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7391. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7392. emximp -o $lib $output_objdir/$libname.def'
  7393. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7394. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7395. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7396. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7397. prefix_cmds="$SED"~
  7398. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7399. prefix_cmds="$prefix_cmds -e 1d";
  7400. fi~
  7401. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7402. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7403. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7404. emximp -o $lib $output_objdir/$libname.def'
  7405. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7406. enable_shared_with_static_runtimes=yes
  7407. ;;
  7408. interix[3-9]*)
  7409. hardcode_direct=no
  7410. hardcode_shlibpath_var=no
  7411. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  7412. export_dynamic_flag_spec='$wl-E'
  7413. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7414. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7415. # default) and relocated if they conflict, which is a slow very memory
  7416. # consuming and fragmenting process. To avoid this, we pick a random,
  7417. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7418. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7419. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7420. 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'
  7421. ;;
  7422. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7423. tmp_diet=no
  7424. if test linux-dietlibc = "$host_os"; then
  7425. case $cc_basename in
  7426. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7427. esac
  7428. fi
  7429. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7430. && test no = "$tmp_diet"
  7431. then
  7432. tmp_addflag=' $pic_flag'
  7433. tmp_sharedflag='-shared'
  7434. case $cc_basename,$host_cpu in
  7435. pgcc*) # Portland Group C compiler
  7436. 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'
  7437. tmp_addflag=' $pic_flag'
  7438. ;;
  7439. pgf77* | pgf90* | pgf95* | pgfortran*)
  7440. # Portland Group f77 and f90 compilers
  7441. 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'
  7442. tmp_addflag=' $pic_flag -Mnomain' ;;
  7443. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7444. tmp_addflag=' -i_dynamic' ;;
  7445. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7446. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7447. ifc* | ifort*) # Intel Fortran compiler
  7448. tmp_addflag=' -nofor_main' ;;
  7449. lf95*) # Lahey Fortran 8.1
  7450. whole_archive_flag_spec=
  7451. tmp_sharedflag='--shared' ;;
  7452. nagfor*) # NAGFOR 5.3
  7453. tmp_sharedflag='-Wl,-shared' ;;
  7454. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7455. tmp_sharedflag='-qmkshrobj'
  7456. tmp_addflag= ;;
  7457. nvcc*) # Cuda Compiler Driver 2.2
  7458. 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'
  7459. compiler_needs_object=yes
  7460. ;;
  7461. esac
  7462. case `$CC -V 2>&1 | sed 5q` in
  7463. *Sun\ C*) # Sun C 5.9
  7464. 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'
  7465. compiler_needs_object=yes
  7466. tmp_sharedflag='-G' ;;
  7467. *Sun\ F*) # Sun Fortran 8.3
  7468. tmp_sharedflag='-G' ;;
  7469. esac
  7470. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7471. if test yes = "$supports_anon_versioning"; then
  7472. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7473. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7474. echo "local: *; };" >> $output_objdir/$libname.ver~
  7475. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  7476. fi
  7477. case $cc_basename in
  7478. tcc*)
  7479. export_dynamic_flag_spec='-rdynamic'
  7480. ;;
  7481. xlf* | bgf* | bgxlf* | mpixlf*)
  7482. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7483. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7484. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7485. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7486. if test yes = "$supports_anon_versioning"; then
  7487. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7488. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7489. echo "local: *; };" >> $output_objdir/$libname.ver~
  7490. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7491. fi
  7492. ;;
  7493. esac
  7494. else
  7495. ld_shlibs=no
  7496. fi
  7497. ;;
  7498. netbsd* | netbsdelf*-gnu)
  7499. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7500. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7501. wlarc=
  7502. else
  7503. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7504. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7505. fi
  7506. ;;
  7507. solaris*)
  7508. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7509. ld_shlibs=no
  7510. cat <<_LT_EOF 1>&2
  7511. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7512. *** create shared libraries on Solaris systems. Therefore, libtool
  7513. *** is disabling shared libraries support. We urge you to upgrade GNU
  7514. *** binutils to release 2.9.1 or newer. Another option is to modify
  7515. *** your PATH or compiler configuration so that the native linker is
  7516. *** used, and then restart.
  7517. _LT_EOF
  7518. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7519. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7520. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7521. else
  7522. ld_shlibs=no
  7523. fi
  7524. ;;
  7525. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7526. case `$LD -v 2>&1` in
  7527. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7528. ld_shlibs=no
  7529. cat <<_LT_EOF 1>&2
  7530. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  7531. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7532. *** is disabling shared libraries support. We urge you to upgrade GNU
  7533. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7534. *** your PATH or compiler configuration so that the native linker is
  7535. *** used, and then restart.
  7536. _LT_EOF
  7537. ;;
  7538. *)
  7539. # For security reasons, it is highly recommended that you always
  7540. # use absolute paths for naming shared libraries, and exclude the
  7541. # DT_RUNPATH tag from executables and libraries. But doing so
  7542. # requires that you compile everything twice, which is a pain.
  7543. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7544. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7545. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7546. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7547. else
  7548. ld_shlibs=no
  7549. fi
  7550. ;;
  7551. esac
  7552. ;;
  7553. sunos4*)
  7554. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7555. wlarc=
  7556. hardcode_direct=yes
  7557. hardcode_shlibpath_var=no
  7558. ;;
  7559. *)
  7560. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7561. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7562. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7563. else
  7564. ld_shlibs=no
  7565. fi
  7566. ;;
  7567. esac
  7568. if test no = "$ld_shlibs"; then
  7569. runpath_var=
  7570. hardcode_libdir_flag_spec=
  7571. export_dynamic_flag_spec=
  7572. whole_archive_flag_spec=
  7573. fi
  7574. else
  7575. # PORTME fill in a description of your system's linker (not GNU ld)
  7576. case $host_os in
  7577. aix3*)
  7578. allow_undefined_flag=unsupported
  7579. always_export_symbols=yes
  7580. 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'
  7581. # Note: this linker hardcodes the directories in LIBPATH if there
  7582. # are no directories specified by -L.
  7583. hardcode_minus_L=yes
  7584. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  7585. # Neither direct hardcoding nor static linking is supported with a
  7586. # broken collect2.
  7587. hardcode_direct=unsupported
  7588. fi
  7589. ;;
  7590. aix[4-9]*)
  7591. if test ia64 = "$host_cpu"; then
  7592. # On IA64, the linker does run time linking by default, so we don't
  7593. # have to do anything special.
  7594. aix_use_runtimelinking=no
  7595. exp_sym_flag='-Bexport'
  7596. no_entry_flag=
  7597. else
  7598. # If we're using GNU nm, then we don't want the "-C" option.
  7599. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  7600. # Without the "-l" option, or with the "-B" option, AIX nm treats
  7601. # weak defined symbols like other global defined symbols, whereas
  7602. # GNU nm marks them as "W".
  7603. # While the 'weak' keyword is ignored in the Export File, we need
  7604. # it in the Import File for the 'aix-soname' feature, so we have
  7605. # to replace the "-B" option with "-P" for AIX nm.
  7606. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7607. 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'
  7608. else
  7609. 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'
  7610. fi
  7611. aix_use_runtimelinking=no
  7612. # Test if we are trying to use run time linking or normal
  7613. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7614. # have runtime linking enabled, and use it for executables.
  7615. # For shared libraries, we enable/disable runtime linking
  7616. # depending on the kind of the shared library created -
  7617. # when "with_aix_soname,aix_use_runtimelinking" is:
  7618. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  7619. # "aix,yes" lib.so shared, rtl:yes, for executables
  7620. # lib.a static archive
  7621. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  7622. # lib.a(lib.so.V) shared, rtl:no, for executables
  7623. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  7624. # lib.a(lib.so.V) shared, rtl:no
  7625. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  7626. # lib.a static archive
  7627. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7628. for ld_flag in $LDFLAGS; do
  7629. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  7630. aix_use_runtimelinking=yes
  7631. break
  7632. fi
  7633. done
  7634. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  7635. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  7636. # so we don't have lib.a shared libs to link our executables.
  7637. # We have to force runtime linking in this case.
  7638. aix_use_runtimelinking=yes
  7639. LDFLAGS="$LDFLAGS -Wl,-brtl"
  7640. fi
  7641. ;;
  7642. esac
  7643. exp_sym_flag='-bexport'
  7644. no_entry_flag='-bnoentry'
  7645. fi
  7646. # When large executables or shared objects are built, AIX ld can
  7647. # have problems creating the table of contents. If linking a library
  7648. # or program results in "error TOC overflow" add -mminimal-toc to
  7649. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7650. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7651. archive_cmds=''
  7652. hardcode_direct=yes
  7653. hardcode_direct_absolute=yes
  7654. hardcode_libdir_separator=':'
  7655. link_all_deplibs=yes
  7656. file_list_spec='$wl-f,'
  7657. case $with_aix_soname,$aix_use_runtimelinking in
  7658. aix,*) ;; # traditional, no import file
  7659. svr4,* | *,yes) # use import file
  7660. # The Import File defines what to hardcode.
  7661. hardcode_direct=no
  7662. hardcode_direct_absolute=no
  7663. ;;
  7664. esac
  7665. if test yes = "$GCC"; then
  7666. case $host_os in aix4.[012]|aix4.[012].*)
  7667. # We only want to do this on AIX 4.2 and lower, the check
  7668. # below for broken collect2 doesn't work under 4.3+
  7669. collect2name=`$CC -print-prog-name=collect2`
  7670. if test -f "$collect2name" &&
  7671. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7672. then
  7673. # We have reworked collect2
  7674. :
  7675. else
  7676. # We have old collect2
  7677. hardcode_direct=unsupported
  7678. # It fails to find uninstalled libraries when the uninstalled
  7679. # path is not listed in the libpath. Setting hardcode_minus_L
  7680. # to unsupported forces relinking
  7681. hardcode_minus_L=yes
  7682. hardcode_libdir_flag_spec='-L$libdir'
  7683. hardcode_libdir_separator=
  7684. fi
  7685. ;;
  7686. esac
  7687. shared_flag='-shared'
  7688. if test yes = "$aix_use_runtimelinking"; then
  7689. shared_flag="$shared_flag "'$wl-G'
  7690. fi
  7691. # Need to ensure runtime linking is disabled for the traditional
  7692. # shared library, or the linker may eventually find shared libraries
  7693. # /with/ Import File - we do not want to mix them.
  7694. shared_flag_aix='-shared'
  7695. shared_flag_svr4='-shared $wl-G'
  7696. else
  7697. # not using gcc
  7698. if test ia64 = "$host_cpu"; then
  7699. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7700. # chokes on -Wl,-G. The following line is correct:
  7701. shared_flag='-G'
  7702. else
  7703. if test yes = "$aix_use_runtimelinking"; then
  7704. shared_flag='$wl-G'
  7705. else
  7706. shared_flag='$wl-bM:SRE'
  7707. fi
  7708. shared_flag_aix='$wl-bM:SRE'
  7709. shared_flag_svr4='$wl-G'
  7710. fi
  7711. fi
  7712. export_dynamic_flag_spec='$wl-bexpall'
  7713. # It seems that -bexpall does not export symbols beginning with
  7714. # underscore (_), so it is better to generate a list of symbols to export.
  7715. always_export_symbols=yes
  7716. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  7717. # Warning - without using the other runtime loading flags (-brtl),
  7718. # -berok will link without error, but may produce a broken library.
  7719. allow_undefined_flag='-berok'
  7720. # Determine the default libpath from the value encoded in an
  7721. # empty executable.
  7722. if test set = "${lt_cv_aix_libpath+set}"; then
  7723. aix_libpath=$lt_cv_aix_libpath
  7724. else
  7725. if ${lt_cv_aix_libpath_+:} false; then :
  7726. $as_echo_n "(cached) " >&6
  7727. else
  7728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7729. /* end confdefs.h. */
  7730. int
  7731. main ()
  7732. {
  7733. ;
  7734. return 0;
  7735. }
  7736. _ACEOF
  7737. if ac_fn_c_try_link "$LINENO"; then :
  7738. lt_aix_libpath_sed='
  7739. /Import File Strings/,/^$/ {
  7740. /^0/ {
  7741. s/^0 *\([^ ]*\) *$/\1/
  7742. p
  7743. }
  7744. }'
  7745. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7746. # Check for a 64-bit object if we didn't find anything.
  7747. if test -z "$lt_cv_aix_libpath_"; then
  7748. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7749. fi
  7750. fi
  7751. rm -f core conftest.err conftest.$ac_objext \
  7752. conftest$ac_exeext conftest.$ac_ext
  7753. if test -z "$lt_cv_aix_libpath_"; then
  7754. lt_cv_aix_libpath_=/usr/lib:/lib
  7755. fi
  7756. fi
  7757. aix_libpath=$lt_cv_aix_libpath_
  7758. fi
  7759. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  7760. 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
  7761. else
  7762. if test ia64 = "$host_cpu"; then
  7763. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  7764. allow_undefined_flag="-z nodefs"
  7765. 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"
  7766. else
  7767. # Determine the default libpath from the value encoded in an
  7768. # empty executable.
  7769. if test set = "${lt_cv_aix_libpath+set}"; then
  7770. aix_libpath=$lt_cv_aix_libpath
  7771. else
  7772. if ${lt_cv_aix_libpath_+:} false; then :
  7773. $as_echo_n "(cached) " >&6
  7774. else
  7775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7776. /* end confdefs.h. */
  7777. int
  7778. main ()
  7779. {
  7780. ;
  7781. return 0;
  7782. }
  7783. _ACEOF
  7784. if ac_fn_c_try_link "$LINENO"; then :
  7785. lt_aix_libpath_sed='
  7786. /Import File Strings/,/^$/ {
  7787. /^0/ {
  7788. s/^0 *\([^ ]*\) *$/\1/
  7789. p
  7790. }
  7791. }'
  7792. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7793. # Check for a 64-bit object if we didn't find anything.
  7794. if test -z "$lt_cv_aix_libpath_"; then
  7795. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7796. fi
  7797. fi
  7798. rm -f core conftest.err conftest.$ac_objext \
  7799. conftest$ac_exeext conftest.$ac_ext
  7800. if test -z "$lt_cv_aix_libpath_"; then
  7801. lt_cv_aix_libpath_=/usr/lib:/lib
  7802. fi
  7803. fi
  7804. aix_libpath=$lt_cv_aix_libpath_
  7805. fi
  7806. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  7807. # Warning - without using the other run time loading flags,
  7808. # -berok will link without error, but may produce a broken library.
  7809. no_undefined_flag=' $wl-bernotok'
  7810. allow_undefined_flag=' $wl-berok'
  7811. if test yes = "$with_gnu_ld"; then
  7812. # We only use this code for GNU lds that support --whole-archive.
  7813. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  7814. else
  7815. # Exported symbols can be pulled into shared objects from archives
  7816. whole_archive_flag_spec='$convenience'
  7817. fi
  7818. archive_cmds_need_lc=yes
  7819. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  7820. # -brtl affects multiple linker settings, -berok does not and is overridden later
  7821. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  7822. if test svr4 != "$with_aix_soname"; then
  7823. # This is similar to how AIX traditionally builds its shared libraries.
  7824. 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'
  7825. fi
  7826. if test aix != "$with_aix_soname"; then
  7827. 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'
  7828. else
  7829. # used by -dlpreopen to get the symbols
  7830. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  7831. fi
  7832. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  7833. fi
  7834. fi
  7835. ;;
  7836. amigaos*)
  7837. case $host_cpu in
  7838. powerpc)
  7839. # see comment about AmigaOS4 .so support
  7840. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7841. archive_expsym_cmds=''
  7842. ;;
  7843. m68k)
  7844. 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)'
  7845. hardcode_libdir_flag_spec='-L$libdir'
  7846. hardcode_minus_L=yes
  7847. ;;
  7848. esac
  7849. ;;
  7850. bsdi[45]*)
  7851. export_dynamic_flag_spec=-rdynamic
  7852. ;;
  7853. cygwin* | mingw* | pw32* | cegcc*)
  7854. # When not using gcc, we currently assume that we are using
  7855. # Microsoft Visual C++.
  7856. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7857. # no search path for DLLs.
  7858. case $cc_basename in
  7859. cl*)
  7860. # Native MSVC
  7861. hardcode_libdir_flag_spec=' '
  7862. allow_undefined_flag=unsupported
  7863. always_export_symbols=yes
  7864. file_list_spec='@'
  7865. # Tell ltmain to make .lib files, not .a files.
  7866. libext=lib
  7867. # Tell ltmain to make .dll files, not .so files.
  7868. shrext_cmds=.dll
  7869. # FIXME: Setting linknames here is a bad hack.
  7870. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  7871. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7872. cp "$export_symbols" "$output_objdir/$soname.def";
  7873. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  7874. else
  7875. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  7876. fi~
  7877. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7878. linknames='
  7879. # The linker will not automatically build a static lib if we build a DLL.
  7880. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7881. enable_shared_with_static_runtimes=yes
  7882. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7883. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7884. # Don't use ranlib
  7885. old_postinstall_cmds='chmod 644 $oldlib'
  7886. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7887. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7888. case $lt_outputfile in
  7889. *.exe|*.EXE) ;;
  7890. *)
  7891. lt_outputfile=$lt_outputfile.exe
  7892. lt_tool_outputfile=$lt_tool_outputfile.exe
  7893. ;;
  7894. esac~
  7895. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  7896. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7897. $RM "$lt_outputfile.manifest";
  7898. fi'
  7899. ;;
  7900. *)
  7901. # Assume MSVC wrapper
  7902. hardcode_libdir_flag_spec=' '
  7903. allow_undefined_flag=unsupported
  7904. # Tell ltmain to make .lib files, not .a files.
  7905. libext=lib
  7906. # Tell ltmain to make .dll files, not .so files.
  7907. shrext_cmds=.dll
  7908. # FIXME: Setting linknames here is a bad hack.
  7909. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7910. # The linker will automatically build a .lib file if we build a DLL.
  7911. old_archive_from_new_cmds='true'
  7912. # FIXME: Should let the user specify the lib program.
  7913. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7914. enable_shared_with_static_runtimes=yes
  7915. ;;
  7916. esac
  7917. ;;
  7918. darwin* | rhapsody*)
  7919. archive_cmds_need_lc=no
  7920. hardcode_direct=no
  7921. hardcode_automatic=yes
  7922. hardcode_shlibpath_var=unsupported
  7923. if test yes = "$lt_cv_ld_force_load"; then
  7924. 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\"`'
  7925. else
  7926. whole_archive_flag_spec=''
  7927. fi
  7928. link_all_deplibs=yes
  7929. allow_undefined_flag=$_lt_dar_allow_undefined
  7930. case $cc_basename in
  7931. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  7932. *) _lt_dar_can_shared=$GCC ;;
  7933. esac
  7934. if test yes = "$_lt_dar_can_shared"; then
  7935. output_verbose_link_cmd=func_echo_all
  7936. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  7937. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  7938. 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"
  7939. 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"
  7940. else
  7941. ld_shlibs=no
  7942. fi
  7943. ;;
  7944. dgux*)
  7945. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7946. hardcode_libdir_flag_spec='-L$libdir'
  7947. hardcode_shlibpath_var=no
  7948. ;;
  7949. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7950. # support. Future versions do this automatically, but an explicit c++rt0.o
  7951. # does not break anything, and helps significantly (at the cost of a little
  7952. # extra space).
  7953. freebsd2.2*)
  7954. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7955. hardcode_libdir_flag_spec='-R$libdir'
  7956. hardcode_direct=yes
  7957. hardcode_shlibpath_var=no
  7958. ;;
  7959. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7960. freebsd2.*)
  7961. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7962. hardcode_direct=yes
  7963. hardcode_minus_L=yes
  7964. hardcode_shlibpath_var=no
  7965. ;;
  7966. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7967. freebsd* | dragonfly*)
  7968. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7969. hardcode_libdir_flag_spec='-R$libdir'
  7970. hardcode_direct=yes
  7971. hardcode_shlibpath_var=no
  7972. ;;
  7973. hpux9*)
  7974. if test yes = "$GCC"; then
  7975. 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'
  7976. else
  7977. 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'
  7978. fi
  7979. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  7980. hardcode_libdir_separator=:
  7981. hardcode_direct=yes
  7982. # hardcode_minus_L: Not really in the search PATH,
  7983. # but as the default location of the library.
  7984. hardcode_minus_L=yes
  7985. export_dynamic_flag_spec='$wl-E'
  7986. ;;
  7987. hpux10*)
  7988. if test yes,no = "$GCC,$with_gnu_ld"; then
  7989. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7990. else
  7991. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7992. fi
  7993. if test no = "$with_gnu_ld"; then
  7994. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  7995. hardcode_libdir_separator=:
  7996. hardcode_direct=yes
  7997. hardcode_direct_absolute=yes
  7998. export_dynamic_flag_spec='$wl-E'
  7999. # hardcode_minus_L: Not really in the search PATH,
  8000. # but as the default location of the library.
  8001. hardcode_minus_L=yes
  8002. fi
  8003. ;;
  8004. hpux11*)
  8005. if test yes,no = "$GCC,$with_gnu_ld"; then
  8006. case $host_cpu in
  8007. hppa*64*)
  8008. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8009. ;;
  8010. ia64*)
  8011. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8012. ;;
  8013. *)
  8014. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8015. ;;
  8016. esac
  8017. else
  8018. case $host_cpu in
  8019. hppa*64*)
  8020. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8021. ;;
  8022. ia64*)
  8023. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8024. ;;
  8025. *)
  8026. # Older versions of the 11.00 compiler do not understand -b yet
  8027. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8029. $as_echo_n "checking if $CC understands -b... " >&6; }
  8030. if ${lt_cv_prog_compiler__b+:} false; then :
  8031. $as_echo_n "(cached) " >&6
  8032. else
  8033. lt_cv_prog_compiler__b=no
  8034. save_LDFLAGS=$LDFLAGS
  8035. LDFLAGS="$LDFLAGS -b"
  8036. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8037. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8038. # The linker can only warn and ignore the option if not recognized
  8039. # So say no if there are warnings
  8040. if test -s conftest.err; then
  8041. # Append any errors to the config.log.
  8042. cat conftest.err 1>&5
  8043. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8044. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8045. if diff conftest.exp conftest.er2 >/dev/null; then
  8046. lt_cv_prog_compiler__b=yes
  8047. fi
  8048. else
  8049. lt_cv_prog_compiler__b=yes
  8050. fi
  8051. fi
  8052. $RM -r conftest*
  8053. LDFLAGS=$save_LDFLAGS
  8054. fi
  8055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8056. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8057. if test yes = "$lt_cv_prog_compiler__b"; then
  8058. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8059. else
  8060. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8061. fi
  8062. ;;
  8063. esac
  8064. fi
  8065. if test no = "$with_gnu_ld"; then
  8066. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8067. hardcode_libdir_separator=:
  8068. case $host_cpu in
  8069. hppa*64*|ia64*)
  8070. hardcode_direct=no
  8071. hardcode_shlibpath_var=no
  8072. ;;
  8073. *)
  8074. hardcode_direct=yes
  8075. hardcode_direct_absolute=yes
  8076. export_dynamic_flag_spec='$wl-E'
  8077. # hardcode_minus_L: Not really in the search PATH,
  8078. # but as the default location of the library.
  8079. hardcode_minus_L=yes
  8080. ;;
  8081. esac
  8082. fi
  8083. ;;
  8084. irix5* | irix6* | nonstopux*)
  8085. if test yes = "$GCC"; then
  8086. 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'
  8087. # Try to use the -exported_symbol ld option, if it does not
  8088. # work, assume that -exports_file does not work either and
  8089. # implicitly export all symbols.
  8090. # This should be the same for all languages, so no per-tag cache variable.
  8091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8092. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8093. if ${lt_cv_irix_exported_symbol+:} false; then :
  8094. $as_echo_n "(cached) " >&6
  8095. else
  8096. save_LDFLAGS=$LDFLAGS
  8097. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8099. /* end confdefs.h. */
  8100. int foo (void) { return 0; }
  8101. _ACEOF
  8102. if ac_fn_c_try_link "$LINENO"; then :
  8103. lt_cv_irix_exported_symbol=yes
  8104. else
  8105. lt_cv_irix_exported_symbol=no
  8106. fi
  8107. rm -f core conftest.err conftest.$ac_objext \
  8108. conftest$ac_exeext conftest.$ac_ext
  8109. LDFLAGS=$save_LDFLAGS
  8110. fi
  8111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8112. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8113. if test yes = "$lt_cv_irix_exported_symbol"; then
  8114. 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'
  8115. fi
  8116. link_all_deplibs=no
  8117. else
  8118. 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'
  8119. 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'
  8120. fi
  8121. archive_cmds_need_lc='no'
  8122. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8123. hardcode_libdir_separator=:
  8124. inherit_rpath=yes
  8125. link_all_deplibs=yes
  8126. ;;
  8127. linux*)
  8128. case $cc_basename in
  8129. tcc*)
  8130. # Fabrice Bellard et al's Tiny C Compiler
  8131. ld_shlibs=yes
  8132. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8133. ;;
  8134. esac
  8135. ;;
  8136. netbsd* | netbsdelf*-gnu)
  8137. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8138. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8139. else
  8140. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8141. fi
  8142. hardcode_libdir_flag_spec='-R$libdir'
  8143. hardcode_direct=yes
  8144. hardcode_shlibpath_var=no
  8145. ;;
  8146. newsos6)
  8147. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8148. hardcode_direct=yes
  8149. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8150. hardcode_libdir_separator=:
  8151. hardcode_shlibpath_var=no
  8152. ;;
  8153. *nto* | *qnx*)
  8154. ;;
  8155. openbsd* | bitrig*)
  8156. if test -f /usr/libexec/ld.so; then
  8157. hardcode_direct=yes
  8158. hardcode_shlibpath_var=no
  8159. hardcode_direct_absolute=yes
  8160. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8161. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8162. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8163. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8164. export_dynamic_flag_spec='$wl-E'
  8165. else
  8166. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8167. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8168. fi
  8169. else
  8170. ld_shlibs=no
  8171. fi
  8172. ;;
  8173. os2*)
  8174. hardcode_libdir_flag_spec='-L$libdir'
  8175. hardcode_minus_L=yes
  8176. allow_undefined_flag=unsupported
  8177. shrext_cmds=.dll
  8178. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8179. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8180. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8181. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8182. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8183. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8184. emximp -o $lib $output_objdir/$libname.def'
  8185. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8186. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8187. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8188. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8189. prefix_cmds="$SED"~
  8190. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8191. prefix_cmds="$prefix_cmds -e 1d";
  8192. fi~
  8193. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8194. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8195. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8196. emximp -o $lib $output_objdir/$libname.def'
  8197. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8198. enable_shared_with_static_runtimes=yes
  8199. ;;
  8200. osf3*)
  8201. if test yes = "$GCC"; then
  8202. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8203. 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'
  8204. else
  8205. allow_undefined_flag=' -expect_unresolved \*'
  8206. 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'
  8207. fi
  8208. archive_cmds_need_lc='no'
  8209. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8210. hardcode_libdir_separator=:
  8211. ;;
  8212. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8213. if test yes = "$GCC"; then
  8214. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8215. 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'
  8216. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8217. else
  8218. allow_undefined_flag=' -expect_unresolved \*'
  8219. 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'
  8220. 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~
  8221. $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'
  8222. # Both c and cxx compiler support -rpath directly
  8223. hardcode_libdir_flag_spec='-rpath $libdir'
  8224. fi
  8225. archive_cmds_need_lc='no'
  8226. hardcode_libdir_separator=:
  8227. ;;
  8228. solaris*)
  8229. no_undefined_flag=' -z defs'
  8230. if test yes = "$GCC"; then
  8231. wlarc='$wl'
  8232. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8233. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8234. $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'
  8235. else
  8236. case `$CC -V 2>&1` in
  8237. *"Compilers 5.0"*)
  8238. wlarc=''
  8239. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8240. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8241. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8242. ;;
  8243. *)
  8244. wlarc='$wl'
  8245. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8246. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8247. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8248. ;;
  8249. esac
  8250. fi
  8251. hardcode_libdir_flag_spec='-R$libdir'
  8252. hardcode_shlibpath_var=no
  8253. case $host_os in
  8254. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8255. *)
  8256. # The compiler driver will combine and reorder linker options,
  8257. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8258. # but is careful enough not to reorder.
  8259. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8260. if test yes = "$GCC"; then
  8261. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8262. else
  8263. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8264. fi
  8265. ;;
  8266. esac
  8267. link_all_deplibs=yes
  8268. ;;
  8269. sunos4*)
  8270. if test sequent = "$host_vendor"; then
  8271. # Use $CC to link under sequent, because it throws in some extra .o
  8272. # files that make .init and .fini sections work.
  8273. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8274. else
  8275. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8276. fi
  8277. hardcode_libdir_flag_spec='-L$libdir'
  8278. hardcode_direct=yes
  8279. hardcode_minus_L=yes
  8280. hardcode_shlibpath_var=no
  8281. ;;
  8282. sysv4)
  8283. case $host_vendor in
  8284. sni)
  8285. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8286. hardcode_direct=yes # is this really true???
  8287. ;;
  8288. siemens)
  8289. ## LD is ld it makes a PLAMLIB
  8290. ## CC just makes a GrossModule.
  8291. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8292. reload_cmds='$CC -r -o $output$reload_objs'
  8293. hardcode_direct=no
  8294. ;;
  8295. motorola)
  8296. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8297. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8298. ;;
  8299. esac
  8300. runpath_var='LD_RUN_PATH'
  8301. hardcode_shlibpath_var=no
  8302. ;;
  8303. sysv4.3*)
  8304. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8305. hardcode_shlibpath_var=no
  8306. export_dynamic_flag_spec='-Bexport'
  8307. ;;
  8308. sysv4*MP*)
  8309. if test -d /usr/nec; then
  8310. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8311. hardcode_shlibpath_var=no
  8312. runpath_var=LD_RUN_PATH
  8313. hardcode_runpath_var=yes
  8314. ld_shlibs=yes
  8315. fi
  8316. ;;
  8317. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8318. no_undefined_flag='$wl-z,text'
  8319. archive_cmds_need_lc=no
  8320. hardcode_shlibpath_var=no
  8321. runpath_var='LD_RUN_PATH'
  8322. if test yes = "$GCC"; then
  8323. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8324. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8325. else
  8326. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8327. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8328. fi
  8329. ;;
  8330. sysv5* | sco3.2v5* | sco5v6*)
  8331. # Note: We CANNOT use -z defs as we might desire, because we do not
  8332. # link with -lc, and that would cause any symbols used from libc to
  8333. # always be unresolved, which means just about no library would
  8334. # ever link correctly. If we're not using GNU ld we use -z text
  8335. # though, which does catch some bad symbols but isn't as heavy-handed
  8336. # as -z defs.
  8337. no_undefined_flag='$wl-z,text'
  8338. allow_undefined_flag='$wl-z,nodefs'
  8339. archive_cmds_need_lc=no
  8340. hardcode_shlibpath_var=no
  8341. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8342. hardcode_libdir_separator=':'
  8343. link_all_deplibs=yes
  8344. export_dynamic_flag_spec='$wl-Bexport'
  8345. runpath_var='LD_RUN_PATH'
  8346. if test yes = "$GCC"; then
  8347. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8348. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8349. else
  8350. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8351. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8352. fi
  8353. ;;
  8354. uts4*)
  8355. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8356. hardcode_libdir_flag_spec='-L$libdir'
  8357. hardcode_shlibpath_var=no
  8358. ;;
  8359. *)
  8360. ld_shlibs=no
  8361. ;;
  8362. esac
  8363. if test sni = "$host_vendor"; then
  8364. case $host in
  8365. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8366. export_dynamic_flag_spec='$wl-Blargedynsym'
  8367. ;;
  8368. esac
  8369. fi
  8370. fi
  8371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8372. $as_echo "$ld_shlibs" >&6; }
  8373. test no = "$ld_shlibs" && can_build_shared=no
  8374. with_gnu_ld=$with_gnu_ld
  8375. #
  8376. # Do we need to explicitly link libc?
  8377. #
  8378. case "x$archive_cmds_need_lc" in
  8379. x|xyes)
  8380. # Assume -lc should be added
  8381. archive_cmds_need_lc=yes
  8382. if test yes,yes = "$GCC,$enable_shared"; then
  8383. case $archive_cmds in
  8384. *'~'*)
  8385. # FIXME: we may have to deal with multi-command sequences.
  8386. ;;
  8387. '$CC '*)
  8388. # Test whether the compiler implicitly links with -lc since on some
  8389. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8390. # to ld, don't add -lc before -lgcc.
  8391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8392. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8393. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8394. $as_echo_n "(cached) " >&6
  8395. else
  8396. $RM conftest*
  8397. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8398. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8399. (eval $ac_compile) 2>&5
  8400. ac_status=$?
  8401. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8402. test $ac_status = 0; } 2>conftest.err; then
  8403. soname=conftest
  8404. lib=conftest
  8405. libobjs=conftest.$ac_objext
  8406. deplibs=
  8407. wl=$lt_prog_compiler_wl
  8408. pic_flag=$lt_prog_compiler_pic
  8409. compiler_flags=-v
  8410. linker_flags=-v
  8411. verstring=
  8412. output_objdir=.
  8413. libname=conftest
  8414. lt_save_allow_undefined_flag=$allow_undefined_flag
  8415. allow_undefined_flag=
  8416. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8417. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8418. ac_status=$?
  8419. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8420. test $ac_status = 0; }
  8421. then
  8422. lt_cv_archive_cmds_need_lc=no
  8423. else
  8424. lt_cv_archive_cmds_need_lc=yes
  8425. fi
  8426. allow_undefined_flag=$lt_save_allow_undefined_flag
  8427. else
  8428. cat conftest.err 1>&5
  8429. fi
  8430. $RM conftest*
  8431. fi
  8432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8433. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8434. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8435. ;;
  8436. esac
  8437. fi
  8438. ;;
  8439. esac
  8440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8441. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8442. if test yes = "$GCC"; then
  8443. case $host_os in
  8444. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  8445. *) lt_awk_arg='/^libraries:/' ;;
  8446. esac
  8447. case $host_os in
  8448. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  8449. *) lt_sed_strip_eq='s|=/|/|g' ;;
  8450. esac
  8451. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8452. case $lt_search_path_spec in
  8453. *\;*)
  8454. # if the path contains ";" then we assume it to be the separator
  8455. # otherwise default to the standard path separator (i.e. ":") - it is
  8456. # assumed that no part of a normal pathname contains ";" but that should
  8457. # okay in the real world where ";" in dirpaths is itself problematic.
  8458. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8459. ;;
  8460. *)
  8461. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8462. ;;
  8463. esac
  8464. # Ok, now we have the path, separated by spaces, we can step through it
  8465. # and add multilib dir if necessary...
  8466. lt_tmp_lt_search_path_spec=
  8467. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8468. # ...but if some path component already ends with the multilib dir we assume
  8469. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  8470. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8471. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8472. lt_multi_os_dir=
  8473. ;;
  8474. esac
  8475. for lt_sys_path in $lt_search_path_spec; do
  8476. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8477. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8478. elif test -n "$lt_multi_os_dir"; then
  8479. test -d "$lt_sys_path" && \
  8480. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8481. fi
  8482. done
  8483. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8484. BEGIN {RS = " "; FS = "/|\n";} {
  8485. lt_foo = "";
  8486. lt_count = 0;
  8487. for (lt_i = NF; lt_i > 0; lt_i--) {
  8488. if ($lt_i != "" && $lt_i != ".") {
  8489. if ($lt_i == "..") {
  8490. lt_count++;
  8491. } else {
  8492. if (lt_count == 0) {
  8493. lt_foo = "/" $lt_i lt_foo;
  8494. } else {
  8495. lt_count--;
  8496. }
  8497. }
  8498. }
  8499. }
  8500. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8501. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8502. }'`
  8503. # AWK program above erroneously prepends '/' to C:/dos/paths
  8504. # for these hosts.
  8505. case $host_os in
  8506. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8507. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  8508. esac
  8509. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8510. else
  8511. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8512. fi
  8513. library_names_spec=
  8514. libname_spec='lib$name'
  8515. soname_spec=
  8516. shrext_cmds=.so
  8517. postinstall_cmds=
  8518. postuninstall_cmds=
  8519. finish_cmds=
  8520. finish_eval=
  8521. shlibpath_var=
  8522. shlibpath_overrides_runpath=unknown
  8523. version_type=none
  8524. dynamic_linker="$host_os ld.so"
  8525. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8526. need_lib_prefix=unknown
  8527. hardcode_into_libs=no
  8528. # when you set need_version to no, make sure it does not cause -set_version
  8529. # flags to be left without arguments
  8530. need_version=unknown
  8531. case $host_os in
  8532. aix3*)
  8533. version_type=linux # correct to gnu/linux during the next big refactor
  8534. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  8535. shlibpath_var=LIBPATH
  8536. # AIX 3 has no versioning support, so we append a major version to the name.
  8537. soname_spec='$libname$release$shared_ext$major'
  8538. ;;
  8539. aix[4-9]*)
  8540. version_type=linux # correct to gnu/linux during the next big refactor
  8541. need_lib_prefix=no
  8542. need_version=no
  8543. hardcode_into_libs=yes
  8544. if test ia64 = "$host_cpu"; then
  8545. # AIX 5 supports IA64
  8546. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  8547. shlibpath_var=LD_LIBRARY_PATH
  8548. else
  8549. # With GCC up to 2.95.x, collect2 would create an import file
  8550. # for dependence libraries. The import file would start with
  8551. # the line '#! .'. This would cause the generated library to
  8552. # depend on '.', always an invalid library. This was fixed in
  8553. # development snapshots of GCC prior to 3.0.
  8554. case $host_os in
  8555. aix4 | aix4.[01] | aix4.[01].*)
  8556. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8557. echo ' yes '
  8558. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  8559. :
  8560. else
  8561. can_build_shared=no
  8562. fi
  8563. ;;
  8564. esac
  8565. # Using Import Files as archive members, it is possible to support
  8566. # filename-based versioning of shared library archives on AIX. While
  8567. # this would work for both with and without runtime linking, it will
  8568. # prevent static linking of such archives. So we do filename-based
  8569. # shared library versioning with .so extension only, which is used
  8570. # when both runtime linking and shared linking is enabled.
  8571. # Unfortunately, runtime linking may impact performance, so we do
  8572. # not want this to be the default eventually. Also, we use the
  8573. # versioned .so libs for executables only if there is the -brtl
  8574. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  8575. # To allow for filename-based versioning support, we need to create
  8576. # libNAME.so.V as an archive file, containing:
  8577. # *) an Import File, referring to the versioned filename of the
  8578. # archive as well as the shared archive member, telling the
  8579. # bitwidth (32 or 64) of that shared object, and providing the
  8580. # list of exported symbols of that shared object, eventually
  8581. # decorated with the 'weak' keyword
  8582. # *) the shared object with the F_LOADONLY flag set, to really avoid
  8583. # it being seen by the linker.
  8584. # At run time we better use the real file rather than another symlink,
  8585. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  8586. case $with_aix_soname,$aix_use_runtimelinking in
  8587. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  8588. # soname into executable. Probably we can add versioning support to
  8589. # collect2, so additional links can be useful in future.
  8590. aix,yes) # traditional libtool
  8591. dynamic_linker='AIX unversionable lib.so'
  8592. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8593. # instead of lib<name>.a to let people know that these are not
  8594. # typical AIX shared libraries.
  8595. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8596. ;;
  8597. aix,no) # traditional AIX only
  8598. dynamic_linker='AIX lib.a(lib.so.V)'
  8599. # We preserve .a as extension for shared libraries through AIX4.2
  8600. # and later when we are not doing run time linking.
  8601. library_names_spec='$libname$release.a $libname.a'
  8602. soname_spec='$libname$release$shared_ext$major'
  8603. ;;
  8604. svr4,*) # full svr4 only
  8605. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  8606. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  8607. # We do not specify a path in Import Files, so LIBPATH fires.
  8608. shlibpath_overrides_runpath=yes
  8609. ;;
  8610. *,yes) # both, prefer svr4
  8611. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  8612. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  8613. # unpreferred sharedlib libNAME.a needs extra handling
  8614. 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"'
  8615. 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"'
  8616. # We do not specify a path in Import Files, so LIBPATH fires.
  8617. shlibpath_overrides_runpath=yes
  8618. ;;
  8619. *,no) # both, prefer aix
  8620. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  8621. library_names_spec='$libname$release.a $libname.a'
  8622. soname_spec='$libname$release$shared_ext$major'
  8623. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  8624. 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)'
  8625. 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"'
  8626. ;;
  8627. esac
  8628. shlibpath_var=LIBPATH
  8629. fi
  8630. ;;
  8631. amigaos*)
  8632. case $host_cpu in
  8633. powerpc)
  8634. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8635. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8636. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8637. ;;
  8638. m68k)
  8639. library_names_spec='$libname.ixlibrary $libname.a'
  8640. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8641. 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'
  8642. ;;
  8643. esac
  8644. ;;
  8645. beos*)
  8646. library_names_spec='$libname$shared_ext'
  8647. dynamic_linker="$host_os ld.so"
  8648. shlibpath_var=LIBRARY_PATH
  8649. ;;
  8650. bsdi[45]*)
  8651. version_type=linux # correct to gnu/linux during the next big refactor
  8652. need_version=no
  8653. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8654. soname_spec='$libname$release$shared_ext$major'
  8655. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8656. shlibpath_var=LD_LIBRARY_PATH
  8657. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8658. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8659. # the default ld.so.conf also contains /usr/contrib/lib and
  8660. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8661. # libtool to hard-code these into programs
  8662. ;;
  8663. cygwin* | mingw* | pw32* | cegcc*)
  8664. version_type=windows
  8665. shrext_cmds=.dll
  8666. need_version=no
  8667. need_lib_prefix=no
  8668. case $GCC,$cc_basename in
  8669. yes,*)
  8670. # gcc
  8671. library_names_spec='$libname.dll.a'
  8672. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8673. postinstall_cmds='base_file=`basename \$file`~
  8674. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  8675. dldir=$destdir/`dirname \$dlpath`~
  8676. test -d \$dldir || mkdir -p \$dldir~
  8677. $install_prog $dir/$dlname \$dldir/$dlname~
  8678. chmod a+x \$dldir/$dlname~
  8679. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8680. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8681. fi'
  8682. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8683. dlpath=$dir/\$dldll~
  8684. $RM \$dlpath'
  8685. shlibpath_overrides_runpath=yes
  8686. case $host_os in
  8687. cygwin*)
  8688. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8689. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8690. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8691. ;;
  8692. mingw* | cegcc*)
  8693. # MinGW DLLs use traditional 'lib' prefix
  8694. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8695. ;;
  8696. pw32*)
  8697. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8698. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8699. ;;
  8700. esac
  8701. dynamic_linker='Win32 ld.exe'
  8702. ;;
  8703. *,cl*)
  8704. # Native MSVC
  8705. libname_spec='$name'
  8706. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8707. library_names_spec='$libname.dll.lib'
  8708. case $build_os in
  8709. mingw*)
  8710. sys_lib_search_path_spec=
  8711. lt_save_ifs=$IFS
  8712. IFS=';'
  8713. for lt_path in $LIB
  8714. do
  8715. IFS=$lt_save_ifs
  8716. # Let DOS variable expansion print the short 8.3 style file name.
  8717. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8718. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8719. done
  8720. IFS=$lt_save_ifs
  8721. # Convert to MSYS style.
  8722. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8723. ;;
  8724. cygwin*)
  8725. # Convert to unix form, then to dos form, then back to unix form
  8726. # but this time dos style (no spaces!) so that the unix form looks
  8727. # like /cygdrive/c/PROGRA~1:/cygdr...
  8728. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8729. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8730. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8731. ;;
  8732. *)
  8733. sys_lib_search_path_spec=$LIB
  8734. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8735. # It is most probably a Windows format PATH.
  8736. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8737. else
  8738. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8739. fi
  8740. # FIXME: find the short name or the path components, as spaces are
  8741. # common. (e.g. "Program Files" -> "PROGRA~1")
  8742. ;;
  8743. esac
  8744. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8745. postinstall_cmds='base_file=`basename \$file`~
  8746. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  8747. dldir=$destdir/`dirname \$dlpath`~
  8748. test -d \$dldir || mkdir -p \$dldir~
  8749. $install_prog $dir/$dlname \$dldir/$dlname'
  8750. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8751. dlpath=$dir/\$dldll~
  8752. $RM \$dlpath'
  8753. shlibpath_overrides_runpath=yes
  8754. dynamic_linker='Win32 link.exe'
  8755. ;;
  8756. *)
  8757. # Assume MSVC wrapper
  8758. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  8759. dynamic_linker='Win32 ld.exe'
  8760. ;;
  8761. esac
  8762. # FIXME: first we should search . and the directory the executable is in
  8763. shlibpath_var=PATH
  8764. ;;
  8765. darwin* | rhapsody*)
  8766. dynamic_linker="$host_os dyld"
  8767. version_type=darwin
  8768. need_lib_prefix=no
  8769. need_version=no
  8770. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  8771. soname_spec='$libname$release$major$shared_ext'
  8772. shlibpath_overrides_runpath=yes
  8773. shlibpath_var=DYLD_LIBRARY_PATH
  8774. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8775. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8776. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8777. ;;
  8778. dgux*)
  8779. version_type=linux # correct to gnu/linux during the next big refactor
  8780. need_lib_prefix=no
  8781. need_version=no
  8782. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8783. soname_spec='$libname$release$shared_ext$major'
  8784. shlibpath_var=LD_LIBRARY_PATH
  8785. ;;
  8786. freebsd* | dragonfly*)
  8787. # DragonFly does not have aout. When/if they implement a new
  8788. # versioning mechanism, adjust this.
  8789. if test -x /usr/bin/objformat; then
  8790. objformat=`/usr/bin/objformat`
  8791. else
  8792. case $host_os in
  8793. freebsd[23].*) objformat=aout ;;
  8794. *) objformat=elf ;;
  8795. esac
  8796. fi
  8797. version_type=freebsd-$objformat
  8798. case $version_type in
  8799. freebsd-elf*)
  8800. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8801. soname_spec='$libname$release$shared_ext$major'
  8802. need_version=no
  8803. need_lib_prefix=no
  8804. ;;
  8805. freebsd-*)
  8806. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  8807. need_version=yes
  8808. ;;
  8809. esac
  8810. shlibpath_var=LD_LIBRARY_PATH
  8811. case $host_os in
  8812. freebsd2.*)
  8813. shlibpath_overrides_runpath=yes
  8814. ;;
  8815. freebsd3.[01]* | freebsdelf3.[01]*)
  8816. shlibpath_overrides_runpath=yes
  8817. hardcode_into_libs=yes
  8818. ;;
  8819. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8820. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8821. shlibpath_overrides_runpath=no
  8822. hardcode_into_libs=yes
  8823. ;;
  8824. *) # from 4.6 on, and DragonFly
  8825. shlibpath_overrides_runpath=yes
  8826. hardcode_into_libs=yes
  8827. ;;
  8828. esac
  8829. ;;
  8830. haiku*)
  8831. version_type=linux # correct to gnu/linux during the next big refactor
  8832. need_lib_prefix=no
  8833. need_version=no
  8834. dynamic_linker="$host_os runtime_loader"
  8835. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8836. soname_spec='$libname$release$shared_ext$major'
  8837. shlibpath_var=LIBRARY_PATH
  8838. shlibpath_overrides_runpath=no
  8839. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8840. hardcode_into_libs=yes
  8841. ;;
  8842. hpux9* | hpux10* | hpux11*)
  8843. # Give a soname corresponding to the major version so that dld.sl refuses to
  8844. # link against other versions.
  8845. version_type=sunos
  8846. need_lib_prefix=no
  8847. need_version=no
  8848. case $host_cpu in
  8849. ia64*)
  8850. shrext_cmds='.so'
  8851. hardcode_into_libs=yes
  8852. dynamic_linker="$host_os dld.so"
  8853. shlibpath_var=LD_LIBRARY_PATH
  8854. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8855. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8856. soname_spec='$libname$release$shared_ext$major'
  8857. if test 32 = "$HPUX_IA64_MODE"; then
  8858. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8859. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  8860. else
  8861. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8862. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  8863. fi
  8864. ;;
  8865. hppa*64*)
  8866. shrext_cmds='.sl'
  8867. hardcode_into_libs=yes
  8868. dynamic_linker="$host_os dld.sl"
  8869. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8870. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8871. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8872. soname_spec='$libname$release$shared_ext$major'
  8873. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8874. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8875. ;;
  8876. *)
  8877. shrext_cmds='.sl'
  8878. dynamic_linker="$host_os dld.sl"
  8879. shlibpath_var=SHLIB_PATH
  8880. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8881. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8882. soname_spec='$libname$release$shared_ext$major'
  8883. ;;
  8884. esac
  8885. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8886. postinstall_cmds='chmod 555 $lib'
  8887. # or fails outright, so override atomically:
  8888. install_override_mode=555
  8889. ;;
  8890. interix[3-9]*)
  8891. version_type=linux # correct to gnu/linux during the next big refactor
  8892. need_lib_prefix=no
  8893. need_version=no
  8894. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8895. soname_spec='$libname$release$shared_ext$major'
  8896. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8897. shlibpath_var=LD_LIBRARY_PATH
  8898. shlibpath_overrides_runpath=no
  8899. hardcode_into_libs=yes
  8900. ;;
  8901. irix5* | irix6* | nonstopux*)
  8902. case $host_os in
  8903. nonstopux*) version_type=nonstopux ;;
  8904. *)
  8905. if test yes = "$lt_cv_prog_gnu_ld"; then
  8906. version_type=linux # correct to gnu/linux during the next big refactor
  8907. else
  8908. version_type=irix
  8909. fi ;;
  8910. esac
  8911. need_lib_prefix=no
  8912. need_version=no
  8913. soname_spec='$libname$release$shared_ext$major'
  8914. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  8915. case $host_os in
  8916. irix5* | nonstopux*)
  8917. libsuff= shlibsuff=
  8918. ;;
  8919. *)
  8920. case $LD in # libtool.m4 will add one of these switches to LD
  8921. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8922. libsuff= shlibsuff= libmagic=32-bit;;
  8923. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8924. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8925. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8926. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8927. *) libsuff= shlibsuff= libmagic=never-match;;
  8928. esac
  8929. ;;
  8930. esac
  8931. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8932. shlibpath_overrides_runpath=no
  8933. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  8934. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  8935. hardcode_into_libs=yes
  8936. ;;
  8937. # No shared lib support for Linux oldld, aout, or coff.
  8938. linux*oldld* | linux*aout* | linux*coff*)
  8939. dynamic_linker=no
  8940. ;;
  8941. linux*android*)
  8942. version_type=none # Android doesn't support versioned libraries.
  8943. need_lib_prefix=no
  8944. need_version=no
  8945. library_names_spec='$libname$release$shared_ext'
  8946. soname_spec='$libname$release$shared_ext'
  8947. finish_cmds=
  8948. shlibpath_var=LD_LIBRARY_PATH
  8949. shlibpath_overrides_runpath=yes
  8950. # This implies no fast_install, which is unacceptable.
  8951. # Some rework will be needed to allow for fast_install
  8952. # before this can be enabled.
  8953. hardcode_into_libs=yes
  8954. dynamic_linker='Android linker'
  8955. # Don't embed -rpath directories since the linker doesn't support them.
  8956. hardcode_libdir_flag_spec='-L$libdir'
  8957. ;;
  8958. # This must be glibc/ELF.
  8959. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8960. version_type=linux # correct to gnu/linux during the next big refactor
  8961. need_lib_prefix=no
  8962. need_version=no
  8963. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8964. soname_spec='$libname$release$shared_ext$major'
  8965. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8966. shlibpath_var=LD_LIBRARY_PATH
  8967. shlibpath_overrides_runpath=no
  8968. # Some binutils ld are patched to set DT_RUNPATH
  8969. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8970. $as_echo_n "(cached) " >&6
  8971. else
  8972. lt_cv_shlibpath_overrides_runpath=no
  8973. save_LDFLAGS=$LDFLAGS
  8974. save_libdir=$libdir
  8975. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8976. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8978. /* end confdefs.h. */
  8979. int
  8980. main ()
  8981. {
  8982. ;
  8983. return 0;
  8984. }
  8985. _ACEOF
  8986. if ac_fn_c_try_link "$LINENO"; then :
  8987. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8988. lt_cv_shlibpath_overrides_runpath=yes
  8989. fi
  8990. fi
  8991. rm -f core conftest.err conftest.$ac_objext \
  8992. conftest$ac_exeext conftest.$ac_ext
  8993. LDFLAGS=$save_LDFLAGS
  8994. libdir=$save_libdir
  8995. fi
  8996. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8997. # This implies no fast_install, which is unacceptable.
  8998. # Some rework will be needed to allow for fast_install
  8999. # before this can be enabled.
  9000. hardcode_into_libs=yes
  9001. # Ideally, we could use ldconfig to report *all* directores which are
  9002. # searched for libraries, however this is still not possible. Aside from not
  9003. # being certain /sbin/ldconfig is available, command
  9004. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9005. # even though it is searched at run-time. Try to do the best guess by
  9006. # appending ld.so.conf contents (and includes) to the search path.
  9007. if test -f /etc/ld.so.conf; then
  9008. 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' ' '`
  9009. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9010. fi
  9011. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9012. # powerpc, because MkLinux only supported shared libraries with the
  9013. # GNU dynamic linker. Since this was broken with cross compilers,
  9014. # most powerpc-linux boxes support dynamic linking these days and
  9015. # people can always --disable-shared, the test was removed, and we
  9016. # assume the GNU/Linux dynamic linker is in use.
  9017. dynamic_linker='GNU/Linux ld.so'
  9018. ;;
  9019. netbsdelf*-gnu)
  9020. version_type=linux
  9021. need_lib_prefix=no
  9022. need_version=no
  9023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9024. soname_spec='${libname}${release}${shared_ext}$major'
  9025. shlibpath_var=LD_LIBRARY_PATH
  9026. shlibpath_overrides_runpath=no
  9027. hardcode_into_libs=yes
  9028. dynamic_linker='NetBSD ld.elf_so'
  9029. ;;
  9030. netbsd*)
  9031. version_type=sunos
  9032. need_lib_prefix=no
  9033. need_version=no
  9034. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9035. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9036. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9037. dynamic_linker='NetBSD (a.out) ld.so'
  9038. else
  9039. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9040. soname_spec='$libname$release$shared_ext$major'
  9041. dynamic_linker='NetBSD ld.elf_so'
  9042. fi
  9043. shlibpath_var=LD_LIBRARY_PATH
  9044. shlibpath_overrides_runpath=yes
  9045. hardcode_into_libs=yes
  9046. ;;
  9047. newsos6)
  9048. version_type=linux # correct to gnu/linux during the next big refactor
  9049. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9050. shlibpath_var=LD_LIBRARY_PATH
  9051. shlibpath_overrides_runpath=yes
  9052. ;;
  9053. *nto* | *qnx*)
  9054. version_type=qnx
  9055. need_lib_prefix=no
  9056. need_version=no
  9057. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9058. soname_spec='$libname$release$shared_ext$major'
  9059. shlibpath_var=LD_LIBRARY_PATH
  9060. shlibpath_overrides_runpath=no
  9061. hardcode_into_libs=yes
  9062. dynamic_linker='ldqnx.so'
  9063. ;;
  9064. openbsd* | bitrig*)
  9065. version_type=sunos
  9066. sys_lib_dlsearch_path_spec=/usr/lib
  9067. need_lib_prefix=no
  9068. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9069. need_version=no
  9070. else
  9071. need_version=yes
  9072. fi
  9073. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9074. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9075. shlibpath_var=LD_LIBRARY_PATH
  9076. shlibpath_overrides_runpath=yes
  9077. ;;
  9078. os2*)
  9079. libname_spec='$name'
  9080. version_type=windows
  9081. shrext_cmds=.dll
  9082. need_version=no
  9083. need_lib_prefix=no
  9084. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9085. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9086. v=$($ECHO $release$versuffix | tr -d .-);
  9087. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9088. $ECHO $n$v`$shared_ext'
  9089. library_names_spec='${libname}_dll.$libext'
  9090. dynamic_linker='OS/2 ld.exe'
  9091. shlibpath_var=BEGINLIBPATH
  9092. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9093. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9094. postinstall_cmds='base_file=`basename \$file`~
  9095. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9096. dldir=$destdir/`dirname \$dlpath`~
  9097. test -d \$dldir || mkdir -p \$dldir~
  9098. $install_prog $dir/$dlname \$dldir/$dlname~
  9099. chmod a+x \$dldir/$dlname~
  9100. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9101. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9102. fi'
  9103. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9104. dlpath=$dir/\$dldll~
  9105. $RM \$dlpath'
  9106. ;;
  9107. osf3* | osf4* | osf5*)
  9108. version_type=osf
  9109. need_lib_prefix=no
  9110. need_version=no
  9111. soname_spec='$libname$release$shared_ext$major'
  9112. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9113. shlibpath_var=LD_LIBRARY_PATH
  9114. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9115. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9116. ;;
  9117. rdos*)
  9118. dynamic_linker=no
  9119. ;;
  9120. solaris*)
  9121. version_type=linux # correct to gnu/linux during the next big refactor
  9122. need_lib_prefix=no
  9123. need_version=no
  9124. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9125. soname_spec='$libname$release$shared_ext$major'
  9126. shlibpath_var=LD_LIBRARY_PATH
  9127. shlibpath_overrides_runpath=yes
  9128. hardcode_into_libs=yes
  9129. # ldd complains unless libraries are executable
  9130. postinstall_cmds='chmod +x $lib'
  9131. ;;
  9132. sunos4*)
  9133. version_type=sunos
  9134. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9135. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9136. shlibpath_var=LD_LIBRARY_PATH
  9137. shlibpath_overrides_runpath=yes
  9138. if test yes = "$with_gnu_ld"; then
  9139. need_lib_prefix=no
  9140. fi
  9141. need_version=yes
  9142. ;;
  9143. sysv4 | sysv4.3*)
  9144. version_type=linux # correct to gnu/linux during the next big refactor
  9145. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9146. soname_spec='$libname$release$shared_ext$major'
  9147. shlibpath_var=LD_LIBRARY_PATH
  9148. case $host_vendor in
  9149. sni)
  9150. shlibpath_overrides_runpath=no
  9151. need_lib_prefix=no
  9152. runpath_var=LD_RUN_PATH
  9153. ;;
  9154. siemens)
  9155. need_lib_prefix=no
  9156. ;;
  9157. motorola)
  9158. need_lib_prefix=no
  9159. need_version=no
  9160. shlibpath_overrides_runpath=no
  9161. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9162. ;;
  9163. esac
  9164. ;;
  9165. sysv4*MP*)
  9166. if test -d /usr/nec; then
  9167. version_type=linux # correct to gnu/linux during the next big refactor
  9168. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9169. soname_spec='$libname$shared_ext.$major'
  9170. shlibpath_var=LD_LIBRARY_PATH
  9171. fi
  9172. ;;
  9173. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9174. version_type=sco
  9175. need_lib_prefix=no
  9176. need_version=no
  9177. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9178. soname_spec='$libname$release$shared_ext$major'
  9179. shlibpath_var=LD_LIBRARY_PATH
  9180. shlibpath_overrides_runpath=yes
  9181. hardcode_into_libs=yes
  9182. if test yes = "$with_gnu_ld"; then
  9183. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9184. else
  9185. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9186. case $host_os in
  9187. sco3.2v5*)
  9188. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9189. ;;
  9190. esac
  9191. fi
  9192. sys_lib_dlsearch_path_spec='/usr/lib'
  9193. ;;
  9194. tpf*)
  9195. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9196. version_type=linux # correct to gnu/linux during the next big refactor
  9197. need_lib_prefix=no
  9198. need_version=no
  9199. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9200. shlibpath_var=LD_LIBRARY_PATH
  9201. shlibpath_overrides_runpath=no
  9202. hardcode_into_libs=yes
  9203. ;;
  9204. uts4*)
  9205. version_type=linux # correct to gnu/linux during the next big refactor
  9206. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9207. soname_spec='$libname$release$shared_ext$major'
  9208. shlibpath_var=LD_LIBRARY_PATH
  9209. ;;
  9210. *)
  9211. dynamic_linker=no
  9212. ;;
  9213. esac
  9214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9215. $as_echo "$dynamic_linker" >&6; }
  9216. test no = "$dynamic_linker" && can_build_shared=no
  9217. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9218. if test yes = "$GCC"; then
  9219. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9220. fi
  9221. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9222. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9223. fi
  9224. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9225. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9226. fi
  9227. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9228. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9229. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9230. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9231. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9232. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9234. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9235. hardcode_action=
  9236. if test -n "$hardcode_libdir_flag_spec" ||
  9237. test -n "$runpath_var" ||
  9238. test yes = "$hardcode_automatic"; then
  9239. # We can hardcode non-existent directories.
  9240. if test no != "$hardcode_direct" &&
  9241. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9242. # have to relink, otherwise we might link with an installed library
  9243. # when we should be linking with a yet-to-be-installed one
  9244. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9245. test no != "$hardcode_minus_L"; then
  9246. # Linking always hardcodes the temporary library directory.
  9247. hardcode_action=relink
  9248. else
  9249. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9250. hardcode_action=immediate
  9251. fi
  9252. else
  9253. # We cannot hardcode anything, or else we can only hardcode existing
  9254. # directories.
  9255. hardcode_action=unsupported
  9256. fi
  9257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9258. $as_echo "$hardcode_action" >&6; }
  9259. if test relink = "$hardcode_action" ||
  9260. test yes = "$inherit_rpath"; then
  9261. # Fast installation is not supported
  9262. enable_fast_install=no
  9263. elif test yes = "$shlibpath_overrides_runpath" ||
  9264. test no = "$enable_shared"; then
  9265. # Fast installation is not necessary
  9266. enable_fast_install=needless
  9267. fi
  9268. if test yes != "$enable_dlopen"; then
  9269. enable_dlopen=unknown
  9270. enable_dlopen_self=unknown
  9271. enable_dlopen_self_static=unknown
  9272. else
  9273. lt_cv_dlopen=no
  9274. lt_cv_dlopen_libs=
  9275. case $host_os in
  9276. beos*)
  9277. lt_cv_dlopen=load_add_on
  9278. lt_cv_dlopen_libs=
  9279. lt_cv_dlopen_self=yes
  9280. ;;
  9281. mingw* | pw32* | cegcc*)
  9282. lt_cv_dlopen=LoadLibrary
  9283. lt_cv_dlopen_libs=
  9284. ;;
  9285. cygwin*)
  9286. lt_cv_dlopen=dlopen
  9287. lt_cv_dlopen_libs=
  9288. ;;
  9289. darwin*)
  9290. # if libdl is installed we need to link against it
  9291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9292. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9293. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9294. $as_echo_n "(cached) " >&6
  9295. else
  9296. ac_check_lib_save_LIBS=$LIBS
  9297. LIBS="-ldl $LIBS"
  9298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9299. /* end confdefs.h. */
  9300. /* Override any GCC internal prototype to avoid an error.
  9301. Use char because int might match the return type of a GCC
  9302. builtin and then its argument prototype would still apply. */
  9303. #ifdef __cplusplus
  9304. extern "C"
  9305. #endif
  9306. char dlopen ();
  9307. int
  9308. main ()
  9309. {
  9310. return dlopen ();
  9311. ;
  9312. return 0;
  9313. }
  9314. _ACEOF
  9315. if ac_fn_c_try_link "$LINENO"; then :
  9316. ac_cv_lib_dl_dlopen=yes
  9317. else
  9318. ac_cv_lib_dl_dlopen=no
  9319. fi
  9320. rm -f core conftest.err conftest.$ac_objext \
  9321. conftest$ac_exeext conftest.$ac_ext
  9322. LIBS=$ac_check_lib_save_LIBS
  9323. fi
  9324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9325. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9326. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9327. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9328. else
  9329. lt_cv_dlopen=dyld
  9330. lt_cv_dlopen_libs=
  9331. lt_cv_dlopen_self=yes
  9332. fi
  9333. ;;
  9334. tpf*)
  9335. # Don't try to run any link tests for TPF. We know it's impossible
  9336. # because TPF is a cross-compiler, and we know how we open DSOs.
  9337. lt_cv_dlopen=dlopen
  9338. lt_cv_dlopen_libs=
  9339. lt_cv_dlopen_self=no
  9340. ;;
  9341. *)
  9342. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9343. if test "x$ac_cv_func_shl_load" = xyes; then :
  9344. lt_cv_dlopen=shl_load
  9345. else
  9346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9347. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9348. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9349. $as_echo_n "(cached) " >&6
  9350. else
  9351. ac_check_lib_save_LIBS=$LIBS
  9352. LIBS="-ldld $LIBS"
  9353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9354. /* end confdefs.h. */
  9355. /* Override any GCC internal prototype to avoid an error.
  9356. Use char because int might match the return type of a GCC
  9357. builtin and then its argument prototype would still apply. */
  9358. #ifdef __cplusplus
  9359. extern "C"
  9360. #endif
  9361. char shl_load ();
  9362. int
  9363. main ()
  9364. {
  9365. return shl_load ();
  9366. ;
  9367. return 0;
  9368. }
  9369. _ACEOF
  9370. if ac_fn_c_try_link "$LINENO"; then :
  9371. ac_cv_lib_dld_shl_load=yes
  9372. else
  9373. ac_cv_lib_dld_shl_load=no
  9374. fi
  9375. rm -f core conftest.err conftest.$ac_objext \
  9376. conftest$ac_exeext conftest.$ac_ext
  9377. LIBS=$ac_check_lib_save_LIBS
  9378. fi
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9380. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9381. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9382. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9383. else
  9384. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9385. if test "x$ac_cv_func_dlopen" = xyes; then :
  9386. lt_cv_dlopen=dlopen
  9387. else
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9389. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9390. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9391. $as_echo_n "(cached) " >&6
  9392. else
  9393. ac_check_lib_save_LIBS=$LIBS
  9394. LIBS="-ldl $LIBS"
  9395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9396. /* end confdefs.h. */
  9397. /* Override any GCC internal prototype to avoid an error.
  9398. Use char because int might match the return type of a GCC
  9399. builtin and then its argument prototype would still apply. */
  9400. #ifdef __cplusplus
  9401. extern "C"
  9402. #endif
  9403. char dlopen ();
  9404. int
  9405. main ()
  9406. {
  9407. return dlopen ();
  9408. ;
  9409. return 0;
  9410. }
  9411. _ACEOF
  9412. if ac_fn_c_try_link "$LINENO"; then :
  9413. ac_cv_lib_dl_dlopen=yes
  9414. else
  9415. ac_cv_lib_dl_dlopen=no
  9416. fi
  9417. rm -f core conftest.err conftest.$ac_objext \
  9418. conftest$ac_exeext conftest.$ac_ext
  9419. LIBS=$ac_check_lib_save_LIBS
  9420. fi
  9421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9422. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9423. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9424. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9425. else
  9426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9427. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9428. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9429. $as_echo_n "(cached) " >&6
  9430. else
  9431. ac_check_lib_save_LIBS=$LIBS
  9432. LIBS="-lsvld $LIBS"
  9433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9434. /* end confdefs.h. */
  9435. /* Override any GCC internal prototype to avoid an error.
  9436. Use char because int might match the return type of a GCC
  9437. builtin and then its argument prototype would still apply. */
  9438. #ifdef __cplusplus
  9439. extern "C"
  9440. #endif
  9441. char dlopen ();
  9442. int
  9443. main ()
  9444. {
  9445. return dlopen ();
  9446. ;
  9447. return 0;
  9448. }
  9449. _ACEOF
  9450. if ac_fn_c_try_link "$LINENO"; then :
  9451. ac_cv_lib_svld_dlopen=yes
  9452. else
  9453. ac_cv_lib_svld_dlopen=no
  9454. fi
  9455. rm -f core conftest.err conftest.$ac_objext \
  9456. conftest$ac_exeext conftest.$ac_ext
  9457. LIBS=$ac_check_lib_save_LIBS
  9458. fi
  9459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9460. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9461. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9462. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  9463. else
  9464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9465. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9466. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9467. $as_echo_n "(cached) " >&6
  9468. else
  9469. ac_check_lib_save_LIBS=$LIBS
  9470. LIBS="-ldld $LIBS"
  9471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9472. /* end confdefs.h. */
  9473. /* Override any GCC internal prototype to avoid an error.
  9474. Use char because int might match the return type of a GCC
  9475. builtin and then its argument prototype would still apply. */
  9476. #ifdef __cplusplus
  9477. extern "C"
  9478. #endif
  9479. char dld_link ();
  9480. int
  9481. main ()
  9482. {
  9483. return dld_link ();
  9484. ;
  9485. return 0;
  9486. }
  9487. _ACEOF
  9488. if ac_fn_c_try_link "$LINENO"; then :
  9489. ac_cv_lib_dld_dld_link=yes
  9490. else
  9491. ac_cv_lib_dld_dld_link=no
  9492. fi
  9493. rm -f core conftest.err conftest.$ac_objext \
  9494. conftest$ac_exeext conftest.$ac_ext
  9495. LIBS=$ac_check_lib_save_LIBS
  9496. fi
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9498. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9499. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9500. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  9501. fi
  9502. fi
  9503. fi
  9504. fi
  9505. fi
  9506. fi
  9507. ;;
  9508. esac
  9509. if test no = "$lt_cv_dlopen"; then
  9510. enable_dlopen=no
  9511. else
  9512. enable_dlopen=yes
  9513. fi
  9514. case $lt_cv_dlopen in
  9515. dlopen)
  9516. save_CPPFLAGS=$CPPFLAGS
  9517. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9518. save_LDFLAGS=$LDFLAGS
  9519. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9520. save_LIBS=$LIBS
  9521. LIBS="$lt_cv_dlopen_libs $LIBS"
  9522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9523. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9524. if ${lt_cv_dlopen_self+:} false; then :
  9525. $as_echo_n "(cached) " >&6
  9526. else
  9527. if test yes = "$cross_compiling"; then :
  9528. lt_cv_dlopen_self=cross
  9529. else
  9530. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9531. lt_status=$lt_dlunknown
  9532. cat > conftest.$ac_ext <<_LT_EOF
  9533. #line $LINENO "configure"
  9534. #include "confdefs.h"
  9535. #if HAVE_DLFCN_H
  9536. #include <dlfcn.h>
  9537. #endif
  9538. #include <stdio.h>
  9539. #ifdef RTLD_GLOBAL
  9540. # define LT_DLGLOBAL RTLD_GLOBAL
  9541. #else
  9542. # ifdef DL_GLOBAL
  9543. # define LT_DLGLOBAL DL_GLOBAL
  9544. # else
  9545. # define LT_DLGLOBAL 0
  9546. # endif
  9547. #endif
  9548. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9549. find out it does not work in some platform. */
  9550. #ifndef LT_DLLAZY_OR_NOW
  9551. # ifdef RTLD_LAZY
  9552. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9553. # else
  9554. # ifdef DL_LAZY
  9555. # define LT_DLLAZY_OR_NOW DL_LAZY
  9556. # else
  9557. # ifdef RTLD_NOW
  9558. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9559. # else
  9560. # ifdef DL_NOW
  9561. # define LT_DLLAZY_OR_NOW DL_NOW
  9562. # else
  9563. # define LT_DLLAZY_OR_NOW 0
  9564. # endif
  9565. # endif
  9566. # endif
  9567. # endif
  9568. #endif
  9569. /* When -fvisibility=hidden is used, assume the code has been annotated
  9570. correspondingly for the symbols needed. */
  9571. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9572. int fnord () __attribute__((visibility("default")));
  9573. #endif
  9574. int fnord () { return 42; }
  9575. int main ()
  9576. {
  9577. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9578. int status = $lt_dlunknown;
  9579. if (self)
  9580. {
  9581. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9582. else
  9583. {
  9584. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9585. else puts (dlerror ());
  9586. }
  9587. /* dlclose (self); */
  9588. }
  9589. else
  9590. puts (dlerror ());
  9591. return status;
  9592. }
  9593. _LT_EOF
  9594. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9595. (eval $ac_link) 2>&5
  9596. ac_status=$?
  9597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9598. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  9599. (./conftest; exit; ) >&5 2>/dev/null
  9600. lt_status=$?
  9601. case x$lt_status in
  9602. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9603. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9604. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9605. esac
  9606. else :
  9607. # compilation failed
  9608. lt_cv_dlopen_self=no
  9609. fi
  9610. fi
  9611. rm -fr conftest*
  9612. fi
  9613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9614. $as_echo "$lt_cv_dlopen_self" >&6; }
  9615. if test yes = "$lt_cv_dlopen_self"; then
  9616. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9618. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9619. if ${lt_cv_dlopen_self_static+:} false; then :
  9620. $as_echo_n "(cached) " >&6
  9621. else
  9622. if test yes = "$cross_compiling"; then :
  9623. lt_cv_dlopen_self_static=cross
  9624. else
  9625. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9626. lt_status=$lt_dlunknown
  9627. cat > conftest.$ac_ext <<_LT_EOF
  9628. #line $LINENO "configure"
  9629. #include "confdefs.h"
  9630. #if HAVE_DLFCN_H
  9631. #include <dlfcn.h>
  9632. #endif
  9633. #include <stdio.h>
  9634. #ifdef RTLD_GLOBAL
  9635. # define LT_DLGLOBAL RTLD_GLOBAL
  9636. #else
  9637. # ifdef DL_GLOBAL
  9638. # define LT_DLGLOBAL DL_GLOBAL
  9639. # else
  9640. # define LT_DLGLOBAL 0
  9641. # endif
  9642. #endif
  9643. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9644. find out it does not work in some platform. */
  9645. #ifndef LT_DLLAZY_OR_NOW
  9646. # ifdef RTLD_LAZY
  9647. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9648. # else
  9649. # ifdef DL_LAZY
  9650. # define LT_DLLAZY_OR_NOW DL_LAZY
  9651. # else
  9652. # ifdef RTLD_NOW
  9653. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9654. # else
  9655. # ifdef DL_NOW
  9656. # define LT_DLLAZY_OR_NOW DL_NOW
  9657. # else
  9658. # define LT_DLLAZY_OR_NOW 0
  9659. # endif
  9660. # endif
  9661. # endif
  9662. # endif
  9663. #endif
  9664. /* When -fvisibility=hidden is used, assume the code has been annotated
  9665. correspondingly for the symbols needed. */
  9666. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9667. int fnord () __attribute__((visibility("default")));
  9668. #endif
  9669. int fnord () { return 42; }
  9670. int main ()
  9671. {
  9672. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9673. int status = $lt_dlunknown;
  9674. if (self)
  9675. {
  9676. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9677. else
  9678. {
  9679. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9680. else puts (dlerror ());
  9681. }
  9682. /* dlclose (self); */
  9683. }
  9684. else
  9685. puts (dlerror ());
  9686. return status;
  9687. }
  9688. _LT_EOF
  9689. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9690. (eval $ac_link) 2>&5
  9691. ac_status=$?
  9692. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9693. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  9694. (./conftest; exit; ) >&5 2>/dev/null
  9695. lt_status=$?
  9696. case x$lt_status in
  9697. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9698. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9699. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9700. esac
  9701. else :
  9702. # compilation failed
  9703. lt_cv_dlopen_self_static=no
  9704. fi
  9705. fi
  9706. rm -fr conftest*
  9707. fi
  9708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9709. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9710. fi
  9711. CPPFLAGS=$save_CPPFLAGS
  9712. LDFLAGS=$save_LDFLAGS
  9713. LIBS=$save_LIBS
  9714. ;;
  9715. esac
  9716. case $lt_cv_dlopen_self in
  9717. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9718. *) enable_dlopen_self=unknown ;;
  9719. esac
  9720. case $lt_cv_dlopen_self_static in
  9721. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9722. *) enable_dlopen_self_static=unknown ;;
  9723. esac
  9724. fi
  9725. striplib=
  9726. old_striplib=
  9727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9728. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9729. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9730. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9731. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9733. $as_echo "yes" >&6; }
  9734. else
  9735. # FIXME - insert some real tests, host_os isn't really good enough
  9736. case $host_os in
  9737. darwin*)
  9738. if test -n "$STRIP"; then
  9739. striplib="$STRIP -x"
  9740. old_striplib="$STRIP -S"
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9742. $as_echo "yes" >&6; }
  9743. else
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9745. $as_echo "no" >&6; }
  9746. fi
  9747. ;;
  9748. *)
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9750. $as_echo "no" >&6; }
  9751. ;;
  9752. esac
  9753. fi
  9754. # Report what library types will actually be built
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9756. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9758. $as_echo "$can_build_shared" >&6; }
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9760. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9761. test no = "$can_build_shared" && enable_shared=no
  9762. # On AIX, shared libraries and static libraries use the same namespace, and
  9763. # are all built from PIC.
  9764. case $host_os in
  9765. aix3*)
  9766. test yes = "$enable_shared" && enable_static=no
  9767. if test -n "$RANLIB"; then
  9768. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9769. postinstall_cmds='$RANLIB $lib'
  9770. fi
  9771. ;;
  9772. aix[4-9]*)
  9773. if test ia64 != "$host_cpu"; then
  9774. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  9775. yes,aix,yes) ;; # shared object as lib.so file only
  9776. yes,svr4,*) ;; # shared object as lib.so archive member only
  9777. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  9778. esac
  9779. fi
  9780. ;;
  9781. esac
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9783. $as_echo "$enable_shared" >&6; }
  9784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9785. $as_echo_n "checking whether to build static libraries... " >&6; }
  9786. # Make sure either enable_shared or enable_static is yes.
  9787. test yes = "$enable_shared" || enable_static=yes
  9788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9789. $as_echo "$enable_static" >&6; }
  9790. fi
  9791. ac_ext=c
  9792. ac_cpp='$CPP $CPPFLAGS'
  9793. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9794. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9795. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9796. CC=$lt_save_CC
  9797. ac_config_commands="$ac_config_commands libtool"
  9798. # Only expand once:
  9799. am__api_version='1.16'
  9800. # Find a good install program. We prefer a C program (faster),
  9801. # so one script is as good as another. But avoid the broken or
  9802. # incompatible versions:
  9803. # SysV /etc/install, /usr/sbin/install
  9804. # SunOS /usr/etc/install
  9805. # IRIX /sbin/install
  9806. # AIX /bin/install
  9807. # AmigaOS /C/install, which installs bootblocks on floppy discs
  9808. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  9809. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  9810. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  9811. # OS/2's system install, which has a completely different semantic
  9812. # ./install, which can be erroneously created by make from ./install.sh.
  9813. # Reject install programs that cannot install multiple files.
  9814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  9815. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  9816. if test -z "$INSTALL"; then
  9817. if ${ac_cv_path_install+:} false; then :
  9818. $as_echo_n "(cached) " >&6
  9819. else
  9820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9821. for as_dir in $PATH
  9822. do
  9823. IFS=$as_save_IFS
  9824. test -z "$as_dir" && as_dir=.
  9825. # Account for people who put trailing slashes in PATH elements.
  9826. case $as_dir/ in #((
  9827. ./ | .// | /[cC]/* | \
  9828. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  9829. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  9830. /usr/ucb/* ) ;;
  9831. *)
  9832. # OSF1 and SCO ODT 3.0 have their own names for install.
  9833. # Don't use installbsd from OSF since it installs stuff as root
  9834. # by default.
  9835. for ac_prog in ginstall scoinst install; do
  9836. for ac_exec_ext in '' $ac_executable_extensions; do
  9837. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  9838. if test $ac_prog = install &&
  9839. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9840. # AIX install. It has an incompatible calling convention.
  9841. :
  9842. elif test $ac_prog = install &&
  9843. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9844. # program-specific install script used by HP pwplus--don't use.
  9845. :
  9846. else
  9847. rm -rf conftest.one conftest.two conftest.dir
  9848. echo one > conftest.one
  9849. echo two > conftest.two
  9850. mkdir conftest.dir
  9851. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  9852. test -s conftest.one && test -s conftest.two &&
  9853. test -s conftest.dir/conftest.one &&
  9854. test -s conftest.dir/conftest.two
  9855. then
  9856. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  9857. break 3
  9858. fi
  9859. fi
  9860. fi
  9861. done
  9862. done
  9863. ;;
  9864. esac
  9865. done
  9866. IFS=$as_save_IFS
  9867. rm -rf conftest.one conftest.two conftest.dir
  9868. fi
  9869. if test "${ac_cv_path_install+set}" = set; then
  9870. INSTALL=$ac_cv_path_install
  9871. else
  9872. # As a last resort, use the slow shell script. Don't cache a
  9873. # value for INSTALL within a source directory, because that will
  9874. # break other packages using the cache if that directory is
  9875. # removed, or if the value is a relative name.
  9876. INSTALL=$ac_install_sh
  9877. fi
  9878. fi
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  9880. $as_echo "$INSTALL" >&6; }
  9881. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  9882. # It thinks the first close brace ends the variable substitution.
  9883. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  9884. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  9885. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  9887. $as_echo_n "checking whether build environment is sane... " >&6; }
  9888. # Reject unsafe characters in $srcdir or the absolute working directory
  9889. # name. Accept space and tab only in the latter.
  9890. am_lf='
  9891. '
  9892. case `pwd` in
  9893. *[\\\"\#\$\&\'\`$am_lf]*)
  9894. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  9895. esac
  9896. case $srcdir in
  9897. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  9898. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  9899. esac
  9900. # Do 'set' in a subshell so we don't clobber the current shell's
  9901. # arguments. Must try -L first in case configure is actually a
  9902. # symlink; some systems play weird games with the mod time of symlinks
  9903. # (eg FreeBSD returns the mod time of the symlink's containing
  9904. # directory).
  9905. if (
  9906. am_has_slept=no
  9907. for am_try in 1 2; do
  9908. echo "timestamp, slept: $am_has_slept" > conftest.file
  9909. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  9910. if test "$*" = "X"; then
  9911. # -L didn't work.
  9912. set X `ls -t "$srcdir/configure" conftest.file`
  9913. fi
  9914. if test "$*" != "X $srcdir/configure conftest.file" \
  9915. && test "$*" != "X conftest.file $srcdir/configure"; then
  9916. # If neither matched, then we have a broken ls. This can happen
  9917. # if, for instance, CONFIG_SHELL is bash and it inherits a
  9918. # broken ls alias from the environment. This has actually
  9919. # happened. Such a system could not be considered "sane".
  9920. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  9921. alias in your environment" "$LINENO" 5
  9922. fi
  9923. if test "$2" = conftest.file || test $am_try -eq 2; then
  9924. break
  9925. fi
  9926. # Just in case.
  9927. sleep 1
  9928. am_has_slept=yes
  9929. done
  9930. test "$2" = conftest.file
  9931. )
  9932. then
  9933. # Ok.
  9934. :
  9935. else
  9936. as_fn_error $? "newly created file is older than distributed files!
  9937. Check your system clock" "$LINENO" 5
  9938. fi
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9940. $as_echo "yes" >&6; }
  9941. # If we didn't sleep, we still need to ensure time stamps of config.status and
  9942. # generated files are strictly newer.
  9943. am_sleep_pid=
  9944. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  9945. ( sleep 1 ) &
  9946. am_sleep_pid=$!
  9947. fi
  9948. rm -f conftest.file
  9949. test "$program_prefix" != NONE &&
  9950. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  9951. # Use a double $ so make ignores it.
  9952. test "$program_suffix" != NONE &&
  9953. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  9954. # Double any \ or $.
  9955. # By default was `s,x,x', remove it if useless.
  9956. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  9957. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  9958. if test x"${MISSING+set}" != xset; then
  9959. MISSING="\${SHELL} '$am_aux_dir/missing'"
  9960. fi
  9961. # Use eval to expand $SHELL
  9962. if eval "$MISSING --is-lightweight"; then
  9963. am_missing_run="$MISSING "
  9964. else
  9965. am_missing_run=
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  9967. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  9968. fi
  9969. if test x"${install_sh+set}" != xset; then
  9970. case $am_aux_dir in
  9971. *\ * | *\ *)
  9972. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  9973. *)
  9974. install_sh="\${SHELL} $am_aux_dir/install-sh"
  9975. esac
  9976. fi
  9977. # Installed binaries are usually stripped using 'strip' when the user
  9978. # run "make install-strip". However 'strip' might not be the right
  9979. # tool to use in cross-compilation environments, therefore Automake
  9980. # will honor the 'STRIP' environment variable to overrule this program.
  9981. if test "$cross_compiling" != no; then
  9982. if test -n "$ac_tool_prefix"; then
  9983. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  9984. set dummy ${ac_tool_prefix}strip; ac_word=$2
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9986. $as_echo_n "checking for $ac_word... " >&6; }
  9987. if ${ac_cv_prog_STRIP+:} false; then :
  9988. $as_echo_n "(cached) " >&6
  9989. else
  9990. if test -n "$STRIP"; then
  9991. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  9992. else
  9993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9994. for as_dir in $PATH
  9995. do
  9996. IFS=$as_save_IFS
  9997. test -z "$as_dir" && as_dir=.
  9998. for ac_exec_ext in '' $ac_executable_extensions; do
  9999. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10000. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10002. break 2
  10003. fi
  10004. done
  10005. done
  10006. IFS=$as_save_IFS
  10007. fi
  10008. fi
  10009. STRIP=$ac_cv_prog_STRIP
  10010. if test -n "$STRIP"; then
  10011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10012. $as_echo "$STRIP" >&6; }
  10013. else
  10014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10015. $as_echo "no" >&6; }
  10016. fi
  10017. fi
  10018. if test -z "$ac_cv_prog_STRIP"; then
  10019. ac_ct_STRIP=$STRIP
  10020. # Extract the first word of "strip", so it can be a program name with args.
  10021. set dummy strip; ac_word=$2
  10022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10023. $as_echo_n "checking for $ac_word... " >&6; }
  10024. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  10025. $as_echo_n "(cached) " >&6
  10026. else
  10027. if test -n "$ac_ct_STRIP"; then
  10028. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10029. else
  10030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10031. for as_dir in $PATH
  10032. do
  10033. IFS=$as_save_IFS
  10034. test -z "$as_dir" && as_dir=.
  10035. for ac_exec_ext in '' $ac_executable_extensions; do
  10036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10037. ac_cv_prog_ac_ct_STRIP="strip"
  10038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10039. break 2
  10040. fi
  10041. done
  10042. done
  10043. IFS=$as_save_IFS
  10044. fi
  10045. fi
  10046. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10047. if test -n "$ac_ct_STRIP"; then
  10048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10049. $as_echo "$ac_ct_STRIP" >&6; }
  10050. else
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10052. $as_echo "no" >&6; }
  10053. fi
  10054. if test "x$ac_ct_STRIP" = x; then
  10055. STRIP=":"
  10056. else
  10057. case $cross_compiling:$ac_tool_warned in
  10058. yes:)
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10060. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10061. ac_tool_warned=yes ;;
  10062. esac
  10063. STRIP=$ac_ct_STRIP
  10064. fi
  10065. else
  10066. STRIP="$ac_cv_prog_STRIP"
  10067. fi
  10068. fi
  10069. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  10071. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  10072. if test -z "$MKDIR_P"; then
  10073. if ${ac_cv_path_mkdir+:} false; then :
  10074. $as_echo_n "(cached) " >&6
  10075. else
  10076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10077. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  10078. do
  10079. IFS=$as_save_IFS
  10080. test -z "$as_dir" && as_dir=.
  10081. for ac_prog in mkdir gmkdir; do
  10082. for ac_exec_ext in '' $ac_executable_extensions; do
  10083. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  10084. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  10085. 'mkdir (GNU coreutils) '* | \
  10086. 'mkdir (coreutils) '* | \
  10087. 'mkdir (fileutils) '4.1*)
  10088. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  10089. break 3;;
  10090. esac
  10091. done
  10092. done
  10093. done
  10094. IFS=$as_save_IFS
  10095. fi
  10096. test -d ./--version && rmdir ./--version
  10097. if test "${ac_cv_path_mkdir+set}" = set; then
  10098. MKDIR_P="$ac_cv_path_mkdir -p"
  10099. else
  10100. # As a last resort, use the slow shell script. Don't cache a
  10101. # value for MKDIR_P within a source directory, because that will
  10102. # break other packages using the cache if that directory is
  10103. # removed, or if the value is a relative name.
  10104. MKDIR_P="$ac_install_sh -d"
  10105. fi
  10106. fi
  10107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  10108. $as_echo "$MKDIR_P" >&6; }
  10109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  10110. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  10111. set x ${MAKE-make}
  10112. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  10113. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  10114. $as_echo_n "(cached) " >&6
  10115. else
  10116. cat >conftest.make <<\_ACEOF
  10117. SHELL = /bin/sh
  10118. all:
  10119. @echo '@@@%%%=$(MAKE)=@@@%%%'
  10120. _ACEOF
  10121. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  10122. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  10123. *@@@%%%=?*=@@@%%%*)
  10124. eval ac_cv_prog_make_${ac_make}_set=yes;;
  10125. *)
  10126. eval ac_cv_prog_make_${ac_make}_set=no;;
  10127. esac
  10128. rm -f conftest.make
  10129. fi
  10130. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10132. $as_echo "yes" >&6; }
  10133. SET_MAKE=
  10134. else
  10135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10136. $as_echo "no" >&6; }
  10137. SET_MAKE="MAKE=${MAKE-make}"
  10138. fi
  10139. rm -rf .tst 2>/dev/null
  10140. mkdir .tst 2>/dev/null
  10141. if test -d .tst; then
  10142. am__leading_dot=.
  10143. else
  10144. am__leading_dot=_
  10145. fi
  10146. rmdir .tst 2>/dev/null
  10147. DEPDIR="${am__leading_dot}deps"
  10148. ac_config_commands="$ac_config_commands depfiles"
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  10150. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  10151. cat > confinc.mk << 'END'
  10152. am__doit:
  10153. @echo this is the am__doit target >confinc.out
  10154. .PHONY: am__doit
  10155. END
  10156. am__include="#"
  10157. am__quote=
  10158. # BSD make does it like this.
  10159. echo '.include "confinc.mk" # ignored' > confmf.BSD
  10160. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  10161. echo 'include confinc.mk # ignored' > confmf.GNU
  10162. _am_result=no
  10163. for s in GNU BSD; do
  10164. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  10165. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  10166. ac_status=$?
  10167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10168. (exit $ac_status); }
  10169. case $?:`cat confinc.out 2>/dev/null` in #(
  10170. '0:this is the am__doit target') :
  10171. case $s in #(
  10172. BSD) :
  10173. am__include='.include' am__quote='"' ;; #(
  10174. *) :
  10175. am__include='include' am__quote='' ;;
  10176. esac ;; #(
  10177. *) :
  10178. ;;
  10179. esac
  10180. if test "$am__include" != "#"; then
  10181. _am_result="yes ($s style)"
  10182. break
  10183. fi
  10184. done
  10185. rm -f confinc.* confmf.*
  10186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  10187. $as_echo "${_am_result}" >&6; }
  10188. # Check whether --enable-dependency-tracking was given.
  10189. if test "${enable_dependency_tracking+set}" = set; then :
  10190. enableval=$enable_dependency_tracking;
  10191. fi
  10192. if test "x$enable_dependency_tracking" != xno; then
  10193. am_depcomp="$ac_aux_dir/depcomp"
  10194. AMDEPBACKSLASH='\'
  10195. am__nodep='_no'
  10196. fi
  10197. if test "x$enable_dependency_tracking" != xno; then
  10198. AMDEP_TRUE=
  10199. AMDEP_FALSE='#'
  10200. else
  10201. AMDEP_TRUE='#'
  10202. AMDEP_FALSE=
  10203. fi
  10204. # Check whether --enable-silent-rules was given.
  10205. if test "${enable_silent_rules+set}" = set; then :
  10206. enableval=$enable_silent_rules;
  10207. fi
  10208. case $enable_silent_rules in # (((
  10209. yes) AM_DEFAULT_VERBOSITY=0;;
  10210. no) AM_DEFAULT_VERBOSITY=1;;
  10211. *) AM_DEFAULT_VERBOSITY=1;;
  10212. esac
  10213. am_make=${MAKE-make}
  10214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  10215. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  10216. if ${am_cv_make_support_nested_variables+:} false; then :
  10217. $as_echo_n "(cached) " >&6
  10218. else
  10219. if $as_echo 'TRUE=$(BAR$(V))
  10220. BAR0=false
  10221. BAR1=true
  10222. V=1
  10223. am__doit:
  10224. @$(TRUE)
  10225. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  10226. am_cv_make_support_nested_variables=yes
  10227. else
  10228. am_cv_make_support_nested_variables=no
  10229. fi
  10230. fi
  10231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  10232. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  10233. if test $am_cv_make_support_nested_variables = yes; then
  10234. AM_V='$(V)'
  10235. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  10236. else
  10237. AM_V=$AM_DEFAULT_VERBOSITY
  10238. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  10239. fi
  10240. AM_BACKSLASH='\'
  10241. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  10242. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  10243. # is not polluted with repeated "-I."
  10244. am__isrc=' -I$(srcdir)'
  10245. # test to see if srcdir already configured
  10246. if test -f $srcdir/config.status; then
  10247. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  10248. fi
  10249. fi
  10250. # test whether we have cygpath
  10251. if test -z "$CYGPATH_W"; then
  10252. if (cygpath --version) >/dev/null 2>/dev/null; then
  10253. CYGPATH_W='cygpath -w'
  10254. else
  10255. CYGPATH_W=echo
  10256. fi
  10257. fi
  10258. # Define the identity of the package.
  10259. PACKAGE='libogg'
  10260. VERSION='1.3.5'
  10261. cat >>confdefs.h <<_ACEOF
  10262. #define PACKAGE "$PACKAGE"
  10263. _ACEOF
  10264. cat >>confdefs.h <<_ACEOF
  10265. #define VERSION "$VERSION"
  10266. _ACEOF
  10267. # Some tools Automake needs.
  10268. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  10269. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  10270. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  10271. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  10272. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  10273. # For better backward compatibility. To be removed once Automake 1.9.x
  10274. # dies out for good. For more background, see:
  10275. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  10276. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  10277. mkdir_p='$(MKDIR_P)'
  10278. # We need awk for the "check" target (and possibly the TAP driver). The
  10279. # system "awk" is bad on some platforms.
  10280. # Always define AMTAR for backward compatibility. Yes, it's still used
  10281. # in the wild :-( We should find a proper way to deprecate it ...
  10282. AMTAR='$${TAR-tar}'
  10283. # We'll loop over all known methods to create a tar archive until one works.
  10284. _am_tools='gnutar pax cpio none'
  10285. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  10286. depcc="$CC" am_compiler_list=
  10287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  10288. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10289. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  10290. $as_echo_n "(cached) " >&6
  10291. else
  10292. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10293. # We make a subdir and do the tests there. Otherwise we can end up
  10294. # making bogus files that we don't know about and never remove. For
  10295. # instance it was reported that on HP-UX the gcc test will end up
  10296. # making a dummy file named 'D' -- because '-MD' means "put the output
  10297. # in D".
  10298. rm -rf conftest.dir
  10299. mkdir conftest.dir
  10300. # Copy depcomp to subdir because otherwise we won't find it if we're
  10301. # using a relative directory.
  10302. cp "$am_depcomp" conftest.dir
  10303. cd conftest.dir
  10304. # We will build objects and dependencies in a subdirectory because
  10305. # it helps to detect inapplicable dependency modes. For instance
  10306. # both Tru64's cc and ICC support -MD to output dependencies as a
  10307. # side effect of compilation, but ICC will put the dependencies in
  10308. # the current directory while Tru64 will put them in the object
  10309. # directory.
  10310. mkdir sub
  10311. am_cv_CC_dependencies_compiler_type=none
  10312. if test "$am_compiler_list" = ""; then
  10313. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10314. fi
  10315. am__universal=false
  10316. case " $depcc " in #(
  10317. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  10318. esac
  10319. for depmode in $am_compiler_list; do
  10320. # Setup a source with many dependencies, because some compilers
  10321. # like to wrap large dependency lists on column 80 (with \), and
  10322. # we should not choose a depcomp mode which is confused by this.
  10323. #
  10324. # We need to recreate these files for each test, as the compiler may
  10325. # overwrite some of them when testing with obscure command lines.
  10326. # This happens at least with the AIX C compiler.
  10327. : > sub/conftest.c
  10328. for i in 1 2 3 4 5 6; do
  10329. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10330. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  10331. # Solaris 10 /bin/sh.
  10332. echo '/* dummy */' > sub/conftst$i.h
  10333. done
  10334. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10335. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  10336. # mode. It turns out that the SunPro C++ compiler does not properly
  10337. # handle '-M -o', and we need to detect this. Also, some Intel
  10338. # versions had trouble with output in subdirs.
  10339. am__obj=sub/conftest.${OBJEXT-o}
  10340. am__minus_obj="-o $am__obj"
  10341. case $depmode in
  10342. gcc)
  10343. # This depmode causes a compiler race in universal mode.
  10344. test "$am__universal" = false || continue
  10345. ;;
  10346. nosideeffect)
  10347. # After this tag, mechanisms are not by side-effect, so they'll
  10348. # only be used when explicitly requested.
  10349. if test "x$enable_dependency_tracking" = xyes; then
  10350. continue
  10351. else
  10352. break
  10353. fi
  10354. ;;
  10355. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  10356. # This compiler won't grok '-c -o', but also, the minuso test has
  10357. # not run yet. These depmodes are late enough in the game, and
  10358. # so weak that their functioning should not be impacted.
  10359. am__obj=conftest.${OBJEXT-o}
  10360. am__minus_obj=
  10361. ;;
  10362. none) break ;;
  10363. esac
  10364. if depmode=$depmode \
  10365. source=sub/conftest.c object=$am__obj \
  10366. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10367. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  10368. >/dev/null 2>conftest.err &&
  10369. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10370. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10371. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  10372. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10373. # icc doesn't choke on unknown options, it will just issue warnings
  10374. # or remarks (even with -Werror). So we grep stderr for any message
  10375. # that says an option was ignored or not supported.
  10376. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10377. # icc: Command line warning: ignoring option '-M'; no argument required
  10378. # The diagnosis changed in icc 8.0:
  10379. # icc: Command line remark: option '-MP' not supported
  10380. if (grep 'ignoring option' conftest.err ||
  10381. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10382. am_cv_CC_dependencies_compiler_type=$depmode
  10383. break
  10384. fi
  10385. fi
  10386. done
  10387. cd ..
  10388. rm -rf conftest.dir
  10389. else
  10390. am_cv_CC_dependencies_compiler_type=none
  10391. fi
  10392. fi
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  10394. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  10395. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  10396. if
  10397. test "x$enable_dependency_tracking" != xno \
  10398. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  10399. am__fastdepCC_TRUE=
  10400. am__fastdepCC_FALSE='#'
  10401. else
  10402. am__fastdepCC_TRUE='#'
  10403. am__fastdepCC_FALSE=
  10404. fi
  10405. # POSIX will say in a future version that running "rm -f" with no argument
  10406. # is OK; and we want to be able to make that assumption in our Makefile
  10407. # recipes. So use an aggressive probe to check that the usage we want is
  10408. # actually supported "in the wild" to an acceptable degree.
  10409. # See automake bug#10828.
  10410. # To make any issue more visible, cause the running configure to be aborted
  10411. # by default if the 'rm' program in use doesn't match our expectations; the
  10412. # user can still override this though.
  10413. if rm -f && rm -fr && rm -rf; then : OK; else
  10414. cat >&2 <<'END'
  10415. Oops!
  10416. Your 'rm' program seems unable to run without file operands specified
  10417. on the command line, even when the '-f' option is present. This is contrary
  10418. to the behaviour of most rm programs out there, and not conforming with
  10419. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  10420. Please tell [email protected] about your system, including the value
  10421. of your $PATH and any error possibly output before this message. This
  10422. can help us improve future automake versions.
  10423. END
  10424. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  10425. echo 'Configuration will proceed anyway, since you have set the' >&2
  10426. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  10427. echo >&2
  10428. else
  10429. cat >&2 <<'END'
  10430. Aborting the configuration process, to ensure you take notice of the issue.
  10431. You can download and install GNU coreutils to get an 'rm' implementation
  10432. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  10433. If you want to complete the configuration process using your problematic
  10434. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  10435. to "yes", and re-run configure.
  10436. END
  10437. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  10438. fi
  10439. fi
  10440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10441. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10442. # Check whether --enable-maintainer-mode was given.
  10443. if test "${enable_maintainer_mode+set}" = set; then :
  10444. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10445. else
  10446. USE_MAINTAINER_MODE=yes
  10447. fi
  10448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10449. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10450. if test $USE_MAINTAINER_MODE = yes; then
  10451. MAINTAINER_MODE_TRUE=
  10452. MAINTAINER_MODE_FALSE='#'
  10453. else
  10454. MAINTAINER_MODE_TRUE='#'
  10455. MAINTAINER_MODE_FALSE=
  10456. fi
  10457. MAINT=$MAINTAINER_MODE_TRUE
  10458. LIB_CURRENT=8
  10459. LIB_REVISION=5
  10460. LIB_AGE=8
  10461. ac_ext=c
  10462. ac_cpp='$CPP $CPPFLAGS'
  10463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10466. if test -n "$ac_tool_prefix"; then
  10467. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10468. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10470. $as_echo_n "checking for $ac_word... " >&6; }
  10471. if ${ac_cv_prog_CC+:} false; then :
  10472. $as_echo_n "(cached) " >&6
  10473. else
  10474. if test -n "$CC"; then
  10475. ac_cv_prog_CC="$CC" # Let the user override the test.
  10476. else
  10477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10478. for as_dir in $PATH
  10479. do
  10480. IFS=$as_save_IFS
  10481. test -z "$as_dir" && as_dir=.
  10482. for ac_exec_ext in '' $ac_executable_extensions; do
  10483. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10484. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10486. break 2
  10487. fi
  10488. done
  10489. done
  10490. IFS=$as_save_IFS
  10491. fi
  10492. fi
  10493. CC=$ac_cv_prog_CC
  10494. if test -n "$CC"; then
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10496. $as_echo "$CC" >&6; }
  10497. else
  10498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10499. $as_echo "no" >&6; }
  10500. fi
  10501. fi
  10502. if test -z "$ac_cv_prog_CC"; then
  10503. ac_ct_CC=$CC
  10504. # Extract the first word of "gcc", so it can be a program name with args.
  10505. set dummy gcc; ac_word=$2
  10506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10507. $as_echo_n "checking for $ac_word... " >&6; }
  10508. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10509. $as_echo_n "(cached) " >&6
  10510. else
  10511. if test -n "$ac_ct_CC"; then
  10512. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10513. else
  10514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10515. for as_dir in $PATH
  10516. do
  10517. IFS=$as_save_IFS
  10518. test -z "$as_dir" && as_dir=.
  10519. for ac_exec_ext in '' $ac_executable_extensions; do
  10520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10521. ac_cv_prog_ac_ct_CC="gcc"
  10522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10523. break 2
  10524. fi
  10525. done
  10526. done
  10527. IFS=$as_save_IFS
  10528. fi
  10529. fi
  10530. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10531. if test -n "$ac_ct_CC"; then
  10532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10533. $as_echo "$ac_ct_CC" >&6; }
  10534. else
  10535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10536. $as_echo "no" >&6; }
  10537. fi
  10538. if test "x$ac_ct_CC" = x; then
  10539. CC=""
  10540. else
  10541. case $cross_compiling:$ac_tool_warned in
  10542. yes:)
  10543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10545. ac_tool_warned=yes ;;
  10546. esac
  10547. CC=$ac_ct_CC
  10548. fi
  10549. else
  10550. CC="$ac_cv_prog_CC"
  10551. fi
  10552. if test -z "$CC"; then
  10553. if test -n "$ac_tool_prefix"; then
  10554. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10555. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10557. $as_echo_n "checking for $ac_word... " >&6; }
  10558. if ${ac_cv_prog_CC+:} false; then :
  10559. $as_echo_n "(cached) " >&6
  10560. else
  10561. if test -n "$CC"; then
  10562. ac_cv_prog_CC="$CC" # Let the user override the test.
  10563. else
  10564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10565. for as_dir in $PATH
  10566. do
  10567. IFS=$as_save_IFS
  10568. test -z "$as_dir" && as_dir=.
  10569. for ac_exec_ext in '' $ac_executable_extensions; do
  10570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10571. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10573. break 2
  10574. fi
  10575. done
  10576. done
  10577. IFS=$as_save_IFS
  10578. fi
  10579. fi
  10580. CC=$ac_cv_prog_CC
  10581. if test -n "$CC"; then
  10582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10583. $as_echo "$CC" >&6; }
  10584. else
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10586. $as_echo "no" >&6; }
  10587. fi
  10588. fi
  10589. fi
  10590. if test -z "$CC"; then
  10591. # Extract the first word of "cc", so it can be a program name with args.
  10592. set dummy cc; ac_word=$2
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10594. $as_echo_n "checking for $ac_word... " >&6; }
  10595. if ${ac_cv_prog_CC+:} false; then :
  10596. $as_echo_n "(cached) " >&6
  10597. else
  10598. if test -n "$CC"; then
  10599. ac_cv_prog_CC="$CC" # Let the user override the test.
  10600. else
  10601. ac_prog_rejected=no
  10602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10603. for as_dir in $PATH
  10604. do
  10605. IFS=$as_save_IFS
  10606. test -z "$as_dir" && as_dir=.
  10607. for ac_exec_ext in '' $ac_executable_extensions; do
  10608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10609. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10610. ac_prog_rejected=yes
  10611. continue
  10612. fi
  10613. ac_cv_prog_CC="cc"
  10614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10615. break 2
  10616. fi
  10617. done
  10618. done
  10619. IFS=$as_save_IFS
  10620. if test $ac_prog_rejected = yes; then
  10621. # We found a bogon in the path, so make sure we never use it.
  10622. set dummy $ac_cv_prog_CC
  10623. shift
  10624. if test $# != 0; then
  10625. # We chose a different compiler from the bogus one.
  10626. # However, it has the same basename, so the bogon will be chosen
  10627. # first if we set CC to just the basename; use the full file name.
  10628. shift
  10629. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10630. fi
  10631. fi
  10632. fi
  10633. fi
  10634. CC=$ac_cv_prog_CC
  10635. if test -n "$CC"; then
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10637. $as_echo "$CC" >&6; }
  10638. else
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10640. $as_echo "no" >&6; }
  10641. fi
  10642. fi
  10643. if test -z "$CC"; then
  10644. if test -n "$ac_tool_prefix"; then
  10645. for ac_prog in cl.exe
  10646. do
  10647. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10648. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10650. $as_echo_n "checking for $ac_word... " >&6; }
  10651. if ${ac_cv_prog_CC+:} false; then :
  10652. $as_echo_n "(cached) " >&6
  10653. else
  10654. if test -n "$CC"; then
  10655. ac_cv_prog_CC="$CC" # Let the user override the test.
  10656. else
  10657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10658. for as_dir in $PATH
  10659. do
  10660. IFS=$as_save_IFS
  10661. test -z "$as_dir" && as_dir=.
  10662. for ac_exec_ext in '' $ac_executable_extensions; do
  10663. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10664. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10666. break 2
  10667. fi
  10668. done
  10669. done
  10670. IFS=$as_save_IFS
  10671. fi
  10672. fi
  10673. CC=$ac_cv_prog_CC
  10674. if test -n "$CC"; then
  10675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10676. $as_echo "$CC" >&6; }
  10677. else
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10679. $as_echo "no" >&6; }
  10680. fi
  10681. test -n "$CC" && break
  10682. done
  10683. fi
  10684. if test -z "$CC"; then
  10685. ac_ct_CC=$CC
  10686. for ac_prog in cl.exe
  10687. do
  10688. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10689. set dummy $ac_prog; ac_word=$2
  10690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10691. $as_echo_n "checking for $ac_word... " >&6; }
  10692. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10693. $as_echo_n "(cached) " >&6
  10694. else
  10695. if test -n "$ac_ct_CC"; then
  10696. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10697. else
  10698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10699. for as_dir in $PATH
  10700. do
  10701. IFS=$as_save_IFS
  10702. test -z "$as_dir" && as_dir=.
  10703. for ac_exec_ext in '' $ac_executable_extensions; do
  10704. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10705. ac_cv_prog_ac_ct_CC="$ac_prog"
  10706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10707. break 2
  10708. fi
  10709. done
  10710. done
  10711. IFS=$as_save_IFS
  10712. fi
  10713. fi
  10714. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10715. if test -n "$ac_ct_CC"; then
  10716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10717. $as_echo "$ac_ct_CC" >&6; }
  10718. else
  10719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10720. $as_echo "no" >&6; }
  10721. fi
  10722. test -n "$ac_ct_CC" && break
  10723. done
  10724. if test "x$ac_ct_CC" = x; then
  10725. CC=""
  10726. else
  10727. case $cross_compiling:$ac_tool_warned in
  10728. yes:)
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10730. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10731. ac_tool_warned=yes ;;
  10732. esac
  10733. CC=$ac_ct_CC
  10734. fi
  10735. fi
  10736. fi
  10737. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10738. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10739. as_fn_error $? "no acceptable C compiler found in \$PATH
  10740. See \`config.log' for more details" "$LINENO" 5; }
  10741. # Provide some information about the compiler.
  10742. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10743. set X $ac_compile
  10744. ac_compiler=$2
  10745. for ac_option in --version -v -V -qversion; do
  10746. { { ac_try="$ac_compiler $ac_option >&5"
  10747. case "(($ac_try" in
  10748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10749. *) ac_try_echo=$ac_try;;
  10750. esac
  10751. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10752. $as_echo "$ac_try_echo"; } >&5
  10753. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10754. ac_status=$?
  10755. if test -s conftest.err; then
  10756. sed '10a\
  10757. ... rest of stderr output deleted ...
  10758. 10q' conftest.err >conftest.er1
  10759. cat conftest.er1 >&5
  10760. fi
  10761. rm -f conftest.er1 conftest.err
  10762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10763. test $ac_status = 0; }
  10764. done
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10766. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10767. if ${ac_cv_c_compiler_gnu+:} false; then :
  10768. $as_echo_n "(cached) " >&6
  10769. else
  10770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10771. /* end confdefs.h. */
  10772. int
  10773. main ()
  10774. {
  10775. #ifndef __GNUC__
  10776. choke me
  10777. #endif
  10778. ;
  10779. return 0;
  10780. }
  10781. _ACEOF
  10782. if ac_fn_c_try_compile "$LINENO"; then :
  10783. ac_compiler_gnu=yes
  10784. else
  10785. ac_compiler_gnu=no
  10786. fi
  10787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10788. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10789. fi
  10790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10791. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10792. if test $ac_compiler_gnu = yes; then
  10793. GCC=yes
  10794. else
  10795. GCC=
  10796. fi
  10797. ac_test_CFLAGS=${CFLAGS+set}
  10798. ac_save_CFLAGS=$CFLAGS
  10799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10800. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10801. if ${ac_cv_prog_cc_g+:} false; then :
  10802. $as_echo_n "(cached) " >&6
  10803. else
  10804. ac_save_c_werror_flag=$ac_c_werror_flag
  10805. ac_c_werror_flag=yes
  10806. ac_cv_prog_cc_g=no
  10807. CFLAGS="-g"
  10808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10809. /* end confdefs.h. */
  10810. int
  10811. main ()
  10812. {
  10813. ;
  10814. return 0;
  10815. }
  10816. _ACEOF
  10817. if ac_fn_c_try_compile "$LINENO"; then :
  10818. ac_cv_prog_cc_g=yes
  10819. else
  10820. CFLAGS=""
  10821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10822. /* end confdefs.h. */
  10823. int
  10824. main ()
  10825. {
  10826. ;
  10827. return 0;
  10828. }
  10829. _ACEOF
  10830. if ac_fn_c_try_compile "$LINENO"; then :
  10831. else
  10832. ac_c_werror_flag=$ac_save_c_werror_flag
  10833. CFLAGS="-g"
  10834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10835. /* end confdefs.h. */
  10836. int
  10837. main ()
  10838. {
  10839. ;
  10840. return 0;
  10841. }
  10842. _ACEOF
  10843. if ac_fn_c_try_compile "$LINENO"; then :
  10844. ac_cv_prog_cc_g=yes
  10845. fi
  10846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10847. fi
  10848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10849. fi
  10850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10851. ac_c_werror_flag=$ac_save_c_werror_flag
  10852. fi
  10853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10854. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10855. if test "$ac_test_CFLAGS" = set; then
  10856. CFLAGS=$ac_save_CFLAGS
  10857. elif test $ac_cv_prog_cc_g = yes; then
  10858. if test "$GCC" = yes; then
  10859. CFLAGS="-g -O2"
  10860. else
  10861. CFLAGS="-g"
  10862. fi
  10863. else
  10864. if test "$GCC" = yes; then
  10865. CFLAGS="-O2"
  10866. else
  10867. CFLAGS=
  10868. fi
  10869. fi
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10871. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10872. if ${ac_cv_prog_cc_c89+:} false; then :
  10873. $as_echo_n "(cached) " >&6
  10874. else
  10875. ac_cv_prog_cc_c89=no
  10876. ac_save_CC=$CC
  10877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10878. /* end confdefs.h. */
  10879. #include <stdarg.h>
  10880. #include <stdio.h>
  10881. struct stat;
  10882. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10883. struct buf { int x; };
  10884. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10885. static char *e (p, i)
  10886. char **p;
  10887. int i;
  10888. {
  10889. return p[i];
  10890. }
  10891. static char *f (char * (*g) (char **, int), char **p, ...)
  10892. {
  10893. char *s;
  10894. va_list v;
  10895. va_start (v,p);
  10896. s = g (p, va_arg (v,int));
  10897. va_end (v);
  10898. return s;
  10899. }
  10900. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10901. function prototypes and stuff, but not '\xHH' hex character constants.
  10902. These don't provoke an error unfortunately, instead are silently treated
  10903. as 'x'. The following induces an error, until -std is added to get
  10904. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10905. array size at least. It's necessary to write '\x00'==0 to get something
  10906. that's true only with -std. */
  10907. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10908. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10909. inside strings and character constants. */
  10910. #define FOO(x) 'x'
  10911. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10912. int test (int i, double x);
  10913. struct s1 {int (*f) (int a);};
  10914. struct s2 {int (*f) (double a);};
  10915. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10916. int argc;
  10917. char **argv;
  10918. int
  10919. main ()
  10920. {
  10921. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10922. ;
  10923. return 0;
  10924. }
  10925. _ACEOF
  10926. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10927. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10928. do
  10929. CC="$ac_save_CC $ac_arg"
  10930. if ac_fn_c_try_compile "$LINENO"; then :
  10931. ac_cv_prog_cc_c89=$ac_arg
  10932. fi
  10933. rm -f core conftest.err conftest.$ac_objext
  10934. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10935. done
  10936. rm -f conftest.$ac_ext
  10937. CC=$ac_save_CC
  10938. fi
  10939. # AC_CACHE_VAL
  10940. case "x$ac_cv_prog_cc_c89" in
  10941. x)
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10943. $as_echo "none needed" >&6; } ;;
  10944. xno)
  10945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10946. $as_echo "unsupported" >&6; } ;;
  10947. *)
  10948. CC="$CC $ac_cv_prog_cc_c89"
  10949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10950. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10951. esac
  10952. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10953. fi
  10954. ac_ext=c
  10955. ac_cpp='$CPP $CPPFLAGS'
  10956. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10957. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10958. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10959. ac_ext=c
  10960. ac_cpp='$CPP $CPPFLAGS'
  10961. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10962. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10963. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  10965. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  10966. if ${am_cv_prog_cc_c_o+:} false; then :
  10967. $as_echo_n "(cached) " >&6
  10968. else
  10969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10970. /* end confdefs.h. */
  10971. int
  10972. main ()
  10973. {
  10974. ;
  10975. return 0;
  10976. }
  10977. _ACEOF
  10978. # Make sure it works both with $CC and with simple cc.
  10979. # Following AC_PROG_CC_C_O, we do the test twice because some
  10980. # compilers refuse to overwrite an existing .o file with -o,
  10981. # though they will create one.
  10982. am_cv_prog_cc_c_o=yes
  10983. for am_i in 1 2; do
  10984. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  10985. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  10986. ac_status=$?
  10987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10988. (exit $ac_status); } \
  10989. && test -f conftest2.$ac_objext; then
  10990. : OK
  10991. else
  10992. am_cv_prog_cc_c_o=no
  10993. break
  10994. fi
  10995. done
  10996. rm -f core conftest*
  10997. unset am_i
  10998. fi
  10999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  11000. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  11001. if test "$am_cv_prog_cc_c_o" != yes; then
  11002. # Losing compiler, so override with the script.
  11003. # FIXME: It is wrong to rewrite CC.
  11004. # But if we don't then we get into trouble of one sort or another.
  11005. # A longer-term fix would be to have automake use am__CC in this case,
  11006. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11007. CC="$am_aux_dir/compile $CC"
  11008. fi
  11009. ac_ext=c
  11010. ac_cpp='$CPP $CPPFLAGS'
  11011. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11012. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11013. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11014. cflags_save="$CFLAGS"
  11015. if test -z "$GCC"; then
  11016. case $host in
  11017. *-*-irix*)
  11018. DEBUG="-g -signed"
  11019. CFLAGS="-O2 -w -signed"
  11020. PROFILE="-p -g3 -O2 -signed"
  11021. ;;
  11022. sparc-sun-solaris*)
  11023. DEBUG="-v -g"
  11024. CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
  11025. PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
  11026. ;;
  11027. *)
  11028. DEBUG="-g"
  11029. CFLAGS="-O"
  11030. PROFILE="-g -p"
  11031. ;;
  11032. esac
  11033. else
  11034. case $host in
  11035. *-*-linux*)
  11036. DEBUG="-g -Wall -fsigned-char"
  11037. CFLAGS="-O2 -Wall -ffast-math -fsigned-char"
  11038. PROFILE="-Wall -W -pg -g -O2 -ffast-math -fsigned-char"
  11039. ;;
  11040. sparc-sun-*)
  11041. DEBUG="-g -Wall -fsigned-char"
  11042. CFLAGS="-O2 -ffast-math -fsigned-char"
  11043. PROFILE="-pg -g -O2 -fsigned-char"
  11044. ;;
  11045. *-*-darwin*)
  11046. DEBUG="-fno-common -g -Wall -fsigned-char"
  11047. CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
  11048. PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
  11049. ;;
  11050. *)
  11051. DEBUG="-g -Wall -fsigned-char"
  11052. CFLAGS="-O2 -fsigned-char"
  11053. PROFILE="-O2 -g -pg -fsigned-char"
  11054. ;;
  11055. esac
  11056. fi
  11057. CFLAGS="$CFLAGS $cflags_save"
  11058. DEBUG="$DEBUG $cflags_save"
  11059. PROFILE="$PROFILE $cflags_save"
  11060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  11061. $as_echo_n "checking for ANSI C header files... " >&6; }
  11062. if ${ac_cv_header_stdc+:} false; then :
  11063. $as_echo_n "(cached) " >&6
  11064. else
  11065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11066. /* end confdefs.h. */
  11067. #include <stdlib.h>
  11068. #include <stdarg.h>
  11069. #include <string.h>
  11070. #include <float.h>
  11071. int
  11072. main ()
  11073. {
  11074. ;
  11075. return 0;
  11076. }
  11077. _ACEOF
  11078. if ac_fn_c_try_compile "$LINENO"; then :
  11079. ac_cv_header_stdc=yes
  11080. else
  11081. ac_cv_header_stdc=no
  11082. fi
  11083. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11084. if test $ac_cv_header_stdc = yes; then
  11085. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  11086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11087. /* end confdefs.h. */
  11088. #include <string.h>
  11089. _ACEOF
  11090. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11091. $EGREP "memchr" >/dev/null 2>&1; then :
  11092. else
  11093. ac_cv_header_stdc=no
  11094. fi
  11095. rm -f conftest*
  11096. fi
  11097. if test $ac_cv_header_stdc = yes; then
  11098. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  11099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11100. /* end confdefs.h. */
  11101. #include <stdlib.h>
  11102. _ACEOF
  11103. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11104. $EGREP "free" >/dev/null 2>&1; then :
  11105. else
  11106. ac_cv_header_stdc=no
  11107. fi
  11108. rm -f conftest*
  11109. fi
  11110. if test $ac_cv_header_stdc = yes; then
  11111. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  11112. if test "$cross_compiling" = yes; then :
  11113. :
  11114. else
  11115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11116. /* end confdefs.h. */
  11117. #include <ctype.h>
  11118. #include <stdlib.h>
  11119. #if ((' ' & 0x0FF) == 0x020)
  11120. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  11121. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  11122. #else
  11123. # define ISLOWER(c) \
  11124. (('a' <= (c) && (c) <= 'i') \
  11125. || ('j' <= (c) && (c) <= 'r') \
  11126. || ('s' <= (c) && (c) <= 'z'))
  11127. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  11128. #endif
  11129. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  11130. int
  11131. main ()
  11132. {
  11133. int i;
  11134. for (i = 0; i < 256; i++)
  11135. if (XOR (islower (i), ISLOWER (i))
  11136. || toupper (i) != TOUPPER (i))
  11137. return 2;
  11138. return 0;
  11139. }
  11140. _ACEOF
  11141. if ac_fn_c_try_run "$LINENO"; then :
  11142. else
  11143. ac_cv_header_stdc=no
  11144. fi
  11145. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11146. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11147. fi
  11148. fi
  11149. fi
  11150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  11151. $as_echo "$ac_cv_header_stdc" >&6; }
  11152. if test $ac_cv_header_stdc = yes; then
  11153. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  11154. fi
  11155. INCLUDE_INTTYPES_H=0
  11156. INCLUDE_STDINT_H=0
  11157. INCLUDE_SYS_TYPES_H=0
  11158. ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  11159. if test "x$ac_cv_header_inttypes_h" = xyes; then :
  11160. INCLUDE_INTTYPES_H=1
  11161. fi
  11162. ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  11163. if test "x$ac_cv_header_stdint_h" = xyes; then :
  11164. INCLUDE_STDINT_H=1
  11165. fi
  11166. ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  11167. if test "x$ac_cv_header_sys_types_h" = xyes; then :
  11168. INCLUDE_SYS_TYPES_H=1
  11169. fi
  11170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  11171. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  11172. if ${ac_cv_c_const+:} false; then :
  11173. $as_echo_n "(cached) " >&6
  11174. else
  11175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11176. /* end confdefs.h. */
  11177. int
  11178. main ()
  11179. {
  11180. #ifndef __cplusplus
  11181. /* Ultrix mips cc rejects this sort of thing. */
  11182. typedef int charset[2];
  11183. const charset cs = { 0, 0 };
  11184. /* SunOS 4.1.1 cc rejects this. */
  11185. char const *const *pcpcc;
  11186. char **ppc;
  11187. /* NEC SVR4.0.2 mips cc rejects this. */
  11188. struct point {int x, y;};
  11189. static struct point const zero = {0,0};
  11190. /* AIX XL C 1.02.0.0 rejects this.
  11191. It does not let you subtract one const X* pointer from another in
  11192. an arm of an if-expression whose if-part is not a constant
  11193. expression */
  11194. const char *g = "string";
  11195. pcpcc = &g + (g ? g-g : 0);
  11196. /* HPUX 7.0 cc rejects these. */
  11197. ++pcpcc;
  11198. ppc = (char**) pcpcc;
  11199. pcpcc = (char const *const *) ppc;
  11200. { /* SCO 3.2v4 cc rejects this sort of thing. */
  11201. char tx;
  11202. char *t = &tx;
  11203. char const *s = 0 ? (char *) 0 : (char const *) 0;
  11204. *t++ = 0;
  11205. if (s) return 0;
  11206. }
  11207. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  11208. int x[] = {25, 17};
  11209. const int *foo = &x[0];
  11210. ++foo;
  11211. }
  11212. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  11213. typedef const int *iptr;
  11214. iptr p = 0;
  11215. ++p;
  11216. }
  11217. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  11218. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  11219. struct s { int j; const int *ap[3]; } bx;
  11220. struct s *b = &bx; b->j = 5;
  11221. }
  11222. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  11223. const int foo = 10;
  11224. if (!foo) return 0;
  11225. }
  11226. return !cs[0] && !zero.x;
  11227. #endif
  11228. ;
  11229. return 0;
  11230. }
  11231. _ACEOF
  11232. if ac_fn_c_try_compile "$LINENO"; then :
  11233. ac_cv_c_const=yes
  11234. else
  11235. ac_cv_c_const=no
  11236. fi
  11237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11238. fi
  11239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  11240. $as_echo "$ac_cv_c_const" >&6; }
  11241. if test $ac_cv_c_const = no; then
  11242. $as_echo "#define const /**/" >>confdefs.h
  11243. fi
  11244. # The cast to long int works around a bug in the HP C Compiler
  11245. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11246. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11247. # This bug is HP SR number 8606223364.
  11248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
  11249. $as_echo_n "checking size of int16_t... " >&6; }
  11250. if ${ac_cv_sizeof_int16_t+:} false; then :
  11251. $as_echo_n "(cached) " >&6
  11252. else
  11253. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"; then :
  11254. else
  11255. if test "$ac_cv_type_int16_t" = yes; then
  11256. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11257. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11258. as_fn_error 77 "cannot compute sizeof (int16_t)
  11259. See \`config.log' for more details" "$LINENO" 5; }
  11260. else
  11261. ac_cv_sizeof_int16_t=0
  11262. fi
  11263. fi
  11264. fi
  11265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
  11266. $as_echo "$ac_cv_sizeof_int16_t" >&6; }
  11267. cat >>confdefs.h <<_ACEOF
  11268. #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
  11269. _ACEOF
  11270. # The cast to long int works around a bug in the HP C Compiler
  11271. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11272. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11273. # This bug is HP SR number 8606223364.
  11274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
  11275. $as_echo_n "checking size of uint16_t... " >&6; }
  11276. if ${ac_cv_sizeof_uint16_t+:} false; then :
  11277. $as_echo_n "(cached) " >&6
  11278. else
  11279. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then :
  11280. else
  11281. if test "$ac_cv_type_uint16_t" = yes; then
  11282. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11283. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11284. as_fn_error 77 "cannot compute sizeof (uint16_t)
  11285. See \`config.log' for more details" "$LINENO" 5; }
  11286. else
  11287. ac_cv_sizeof_uint16_t=0
  11288. fi
  11289. fi
  11290. fi
  11291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
  11292. $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
  11293. cat >>confdefs.h <<_ACEOF
  11294. #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
  11295. _ACEOF
  11296. # The cast to long int works around a bug in the HP C Compiler
  11297. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11298. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11299. # This bug is HP SR number 8606223364.
  11300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5
  11301. $as_echo_n "checking size of u_int16_t... " >&6; }
  11302. if ${ac_cv_sizeof_u_int16_t+:} false; then :
  11303. $as_echo_n "(cached) " >&6
  11304. else
  11305. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t" "$ac_includes_default"; then :
  11306. else
  11307. if test "$ac_cv_type_u_int16_t" = yes; then
  11308. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11309. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11310. as_fn_error 77 "cannot compute sizeof (u_int16_t)
  11311. See \`config.log' for more details" "$LINENO" 5; }
  11312. else
  11313. ac_cv_sizeof_u_int16_t=0
  11314. fi
  11315. fi
  11316. fi
  11317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5
  11318. $as_echo "$ac_cv_sizeof_u_int16_t" >&6; }
  11319. cat >>confdefs.h <<_ACEOF
  11320. #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
  11321. _ACEOF
  11322. # The cast to long int works around a bug in the HP C Compiler
  11323. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11324. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11325. # This bug is HP SR number 8606223364.
  11326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
  11327. $as_echo_n "checking size of int32_t... " >&6; }
  11328. if ${ac_cv_sizeof_int32_t+:} false; then :
  11329. $as_echo_n "(cached) " >&6
  11330. else
  11331. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
  11332. else
  11333. if test "$ac_cv_type_int32_t" = yes; then
  11334. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11335. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11336. as_fn_error 77 "cannot compute sizeof (int32_t)
  11337. See \`config.log' for more details" "$LINENO" 5; }
  11338. else
  11339. ac_cv_sizeof_int32_t=0
  11340. fi
  11341. fi
  11342. fi
  11343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
  11344. $as_echo "$ac_cv_sizeof_int32_t" >&6; }
  11345. cat >>confdefs.h <<_ACEOF
  11346. #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
  11347. _ACEOF
  11348. # The cast to long int works around a bug in the HP C Compiler
  11349. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11350. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11351. # This bug is HP SR number 8606223364.
  11352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
  11353. $as_echo_n "checking size of uint32_t... " >&6; }
  11354. if ${ac_cv_sizeof_uint32_t+:} false; then :
  11355. $as_echo_n "(cached) " >&6
  11356. else
  11357. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then :
  11358. else
  11359. if test "$ac_cv_type_uint32_t" = yes; then
  11360. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11361. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11362. as_fn_error 77 "cannot compute sizeof (uint32_t)
  11363. See \`config.log' for more details" "$LINENO" 5; }
  11364. else
  11365. ac_cv_sizeof_uint32_t=0
  11366. fi
  11367. fi
  11368. fi
  11369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
  11370. $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
  11371. cat >>confdefs.h <<_ACEOF
  11372. #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
  11373. _ACEOF
  11374. # The cast to long int works around a bug in the HP C Compiler
  11375. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11376. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11377. # This bug is HP SR number 8606223364.
  11378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5
  11379. $as_echo_n "checking size of u_int32_t... " >&6; }
  11380. if ${ac_cv_sizeof_u_int32_t+:} false; then :
  11381. $as_echo_n "(cached) " >&6
  11382. else
  11383. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t" "$ac_includes_default"; then :
  11384. else
  11385. if test "$ac_cv_type_u_int32_t" = yes; then
  11386. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11387. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11388. as_fn_error 77 "cannot compute sizeof (u_int32_t)
  11389. See \`config.log' for more details" "$LINENO" 5; }
  11390. else
  11391. ac_cv_sizeof_u_int32_t=0
  11392. fi
  11393. fi
  11394. fi
  11395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5
  11396. $as_echo "$ac_cv_sizeof_u_int32_t" >&6; }
  11397. cat >>confdefs.h <<_ACEOF
  11398. #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
  11399. _ACEOF
  11400. # The cast to long int works around a bug in the HP C Compiler
  11401. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11402. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11403. # This bug is HP SR number 8606223364.
  11404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
  11405. $as_echo_n "checking size of int64_t... " >&6; }
  11406. if ${ac_cv_sizeof_int64_t+:} false; then :
  11407. $as_echo_n "(cached) " >&6
  11408. else
  11409. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
  11410. else
  11411. if test "$ac_cv_type_int64_t" = yes; then
  11412. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11413. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11414. as_fn_error 77 "cannot compute sizeof (int64_t)
  11415. See \`config.log' for more details" "$LINENO" 5; }
  11416. else
  11417. ac_cv_sizeof_int64_t=0
  11418. fi
  11419. fi
  11420. fi
  11421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
  11422. $as_echo "$ac_cv_sizeof_int64_t" >&6; }
  11423. cat >>confdefs.h <<_ACEOF
  11424. #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
  11425. _ACEOF
  11426. # The cast to long int works around a bug in the HP C Compiler
  11427. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11428. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11429. # This bug is HP SR number 8606223364.
  11430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5
  11431. $as_echo_n "checking size of uint64_t... " >&6; }
  11432. if ${ac_cv_sizeof_uint64_t+:} false; then :
  11433. $as_echo_n "(cached) " >&6
  11434. else
  11435. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "$ac_includes_default"; then :
  11436. else
  11437. if test "$ac_cv_type_uint64_t" = yes; then
  11438. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11439. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11440. as_fn_error 77 "cannot compute sizeof (uint64_t)
  11441. See \`config.log' for more details" "$LINENO" 5; }
  11442. else
  11443. ac_cv_sizeof_uint64_t=0
  11444. fi
  11445. fi
  11446. fi
  11447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5
  11448. $as_echo "$ac_cv_sizeof_uint64_t" >&6; }
  11449. cat >>confdefs.h <<_ACEOF
  11450. #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
  11451. _ACEOF
  11452. # The cast to long int works around a bug in the HP C Compiler
  11453. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11454. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11455. # This bug is HP SR number 8606223364.
  11456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  11457. $as_echo_n "checking size of short... " >&6; }
  11458. if ${ac_cv_sizeof_short+:} false; then :
  11459. $as_echo_n "(cached) " >&6
  11460. else
  11461. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  11462. else
  11463. if test "$ac_cv_type_short" = yes; then
  11464. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11465. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11466. as_fn_error 77 "cannot compute sizeof (short)
  11467. See \`config.log' for more details" "$LINENO" 5; }
  11468. else
  11469. ac_cv_sizeof_short=0
  11470. fi
  11471. fi
  11472. fi
  11473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  11474. $as_echo "$ac_cv_sizeof_short" >&6; }
  11475. cat >>confdefs.h <<_ACEOF
  11476. #define SIZEOF_SHORT $ac_cv_sizeof_short
  11477. _ACEOF
  11478. # The cast to long int works around a bug in the HP C Compiler
  11479. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11480. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11481. # This bug is HP SR number 8606223364.
  11482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  11483. $as_echo_n "checking size of int... " >&6; }
  11484. if ${ac_cv_sizeof_int+:} false; then :
  11485. $as_echo_n "(cached) " >&6
  11486. else
  11487. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  11488. else
  11489. if test "$ac_cv_type_int" = yes; then
  11490. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11491. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11492. as_fn_error 77 "cannot compute sizeof (int)
  11493. See \`config.log' for more details" "$LINENO" 5; }
  11494. else
  11495. ac_cv_sizeof_int=0
  11496. fi
  11497. fi
  11498. fi
  11499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  11500. $as_echo "$ac_cv_sizeof_int" >&6; }
  11501. cat >>confdefs.h <<_ACEOF
  11502. #define SIZEOF_INT $ac_cv_sizeof_int
  11503. _ACEOF
  11504. # The cast to long int works around a bug in the HP C Compiler
  11505. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11506. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11507. # This bug is HP SR number 8606223364.
  11508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  11509. $as_echo_n "checking size of long... " >&6; }
  11510. if ${ac_cv_sizeof_long+:} false; then :
  11511. $as_echo_n "(cached) " >&6
  11512. else
  11513. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  11514. else
  11515. if test "$ac_cv_type_long" = yes; then
  11516. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11517. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11518. as_fn_error 77 "cannot compute sizeof (long)
  11519. See \`config.log' for more details" "$LINENO" 5; }
  11520. else
  11521. ac_cv_sizeof_long=0
  11522. fi
  11523. fi
  11524. fi
  11525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  11526. $as_echo "$ac_cv_sizeof_long" >&6; }
  11527. cat >>confdefs.h <<_ACEOF
  11528. #define SIZEOF_LONG $ac_cv_sizeof_long
  11529. _ACEOF
  11530. # The cast to long int works around a bug in the HP C Compiler
  11531. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11532. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11533. # This bug is HP SR number 8606223364.
  11534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  11535. $as_echo_n "checking size of long long... " >&6; }
  11536. if ${ac_cv_sizeof_long_long+:} false; then :
  11537. $as_echo_n "(cached) " >&6
  11538. else
  11539. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  11540. else
  11541. if test "$ac_cv_type_long_long" = yes; then
  11542. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11543. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11544. as_fn_error 77 "cannot compute sizeof (long long)
  11545. See \`config.log' for more details" "$LINENO" 5; }
  11546. else
  11547. ac_cv_sizeof_long_long=0
  11548. fi
  11549. fi
  11550. fi
  11551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  11552. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  11553. cat >>confdefs.h <<_ACEOF
  11554. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  11555. _ACEOF
  11556. case 2 in
  11557. $ac_cv_sizeof_int16_t) SIZE16="int16_t";;
  11558. $ac_cv_sizeof_short) SIZE16="short";;
  11559. $ac_cv_sizeof_int) SIZE16="int";;
  11560. esac
  11561. case 2 in
  11562. $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";;
  11563. $ac_cv_sizeof_short) USIZE16="unsigned short";;
  11564. $ac_cv_sizeof_int) USIZE16="unsigned int";;
  11565. $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";;
  11566. esac
  11567. case 4 in
  11568. $ac_cv_sizeof_int32_t) SIZE32="int32_t";;
  11569. $ac_cv_sizeof_short) SIZE32="short";;
  11570. $ac_cv_sizeof_int) SIZE32="int";;
  11571. $ac_cv_sizeof_long) SIZE32="long";;
  11572. esac
  11573. case 4 in
  11574. $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";;
  11575. $ac_cv_sizeof_short) USIZE32="unsigned short";;
  11576. $ac_cv_sizeof_int) USIZE32="unsigned int";;
  11577. $ac_cv_sizeof_long) USIZE32="unsigned long";;
  11578. $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";;
  11579. esac
  11580. case 8 in
  11581. $ac_cv_sizeof_int64_t) SIZE64="int64_t";;
  11582. $ac_cv_sizeof_int) SIZE64="int";;
  11583. $ac_cv_sizeof_long) SIZE64="long";;
  11584. $ac_cv_sizeof_long_long) SIZE64="long long";;
  11585. esac
  11586. case 8 in
  11587. $ac_cv_sizeof_uint64_t) USIZE64="uint64_t";;
  11588. $ac_cv_sizeof_unsigned_int) USIZE64="unsigned int";;
  11589. $ac_cv_sizeof_unsigned_long) USIZE64="unsigned long";;
  11590. $ac_cv_sizeof_unsigned_long_long) USIZE64="unsigned long long";;
  11591. esac
  11592. if test -z "$SIZE16"; then
  11593. as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5
  11594. fi
  11595. if test -z "$USIZE16"; then
  11596. as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5
  11597. fi
  11598. if test -z "$SIZE32"; then
  11599. as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5
  11600. fi
  11601. if test -z "$USIZE32"; then
  11602. as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5
  11603. fi
  11604. if test -z "$SIZE64"; then
  11605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64 bit type found on this platform!" >&5
  11606. $as_echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
  11607. fi
  11608. if test -z "$USIZE64"; then
  11609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No unsigned 64 bit type found on this platform!" >&5
  11610. $as_echo "$as_me: WARNING: No unsigned 64 bit type found on this platform!" >&2;}
  11611. fi
  11612. # Check whether --enable-crc was given.
  11613. if test "${enable_crc+set}" = set; then :
  11614. enableval=$enable_crc;
  11615. else
  11616. enable_crc=yes
  11617. fi
  11618. if test "$enable_crc" = "no"; then
  11619. DISABLE_CRC_TRUE=
  11620. DISABLE_CRC_FALSE='#'
  11621. else
  11622. DISABLE_CRC_TRUE='#'
  11623. DISABLE_CRC_FALSE=
  11624. fi
  11625. if test "$enable_crc" = "no"; then :
  11626. $as_echo "#define DISABLE_CRC 1" >>confdefs.h
  11627. fi
  11628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  11629. $as_echo_n "checking for working memcmp... " >&6; }
  11630. if ${ac_cv_func_memcmp_working+:} false; then :
  11631. $as_echo_n "(cached) " >&6
  11632. else
  11633. if test "$cross_compiling" = yes; then :
  11634. ac_cv_func_memcmp_working=no
  11635. else
  11636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11637. /* end confdefs.h. */
  11638. $ac_includes_default
  11639. int
  11640. main ()
  11641. {
  11642. /* Some versions of memcmp are not 8-bit clean. */
  11643. char c0 = '\100', c1 = '\200', c2 = '\201';
  11644. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11645. return 1;
  11646. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11647. or more and with at least one buffer not starting on a 4-byte boundary.
  11648. William Lewis provided this test program. */
  11649. {
  11650. char foo[21];
  11651. char bar[21];
  11652. int i;
  11653. for (i = 0; i < 4; i++)
  11654. {
  11655. char *a = foo + i;
  11656. char *b = bar + i;
  11657. strcpy (a, "--------01111111");
  11658. strcpy (b, "--------10000000");
  11659. if (memcmp (a, b, 16) >= 0)
  11660. return 1;
  11661. }
  11662. return 0;
  11663. }
  11664. ;
  11665. return 0;
  11666. }
  11667. _ACEOF
  11668. if ac_fn_c_try_run "$LINENO"; then :
  11669. ac_cv_func_memcmp_working=yes
  11670. else
  11671. ac_cv_func_memcmp_working=no
  11672. fi
  11673. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11674. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11675. fi
  11676. fi
  11677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  11678. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  11679. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  11680. *" memcmp.$ac_objext "* ) ;;
  11681. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  11682. ;;
  11683. esac
  11684. 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"
  11685. ac_config_headers="$ac_config_headers config.h"
  11686. cat >confcache <<\_ACEOF
  11687. # This file is a shell script that caches the results of configure
  11688. # tests run on this system so they can be shared between configure
  11689. # scripts and configure runs, see configure's option --config-cache.
  11690. # It is not useful on other systems. If it contains results you don't
  11691. # want to keep, you may remove or edit it.
  11692. #
  11693. # config.status only pays attention to the cache file if you give it
  11694. # the --recheck option to rerun configure.
  11695. #
  11696. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11697. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11698. # following values.
  11699. _ACEOF
  11700. # The following way of writing the cache mishandles newlines in values,
  11701. # but we know of no workaround that is simple, portable, and efficient.
  11702. # So, we kill variables containing newlines.
  11703. # Ultrix sh set writes to stderr and can't be redirected directly,
  11704. # and sets the high bit in the cache file unless we assign to the vars.
  11705. (
  11706. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11707. eval ac_val=\$$ac_var
  11708. case $ac_val in #(
  11709. *${as_nl}*)
  11710. case $ac_var in #(
  11711. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11712. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11713. esac
  11714. case $ac_var in #(
  11715. _ | IFS | as_nl) ;; #(
  11716. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11717. *) { eval $ac_var=; unset $ac_var;} ;;
  11718. esac ;;
  11719. esac
  11720. done
  11721. (set) 2>&1 |
  11722. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11723. *${as_nl}ac_space=\ *)
  11724. # `set' does not quote correctly, so add quotes: double-quote
  11725. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11726. sed -n \
  11727. "s/'/'\\\\''/g;
  11728. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11729. ;; #(
  11730. *)
  11731. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11732. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11733. ;;
  11734. esac |
  11735. sort
  11736. ) |
  11737. sed '
  11738. /^ac_cv_env_/b end
  11739. t clear
  11740. :clear
  11741. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11742. t end
  11743. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11744. :end' >>confcache
  11745. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11746. if test -w "$cache_file"; then
  11747. if test "x$cache_file" != "x/dev/null"; then
  11748. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11749. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11750. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11751. cat confcache >"$cache_file"
  11752. else
  11753. case $cache_file in #(
  11754. */* | ?:*)
  11755. mv -f confcache "$cache_file"$$ &&
  11756. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11757. *)
  11758. mv -f confcache "$cache_file" ;;
  11759. esac
  11760. fi
  11761. fi
  11762. else
  11763. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11764. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11765. fi
  11766. fi
  11767. rm -f confcache
  11768. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11769. # Let make expand exec_prefix.
  11770. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11771. DEFS=-DHAVE_CONFIG_H
  11772. ac_libobjs=
  11773. ac_ltlibobjs=
  11774. U=
  11775. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11776. # 1. Remove the extension, and $U if already installed.
  11777. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11778. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11779. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11780. # will be set to the directory where LIBOBJS objects are built.
  11781. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11782. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11783. done
  11784. LIBOBJS=$ac_libobjs
  11785. LTLIBOBJS=$ac_ltlibobjs
  11786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11787. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11788. if test -n "$am_sleep_pid"; then
  11789. # Hide warnings about reused PIDs.
  11790. wait $am_sleep_pid 2>/dev/null
  11791. fi
  11792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11793. $as_echo "done" >&6; }
  11794. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11795. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11796. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11797. fi
  11798. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11799. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11800. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11801. fi
  11802. if test -n "$EXEEXT"; then
  11803. am__EXEEXT_TRUE=
  11804. am__EXEEXT_FALSE='#'
  11805. else
  11806. am__EXEEXT_TRUE='#'
  11807. am__EXEEXT_FALSE=
  11808. fi
  11809. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11810. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  11811. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11812. fi
  11813. if test -z "${DISABLE_CRC_TRUE}" && test -z "${DISABLE_CRC_FALSE}"; then
  11814. as_fn_error $? "conditional \"DISABLE_CRC\" was never defined.
  11815. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11816. fi
  11817. : "${CONFIG_STATUS=./config.status}"
  11818. ac_write_fail=0
  11819. ac_clean_files_save=$ac_clean_files
  11820. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11821. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11822. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11823. as_write_fail=0
  11824. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11825. #! $SHELL
  11826. # Generated by $as_me.
  11827. # Run this file to recreate the current configuration.
  11828. # Compiler output produced by configure, useful for debugging
  11829. # configure, is in config.log if it exists.
  11830. debug=false
  11831. ac_cs_recheck=false
  11832. ac_cs_silent=false
  11833. SHELL=\${CONFIG_SHELL-$SHELL}
  11834. export SHELL
  11835. _ASEOF
  11836. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11837. ## -------------------- ##
  11838. ## M4sh Initialization. ##
  11839. ## -------------------- ##
  11840. # Be more Bourne compatible
  11841. DUALCASE=1; export DUALCASE # for MKS sh
  11842. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11843. emulate sh
  11844. NULLCMD=:
  11845. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11846. # is contrary to our usage. Disable this feature.
  11847. alias -g '${1+"$@"}'='"$@"'
  11848. setopt NO_GLOB_SUBST
  11849. else
  11850. case `(set -o) 2>/dev/null` in #(
  11851. *posix*) :
  11852. set -o posix ;; #(
  11853. *) :
  11854. ;;
  11855. esac
  11856. fi
  11857. as_nl='
  11858. '
  11859. export as_nl
  11860. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11861. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11862. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11863. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11864. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11865. # but without wasting forks for bash or zsh.
  11866. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11867. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11868. as_echo='print -r --'
  11869. as_echo_n='print -rn --'
  11870. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11871. as_echo='printf %s\n'
  11872. as_echo_n='printf %s'
  11873. else
  11874. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11875. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11876. as_echo_n='/usr/ucb/echo -n'
  11877. else
  11878. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11879. as_echo_n_body='eval
  11880. arg=$1;
  11881. case $arg in #(
  11882. *"$as_nl"*)
  11883. expr "X$arg" : "X\\(.*\\)$as_nl";
  11884. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11885. esac;
  11886. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11887. '
  11888. export as_echo_n_body
  11889. as_echo_n='sh -c $as_echo_n_body as_echo'
  11890. fi
  11891. export as_echo_body
  11892. as_echo='sh -c $as_echo_body as_echo'
  11893. fi
  11894. # The user is always right.
  11895. if test "${PATH_SEPARATOR+set}" != set; then
  11896. PATH_SEPARATOR=:
  11897. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11898. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11899. PATH_SEPARATOR=';'
  11900. }
  11901. fi
  11902. # IFS
  11903. # We need space, tab and new line, in precisely that order. Quoting is
  11904. # there to prevent editors from complaining about space-tab.
  11905. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11906. # splitting by setting IFS to empty value.)
  11907. IFS=" "" $as_nl"
  11908. # Find who we are. Look in the path if we contain no directory separator.
  11909. as_myself=
  11910. case $0 in #((
  11911. *[\\/]* ) as_myself=$0 ;;
  11912. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11913. for as_dir in $PATH
  11914. do
  11915. IFS=$as_save_IFS
  11916. test -z "$as_dir" && as_dir=.
  11917. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11918. done
  11919. IFS=$as_save_IFS
  11920. ;;
  11921. esac
  11922. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11923. # in which case we are not to be found in the path.
  11924. if test "x$as_myself" = x; then
  11925. as_myself=$0
  11926. fi
  11927. if test ! -f "$as_myself"; then
  11928. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11929. exit 1
  11930. fi
  11931. # Unset variables that we do not need and which cause bugs (e.g. in
  11932. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11933. # suppresses any "Segmentation fault" message there. '((' could
  11934. # trigger a bug in pdksh 5.2.14.
  11935. for as_var in BASH_ENV ENV MAIL MAILPATH
  11936. do eval test x\${$as_var+set} = xset \
  11937. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11938. done
  11939. PS1='$ '
  11940. PS2='> '
  11941. PS4='+ '
  11942. # NLS nuisances.
  11943. LC_ALL=C
  11944. export LC_ALL
  11945. LANGUAGE=C
  11946. export LANGUAGE
  11947. # CDPATH.
  11948. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11949. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11950. # ----------------------------------------
  11951. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11952. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11953. # script with STATUS, using 1 if that was 0.
  11954. as_fn_error ()
  11955. {
  11956. as_status=$1; test $as_status -eq 0 && as_status=1
  11957. if test "$4"; then
  11958. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11959. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11960. fi
  11961. $as_echo "$as_me: error: $2" >&2
  11962. as_fn_exit $as_status
  11963. } # as_fn_error
  11964. # as_fn_set_status STATUS
  11965. # -----------------------
  11966. # Set $? to STATUS, without forking.
  11967. as_fn_set_status ()
  11968. {
  11969. return $1
  11970. } # as_fn_set_status
  11971. # as_fn_exit STATUS
  11972. # -----------------
  11973. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11974. as_fn_exit ()
  11975. {
  11976. set +e
  11977. as_fn_set_status $1
  11978. exit $1
  11979. } # as_fn_exit
  11980. # as_fn_unset VAR
  11981. # ---------------
  11982. # Portably unset VAR.
  11983. as_fn_unset ()
  11984. {
  11985. { eval $1=; unset $1;}
  11986. }
  11987. as_unset=as_fn_unset
  11988. # as_fn_append VAR VALUE
  11989. # ----------------------
  11990. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11991. # advantage of any shell optimizations that allow amortized linear growth over
  11992. # repeated appends, instead of the typical quadratic growth present in naive
  11993. # implementations.
  11994. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11995. eval 'as_fn_append ()
  11996. {
  11997. eval $1+=\$2
  11998. }'
  11999. else
  12000. as_fn_append ()
  12001. {
  12002. eval $1=\$$1\$2
  12003. }
  12004. fi # as_fn_append
  12005. # as_fn_arith ARG...
  12006. # ------------------
  12007. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12008. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12009. # must be portable across $(()) and expr.
  12010. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12011. eval 'as_fn_arith ()
  12012. {
  12013. as_val=$(( $* ))
  12014. }'
  12015. else
  12016. as_fn_arith ()
  12017. {
  12018. as_val=`expr "$@" || test $? -eq 1`
  12019. }
  12020. fi # as_fn_arith
  12021. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12022. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12023. as_expr=expr
  12024. else
  12025. as_expr=false
  12026. fi
  12027. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12028. as_basename=basename
  12029. else
  12030. as_basename=false
  12031. fi
  12032. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12033. as_dirname=dirname
  12034. else
  12035. as_dirname=false
  12036. fi
  12037. as_me=`$as_basename -- "$0" ||
  12038. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12039. X"$0" : 'X\(//\)$' \| \
  12040. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12041. $as_echo X/"$0" |
  12042. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12043. s//\1/
  12044. q
  12045. }
  12046. /^X\/\(\/\/\)$/{
  12047. s//\1/
  12048. q
  12049. }
  12050. /^X\/\(\/\).*/{
  12051. s//\1/
  12052. q
  12053. }
  12054. s/.*/./; q'`
  12055. # Avoid depending upon Character Ranges.
  12056. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12057. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12058. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12059. as_cr_digits='0123456789'
  12060. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12061. ECHO_C= ECHO_N= ECHO_T=
  12062. case `echo -n x` in #(((((
  12063. -n*)
  12064. case `echo 'xy\c'` in
  12065. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12066. xy) ECHO_C='\c';;
  12067. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12068. ECHO_T=' ';;
  12069. esac;;
  12070. *)
  12071. ECHO_N='-n';;
  12072. esac
  12073. rm -f conf$$ conf$$.exe conf$$.file
  12074. if test -d conf$$.dir; then
  12075. rm -f conf$$.dir/conf$$.file
  12076. else
  12077. rm -f conf$$.dir
  12078. mkdir conf$$.dir 2>/dev/null
  12079. fi
  12080. if (echo >conf$$.file) 2>/dev/null; then
  12081. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12082. as_ln_s='ln -s'
  12083. # ... but there are two gotchas:
  12084. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12085. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12086. # In both cases, we have to default to `cp -pR'.
  12087. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12088. as_ln_s='cp -pR'
  12089. elif ln conf$$.file conf$$ 2>/dev/null; then
  12090. as_ln_s=ln
  12091. else
  12092. as_ln_s='cp -pR'
  12093. fi
  12094. else
  12095. as_ln_s='cp -pR'
  12096. fi
  12097. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12098. rmdir conf$$.dir 2>/dev/null
  12099. # as_fn_mkdir_p
  12100. # -------------
  12101. # Create "$as_dir" as a directory, including parents if necessary.
  12102. as_fn_mkdir_p ()
  12103. {
  12104. case $as_dir in #(
  12105. -*) as_dir=./$as_dir;;
  12106. esac
  12107. test -d "$as_dir" || eval $as_mkdir_p || {
  12108. as_dirs=
  12109. while :; do
  12110. case $as_dir in #(
  12111. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12112. *) as_qdir=$as_dir;;
  12113. esac
  12114. as_dirs="'$as_qdir' $as_dirs"
  12115. as_dir=`$as_dirname -- "$as_dir" ||
  12116. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12117. X"$as_dir" : 'X\(//\)[^/]' \| \
  12118. X"$as_dir" : 'X\(//\)$' \| \
  12119. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12120. $as_echo X"$as_dir" |
  12121. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12122. s//\1/
  12123. q
  12124. }
  12125. /^X\(\/\/\)[^/].*/{
  12126. s//\1/
  12127. q
  12128. }
  12129. /^X\(\/\/\)$/{
  12130. s//\1/
  12131. q
  12132. }
  12133. /^X\(\/\).*/{
  12134. s//\1/
  12135. q
  12136. }
  12137. s/.*/./; q'`
  12138. test -d "$as_dir" && break
  12139. done
  12140. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12141. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12142. } # as_fn_mkdir_p
  12143. if mkdir -p . 2>/dev/null; then
  12144. as_mkdir_p='mkdir -p "$as_dir"'
  12145. else
  12146. test -d ./-p && rmdir ./-p
  12147. as_mkdir_p=false
  12148. fi
  12149. # as_fn_executable_p FILE
  12150. # -----------------------
  12151. # Test if FILE is an executable regular file.
  12152. as_fn_executable_p ()
  12153. {
  12154. test -f "$1" && test -x "$1"
  12155. } # as_fn_executable_p
  12156. as_test_x='test -x'
  12157. as_executable_p=as_fn_executable_p
  12158. # Sed expression to map a string onto a valid CPP name.
  12159. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12160. # Sed expression to map a string onto a valid variable name.
  12161. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12162. exec 6>&1
  12163. ## ----------------------------------- ##
  12164. ## Main body of $CONFIG_STATUS script. ##
  12165. ## ----------------------------------- ##
  12166. _ASEOF
  12167. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12168. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12169. # Save the log message, to keep $0 and so on meaningful, and to
  12170. # report actual input values of CONFIG_FILES etc. instead of their
  12171. # values after options handling.
  12172. ac_log="
  12173. This file was extended by libogg $as_me 1.3.5, which was
  12174. generated by GNU Autoconf 2.69. Invocation command line was
  12175. CONFIG_FILES = $CONFIG_FILES
  12176. CONFIG_HEADERS = $CONFIG_HEADERS
  12177. CONFIG_LINKS = $CONFIG_LINKS
  12178. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12179. $ $0 $@
  12180. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12181. "
  12182. _ACEOF
  12183. case $ac_config_files in *"
  12184. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12185. esac
  12186. case $ac_config_headers in *"
  12187. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12188. esac
  12189. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12190. # Files that config.status was made for.
  12191. config_files="$ac_config_files"
  12192. config_headers="$ac_config_headers"
  12193. config_commands="$ac_config_commands"
  12194. _ACEOF
  12195. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12196. ac_cs_usage="\
  12197. \`$as_me' instantiates files and other configuration actions
  12198. from templates according to the current configuration. Unless the files
  12199. and actions are specified as TAGs, all are instantiated by default.
  12200. Usage: $0 [OPTION]... [TAG]...
  12201. -h, --help print this help, then exit
  12202. -V, --version print version number and configuration settings, then exit
  12203. --config print configuration, then exit
  12204. -q, --quiet, --silent
  12205. do not print progress messages
  12206. -d, --debug don't remove temporary files
  12207. --recheck update $as_me by reconfiguring in the same conditions
  12208. --file=FILE[:TEMPLATE]
  12209. instantiate the configuration file FILE
  12210. --header=FILE[:TEMPLATE]
  12211. instantiate the configuration header FILE
  12212. Configuration files:
  12213. $config_files
  12214. Configuration headers:
  12215. $config_headers
  12216. Configuration commands:
  12217. $config_commands
  12218. Report bugs to <[email protected]>."
  12219. _ACEOF
  12220. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12221. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12222. ac_cs_version="\\
  12223. libogg config.status 1.3.5
  12224. configured by $0, generated by GNU Autoconf 2.69,
  12225. with options \\"\$ac_cs_config\\"
  12226. Copyright (C) 2012 Free Software Foundation, Inc.
  12227. This config.status script is free software; the Free Software Foundation
  12228. gives unlimited permission to copy, distribute and modify it."
  12229. ac_pwd='$ac_pwd'
  12230. srcdir='$srcdir'
  12231. INSTALL='$INSTALL'
  12232. MKDIR_P='$MKDIR_P'
  12233. AWK='$AWK'
  12234. test -n "\$AWK" || AWK=awk
  12235. _ACEOF
  12236. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12237. # The default lists apply if the user does not specify any file.
  12238. ac_need_defaults=:
  12239. while test $# != 0
  12240. do
  12241. case $1 in
  12242. --*=?*)
  12243. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12244. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12245. ac_shift=:
  12246. ;;
  12247. --*=)
  12248. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12249. ac_optarg=
  12250. ac_shift=:
  12251. ;;
  12252. *)
  12253. ac_option=$1
  12254. ac_optarg=$2
  12255. ac_shift=shift
  12256. ;;
  12257. esac
  12258. case $ac_option in
  12259. # Handling of the options.
  12260. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12261. ac_cs_recheck=: ;;
  12262. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12263. $as_echo "$ac_cs_version"; exit ;;
  12264. --config | --confi | --conf | --con | --co | --c )
  12265. $as_echo "$ac_cs_config"; exit ;;
  12266. --debug | --debu | --deb | --de | --d | -d )
  12267. debug=: ;;
  12268. --file | --fil | --fi | --f )
  12269. $ac_shift
  12270. case $ac_optarg in
  12271. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12272. '') as_fn_error $? "missing file argument" ;;
  12273. esac
  12274. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12275. ac_need_defaults=false;;
  12276. --header | --heade | --head | --hea )
  12277. $ac_shift
  12278. case $ac_optarg in
  12279. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12280. esac
  12281. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12282. ac_need_defaults=false;;
  12283. --he | --h)
  12284. # Conflict between --help and --header
  12285. as_fn_error $? "ambiguous option: \`$1'
  12286. Try \`$0 --help' for more information.";;
  12287. --help | --hel | -h )
  12288. $as_echo "$ac_cs_usage"; exit ;;
  12289. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12290. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12291. ac_cs_silent=: ;;
  12292. # This is an error.
  12293. -*) as_fn_error $? "unrecognized option: \`$1'
  12294. Try \`$0 --help' for more information." ;;
  12295. *) as_fn_append ac_config_targets " $1"
  12296. ac_need_defaults=false ;;
  12297. esac
  12298. shift
  12299. done
  12300. ac_configure_extra_args=
  12301. if $ac_cs_silent; then
  12302. exec 6>/dev/null
  12303. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12304. fi
  12305. _ACEOF
  12306. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12307. if \$ac_cs_recheck; then
  12308. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12309. shift
  12310. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12311. CONFIG_SHELL='$SHELL'
  12312. export CONFIG_SHELL
  12313. exec "\$@"
  12314. fi
  12315. _ACEOF
  12316. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12317. exec 5>>config.log
  12318. {
  12319. echo
  12320. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12321. ## Running $as_me. ##
  12322. _ASBOX
  12323. $as_echo "$ac_log"
  12324. } >&5
  12325. _ACEOF
  12326. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12327. #
  12328. # INIT-COMMANDS
  12329. #
  12330. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12331. # if CDPATH is set.
  12332. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12333. sed_quote_subst='$sed_quote_subst'
  12334. double_quote_subst='$double_quote_subst'
  12335. delay_variable_subst='$delay_variable_subst'
  12336. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12337. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12338. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12339. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12340. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12341. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12342. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  12343. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12344. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12345. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  12346. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12347. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12348. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12349. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12350. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12351. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12352. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12353. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12354. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12355. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12356. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12357. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12358. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12359. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12360. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12361. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12362. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12363. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12364. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12365. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12366. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  12367. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  12368. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12369. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12370. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12371. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12372. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12373. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  12374. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  12375. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  12376. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  12377. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12378. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12379. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  12380. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12381. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12382. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12383. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12384. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12385. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12386. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12387. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12388. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12389. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12390. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12391. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12392. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  12393. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12394. 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"`'
  12395. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  12396. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  12397. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  12398. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  12399. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12400. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12401. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12402. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12403. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12404. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12405. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12406. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12407. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  12408. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12409. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12410. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12411. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12412. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12413. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12414. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12415. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12416. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12417. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12418. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12419. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12420. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12421. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12422. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12423. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12424. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12425. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12426. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12427. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12428. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12429. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12430. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12431. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12432. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12433. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12434. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12435. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12436. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12437. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12438. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12439. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12440. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12441. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12442. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12443. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12444. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  12445. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12446. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12447. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12448. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12449. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12450. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12451. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12452. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12453. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12454. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12455. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12456. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12457. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12458. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12459. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12460. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12461. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12462. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12463. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  12464. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  12465. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12466. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12467. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12468. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12469. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12470. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12471. LTCC='$LTCC'
  12472. LTCFLAGS='$LTCFLAGS'
  12473. compiler='$compiler_DEFAULT'
  12474. # A function that is used when there is no print builtin or printf.
  12475. func_fallback_echo ()
  12476. {
  12477. eval 'cat <<_LTECHO_EOF
  12478. \$1
  12479. _LTECHO_EOF'
  12480. }
  12481. # Quote evaled strings.
  12482. for var in SHELL \
  12483. ECHO \
  12484. PATH_SEPARATOR \
  12485. SED \
  12486. GREP \
  12487. EGREP \
  12488. FGREP \
  12489. LD \
  12490. NM \
  12491. LN_S \
  12492. lt_SP2NL \
  12493. lt_NL2SP \
  12494. reload_flag \
  12495. OBJDUMP \
  12496. deplibs_check_method \
  12497. file_magic_cmd \
  12498. file_magic_glob \
  12499. want_nocaseglob \
  12500. DLLTOOL \
  12501. sharedlib_from_linklib_cmd \
  12502. AR \
  12503. AR_FLAGS \
  12504. archiver_list_spec \
  12505. STRIP \
  12506. RANLIB \
  12507. CC \
  12508. CFLAGS \
  12509. compiler \
  12510. lt_cv_sys_global_symbol_pipe \
  12511. lt_cv_sys_global_symbol_to_cdecl \
  12512. lt_cv_sys_global_symbol_to_import \
  12513. lt_cv_sys_global_symbol_to_c_name_address \
  12514. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12515. lt_cv_nm_interface \
  12516. nm_file_list_spec \
  12517. lt_cv_truncate_bin \
  12518. lt_prog_compiler_no_builtin_flag \
  12519. lt_prog_compiler_pic \
  12520. lt_prog_compiler_wl \
  12521. lt_prog_compiler_static \
  12522. lt_cv_prog_compiler_c_o \
  12523. need_locks \
  12524. MANIFEST_TOOL \
  12525. DSYMUTIL \
  12526. NMEDIT \
  12527. LIPO \
  12528. OTOOL \
  12529. OTOOL64 \
  12530. shrext_cmds \
  12531. export_dynamic_flag_spec \
  12532. whole_archive_flag_spec \
  12533. compiler_needs_object \
  12534. with_gnu_ld \
  12535. allow_undefined_flag \
  12536. no_undefined_flag \
  12537. hardcode_libdir_flag_spec \
  12538. hardcode_libdir_separator \
  12539. exclude_expsyms \
  12540. include_expsyms \
  12541. file_list_spec \
  12542. variables_saved_for_relink \
  12543. libname_spec \
  12544. library_names_spec \
  12545. soname_spec \
  12546. install_override_mode \
  12547. finish_eval \
  12548. old_striplib \
  12549. striplib; do
  12550. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12551. *[\\\\\\\`\\"\\\$]*)
  12552. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  12553. ;;
  12554. *)
  12555. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12556. ;;
  12557. esac
  12558. done
  12559. # Double-quote double-evaled strings.
  12560. for var in reload_cmds \
  12561. old_postinstall_cmds \
  12562. old_postuninstall_cmds \
  12563. old_archive_cmds \
  12564. extract_expsyms_cmds \
  12565. old_archive_from_new_cmds \
  12566. old_archive_from_expsyms_cmds \
  12567. archive_cmds \
  12568. archive_expsym_cmds \
  12569. module_cmds \
  12570. module_expsym_cmds \
  12571. export_symbols_cmds \
  12572. prelink_cmds \
  12573. postlink_cmds \
  12574. postinstall_cmds \
  12575. postuninstall_cmds \
  12576. finish_cmds \
  12577. sys_lib_search_path_spec \
  12578. configure_time_dlsearch_path \
  12579. configure_time_lt_sys_library_path; do
  12580. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12581. *[\\\\\\\`\\"\\\$]*)
  12582. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  12583. ;;
  12584. *)
  12585. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12586. ;;
  12587. esac
  12588. done
  12589. ac_aux_dir='$ac_aux_dir'
  12590. # See if we are running on zsh, and set the options that allow our
  12591. # commands through without removal of \ escapes INIT.
  12592. if test -n "\${ZSH_VERSION+set}"; then
  12593. setopt NO_GLOB_SUBST
  12594. fi
  12595. PACKAGE='$PACKAGE'
  12596. VERSION='$VERSION'
  12597. RM='$RM'
  12598. ofile='$ofile'
  12599. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  12600. _ACEOF
  12601. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12602. # Handling of arguments.
  12603. for ac_config_target in $ac_config_targets
  12604. do
  12605. case $ac_config_target in
  12606. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12607. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12608. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12609. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12610. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12611. "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
  12612. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  12613. "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
  12614. "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
  12615. "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
  12616. "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
  12617. "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
  12618. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12619. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12620. esac
  12621. done
  12622. # If the user did not use the arguments to specify the items to instantiate,
  12623. # then the envvar interface is used. Set only those that are not.
  12624. # We use the long form for the default assignment because of an extremely
  12625. # bizarre bug on SunOS 4.1.3.
  12626. if $ac_need_defaults; then
  12627. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12628. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12629. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12630. fi
  12631. # Have a temporary directory for convenience. Make it in the build tree
  12632. # simply because there is no reason against having it here, and in addition,
  12633. # creating and moving files from /tmp can sometimes cause problems.
  12634. # Hook for its removal unless debugging.
  12635. # Note that there is a small window in which the directory will not be cleaned:
  12636. # after its creation but before its name has been assigned to `$tmp'.
  12637. $debug ||
  12638. {
  12639. tmp= ac_tmp=
  12640. trap 'exit_status=$?
  12641. : "${ac_tmp:=$tmp}"
  12642. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12643. ' 0
  12644. trap 'as_fn_exit 1' 1 2 13 15
  12645. }
  12646. # Create a (secure) tmp directory for tmp files.
  12647. {
  12648. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12649. test -d "$tmp"
  12650. } ||
  12651. {
  12652. tmp=./conf$$-$RANDOM
  12653. (umask 077 && mkdir "$tmp")
  12654. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12655. ac_tmp=$tmp
  12656. # Set up the scripts for CONFIG_FILES section.
  12657. # No need to generate them if there are no CONFIG_FILES.
  12658. # This happens for instance with `./config.status config.h'.
  12659. if test -n "$CONFIG_FILES"; then
  12660. ac_cr=`echo X | tr X '\015'`
  12661. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12662. # But we know of no other shell where ac_cr would be empty at this
  12663. # point, so we can use a bashism as a fallback.
  12664. if test "x$ac_cr" = x; then
  12665. eval ac_cr=\$\'\\r\'
  12666. fi
  12667. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12668. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12669. ac_cs_awk_cr='\\r'
  12670. else
  12671. ac_cs_awk_cr=$ac_cr
  12672. fi
  12673. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12674. _ACEOF
  12675. {
  12676. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12677. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12678. echo "_ACEOF"
  12679. } >conf$$subs.sh ||
  12680. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12681. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12682. ac_delim='%!_!# '
  12683. for ac_last_try in false false false false false :; do
  12684. . ./conf$$subs.sh ||
  12685. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12686. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12687. if test $ac_delim_n = $ac_delim_num; then
  12688. break
  12689. elif $ac_last_try; then
  12690. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12691. else
  12692. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12693. fi
  12694. done
  12695. rm -f conf$$subs.sh
  12696. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12697. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12698. _ACEOF
  12699. sed -n '
  12700. h
  12701. s/^/S["/; s/!.*/"]=/
  12702. p
  12703. g
  12704. s/^[^!]*!//
  12705. :repl
  12706. t repl
  12707. s/'"$ac_delim"'$//
  12708. t delim
  12709. :nl
  12710. h
  12711. s/\(.\{148\}\)..*/\1/
  12712. t more1
  12713. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12714. p
  12715. n
  12716. b repl
  12717. :more1
  12718. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12719. p
  12720. g
  12721. s/.\{148\}//
  12722. t nl
  12723. :delim
  12724. h
  12725. s/\(.\{148\}\)..*/\1/
  12726. t more2
  12727. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12728. p
  12729. b
  12730. :more2
  12731. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12732. p
  12733. g
  12734. s/.\{148\}//
  12735. t delim
  12736. ' <conf$$subs.awk | sed '
  12737. /^[^""]/{
  12738. N
  12739. s/\n//
  12740. }
  12741. ' >>$CONFIG_STATUS || ac_write_fail=1
  12742. rm -f conf$$subs.awk
  12743. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12744. _ACAWK
  12745. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12746. for (key in S) S_is_set[key] = 1
  12747. FS = ""
  12748. }
  12749. {
  12750. line = $ 0
  12751. nfields = split(line, field, "@")
  12752. substed = 0
  12753. len = length(field[1])
  12754. for (i = 2; i < nfields; i++) {
  12755. key = field[i]
  12756. keylen = length(key)
  12757. if (S_is_set[key]) {
  12758. value = S[key]
  12759. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12760. len += length(value) + length(field[++i])
  12761. substed = 1
  12762. } else
  12763. len += 1 + keylen
  12764. }
  12765. print line
  12766. }
  12767. _ACAWK
  12768. _ACEOF
  12769. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12770. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12771. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12772. else
  12773. cat
  12774. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12775. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12776. _ACEOF
  12777. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12778. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12779. # trailing colons and then remove the whole line if VPATH becomes empty
  12780. # (actually we leave an empty line to preserve line numbers).
  12781. if test "x$srcdir" = x.; then
  12782. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12783. h
  12784. s///
  12785. s/^/:/
  12786. s/[ ]*$/:/
  12787. s/:\$(srcdir):/:/g
  12788. s/:\${srcdir}:/:/g
  12789. s/:@srcdir@:/:/g
  12790. s/^:*//
  12791. s/:*$//
  12792. x
  12793. s/\(=[ ]*\).*/\1/
  12794. G
  12795. s/\n//
  12796. s/^[^=]*=[ ]*$//
  12797. }'
  12798. fi
  12799. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12800. fi # test -n "$CONFIG_FILES"
  12801. # Set up the scripts for CONFIG_HEADERS section.
  12802. # No need to generate them if there are no CONFIG_HEADERS.
  12803. # This happens for instance with `./config.status Makefile'.
  12804. if test -n "$CONFIG_HEADERS"; then
  12805. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12806. BEGIN {
  12807. _ACEOF
  12808. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12809. # here-document in config.status, that substitutes the proper values into
  12810. # config.h.in to produce config.h.
  12811. # Create a delimiter string that does not exist in confdefs.h, to ease
  12812. # handling of long lines.
  12813. ac_delim='%!_!# '
  12814. for ac_last_try in false false :; do
  12815. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12816. if test -z "$ac_tt"; then
  12817. break
  12818. elif $ac_last_try; then
  12819. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12820. else
  12821. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12822. fi
  12823. done
  12824. # For the awk script, D is an array of macro values keyed by name,
  12825. # likewise P contains macro parameters if any. Preserve backslash
  12826. # newline sequences.
  12827. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12828. sed -n '
  12829. s/.\{148\}/&'"$ac_delim"'/g
  12830. t rset
  12831. :rset
  12832. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12833. t def
  12834. d
  12835. :def
  12836. s/\\$//
  12837. t bsnl
  12838. s/["\\]/\\&/g
  12839. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12840. D["\1"]=" \3"/p
  12841. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12842. d
  12843. :bsnl
  12844. s/["\\]/\\&/g
  12845. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12846. D["\1"]=" \3\\\\\\n"\\/p
  12847. t cont
  12848. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12849. t cont
  12850. d
  12851. :cont
  12852. n
  12853. s/.\{148\}/&'"$ac_delim"'/g
  12854. t clear
  12855. :clear
  12856. s/\\$//
  12857. t bsnlc
  12858. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12859. d
  12860. :bsnlc
  12861. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12862. b cont
  12863. ' <confdefs.h | sed '
  12864. s/'"$ac_delim"'/"\\\
  12865. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12866. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12867. for (key in D) D_is_set[key] = 1
  12868. FS = ""
  12869. }
  12870. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12871. line = \$ 0
  12872. split(line, arg, " ")
  12873. if (arg[1] == "#") {
  12874. defundef = arg[2]
  12875. mac1 = arg[3]
  12876. } else {
  12877. defundef = substr(arg[1], 2)
  12878. mac1 = arg[2]
  12879. }
  12880. split(mac1, mac2, "(") #)
  12881. macro = mac2[1]
  12882. prefix = substr(line, 1, index(line, defundef) - 1)
  12883. if (D_is_set[macro]) {
  12884. # Preserve the white space surrounding the "#".
  12885. print prefix "define", macro P[macro] D[macro]
  12886. next
  12887. } else {
  12888. # Replace #undef with comments. This is necessary, for example,
  12889. # in the case of _POSIX_SOURCE, which is predefined and required
  12890. # on some systems where configure will not decide to define it.
  12891. if (defundef == "undef") {
  12892. print "/*", prefix defundef, macro, "*/"
  12893. next
  12894. }
  12895. }
  12896. }
  12897. { print }
  12898. _ACAWK
  12899. _ACEOF
  12900. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12901. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12902. fi # test -n "$CONFIG_HEADERS"
  12903. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12904. shift
  12905. for ac_tag
  12906. do
  12907. case $ac_tag in
  12908. :[FHLC]) ac_mode=$ac_tag; continue;;
  12909. esac
  12910. case $ac_mode$ac_tag in
  12911. :[FHL]*:*);;
  12912. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12913. :[FH]-) ac_tag=-:-;;
  12914. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12915. esac
  12916. ac_save_IFS=$IFS
  12917. IFS=:
  12918. set x $ac_tag
  12919. IFS=$ac_save_IFS
  12920. shift
  12921. ac_file=$1
  12922. shift
  12923. case $ac_mode in
  12924. :L) ac_source=$1;;
  12925. :[FH])
  12926. ac_file_inputs=
  12927. for ac_f
  12928. do
  12929. case $ac_f in
  12930. -) ac_f="$ac_tmp/stdin";;
  12931. *) # Look for the file first in the build tree, then in the source tree
  12932. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12933. # because $ac_f cannot contain `:'.
  12934. test -f "$ac_f" ||
  12935. case $ac_f in
  12936. [\\/$]*) false;;
  12937. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12938. esac ||
  12939. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12940. esac
  12941. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12942. as_fn_append ac_file_inputs " '$ac_f'"
  12943. done
  12944. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12945. # use $as_me), people would be surprised to read:
  12946. # /* config.h. Generated by config.status. */
  12947. configure_input='Generated from '`
  12948. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12949. `' by configure.'
  12950. if test x"$ac_file" != x-; then
  12951. configure_input="$ac_file. $configure_input"
  12952. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12953. $as_echo "$as_me: creating $ac_file" >&6;}
  12954. fi
  12955. # Neutralize special characters interpreted by sed in replacement strings.
  12956. case $configure_input in #(
  12957. *\&* | *\|* | *\\* )
  12958. ac_sed_conf_input=`$as_echo "$configure_input" |
  12959. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12960. *) ac_sed_conf_input=$configure_input;;
  12961. esac
  12962. case $ac_tag in
  12963. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12964. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12965. esac
  12966. ;;
  12967. esac
  12968. ac_dir=`$as_dirname -- "$ac_file" ||
  12969. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12970. X"$ac_file" : 'X\(//\)[^/]' \| \
  12971. X"$ac_file" : 'X\(//\)$' \| \
  12972. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12973. $as_echo X"$ac_file" |
  12974. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12975. s//\1/
  12976. q
  12977. }
  12978. /^X\(\/\/\)[^/].*/{
  12979. s//\1/
  12980. q
  12981. }
  12982. /^X\(\/\/\)$/{
  12983. s//\1/
  12984. q
  12985. }
  12986. /^X\(\/\).*/{
  12987. s//\1/
  12988. q
  12989. }
  12990. s/.*/./; q'`
  12991. as_dir="$ac_dir"; as_fn_mkdir_p
  12992. ac_builddir=.
  12993. case "$ac_dir" in
  12994. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12995. *)
  12996. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12997. # A ".." for each directory in $ac_dir_suffix.
  12998. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12999. case $ac_top_builddir_sub in
  13000. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13001. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13002. esac ;;
  13003. esac
  13004. ac_abs_top_builddir=$ac_pwd
  13005. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13006. # for backward compatibility:
  13007. ac_top_builddir=$ac_top_build_prefix
  13008. case $srcdir in
  13009. .) # We are building in place.
  13010. ac_srcdir=.
  13011. ac_top_srcdir=$ac_top_builddir_sub
  13012. ac_abs_top_srcdir=$ac_pwd ;;
  13013. [\\/]* | ?:[\\/]* ) # Absolute name.
  13014. ac_srcdir=$srcdir$ac_dir_suffix;
  13015. ac_top_srcdir=$srcdir
  13016. ac_abs_top_srcdir=$srcdir ;;
  13017. *) # Relative name.
  13018. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13019. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13020. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13021. esac
  13022. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13023. case $ac_mode in
  13024. :F)
  13025. #
  13026. # CONFIG_FILE
  13027. #
  13028. case $INSTALL in
  13029. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13030. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13031. esac
  13032. ac_MKDIR_P=$MKDIR_P
  13033. case $MKDIR_P in
  13034. [\\/$]* | ?:[\\/]* ) ;;
  13035. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13036. esac
  13037. _ACEOF
  13038. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13039. # If the template does not know about datarootdir, expand it.
  13040. # FIXME: This hack should be removed a few years after 2.60.
  13041. ac_datarootdir_hack=; ac_datarootdir_seen=
  13042. ac_sed_dataroot='
  13043. /datarootdir/ {
  13044. p
  13045. q
  13046. }
  13047. /@datadir@/p
  13048. /@docdir@/p
  13049. /@infodir@/p
  13050. /@localedir@/p
  13051. /@mandir@/p'
  13052. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13053. *datarootdir*) ac_datarootdir_seen=yes;;
  13054. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13055. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13056. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13057. _ACEOF
  13058. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13059. ac_datarootdir_hack='
  13060. s&@datadir@&$datadir&g
  13061. s&@docdir@&$docdir&g
  13062. s&@infodir@&$infodir&g
  13063. s&@localedir@&$localedir&g
  13064. s&@mandir@&$mandir&g
  13065. s&\\\${datarootdir}&$datarootdir&g' ;;
  13066. esac
  13067. _ACEOF
  13068. # Neutralize VPATH when `$srcdir' = `.'.
  13069. # Shell code in configure.ac might set extrasub.
  13070. # FIXME: do we really want to maintain this feature?
  13071. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13072. ac_sed_extra="$ac_vpsub
  13073. $extrasub
  13074. _ACEOF
  13075. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13076. :t
  13077. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13078. s|@configure_input@|$ac_sed_conf_input|;t t
  13079. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13080. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13081. s&@srcdir@&$ac_srcdir&;t t
  13082. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13083. s&@top_srcdir@&$ac_top_srcdir&;t t
  13084. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13085. s&@builddir@&$ac_builddir&;t t
  13086. s&@abs_builddir@&$ac_abs_builddir&;t t
  13087. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13088. s&@INSTALL@&$ac_INSTALL&;t t
  13089. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13090. $ac_datarootdir_hack
  13091. "
  13092. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13093. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13094. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13095. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13096. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13097. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13099. which seems to be undefined. Please make sure it is defined" >&5
  13100. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13101. which seems to be undefined. Please make sure it is defined" >&2;}
  13102. rm -f "$ac_tmp/stdin"
  13103. case $ac_file in
  13104. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13105. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13106. esac \
  13107. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13108. ;;
  13109. :H)
  13110. #
  13111. # CONFIG_HEADER
  13112. #
  13113. if test x"$ac_file" != x-; then
  13114. {
  13115. $as_echo "/* $configure_input */" \
  13116. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13117. } >"$ac_tmp/config.h" \
  13118. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13119. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13120. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13121. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13122. else
  13123. rm -f "$ac_file"
  13124. mv "$ac_tmp/config.h" "$ac_file" \
  13125. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13126. fi
  13127. else
  13128. $as_echo "/* $configure_input */" \
  13129. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13130. || as_fn_error $? "could not create -" "$LINENO" 5
  13131. fi
  13132. # Compute "$ac_file"'s index in $config_headers.
  13133. _am_arg="$ac_file"
  13134. _am_stamp_count=1
  13135. for _am_header in $config_headers :; do
  13136. case $_am_header in
  13137. $_am_arg | $_am_arg:* )
  13138. break ;;
  13139. * )
  13140. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13141. esac
  13142. done
  13143. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13144. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13145. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13146. X"$_am_arg" : 'X\(//\)$' \| \
  13147. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13148. $as_echo X"$_am_arg" |
  13149. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13150. s//\1/
  13151. q
  13152. }
  13153. /^X\(\/\/\)[^/].*/{
  13154. s//\1/
  13155. q
  13156. }
  13157. /^X\(\/\/\)$/{
  13158. s//\1/
  13159. q
  13160. }
  13161. /^X\(\/\).*/{
  13162. s//\1/
  13163. q
  13164. }
  13165. s/.*/./; q'`/stamp-h$_am_stamp_count
  13166. ;;
  13167. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13168. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13169. ;;
  13170. esac
  13171. case $ac_file$ac_mode in
  13172. "libtool":C)
  13173. # See if we are running on zsh, and set the options that allow our
  13174. # commands through without removal of \ escapes.
  13175. if test -n "${ZSH_VERSION+set}"; then
  13176. setopt NO_GLOB_SUBST
  13177. fi
  13178. cfgfile=${ofile}T
  13179. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13180. $RM "$cfgfile"
  13181. cat <<_LT_EOF >> "$cfgfile"
  13182. #! $SHELL
  13183. # Generated automatically by $as_me ($PACKAGE) $VERSION
  13184. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13185. # Provide generalized library-building support services.
  13186. # Written by Gordon Matzigkeit, 1996
  13187. # Copyright (C) 2014 Free Software Foundation, Inc.
  13188. # This is free software; see the source for copying conditions. There is NO
  13189. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13190. # GNU Libtool is free software; you can redistribute it and/or modify
  13191. # it under the terms of the GNU General Public License as published by
  13192. # the Free Software Foundation; either version 2 of of the License, or
  13193. # (at your option) any later version.
  13194. #
  13195. # As a special exception to the GNU General Public License, if you
  13196. # distribute this file as part of a program or library that is built
  13197. # using GNU Libtool, you may include this file under the same
  13198. # distribution terms that you use for the rest of that program.
  13199. #
  13200. # GNU Libtool is distributed in the hope that it will be useful, but
  13201. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13202. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13203. # GNU General Public License for more details.
  13204. #
  13205. # You should have received a copy of the GNU General Public License
  13206. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  13207. # The names of the tagged configurations supported by this script.
  13208. available_tags=''
  13209. # Configured defaults for sys_lib_dlsearch_path munging.
  13210. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  13211. # ### BEGIN LIBTOOL CONFIG
  13212. # Which release of libtool.m4 was used?
  13213. macro_version=$macro_version
  13214. macro_revision=$macro_revision
  13215. # Whether or not to build shared libraries.
  13216. build_libtool_libs=$enable_shared
  13217. # Whether or not to build static libraries.
  13218. build_old_libs=$enable_static
  13219. # What type of objects to build.
  13220. pic_mode=$pic_mode
  13221. # Whether or not to optimize for fast installation.
  13222. fast_install=$enable_fast_install
  13223. # Shared archive member basename,for filename based shared library versioning on AIX.
  13224. shared_archive_member_spec=$shared_archive_member_spec
  13225. # Shell to use when invoking shell scripts.
  13226. SHELL=$lt_SHELL
  13227. # An echo program that protects backslashes.
  13228. ECHO=$lt_ECHO
  13229. # The PATH separator for the build system.
  13230. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  13231. # The host system.
  13232. host_alias=$host_alias
  13233. host=$host
  13234. host_os=$host_os
  13235. # The build system.
  13236. build_alias=$build_alias
  13237. build=$build
  13238. build_os=$build_os
  13239. # A sed program that does not truncate output.
  13240. SED=$lt_SED
  13241. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13242. Xsed="\$SED -e 1s/^X//"
  13243. # A grep program that handles long lines.
  13244. GREP=$lt_GREP
  13245. # An ERE matcher.
  13246. EGREP=$lt_EGREP
  13247. # A literal string matcher.
  13248. FGREP=$lt_FGREP
  13249. # A BSD- or MS-compatible name lister.
  13250. NM=$lt_NM
  13251. # Whether we need soft or hard links.
  13252. LN_S=$lt_LN_S
  13253. # What is the maximum length of a command?
  13254. max_cmd_len=$max_cmd_len
  13255. # Object file suffix (normally "o").
  13256. objext=$ac_objext
  13257. # Executable file suffix (normally "").
  13258. exeext=$exeext
  13259. # whether the shell understands "unset".
  13260. lt_unset=$lt_unset
  13261. # turn spaces into newlines.
  13262. SP2NL=$lt_lt_SP2NL
  13263. # turn newlines into spaces.
  13264. NL2SP=$lt_lt_NL2SP
  13265. # convert \$build file names to \$host format.
  13266. to_host_file_cmd=$lt_cv_to_host_file_cmd
  13267. # convert \$build files to toolchain format.
  13268. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  13269. # An object symbol dumper.
  13270. OBJDUMP=$lt_OBJDUMP
  13271. # Method to check whether dependent libraries are shared objects.
  13272. deplibs_check_method=$lt_deplibs_check_method
  13273. # Command to use when deplibs_check_method = "file_magic".
  13274. file_magic_cmd=$lt_file_magic_cmd
  13275. # How to find potential files when deplibs_check_method = "file_magic".
  13276. file_magic_glob=$lt_file_magic_glob
  13277. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  13278. want_nocaseglob=$lt_want_nocaseglob
  13279. # DLL creation program.
  13280. DLLTOOL=$lt_DLLTOOL
  13281. # Command to associate shared and link libraries.
  13282. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  13283. # The archiver.
  13284. AR=$lt_AR
  13285. # Flags to create an archive.
  13286. AR_FLAGS=$lt_AR_FLAGS
  13287. # How to feed a file listing to the archiver.
  13288. archiver_list_spec=$lt_archiver_list_spec
  13289. # A symbol stripping program.
  13290. STRIP=$lt_STRIP
  13291. # Commands used to install an old-style archive.
  13292. RANLIB=$lt_RANLIB
  13293. old_postinstall_cmds=$lt_old_postinstall_cmds
  13294. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13295. # Whether to use a lock for old archive extraction.
  13296. lock_old_archive_extraction=$lock_old_archive_extraction
  13297. # A C compiler.
  13298. LTCC=$lt_CC
  13299. # LTCC compiler flags.
  13300. LTCFLAGS=$lt_CFLAGS
  13301. # Take the output of nm and produce a listing of raw symbols and C names.
  13302. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13303. # Transform the output of nm in a proper C declaration.
  13304. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13305. # Transform the output of nm into a list of symbols to manually relocate.
  13306. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  13307. # Transform the output of nm in a C name address pair.
  13308. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13309. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13310. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13311. # The name lister interface.
  13312. nm_interface=$lt_lt_cv_nm_interface
  13313. # Specify filename containing input files for \$NM.
  13314. nm_file_list_spec=$lt_nm_file_list_spec
  13315. # The root where to search for dependent libraries,and where our libraries should be installed.
  13316. lt_sysroot=$lt_sysroot
  13317. # Command to truncate a binary pipe.
  13318. lt_truncate_bin=$lt_lt_cv_truncate_bin
  13319. # The name of the directory that contains temporary libtool files.
  13320. objdir=$objdir
  13321. # Used to examine libraries when file_magic_cmd begins with "file".
  13322. MAGIC_CMD=$MAGIC_CMD
  13323. # Must we lock files when doing compilation?
  13324. need_locks=$lt_need_locks
  13325. # Manifest tool.
  13326. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  13327. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13328. DSYMUTIL=$lt_DSYMUTIL
  13329. # Tool to change global to local symbols on Mac OS X.
  13330. NMEDIT=$lt_NMEDIT
  13331. # Tool to manipulate fat objects and archives on Mac OS X.
  13332. LIPO=$lt_LIPO
  13333. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13334. OTOOL=$lt_OTOOL
  13335. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13336. OTOOL64=$lt_OTOOL64
  13337. # Old archive suffix (normally "a").
  13338. libext=$libext
  13339. # Shared library suffix (normally ".so").
  13340. shrext_cmds=$lt_shrext_cmds
  13341. # The commands to extract the exported symbol list from a shared archive.
  13342. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13343. # Variables whose values should be saved in libtool wrapper scripts and
  13344. # restored at link time.
  13345. variables_saved_for_relink=$lt_variables_saved_for_relink
  13346. # Do we need the "lib" prefix for modules?
  13347. need_lib_prefix=$need_lib_prefix
  13348. # Do we need a version for libraries?
  13349. need_version=$need_version
  13350. # Library versioning type.
  13351. version_type=$version_type
  13352. # Shared library runtime path variable.
  13353. runpath_var=$runpath_var
  13354. # Shared library path variable.
  13355. shlibpath_var=$shlibpath_var
  13356. # Is shlibpath searched before the hard-coded library search path?
  13357. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13358. # Format of library name prefix.
  13359. libname_spec=$lt_libname_spec
  13360. # List of archive names. First name is the real one, the rest are links.
  13361. # The last name is the one that the linker finds with -lNAME
  13362. library_names_spec=$lt_library_names_spec
  13363. # The coded name of the library, if different from the real name.
  13364. soname_spec=$lt_soname_spec
  13365. # Permission mode override for installation of shared libraries.
  13366. install_override_mode=$lt_install_override_mode
  13367. # Command to use after installation of a shared archive.
  13368. postinstall_cmds=$lt_postinstall_cmds
  13369. # Command to use after uninstallation of a shared archive.
  13370. postuninstall_cmds=$lt_postuninstall_cmds
  13371. # Commands used to finish a libtool library installation in a directory.
  13372. finish_cmds=$lt_finish_cmds
  13373. # As "finish_cmds", except a single script fragment to be evaled but
  13374. # not shown.
  13375. finish_eval=$lt_finish_eval
  13376. # Whether we should hardcode library paths into libraries.
  13377. hardcode_into_libs=$hardcode_into_libs
  13378. # Compile-time system search path for libraries.
  13379. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13380. # Detected run-time system search path for libraries.
  13381. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  13382. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  13383. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  13384. # Whether dlopen is supported.
  13385. dlopen_support=$enable_dlopen
  13386. # Whether dlopen of programs is supported.
  13387. dlopen_self=$enable_dlopen_self
  13388. # Whether dlopen of statically linked programs is supported.
  13389. dlopen_self_static=$enable_dlopen_self_static
  13390. # Commands to strip libraries.
  13391. old_striplib=$lt_old_striplib
  13392. striplib=$lt_striplib
  13393. # The linker used to build libraries.
  13394. LD=$lt_LD
  13395. # How to create reloadable object files.
  13396. reload_flag=$lt_reload_flag
  13397. reload_cmds=$lt_reload_cmds
  13398. # Commands used to build an old-style archive.
  13399. old_archive_cmds=$lt_old_archive_cmds
  13400. # A language specific compiler.
  13401. CC=$lt_compiler
  13402. # Is the compiler the GNU compiler?
  13403. with_gcc=$GCC
  13404. # Compiler flag to turn off builtin functions.
  13405. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13406. # Additional compiler flags for building library objects.
  13407. pic_flag=$lt_lt_prog_compiler_pic
  13408. # How to pass a linker flag through the compiler.
  13409. wl=$lt_lt_prog_compiler_wl
  13410. # Compiler flag to prevent dynamic linking.
  13411. link_static_flag=$lt_lt_prog_compiler_static
  13412. # Does compiler simultaneously support -c and -o options?
  13413. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13414. # Whether or not to add -lc for building shared libraries.
  13415. build_libtool_need_lc=$archive_cmds_need_lc
  13416. # Whether or not to disallow shared libs when runtime libs are static.
  13417. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13418. # Compiler flag to allow reflexive dlopens.
  13419. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13420. # Compiler flag to generate shared objects directly from archives.
  13421. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13422. # Whether the compiler copes with passing no objects directly.
  13423. compiler_needs_object=$lt_compiler_needs_object
  13424. # Create an old-style archive from a shared archive.
  13425. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13426. # Create a temporary old-style archive to link instead of a shared archive.
  13427. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13428. # Commands used to build a shared archive.
  13429. archive_cmds=$lt_archive_cmds
  13430. archive_expsym_cmds=$lt_archive_expsym_cmds
  13431. # Commands used to build a loadable module if different from building
  13432. # a shared archive.
  13433. module_cmds=$lt_module_cmds
  13434. module_expsym_cmds=$lt_module_expsym_cmds
  13435. # Whether we are building with GNU ld or not.
  13436. with_gnu_ld=$lt_with_gnu_ld
  13437. # Flag that allows shared libraries with undefined symbols to be built.
  13438. allow_undefined_flag=$lt_allow_undefined_flag
  13439. # Flag that enforces no undefined symbols.
  13440. no_undefined_flag=$lt_no_undefined_flag
  13441. # Flag to hardcode \$libdir into a binary during linking.
  13442. # This must work even if \$libdir does not exist
  13443. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13444. # Whether we need a single "-rpath" flag with a separated argument.
  13445. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13446. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  13447. # DIR into the resulting binary.
  13448. hardcode_direct=$hardcode_direct
  13449. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  13450. # DIR into the resulting binary and the resulting library dependency is
  13451. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  13452. # library is relocated.
  13453. hardcode_direct_absolute=$hardcode_direct_absolute
  13454. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13455. # into the resulting binary.
  13456. hardcode_minus_L=$hardcode_minus_L
  13457. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13458. # into the resulting binary.
  13459. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13460. # Set to "yes" if building a shared library automatically hardcodes DIR
  13461. # into the library and all subsequent libraries and executables linked
  13462. # against it.
  13463. hardcode_automatic=$hardcode_automatic
  13464. # Set to yes if linker adds runtime paths of dependent libraries
  13465. # to runtime path list.
  13466. inherit_rpath=$inherit_rpath
  13467. # Whether libtool must link a program against all its dependency libraries.
  13468. link_all_deplibs=$link_all_deplibs
  13469. # Set to "yes" if exported symbols are required.
  13470. always_export_symbols=$always_export_symbols
  13471. # The commands to list exported symbols.
  13472. export_symbols_cmds=$lt_export_symbols_cmds
  13473. # Symbols that should not be listed in the preloaded symbols.
  13474. exclude_expsyms=$lt_exclude_expsyms
  13475. # Symbols that must always be exported.
  13476. include_expsyms=$lt_include_expsyms
  13477. # Commands necessary for linking programs (against libraries) with templates.
  13478. prelink_cmds=$lt_prelink_cmds
  13479. # Commands necessary for finishing linking programs.
  13480. postlink_cmds=$lt_postlink_cmds
  13481. # Specify filename containing input files.
  13482. file_list_spec=$lt_file_list_spec
  13483. # How to hardcode a shared library path into an executable.
  13484. hardcode_action=$hardcode_action
  13485. # ### END LIBTOOL CONFIG
  13486. _LT_EOF
  13487. cat <<'_LT_EOF' >> "$cfgfile"
  13488. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  13489. # func_munge_path_list VARIABLE PATH
  13490. # -----------------------------------
  13491. # VARIABLE is name of variable containing _space_ separated list of
  13492. # directories to be munged by the contents of PATH, which is string
  13493. # having a format:
  13494. # "DIR[:DIR]:"
  13495. # string "DIR[ DIR]" will be prepended to VARIABLE
  13496. # ":DIR[:DIR]"
  13497. # string "DIR[ DIR]" will be appended to VARIABLE
  13498. # "DIRP[:DIRP]::[DIRA:]DIRA"
  13499. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  13500. # "DIRA[ DIRA]" will be appended to VARIABLE
  13501. # "DIR[:DIR]"
  13502. # VARIABLE will be replaced by "DIR[ DIR]"
  13503. func_munge_path_list ()
  13504. {
  13505. case x$2 in
  13506. x)
  13507. ;;
  13508. *:)
  13509. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  13510. ;;
  13511. x:*)
  13512. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  13513. ;;
  13514. *::*)
  13515. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  13516. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  13517. ;;
  13518. *)
  13519. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  13520. ;;
  13521. esac
  13522. }
  13523. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  13524. func_cc_basename ()
  13525. {
  13526. for cc_temp in $*""; do
  13527. case $cc_temp in
  13528. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13529. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13530. \-*) ;;
  13531. *) break;;
  13532. esac
  13533. done
  13534. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  13535. }
  13536. # ### END FUNCTIONS SHARED WITH CONFIGURE
  13537. _LT_EOF
  13538. case $host_os in
  13539. aix3*)
  13540. cat <<\_LT_EOF >> "$cfgfile"
  13541. # AIX sometimes has problems with the GCC collect2 program. For some
  13542. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13543. # vanish in a puff of smoke.
  13544. if test set != "${COLLECT_NAMES+set}"; then
  13545. COLLECT_NAMES=
  13546. export COLLECT_NAMES
  13547. fi
  13548. _LT_EOF
  13549. ;;
  13550. esac
  13551. ltmain=$ac_aux_dir/ltmain.sh
  13552. # We use sed instead of cat because bash on DJGPP gets confused if
  13553. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13554. # text mode, it properly converts lines to CR/LF. This bash problem
  13555. # is reportedly fixed, but why not run on old versions too?
  13556. sed '$q' "$ltmain" >> "$cfgfile" \
  13557. || (rm -f "$cfgfile"; exit 1)
  13558. mv -f "$cfgfile" "$ofile" ||
  13559. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13560. chmod +x "$ofile"
  13561. ;;
  13562. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13563. # Older Autoconf quotes --file arguments for eval, but not when files
  13564. # are listed without --file. Let's play safe and only enable the eval
  13565. # if we detect the quoting.
  13566. # TODO: see whether this extra hack can be removed once we start
  13567. # requiring Autoconf 2.70 or later.
  13568. case $CONFIG_FILES in #(
  13569. *\'*) :
  13570. eval set x "$CONFIG_FILES" ;; #(
  13571. *) :
  13572. set x $CONFIG_FILES ;; #(
  13573. *) :
  13574. ;;
  13575. esac
  13576. shift
  13577. # Used to flag and report bootstrapping failures.
  13578. am_rc=0
  13579. for am_mf
  13580. do
  13581. # Strip MF so we end up with the name of the file.
  13582. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  13583. # Check whether this is an Automake generated Makefile which includes
  13584. # dependency-tracking related rules and includes.
  13585. # Grep'ing the whole file directly is not great: AIX grep has a line
  13586. # limit of 2048, but all sed's we know have understand at least 4000.
  13587. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  13588. || continue
  13589. am_dirpart=`$as_dirname -- "$am_mf" ||
  13590. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13591. X"$am_mf" : 'X\(//\)[^/]' \| \
  13592. X"$am_mf" : 'X\(//\)$' \| \
  13593. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  13594. $as_echo X"$am_mf" |
  13595. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13596. s//\1/
  13597. q
  13598. }
  13599. /^X\(\/\/\)[^/].*/{
  13600. s//\1/
  13601. q
  13602. }
  13603. /^X\(\/\/\)$/{
  13604. s//\1/
  13605. q
  13606. }
  13607. /^X\(\/\).*/{
  13608. s//\1/
  13609. q
  13610. }
  13611. s/.*/./; q'`
  13612. am_filepart=`$as_basename -- "$am_mf" ||
  13613. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  13614. X"$am_mf" : 'X\(//\)$' \| \
  13615. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  13616. $as_echo X/"$am_mf" |
  13617. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13618. s//\1/
  13619. q
  13620. }
  13621. /^X\/\(\/\/\)$/{
  13622. s//\1/
  13623. q
  13624. }
  13625. /^X\/\(\/\).*/{
  13626. s//\1/
  13627. q
  13628. }
  13629. s/.*/./; q'`
  13630. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  13631. && sed -e '/# am--include-marker/d' "$am_filepart" \
  13632. | $MAKE -f - am--depfiles" >&5
  13633. (cd "$am_dirpart" \
  13634. && sed -e '/# am--include-marker/d' "$am_filepart" \
  13635. | $MAKE -f - am--depfiles) >&5 2>&5
  13636. ac_status=$?
  13637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13638. (exit $ac_status); } || am_rc=$?
  13639. done
  13640. if test $am_rc -ne 0; then
  13641. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13642. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13643. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  13644. for automatic dependency tracking. If GNU make was not used, consider
  13645. re-running the configure script with MAKE=\"gmake\" (or whatever is
  13646. necessary). You can also try re-running configure with the
  13647. '--disable-dependency-tracking' option to at least be able to build
  13648. the package (albeit without support for automatic dependency tracking).
  13649. See \`config.log' for more details" "$LINENO" 5; }
  13650. fi
  13651. { am_dirpart=; unset am_dirpart;}
  13652. { am_filepart=; unset am_filepart;}
  13653. { am_mf=; unset am_mf;}
  13654. { am_rc=; unset am_rc;}
  13655. rm -f conftest-deps.mk
  13656. }
  13657. ;;
  13658. esac
  13659. done # for ac_tag
  13660. as_fn_exit 0
  13661. _ACEOF
  13662. ac_clean_files=$ac_clean_files_save
  13663. test $ac_write_fail = 0 ||
  13664. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13665. # configure is writing to config.log, and then calls config.status.
  13666. # config.status does its own redirection, appending to config.log.
  13667. # Unfortunately, on DOS this fails, as config.log is still kept open
  13668. # by configure, so config.status won't be able to write to it; its
  13669. # output is simply discarded. So we exec the FD to /dev/null,
  13670. # effectively closing config.log, so it can be properly (re)opened and
  13671. # appended to by config.status. When coming back to configure, we
  13672. # need to make the FD available again.
  13673. if test "$no_create" != yes; then
  13674. ac_cs_success=:
  13675. ac_config_status_args=
  13676. test "$silent" = yes &&
  13677. ac_config_status_args="$ac_config_status_args --quiet"
  13678. exec 5>/dev/null
  13679. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13680. exec 5>>config.log
  13681. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13682. # would make configure fail if this is the last instruction.
  13683. $ac_cs_success || as_fn_exit 1
  13684. fi
  13685. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13687. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13688. fi