configure 434 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for guile-readline 1.8.7.
  4. #
  5. # Report bugs to <bug-guile@gnu.org>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  43. as_echo='printf %s\n'
  44. as_echo_n='printf %s'
  45. else
  46. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  47. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  48. as_echo_n='/usr/ucb/echo -n'
  49. else
  50. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  51. as_echo_n_body='eval
  52. arg=$1;
  53. case $arg in
  54. *"$as_nl"*)
  55. expr "X$arg" : "X\\(.*\\)$as_nl";
  56. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  57. esac;
  58. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  59. '
  60. export as_echo_n_body
  61. as_echo_n='sh -c $as_echo_n_body as_echo'
  62. fi
  63. export as_echo_body
  64. as_echo='sh -c $as_echo_body as_echo'
  65. fi
  66. # The user is always right.
  67. if test "${PATH_SEPARATOR+set}" != set; then
  68. PATH_SEPARATOR=:
  69. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  70. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  71. PATH_SEPARATOR=';'
  72. }
  73. fi
  74. # Support unset when possible.
  75. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  76. as_unset=unset
  77. else
  78. as_unset=false
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. { (exit 1); exit 1; }
  107. fi
  108. # Work around bugs in pre-3.0 UWIN ksh.
  109. for as_var in ENV MAIL MAILPATH
  110. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # Required to use basename.
  121. if expr a : '\(a\)' >/dev/null 2>&1 &&
  122. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  123. as_expr=expr
  124. else
  125. as_expr=false
  126. fi
  127. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  128. as_basename=basename
  129. else
  130. as_basename=false
  131. fi
  132. # Name of the executable.
  133. as_me=`$as_basename -- "$0" ||
  134. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  135. X"$0" : 'X\(//\)$' \| \
  136. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  137. $as_echo X/"$0" |
  138. sed '/^.*\/\([^/][^/]*\)\/*$/{
  139. s//\1/
  140. q
  141. }
  142. /^X\/\(\/\/\)$/{
  143. s//\1/
  144. q
  145. }
  146. /^X\/\(\/\).*/{
  147. s//\1/
  148. q
  149. }
  150. s/.*/./; q'`
  151. # CDPATH.
  152. $as_unset CDPATH
  153. if test "x$CONFIG_SHELL" = x; then
  154. if (eval ":") 2>/dev/null; then
  155. as_have_required=yes
  156. else
  157. as_have_required=no
  158. fi
  159. if test $as_have_required = yes && (eval ":
  160. (as_func_return () {
  161. (exit \$1)
  162. }
  163. as_func_success () {
  164. as_func_return 0
  165. }
  166. as_func_failure () {
  167. as_func_return 1
  168. }
  169. as_func_ret_success () {
  170. return 0
  171. }
  172. as_func_ret_failure () {
  173. return 1
  174. }
  175. exitcode=0
  176. if as_func_success; then
  177. :
  178. else
  179. exitcode=1
  180. echo as_func_success failed.
  181. fi
  182. if as_func_failure; then
  183. exitcode=1
  184. echo as_func_failure succeeded.
  185. fi
  186. if as_func_ret_success; then
  187. :
  188. else
  189. exitcode=1
  190. echo as_func_ret_success failed.
  191. fi
  192. if as_func_ret_failure; then
  193. exitcode=1
  194. echo as_func_ret_failure succeeded.
  195. fi
  196. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  197. :
  198. else
  199. exitcode=1
  200. echo positional parameters were not saved.
  201. fi
  202. test \$exitcode = 0) || { (exit 1); exit 1; }
  203. (
  204. as_lineno_1=\$LINENO
  205. as_lineno_2=\$LINENO
  206. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  207. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  208. ") 2> /dev/null; then
  209. :
  210. else
  211. as_candidate_shells=
  212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  213. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  214. do
  215. IFS=$as_save_IFS
  216. test -z "$as_dir" && as_dir=.
  217. case $as_dir in
  218. /*)
  219. for as_base in sh bash ksh sh5; do
  220. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  221. done;;
  222. esac
  223. done
  224. IFS=$as_save_IFS
  225. for as_shell in $as_candidate_shells $SHELL; do
  226. # Try only shells that exist, to save several forks.
  227. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  228. { ("$as_shell") 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. _ASEOF
  243. }; then
  244. CONFIG_SHELL=$as_shell
  245. as_have_required=yes
  246. if { "$as_shell" 2> /dev/null <<\_ASEOF
  247. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  248. emulate sh
  249. NULLCMD=:
  250. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  251. # is contrary to our usage. Disable this feature.
  252. alias -g '${1+"$@"}'='"$@"'
  253. setopt NO_GLOB_SUBST
  254. else
  255. case `(set -o) 2>/dev/null` in
  256. *posix*) set -o posix ;;
  257. esac
  258. fi
  259. :
  260. (as_func_return () {
  261. (exit $1)
  262. }
  263. as_func_success () {
  264. as_func_return 0
  265. }
  266. as_func_failure () {
  267. as_func_return 1
  268. }
  269. as_func_ret_success () {
  270. return 0
  271. }
  272. as_func_ret_failure () {
  273. return 1
  274. }
  275. exitcode=0
  276. if as_func_success; then
  277. :
  278. else
  279. exitcode=1
  280. echo as_func_success failed.
  281. fi
  282. if as_func_failure; then
  283. exitcode=1
  284. echo as_func_failure succeeded.
  285. fi
  286. if as_func_ret_success; then
  287. :
  288. else
  289. exitcode=1
  290. echo as_func_ret_success failed.
  291. fi
  292. if as_func_ret_failure; then
  293. exitcode=1
  294. echo as_func_ret_failure succeeded.
  295. fi
  296. if ( set x; as_func_ret_success y && test x = "$1" ); then
  297. :
  298. else
  299. exitcode=1
  300. echo positional parameters were not saved.
  301. fi
  302. test $exitcode = 0) || { (exit 1); exit 1; }
  303. (
  304. as_lineno_1=$LINENO
  305. as_lineno_2=$LINENO
  306. test "x$as_lineno_1" != "x$as_lineno_2" &&
  307. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  308. _ASEOF
  309. }; then
  310. break
  311. fi
  312. fi
  313. done
  314. if test "x$CONFIG_SHELL" != x; then
  315. for as_var in BASH_ENV ENV
  316. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  317. done
  318. export CONFIG_SHELL
  319. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  320. fi
  321. if test $as_have_required = no; then
  322. echo This script requires a shell more modern than all the
  323. echo shells that I found on your system. Please install a
  324. echo modern shell, or manually run the script under such a
  325. echo shell if you do have one.
  326. { (exit 1); exit 1; }
  327. fi
  328. fi
  329. fi
  330. (eval "as_func_return () {
  331. (exit \$1)
  332. }
  333. as_func_success () {
  334. as_func_return 0
  335. }
  336. as_func_failure () {
  337. as_func_return 1
  338. }
  339. as_func_ret_success () {
  340. return 0
  341. }
  342. as_func_ret_failure () {
  343. return 1
  344. }
  345. exitcode=0
  346. if as_func_success; then
  347. :
  348. else
  349. exitcode=1
  350. echo as_func_success failed.
  351. fi
  352. if as_func_failure; then
  353. exitcode=1
  354. echo as_func_failure succeeded.
  355. fi
  356. if as_func_ret_success; then
  357. :
  358. else
  359. exitcode=1
  360. echo as_func_ret_success failed.
  361. fi
  362. if as_func_ret_failure; then
  363. exitcode=1
  364. echo as_func_ret_failure succeeded.
  365. fi
  366. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  367. :
  368. else
  369. exitcode=1
  370. echo positional parameters were not saved.
  371. fi
  372. test \$exitcode = 0") || {
  373. echo No shell found that supports shell functions.
  374. echo Please tell bug-autoconf@gnu.org about your system,
  375. echo including any error possibly output before this message.
  376. echo This can help us improve future autoconf versions.
  377. echo Configuration will now proceed without shell functions.
  378. }
  379. as_lineno_1=$LINENO
  380. as_lineno_2=$LINENO
  381. test "x$as_lineno_1" != "x$as_lineno_2" &&
  382. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  383. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  384. # uniformly replaced by the line number. The first 'sed' inserts a
  385. # line-number line after each line using $LINENO; the second 'sed'
  386. # does the real work. The second script uses 'N' to pair each
  387. # line-number line with the line containing $LINENO, and appends
  388. # trailing '-' during substitution so that $LINENO is not a special
  389. # case at line end.
  390. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  391. # scripts with optimization help from Paolo Bonzini. Blame Lee
  392. # E. McMahon (1931-1989) for sed's syntax. :-)
  393. sed -n '
  394. p
  395. /[$]LINENO/=
  396. ' <$as_myself |
  397. sed '
  398. s/[$]LINENO.*/&-/
  399. t lineno
  400. b
  401. :lineno
  402. N
  403. :loop
  404. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  405. t loop
  406. s/-\n.*//
  407. ' >$as_me.lineno &&
  408. chmod +x "$as_me.lineno" ||
  409. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  410. { (exit 1); exit 1; }; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  419. as_dirname=dirname
  420. else
  421. as_dirname=false
  422. fi
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in
  425. -n*)
  426. case `echo 'x\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. *) ECHO_C='\c';;
  429. esac;;
  430. *)
  431. ECHO_N='-n';;
  432. esac
  433. if expr a : '\(a\)' >/dev/null 2>&1 &&
  434. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  435. as_expr=expr
  436. else
  437. as_expr=false
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.file
  440. if test -d conf$$.dir; then
  441. rm -f conf$$.dir/conf$$.file
  442. else
  443. rm -f conf$$.dir
  444. mkdir conf$$.dir 2>/dev/null
  445. fi
  446. if (echo >conf$$.file) 2>/dev/null; then
  447. if ln -s conf$$.file conf$$ 2>/dev/null; then
  448. as_ln_s='ln -s'
  449. # ... but there are two gotchas:
  450. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  451. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  452. # In both cases, we have to default to `cp -p'.
  453. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  454. as_ln_s='cp -p'
  455. elif ln conf$$.file conf$$ 2>/dev/null; then
  456. as_ln_s=ln
  457. else
  458. as_ln_s='cp -p'
  459. fi
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  464. rmdir conf$$.dir 2>/dev/null
  465. if mkdir -p . 2>/dev/null; then
  466. as_mkdir_p=:
  467. else
  468. test -d ./-p && rmdir ./-p
  469. as_mkdir_p=false
  470. fi
  471. if test -x / >/dev/null 2>&1; then
  472. as_test_x='test -x'
  473. else
  474. if ls -dL / >/dev/null 2>&1; then
  475. as_ls_L_option=L
  476. else
  477. as_ls_L_option=
  478. fi
  479. as_test_x='
  480. eval sh -c '\''
  481. if test -d "$1"; then
  482. test -d "$1/.";
  483. else
  484. case $1 in
  485. -*)set "./$1";;
  486. esac;
  487. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  488. ???[sx]*):;;*)false;;esac;fi
  489. '\'' sh
  490. '
  491. fi
  492. as_executable_p=$as_test_x
  493. # Sed expression to map a string onto a valid CPP name.
  494. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  495. # Sed expression to map a string onto a valid variable name.
  496. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  497. # Check that we are running under the correct shell.
  498. SHELL=${CONFIG_SHELL-/bin/sh}
  499. case X$lt_ECHO in
  500. X*--fallback-echo)
  501. # Remove one level of quotation (which was required for Make).
  502. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  503. ;;
  504. esac
  505. ECHO=${lt_ECHO-echo}
  506. if test "X$1" = X--no-reexec; then
  507. # Discard the --no-reexec flag, and continue.
  508. shift
  509. elif test "X$1" = X--fallback-echo; then
  510. # Avoid inline document here, it may be left over
  511. :
  512. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  513. # Yippee, $ECHO works!
  514. :
  515. else
  516. # Restart under the correct shell.
  517. exec $SHELL "$0" --no-reexec ${1+"$@"}
  518. fi
  519. if test "X$1" = X--fallback-echo; then
  520. # used as fallback echo
  521. shift
  522. cat <<_LT_EOF
  523. $*
  524. _LT_EOF
  525. exit 0
  526. fi
  527. # The HP-UX ksh and POSIX shell print the target directory to stdout
  528. # if CDPATH is set.
  529. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  530. if test -z "$lt_ECHO"; then
  531. if test "X${echo_test_string+set}" != Xset; then
  532. # find a string as large as possible, as long as the shell can cope with it
  533. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  534. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  535. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  536. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  537. then
  538. break
  539. fi
  540. done
  541. fi
  542. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  543. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  544. test "X$echo_testing_string" = "X$echo_test_string"; then
  545. :
  546. else
  547. # The Solaris, AIX, and Digital Unix default echo programs unquote
  548. # backslashes. This makes it impossible to quote backslashes using
  549. # echo "$something" | sed 's/\\/\\\\/g'
  550. #
  551. # So, first we look for a working echo in the user's PATH.
  552. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  553. for dir in $PATH /usr/ucb; do
  554. IFS="$lt_save_ifs"
  555. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  556. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  557. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  558. test "X$echo_testing_string" = "X$echo_test_string"; then
  559. ECHO="$dir/echo"
  560. break
  561. fi
  562. done
  563. IFS="$lt_save_ifs"
  564. if test "X$ECHO" = Xecho; then
  565. # We didn't find a better echo, so look for alternatives.
  566. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  567. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  568. test "X$echo_testing_string" = "X$echo_test_string"; then
  569. # This shell has a builtin print -r that does the trick.
  570. ECHO='print -r'
  571. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  572. test "X$CONFIG_SHELL" != X/bin/ksh; then
  573. # If we have ksh, try running configure again with it.
  574. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  575. export ORIGINAL_CONFIG_SHELL
  576. CONFIG_SHELL=/bin/ksh
  577. export CONFIG_SHELL
  578. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  579. else
  580. # Try using printf.
  581. ECHO='printf %s\n'
  582. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  583. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  584. test "X$echo_testing_string" = "X$echo_test_string"; then
  585. # Cool, printf works
  586. :
  587. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  588. test "X$echo_testing_string" = 'X\t' &&
  589. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  590. test "X$echo_testing_string" = "X$echo_test_string"; then
  591. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  592. export CONFIG_SHELL
  593. SHELL="$CONFIG_SHELL"
  594. export SHELL
  595. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  596. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  597. test "X$echo_testing_string" = 'X\t' &&
  598. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  599. test "X$echo_testing_string" = "X$echo_test_string"; then
  600. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  601. else
  602. # maybe with a smaller string...
  603. prev=:
  604. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  605. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  606. then
  607. break
  608. fi
  609. prev="$cmd"
  610. done
  611. if test "$prev" != 'sed 50q "$0"'; then
  612. echo_test_string=`eval $prev`
  613. export echo_test_string
  614. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  615. else
  616. # Oops. We lost completely, so just stick with echo.
  617. ECHO=echo
  618. fi
  619. fi
  620. fi
  621. fi
  622. fi
  623. fi
  624. # Copy echo and quote the copy suitably for passing to libtool from
  625. # the Makefile, instead of quoting the original, which is used later.
  626. lt_ECHO=$ECHO
  627. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  628. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  629. fi
  630. exec 7<&0 </dev/null 6>&1
  631. # Name of the host.
  632. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  633. # so uname gets run too.
  634. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  635. #
  636. # Initializations.
  637. #
  638. ac_default_prefix=/usr/local
  639. ac_clean_files=
  640. ac_config_libobj_dir=.
  641. LIBOBJS=
  642. cross_compiling=no
  643. subdirs=
  644. MFLAGS=
  645. MAKEFLAGS=
  646. SHELL=${CONFIG_SHELL-/bin/sh}
  647. # Identity of this package.
  648. PACKAGE_NAME='guile-readline'
  649. PACKAGE_TARNAME='guile-readline'
  650. PACKAGE_VERSION='1.8.7'
  651. PACKAGE_STRING='guile-readline 1.8.7'
  652. PACKAGE_BUGREPORT='bug-guile@gnu.org'
  653. ac_unique_file="readline.c"
  654. # Factoring default headers for most tests.
  655. ac_includes_default="\
  656. #include <stdio.h>
  657. #ifdef HAVE_SYS_TYPES_H
  658. # include <sys/types.h>
  659. #endif
  660. #ifdef HAVE_SYS_STAT_H
  661. # include <sys/stat.h>
  662. #endif
  663. #ifdef STDC_HEADERS
  664. # include <stdlib.h>
  665. # include <stddef.h>
  666. #else
  667. # ifdef HAVE_STDLIB_H
  668. # include <stdlib.h>
  669. # endif
  670. #endif
  671. #ifdef HAVE_STRING_H
  672. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  673. # include <memory.h>
  674. # endif
  675. # include <string.h>
  676. #endif
  677. #ifdef HAVE_STRINGS_H
  678. # include <strings.h>
  679. #endif
  680. #ifdef HAVE_INTTYPES_H
  681. # include <inttypes.h>
  682. #endif
  683. #ifdef HAVE_STDINT_H
  684. # include <stdint.h>
  685. #endif
  686. #ifdef HAVE_UNISTD_H
  687. # include <unistd.h>
  688. #endif"
  689. ac_subst_vars='am__EXEEXT_FALSE
  690. am__EXEEXT_TRUE
  691. LTLIBOBJS
  692. LIBOBJS
  693. GUILE_EFFECTIVE_VERSION
  694. LIBGUILEREADLINE_INTERFACE
  695. LIBGUILEREADLINE_INTERFACE_AGE
  696. LIBGUILEREADLINE_INTERFACE_REVISION
  697. LIBGUILEREADLINE_INTERFACE_CURRENT
  698. LIBGUILEREADLINE_MAJOR
  699. EXTRA_DEFS
  700. CPP
  701. OTOOL64
  702. OTOOL
  703. LIPO
  704. NMEDIT
  705. DSYMUTIL
  706. lt_ECHO
  707. RANLIB
  708. AR
  709. LN_S
  710. NM
  711. ac_ct_DUMPBIN
  712. DUMPBIN
  713. LD
  714. FGREP
  715. EGREP
  716. GREP
  717. SED
  718. LIBTOOL
  719. OBJDUMP
  720. DLLTOOL
  721. AS
  722. host_os
  723. host_vendor
  724. host_cpu
  725. host
  726. build_os
  727. build_vendor
  728. build_cpu
  729. build
  730. am__fastdepCC_FALSE
  731. am__fastdepCC_TRUE
  732. CCDEPMODE
  733. AMDEPBACKSLASH
  734. AMDEP_FALSE
  735. AMDEP_TRUE
  736. am__quote
  737. am__include
  738. DEPDIR
  739. OBJEXT
  740. EXEEXT
  741. ac_ct_CC
  742. CPPFLAGS
  743. LDFLAGS
  744. CFLAGS
  745. CC
  746. am__untar
  747. am__tar
  748. AMTAR
  749. am__leading_dot
  750. SET_MAKE
  751. AWK
  752. mkdir_p
  753. MKDIR_P
  754. INSTALL_STRIP_PROGRAM
  755. STRIP
  756. install_sh
  757. MAKEINFO
  758. AUTOHEADER
  759. AUTOMAKE
  760. AUTOCONF
  761. ACLOCAL
  762. VERSION
  763. PACKAGE
  764. CYGPATH_W
  765. am__isrc
  766. INSTALL_DATA
  767. INSTALL_SCRIPT
  768. INSTALL_PROGRAM
  769. target_alias
  770. host_alias
  771. build_alias
  772. LIBS
  773. ECHO_T
  774. ECHO_N
  775. ECHO_C
  776. DEFS
  777. mandir
  778. localedir
  779. libdir
  780. psdir
  781. pdfdir
  782. dvidir
  783. htmldir
  784. infodir
  785. docdir
  786. oldincludedir
  787. includedir
  788. localstatedir
  789. sharedstatedir
  790. sysconfdir
  791. datadir
  792. datarootdir
  793. libexecdir
  794. sbindir
  795. bindir
  796. program_transform_name
  797. prefix
  798. exec_prefix
  799. PACKAGE_BUGREPORT
  800. PACKAGE_STRING
  801. PACKAGE_VERSION
  802. PACKAGE_TARNAME
  803. PACKAGE_NAME
  804. PATH_SEPARATOR
  805. SHELL'
  806. ac_subst_files=''
  807. ac_user_opts='
  808. enable_option_checking
  809. enable_dependency_tracking
  810. enable_shared
  811. enable_static
  812. with_pic
  813. enable_fast_install
  814. with_gnu_ld
  815. enable_libtool_lock
  816. '
  817. ac_precious_vars='build_alias
  818. host_alias
  819. target_alias
  820. CC
  821. CFLAGS
  822. LDFLAGS
  823. LIBS
  824. CPPFLAGS
  825. CPP'
  826. # Initialize some variables set by options.
  827. ac_init_help=
  828. ac_init_version=false
  829. ac_unrecognized_opts=
  830. ac_unrecognized_sep=
  831. # The variables have the same names as the options, with
  832. # dashes changed to underlines.
  833. cache_file=/dev/null
  834. exec_prefix=NONE
  835. no_create=
  836. no_recursion=
  837. prefix=NONE
  838. program_prefix=NONE
  839. program_suffix=NONE
  840. program_transform_name=s,x,x,
  841. silent=
  842. site=
  843. srcdir=
  844. verbose=
  845. x_includes=NONE
  846. x_libraries=NONE
  847. # Installation directory options.
  848. # These are left unexpanded so users can "make install exec_prefix=/foo"
  849. # and all the variables that are supposed to be based on exec_prefix
  850. # by default will actually change.
  851. # Use braces instead of parens because sh, perl, etc. also accept them.
  852. # (The list follows the same order as the GNU Coding Standards.)
  853. bindir='${exec_prefix}/bin'
  854. sbindir='${exec_prefix}/sbin'
  855. libexecdir='${exec_prefix}/libexec'
  856. datarootdir='${prefix}/share'
  857. datadir='${datarootdir}'
  858. sysconfdir='${prefix}/etc'
  859. sharedstatedir='${prefix}/com'
  860. localstatedir='${prefix}/var'
  861. includedir='${prefix}/include'
  862. oldincludedir='/usr/include'
  863. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  864. infodir='${datarootdir}/info'
  865. htmldir='${docdir}'
  866. dvidir='${docdir}'
  867. pdfdir='${docdir}'
  868. psdir='${docdir}'
  869. libdir='${exec_prefix}/lib'
  870. localedir='${datarootdir}/locale'
  871. mandir='${datarootdir}/man'
  872. ac_prev=
  873. ac_dashdash=
  874. for ac_option
  875. do
  876. # If the previous option needs an argument, assign it.
  877. if test -n "$ac_prev"; then
  878. eval $ac_prev=\$ac_option
  879. ac_prev=
  880. continue
  881. fi
  882. case $ac_option in
  883. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  884. *) ac_optarg=yes ;;
  885. esac
  886. # Accept the important Cygnus configure options, so we can diagnose typos.
  887. case $ac_dashdash$ac_option in
  888. --)
  889. ac_dashdash=yes ;;
  890. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  891. ac_prev=bindir ;;
  892. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  893. bindir=$ac_optarg ;;
  894. -build | --build | --buil | --bui | --bu)
  895. ac_prev=build_alias ;;
  896. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  897. build_alias=$ac_optarg ;;
  898. -cache-file | --cache-file | --cache-fil | --cache-fi \
  899. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  900. ac_prev=cache_file ;;
  901. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  902. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  903. cache_file=$ac_optarg ;;
  904. --config-cache | -C)
  905. cache_file=config.cache ;;
  906. -datadir | --datadir | --datadi | --datad)
  907. ac_prev=datadir ;;
  908. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  909. datadir=$ac_optarg ;;
  910. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  911. | --dataroo | --dataro | --datar)
  912. ac_prev=datarootdir ;;
  913. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  914. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  915. datarootdir=$ac_optarg ;;
  916. -disable-* | --disable-*)
  917. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  918. # Reject names that are not valid shell variable names.
  919. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  920. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  921. { (exit 1); exit 1; }; }
  922. ac_useropt_orig=$ac_useropt
  923. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  924. case $ac_user_opts in
  925. *"
  926. "enable_$ac_useropt"
  927. "*) ;;
  928. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  929. ac_unrecognized_sep=', ';;
  930. esac
  931. eval enable_$ac_useropt=no ;;
  932. -docdir | --docdir | --docdi | --doc | --do)
  933. ac_prev=docdir ;;
  934. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  935. docdir=$ac_optarg ;;
  936. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  937. ac_prev=dvidir ;;
  938. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  939. dvidir=$ac_optarg ;;
  940. -enable-* | --enable-*)
  941. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  942. # Reject names that are not valid shell variable names.
  943. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  944. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  945. { (exit 1); exit 1; }; }
  946. ac_useropt_orig=$ac_useropt
  947. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  948. case $ac_user_opts in
  949. *"
  950. "enable_$ac_useropt"
  951. "*) ;;
  952. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  953. ac_unrecognized_sep=', ';;
  954. esac
  955. eval enable_$ac_useropt=\$ac_optarg ;;
  956. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  957. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  958. | --exec | --exe | --ex)
  959. ac_prev=exec_prefix ;;
  960. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  961. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  962. | --exec=* | --exe=* | --ex=*)
  963. exec_prefix=$ac_optarg ;;
  964. -gas | --gas | --ga | --g)
  965. # Obsolete; use --with-gas.
  966. with_gas=yes ;;
  967. -help | --help | --hel | --he | -h)
  968. ac_init_help=long ;;
  969. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  970. ac_init_help=recursive ;;
  971. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  972. ac_init_help=short ;;
  973. -host | --host | --hos | --ho)
  974. ac_prev=host_alias ;;
  975. -host=* | --host=* | --hos=* | --ho=*)
  976. host_alias=$ac_optarg ;;
  977. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  978. ac_prev=htmldir ;;
  979. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  980. | --ht=*)
  981. htmldir=$ac_optarg ;;
  982. -includedir | --includedir | --includedi | --included | --include \
  983. | --includ | --inclu | --incl | --inc)
  984. ac_prev=includedir ;;
  985. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  986. | --includ=* | --inclu=* | --incl=* | --inc=*)
  987. includedir=$ac_optarg ;;
  988. -infodir | --infodir | --infodi | --infod | --info | --inf)
  989. ac_prev=infodir ;;
  990. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  991. infodir=$ac_optarg ;;
  992. -libdir | --libdir | --libdi | --libd)
  993. ac_prev=libdir ;;
  994. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  995. libdir=$ac_optarg ;;
  996. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  997. | --libexe | --libex | --libe)
  998. ac_prev=libexecdir ;;
  999. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1000. | --libexe=* | --libex=* | --libe=*)
  1001. libexecdir=$ac_optarg ;;
  1002. -localedir | --localedir | --localedi | --localed | --locale)
  1003. ac_prev=localedir ;;
  1004. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1005. localedir=$ac_optarg ;;
  1006. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1007. | --localstate | --localstat | --localsta | --localst | --locals)
  1008. ac_prev=localstatedir ;;
  1009. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1010. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1011. localstatedir=$ac_optarg ;;
  1012. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1013. ac_prev=mandir ;;
  1014. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1015. mandir=$ac_optarg ;;
  1016. -nfp | --nfp | --nf)
  1017. # Obsolete; use --without-fp.
  1018. with_fp=no ;;
  1019. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1020. | --no-cr | --no-c | -n)
  1021. no_create=yes ;;
  1022. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1023. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1024. no_recursion=yes ;;
  1025. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1026. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1027. | --oldin | --oldi | --old | --ol | --o)
  1028. ac_prev=oldincludedir ;;
  1029. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1030. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1031. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1032. oldincludedir=$ac_optarg ;;
  1033. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1034. ac_prev=prefix ;;
  1035. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1036. prefix=$ac_optarg ;;
  1037. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1038. | --program-pre | --program-pr | --program-p)
  1039. ac_prev=program_prefix ;;
  1040. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1041. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1042. program_prefix=$ac_optarg ;;
  1043. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1044. | --program-suf | --program-su | --program-s)
  1045. ac_prev=program_suffix ;;
  1046. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1047. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1048. program_suffix=$ac_optarg ;;
  1049. -program-transform-name | --program-transform-name \
  1050. | --program-transform-nam | --program-transform-na \
  1051. | --program-transform-n | --program-transform- \
  1052. | --program-transform | --program-transfor \
  1053. | --program-transfo | --program-transf \
  1054. | --program-trans | --program-tran \
  1055. | --progr-tra | --program-tr | --program-t)
  1056. ac_prev=program_transform_name ;;
  1057. -program-transform-name=* | --program-transform-name=* \
  1058. | --program-transform-nam=* | --program-transform-na=* \
  1059. | --program-transform-n=* | --program-transform-=* \
  1060. | --program-transform=* | --program-transfor=* \
  1061. | --program-transfo=* | --program-transf=* \
  1062. | --program-trans=* | --program-tran=* \
  1063. | --progr-tra=* | --program-tr=* | --program-t=*)
  1064. program_transform_name=$ac_optarg ;;
  1065. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1066. ac_prev=pdfdir ;;
  1067. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1068. pdfdir=$ac_optarg ;;
  1069. -psdir | --psdir | --psdi | --psd | --ps)
  1070. ac_prev=psdir ;;
  1071. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1072. psdir=$ac_optarg ;;
  1073. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1074. | -silent | --silent | --silen | --sile | --sil)
  1075. silent=yes ;;
  1076. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1077. ac_prev=sbindir ;;
  1078. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1079. | --sbi=* | --sb=*)
  1080. sbindir=$ac_optarg ;;
  1081. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1082. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1083. | --sharedst | --shareds | --shared | --share | --shar \
  1084. | --sha | --sh)
  1085. ac_prev=sharedstatedir ;;
  1086. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1087. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1088. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1089. | --sha=* | --sh=*)
  1090. sharedstatedir=$ac_optarg ;;
  1091. -site | --site | --sit)
  1092. ac_prev=site ;;
  1093. -site=* | --site=* | --sit=*)
  1094. site=$ac_optarg ;;
  1095. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1096. ac_prev=srcdir ;;
  1097. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1098. srcdir=$ac_optarg ;;
  1099. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1100. | --syscon | --sysco | --sysc | --sys | --sy)
  1101. ac_prev=sysconfdir ;;
  1102. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1103. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1104. sysconfdir=$ac_optarg ;;
  1105. -target | --target | --targe | --targ | --tar | --ta | --t)
  1106. ac_prev=target_alias ;;
  1107. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1108. target_alias=$ac_optarg ;;
  1109. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1110. verbose=yes ;;
  1111. -version | --version | --versio | --versi | --vers | -V)
  1112. ac_init_version=: ;;
  1113. -with-* | --with-*)
  1114. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1115. # Reject names that are not valid shell variable names.
  1116. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1117. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1118. { (exit 1); exit 1; }; }
  1119. ac_useropt_orig=$ac_useropt
  1120. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1121. case $ac_user_opts in
  1122. *"
  1123. "with_$ac_useropt"
  1124. "*) ;;
  1125. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1126. ac_unrecognized_sep=', ';;
  1127. esac
  1128. eval with_$ac_useropt=\$ac_optarg ;;
  1129. -without-* | --without-*)
  1130. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1131. # Reject names that are not valid shell variable names.
  1132. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1133. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1134. { (exit 1); exit 1; }; }
  1135. ac_useropt_orig=$ac_useropt
  1136. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1137. case $ac_user_opts in
  1138. *"
  1139. "with_$ac_useropt"
  1140. "*) ;;
  1141. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1142. ac_unrecognized_sep=', ';;
  1143. esac
  1144. eval with_$ac_useropt=no ;;
  1145. --x)
  1146. # Obsolete; use --with-x.
  1147. with_x=yes ;;
  1148. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1149. | --x-incl | --x-inc | --x-in | --x-i)
  1150. ac_prev=x_includes ;;
  1151. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1152. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1153. x_includes=$ac_optarg ;;
  1154. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1155. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1156. ac_prev=x_libraries ;;
  1157. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1158. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1159. x_libraries=$ac_optarg ;;
  1160. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1161. Try \`$0 --help' for more information." >&2
  1162. { (exit 1); exit 1; }; }
  1163. ;;
  1164. *=*)
  1165. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1166. # Reject names that are not valid shell variable names.
  1167. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1168. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1169. { (exit 1); exit 1; }; }
  1170. eval $ac_envvar=\$ac_optarg
  1171. export $ac_envvar ;;
  1172. *)
  1173. # FIXME: should be removed in autoconf 3.0.
  1174. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1175. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1176. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1177. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1178. ;;
  1179. esac
  1180. done
  1181. if test -n "$ac_prev"; then
  1182. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1183. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1184. { (exit 1); exit 1; }; }
  1185. fi
  1186. if test -n "$ac_unrecognized_opts"; then
  1187. case $enable_option_checking in
  1188. no) ;;
  1189. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1190. { (exit 1); exit 1; }; } ;;
  1191. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1192. esac
  1193. fi
  1194. # Check all directory arguments for consistency.
  1195. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1196. datadir sysconfdir sharedstatedir localstatedir includedir \
  1197. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1198. libdir localedir mandir
  1199. do
  1200. eval ac_val=\$$ac_var
  1201. # Remove trailing slashes.
  1202. case $ac_val in
  1203. */ )
  1204. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1205. eval $ac_var=\$ac_val;;
  1206. esac
  1207. # Be sure to have absolute directory names.
  1208. case $ac_val in
  1209. [\\/$]* | ?:[\\/]* ) continue;;
  1210. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1211. esac
  1212. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1213. { (exit 1); exit 1; }; }
  1214. done
  1215. # There might be people who depend on the old broken behavior: `$host'
  1216. # used to hold the argument of --host etc.
  1217. # FIXME: To remove some day.
  1218. build=$build_alias
  1219. host=$host_alias
  1220. target=$target_alias
  1221. # FIXME: To remove some day.
  1222. if test "x$host_alias" != x; then
  1223. if test "x$build_alias" = x; then
  1224. cross_compiling=maybe
  1225. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1226. If a cross compiler is detected then cross compile mode will be used." >&2
  1227. elif test "x$build_alias" != "x$host_alias"; then
  1228. cross_compiling=yes
  1229. fi
  1230. fi
  1231. ac_tool_prefix=
  1232. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1233. test "$silent" = yes && exec 6>/dev/null
  1234. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1235. ac_ls_di=`ls -di .` &&
  1236. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1237. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1238. { (exit 1); exit 1; }; }
  1239. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1240. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1241. { (exit 1); exit 1; }; }
  1242. # Find the source files, if location was not specified.
  1243. if test -z "$srcdir"; then
  1244. ac_srcdir_defaulted=yes
  1245. # Try the directory containing this script, then the parent directory.
  1246. ac_confdir=`$as_dirname -- "$as_myself" ||
  1247. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1248. X"$as_myself" : 'X\(//\)[^/]' \| \
  1249. X"$as_myself" : 'X\(//\)$' \| \
  1250. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1251. $as_echo X"$as_myself" |
  1252. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1253. s//\1/
  1254. q
  1255. }
  1256. /^X\(\/\/\)[^/].*/{
  1257. s//\1/
  1258. q
  1259. }
  1260. /^X\(\/\/\)$/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\).*/{
  1265. s//\1/
  1266. q
  1267. }
  1268. s/.*/./; q'`
  1269. srcdir=$ac_confdir
  1270. if test ! -r "$srcdir/$ac_unique_file"; then
  1271. srcdir=..
  1272. fi
  1273. else
  1274. ac_srcdir_defaulted=no
  1275. fi
  1276. if test ! -r "$srcdir/$ac_unique_file"; then
  1277. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1278. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1279. { (exit 1); exit 1; }; }
  1280. fi
  1281. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1282. ac_abs_confdir=`(
  1283. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1284. { (exit 1); exit 1; }; }
  1285. pwd)`
  1286. # When building in place, set srcdir=.
  1287. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1288. srcdir=.
  1289. fi
  1290. # Remove unnecessary trailing slashes from srcdir.
  1291. # Double slashes in file names in object file debugging info
  1292. # mess up M-x gdb in Emacs.
  1293. case $srcdir in
  1294. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1295. esac
  1296. for ac_var in $ac_precious_vars; do
  1297. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1298. eval ac_env_${ac_var}_value=\$${ac_var}
  1299. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1300. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1301. done
  1302. #
  1303. # Report the --help message.
  1304. #
  1305. if test "$ac_init_help" = "long"; then
  1306. # Omit some internal or obsolete options to make the list less imposing.
  1307. # This message is too long to be a string in the A/UX 3.1 sh.
  1308. cat <<_ACEOF
  1309. \`configure' configures guile-readline 1.8.7 to adapt to many kinds of systems.
  1310. Usage: $0 [OPTION]... [VAR=VALUE]...
  1311. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1312. VAR=VALUE. See below for descriptions of some of the useful variables.
  1313. Defaults for the options are specified in brackets.
  1314. Configuration:
  1315. -h, --help display this help and exit
  1316. --help=short display options specific to this package
  1317. --help=recursive display the short help of all the included packages
  1318. -V, --version display version information and exit
  1319. -q, --quiet, --silent do not print \`checking...' messages
  1320. --cache-file=FILE cache test results in FILE [disabled]
  1321. -C, --config-cache alias for \`--cache-file=config.cache'
  1322. -n, --no-create do not create output files
  1323. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1324. Installation directories:
  1325. --prefix=PREFIX install architecture-independent files in PREFIX
  1326. [$ac_default_prefix]
  1327. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1328. [PREFIX]
  1329. By default, \`make install' will install all the files in
  1330. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1331. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1332. for instance \`--prefix=\$HOME'.
  1333. For better control, use the options below.
  1334. Fine tuning of the installation directories:
  1335. --bindir=DIR user executables [EPREFIX/bin]
  1336. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1337. --libexecdir=DIR program executables [EPREFIX/libexec]
  1338. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1339. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1340. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1341. --libdir=DIR object code libraries [EPREFIX/lib]
  1342. --includedir=DIR C header files [PREFIX/include]
  1343. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1344. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1345. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1346. --infodir=DIR info documentation [DATAROOTDIR/info]
  1347. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1348. --mandir=DIR man documentation [DATAROOTDIR/man]
  1349. --docdir=DIR documentation root [DATAROOTDIR/doc/guile-readline]
  1350. --htmldir=DIR html documentation [DOCDIR]
  1351. --dvidir=DIR dvi documentation [DOCDIR]
  1352. --pdfdir=DIR pdf documentation [DOCDIR]
  1353. --psdir=DIR ps documentation [DOCDIR]
  1354. _ACEOF
  1355. cat <<\_ACEOF
  1356. Program names:
  1357. --program-prefix=PREFIX prepend PREFIX to installed program names
  1358. --program-suffix=SUFFIX append SUFFIX to installed program names
  1359. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1360. System types:
  1361. --build=BUILD configure for building on BUILD [guessed]
  1362. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1363. _ACEOF
  1364. fi
  1365. if test -n "$ac_init_help"; then
  1366. case $ac_init_help in
  1367. short | recursive ) echo "Configuration of guile-readline 1.8.7:";;
  1368. esac
  1369. cat <<\_ACEOF
  1370. Optional Features:
  1371. --disable-option-checking ignore unrecognized --enable/--with options
  1372. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1373. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1374. --disable-dependency-tracking speeds up one-time build
  1375. --enable-dependency-tracking do not reject slow dependency extractors
  1376. --enable-shared[=PKGS] build shared libraries [default=yes]
  1377. --enable-static[=PKGS] build static libraries [default=yes]
  1378. --enable-fast-install[=PKGS]
  1379. optimize for fast installation [default=yes]
  1380. --disable-libtool-lock avoid locking (might break parallel builds)
  1381. Optional Packages:
  1382. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1383. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1384. --with-pic try to use only PIC/non-PIC objects [default=use
  1385. both]
  1386. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1387. Some influential environment variables:
  1388. CC C compiler command
  1389. CFLAGS C compiler flags
  1390. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1391. nonstandard directory <lib dir>
  1392. LIBS libraries to pass to the linker, e.g. -l<library>
  1393. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1394. you have headers in a nonstandard directory <include dir>
  1395. CPP C preprocessor
  1396. Use these variables to override the choices made by `configure' or to help
  1397. it to find libraries and programs with nonstandard names/locations.
  1398. Report bugs to <bug-guile@gnu.org>.
  1399. _ACEOF
  1400. ac_status=$?
  1401. fi
  1402. if test "$ac_init_help" = "recursive"; then
  1403. # If there are subdirs, report their specific --help.
  1404. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1405. test -d "$ac_dir" ||
  1406. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1407. continue
  1408. ac_builddir=.
  1409. case "$ac_dir" in
  1410. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1411. *)
  1412. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1413. # A ".." for each directory in $ac_dir_suffix.
  1414. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1415. case $ac_top_builddir_sub in
  1416. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1417. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1418. esac ;;
  1419. esac
  1420. ac_abs_top_builddir=$ac_pwd
  1421. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1422. # for backward compatibility:
  1423. ac_top_builddir=$ac_top_build_prefix
  1424. case $srcdir in
  1425. .) # We are building in place.
  1426. ac_srcdir=.
  1427. ac_top_srcdir=$ac_top_builddir_sub
  1428. ac_abs_top_srcdir=$ac_pwd ;;
  1429. [\\/]* | ?:[\\/]* ) # Absolute name.
  1430. ac_srcdir=$srcdir$ac_dir_suffix;
  1431. ac_top_srcdir=$srcdir
  1432. ac_abs_top_srcdir=$srcdir ;;
  1433. *) # Relative name.
  1434. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1435. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1436. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1437. esac
  1438. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1439. cd "$ac_dir" || { ac_status=$?; continue; }
  1440. # Check for guested configure.
  1441. if test -f "$ac_srcdir/configure.gnu"; then
  1442. echo &&
  1443. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1444. elif test -f "$ac_srcdir/configure"; then
  1445. echo &&
  1446. $SHELL "$ac_srcdir/configure" --help=recursive
  1447. else
  1448. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1449. fi || ac_status=$?
  1450. cd "$ac_pwd" || { ac_status=$?; break; }
  1451. done
  1452. fi
  1453. test -n "$ac_init_help" && exit $ac_status
  1454. if $ac_init_version; then
  1455. cat <<\_ACEOF
  1456. guile-readline configure 1.8.7
  1457. generated by GNU Autoconf 2.63
  1458. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1459. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1460. This configure script is free software; the Free Software Foundation
  1461. gives unlimited permission to copy, distribute and modify it.
  1462. _ACEOF
  1463. exit
  1464. fi
  1465. cat >config.log <<_ACEOF
  1466. This file contains any messages produced by compilers while
  1467. running configure, to aid debugging if configure makes a mistake.
  1468. It was created by guile-readline $as_me 1.8.7, which was
  1469. generated by GNU Autoconf 2.63. Invocation command line was
  1470. $ $0 $@
  1471. _ACEOF
  1472. exec 5>>config.log
  1473. {
  1474. cat <<_ASUNAME
  1475. ## --------- ##
  1476. ## Platform. ##
  1477. ## --------- ##
  1478. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1479. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1480. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1481. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1482. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1483. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1484. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1485. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1486. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1487. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1488. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1489. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1490. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1491. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1492. _ASUNAME
  1493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1494. for as_dir in $PATH
  1495. do
  1496. IFS=$as_save_IFS
  1497. test -z "$as_dir" && as_dir=.
  1498. $as_echo "PATH: $as_dir"
  1499. done
  1500. IFS=$as_save_IFS
  1501. } >&5
  1502. cat >&5 <<_ACEOF
  1503. ## ----------- ##
  1504. ## Core tests. ##
  1505. ## ----------- ##
  1506. _ACEOF
  1507. # Keep a trace of the command line.
  1508. # Strip out --no-create and --no-recursion so they do not pile up.
  1509. # Strip out --silent because we don't want to record it for future runs.
  1510. # Also quote any args containing shell meta-characters.
  1511. # Make two passes to allow for proper duplicate-argument suppression.
  1512. ac_configure_args=
  1513. ac_configure_args0=
  1514. ac_configure_args1=
  1515. ac_must_keep_next=false
  1516. for ac_pass in 1 2
  1517. do
  1518. for ac_arg
  1519. do
  1520. case $ac_arg in
  1521. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1522. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1523. | -silent | --silent | --silen | --sile | --sil)
  1524. continue ;;
  1525. *\'*)
  1526. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1527. esac
  1528. case $ac_pass in
  1529. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1530. 2)
  1531. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1532. if test $ac_must_keep_next = true; then
  1533. ac_must_keep_next=false # Got value, back to normal.
  1534. else
  1535. case $ac_arg in
  1536. *=* | --config-cache | -C | -disable-* | --disable-* \
  1537. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1538. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1539. | -with-* | --with-* | -without-* | --without-* | --x)
  1540. case "$ac_configure_args0 " in
  1541. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1542. esac
  1543. ;;
  1544. -* ) ac_must_keep_next=true ;;
  1545. esac
  1546. fi
  1547. ac_configure_args="$ac_configure_args '$ac_arg'"
  1548. ;;
  1549. esac
  1550. done
  1551. done
  1552. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1553. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1554. # When interrupted or exit'd, cleanup temporary files, and complete
  1555. # config.log. We remove comments because anyway the quotes in there
  1556. # would cause problems or look ugly.
  1557. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1558. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1559. trap 'exit_status=$?
  1560. # Save into config.log some information that might help in debugging.
  1561. {
  1562. echo
  1563. cat <<\_ASBOX
  1564. ## ---------------- ##
  1565. ## Cache variables. ##
  1566. ## ---------------- ##
  1567. _ASBOX
  1568. echo
  1569. # The following way of writing the cache mishandles newlines in values,
  1570. (
  1571. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1572. eval ac_val=\$$ac_var
  1573. case $ac_val in #(
  1574. *${as_nl}*)
  1575. case $ac_var in #(
  1576. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1577. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1578. esac
  1579. case $ac_var in #(
  1580. _ | IFS | as_nl) ;; #(
  1581. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1582. *) $as_unset $ac_var ;;
  1583. esac ;;
  1584. esac
  1585. done
  1586. (set) 2>&1 |
  1587. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1588. *${as_nl}ac_space=\ *)
  1589. sed -n \
  1590. "s/'\''/'\''\\\\'\'''\''/g;
  1591. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1592. ;; #(
  1593. *)
  1594. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1595. ;;
  1596. esac |
  1597. sort
  1598. )
  1599. echo
  1600. cat <<\_ASBOX
  1601. ## ----------------- ##
  1602. ## Output variables. ##
  1603. ## ----------------- ##
  1604. _ASBOX
  1605. echo
  1606. for ac_var in $ac_subst_vars
  1607. do
  1608. eval ac_val=\$$ac_var
  1609. case $ac_val in
  1610. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1611. esac
  1612. $as_echo "$ac_var='\''$ac_val'\''"
  1613. done | sort
  1614. echo
  1615. if test -n "$ac_subst_files"; then
  1616. cat <<\_ASBOX
  1617. ## ------------------- ##
  1618. ## File substitutions. ##
  1619. ## ------------------- ##
  1620. _ASBOX
  1621. echo
  1622. for ac_var in $ac_subst_files
  1623. do
  1624. eval ac_val=\$$ac_var
  1625. case $ac_val in
  1626. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1627. esac
  1628. $as_echo "$ac_var='\''$ac_val'\''"
  1629. done | sort
  1630. echo
  1631. fi
  1632. if test -s confdefs.h; then
  1633. cat <<\_ASBOX
  1634. ## ----------- ##
  1635. ## confdefs.h. ##
  1636. ## ----------- ##
  1637. _ASBOX
  1638. echo
  1639. cat confdefs.h
  1640. echo
  1641. fi
  1642. test "$ac_signal" != 0 &&
  1643. $as_echo "$as_me: caught signal $ac_signal"
  1644. $as_echo "$as_me: exit $exit_status"
  1645. } >&5
  1646. rm -f core *.core core.conftest.* &&
  1647. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1648. exit $exit_status
  1649. ' 0
  1650. for ac_signal in 1 2 13 15; do
  1651. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1652. done
  1653. ac_signal=0
  1654. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1655. rm -f -r conftest* confdefs.h
  1656. # Predefined preprocessor variables.
  1657. cat >>confdefs.h <<_ACEOF
  1658. #define PACKAGE_NAME "$PACKAGE_NAME"
  1659. _ACEOF
  1660. cat >>confdefs.h <<_ACEOF
  1661. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1662. _ACEOF
  1663. cat >>confdefs.h <<_ACEOF
  1664. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1665. _ACEOF
  1666. cat >>confdefs.h <<_ACEOF
  1667. #define PACKAGE_STRING "$PACKAGE_STRING"
  1668. _ACEOF
  1669. cat >>confdefs.h <<_ACEOF
  1670. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1671. _ACEOF
  1672. # Let the site file select an alternate cache file if it wants to.
  1673. # Prefer an explicitly selected file to automatically selected ones.
  1674. ac_site_file1=NONE
  1675. ac_site_file2=NONE
  1676. if test -n "$CONFIG_SITE"; then
  1677. ac_site_file1=$CONFIG_SITE
  1678. elif test "x$prefix" != xNONE; then
  1679. ac_site_file1=$prefix/share/config.site
  1680. ac_site_file2=$prefix/etc/config.site
  1681. else
  1682. ac_site_file1=$ac_default_prefix/share/config.site
  1683. ac_site_file2=$ac_default_prefix/etc/config.site
  1684. fi
  1685. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1686. do
  1687. test "x$ac_site_file" = xNONE && continue
  1688. if test -r "$ac_site_file"; then
  1689. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1690. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1691. sed 's/^/| /' "$ac_site_file" >&5
  1692. . "$ac_site_file"
  1693. fi
  1694. done
  1695. if test -r "$cache_file"; then
  1696. # Some versions of bash will fail to source /dev/null (special
  1697. # files actually), so we avoid doing that.
  1698. if test -f "$cache_file"; then
  1699. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1700. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1701. case $cache_file in
  1702. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1703. *) . "./$cache_file";;
  1704. esac
  1705. fi
  1706. else
  1707. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1708. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1709. >$cache_file
  1710. fi
  1711. # Check that the precious variables saved in the cache have kept the same
  1712. # value.
  1713. ac_cache_corrupted=false
  1714. for ac_var in $ac_precious_vars; do
  1715. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1716. eval ac_new_set=\$ac_env_${ac_var}_set
  1717. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1718. eval ac_new_val=\$ac_env_${ac_var}_value
  1719. case $ac_old_set,$ac_new_set in
  1720. set,)
  1721. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1722. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1723. ac_cache_corrupted=: ;;
  1724. ,set)
  1725. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1726. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1727. ac_cache_corrupted=: ;;
  1728. ,);;
  1729. *)
  1730. if test "x$ac_old_val" != "x$ac_new_val"; then
  1731. # differences in whitespace do not lead to failure.
  1732. ac_old_val_w=`echo x $ac_old_val`
  1733. ac_new_val_w=`echo x $ac_new_val`
  1734. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1735. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1736. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1737. ac_cache_corrupted=:
  1738. else
  1739. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1740. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1741. eval $ac_var=\$ac_old_val
  1742. fi
  1743. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1744. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1745. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1746. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1747. fi;;
  1748. esac
  1749. # Pass precious variables to config.status.
  1750. if test "$ac_new_set" = set; then
  1751. case $ac_new_val in
  1752. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1753. *) ac_arg=$ac_var=$ac_new_val ;;
  1754. esac
  1755. case " $ac_configure_args " in
  1756. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1757. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1758. esac
  1759. fi
  1760. done
  1761. if $ac_cache_corrupted; then
  1762. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1763. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1764. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1765. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1766. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1767. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1768. { (exit 1); exit 1; }; }
  1769. fi
  1770. ac_ext=c
  1771. ac_cpp='$CPP $CPPFLAGS'
  1772. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1773. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1774. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1775. ac_aux_dir=
  1776. for ac_dir in . "$srcdir"/.; do
  1777. if test -f "$ac_dir/install-sh"; then
  1778. ac_aux_dir=$ac_dir
  1779. ac_install_sh="$ac_aux_dir/install-sh -c"
  1780. break
  1781. elif test -f "$ac_dir/install.sh"; then
  1782. ac_aux_dir=$ac_dir
  1783. ac_install_sh="$ac_aux_dir/install.sh -c"
  1784. break
  1785. elif test -f "$ac_dir/shtool"; then
  1786. ac_aux_dir=$ac_dir
  1787. ac_install_sh="$ac_aux_dir/shtool install -c"
  1788. break
  1789. fi
  1790. done
  1791. if test -z "$ac_aux_dir"; then
  1792. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
  1793. $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
  1794. { (exit 1); exit 1; }; }
  1795. fi
  1796. # These three variables are undocumented and unsupported,
  1797. # and are intended to be withdrawn in a future Autoconf release.
  1798. # They can cause serious problems if a builder's source tree is in a directory
  1799. # whose full name contains unusual characters.
  1800. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1801. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1802. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1803. ac_config_headers="$ac_config_headers guile-readline-config.h"
  1804. am__api_version='1.11'
  1805. # Find a good install program. We prefer a C program (faster),
  1806. # so one script is as good as another. But avoid the broken or
  1807. # incompatible versions:
  1808. # SysV /etc/install, /usr/sbin/install
  1809. # SunOS /usr/etc/install
  1810. # IRIX /sbin/install
  1811. # AIX /bin/install
  1812. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1813. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1814. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1815. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1816. # OS/2's system install, which has a completely different semantic
  1817. # ./install, which can be erroneously created by make from ./install.sh.
  1818. # Reject install programs that cannot install multiple files.
  1819. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1820. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1821. if test -z "$INSTALL"; then
  1822. if test "${ac_cv_path_install+set}" = set; then
  1823. $as_echo_n "(cached) " >&6
  1824. else
  1825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1826. for as_dir in $PATH
  1827. do
  1828. IFS=$as_save_IFS
  1829. test -z "$as_dir" && as_dir=.
  1830. # Account for people who put trailing slashes in PATH elements.
  1831. case $as_dir/ in
  1832. ./ | .// | /cC/* | \
  1833. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1834. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1835. /usr/ucb/* ) ;;
  1836. *)
  1837. # OSF1 and SCO ODT 3.0 have their own names for install.
  1838. # Don't use installbsd from OSF since it installs stuff as root
  1839. # by default.
  1840. for ac_prog in ginstall scoinst install; do
  1841. for ac_exec_ext in '' $ac_executable_extensions; do
  1842. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1843. if test $ac_prog = install &&
  1844. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1845. # AIX install. It has an incompatible calling convention.
  1846. :
  1847. elif test $ac_prog = install &&
  1848. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1849. # program-specific install script used by HP pwplus--don't use.
  1850. :
  1851. else
  1852. rm -rf conftest.one conftest.two conftest.dir
  1853. echo one > conftest.one
  1854. echo two > conftest.two
  1855. mkdir conftest.dir
  1856. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1857. test -s conftest.one && test -s conftest.two &&
  1858. test -s conftest.dir/conftest.one &&
  1859. test -s conftest.dir/conftest.two
  1860. then
  1861. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1862. break 3
  1863. fi
  1864. fi
  1865. fi
  1866. done
  1867. done
  1868. ;;
  1869. esac
  1870. done
  1871. IFS=$as_save_IFS
  1872. rm -rf conftest.one conftest.two conftest.dir
  1873. fi
  1874. if test "${ac_cv_path_install+set}" = set; then
  1875. INSTALL=$ac_cv_path_install
  1876. else
  1877. # As a last resort, use the slow shell script. Don't cache a
  1878. # value for INSTALL within a source directory, because that will
  1879. # break other packages using the cache if that directory is
  1880. # removed, or if the value is a relative name.
  1881. INSTALL=$ac_install_sh
  1882. fi
  1883. fi
  1884. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  1885. $as_echo "$INSTALL" >&6; }
  1886. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1887. # It thinks the first close brace ends the variable substitution.
  1888. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1889. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1890. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1891. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1892. $as_echo_n "checking whether build environment is sane... " >&6; }
  1893. # Just in case
  1894. sleep 1
  1895. echo timestamp > conftest.file
  1896. # Reject unsafe characters in $srcdir or the absolute working directory
  1897. # name. Accept space and tab only in the latter.
  1898. am_lf='
  1899. '
  1900. case `pwd` in
  1901. *[\\\"\#\$\&\'\`$am_lf]*)
  1902. { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  1903. $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  1904. { (exit 1); exit 1; }; };;
  1905. esac
  1906. case $srcdir in
  1907. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  1908. { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  1909. $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  1910. { (exit 1); exit 1; }; };;
  1911. esac
  1912. # Do `set' in a subshell so we don't clobber the current shell's
  1913. # arguments. Must try -L first in case configure is actually a
  1914. # symlink; some systems play weird games with the mod time of symlinks
  1915. # (eg FreeBSD returns the mod time of the symlink's containing
  1916. # directory).
  1917. if (
  1918. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  1919. if test "$*" = "X"; then
  1920. # -L didn't work.
  1921. set X `ls -t "$srcdir/configure" conftest.file`
  1922. fi
  1923. rm -f conftest.file
  1924. if test "$*" != "X $srcdir/configure conftest.file" \
  1925. && test "$*" != "X conftest.file $srcdir/configure"; then
  1926. # If neither matched, then we have a broken ls. This can happen
  1927. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1928. # broken ls alias from the environment. This has actually
  1929. # happened. Such a system could not be considered "sane".
  1930. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1931. alias in your environment" >&5
  1932. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1933. alias in your environment" >&2;}
  1934. { (exit 1); exit 1; }; }
  1935. fi
  1936. test "$2" = conftest.file
  1937. )
  1938. then
  1939. # Ok.
  1940. :
  1941. else
  1942. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1943. Check your system clock" >&5
  1944. $as_echo "$as_me: error: newly created file is older than distributed files!
  1945. Check your system clock" >&2;}
  1946. { (exit 1); exit 1; }; }
  1947. fi
  1948. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1949. $as_echo "yes" >&6; }
  1950. test "$program_prefix" != NONE &&
  1951. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1952. # Use a double $ so make ignores it.
  1953. test "$program_suffix" != NONE &&
  1954. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1955. # Double any \ or $.
  1956. # By default was `s,x,x', remove it if useless.
  1957. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  1958. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  1959. # expand $ac_aux_dir to an absolute path
  1960. am_aux_dir=`cd $ac_aux_dir && pwd`
  1961. if test x"${MISSING+set}" != xset; then
  1962. case $am_aux_dir in
  1963. *\ * | *\ *)
  1964. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  1965. *)
  1966. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  1967. esac
  1968. fi
  1969. # Use eval to expand $SHELL
  1970. if eval "$MISSING --run true"; then
  1971. am_missing_run="$MISSING --run "
  1972. else
  1973. am_missing_run=
  1974. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1975. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1976. fi
  1977. if test x"${install_sh}" != xset; then
  1978. case $am_aux_dir in
  1979. *\ * | *\ *)
  1980. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  1981. *)
  1982. install_sh="\${SHELL} $am_aux_dir/install-sh"
  1983. esac
  1984. fi
  1985. # Installed binaries are usually stripped using `strip' when the user
  1986. # run `make install-strip'. However `strip' might not be the right
  1987. # tool to use in cross-compilation environments, therefore Automake
  1988. # will honor the `STRIP' environment variable to overrule this program.
  1989. if test "$cross_compiling" != no; then
  1990. if test -n "$ac_tool_prefix"; then
  1991. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1992. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1993. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1994. $as_echo_n "checking for $ac_word... " >&6; }
  1995. if test "${ac_cv_prog_STRIP+set}" = set; then
  1996. $as_echo_n "(cached) " >&6
  1997. else
  1998. if test -n "$STRIP"; then
  1999. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2000. else
  2001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2002. for as_dir in $PATH
  2003. do
  2004. IFS=$as_save_IFS
  2005. test -z "$as_dir" && as_dir=.
  2006. for ac_exec_ext in '' $ac_executable_extensions; do
  2007. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2008. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2009. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2010. break 2
  2011. fi
  2012. done
  2013. done
  2014. IFS=$as_save_IFS
  2015. fi
  2016. fi
  2017. STRIP=$ac_cv_prog_STRIP
  2018. if test -n "$STRIP"; then
  2019. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2020. $as_echo "$STRIP" >&6; }
  2021. else
  2022. { $as_echo "$as_me:$LINENO: result: no" >&5
  2023. $as_echo "no" >&6; }
  2024. fi
  2025. fi
  2026. if test -z "$ac_cv_prog_STRIP"; then
  2027. ac_ct_STRIP=$STRIP
  2028. # Extract the first word of "strip", so it can be a program name with args.
  2029. set dummy strip; ac_word=$2
  2030. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2031. $as_echo_n "checking for $ac_word... " >&6; }
  2032. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2033. $as_echo_n "(cached) " >&6
  2034. else
  2035. if test -n "$ac_ct_STRIP"; then
  2036. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2037. else
  2038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2039. for as_dir in $PATH
  2040. do
  2041. IFS=$as_save_IFS
  2042. test -z "$as_dir" && as_dir=.
  2043. for ac_exec_ext in '' $ac_executable_extensions; do
  2044. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2045. ac_cv_prog_ac_ct_STRIP="strip"
  2046. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2047. break 2
  2048. fi
  2049. done
  2050. done
  2051. IFS=$as_save_IFS
  2052. fi
  2053. fi
  2054. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2055. if test -n "$ac_ct_STRIP"; then
  2056. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2057. $as_echo "$ac_ct_STRIP" >&6; }
  2058. else
  2059. { $as_echo "$as_me:$LINENO: result: no" >&5
  2060. $as_echo "no" >&6; }
  2061. fi
  2062. if test "x$ac_ct_STRIP" = x; then
  2063. STRIP=":"
  2064. else
  2065. case $cross_compiling:$ac_tool_warned in
  2066. yes:)
  2067. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2068. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2069. ac_tool_warned=yes ;;
  2070. esac
  2071. STRIP=$ac_ct_STRIP
  2072. fi
  2073. else
  2074. STRIP="$ac_cv_prog_STRIP"
  2075. fi
  2076. fi
  2077. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2078. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2079. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2080. if test -z "$MKDIR_P"; then
  2081. if test "${ac_cv_path_mkdir+set}" = set; then
  2082. $as_echo_n "(cached) " >&6
  2083. else
  2084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2085. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2086. do
  2087. IFS=$as_save_IFS
  2088. test -z "$as_dir" && as_dir=.
  2089. for ac_prog in mkdir gmkdir; do
  2090. for ac_exec_ext in '' $ac_executable_extensions; do
  2091. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2092. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2093. 'mkdir (GNU coreutils) '* | \
  2094. 'mkdir (coreutils) '* | \
  2095. 'mkdir (fileutils) '4.1*)
  2096. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2097. break 3;;
  2098. esac
  2099. done
  2100. done
  2101. done
  2102. IFS=$as_save_IFS
  2103. fi
  2104. if test "${ac_cv_path_mkdir+set}" = set; then
  2105. MKDIR_P="$ac_cv_path_mkdir -p"
  2106. else
  2107. # As a last resort, use the slow shell script. Don't cache a
  2108. # value for MKDIR_P within a source directory, because that will
  2109. # break other packages using the cache if that directory is
  2110. # removed, or if the value is a relative name.
  2111. test -d ./--version && rmdir ./--version
  2112. MKDIR_P="$ac_install_sh -d"
  2113. fi
  2114. fi
  2115. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2116. $as_echo "$MKDIR_P" >&6; }
  2117. mkdir_p="$MKDIR_P"
  2118. case $mkdir_p in
  2119. [\\/$]* | ?:[\\/]*) ;;
  2120. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2121. esac
  2122. for ac_prog in gawk mawk nawk awk
  2123. do
  2124. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2125. set dummy $ac_prog; ac_word=$2
  2126. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2127. $as_echo_n "checking for $ac_word... " >&6; }
  2128. if test "${ac_cv_prog_AWK+set}" = set; then
  2129. $as_echo_n "(cached) " >&6
  2130. else
  2131. if test -n "$AWK"; then
  2132. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2133. else
  2134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2135. for as_dir in $PATH
  2136. do
  2137. IFS=$as_save_IFS
  2138. test -z "$as_dir" && as_dir=.
  2139. for ac_exec_ext in '' $ac_executable_extensions; do
  2140. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2141. ac_cv_prog_AWK="$ac_prog"
  2142. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2143. break 2
  2144. fi
  2145. done
  2146. done
  2147. IFS=$as_save_IFS
  2148. fi
  2149. fi
  2150. AWK=$ac_cv_prog_AWK
  2151. if test -n "$AWK"; then
  2152. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2153. $as_echo "$AWK" >&6; }
  2154. else
  2155. { $as_echo "$as_me:$LINENO: result: no" >&5
  2156. $as_echo "no" >&6; }
  2157. fi
  2158. test -n "$AWK" && break
  2159. done
  2160. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2161. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2162. set x ${MAKE-make}
  2163. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2164. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2165. $as_echo_n "(cached) " >&6
  2166. else
  2167. cat >conftest.make <<\_ACEOF
  2168. SHELL = /bin/sh
  2169. all:
  2170. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2171. _ACEOF
  2172. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2173. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2174. *@@@%%%=?*=@@@%%%*)
  2175. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2176. *)
  2177. eval ac_cv_prog_make_${ac_make}_set=no;;
  2178. esac
  2179. rm -f conftest.make
  2180. fi
  2181. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2182. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2183. $as_echo "yes" >&6; }
  2184. SET_MAKE=
  2185. else
  2186. { $as_echo "$as_me:$LINENO: result: no" >&5
  2187. $as_echo "no" >&6; }
  2188. SET_MAKE="MAKE=${MAKE-make}"
  2189. fi
  2190. rm -rf .tst 2>/dev/null
  2191. mkdir .tst 2>/dev/null
  2192. if test -d .tst; then
  2193. am__leading_dot=.
  2194. else
  2195. am__leading_dot=_
  2196. fi
  2197. rmdir .tst 2>/dev/null
  2198. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2199. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2200. # is not polluted with repeated "-I."
  2201. am__isrc=' -I$(srcdir)'
  2202. # test to see if srcdir already configured
  2203. if test -f $srcdir/config.status; then
  2204. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2205. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2206. { (exit 1); exit 1; }; }
  2207. fi
  2208. fi
  2209. # test whether we have cygpath
  2210. if test -z "$CYGPATH_W"; then
  2211. if (cygpath --version) >/dev/null 2>/dev/null; then
  2212. CYGPATH_W='cygpath -w'
  2213. else
  2214. CYGPATH_W=echo
  2215. fi
  2216. fi
  2217. # Define the identity of the package.
  2218. PACKAGE='guile-readline'
  2219. VERSION='1.8.7'
  2220. # Some tools Automake needs.
  2221. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2222. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2223. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2224. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2225. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2226. # We need awk for the "check" target. The system "awk" is bad on
  2227. # some platforms.
  2228. # Always define AMTAR for backward compatibility.
  2229. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2230. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2231. . $srcdir/../GUILE-VERSION
  2232. # Find a good install program. We prefer a C program (faster),
  2233. # so one script is as good as another. But avoid the broken or
  2234. # incompatible versions:
  2235. # SysV /etc/install, /usr/sbin/install
  2236. # SunOS /usr/etc/install
  2237. # IRIX /sbin/install
  2238. # AIX /bin/install
  2239. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2240. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2241. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2242. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2243. # OS/2's system install, which has a completely different semantic
  2244. # ./install, which can be erroneously created by make from ./install.sh.
  2245. # Reject install programs that cannot install multiple files.
  2246. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2247. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2248. if test -z "$INSTALL"; then
  2249. if test "${ac_cv_path_install+set}" = set; then
  2250. $as_echo_n "(cached) " >&6
  2251. else
  2252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2253. for as_dir in $PATH
  2254. do
  2255. IFS=$as_save_IFS
  2256. test -z "$as_dir" && as_dir=.
  2257. # Account for people who put trailing slashes in PATH elements.
  2258. case $as_dir/ in
  2259. ./ | .// | /cC/* | \
  2260. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2261. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2262. /usr/ucb/* ) ;;
  2263. *)
  2264. # OSF1 and SCO ODT 3.0 have their own names for install.
  2265. # Don't use installbsd from OSF since it installs stuff as root
  2266. # by default.
  2267. for ac_prog in ginstall scoinst install; do
  2268. for ac_exec_ext in '' $ac_executable_extensions; do
  2269. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2270. if test $ac_prog = install &&
  2271. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2272. # AIX install. It has an incompatible calling convention.
  2273. :
  2274. elif test $ac_prog = install &&
  2275. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2276. # program-specific install script used by HP pwplus--don't use.
  2277. :
  2278. else
  2279. rm -rf conftest.one conftest.two conftest.dir
  2280. echo one > conftest.one
  2281. echo two > conftest.two
  2282. mkdir conftest.dir
  2283. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2284. test -s conftest.one && test -s conftest.two &&
  2285. test -s conftest.dir/conftest.one &&
  2286. test -s conftest.dir/conftest.two
  2287. then
  2288. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2289. break 3
  2290. fi
  2291. fi
  2292. fi
  2293. done
  2294. done
  2295. ;;
  2296. esac
  2297. done
  2298. IFS=$as_save_IFS
  2299. rm -rf conftest.one conftest.two conftest.dir
  2300. fi
  2301. if test "${ac_cv_path_install+set}" = set; then
  2302. INSTALL=$ac_cv_path_install
  2303. else
  2304. # As a last resort, use the slow shell script. Don't cache a
  2305. # value for INSTALL within a source directory, because that will
  2306. # break other packages using the cache if that directory is
  2307. # removed, or if the value is a relative name.
  2308. INSTALL=$ac_install_sh
  2309. fi
  2310. fi
  2311. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2312. $as_echo "$INSTALL" >&6; }
  2313. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2314. # It thinks the first close brace ends the variable substitution.
  2315. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2316. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2317. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2318. ac_ext=c
  2319. ac_cpp='$CPP $CPPFLAGS'
  2320. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2321. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2322. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2323. if test -n "$ac_tool_prefix"; then
  2324. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2325. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2326. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2327. $as_echo_n "checking for $ac_word... " >&6; }
  2328. if test "${ac_cv_prog_CC+set}" = set; then
  2329. $as_echo_n "(cached) " >&6
  2330. else
  2331. if test -n "$CC"; then
  2332. ac_cv_prog_CC="$CC" # Let the user override the test.
  2333. else
  2334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2335. for as_dir in $PATH
  2336. do
  2337. IFS=$as_save_IFS
  2338. test -z "$as_dir" && as_dir=.
  2339. for ac_exec_ext in '' $ac_executable_extensions; do
  2340. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2341. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2342. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2343. break 2
  2344. fi
  2345. done
  2346. done
  2347. IFS=$as_save_IFS
  2348. fi
  2349. fi
  2350. CC=$ac_cv_prog_CC
  2351. if test -n "$CC"; then
  2352. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2353. $as_echo "$CC" >&6; }
  2354. else
  2355. { $as_echo "$as_me:$LINENO: result: no" >&5
  2356. $as_echo "no" >&6; }
  2357. fi
  2358. fi
  2359. if test -z "$ac_cv_prog_CC"; then
  2360. ac_ct_CC=$CC
  2361. # Extract the first word of "gcc", so it can be a program name with args.
  2362. set dummy gcc; ac_word=$2
  2363. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2364. $as_echo_n "checking for $ac_word... " >&6; }
  2365. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2366. $as_echo_n "(cached) " >&6
  2367. else
  2368. if test -n "$ac_ct_CC"; then
  2369. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2370. else
  2371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2372. for as_dir in $PATH
  2373. do
  2374. IFS=$as_save_IFS
  2375. test -z "$as_dir" && as_dir=.
  2376. for ac_exec_ext in '' $ac_executable_extensions; do
  2377. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2378. ac_cv_prog_ac_ct_CC="gcc"
  2379. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2380. break 2
  2381. fi
  2382. done
  2383. done
  2384. IFS=$as_save_IFS
  2385. fi
  2386. fi
  2387. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2388. if test -n "$ac_ct_CC"; then
  2389. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2390. $as_echo "$ac_ct_CC" >&6; }
  2391. else
  2392. { $as_echo "$as_me:$LINENO: result: no" >&5
  2393. $as_echo "no" >&6; }
  2394. fi
  2395. if test "x$ac_ct_CC" = x; then
  2396. CC=""
  2397. else
  2398. case $cross_compiling:$ac_tool_warned in
  2399. yes:)
  2400. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2401. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2402. ac_tool_warned=yes ;;
  2403. esac
  2404. CC=$ac_ct_CC
  2405. fi
  2406. else
  2407. CC="$ac_cv_prog_CC"
  2408. fi
  2409. if test -z "$CC"; then
  2410. if test -n "$ac_tool_prefix"; then
  2411. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2412. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2413. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2414. $as_echo_n "checking for $ac_word... " >&6; }
  2415. if test "${ac_cv_prog_CC+set}" = set; then
  2416. $as_echo_n "(cached) " >&6
  2417. else
  2418. if test -n "$CC"; then
  2419. ac_cv_prog_CC="$CC" # Let the user override the test.
  2420. else
  2421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2422. for as_dir in $PATH
  2423. do
  2424. IFS=$as_save_IFS
  2425. test -z "$as_dir" && as_dir=.
  2426. for ac_exec_ext in '' $ac_executable_extensions; do
  2427. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2428. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2429. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2430. break 2
  2431. fi
  2432. done
  2433. done
  2434. IFS=$as_save_IFS
  2435. fi
  2436. fi
  2437. CC=$ac_cv_prog_CC
  2438. if test -n "$CC"; then
  2439. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2440. $as_echo "$CC" >&6; }
  2441. else
  2442. { $as_echo "$as_me:$LINENO: result: no" >&5
  2443. $as_echo "no" >&6; }
  2444. fi
  2445. fi
  2446. fi
  2447. if test -z "$CC"; then
  2448. # Extract the first word of "cc", so it can be a program name with args.
  2449. set dummy cc; ac_word=$2
  2450. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2451. $as_echo_n "checking for $ac_word... " >&6; }
  2452. if test "${ac_cv_prog_CC+set}" = set; then
  2453. $as_echo_n "(cached) " >&6
  2454. else
  2455. if test -n "$CC"; then
  2456. ac_cv_prog_CC="$CC" # Let the user override the test.
  2457. else
  2458. ac_prog_rejected=no
  2459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2460. for as_dir in $PATH
  2461. do
  2462. IFS=$as_save_IFS
  2463. test -z "$as_dir" && as_dir=.
  2464. for ac_exec_ext in '' $ac_executable_extensions; do
  2465. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2466. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2467. ac_prog_rejected=yes
  2468. continue
  2469. fi
  2470. ac_cv_prog_CC="cc"
  2471. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2472. break 2
  2473. fi
  2474. done
  2475. done
  2476. IFS=$as_save_IFS
  2477. if test $ac_prog_rejected = yes; then
  2478. # We found a bogon in the path, so make sure we never use it.
  2479. set dummy $ac_cv_prog_CC
  2480. shift
  2481. if test $# != 0; then
  2482. # We chose a different compiler from the bogus one.
  2483. # However, it has the same basename, so the bogon will be chosen
  2484. # first if we set CC to just the basename; use the full file name.
  2485. shift
  2486. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2487. fi
  2488. fi
  2489. fi
  2490. fi
  2491. CC=$ac_cv_prog_CC
  2492. if test -n "$CC"; then
  2493. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2494. $as_echo "$CC" >&6; }
  2495. else
  2496. { $as_echo "$as_me:$LINENO: result: no" >&5
  2497. $as_echo "no" >&6; }
  2498. fi
  2499. fi
  2500. if test -z "$CC"; then
  2501. if test -n "$ac_tool_prefix"; then
  2502. for ac_prog in cl.exe
  2503. do
  2504. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2505. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2506. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2507. $as_echo_n "checking for $ac_word... " >&6; }
  2508. if test "${ac_cv_prog_CC+set}" = set; then
  2509. $as_echo_n "(cached) " >&6
  2510. else
  2511. if test -n "$CC"; then
  2512. ac_cv_prog_CC="$CC" # Let the user override the test.
  2513. else
  2514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2515. for as_dir in $PATH
  2516. do
  2517. IFS=$as_save_IFS
  2518. test -z "$as_dir" && as_dir=.
  2519. for ac_exec_ext in '' $ac_executable_extensions; do
  2520. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2521. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2522. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2523. break 2
  2524. fi
  2525. done
  2526. done
  2527. IFS=$as_save_IFS
  2528. fi
  2529. fi
  2530. CC=$ac_cv_prog_CC
  2531. if test -n "$CC"; then
  2532. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2533. $as_echo "$CC" >&6; }
  2534. else
  2535. { $as_echo "$as_me:$LINENO: result: no" >&5
  2536. $as_echo "no" >&6; }
  2537. fi
  2538. test -n "$CC" && break
  2539. done
  2540. fi
  2541. if test -z "$CC"; then
  2542. ac_ct_CC=$CC
  2543. for ac_prog in cl.exe
  2544. do
  2545. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2546. set dummy $ac_prog; ac_word=$2
  2547. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2548. $as_echo_n "checking for $ac_word... " >&6; }
  2549. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2550. $as_echo_n "(cached) " >&6
  2551. else
  2552. if test -n "$ac_ct_CC"; then
  2553. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2554. else
  2555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2556. for as_dir in $PATH
  2557. do
  2558. IFS=$as_save_IFS
  2559. test -z "$as_dir" && as_dir=.
  2560. for ac_exec_ext in '' $ac_executable_extensions; do
  2561. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2562. ac_cv_prog_ac_ct_CC="$ac_prog"
  2563. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2564. break 2
  2565. fi
  2566. done
  2567. done
  2568. IFS=$as_save_IFS
  2569. fi
  2570. fi
  2571. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2572. if test -n "$ac_ct_CC"; then
  2573. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2574. $as_echo "$ac_ct_CC" >&6; }
  2575. else
  2576. { $as_echo "$as_me:$LINENO: result: no" >&5
  2577. $as_echo "no" >&6; }
  2578. fi
  2579. test -n "$ac_ct_CC" && break
  2580. done
  2581. if test "x$ac_ct_CC" = x; then
  2582. CC=""
  2583. else
  2584. case $cross_compiling:$ac_tool_warned in
  2585. yes:)
  2586. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2587. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2588. ac_tool_warned=yes ;;
  2589. esac
  2590. CC=$ac_ct_CC
  2591. fi
  2592. fi
  2593. fi
  2594. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2595. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2596. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2597. See \`config.log' for more details." >&5
  2598. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2599. See \`config.log' for more details." >&2;}
  2600. { (exit 1); exit 1; }; }; }
  2601. # Provide some information about the compiler.
  2602. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2603. set X $ac_compile
  2604. ac_compiler=$2
  2605. { (ac_try="$ac_compiler --version >&5"
  2606. case "(($ac_try" in
  2607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2608. *) ac_try_echo=$ac_try;;
  2609. esac
  2610. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2611. $as_echo "$ac_try_echo") >&5
  2612. (eval "$ac_compiler --version >&5") 2>&5
  2613. ac_status=$?
  2614. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2615. (exit $ac_status); }
  2616. { (ac_try="$ac_compiler -v >&5"
  2617. case "(($ac_try" in
  2618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2619. *) ac_try_echo=$ac_try;;
  2620. esac
  2621. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2622. $as_echo "$ac_try_echo") >&5
  2623. (eval "$ac_compiler -v >&5") 2>&5
  2624. ac_status=$?
  2625. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2626. (exit $ac_status); }
  2627. { (ac_try="$ac_compiler -V >&5"
  2628. case "(($ac_try" in
  2629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2630. *) ac_try_echo=$ac_try;;
  2631. esac
  2632. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2633. $as_echo "$ac_try_echo") >&5
  2634. (eval "$ac_compiler -V >&5") 2>&5
  2635. ac_status=$?
  2636. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2637. (exit $ac_status); }
  2638. cat >conftest.$ac_ext <<_ACEOF
  2639. /* confdefs.h. */
  2640. _ACEOF
  2641. cat confdefs.h >>conftest.$ac_ext
  2642. cat >>conftest.$ac_ext <<_ACEOF
  2643. /* end confdefs.h. */
  2644. int
  2645. main ()
  2646. {
  2647. ;
  2648. return 0;
  2649. }
  2650. _ACEOF
  2651. ac_clean_files_save=$ac_clean_files
  2652. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2653. # Try to create an executable without -o first, disregard a.out.
  2654. # It will help us diagnose broken compilers, and finding out an intuition
  2655. # of exeext.
  2656. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2657. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2658. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2659. # The possible output files:
  2660. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2661. ac_rmfiles=
  2662. for ac_file in $ac_files
  2663. do
  2664. case $ac_file in
  2665. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2666. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2667. esac
  2668. done
  2669. rm -f $ac_rmfiles
  2670. if { (ac_try="$ac_link_default"
  2671. case "(($ac_try" in
  2672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2673. *) ac_try_echo=$ac_try;;
  2674. esac
  2675. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2676. $as_echo "$ac_try_echo") >&5
  2677. (eval "$ac_link_default") 2>&5
  2678. ac_status=$?
  2679. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2680. (exit $ac_status); }; then
  2681. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2682. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2683. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2684. # so that the user can short-circuit this test for compilers unknown to
  2685. # Autoconf.
  2686. for ac_file in $ac_files ''
  2687. do
  2688. test -f "$ac_file" || continue
  2689. case $ac_file in
  2690. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2691. ;;
  2692. [ab].out )
  2693. # We found the default executable, but exeext='' is most
  2694. # certainly right.
  2695. break;;
  2696. *.* )
  2697. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2698. then :; else
  2699. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2700. fi
  2701. # We set ac_cv_exeext here because the later test for it is not
  2702. # safe: cross compilers may not add the suffix if given an `-o'
  2703. # argument, so we may need to know it at that point already.
  2704. # Even if this section looks crufty: it has the advantage of
  2705. # actually working.
  2706. break;;
  2707. * )
  2708. break;;
  2709. esac
  2710. done
  2711. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2712. else
  2713. ac_file=''
  2714. fi
  2715. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2716. $as_echo "$ac_file" >&6; }
  2717. if test -z "$ac_file"; then
  2718. $as_echo "$as_me: failed program was:" >&5
  2719. sed 's/^/| /' conftest.$ac_ext >&5
  2720. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2721. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2722. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2723. See \`config.log' for more details." >&5
  2724. $as_echo "$as_me: error: C compiler cannot create executables
  2725. See \`config.log' for more details." >&2;}
  2726. { (exit 77); exit 77; }; }; }
  2727. fi
  2728. ac_exeext=$ac_cv_exeext
  2729. # Check that the compiler produces executables we can run. If not, either
  2730. # the compiler is broken, or we cross compile.
  2731. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2732. $as_echo_n "checking whether the C compiler works... " >&6; }
  2733. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2734. # If not cross compiling, check that we can run a simple program.
  2735. if test "$cross_compiling" != yes; then
  2736. if { ac_try='./$ac_file'
  2737. { (case "(($ac_try" in
  2738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2739. *) ac_try_echo=$ac_try;;
  2740. esac
  2741. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2742. $as_echo "$ac_try_echo") >&5
  2743. (eval "$ac_try") 2>&5
  2744. ac_status=$?
  2745. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2746. (exit $ac_status); }; }; then
  2747. cross_compiling=no
  2748. else
  2749. if test "$cross_compiling" = maybe; then
  2750. cross_compiling=yes
  2751. else
  2752. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2753. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2754. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2755. If you meant to cross compile, use \`--host'.
  2756. See \`config.log' for more details." >&5
  2757. $as_echo "$as_me: error: cannot run C compiled programs.
  2758. If you meant to cross compile, use \`--host'.
  2759. See \`config.log' for more details." >&2;}
  2760. { (exit 1); exit 1; }; }; }
  2761. fi
  2762. fi
  2763. fi
  2764. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2765. $as_echo "yes" >&6; }
  2766. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2767. ac_clean_files=$ac_clean_files_save
  2768. # Check that the compiler produces executables we can run. If not, either
  2769. # the compiler is broken, or we cross compile.
  2770. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2771. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2772. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2773. $as_echo "$cross_compiling" >&6; }
  2774. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2775. $as_echo_n "checking for suffix of executables... " >&6; }
  2776. if { (ac_try="$ac_link"
  2777. case "(($ac_try" in
  2778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2779. *) ac_try_echo=$ac_try;;
  2780. esac
  2781. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2782. $as_echo "$ac_try_echo") >&5
  2783. (eval "$ac_link") 2>&5
  2784. ac_status=$?
  2785. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2786. (exit $ac_status); }; then
  2787. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2788. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2789. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2790. # `rm'.
  2791. for ac_file in conftest.exe conftest conftest.*; do
  2792. test -f "$ac_file" || continue
  2793. case $ac_file in
  2794. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2795. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2796. break;;
  2797. * ) break;;
  2798. esac
  2799. done
  2800. else
  2801. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2802. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2803. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2804. See \`config.log' for more details." >&5
  2805. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2806. See \`config.log' for more details." >&2;}
  2807. { (exit 1); exit 1; }; }; }
  2808. fi
  2809. rm -f conftest$ac_cv_exeext
  2810. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2811. $as_echo "$ac_cv_exeext" >&6; }
  2812. rm -f conftest.$ac_ext
  2813. EXEEXT=$ac_cv_exeext
  2814. ac_exeext=$EXEEXT
  2815. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2816. $as_echo_n "checking for suffix of object files... " >&6; }
  2817. if test "${ac_cv_objext+set}" = set; then
  2818. $as_echo_n "(cached) " >&6
  2819. else
  2820. cat >conftest.$ac_ext <<_ACEOF
  2821. /* confdefs.h. */
  2822. _ACEOF
  2823. cat confdefs.h >>conftest.$ac_ext
  2824. cat >>conftest.$ac_ext <<_ACEOF
  2825. /* end confdefs.h. */
  2826. int
  2827. main ()
  2828. {
  2829. ;
  2830. return 0;
  2831. }
  2832. _ACEOF
  2833. rm -f conftest.o conftest.obj
  2834. if { (ac_try="$ac_compile"
  2835. case "(($ac_try" in
  2836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2837. *) ac_try_echo=$ac_try;;
  2838. esac
  2839. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2840. $as_echo "$ac_try_echo") >&5
  2841. (eval "$ac_compile") 2>&5
  2842. ac_status=$?
  2843. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2844. (exit $ac_status); }; then
  2845. for ac_file in conftest.o conftest.obj conftest.*; do
  2846. test -f "$ac_file" || continue;
  2847. case $ac_file in
  2848. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2849. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2850. break;;
  2851. esac
  2852. done
  2853. else
  2854. $as_echo "$as_me: failed program was:" >&5
  2855. sed 's/^/| /' conftest.$ac_ext >&5
  2856. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2858. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2859. See \`config.log' for more details." >&5
  2860. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2861. See \`config.log' for more details." >&2;}
  2862. { (exit 1); exit 1; }; }; }
  2863. fi
  2864. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2865. fi
  2866. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2867. $as_echo "$ac_cv_objext" >&6; }
  2868. OBJEXT=$ac_cv_objext
  2869. ac_objext=$OBJEXT
  2870. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2871. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2872. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2873. $as_echo_n "(cached) " >&6
  2874. else
  2875. cat >conftest.$ac_ext <<_ACEOF
  2876. /* confdefs.h. */
  2877. _ACEOF
  2878. cat confdefs.h >>conftest.$ac_ext
  2879. cat >>conftest.$ac_ext <<_ACEOF
  2880. /* end confdefs.h. */
  2881. int
  2882. main ()
  2883. {
  2884. #ifndef __GNUC__
  2885. choke me
  2886. #endif
  2887. ;
  2888. return 0;
  2889. }
  2890. _ACEOF
  2891. rm -f conftest.$ac_objext
  2892. if { (ac_try="$ac_compile"
  2893. case "(($ac_try" in
  2894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2895. *) ac_try_echo=$ac_try;;
  2896. esac
  2897. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2898. $as_echo "$ac_try_echo") >&5
  2899. (eval "$ac_compile") 2>conftest.er1
  2900. ac_status=$?
  2901. grep -v '^ *+' conftest.er1 >conftest.err
  2902. rm -f conftest.er1
  2903. cat conftest.err >&5
  2904. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2905. (exit $ac_status); } && {
  2906. test -z "$ac_c_werror_flag" ||
  2907. test ! -s conftest.err
  2908. } && test -s conftest.$ac_objext; then
  2909. ac_compiler_gnu=yes
  2910. else
  2911. $as_echo "$as_me: failed program was:" >&5
  2912. sed 's/^/| /' conftest.$ac_ext >&5
  2913. ac_compiler_gnu=no
  2914. fi
  2915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2916. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2917. fi
  2918. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2919. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2920. if test $ac_compiler_gnu = yes; then
  2921. GCC=yes
  2922. else
  2923. GCC=
  2924. fi
  2925. ac_test_CFLAGS=${CFLAGS+set}
  2926. ac_save_CFLAGS=$CFLAGS
  2927. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2928. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2929. if test "${ac_cv_prog_cc_g+set}" = set; then
  2930. $as_echo_n "(cached) " >&6
  2931. else
  2932. ac_save_c_werror_flag=$ac_c_werror_flag
  2933. ac_c_werror_flag=yes
  2934. ac_cv_prog_cc_g=no
  2935. CFLAGS="-g"
  2936. cat >conftest.$ac_ext <<_ACEOF
  2937. /* confdefs.h. */
  2938. _ACEOF
  2939. cat confdefs.h >>conftest.$ac_ext
  2940. cat >>conftest.$ac_ext <<_ACEOF
  2941. /* end confdefs.h. */
  2942. int
  2943. main ()
  2944. {
  2945. ;
  2946. return 0;
  2947. }
  2948. _ACEOF
  2949. rm -f conftest.$ac_objext
  2950. if { (ac_try="$ac_compile"
  2951. case "(($ac_try" in
  2952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2953. *) ac_try_echo=$ac_try;;
  2954. esac
  2955. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2956. $as_echo "$ac_try_echo") >&5
  2957. (eval "$ac_compile") 2>conftest.er1
  2958. ac_status=$?
  2959. grep -v '^ *+' conftest.er1 >conftest.err
  2960. rm -f conftest.er1
  2961. cat conftest.err >&5
  2962. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2963. (exit $ac_status); } && {
  2964. test -z "$ac_c_werror_flag" ||
  2965. test ! -s conftest.err
  2966. } && test -s conftest.$ac_objext; then
  2967. ac_cv_prog_cc_g=yes
  2968. else
  2969. $as_echo "$as_me: failed program was:" >&5
  2970. sed 's/^/| /' conftest.$ac_ext >&5
  2971. CFLAGS=""
  2972. cat >conftest.$ac_ext <<_ACEOF
  2973. /* confdefs.h. */
  2974. _ACEOF
  2975. cat confdefs.h >>conftest.$ac_ext
  2976. cat >>conftest.$ac_ext <<_ACEOF
  2977. /* end confdefs.h. */
  2978. int
  2979. main ()
  2980. {
  2981. ;
  2982. return 0;
  2983. }
  2984. _ACEOF
  2985. rm -f conftest.$ac_objext
  2986. if { (ac_try="$ac_compile"
  2987. case "(($ac_try" in
  2988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2989. *) ac_try_echo=$ac_try;;
  2990. esac
  2991. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2992. $as_echo "$ac_try_echo") >&5
  2993. (eval "$ac_compile") 2>conftest.er1
  2994. ac_status=$?
  2995. grep -v '^ *+' conftest.er1 >conftest.err
  2996. rm -f conftest.er1
  2997. cat conftest.err >&5
  2998. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2999. (exit $ac_status); } && {
  3000. test -z "$ac_c_werror_flag" ||
  3001. test ! -s conftest.err
  3002. } && test -s conftest.$ac_objext; then
  3003. :
  3004. else
  3005. $as_echo "$as_me: failed program was:" >&5
  3006. sed 's/^/| /' conftest.$ac_ext >&5
  3007. ac_c_werror_flag=$ac_save_c_werror_flag
  3008. CFLAGS="-g"
  3009. cat >conftest.$ac_ext <<_ACEOF
  3010. /* confdefs.h. */
  3011. _ACEOF
  3012. cat confdefs.h >>conftest.$ac_ext
  3013. cat >>conftest.$ac_ext <<_ACEOF
  3014. /* end confdefs.h. */
  3015. int
  3016. main ()
  3017. {
  3018. ;
  3019. return 0;
  3020. }
  3021. _ACEOF
  3022. rm -f conftest.$ac_objext
  3023. if { (ac_try="$ac_compile"
  3024. case "(($ac_try" in
  3025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3026. *) ac_try_echo=$ac_try;;
  3027. esac
  3028. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3029. $as_echo "$ac_try_echo") >&5
  3030. (eval "$ac_compile") 2>conftest.er1
  3031. ac_status=$?
  3032. grep -v '^ *+' conftest.er1 >conftest.err
  3033. rm -f conftest.er1
  3034. cat conftest.err >&5
  3035. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3036. (exit $ac_status); } && {
  3037. test -z "$ac_c_werror_flag" ||
  3038. test ! -s conftest.err
  3039. } && test -s conftest.$ac_objext; then
  3040. ac_cv_prog_cc_g=yes
  3041. else
  3042. $as_echo "$as_me: failed program was:" >&5
  3043. sed 's/^/| /' conftest.$ac_ext >&5
  3044. fi
  3045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3046. fi
  3047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3048. fi
  3049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3050. ac_c_werror_flag=$ac_save_c_werror_flag
  3051. fi
  3052. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3053. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3054. if test "$ac_test_CFLAGS" = set; then
  3055. CFLAGS=$ac_save_CFLAGS
  3056. elif test $ac_cv_prog_cc_g = yes; then
  3057. if test "$GCC" = yes; then
  3058. CFLAGS="-g -O2"
  3059. else
  3060. CFLAGS="-g"
  3061. fi
  3062. else
  3063. if test "$GCC" = yes; then
  3064. CFLAGS="-O2"
  3065. else
  3066. CFLAGS=
  3067. fi
  3068. fi
  3069. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3070. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3071. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3072. $as_echo_n "(cached) " >&6
  3073. else
  3074. ac_cv_prog_cc_c89=no
  3075. ac_save_CC=$CC
  3076. cat >conftest.$ac_ext <<_ACEOF
  3077. /* confdefs.h. */
  3078. _ACEOF
  3079. cat confdefs.h >>conftest.$ac_ext
  3080. cat >>conftest.$ac_ext <<_ACEOF
  3081. /* end confdefs.h. */
  3082. #include <stdarg.h>
  3083. #include <stdio.h>
  3084. #include <sys/types.h>
  3085. #include <sys/stat.h>
  3086. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3087. struct buf { int x; };
  3088. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3089. static char *e (p, i)
  3090. char **p;
  3091. int i;
  3092. {
  3093. return p[i];
  3094. }
  3095. static char *f (char * (*g) (char **, int), char **p, ...)
  3096. {
  3097. char *s;
  3098. va_list v;
  3099. va_start (v,p);
  3100. s = g (p, va_arg (v,int));
  3101. va_end (v);
  3102. return s;
  3103. }
  3104. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3105. function prototypes and stuff, but not '\xHH' hex character constants.
  3106. These don't provoke an error unfortunately, instead are silently treated
  3107. as 'x'. The following induces an error, until -std is added to get
  3108. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3109. array size at least. It's necessary to write '\x00'==0 to get something
  3110. that's true only with -std. */
  3111. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3112. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3113. inside strings and character constants. */
  3114. #define FOO(x) 'x'
  3115. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3116. int test (int i, double x);
  3117. struct s1 {int (*f) (int a);};
  3118. struct s2 {int (*f) (double a);};
  3119. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3120. int argc;
  3121. char **argv;
  3122. int
  3123. main ()
  3124. {
  3125. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3126. ;
  3127. return 0;
  3128. }
  3129. _ACEOF
  3130. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3131. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3132. do
  3133. CC="$ac_save_CC $ac_arg"
  3134. rm -f conftest.$ac_objext
  3135. if { (ac_try="$ac_compile"
  3136. case "(($ac_try" in
  3137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3138. *) ac_try_echo=$ac_try;;
  3139. esac
  3140. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3141. $as_echo "$ac_try_echo") >&5
  3142. (eval "$ac_compile") 2>conftest.er1
  3143. ac_status=$?
  3144. grep -v '^ *+' conftest.er1 >conftest.err
  3145. rm -f conftest.er1
  3146. cat conftest.err >&5
  3147. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3148. (exit $ac_status); } && {
  3149. test -z "$ac_c_werror_flag" ||
  3150. test ! -s conftest.err
  3151. } && test -s conftest.$ac_objext; then
  3152. ac_cv_prog_cc_c89=$ac_arg
  3153. else
  3154. $as_echo "$as_me: failed program was:" >&5
  3155. sed 's/^/| /' conftest.$ac_ext >&5
  3156. fi
  3157. rm -f core conftest.err conftest.$ac_objext
  3158. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3159. done
  3160. rm -f conftest.$ac_ext
  3161. CC=$ac_save_CC
  3162. fi
  3163. # AC_CACHE_VAL
  3164. case "x$ac_cv_prog_cc_c89" in
  3165. x)
  3166. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3167. $as_echo "none needed" >&6; } ;;
  3168. xno)
  3169. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3170. $as_echo "unsupported" >&6; } ;;
  3171. *)
  3172. CC="$CC $ac_cv_prog_cc_c89"
  3173. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3174. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3175. esac
  3176. ac_ext=c
  3177. ac_cpp='$CPP $CPPFLAGS'
  3178. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3179. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3180. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3181. DEPDIR="${am__leading_dot}deps"
  3182. ac_config_commands="$ac_config_commands depfiles"
  3183. am_make=${MAKE-make}
  3184. cat > confinc << 'END'
  3185. am__doit:
  3186. @echo this is the am__doit target
  3187. .PHONY: am__doit
  3188. END
  3189. # If we don't find an include directive, just comment out the code.
  3190. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3191. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3192. am__include="#"
  3193. am__quote=
  3194. _am_result=none
  3195. # First try GNU make style include.
  3196. echo "include confinc" > confmf
  3197. # Ignore all kinds of additional output from `make'.
  3198. case `$am_make -s -f confmf 2> /dev/null` in #(
  3199. *the\ am__doit\ target*)
  3200. am__include=include
  3201. am__quote=
  3202. _am_result=GNU
  3203. ;;
  3204. esac
  3205. # Now try BSD make style include.
  3206. if test "$am__include" = "#"; then
  3207. echo '.include "confinc"' > confmf
  3208. case `$am_make -s -f confmf 2> /dev/null` in #(
  3209. *the\ am__doit\ target*)
  3210. am__include=.include
  3211. am__quote="\""
  3212. _am_result=BSD
  3213. ;;
  3214. esac
  3215. fi
  3216. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3217. $as_echo "$_am_result" >&6; }
  3218. rm -f confinc confmf
  3219. # Check whether --enable-dependency-tracking was given.
  3220. if test "${enable_dependency_tracking+set}" = set; then
  3221. enableval=$enable_dependency_tracking;
  3222. fi
  3223. if test "x$enable_dependency_tracking" != xno; then
  3224. am_depcomp="$ac_aux_dir/depcomp"
  3225. AMDEPBACKSLASH='\'
  3226. fi
  3227. if test "x$enable_dependency_tracking" != xno; then
  3228. AMDEP_TRUE=
  3229. AMDEP_FALSE='#'
  3230. else
  3231. AMDEP_TRUE='#'
  3232. AMDEP_FALSE=
  3233. fi
  3234. depcc="$CC" am_compiler_list=
  3235. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3236. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3237. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3238. $as_echo_n "(cached) " >&6
  3239. else
  3240. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3241. # We make a subdir and do the tests there. Otherwise we can end up
  3242. # making bogus files that we don't know about and never remove. For
  3243. # instance it was reported that on HP-UX the gcc test will end up
  3244. # making a dummy file named `D' -- because `-MD' means `put the output
  3245. # in D'.
  3246. mkdir conftest.dir
  3247. # Copy depcomp to subdir because otherwise we won't find it if we're
  3248. # using a relative directory.
  3249. cp "$am_depcomp" conftest.dir
  3250. cd conftest.dir
  3251. # We will build objects and dependencies in a subdirectory because
  3252. # it helps to detect inapplicable dependency modes. For instance
  3253. # both Tru64's cc and ICC support -MD to output dependencies as a
  3254. # side effect of compilation, but ICC will put the dependencies in
  3255. # the current directory while Tru64 will put them in the object
  3256. # directory.
  3257. mkdir sub
  3258. am_cv_CC_dependencies_compiler_type=none
  3259. if test "$am_compiler_list" = ""; then
  3260. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3261. fi
  3262. am__universal=false
  3263. case " $depcc " in #(
  3264. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3265. esac
  3266. for depmode in $am_compiler_list; do
  3267. # Setup a source with many dependencies, because some compilers
  3268. # like to wrap large dependency lists on column 80 (with \), and
  3269. # we should not choose a depcomp mode which is confused by this.
  3270. #
  3271. # We need to recreate these files for each test, as the compiler may
  3272. # overwrite some of them when testing with obscure command lines.
  3273. # This happens at least with the AIX C compiler.
  3274. : > sub/conftest.c
  3275. for i in 1 2 3 4 5 6; do
  3276. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3277. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3278. # Solaris 8's {/usr,}/bin/sh.
  3279. touch sub/conftst$i.h
  3280. done
  3281. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3282. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3283. # mode. It turns out that the SunPro C++ compiler does not properly
  3284. # handle `-M -o', and we need to detect this. Also, some Intel
  3285. # versions had trouble with output in subdirs
  3286. am__obj=sub/conftest.${OBJEXT-o}
  3287. am__minus_obj="-o $am__obj"
  3288. case $depmode in
  3289. gcc)
  3290. # This depmode causes a compiler race in universal mode.
  3291. test "$am__universal" = false || continue
  3292. ;;
  3293. nosideeffect)
  3294. # after this tag, mechanisms are not by side-effect, so they'll
  3295. # only be used when explicitly requested
  3296. if test "x$enable_dependency_tracking" = xyes; then
  3297. continue
  3298. else
  3299. break
  3300. fi
  3301. ;;
  3302. msvisualcpp | msvcmsys)
  3303. # This compiler won't grok `-c -o', but also, the minuso test has
  3304. # not run yet. These depmodes are late enough in the game, and
  3305. # so weak that their functioning should not be impacted.
  3306. am__obj=conftest.${OBJEXT-o}
  3307. am__minus_obj=
  3308. ;;
  3309. none) break ;;
  3310. esac
  3311. if depmode=$depmode \
  3312. source=sub/conftest.c object=$am__obj \
  3313. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3314. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3315. >/dev/null 2>conftest.err &&
  3316. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3317. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3318. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3319. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3320. # icc doesn't choke on unknown options, it will just issue warnings
  3321. # or remarks (even with -Werror). So we grep stderr for any message
  3322. # that says an option was ignored or not supported.
  3323. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3324. # icc: Command line warning: ignoring option '-M'; no argument required
  3325. # The diagnosis changed in icc 8.0:
  3326. # icc: Command line remark: option '-MP' not supported
  3327. if (grep 'ignoring option' conftest.err ||
  3328. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3329. am_cv_CC_dependencies_compiler_type=$depmode
  3330. break
  3331. fi
  3332. fi
  3333. done
  3334. cd ..
  3335. rm -rf conftest.dir
  3336. else
  3337. am_cv_CC_dependencies_compiler_type=none
  3338. fi
  3339. fi
  3340. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3341. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3342. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3343. if
  3344. test "x$enable_dependency_tracking" != xno \
  3345. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3346. am__fastdepCC_TRUE=
  3347. am__fastdepCC_FALSE='#'
  3348. else
  3349. am__fastdepCC_TRUE='#'
  3350. am__fastdepCC_FALSE=
  3351. fi
  3352. ac_ext=c
  3353. ac_cpp='$CPP $CPPFLAGS'
  3354. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3355. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3356. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3357. if test -n "$ac_tool_prefix"; then
  3358. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3359. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3360. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3361. $as_echo_n "checking for $ac_word... " >&6; }
  3362. if test "${ac_cv_prog_CC+set}" = set; then
  3363. $as_echo_n "(cached) " >&6
  3364. else
  3365. if test -n "$CC"; then
  3366. ac_cv_prog_CC="$CC" # Let the user override the test.
  3367. else
  3368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3369. for as_dir in $PATH
  3370. do
  3371. IFS=$as_save_IFS
  3372. test -z "$as_dir" && as_dir=.
  3373. for ac_exec_ext in '' $ac_executable_extensions; do
  3374. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3375. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3376. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3377. break 2
  3378. fi
  3379. done
  3380. done
  3381. IFS=$as_save_IFS
  3382. fi
  3383. fi
  3384. CC=$ac_cv_prog_CC
  3385. if test -n "$CC"; then
  3386. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3387. $as_echo "$CC" >&6; }
  3388. else
  3389. { $as_echo "$as_me:$LINENO: result: no" >&5
  3390. $as_echo "no" >&6; }
  3391. fi
  3392. fi
  3393. if test -z "$ac_cv_prog_CC"; then
  3394. ac_ct_CC=$CC
  3395. # Extract the first word of "gcc", so it can be a program name with args.
  3396. set dummy gcc; ac_word=$2
  3397. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3398. $as_echo_n "checking for $ac_word... " >&6; }
  3399. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3400. $as_echo_n "(cached) " >&6
  3401. else
  3402. if test -n "$ac_ct_CC"; then
  3403. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3404. else
  3405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3406. for as_dir in $PATH
  3407. do
  3408. IFS=$as_save_IFS
  3409. test -z "$as_dir" && as_dir=.
  3410. for ac_exec_ext in '' $ac_executable_extensions; do
  3411. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3412. ac_cv_prog_ac_ct_CC="gcc"
  3413. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3414. break 2
  3415. fi
  3416. done
  3417. done
  3418. IFS=$as_save_IFS
  3419. fi
  3420. fi
  3421. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3422. if test -n "$ac_ct_CC"; then
  3423. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3424. $as_echo "$ac_ct_CC" >&6; }
  3425. else
  3426. { $as_echo "$as_me:$LINENO: result: no" >&5
  3427. $as_echo "no" >&6; }
  3428. fi
  3429. if test "x$ac_ct_CC" = x; then
  3430. CC=""
  3431. else
  3432. case $cross_compiling:$ac_tool_warned in
  3433. yes:)
  3434. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3435. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3436. ac_tool_warned=yes ;;
  3437. esac
  3438. CC=$ac_ct_CC
  3439. fi
  3440. else
  3441. CC="$ac_cv_prog_CC"
  3442. fi
  3443. if test -z "$CC"; then
  3444. if test -n "$ac_tool_prefix"; then
  3445. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3446. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3447. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3448. $as_echo_n "checking for $ac_word... " >&6; }
  3449. if test "${ac_cv_prog_CC+set}" = set; then
  3450. $as_echo_n "(cached) " >&6
  3451. else
  3452. if test -n "$CC"; then
  3453. ac_cv_prog_CC="$CC" # Let the user override the test.
  3454. else
  3455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3456. for as_dir in $PATH
  3457. do
  3458. IFS=$as_save_IFS
  3459. test -z "$as_dir" && as_dir=.
  3460. for ac_exec_ext in '' $ac_executable_extensions; do
  3461. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3462. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3463. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3464. break 2
  3465. fi
  3466. done
  3467. done
  3468. IFS=$as_save_IFS
  3469. fi
  3470. fi
  3471. CC=$ac_cv_prog_CC
  3472. if test -n "$CC"; then
  3473. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3474. $as_echo "$CC" >&6; }
  3475. else
  3476. { $as_echo "$as_me:$LINENO: result: no" >&5
  3477. $as_echo "no" >&6; }
  3478. fi
  3479. fi
  3480. fi
  3481. if test -z "$CC"; then
  3482. # Extract the first word of "cc", so it can be a program name with args.
  3483. set dummy cc; ac_word=$2
  3484. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3485. $as_echo_n "checking for $ac_word... " >&6; }
  3486. if test "${ac_cv_prog_CC+set}" = set; then
  3487. $as_echo_n "(cached) " >&6
  3488. else
  3489. if test -n "$CC"; then
  3490. ac_cv_prog_CC="$CC" # Let the user override the test.
  3491. else
  3492. ac_prog_rejected=no
  3493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3494. for as_dir in $PATH
  3495. do
  3496. IFS=$as_save_IFS
  3497. test -z "$as_dir" && as_dir=.
  3498. for ac_exec_ext in '' $ac_executable_extensions; do
  3499. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3500. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3501. ac_prog_rejected=yes
  3502. continue
  3503. fi
  3504. ac_cv_prog_CC="cc"
  3505. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3506. break 2
  3507. fi
  3508. done
  3509. done
  3510. IFS=$as_save_IFS
  3511. if test $ac_prog_rejected = yes; then
  3512. # We found a bogon in the path, so make sure we never use it.
  3513. set dummy $ac_cv_prog_CC
  3514. shift
  3515. if test $# != 0; then
  3516. # We chose a different compiler from the bogus one.
  3517. # However, it has the same basename, so the bogon will be chosen
  3518. # first if we set CC to just the basename; use the full file name.
  3519. shift
  3520. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3521. fi
  3522. fi
  3523. fi
  3524. fi
  3525. CC=$ac_cv_prog_CC
  3526. if test -n "$CC"; then
  3527. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3528. $as_echo "$CC" >&6; }
  3529. else
  3530. { $as_echo "$as_me:$LINENO: result: no" >&5
  3531. $as_echo "no" >&6; }
  3532. fi
  3533. fi
  3534. if test -z "$CC"; then
  3535. if test -n "$ac_tool_prefix"; then
  3536. for ac_prog in cl.exe
  3537. do
  3538. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3539. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3540. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3541. $as_echo_n "checking for $ac_word... " >&6; }
  3542. if test "${ac_cv_prog_CC+set}" = set; then
  3543. $as_echo_n "(cached) " >&6
  3544. else
  3545. if test -n "$CC"; then
  3546. ac_cv_prog_CC="$CC" # Let the user override the test.
  3547. else
  3548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3549. for as_dir in $PATH
  3550. do
  3551. IFS=$as_save_IFS
  3552. test -z "$as_dir" && as_dir=.
  3553. for ac_exec_ext in '' $ac_executable_extensions; do
  3554. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3555. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3556. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3557. break 2
  3558. fi
  3559. done
  3560. done
  3561. IFS=$as_save_IFS
  3562. fi
  3563. fi
  3564. CC=$ac_cv_prog_CC
  3565. if test -n "$CC"; then
  3566. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3567. $as_echo "$CC" >&6; }
  3568. else
  3569. { $as_echo "$as_me:$LINENO: result: no" >&5
  3570. $as_echo "no" >&6; }
  3571. fi
  3572. test -n "$CC" && break
  3573. done
  3574. fi
  3575. if test -z "$CC"; then
  3576. ac_ct_CC=$CC
  3577. for ac_prog in cl.exe
  3578. do
  3579. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3580. set dummy $ac_prog; ac_word=$2
  3581. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3582. $as_echo_n "checking for $ac_word... " >&6; }
  3583. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3584. $as_echo_n "(cached) " >&6
  3585. else
  3586. if test -n "$ac_ct_CC"; then
  3587. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3588. else
  3589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3590. for as_dir in $PATH
  3591. do
  3592. IFS=$as_save_IFS
  3593. test -z "$as_dir" && as_dir=.
  3594. for ac_exec_ext in '' $ac_executable_extensions; do
  3595. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3596. ac_cv_prog_ac_ct_CC="$ac_prog"
  3597. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3598. break 2
  3599. fi
  3600. done
  3601. done
  3602. IFS=$as_save_IFS
  3603. fi
  3604. fi
  3605. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3606. if test -n "$ac_ct_CC"; then
  3607. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3608. $as_echo "$ac_ct_CC" >&6; }
  3609. else
  3610. { $as_echo "$as_me:$LINENO: result: no" >&5
  3611. $as_echo "no" >&6; }
  3612. fi
  3613. test -n "$ac_ct_CC" && break
  3614. done
  3615. if test "x$ac_ct_CC" = x; then
  3616. CC=""
  3617. else
  3618. case $cross_compiling:$ac_tool_warned in
  3619. yes:)
  3620. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3621. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3622. ac_tool_warned=yes ;;
  3623. esac
  3624. CC=$ac_ct_CC
  3625. fi
  3626. fi
  3627. fi
  3628. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3629. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3630. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3631. See \`config.log' for more details." >&5
  3632. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3633. See \`config.log' for more details." >&2;}
  3634. { (exit 1); exit 1; }; }; }
  3635. # Provide some information about the compiler.
  3636. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3637. set X $ac_compile
  3638. ac_compiler=$2
  3639. { (ac_try="$ac_compiler --version >&5"
  3640. case "(($ac_try" in
  3641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3642. *) ac_try_echo=$ac_try;;
  3643. esac
  3644. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3645. $as_echo "$ac_try_echo") >&5
  3646. (eval "$ac_compiler --version >&5") 2>&5
  3647. ac_status=$?
  3648. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3649. (exit $ac_status); }
  3650. { (ac_try="$ac_compiler -v >&5"
  3651. case "(($ac_try" in
  3652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3653. *) ac_try_echo=$ac_try;;
  3654. esac
  3655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3656. $as_echo "$ac_try_echo") >&5
  3657. (eval "$ac_compiler -v >&5") 2>&5
  3658. ac_status=$?
  3659. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3660. (exit $ac_status); }
  3661. { (ac_try="$ac_compiler -V >&5"
  3662. case "(($ac_try" in
  3663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3664. *) ac_try_echo=$ac_try;;
  3665. esac
  3666. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3667. $as_echo "$ac_try_echo") >&5
  3668. (eval "$ac_compiler -V >&5") 2>&5
  3669. ac_status=$?
  3670. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3671. (exit $ac_status); }
  3672. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3673. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3674. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3675. $as_echo_n "(cached) " >&6
  3676. else
  3677. cat >conftest.$ac_ext <<_ACEOF
  3678. /* confdefs.h. */
  3679. _ACEOF
  3680. cat confdefs.h >>conftest.$ac_ext
  3681. cat >>conftest.$ac_ext <<_ACEOF
  3682. /* end confdefs.h. */
  3683. int
  3684. main ()
  3685. {
  3686. #ifndef __GNUC__
  3687. choke me
  3688. #endif
  3689. ;
  3690. return 0;
  3691. }
  3692. _ACEOF
  3693. rm -f conftest.$ac_objext
  3694. if { (ac_try="$ac_compile"
  3695. case "(($ac_try" in
  3696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3697. *) ac_try_echo=$ac_try;;
  3698. esac
  3699. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3700. $as_echo "$ac_try_echo") >&5
  3701. (eval "$ac_compile") 2>conftest.er1
  3702. ac_status=$?
  3703. grep -v '^ *+' conftest.er1 >conftest.err
  3704. rm -f conftest.er1
  3705. cat conftest.err >&5
  3706. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3707. (exit $ac_status); } && {
  3708. test -z "$ac_c_werror_flag" ||
  3709. test ! -s conftest.err
  3710. } && test -s conftest.$ac_objext; then
  3711. ac_compiler_gnu=yes
  3712. else
  3713. $as_echo "$as_me: failed program was:" >&5
  3714. sed 's/^/| /' conftest.$ac_ext >&5
  3715. ac_compiler_gnu=no
  3716. fi
  3717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3718. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3719. fi
  3720. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3721. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3722. if test $ac_compiler_gnu = yes; then
  3723. GCC=yes
  3724. else
  3725. GCC=
  3726. fi
  3727. ac_test_CFLAGS=${CFLAGS+set}
  3728. ac_save_CFLAGS=$CFLAGS
  3729. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3730. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3731. if test "${ac_cv_prog_cc_g+set}" = set; then
  3732. $as_echo_n "(cached) " >&6
  3733. else
  3734. ac_save_c_werror_flag=$ac_c_werror_flag
  3735. ac_c_werror_flag=yes
  3736. ac_cv_prog_cc_g=no
  3737. CFLAGS="-g"
  3738. cat >conftest.$ac_ext <<_ACEOF
  3739. /* confdefs.h. */
  3740. _ACEOF
  3741. cat confdefs.h >>conftest.$ac_ext
  3742. cat >>conftest.$ac_ext <<_ACEOF
  3743. /* end confdefs.h. */
  3744. int
  3745. main ()
  3746. {
  3747. ;
  3748. return 0;
  3749. }
  3750. _ACEOF
  3751. rm -f conftest.$ac_objext
  3752. if { (ac_try="$ac_compile"
  3753. case "(($ac_try" in
  3754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3755. *) ac_try_echo=$ac_try;;
  3756. esac
  3757. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3758. $as_echo "$ac_try_echo") >&5
  3759. (eval "$ac_compile") 2>conftest.er1
  3760. ac_status=$?
  3761. grep -v '^ *+' conftest.er1 >conftest.err
  3762. rm -f conftest.er1
  3763. cat conftest.err >&5
  3764. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3765. (exit $ac_status); } && {
  3766. test -z "$ac_c_werror_flag" ||
  3767. test ! -s conftest.err
  3768. } && test -s conftest.$ac_objext; then
  3769. ac_cv_prog_cc_g=yes
  3770. else
  3771. $as_echo "$as_me: failed program was:" >&5
  3772. sed 's/^/| /' conftest.$ac_ext >&5
  3773. CFLAGS=""
  3774. cat >conftest.$ac_ext <<_ACEOF
  3775. /* confdefs.h. */
  3776. _ACEOF
  3777. cat confdefs.h >>conftest.$ac_ext
  3778. cat >>conftest.$ac_ext <<_ACEOF
  3779. /* end confdefs.h. */
  3780. int
  3781. main ()
  3782. {
  3783. ;
  3784. return 0;
  3785. }
  3786. _ACEOF
  3787. rm -f conftest.$ac_objext
  3788. if { (ac_try="$ac_compile"
  3789. case "(($ac_try" in
  3790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3791. *) ac_try_echo=$ac_try;;
  3792. esac
  3793. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3794. $as_echo "$ac_try_echo") >&5
  3795. (eval "$ac_compile") 2>conftest.er1
  3796. ac_status=$?
  3797. grep -v '^ *+' conftest.er1 >conftest.err
  3798. rm -f conftest.er1
  3799. cat conftest.err >&5
  3800. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3801. (exit $ac_status); } && {
  3802. test -z "$ac_c_werror_flag" ||
  3803. test ! -s conftest.err
  3804. } && test -s conftest.$ac_objext; then
  3805. :
  3806. else
  3807. $as_echo "$as_me: failed program was:" >&5
  3808. sed 's/^/| /' conftest.$ac_ext >&5
  3809. ac_c_werror_flag=$ac_save_c_werror_flag
  3810. CFLAGS="-g"
  3811. cat >conftest.$ac_ext <<_ACEOF
  3812. /* confdefs.h. */
  3813. _ACEOF
  3814. cat confdefs.h >>conftest.$ac_ext
  3815. cat >>conftest.$ac_ext <<_ACEOF
  3816. /* end confdefs.h. */
  3817. int
  3818. main ()
  3819. {
  3820. ;
  3821. return 0;
  3822. }
  3823. _ACEOF
  3824. rm -f conftest.$ac_objext
  3825. if { (ac_try="$ac_compile"
  3826. case "(($ac_try" in
  3827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3828. *) ac_try_echo=$ac_try;;
  3829. esac
  3830. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3831. $as_echo "$ac_try_echo") >&5
  3832. (eval "$ac_compile") 2>conftest.er1
  3833. ac_status=$?
  3834. grep -v '^ *+' conftest.er1 >conftest.err
  3835. rm -f conftest.er1
  3836. cat conftest.err >&5
  3837. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3838. (exit $ac_status); } && {
  3839. test -z "$ac_c_werror_flag" ||
  3840. test ! -s conftest.err
  3841. } && test -s conftest.$ac_objext; then
  3842. ac_cv_prog_cc_g=yes
  3843. else
  3844. $as_echo "$as_me: failed program was:" >&5
  3845. sed 's/^/| /' conftest.$ac_ext >&5
  3846. fi
  3847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3848. fi
  3849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3850. fi
  3851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3852. ac_c_werror_flag=$ac_save_c_werror_flag
  3853. fi
  3854. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3855. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3856. if test "$ac_test_CFLAGS" = set; then
  3857. CFLAGS=$ac_save_CFLAGS
  3858. elif test $ac_cv_prog_cc_g = yes; then
  3859. if test "$GCC" = yes; then
  3860. CFLAGS="-g -O2"
  3861. else
  3862. CFLAGS="-g"
  3863. fi
  3864. else
  3865. if test "$GCC" = yes; then
  3866. CFLAGS="-O2"
  3867. else
  3868. CFLAGS=
  3869. fi
  3870. fi
  3871. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3872. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3873. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3874. $as_echo_n "(cached) " >&6
  3875. else
  3876. ac_cv_prog_cc_c89=no
  3877. ac_save_CC=$CC
  3878. cat >conftest.$ac_ext <<_ACEOF
  3879. /* confdefs.h. */
  3880. _ACEOF
  3881. cat confdefs.h >>conftest.$ac_ext
  3882. cat >>conftest.$ac_ext <<_ACEOF
  3883. /* end confdefs.h. */
  3884. #include <stdarg.h>
  3885. #include <stdio.h>
  3886. #include <sys/types.h>
  3887. #include <sys/stat.h>
  3888. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3889. struct buf { int x; };
  3890. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3891. static char *e (p, i)
  3892. char **p;
  3893. int i;
  3894. {
  3895. return p[i];
  3896. }
  3897. static char *f (char * (*g) (char **, int), char **p, ...)
  3898. {
  3899. char *s;
  3900. va_list v;
  3901. va_start (v,p);
  3902. s = g (p, va_arg (v,int));
  3903. va_end (v);
  3904. return s;
  3905. }
  3906. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3907. function prototypes and stuff, but not '\xHH' hex character constants.
  3908. These don't provoke an error unfortunately, instead are silently treated
  3909. as 'x'. The following induces an error, until -std is added to get
  3910. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3911. array size at least. It's necessary to write '\x00'==0 to get something
  3912. that's true only with -std. */
  3913. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3914. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3915. inside strings and character constants. */
  3916. #define FOO(x) 'x'
  3917. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3918. int test (int i, double x);
  3919. struct s1 {int (*f) (int a);};
  3920. struct s2 {int (*f) (double a);};
  3921. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3922. int argc;
  3923. char **argv;
  3924. int
  3925. main ()
  3926. {
  3927. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3928. ;
  3929. return 0;
  3930. }
  3931. _ACEOF
  3932. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3933. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3934. do
  3935. CC="$ac_save_CC $ac_arg"
  3936. rm -f conftest.$ac_objext
  3937. if { (ac_try="$ac_compile"
  3938. case "(($ac_try" in
  3939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3940. *) ac_try_echo=$ac_try;;
  3941. esac
  3942. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3943. $as_echo "$ac_try_echo") >&5
  3944. (eval "$ac_compile") 2>conftest.er1
  3945. ac_status=$?
  3946. grep -v '^ *+' conftest.er1 >conftest.err
  3947. rm -f conftest.er1
  3948. cat conftest.err >&5
  3949. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3950. (exit $ac_status); } && {
  3951. test -z "$ac_c_werror_flag" ||
  3952. test ! -s conftest.err
  3953. } && test -s conftest.$ac_objext; then
  3954. ac_cv_prog_cc_c89=$ac_arg
  3955. else
  3956. $as_echo "$as_me: failed program was:" >&5
  3957. sed 's/^/| /' conftest.$ac_ext >&5
  3958. fi
  3959. rm -f core conftest.err conftest.$ac_objext
  3960. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3961. done
  3962. rm -f conftest.$ac_ext
  3963. CC=$ac_save_CC
  3964. fi
  3965. # AC_CACHE_VAL
  3966. case "x$ac_cv_prog_cc_c89" in
  3967. x)
  3968. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3969. $as_echo "none needed" >&6; } ;;
  3970. xno)
  3971. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3972. $as_echo "unsupported" >&6; } ;;
  3973. *)
  3974. CC="$CC $ac_cv_prog_cc_c89"
  3975. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3976. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3977. esac
  3978. ac_ext=c
  3979. ac_cpp='$CPP $CPPFLAGS'
  3980. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3981. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3982. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3983. depcc="$CC" am_compiler_list=
  3984. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3985. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3986. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3987. $as_echo_n "(cached) " >&6
  3988. else
  3989. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3990. # We make a subdir and do the tests there. Otherwise we can end up
  3991. # making bogus files that we don't know about and never remove. For
  3992. # instance it was reported that on HP-UX the gcc test will end up
  3993. # making a dummy file named `D' -- because `-MD' means `put the output
  3994. # in D'.
  3995. mkdir conftest.dir
  3996. # Copy depcomp to subdir because otherwise we won't find it if we're
  3997. # using a relative directory.
  3998. cp "$am_depcomp" conftest.dir
  3999. cd conftest.dir
  4000. # We will build objects and dependencies in a subdirectory because
  4001. # it helps to detect inapplicable dependency modes. For instance
  4002. # both Tru64's cc and ICC support -MD to output dependencies as a
  4003. # side effect of compilation, but ICC will put the dependencies in
  4004. # the current directory while Tru64 will put them in the object
  4005. # directory.
  4006. mkdir sub
  4007. am_cv_CC_dependencies_compiler_type=none
  4008. if test "$am_compiler_list" = ""; then
  4009. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4010. fi
  4011. am__universal=false
  4012. case " $depcc " in #(
  4013. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4014. esac
  4015. for depmode in $am_compiler_list; do
  4016. # Setup a source with many dependencies, because some compilers
  4017. # like to wrap large dependency lists on column 80 (with \), and
  4018. # we should not choose a depcomp mode which is confused by this.
  4019. #
  4020. # We need to recreate these files for each test, as the compiler may
  4021. # overwrite some of them when testing with obscure command lines.
  4022. # This happens at least with the AIX C compiler.
  4023. : > sub/conftest.c
  4024. for i in 1 2 3 4 5 6; do
  4025. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4026. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4027. # Solaris 8's {/usr,}/bin/sh.
  4028. touch sub/conftst$i.h
  4029. done
  4030. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4031. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4032. # mode. It turns out that the SunPro C++ compiler does not properly
  4033. # handle `-M -o', and we need to detect this. Also, some Intel
  4034. # versions had trouble with output in subdirs
  4035. am__obj=sub/conftest.${OBJEXT-o}
  4036. am__minus_obj="-o $am__obj"
  4037. case $depmode in
  4038. gcc)
  4039. # This depmode causes a compiler race in universal mode.
  4040. test "$am__universal" = false || continue
  4041. ;;
  4042. nosideeffect)
  4043. # after this tag, mechanisms are not by side-effect, so they'll
  4044. # only be used when explicitly requested
  4045. if test "x$enable_dependency_tracking" = xyes; then
  4046. continue
  4047. else
  4048. break
  4049. fi
  4050. ;;
  4051. msvisualcpp | msvcmsys)
  4052. # This compiler won't grok `-c -o', but also, the minuso test has
  4053. # not run yet. These depmodes are late enough in the game, and
  4054. # so weak that their functioning should not be impacted.
  4055. am__obj=conftest.${OBJEXT-o}
  4056. am__minus_obj=
  4057. ;;
  4058. none) break ;;
  4059. esac
  4060. if depmode=$depmode \
  4061. source=sub/conftest.c object=$am__obj \
  4062. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4063. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4064. >/dev/null 2>conftest.err &&
  4065. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4066. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4067. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4068. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4069. # icc doesn't choke on unknown options, it will just issue warnings
  4070. # or remarks (even with -Werror). So we grep stderr for any message
  4071. # that says an option was ignored or not supported.
  4072. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4073. # icc: Command line warning: ignoring option '-M'; no argument required
  4074. # The diagnosis changed in icc 8.0:
  4075. # icc: Command line remark: option '-MP' not supported
  4076. if (grep 'ignoring option' conftest.err ||
  4077. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4078. am_cv_CC_dependencies_compiler_type=$depmode
  4079. break
  4080. fi
  4081. fi
  4082. done
  4083. cd ..
  4084. rm -rf conftest.dir
  4085. else
  4086. am_cv_CC_dependencies_compiler_type=none
  4087. fi
  4088. fi
  4089. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4090. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4091. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4092. if
  4093. test "x$enable_dependency_tracking" != xno \
  4094. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4095. am__fastdepCC_TRUE=
  4096. am__fastdepCC_FALSE='#'
  4097. else
  4098. am__fastdepCC_TRUE='#'
  4099. am__fastdepCC_FALSE=
  4100. fi
  4101. am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  4102. # Make sure we can run config.sub.
  4103. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4104. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  4105. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  4106. { (exit 1); exit 1; }; }
  4107. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  4108. $as_echo_n "checking build system type... " >&6; }
  4109. if test "${ac_cv_build+set}" = set; then
  4110. $as_echo_n "(cached) " >&6
  4111. else
  4112. ac_build_alias=$build_alias
  4113. test "x$ac_build_alias" = x &&
  4114. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4115. test "x$ac_build_alias" = x &&
  4116. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4117. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4118. { (exit 1); exit 1; }; }
  4119. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4120. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  4121. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  4122. { (exit 1); exit 1; }; }
  4123. fi
  4124. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4125. $as_echo "$ac_cv_build" >&6; }
  4126. case $ac_cv_build in
  4127. *-*-*) ;;
  4128. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  4129. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  4130. { (exit 1); exit 1; }; };;
  4131. esac
  4132. build=$ac_cv_build
  4133. ac_save_IFS=$IFS; IFS='-'
  4134. set x $ac_cv_build
  4135. shift
  4136. build_cpu=$1
  4137. build_vendor=$2
  4138. shift; shift
  4139. # Remember, the first character of IFS is used to create $*,
  4140. # except with old shells:
  4141. build_os=$*
  4142. IFS=$ac_save_IFS
  4143. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4144. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  4145. $as_echo_n "checking host system type... " >&6; }
  4146. if test "${ac_cv_host+set}" = set; then
  4147. $as_echo_n "(cached) " >&6
  4148. else
  4149. if test "x$host_alias" = x; then
  4150. ac_cv_host=$ac_cv_build
  4151. else
  4152. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4153. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  4154. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  4155. { (exit 1); exit 1; }; }
  4156. fi
  4157. fi
  4158. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4159. $as_echo "$ac_cv_host" >&6; }
  4160. case $ac_cv_host in
  4161. *-*-*) ;;
  4162. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  4163. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  4164. { (exit 1); exit 1; }; };;
  4165. esac
  4166. host=$ac_cv_host
  4167. ac_save_IFS=$IFS; IFS='-'
  4168. set x $ac_cv_host
  4169. shift
  4170. host_cpu=$1
  4171. host_vendor=$2
  4172. shift; shift
  4173. # Remember, the first character of IFS is used to create $*,
  4174. # except with old shells:
  4175. host_os=$*
  4176. IFS=$ac_save_IFS
  4177. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4178. enable_win32_dll=yes
  4179. case $host in
  4180. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  4181. if test -n "$ac_tool_prefix"; then
  4182. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4183. set dummy ${ac_tool_prefix}as; ac_word=$2
  4184. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4185. $as_echo_n "checking for $ac_word... " >&6; }
  4186. if test "${ac_cv_prog_AS+set}" = set; then
  4187. $as_echo_n "(cached) " >&6
  4188. else
  4189. if test -n "$AS"; then
  4190. ac_cv_prog_AS="$AS" # Let the user override the test.
  4191. else
  4192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4193. for as_dir in $PATH
  4194. do
  4195. IFS=$as_save_IFS
  4196. test -z "$as_dir" && as_dir=.
  4197. for ac_exec_ext in '' $ac_executable_extensions; do
  4198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4199. ac_cv_prog_AS="${ac_tool_prefix}as"
  4200. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4201. break 2
  4202. fi
  4203. done
  4204. done
  4205. IFS=$as_save_IFS
  4206. fi
  4207. fi
  4208. AS=$ac_cv_prog_AS
  4209. if test -n "$AS"; then
  4210. { $as_echo "$as_me:$LINENO: result: $AS" >&5
  4211. $as_echo "$AS" >&6; }
  4212. else
  4213. { $as_echo "$as_me:$LINENO: result: no" >&5
  4214. $as_echo "no" >&6; }
  4215. fi
  4216. fi
  4217. if test -z "$ac_cv_prog_AS"; then
  4218. ac_ct_AS=$AS
  4219. # Extract the first word of "as", so it can be a program name with args.
  4220. set dummy as; ac_word=$2
  4221. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4222. $as_echo_n "checking for $ac_word... " >&6; }
  4223. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. if test -n "$ac_ct_AS"; then
  4227. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4228. else
  4229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4230. for as_dir in $PATH
  4231. do
  4232. IFS=$as_save_IFS
  4233. test -z "$as_dir" && as_dir=.
  4234. for ac_exec_ext in '' $ac_executable_extensions; do
  4235. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4236. ac_cv_prog_ac_ct_AS="as"
  4237. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4238. break 2
  4239. fi
  4240. done
  4241. done
  4242. IFS=$as_save_IFS
  4243. fi
  4244. fi
  4245. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4246. if test -n "$ac_ct_AS"; then
  4247. { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  4248. $as_echo "$ac_ct_AS" >&6; }
  4249. else
  4250. { $as_echo "$as_me:$LINENO: result: no" >&5
  4251. $as_echo "no" >&6; }
  4252. fi
  4253. if test "x$ac_ct_AS" = x; then
  4254. AS="false"
  4255. else
  4256. case $cross_compiling:$ac_tool_warned in
  4257. yes:)
  4258. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4259. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4260. ac_tool_warned=yes ;;
  4261. esac
  4262. AS=$ac_ct_AS
  4263. fi
  4264. else
  4265. AS="$ac_cv_prog_AS"
  4266. fi
  4267. if test -n "$ac_tool_prefix"; then
  4268. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4269. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4270. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4271. $as_echo_n "checking for $ac_word... " >&6; }
  4272. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  4273. $as_echo_n "(cached) " >&6
  4274. else
  4275. if test -n "$DLLTOOL"; then
  4276. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4277. else
  4278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4279. for as_dir in $PATH
  4280. do
  4281. IFS=$as_save_IFS
  4282. test -z "$as_dir" && as_dir=.
  4283. for ac_exec_ext in '' $ac_executable_extensions; do
  4284. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4285. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4286. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4287. break 2
  4288. fi
  4289. done
  4290. done
  4291. IFS=$as_save_IFS
  4292. fi
  4293. fi
  4294. DLLTOOL=$ac_cv_prog_DLLTOOL
  4295. if test -n "$DLLTOOL"; then
  4296. { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  4297. $as_echo "$DLLTOOL" >&6; }
  4298. else
  4299. { $as_echo "$as_me:$LINENO: result: no" >&5
  4300. $as_echo "no" >&6; }
  4301. fi
  4302. fi
  4303. if test -z "$ac_cv_prog_DLLTOOL"; then
  4304. ac_ct_DLLTOOL=$DLLTOOL
  4305. # Extract the first word of "dlltool", so it can be a program name with args.
  4306. set dummy dlltool; ac_word=$2
  4307. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4308. $as_echo_n "checking for $ac_word... " >&6; }
  4309. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  4310. $as_echo_n "(cached) " >&6
  4311. else
  4312. if test -n "$ac_ct_DLLTOOL"; then
  4313. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4314. else
  4315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4316. for as_dir in $PATH
  4317. do
  4318. IFS=$as_save_IFS
  4319. test -z "$as_dir" && as_dir=.
  4320. for ac_exec_ext in '' $ac_executable_extensions; do
  4321. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4322. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4323. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4324. break 2
  4325. fi
  4326. done
  4327. done
  4328. IFS=$as_save_IFS
  4329. fi
  4330. fi
  4331. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4332. if test -n "$ac_ct_DLLTOOL"; then
  4333. { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  4334. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4335. else
  4336. { $as_echo "$as_me:$LINENO: result: no" >&5
  4337. $as_echo "no" >&6; }
  4338. fi
  4339. if test "x$ac_ct_DLLTOOL" = x; then
  4340. DLLTOOL="false"
  4341. else
  4342. case $cross_compiling:$ac_tool_warned in
  4343. yes:)
  4344. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4345. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4346. ac_tool_warned=yes ;;
  4347. esac
  4348. DLLTOOL=$ac_ct_DLLTOOL
  4349. fi
  4350. else
  4351. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4352. fi
  4353. if test -n "$ac_tool_prefix"; then
  4354. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4355. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4356. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4357. $as_echo_n "checking for $ac_word... " >&6; }
  4358. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4359. $as_echo_n "(cached) " >&6
  4360. else
  4361. if test -n "$OBJDUMP"; then
  4362. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4363. else
  4364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4365. for as_dir in $PATH
  4366. do
  4367. IFS=$as_save_IFS
  4368. test -z "$as_dir" && as_dir=.
  4369. for ac_exec_ext in '' $ac_executable_extensions; do
  4370. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4371. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4372. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4373. break 2
  4374. fi
  4375. done
  4376. done
  4377. IFS=$as_save_IFS
  4378. fi
  4379. fi
  4380. OBJDUMP=$ac_cv_prog_OBJDUMP
  4381. if test -n "$OBJDUMP"; then
  4382. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4383. $as_echo "$OBJDUMP" >&6; }
  4384. else
  4385. { $as_echo "$as_me:$LINENO: result: no" >&5
  4386. $as_echo "no" >&6; }
  4387. fi
  4388. fi
  4389. if test -z "$ac_cv_prog_OBJDUMP"; then
  4390. ac_ct_OBJDUMP=$OBJDUMP
  4391. # Extract the first word of "objdump", so it can be a program name with args.
  4392. set dummy objdump; ac_word=$2
  4393. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4394. $as_echo_n "checking for $ac_word... " >&6; }
  4395. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4396. $as_echo_n "(cached) " >&6
  4397. else
  4398. if test -n "$ac_ct_OBJDUMP"; then
  4399. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4400. else
  4401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4402. for as_dir in $PATH
  4403. do
  4404. IFS=$as_save_IFS
  4405. test -z "$as_dir" && as_dir=.
  4406. for ac_exec_ext in '' $ac_executable_extensions; do
  4407. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4408. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4409. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4410. break 2
  4411. fi
  4412. done
  4413. done
  4414. IFS=$as_save_IFS
  4415. fi
  4416. fi
  4417. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4418. if test -n "$ac_ct_OBJDUMP"; then
  4419. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4420. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4421. else
  4422. { $as_echo "$as_me:$LINENO: result: no" >&5
  4423. $as_echo "no" >&6; }
  4424. fi
  4425. if test "x$ac_ct_OBJDUMP" = x; then
  4426. OBJDUMP="false"
  4427. else
  4428. case $cross_compiling:$ac_tool_warned in
  4429. yes:)
  4430. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4431. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4432. ac_tool_warned=yes ;;
  4433. esac
  4434. OBJDUMP=$ac_ct_OBJDUMP
  4435. fi
  4436. else
  4437. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4438. fi
  4439. ;;
  4440. esac
  4441. test -z "$AS" && AS=as
  4442. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4443. test -z "$OBJDUMP" && OBJDUMP=objdump
  4444. case `pwd` in
  4445. *\ * | *\ *)
  4446. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4447. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4448. esac
  4449. macro_version='2.2.6'
  4450. macro_revision='1.3012'
  4451. ltmain="$ac_aux_dir/ltmain.sh"
  4452. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4453. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4454. if test "${ac_cv_path_SED+set}" = set; then
  4455. $as_echo_n "(cached) " >&6
  4456. else
  4457. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4458. for ac_i in 1 2 3 4 5 6 7; do
  4459. ac_script="$ac_script$as_nl$ac_script"
  4460. done
  4461. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4462. $as_unset ac_script || ac_script=
  4463. if test -z "$SED"; then
  4464. ac_path_SED_found=false
  4465. # Loop through the user's path and test for each of PROGNAME-LIST
  4466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4467. for as_dir in $PATH
  4468. do
  4469. IFS=$as_save_IFS
  4470. test -z "$as_dir" && as_dir=.
  4471. for ac_prog in sed gsed; do
  4472. for ac_exec_ext in '' $ac_executable_extensions; do
  4473. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4474. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4475. # Check for GNU ac_path_SED and select it if it is found.
  4476. # Check for GNU $ac_path_SED
  4477. case `"$ac_path_SED" --version 2>&1` in
  4478. *GNU*)
  4479. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4480. *)
  4481. ac_count=0
  4482. $as_echo_n 0123456789 >"conftest.in"
  4483. while :
  4484. do
  4485. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4486. mv "conftest.tmp" "conftest.in"
  4487. cp "conftest.in" "conftest.nl"
  4488. $as_echo '' >> "conftest.nl"
  4489. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4490. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4491. ac_count=`expr $ac_count + 1`
  4492. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4493. # Best one so far, save it but keep looking for a better one
  4494. ac_cv_path_SED="$ac_path_SED"
  4495. ac_path_SED_max=$ac_count
  4496. fi
  4497. # 10*(2^10) chars as input seems more than enough
  4498. test $ac_count -gt 10 && break
  4499. done
  4500. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4501. esac
  4502. $ac_path_SED_found && break 3
  4503. done
  4504. done
  4505. done
  4506. IFS=$as_save_IFS
  4507. if test -z "$ac_cv_path_SED"; then
  4508. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  4509. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  4510. { (exit 1); exit 1; }; }
  4511. fi
  4512. else
  4513. ac_cv_path_SED=$SED
  4514. fi
  4515. fi
  4516. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  4517. $as_echo "$ac_cv_path_SED" >&6; }
  4518. SED="$ac_cv_path_SED"
  4519. rm -f conftest.sed
  4520. test -z "$SED" && SED=sed
  4521. Xsed="$SED -e 1s/^X//"
  4522. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4523. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4524. if test "${ac_cv_path_GREP+set}" = set; then
  4525. $as_echo_n "(cached) " >&6
  4526. else
  4527. if test -z "$GREP"; then
  4528. ac_path_GREP_found=false
  4529. # Loop through the user's path and test for each of PROGNAME-LIST
  4530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4531. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4532. do
  4533. IFS=$as_save_IFS
  4534. test -z "$as_dir" && as_dir=.
  4535. for ac_prog in grep ggrep; do
  4536. for ac_exec_ext in '' $ac_executable_extensions; do
  4537. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4538. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4539. # Check for GNU ac_path_GREP and select it if it is found.
  4540. # Check for GNU $ac_path_GREP
  4541. case `"$ac_path_GREP" --version 2>&1` in
  4542. *GNU*)
  4543. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4544. *)
  4545. ac_count=0
  4546. $as_echo_n 0123456789 >"conftest.in"
  4547. while :
  4548. do
  4549. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4550. mv "conftest.tmp" "conftest.in"
  4551. cp "conftest.in" "conftest.nl"
  4552. $as_echo 'GREP' >> "conftest.nl"
  4553. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4554. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4555. ac_count=`expr $ac_count + 1`
  4556. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4557. # Best one so far, save it but keep looking for a better one
  4558. ac_cv_path_GREP="$ac_path_GREP"
  4559. ac_path_GREP_max=$ac_count
  4560. fi
  4561. # 10*(2^10) chars as input seems more than enough
  4562. test $ac_count -gt 10 && break
  4563. done
  4564. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4565. esac
  4566. $ac_path_GREP_found && break 3
  4567. done
  4568. done
  4569. done
  4570. IFS=$as_save_IFS
  4571. if test -z "$ac_cv_path_GREP"; then
  4572. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4573. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4574. { (exit 1); exit 1; }; }
  4575. fi
  4576. else
  4577. ac_cv_path_GREP=$GREP
  4578. fi
  4579. fi
  4580. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4581. $as_echo "$ac_cv_path_GREP" >&6; }
  4582. GREP="$ac_cv_path_GREP"
  4583. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4584. $as_echo_n "checking for egrep... " >&6; }
  4585. if test "${ac_cv_path_EGREP+set}" = set; then
  4586. $as_echo_n "(cached) " >&6
  4587. else
  4588. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4589. then ac_cv_path_EGREP="$GREP -E"
  4590. else
  4591. if test -z "$EGREP"; then
  4592. ac_path_EGREP_found=false
  4593. # Loop through the user's path and test for each of PROGNAME-LIST
  4594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4595. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4596. do
  4597. IFS=$as_save_IFS
  4598. test -z "$as_dir" && as_dir=.
  4599. for ac_prog in egrep; do
  4600. for ac_exec_ext in '' $ac_executable_extensions; do
  4601. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4602. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4603. # Check for GNU ac_path_EGREP and select it if it is found.
  4604. # Check for GNU $ac_path_EGREP
  4605. case `"$ac_path_EGREP" --version 2>&1` in
  4606. *GNU*)
  4607. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4608. *)
  4609. ac_count=0
  4610. $as_echo_n 0123456789 >"conftest.in"
  4611. while :
  4612. do
  4613. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4614. mv "conftest.tmp" "conftest.in"
  4615. cp "conftest.in" "conftest.nl"
  4616. $as_echo 'EGREP' >> "conftest.nl"
  4617. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4618. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4619. ac_count=`expr $ac_count + 1`
  4620. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4621. # Best one so far, save it but keep looking for a better one
  4622. ac_cv_path_EGREP="$ac_path_EGREP"
  4623. ac_path_EGREP_max=$ac_count
  4624. fi
  4625. # 10*(2^10) chars as input seems more than enough
  4626. test $ac_count -gt 10 && break
  4627. done
  4628. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4629. esac
  4630. $ac_path_EGREP_found && break 3
  4631. done
  4632. done
  4633. done
  4634. IFS=$as_save_IFS
  4635. if test -z "$ac_cv_path_EGREP"; then
  4636. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4637. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4638. { (exit 1); exit 1; }; }
  4639. fi
  4640. else
  4641. ac_cv_path_EGREP=$EGREP
  4642. fi
  4643. fi
  4644. fi
  4645. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4646. $as_echo "$ac_cv_path_EGREP" >&6; }
  4647. EGREP="$ac_cv_path_EGREP"
  4648. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  4649. $as_echo_n "checking for fgrep... " >&6; }
  4650. if test "${ac_cv_path_FGREP+set}" = set; then
  4651. $as_echo_n "(cached) " >&6
  4652. else
  4653. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4654. then ac_cv_path_FGREP="$GREP -F"
  4655. else
  4656. if test -z "$FGREP"; then
  4657. ac_path_FGREP_found=false
  4658. # Loop through the user's path and test for each of PROGNAME-LIST
  4659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4660. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4661. do
  4662. IFS=$as_save_IFS
  4663. test -z "$as_dir" && as_dir=.
  4664. for ac_prog in fgrep; do
  4665. for ac_exec_ext in '' $ac_executable_extensions; do
  4666. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4667. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4668. # Check for GNU ac_path_FGREP and select it if it is found.
  4669. # Check for GNU $ac_path_FGREP
  4670. case `"$ac_path_FGREP" --version 2>&1` in
  4671. *GNU*)
  4672. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4673. *)
  4674. ac_count=0
  4675. $as_echo_n 0123456789 >"conftest.in"
  4676. while :
  4677. do
  4678. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4679. mv "conftest.tmp" "conftest.in"
  4680. cp "conftest.in" "conftest.nl"
  4681. $as_echo 'FGREP' >> "conftest.nl"
  4682. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4683. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4684. ac_count=`expr $ac_count + 1`
  4685. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4686. # Best one so far, save it but keep looking for a better one
  4687. ac_cv_path_FGREP="$ac_path_FGREP"
  4688. ac_path_FGREP_max=$ac_count
  4689. fi
  4690. # 10*(2^10) chars as input seems more than enough
  4691. test $ac_count -gt 10 && break
  4692. done
  4693. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4694. esac
  4695. $ac_path_FGREP_found && break 3
  4696. done
  4697. done
  4698. done
  4699. IFS=$as_save_IFS
  4700. if test -z "$ac_cv_path_FGREP"; then
  4701. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4702. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4703. { (exit 1); exit 1; }; }
  4704. fi
  4705. else
  4706. ac_cv_path_FGREP=$FGREP
  4707. fi
  4708. fi
  4709. fi
  4710. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  4711. $as_echo "$ac_cv_path_FGREP" >&6; }
  4712. FGREP="$ac_cv_path_FGREP"
  4713. test -z "$GREP" && GREP=grep
  4714. # Check whether --with-gnu-ld was given.
  4715. if test "${with_gnu_ld+set}" = set; then
  4716. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4717. else
  4718. with_gnu_ld=no
  4719. fi
  4720. ac_prog=ld
  4721. if test "$GCC" = yes; then
  4722. # Check if gcc -print-prog-name=ld gives a path.
  4723. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4724. $as_echo_n "checking for ld used by $CC... " >&6; }
  4725. case $host in
  4726. *-*-mingw*)
  4727. # gcc leaves a trailing carriage return which upsets mingw
  4728. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4729. *)
  4730. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4731. esac
  4732. case $ac_prog in
  4733. # Accept absolute paths.
  4734. [\\/]* | ?:[\\/]*)
  4735. re_direlt='/[^/][^/]*/\.\./'
  4736. # Canonicalize the pathname of ld
  4737. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4738. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4739. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4740. done
  4741. test -z "$LD" && LD="$ac_prog"
  4742. ;;
  4743. "")
  4744. # If it fails, then pretend we aren't using GCC.
  4745. ac_prog=ld
  4746. ;;
  4747. *)
  4748. # If it is relative, then search for the first ld in PATH.
  4749. with_gnu_ld=unknown
  4750. ;;
  4751. esac
  4752. elif test "$with_gnu_ld" = yes; then
  4753. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  4754. $as_echo_n "checking for GNU ld... " >&6; }
  4755. else
  4756. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4757. $as_echo_n "checking for non-GNU ld... " >&6; }
  4758. fi
  4759. if test "${lt_cv_path_LD+set}" = set; then
  4760. $as_echo_n "(cached) " >&6
  4761. else
  4762. if test -z "$LD"; then
  4763. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4764. for ac_dir in $PATH; do
  4765. IFS="$lt_save_ifs"
  4766. test -z "$ac_dir" && ac_dir=.
  4767. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4768. lt_cv_path_LD="$ac_dir/$ac_prog"
  4769. # Check to see if the program is GNU ld. I'd rather use --version,
  4770. # but apparently some variants of GNU ld only accept -v.
  4771. # Break only if it was the GNU/non-GNU ld that we prefer.
  4772. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4773. *GNU* | *'with BFD'*)
  4774. test "$with_gnu_ld" != no && break
  4775. ;;
  4776. *)
  4777. test "$with_gnu_ld" != yes && break
  4778. ;;
  4779. esac
  4780. fi
  4781. done
  4782. IFS="$lt_save_ifs"
  4783. else
  4784. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4785. fi
  4786. fi
  4787. LD="$lt_cv_path_LD"
  4788. if test -n "$LD"; then
  4789. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4790. $as_echo "$LD" >&6; }
  4791. else
  4792. { $as_echo "$as_me:$LINENO: result: no" >&5
  4793. $as_echo "no" >&6; }
  4794. fi
  4795. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4796. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4797. { (exit 1); exit 1; }; }
  4798. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4799. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4800. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4801. $as_echo_n "(cached) " >&6
  4802. else
  4803. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4804. case `$LD -v 2>&1 </dev/null` in
  4805. *GNU* | *'with BFD'*)
  4806. lt_cv_prog_gnu_ld=yes
  4807. ;;
  4808. *)
  4809. lt_cv_prog_gnu_ld=no
  4810. ;;
  4811. esac
  4812. fi
  4813. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4814. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4815. with_gnu_ld=$lt_cv_prog_gnu_ld
  4816. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  4817. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4818. if test "${lt_cv_path_NM+set}" = set; then
  4819. $as_echo_n "(cached) " >&6
  4820. else
  4821. if test -n "$NM"; then
  4822. # Let the user override the test.
  4823. lt_cv_path_NM="$NM"
  4824. else
  4825. lt_nm_to_check="${ac_tool_prefix}nm"
  4826. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4827. lt_nm_to_check="$lt_nm_to_check nm"
  4828. fi
  4829. for lt_tmp_nm in $lt_nm_to_check; do
  4830. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4831. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4832. IFS="$lt_save_ifs"
  4833. test -z "$ac_dir" && ac_dir=.
  4834. tmp_nm="$ac_dir/$lt_tmp_nm"
  4835. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4836. # Check to see if the nm accepts a BSD-compat flag.
  4837. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4838. # nm: unknown option "B" ignored
  4839. # Tru64's nm complains that /dev/null is an invalid object file
  4840. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4841. */dev/null* | *'Invalid file or object type'*)
  4842. lt_cv_path_NM="$tmp_nm -B"
  4843. break
  4844. ;;
  4845. *)
  4846. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4847. */dev/null*)
  4848. lt_cv_path_NM="$tmp_nm -p"
  4849. break
  4850. ;;
  4851. *)
  4852. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4853. continue # so that we can try to find one that supports BSD flags
  4854. ;;
  4855. esac
  4856. ;;
  4857. esac
  4858. fi
  4859. done
  4860. IFS="$lt_save_ifs"
  4861. done
  4862. : ${lt_cv_path_NM=no}
  4863. fi
  4864. fi
  4865. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4866. $as_echo "$lt_cv_path_NM" >&6; }
  4867. if test "$lt_cv_path_NM" != "no"; then
  4868. NM="$lt_cv_path_NM"
  4869. else
  4870. # Didn't find any BSD compatible name lister, look for dumpbin.
  4871. if test -n "$ac_tool_prefix"; then
  4872. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4873. do
  4874. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4875. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4876. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4877. $as_echo_n "checking for $ac_word... " >&6; }
  4878. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  4879. $as_echo_n "(cached) " >&6
  4880. else
  4881. if test -n "$DUMPBIN"; then
  4882. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4883. else
  4884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4885. for as_dir in $PATH
  4886. do
  4887. IFS=$as_save_IFS
  4888. test -z "$as_dir" && as_dir=.
  4889. for ac_exec_ext in '' $ac_executable_extensions; do
  4890. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4891. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4892. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4893. break 2
  4894. fi
  4895. done
  4896. done
  4897. IFS=$as_save_IFS
  4898. fi
  4899. fi
  4900. DUMPBIN=$ac_cv_prog_DUMPBIN
  4901. if test -n "$DUMPBIN"; then
  4902. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  4903. $as_echo "$DUMPBIN" >&6; }
  4904. else
  4905. { $as_echo "$as_me:$LINENO: result: no" >&5
  4906. $as_echo "no" >&6; }
  4907. fi
  4908. test -n "$DUMPBIN" && break
  4909. done
  4910. fi
  4911. if test -z "$DUMPBIN"; then
  4912. ac_ct_DUMPBIN=$DUMPBIN
  4913. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4914. do
  4915. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4916. set dummy $ac_prog; ac_word=$2
  4917. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4918. $as_echo_n "checking for $ac_word... " >&6; }
  4919. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  4920. $as_echo_n "(cached) " >&6
  4921. else
  4922. if test -n "$ac_ct_DUMPBIN"; then
  4923. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4924. else
  4925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4926. for as_dir in $PATH
  4927. do
  4928. IFS=$as_save_IFS
  4929. test -z "$as_dir" && as_dir=.
  4930. for ac_exec_ext in '' $ac_executable_extensions; do
  4931. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4932. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4933. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4934. break 2
  4935. fi
  4936. done
  4937. done
  4938. IFS=$as_save_IFS
  4939. fi
  4940. fi
  4941. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4942. if test -n "$ac_ct_DUMPBIN"; then
  4943. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4944. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4945. else
  4946. { $as_echo "$as_me:$LINENO: result: no" >&5
  4947. $as_echo "no" >&6; }
  4948. fi
  4949. test -n "$ac_ct_DUMPBIN" && break
  4950. done
  4951. if test "x$ac_ct_DUMPBIN" = x; then
  4952. DUMPBIN=":"
  4953. else
  4954. case $cross_compiling:$ac_tool_warned in
  4955. yes:)
  4956. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4957. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4958. ac_tool_warned=yes ;;
  4959. esac
  4960. DUMPBIN=$ac_ct_DUMPBIN
  4961. fi
  4962. fi
  4963. if test "$DUMPBIN" != ":"; then
  4964. NM="$DUMPBIN"
  4965. fi
  4966. fi
  4967. test -z "$NM" && NM=nm
  4968. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4969. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4970. if test "${lt_cv_nm_interface+set}" = set; then
  4971. $as_echo_n "(cached) " >&6
  4972. else
  4973. lt_cv_nm_interface="BSD nm"
  4974. echo "int some_variable = 0;" > conftest.$ac_ext
  4975. (eval echo "\"\$as_me:5581: $ac_compile\"" >&5)
  4976. (eval "$ac_compile" 2>conftest.err)
  4977. cat conftest.err >&5
  4978. (eval echo "\"\$as_me:5584: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4979. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4980. cat conftest.err >&5
  4981. (eval echo "\"\$as_me:5587: output\"" >&5)
  4982. cat conftest.out >&5
  4983. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4984. lt_cv_nm_interface="MS dumpbin"
  4985. fi
  4986. rm -f conftest*
  4987. fi
  4988. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4989. $as_echo "$lt_cv_nm_interface" >&6; }
  4990. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4991. $as_echo_n "checking whether ln -s works... " >&6; }
  4992. LN_S=$as_ln_s
  4993. if test "$LN_S" = "ln -s"; then
  4994. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4995. $as_echo "yes" >&6; }
  4996. else
  4997. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4998. $as_echo "no, using $LN_S" >&6; }
  4999. fi
  5000. # find the maximum length of command line arguments
  5001. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5002. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5003. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5004. $as_echo_n "(cached) " >&6
  5005. else
  5006. i=0
  5007. teststring="ABCD"
  5008. case $build_os in
  5009. msdosdjgpp*)
  5010. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5011. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5012. # during glob expansion). Even if it were fixed, the result of this
  5013. # check would be larger than it should be.
  5014. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5015. ;;
  5016. gnu*)
  5017. # Under GNU Hurd, this test is not required because there is
  5018. # no limit to the length of command line arguments.
  5019. # Libtool will interpret -1 as no limit whatsoever
  5020. lt_cv_sys_max_cmd_len=-1;
  5021. ;;
  5022. cygwin* | mingw* | cegcc*)
  5023. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5024. # about 5 minutes as the teststring grows exponentially.
  5025. # Worse, since 9x/ME are not pre-emptively multitasking,
  5026. # you end up with a "frozen" computer, even though with patience
  5027. # the test eventually succeeds (with a max line length of 256k).
  5028. # Instead, let's just punt: use the minimum linelength reported by
  5029. # all of the supported platforms: 8192 (on NT/2K/XP).
  5030. lt_cv_sys_max_cmd_len=8192;
  5031. ;;
  5032. amigaos*)
  5033. # On AmigaOS with pdksh, this test takes hours, literally.
  5034. # So we just punt and use a minimum line length of 8192.
  5035. lt_cv_sys_max_cmd_len=8192;
  5036. ;;
  5037. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5038. # This has been around since 386BSD, at least. Likely further.
  5039. if test -x /sbin/sysctl; then
  5040. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5041. elif test -x /usr/sbin/sysctl; then
  5042. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5043. else
  5044. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5045. fi
  5046. # And add a safety zone
  5047. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5048. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5049. ;;
  5050. interix*)
  5051. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5052. lt_cv_sys_max_cmd_len=196608
  5053. ;;
  5054. osf*)
  5055. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5056. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5057. # nice to cause kernel panics so lets avoid the loop below.
  5058. # First set a reasonable default.
  5059. lt_cv_sys_max_cmd_len=16384
  5060. #
  5061. if test -x /sbin/sysconfig; then
  5062. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5063. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5064. esac
  5065. fi
  5066. ;;
  5067. sco3.2v5*)
  5068. lt_cv_sys_max_cmd_len=102400
  5069. ;;
  5070. sysv5* | sco5v6* | sysv4.2uw2*)
  5071. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5072. if test -n "$kargmax"; then
  5073. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5074. else
  5075. lt_cv_sys_max_cmd_len=32768
  5076. fi
  5077. ;;
  5078. *)
  5079. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5080. if test -n "$lt_cv_sys_max_cmd_len"; then
  5081. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5082. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5083. else
  5084. # Make teststring a little bigger before we do anything with it.
  5085. # a 1K string should be a reasonable start.
  5086. for i in 1 2 3 4 5 6 7 8 ; do
  5087. teststring=$teststring$teststring
  5088. done
  5089. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5090. # If test is not a shell built-in, we'll probably end up computing a
  5091. # maximum length that is only half of the actual maximum length, but
  5092. # we can't tell.
  5093. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5094. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5095. test $i != 17 # 1/2 MB should be enough
  5096. do
  5097. i=`expr $i + 1`
  5098. teststring=$teststring$teststring
  5099. done
  5100. # Only check the string length outside the loop.
  5101. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5102. teststring=
  5103. # Add a significant safety factor because C++ compilers can tack on
  5104. # massive amounts of additional arguments before passing them to the
  5105. # linker. It appears as though 1/2 is a usable value.
  5106. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5107. fi
  5108. ;;
  5109. esac
  5110. fi
  5111. if test -n $lt_cv_sys_max_cmd_len ; then
  5112. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5113. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5114. else
  5115. { $as_echo "$as_me:$LINENO: result: none" >&5
  5116. $as_echo "none" >&6; }
  5117. fi
  5118. max_cmd_len=$lt_cv_sys_max_cmd_len
  5119. : ${CP="cp -f"}
  5120. : ${MV="mv -f"}
  5121. : ${RM="rm -f"}
  5122. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  5123. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5124. # Try some XSI features
  5125. xsi_shell=no
  5126. ( _lt_dummy="a/b/c"
  5127. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5128. = c,a/b,, \
  5129. && eval 'test $(( 1 + 1 )) -eq 2 \
  5130. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5131. && xsi_shell=yes
  5132. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  5133. $as_echo "$xsi_shell" >&6; }
  5134. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  5135. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5136. lt_shell_append=no
  5137. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5138. >/dev/null 2>&1 \
  5139. && lt_shell_append=yes
  5140. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  5141. $as_echo "$lt_shell_append" >&6; }
  5142. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5143. lt_unset=unset
  5144. else
  5145. lt_unset=false
  5146. fi
  5147. # test EBCDIC or ASCII
  5148. case `echo X|tr X '\101'` in
  5149. A) # ASCII based system
  5150. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5151. lt_SP2NL='tr \040 \012'
  5152. lt_NL2SP='tr \015\012 \040\040'
  5153. ;;
  5154. *) # EBCDIC based system
  5155. lt_SP2NL='tr \100 \n'
  5156. lt_NL2SP='tr \r\n \100\100'
  5157. ;;
  5158. esac
  5159. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  5160. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5161. if test "${lt_cv_ld_reload_flag+set}" = set; then
  5162. $as_echo_n "(cached) " >&6
  5163. else
  5164. lt_cv_ld_reload_flag='-r'
  5165. fi
  5166. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  5167. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5168. reload_flag=$lt_cv_ld_reload_flag
  5169. case $reload_flag in
  5170. "" | " "*) ;;
  5171. *) reload_flag=" $reload_flag" ;;
  5172. esac
  5173. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5174. case $host_os in
  5175. darwin*)
  5176. if test "$GCC" = yes; then
  5177. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5178. else
  5179. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5180. fi
  5181. ;;
  5182. esac
  5183. if test -n "$ac_tool_prefix"; then
  5184. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5185. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5186. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5187. $as_echo_n "checking for $ac_word... " >&6; }
  5188. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  5189. $as_echo_n "(cached) " >&6
  5190. else
  5191. if test -n "$OBJDUMP"; then
  5192. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5193. else
  5194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5195. for as_dir in $PATH
  5196. do
  5197. IFS=$as_save_IFS
  5198. test -z "$as_dir" && as_dir=.
  5199. for ac_exec_ext in '' $ac_executable_extensions; do
  5200. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5201. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5202. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5203. break 2
  5204. fi
  5205. done
  5206. done
  5207. IFS=$as_save_IFS
  5208. fi
  5209. fi
  5210. OBJDUMP=$ac_cv_prog_OBJDUMP
  5211. if test -n "$OBJDUMP"; then
  5212. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  5213. $as_echo "$OBJDUMP" >&6; }
  5214. else
  5215. { $as_echo "$as_me:$LINENO: result: no" >&5
  5216. $as_echo "no" >&6; }
  5217. fi
  5218. fi
  5219. if test -z "$ac_cv_prog_OBJDUMP"; then
  5220. ac_ct_OBJDUMP=$OBJDUMP
  5221. # Extract the first word of "objdump", so it can be a program name with args.
  5222. set dummy objdump; ac_word=$2
  5223. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5224. $as_echo_n "checking for $ac_word... " >&6; }
  5225. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  5226. $as_echo_n "(cached) " >&6
  5227. else
  5228. if test -n "$ac_ct_OBJDUMP"; then
  5229. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5230. else
  5231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5232. for as_dir in $PATH
  5233. do
  5234. IFS=$as_save_IFS
  5235. test -z "$as_dir" && as_dir=.
  5236. for ac_exec_ext in '' $ac_executable_extensions; do
  5237. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5238. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5239. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5240. break 2
  5241. fi
  5242. done
  5243. done
  5244. IFS=$as_save_IFS
  5245. fi
  5246. fi
  5247. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5248. if test -n "$ac_ct_OBJDUMP"; then
  5249. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  5250. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5251. else
  5252. { $as_echo "$as_me:$LINENO: result: no" >&5
  5253. $as_echo "no" >&6; }
  5254. fi
  5255. if test "x$ac_ct_OBJDUMP" = x; then
  5256. OBJDUMP="false"
  5257. else
  5258. case $cross_compiling:$ac_tool_warned in
  5259. yes:)
  5260. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5261. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5262. ac_tool_warned=yes ;;
  5263. esac
  5264. OBJDUMP=$ac_ct_OBJDUMP
  5265. fi
  5266. else
  5267. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5268. fi
  5269. test -z "$OBJDUMP" && OBJDUMP=objdump
  5270. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  5271. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5272. if test "${lt_cv_deplibs_check_method+set}" = set; then
  5273. $as_echo_n "(cached) " >&6
  5274. else
  5275. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5276. lt_cv_file_magic_test_file=
  5277. lt_cv_deplibs_check_method='unknown'
  5278. # Need to set the preceding variable on all platforms that support
  5279. # interlibrary dependencies.
  5280. # 'none' -- dependencies not supported.
  5281. # `unknown' -- same as none, but documents that we really don't know.
  5282. # 'pass_all' -- all dependencies passed with no checks.
  5283. # 'test_compile' -- check by making test program.
  5284. # 'file_magic [[regex]]' -- check by looking for files in library path
  5285. # which responds to the $file_magic_cmd with a given extended regex.
  5286. # If you have `file' or equivalent on your system and you're not sure
  5287. # whether `pass_all' will *always* work, you probably want this one.
  5288. case $host_os in
  5289. aix[4-9]*)
  5290. lt_cv_deplibs_check_method=pass_all
  5291. ;;
  5292. beos*)
  5293. lt_cv_deplibs_check_method=pass_all
  5294. ;;
  5295. bsdi[45]*)
  5296. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5297. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5298. lt_cv_file_magic_test_file=/shlib/libc.so
  5299. ;;
  5300. cygwin*)
  5301. # func_win32_libid is a shell function defined in ltmain.sh
  5302. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5303. lt_cv_file_magic_cmd='func_win32_libid'
  5304. ;;
  5305. mingw* | pw32*)
  5306. # Base MSYS/MinGW do not provide the 'file' command needed by
  5307. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5308. # unless we find 'file', for example because we are cross-compiling.
  5309. if ( file / ) >/dev/null 2>&1; then
  5310. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5311. lt_cv_file_magic_cmd='func_win32_libid'
  5312. else
  5313. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5314. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5315. fi
  5316. ;;
  5317. cegcc)
  5318. # use the weaker test based on 'objdump'. See mingw*.
  5319. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5320. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5321. ;;
  5322. darwin* | rhapsody*)
  5323. lt_cv_deplibs_check_method=pass_all
  5324. ;;
  5325. freebsd* | dragonfly*)
  5326. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5327. case $host_cpu in
  5328. i*86 )
  5329. # Not sure whether the presence of OpenBSD here was a mistake.
  5330. # Let's accept both of them until this is cleared up.
  5331. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5332. lt_cv_file_magic_cmd=/usr/bin/file
  5333. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5334. ;;
  5335. esac
  5336. else
  5337. lt_cv_deplibs_check_method=pass_all
  5338. fi
  5339. ;;
  5340. gnu*)
  5341. lt_cv_deplibs_check_method=pass_all
  5342. ;;
  5343. hpux10.20* | hpux11*)
  5344. lt_cv_file_magic_cmd=/usr/bin/file
  5345. case $host_cpu in
  5346. ia64*)
  5347. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5348. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5349. ;;
  5350. hppa*64*)
  5351. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5352. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5353. ;;
  5354. *)
  5355. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5356. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5357. ;;
  5358. esac
  5359. ;;
  5360. interix[3-9]*)
  5361. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5362. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5363. ;;
  5364. irix5* | irix6* | nonstopux*)
  5365. case $LD in
  5366. *-32|*"-32 ") libmagic=32-bit;;
  5367. *-n32|*"-n32 ") libmagic=N32;;
  5368. *-64|*"-64 ") libmagic=64-bit;;
  5369. *) libmagic=never-match;;
  5370. esac
  5371. lt_cv_deplibs_check_method=pass_all
  5372. ;;
  5373. # This must be Linux ELF.
  5374. linux* | k*bsd*-gnu)
  5375. lt_cv_deplibs_check_method=pass_all
  5376. ;;
  5377. netbsd*)
  5378. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5379. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5380. else
  5381. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5382. fi
  5383. ;;
  5384. newos6*)
  5385. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5386. lt_cv_file_magic_cmd=/usr/bin/file
  5387. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5388. ;;
  5389. *nto* | *qnx*)
  5390. lt_cv_deplibs_check_method=pass_all
  5391. ;;
  5392. openbsd*)
  5393. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5394. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5395. else
  5396. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5397. fi
  5398. ;;
  5399. osf3* | osf4* | osf5*)
  5400. lt_cv_deplibs_check_method=pass_all
  5401. ;;
  5402. rdos*)
  5403. lt_cv_deplibs_check_method=pass_all
  5404. ;;
  5405. solaris*)
  5406. lt_cv_deplibs_check_method=pass_all
  5407. ;;
  5408. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5409. lt_cv_deplibs_check_method=pass_all
  5410. ;;
  5411. sysv4 | sysv4.3*)
  5412. case $host_vendor in
  5413. motorola)
  5414. 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]'
  5415. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5416. ;;
  5417. ncr)
  5418. lt_cv_deplibs_check_method=pass_all
  5419. ;;
  5420. sequent)
  5421. lt_cv_file_magic_cmd='/bin/file'
  5422. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5423. ;;
  5424. sni)
  5425. lt_cv_file_magic_cmd='/bin/file'
  5426. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5427. lt_cv_file_magic_test_file=/lib/libc.so
  5428. ;;
  5429. siemens)
  5430. lt_cv_deplibs_check_method=pass_all
  5431. ;;
  5432. pc)
  5433. lt_cv_deplibs_check_method=pass_all
  5434. ;;
  5435. esac
  5436. ;;
  5437. tpf*)
  5438. lt_cv_deplibs_check_method=pass_all
  5439. ;;
  5440. esac
  5441. fi
  5442. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  5443. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5444. file_magic_cmd=$lt_cv_file_magic_cmd
  5445. deplibs_check_method=$lt_cv_deplibs_check_method
  5446. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5447. if test -n "$ac_tool_prefix"; then
  5448. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5449. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5450. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5451. $as_echo_n "checking for $ac_word... " >&6; }
  5452. if test "${ac_cv_prog_AR+set}" = set; then
  5453. $as_echo_n "(cached) " >&6
  5454. else
  5455. if test -n "$AR"; then
  5456. ac_cv_prog_AR="$AR" # Let the user override the test.
  5457. else
  5458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5459. for as_dir in $PATH
  5460. do
  5461. IFS=$as_save_IFS
  5462. test -z "$as_dir" && as_dir=.
  5463. for ac_exec_ext in '' $ac_executable_extensions; do
  5464. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5465. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5466. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5467. break 2
  5468. fi
  5469. done
  5470. done
  5471. IFS=$as_save_IFS
  5472. fi
  5473. fi
  5474. AR=$ac_cv_prog_AR
  5475. if test -n "$AR"; then
  5476. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  5477. $as_echo "$AR" >&6; }
  5478. else
  5479. { $as_echo "$as_me:$LINENO: result: no" >&5
  5480. $as_echo "no" >&6; }
  5481. fi
  5482. fi
  5483. if test -z "$ac_cv_prog_AR"; then
  5484. ac_ct_AR=$AR
  5485. # Extract the first word of "ar", so it can be a program name with args.
  5486. set dummy ar; ac_word=$2
  5487. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5488. $as_echo_n "checking for $ac_word... " >&6; }
  5489. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5490. $as_echo_n "(cached) " >&6
  5491. else
  5492. if test -n "$ac_ct_AR"; then
  5493. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5494. else
  5495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5496. for as_dir in $PATH
  5497. do
  5498. IFS=$as_save_IFS
  5499. test -z "$as_dir" && as_dir=.
  5500. for ac_exec_ext in '' $ac_executable_extensions; do
  5501. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5502. ac_cv_prog_ac_ct_AR="ar"
  5503. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5504. break 2
  5505. fi
  5506. done
  5507. done
  5508. IFS=$as_save_IFS
  5509. fi
  5510. fi
  5511. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5512. if test -n "$ac_ct_AR"; then
  5513. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5514. $as_echo "$ac_ct_AR" >&6; }
  5515. else
  5516. { $as_echo "$as_me:$LINENO: result: no" >&5
  5517. $as_echo "no" >&6; }
  5518. fi
  5519. if test "x$ac_ct_AR" = x; then
  5520. AR="false"
  5521. else
  5522. case $cross_compiling:$ac_tool_warned in
  5523. yes:)
  5524. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5525. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5526. ac_tool_warned=yes ;;
  5527. esac
  5528. AR=$ac_ct_AR
  5529. fi
  5530. else
  5531. AR="$ac_cv_prog_AR"
  5532. fi
  5533. test -z "$AR" && AR=ar
  5534. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5535. if test -n "$ac_tool_prefix"; then
  5536. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5537. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5538. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5539. $as_echo_n "checking for $ac_word... " >&6; }
  5540. if test "${ac_cv_prog_STRIP+set}" = set; then
  5541. $as_echo_n "(cached) " >&6
  5542. else
  5543. if test -n "$STRIP"; then
  5544. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5545. else
  5546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5547. for as_dir in $PATH
  5548. do
  5549. IFS=$as_save_IFS
  5550. test -z "$as_dir" && as_dir=.
  5551. for ac_exec_ext in '' $ac_executable_extensions; do
  5552. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5553. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5554. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5555. break 2
  5556. fi
  5557. done
  5558. done
  5559. IFS=$as_save_IFS
  5560. fi
  5561. fi
  5562. STRIP=$ac_cv_prog_STRIP
  5563. if test -n "$STRIP"; then
  5564. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  5565. $as_echo "$STRIP" >&6; }
  5566. else
  5567. { $as_echo "$as_me:$LINENO: result: no" >&5
  5568. $as_echo "no" >&6; }
  5569. fi
  5570. fi
  5571. if test -z "$ac_cv_prog_STRIP"; then
  5572. ac_ct_STRIP=$STRIP
  5573. # Extract the first word of "strip", so it can be a program name with args.
  5574. set dummy strip; ac_word=$2
  5575. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5576. $as_echo_n "checking for $ac_word... " >&6; }
  5577. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5578. $as_echo_n "(cached) " >&6
  5579. else
  5580. if test -n "$ac_ct_STRIP"; then
  5581. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5582. else
  5583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5584. for as_dir in $PATH
  5585. do
  5586. IFS=$as_save_IFS
  5587. test -z "$as_dir" && as_dir=.
  5588. for ac_exec_ext in '' $ac_executable_extensions; do
  5589. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5590. ac_cv_prog_ac_ct_STRIP="strip"
  5591. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5592. break 2
  5593. fi
  5594. done
  5595. done
  5596. IFS=$as_save_IFS
  5597. fi
  5598. fi
  5599. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5600. if test -n "$ac_ct_STRIP"; then
  5601. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5602. $as_echo "$ac_ct_STRIP" >&6; }
  5603. else
  5604. { $as_echo "$as_me:$LINENO: result: no" >&5
  5605. $as_echo "no" >&6; }
  5606. fi
  5607. if test "x$ac_ct_STRIP" = x; then
  5608. STRIP=":"
  5609. else
  5610. case $cross_compiling:$ac_tool_warned in
  5611. yes:)
  5612. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5613. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5614. ac_tool_warned=yes ;;
  5615. esac
  5616. STRIP=$ac_ct_STRIP
  5617. fi
  5618. else
  5619. STRIP="$ac_cv_prog_STRIP"
  5620. fi
  5621. test -z "$STRIP" && STRIP=:
  5622. if test -n "$ac_tool_prefix"; then
  5623. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5624. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5625. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5626. $as_echo_n "checking for $ac_word... " >&6; }
  5627. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5628. $as_echo_n "(cached) " >&6
  5629. else
  5630. if test -n "$RANLIB"; then
  5631. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5632. else
  5633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5634. for as_dir in $PATH
  5635. do
  5636. IFS=$as_save_IFS
  5637. test -z "$as_dir" && as_dir=.
  5638. for ac_exec_ext in '' $ac_executable_extensions; do
  5639. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5640. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5641. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5642. break 2
  5643. fi
  5644. done
  5645. done
  5646. IFS=$as_save_IFS
  5647. fi
  5648. fi
  5649. RANLIB=$ac_cv_prog_RANLIB
  5650. if test -n "$RANLIB"; then
  5651. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  5652. $as_echo "$RANLIB" >&6; }
  5653. else
  5654. { $as_echo "$as_me:$LINENO: result: no" >&5
  5655. $as_echo "no" >&6; }
  5656. fi
  5657. fi
  5658. if test -z "$ac_cv_prog_RANLIB"; then
  5659. ac_ct_RANLIB=$RANLIB
  5660. # Extract the first word of "ranlib", so it can be a program name with args.
  5661. set dummy ranlib; ac_word=$2
  5662. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5663. $as_echo_n "checking for $ac_word... " >&6; }
  5664. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5665. $as_echo_n "(cached) " >&6
  5666. else
  5667. if test -n "$ac_ct_RANLIB"; then
  5668. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5669. else
  5670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5671. for as_dir in $PATH
  5672. do
  5673. IFS=$as_save_IFS
  5674. test -z "$as_dir" && as_dir=.
  5675. for ac_exec_ext in '' $ac_executable_extensions; do
  5676. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5677. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5678. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5679. break 2
  5680. fi
  5681. done
  5682. done
  5683. IFS=$as_save_IFS
  5684. fi
  5685. fi
  5686. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5687. if test -n "$ac_ct_RANLIB"; then
  5688. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5689. $as_echo "$ac_ct_RANLIB" >&6; }
  5690. else
  5691. { $as_echo "$as_me:$LINENO: result: no" >&5
  5692. $as_echo "no" >&6; }
  5693. fi
  5694. if test "x$ac_ct_RANLIB" = x; then
  5695. RANLIB=":"
  5696. else
  5697. case $cross_compiling:$ac_tool_warned in
  5698. yes:)
  5699. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5700. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5701. ac_tool_warned=yes ;;
  5702. esac
  5703. RANLIB=$ac_ct_RANLIB
  5704. fi
  5705. else
  5706. RANLIB="$ac_cv_prog_RANLIB"
  5707. fi
  5708. test -z "$RANLIB" && RANLIB=:
  5709. # Determine commands to create old-style static archives.
  5710. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5711. old_postinstall_cmds='chmod 644 $oldlib'
  5712. old_postuninstall_cmds=
  5713. if test -n "$RANLIB"; then
  5714. case $host_os in
  5715. openbsd*)
  5716. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5717. ;;
  5718. *)
  5719. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5720. ;;
  5721. esac
  5722. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5723. fi
  5724. # If no C compiler was specified, use CC.
  5725. LTCC=${LTCC-"$CC"}
  5726. # If no C compiler flags were specified, use CFLAGS.
  5727. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5728. # Allow CC to be a program name with arguments.
  5729. compiler=$CC
  5730. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5731. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5732. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5733. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5734. $as_echo_n "(cached) " >&6
  5735. else
  5736. # These are sane defaults that work on at least a few old systems.
  5737. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5738. # Character class describing NM global symbol codes.
  5739. symcode='[BCDEGRST]'
  5740. # Regexp to match symbols that can be accessed directly from C.
  5741. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5742. # Define system-specific variables.
  5743. case $host_os in
  5744. aix*)
  5745. symcode='[BCDT]'
  5746. ;;
  5747. cygwin* | mingw* | pw32* | cegcc*)
  5748. symcode='[ABCDGISTW]'
  5749. ;;
  5750. hpux*)
  5751. if test "$host_cpu" = ia64; then
  5752. symcode='[ABCDEGRST]'
  5753. fi
  5754. ;;
  5755. irix* | nonstopux*)
  5756. symcode='[BCDEGRST]'
  5757. ;;
  5758. osf*)
  5759. symcode='[BCDEGQRST]'
  5760. ;;
  5761. solaris*)
  5762. symcode='[BDRT]'
  5763. ;;
  5764. sco3.2v5*)
  5765. symcode='[DT]'
  5766. ;;
  5767. sysv4.2uw2*)
  5768. symcode='[DT]'
  5769. ;;
  5770. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5771. symcode='[ABDT]'
  5772. ;;
  5773. sysv4)
  5774. symcode='[DFNSTU]'
  5775. ;;
  5776. esac
  5777. # If we're using GNU nm, then use its standard symbol codes.
  5778. case `$NM -V 2>&1` in
  5779. *GNU* | *'with BFD'*)
  5780. symcode='[ABCDGIRSTW]' ;;
  5781. esac
  5782. # Transform an extracted symbol line into a proper C declaration.
  5783. # Some systems (esp. on ia64) link data and code symbols differently,
  5784. # so use this general approach.
  5785. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5786. # Transform an extracted symbol line into symbol name and symbol address
  5787. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5788. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5789. # Handle CRLF in mingw tool chain
  5790. opt_cr=
  5791. case $build_os in
  5792. mingw*)
  5793. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5794. ;;
  5795. esac
  5796. # Try without a prefix underscore, then with it.
  5797. for ac_symprfx in "" "_"; do
  5798. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5799. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5800. # Write the raw and C identifiers.
  5801. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5802. # Fake it for dumpbin and say T for any non-static function
  5803. # and D for any global variable.
  5804. # Also find C++ and __fastcall symbols from MSVC++,
  5805. # which start with @ or ?.
  5806. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5807. " {last_section=section; section=\$ 3};"\
  5808. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5809. " \$ 0!~/External *\|/{next};"\
  5810. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5811. " {if(hide[section]) next};"\
  5812. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5813. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5814. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5815. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5816. " ' prfx=^$ac_symprfx"
  5817. else
  5818. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5819. fi
  5820. # Check to see that the pipe works correctly.
  5821. pipe_works=no
  5822. rm -f conftest*
  5823. cat > conftest.$ac_ext <<_LT_EOF
  5824. #ifdef __cplusplus
  5825. extern "C" {
  5826. #endif
  5827. char nm_test_var;
  5828. void nm_test_func(void);
  5829. void nm_test_func(void){}
  5830. #ifdef __cplusplus
  5831. }
  5832. #endif
  5833. int main(){nm_test_var='a';nm_test_func();return(0);}
  5834. _LT_EOF
  5835. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5836. (eval $ac_compile) 2>&5
  5837. ac_status=$?
  5838. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5839. (exit $ac_status); }; then
  5840. # Now try to grab the symbols.
  5841. nlist=conftest.nm
  5842. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5843. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5844. ac_status=$?
  5845. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5846. (exit $ac_status); } && test -s "$nlist"; then
  5847. # Try sorting and uniquifying the output.
  5848. if sort "$nlist" | uniq > "$nlist"T; then
  5849. mv -f "$nlist"T "$nlist"
  5850. else
  5851. rm -f "$nlist"T
  5852. fi
  5853. # Make sure that we snagged all the symbols we need.
  5854. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5855. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5856. cat <<_LT_EOF > conftest.$ac_ext
  5857. #ifdef __cplusplus
  5858. extern "C" {
  5859. #endif
  5860. _LT_EOF
  5861. # Now generate the symbol file.
  5862. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5863. cat <<_LT_EOF >> conftest.$ac_ext
  5864. /* The mapping between symbol names and symbols. */
  5865. const struct {
  5866. const char *name;
  5867. void *address;
  5868. }
  5869. lt__PROGRAM__LTX_preloaded_symbols[] =
  5870. {
  5871. { "@PROGRAM@", (void *) 0 },
  5872. _LT_EOF
  5873. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5874. cat <<\_LT_EOF >> conftest.$ac_ext
  5875. {0, (void *) 0}
  5876. };
  5877. /* This works around a problem in FreeBSD linker */
  5878. #ifdef FREEBSD_WORKAROUND
  5879. static const void *lt_preloaded_setup() {
  5880. return lt__PROGRAM__LTX_preloaded_symbols;
  5881. }
  5882. #endif
  5883. #ifdef __cplusplus
  5884. }
  5885. #endif
  5886. _LT_EOF
  5887. # Now try linking the two files.
  5888. mv conftest.$ac_objext conftstm.$ac_objext
  5889. lt_save_LIBS="$LIBS"
  5890. lt_save_CFLAGS="$CFLAGS"
  5891. LIBS="conftstm.$ac_objext"
  5892. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5893. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5894. (eval $ac_link) 2>&5
  5895. ac_status=$?
  5896. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5897. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5898. pipe_works=yes
  5899. fi
  5900. LIBS="$lt_save_LIBS"
  5901. CFLAGS="$lt_save_CFLAGS"
  5902. else
  5903. echo "cannot find nm_test_func in $nlist" >&5
  5904. fi
  5905. else
  5906. echo "cannot find nm_test_var in $nlist" >&5
  5907. fi
  5908. else
  5909. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5910. fi
  5911. else
  5912. echo "$progname: failed program was:" >&5
  5913. cat conftest.$ac_ext >&5
  5914. fi
  5915. rm -rf conftest* conftst*
  5916. # Do not use the global_symbol_pipe unless it works.
  5917. if test "$pipe_works" = yes; then
  5918. break
  5919. else
  5920. lt_cv_sys_global_symbol_pipe=
  5921. fi
  5922. done
  5923. fi
  5924. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5925. lt_cv_sys_global_symbol_to_cdecl=
  5926. fi
  5927. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5928. { $as_echo "$as_me:$LINENO: result: failed" >&5
  5929. $as_echo "failed" >&6; }
  5930. else
  5931. { $as_echo "$as_me:$LINENO: result: ok" >&5
  5932. $as_echo "ok" >&6; }
  5933. fi
  5934. # Check whether --enable-libtool-lock was given.
  5935. if test "${enable_libtool_lock+set}" = set; then
  5936. enableval=$enable_libtool_lock;
  5937. fi
  5938. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5939. # Some flags need to be propagated to the compiler or linker for good
  5940. # libtool support.
  5941. case $host in
  5942. ia64-*-hpux*)
  5943. # Find out which ABI we are using.
  5944. echo 'int i;' > conftest.$ac_ext
  5945. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5946. (eval $ac_compile) 2>&5
  5947. ac_status=$?
  5948. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5949. (exit $ac_status); }; then
  5950. case `/usr/bin/file conftest.$ac_objext` in
  5951. *ELF-32*)
  5952. HPUX_IA64_MODE="32"
  5953. ;;
  5954. *ELF-64*)
  5955. HPUX_IA64_MODE="64"
  5956. ;;
  5957. esac
  5958. fi
  5959. rm -rf conftest*
  5960. ;;
  5961. *-*-irix6*)
  5962. # Find out which ABI we are using.
  5963. echo '#line 6790 "configure"' > conftest.$ac_ext
  5964. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5965. (eval $ac_compile) 2>&5
  5966. ac_status=$?
  5967. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5968. (exit $ac_status); }; then
  5969. if test "$lt_cv_prog_gnu_ld" = yes; then
  5970. case `/usr/bin/file conftest.$ac_objext` in
  5971. *32-bit*)
  5972. LD="${LD-ld} -melf32bsmip"
  5973. ;;
  5974. *N32*)
  5975. LD="${LD-ld} -melf32bmipn32"
  5976. ;;
  5977. *64-bit*)
  5978. LD="${LD-ld} -melf64bmip"
  5979. ;;
  5980. esac
  5981. else
  5982. case `/usr/bin/file conftest.$ac_objext` in
  5983. *32-bit*)
  5984. LD="${LD-ld} -32"
  5985. ;;
  5986. *N32*)
  5987. LD="${LD-ld} -n32"
  5988. ;;
  5989. *64-bit*)
  5990. LD="${LD-ld} -64"
  5991. ;;
  5992. esac
  5993. fi
  5994. fi
  5995. rm -rf conftest*
  5996. ;;
  5997. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5998. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5999. # Find out which ABI we are using.
  6000. echo 'int i;' > conftest.$ac_ext
  6001. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6002. (eval $ac_compile) 2>&5
  6003. ac_status=$?
  6004. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6005. (exit $ac_status); }; then
  6006. case `/usr/bin/file conftest.o` in
  6007. *32-bit*)
  6008. case $host in
  6009. x86_64-*kfreebsd*-gnu)
  6010. LD="${LD-ld} -m elf_i386_fbsd"
  6011. ;;
  6012. x86_64-*linux*)
  6013. LD="${LD-ld} -m elf_i386"
  6014. ;;
  6015. ppc64-*linux*|powerpc64-*linux*)
  6016. LD="${LD-ld} -m elf32ppclinux"
  6017. ;;
  6018. s390x-*linux*)
  6019. LD="${LD-ld} -m elf_s390"
  6020. ;;
  6021. sparc64-*linux*)
  6022. LD="${LD-ld} -m elf32_sparc"
  6023. ;;
  6024. esac
  6025. ;;
  6026. *64-bit*)
  6027. case $host in
  6028. x86_64-*kfreebsd*-gnu)
  6029. LD="${LD-ld} -m elf_x86_64_fbsd"
  6030. ;;
  6031. x86_64-*linux*)
  6032. LD="${LD-ld} -m elf_x86_64"
  6033. ;;
  6034. ppc*-*linux*|powerpc*-*linux*)
  6035. LD="${LD-ld} -m elf64ppc"
  6036. ;;
  6037. s390*-*linux*|s390*-*tpf*)
  6038. LD="${LD-ld} -m elf64_s390"
  6039. ;;
  6040. sparc*-*linux*)
  6041. LD="${LD-ld} -m elf64_sparc"
  6042. ;;
  6043. esac
  6044. ;;
  6045. esac
  6046. fi
  6047. rm -rf conftest*
  6048. ;;
  6049. *-*-sco3.2v5*)
  6050. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6051. SAVE_CFLAGS="$CFLAGS"
  6052. CFLAGS="$CFLAGS -belf"
  6053. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  6054. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6055. if test "${lt_cv_cc_needs_belf+set}" = set; then
  6056. $as_echo_n "(cached) " >&6
  6057. else
  6058. ac_ext=c
  6059. ac_cpp='$CPP $CPPFLAGS'
  6060. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6061. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6062. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6063. cat >conftest.$ac_ext <<_ACEOF
  6064. /* confdefs.h. */
  6065. _ACEOF
  6066. cat confdefs.h >>conftest.$ac_ext
  6067. cat >>conftest.$ac_ext <<_ACEOF
  6068. /* end confdefs.h. */
  6069. int
  6070. main ()
  6071. {
  6072. ;
  6073. return 0;
  6074. }
  6075. _ACEOF
  6076. rm -f conftest.$ac_objext conftest$ac_exeext
  6077. if { (ac_try="$ac_link"
  6078. case "(($ac_try" in
  6079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6080. *) ac_try_echo=$ac_try;;
  6081. esac
  6082. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6083. $as_echo "$ac_try_echo") >&5
  6084. (eval "$ac_link") 2>conftest.er1
  6085. ac_status=$?
  6086. grep -v '^ *+' conftest.er1 >conftest.err
  6087. rm -f conftest.er1
  6088. cat conftest.err >&5
  6089. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6090. (exit $ac_status); } && {
  6091. test -z "$ac_c_werror_flag" ||
  6092. test ! -s conftest.err
  6093. } && test -s conftest$ac_exeext && {
  6094. test "$cross_compiling" = yes ||
  6095. $as_test_x conftest$ac_exeext
  6096. }; then
  6097. lt_cv_cc_needs_belf=yes
  6098. else
  6099. $as_echo "$as_me: failed program was:" >&5
  6100. sed 's/^/| /' conftest.$ac_ext >&5
  6101. lt_cv_cc_needs_belf=no
  6102. fi
  6103. rm -rf conftest.dSYM
  6104. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6105. conftest$ac_exeext conftest.$ac_ext
  6106. ac_ext=c
  6107. ac_cpp='$CPP $CPPFLAGS'
  6108. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6109. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6110. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6111. fi
  6112. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  6113. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6114. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6115. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6116. CFLAGS="$SAVE_CFLAGS"
  6117. fi
  6118. ;;
  6119. sparc*-*solaris*)
  6120. # Find out which ABI we are using.
  6121. echo 'int i;' > conftest.$ac_ext
  6122. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6123. (eval $ac_compile) 2>&5
  6124. ac_status=$?
  6125. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6126. (exit $ac_status); }; then
  6127. case `/usr/bin/file conftest.o` in
  6128. *64-bit*)
  6129. case $lt_cv_prog_gnu_ld in
  6130. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6131. *)
  6132. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6133. LD="${LD-ld} -64"
  6134. fi
  6135. ;;
  6136. esac
  6137. ;;
  6138. esac
  6139. fi
  6140. rm -rf conftest*
  6141. ;;
  6142. esac
  6143. need_locks="$enable_libtool_lock"
  6144. case $host_os in
  6145. rhapsody* | darwin*)
  6146. if test -n "$ac_tool_prefix"; then
  6147. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6148. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6149. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6150. $as_echo_n "checking for $ac_word... " >&6; }
  6151. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  6152. $as_echo_n "(cached) " >&6
  6153. else
  6154. if test -n "$DSYMUTIL"; then
  6155. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6156. else
  6157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6158. for as_dir in $PATH
  6159. do
  6160. IFS=$as_save_IFS
  6161. test -z "$as_dir" && as_dir=.
  6162. for ac_exec_ext in '' $ac_executable_extensions; do
  6163. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6164. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6165. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6166. break 2
  6167. fi
  6168. done
  6169. done
  6170. IFS=$as_save_IFS
  6171. fi
  6172. fi
  6173. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6174. if test -n "$DSYMUTIL"; then
  6175. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  6176. $as_echo "$DSYMUTIL" >&6; }
  6177. else
  6178. { $as_echo "$as_me:$LINENO: result: no" >&5
  6179. $as_echo "no" >&6; }
  6180. fi
  6181. fi
  6182. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6183. ac_ct_DSYMUTIL=$DSYMUTIL
  6184. # Extract the first word of "dsymutil", so it can be a program name with args.
  6185. set dummy dsymutil; ac_word=$2
  6186. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6187. $as_echo_n "checking for $ac_word... " >&6; }
  6188. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  6189. $as_echo_n "(cached) " >&6
  6190. else
  6191. if test -n "$ac_ct_DSYMUTIL"; then
  6192. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6193. else
  6194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6195. for as_dir in $PATH
  6196. do
  6197. IFS=$as_save_IFS
  6198. test -z "$as_dir" && as_dir=.
  6199. for ac_exec_ext in '' $ac_executable_extensions; do
  6200. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6201. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6202. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6203. break 2
  6204. fi
  6205. done
  6206. done
  6207. IFS=$as_save_IFS
  6208. fi
  6209. fi
  6210. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6211. if test -n "$ac_ct_DSYMUTIL"; then
  6212. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  6213. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6214. else
  6215. { $as_echo "$as_me:$LINENO: result: no" >&5
  6216. $as_echo "no" >&6; }
  6217. fi
  6218. if test "x$ac_ct_DSYMUTIL" = x; then
  6219. DSYMUTIL=":"
  6220. else
  6221. case $cross_compiling:$ac_tool_warned in
  6222. yes:)
  6223. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6224. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6225. ac_tool_warned=yes ;;
  6226. esac
  6227. DSYMUTIL=$ac_ct_DSYMUTIL
  6228. fi
  6229. else
  6230. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6231. fi
  6232. if test -n "$ac_tool_prefix"; then
  6233. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6234. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6235. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6236. $as_echo_n "checking for $ac_word... " >&6; }
  6237. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  6238. $as_echo_n "(cached) " >&6
  6239. else
  6240. if test -n "$NMEDIT"; then
  6241. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6242. else
  6243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6244. for as_dir in $PATH
  6245. do
  6246. IFS=$as_save_IFS
  6247. test -z "$as_dir" && as_dir=.
  6248. for ac_exec_ext in '' $ac_executable_extensions; do
  6249. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6250. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6251. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6252. break 2
  6253. fi
  6254. done
  6255. done
  6256. IFS=$as_save_IFS
  6257. fi
  6258. fi
  6259. NMEDIT=$ac_cv_prog_NMEDIT
  6260. if test -n "$NMEDIT"; then
  6261. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  6262. $as_echo "$NMEDIT" >&6; }
  6263. else
  6264. { $as_echo "$as_me:$LINENO: result: no" >&5
  6265. $as_echo "no" >&6; }
  6266. fi
  6267. fi
  6268. if test -z "$ac_cv_prog_NMEDIT"; then
  6269. ac_ct_NMEDIT=$NMEDIT
  6270. # Extract the first word of "nmedit", so it can be a program name with args.
  6271. set dummy nmedit; ac_word=$2
  6272. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6273. $as_echo_n "checking for $ac_word... " >&6; }
  6274. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  6275. $as_echo_n "(cached) " >&6
  6276. else
  6277. if test -n "$ac_ct_NMEDIT"; then
  6278. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6279. else
  6280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6281. for as_dir in $PATH
  6282. do
  6283. IFS=$as_save_IFS
  6284. test -z "$as_dir" && as_dir=.
  6285. for ac_exec_ext in '' $ac_executable_extensions; do
  6286. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6287. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6288. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6289. break 2
  6290. fi
  6291. done
  6292. done
  6293. IFS=$as_save_IFS
  6294. fi
  6295. fi
  6296. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6297. if test -n "$ac_ct_NMEDIT"; then
  6298. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  6299. $as_echo "$ac_ct_NMEDIT" >&6; }
  6300. else
  6301. { $as_echo "$as_me:$LINENO: result: no" >&5
  6302. $as_echo "no" >&6; }
  6303. fi
  6304. if test "x$ac_ct_NMEDIT" = x; then
  6305. NMEDIT=":"
  6306. else
  6307. case $cross_compiling:$ac_tool_warned in
  6308. yes:)
  6309. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6310. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6311. ac_tool_warned=yes ;;
  6312. esac
  6313. NMEDIT=$ac_ct_NMEDIT
  6314. fi
  6315. else
  6316. NMEDIT="$ac_cv_prog_NMEDIT"
  6317. fi
  6318. if test -n "$ac_tool_prefix"; then
  6319. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6320. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6321. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6322. $as_echo_n "checking for $ac_word... " >&6; }
  6323. if test "${ac_cv_prog_LIPO+set}" = set; then
  6324. $as_echo_n "(cached) " >&6
  6325. else
  6326. if test -n "$LIPO"; then
  6327. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6328. else
  6329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6330. for as_dir in $PATH
  6331. do
  6332. IFS=$as_save_IFS
  6333. test -z "$as_dir" && as_dir=.
  6334. for ac_exec_ext in '' $ac_executable_extensions; do
  6335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6336. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6337. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6338. break 2
  6339. fi
  6340. done
  6341. done
  6342. IFS=$as_save_IFS
  6343. fi
  6344. fi
  6345. LIPO=$ac_cv_prog_LIPO
  6346. if test -n "$LIPO"; then
  6347. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  6348. $as_echo "$LIPO" >&6; }
  6349. else
  6350. { $as_echo "$as_me:$LINENO: result: no" >&5
  6351. $as_echo "no" >&6; }
  6352. fi
  6353. fi
  6354. if test -z "$ac_cv_prog_LIPO"; then
  6355. ac_ct_LIPO=$LIPO
  6356. # Extract the first word of "lipo", so it can be a program name with args.
  6357. set dummy lipo; ac_word=$2
  6358. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6359. $as_echo_n "checking for $ac_word... " >&6; }
  6360. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  6361. $as_echo_n "(cached) " >&6
  6362. else
  6363. if test -n "$ac_ct_LIPO"; then
  6364. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6365. else
  6366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6367. for as_dir in $PATH
  6368. do
  6369. IFS=$as_save_IFS
  6370. test -z "$as_dir" && as_dir=.
  6371. for ac_exec_ext in '' $ac_executable_extensions; do
  6372. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6373. ac_cv_prog_ac_ct_LIPO="lipo"
  6374. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6375. break 2
  6376. fi
  6377. done
  6378. done
  6379. IFS=$as_save_IFS
  6380. fi
  6381. fi
  6382. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6383. if test -n "$ac_ct_LIPO"; then
  6384. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  6385. $as_echo "$ac_ct_LIPO" >&6; }
  6386. else
  6387. { $as_echo "$as_me:$LINENO: result: no" >&5
  6388. $as_echo "no" >&6; }
  6389. fi
  6390. if test "x$ac_ct_LIPO" = x; then
  6391. LIPO=":"
  6392. else
  6393. case $cross_compiling:$ac_tool_warned in
  6394. yes:)
  6395. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6396. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6397. ac_tool_warned=yes ;;
  6398. esac
  6399. LIPO=$ac_ct_LIPO
  6400. fi
  6401. else
  6402. LIPO="$ac_cv_prog_LIPO"
  6403. fi
  6404. if test -n "$ac_tool_prefix"; then
  6405. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6406. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6407. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6408. $as_echo_n "checking for $ac_word... " >&6; }
  6409. if test "${ac_cv_prog_OTOOL+set}" = set; then
  6410. $as_echo_n "(cached) " >&6
  6411. else
  6412. if test -n "$OTOOL"; then
  6413. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6414. else
  6415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6416. for as_dir in $PATH
  6417. do
  6418. IFS=$as_save_IFS
  6419. test -z "$as_dir" && as_dir=.
  6420. for ac_exec_ext in '' $ac_executable_extensions; do
  6421. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6422. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6423. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6424. break 2
  6425. fi
  6426. done
  6427. done
  6428. IFS=$as_save_IFS
  6429. fi
  6430. fi
  6431. OTOOL=$ac_cv_prog_OTOOL
  6432. if test -n "$OTOOL"; then
  6433. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  6434. $as_echo "$OTOOL" >&6; }
  6435. else
  6436. { $as_echo "$as_me:$LINENO: result: no" >&5
  6437. $as_echo "no" >&6; }
  6438. fi
  6439. fi
  6440. if test -z "$ac_cv_prog_OTOOL"; then
  6441. ac_ct_OTOOL=$OTOOL
  6442. # Extract the first word of "otool", so it can be a program name with args.
  6443. set dummy otool; ac_word=$2
  6444. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6445. $as_echo_n "checking for $ac_word... " >&6; }
  6446. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  6447. $as_echo_n "(cached) " >&6
  6448. else
  6449. if test -n "$ac_ct_OTOOL"; then
  6450. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6451. else
  6452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6453. for as_dir in $PATH
  6454. do
  6455. IFS=$as_save_IFS
  6456. test -z "$as_dir" && as_dir=.
  6457. for ac_exec_ext in '' $ac_executable_extensions; do
  6458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6459. ac_cv_prog_ac_ct_OTOOL="otool"
  6460. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6461. break 2
  6462. fi
  6463. done
  6464. done
  6465. IFS=$as_save_IFS
  6466. fi
  6467. fi
  6468. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6469. if test -n "$ac_ct_OTOOL"; then
  6470. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  6471. $as_echo "$ac_ct_OTOOL" >&6; }
  6472. else
  6473. { $as_echo "$as_me:$LINENO: result: no" >&5
  6474. $as_echo "no" >&6; }
  6475. fi
  6476. if test "x$ac_ct_OTOOL" = x; then
  6477. OTOOL=":"
  6478. else
  6479. case $cross_compiling:$ac_tool_warned in
  6480. yes:)
  6481. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6482. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6483. ac_tool_warned=yes ;;
  6484. esac
  6485. OTOOL=$ac_ct_OTOOL
  6486. fi
  6487. else
  6488. OTOOL="$ac_cv_prog_OTOOL"
  6489. fi
  6490. if test -n "$ac_tool_prefix"; then
  6491. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6492. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6493. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6494. $as_echo_n "checking for $ac_word... " >&6; }
  6495. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  6496. $as_echo_n "(cached) " >&6
  6497. else
  6498. if test -n "$OTOOL64"; then
  6499. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6500. else
  6501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6502. for as_dir in $PATH
  6503. do
  6504. IFS=$as_save_IFS
  6505. test -z "$as_dir" && as_dir=.
  6506. for ac_exec_ext in '' $ac_executable_extensions; do
  6507. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6508. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6509. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6510. break 2
  6511. fi
  6512. done
  6513. done
  6514. IFS=$as_save_IFS
  6515. fi
  6516. fi
  6517. OTOOL64=$ac_cv_prog_OTOOL64
  6518. if test -n "$OTOOL64"; then
  6519. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  6520. $as_echo "$OTOOL64" >&6; }
  6521. else
  6522. { $as_echo "$as_me:$LINENO: result: no" >&5
  6523. $as_echo "no" >&6; }
  6524. fi
  6525. fi
  6526. if test -z "$ac_cv_prog_OTOOL64"; then
  6527. ac_ct_OTOOL64=$OTOOL64
  6528. # Extract the first word of "otool64", so it can be a program name with args.
  6529. set dummy otool64; ac_word=$2
  6530. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6531. $as_echo_n "checking for $ac_word... " >&6; }
  6532. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  6533. $as_echo_n "(cached) " >&6
  6534. else
  6535. if test -n "$ac_ct_OTOOL64"; then
  6536. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6537. else
  6538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6539. for as_dir in $PATH
  6540. do
  6541. IFS=$as_save_IFS
  6542. test -z "$as_dir" && as_dir=.
  6543. for ac_exec_ext in '' $ac_executable_extensions; do
  6544. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6545. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6546. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6547. break 2
  6548. fi
  6549. done
  6550. done
  6551. IFS=$as_save_IFS
  6552. fi
  6553. fi
  6554. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6555. if test -n "$ac_ct_OTOOL64"; then
  6556. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  6557. $as_echo "$ac_ct_OTOOL64" >&6; }
  6558. else
  6559. { $as_echo "$as_me:$LINENO: result: no" >&5
  6560. $as_echo "no" >&6; }
  6561. fi
  6562. if test "x$ac_ct_OTOOL64" = x; then
  6563. OTOOL64=":"
  6564. else
  6565. case $cross_compiling:$ac_tool_warned in
  6566. yes:)
  6567. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6568. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6569. ac_tool_warned=yes ;;
  6570. esac
  6571. OTOOL64=$ac_ct_OTOOL64
  6572. fi
  6573. else
  6574. OTOOL64="$ac_cv_prog_OTOOL64"
  6575. fi
  6576. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  6577. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6578. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  6579. $as_echo_n "(cached) " >&6
  6580. else
  6581. lt_cv_apple_cc_single_mod=no
  6582. if test -z "${LT_MULTI_MODULE}"; then
  6583. # By default we will add the -single_module flag. You can override
  6584. # by either setting the environment variable LT_MULTI_MODULE
  6585. # non-empty at configure time, or by adding -multi_module to the
  6586. # link flags.
  6587. rm -rf libconftest.dylib*
  6588. echo "int foo(void){return 1;}" > conftest.c
  6589. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6590. -dynamiclib -Wl,-single_module conftest.c" >&5
  6591. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6592. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6593. _lt_result=$?
  6594. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6595. lt_cv_apple_cc_single_mod=yes
  6596. else
  6597. cat conftest.err >&5
  6598. fi
  6599. rm -rf libconftest.dylib*
  6600. rm -f conftest.*
  6601. fi
  6602. fi
  6603. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  6604. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6605. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  6606. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6607. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  6608. $as_echo_n "(cached) " >&6
  6609. else
  6610. lt_cv_ld_exported_symbols_list=no
  6611. save_LDFLAGS=$LDFLAGS
  6612. echo "_main" > conftest.sym
  6613. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6614. cat >conftest.$ac_ext <<_ACEOF
  6615. /* confdefs.h. */
  6616. _ACEOF
  6617. cat confdefs.h >>conftest.$ac_ext
  6618. cat >>conftest.$ac_ext <<_ACEOF
  6619. /* end confdefs.h. */
  6620. int
  6621. main ()
  6622. {
  6623. ;
  6624. return 0;
  6625. }
  6626. _ACEOF
  6627. rm -f conftest.$ac_objext conftest$ac_exeext
  6628. if { (ac_try="$ac_link"
  6629. case "(($ac_try" in
  6630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6631. *) ac_try_echo=$ac_try;;
  6632. esac
  6633. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6634. $as_echo "$ac_try_echo") >&5
  6635. (eval "$ac_link") 2>conftest.er1
  6636. ac_status=$?
  6637. grep -v '^ *+' conftest.er1 >conftest.err
  6638. rm -f conftest.er1
  6639. cat conftest.err >&5
  6640. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6641. (exit $ac_status); } && {
  6642. test -z "$ac_c_werror_flag" ||
  6643. test ! -s conftest.err
  6644. } && test -s conftest$ac_exeext && {
  6645. test "$cross_compiling" = yes ||
  6646. $as_test_x conftest$ac_exeext
  6647. }; then
  6648. lt_cv_ld_exported_symbols_list=yes
  6649. else
  6650. $as_echo "$as_me: failed program was:" >&5
  6651. sed 's/^/| /' conftest.$ac_ext >&5
  6652. lt_cv_ld_exported_symbols_list=no
  6653. fi
  6654. rm -rf conftest.dSYM
  6655. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6656. conftest$ac_exeext conftest.$ac_ext
  6657. LDFLAGS="$save_LDFLAGS"
  6658. fi
  6659. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6660. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6661. case $host_os in
  6662. rhapsody* | darwin1.[012])
  6663. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6664. darwin1.*)
  6665. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6666. darwin*) # darwin 5.x on
  6667. # if running on 10.5 or later, the deployment target defaults
  6668. # to the OS version, if on x86, and 10.4, the deployment
  6669. # target defaults to 10.4. Don't you love it?
  6670. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6671. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6672. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6673. 10.[012]*)
  6674. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6675. 10.*)
  6676. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6677. esac
  6678. ;;
  6679. esac
  6680. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6681. _lt_dar_single_mod='$single_module'
  6682. fi
  6683. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6684. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6685. else
  6686. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6687. fi
  6688. if test "$DSYMUTIL" != ":"; then
  6689. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6690. else
  6691. _lt_dsymutil=
  6692. fi
  6693. ;;
  6694. esac
  6695. ac_ext=c
  6696. ac_cpp='$CPP $CPPFLAGS'
  6697. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6698. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6699. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6700. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6701. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6702. # On Suns, sometimes $CPP names a directory.
  6703. if test -n "$CPP" && test -d "$CPP"; then
  6704. CPP=
  6705. fi
  6706. if test -z "$CPP"; then
  6707. if test "${ac_cv_prog_CPP+set}" = set; then
  6708. $as_echo_n "(cached) " >&6
  6709. else
  6710. # Double quotes because CPP needs to be expanded
  6711. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6712. do
  6713. ac_preproc_ok=false
  6714. for ac_c_preproc_warn_flag in '' yes
  6715. do
  6716. # Use a header file that comes with gcc, so configuring glibc
  6717. # with a fresh cross-compiler works.
  6718. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6719. # <limits.h> exists even on freestanding compilers.
  6720. # On the NeXT, cc -E runs the code through the compiler's parser,
  6721. # not just through cpp. "Syntax error" is here to catch this case.
  6722. cat >conftest.$ac_ext <<_ACEOF
  6723. /* confdefs.h. */
  6724. _ACEOF
  6725. cat confdefs.h >>conftest.$ac_ext
  6726. cat >>conftest.$ac_ext <<_ACEOF
  6727. /* end confdefs.h. */
  6728. #ifdef __STDC__
  6729. # include <limits.h>
  6730. #else
  6731. # include <assert.h>
  6732. #endif
  6733. Syntax error
  6734. _ACEOF
  6735. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6736. case "(($ac_try" in
  6737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6738. *) ac_try_echo=$ac_try;;
  6739. esac
  6740. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6741. $as_echo "$ac_try_echo") >&5
  6742. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6743. ac_status=$?
  6744. grep -v '^ *+' conftest.er1 >conftest.err
  6745. rm -f conftest.er1
  6746. cat conftest.err >&5
  6747. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6748. (exit $ac_status); } >/dev/null && {
  6749. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6750. test ! -s conftest.err
  6751. }; then
  6752. :
  6753. else
  6754. $as_echo "$as_me: failed program was:" >&5
  6755. sed 's/^/| /' conftest.$ac_ext >&5
  6756. # Broken: fails on valid input.
  6757. continue
  6758. fi
  6759. rm -f conftest.err conftest.$ac_ext
  6760. # OK, works on sane cases. Now check whether nonexistent headers
  6761. # can be detected and how.
  6762. cat >conftest.$ac_ext <<_ACEOF
  6763. /* confdefs.h. */
  6764. _ACEOF
  6765. cat confdefs.h >>conftest.$ac_ext
  6766. cat >>conftest.$ac_ext <<_ACEOF
  6767. /* end confdefs.h. */
  6768. #include <ac_nonexistent.h>
  6769. _ACEOF
  6770. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6771. case "(($ac_try" in
  6772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6773. *) ac_try_echo=$ac_try;;
  6774. esac
  6775. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6776. $as_echo "$ac_try_echo") >&5
  6777. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6778. ac_status=$?
  6779. grep -v '^ *+' conftest.er1 >conftest.err
  6780. rm -f conftest.er1
  6781. cat conftest.err >&5
  6782. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6783. (exit $ac_status); } >/dev/null && {
  6784. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6785. test ! -s conftest.err
  6786. }; then
  6787. # Broken: success on invalid input.
  6788. continue
  6789. else
  6790. $as_echo "$as_me: failed program was:" >&5
  6791. sed 's/^/| /' conftest.$ac_ext >&5
  6792. # Passes both tests.
  6793. ac_preproc_ok=:
  6794. break
  6795. fi
  6796. rm -f conftest.err conftest.$ac_ext
  6797. done
  6798. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6799. rm -f conftest.err conftest.$ac_ext
  6800. if $ac_preproc_ok; then
  6801. break
  6802. fi
  6803. done
  6804. ac_cv_prog_CPP=$CPP
  6805. fi
  6806. CPP=$ac_cv_prog_CPP
  6807. else
  6808. ac_cv_prog_CPP=$CPP
  6809. fi
  6810. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  6811. $as_echo "$CPP" >&6; }
  6812. ac_preproc_ok=false
  6813. for ac_c_preproc_warn_flag in '' yes
  6814. do
  6815. # Use a header file that comes with gcc, so configuring glibc
  6816. # with a fresh cross-compiler works.
  6817. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6818. # <limits.h> exists even on freestanding compilers.
  6819. # On the NeXT, cc -E runs the code through the compiler's parser,
  6820. # not just through cpp. "Syntax error" is here to catch this case.
  6821. cat >conftest.$ac_ext <<_ACEOF
  6822. /* confdefs.h. */
  6823. _ACEOF
  6824. cat confdefs.h >>conftest.$ac_ext
  6825. cat >>conftest.$ac_ext <<_ACEOF
  6826. /* end confdefs.h. */
  6827. #ifdef __STDC__
  6828. # include <limits.h>
  6829. #else
  6830. # include <assert.h>
  6831. #endif
  6832. Syntax error
  6833. _ACEOF
  6834. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6835. case "(($ac_try" in
  6836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6837. *) ac_try_echo=$ac_try;;
  6838. esac
  6839. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6840. $as_echo "$ac_try_echo") >&5
  6841. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6842. ac_status=$?
  6843. grep -v '^ *+' conftest.er1 >conftest.err
  6844. rm -f conftest.er1
  6845. cat conftest.err >&5
  6846. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6847. (exit $ac_status); } >/dev/null && {
  6848. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6849. test ! -s conftest.err
  6850. }; then
  6851. :
  6852. else
  6853. $as_echo "$as_me: failed program was:" >&5
  6854. sed 's/^/| /' conftest.$ac_ext >&5
  6855. # Broken: fails on valid input.
  6856. continue
  6857. fi
  6858. rm -f conftest.err conftest.$ac_ext
  6859. # OK, works on sane cases. Now check whether nonexistent headers
  6860. # can be detected and how.
  6861. cat >conftest.$ac_ext <<_ACEOF
  6862. /* confdefs.h. */
  6863. _ACEOF
  6864. cat confdefs.h >>conftest.$ac_ext
  6865. cat >>conftest.$ac_ext <<_ACEOF
  6866. /* end confdefs.h. */
  6867. #include <ac_nonexistent.h>
  6868. _ACEOF
  6869. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6870. case "(($ac_try" in
  6871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6872. *) ac_try_echo=$ac_try;;
  6873. esac
  6874. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6875. $as_echo "$ac_try_echo") >&5
  6876. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6877. ac_status=$?
  6878. grep -v '^ *+' conftest.er1 >conftest.err
  6879. rm -f conftest.er1
  6880. cat conftest.err >&5
  6881. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6882. (exit $ac_status); } >/dev/null && {
  6883. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6884. test ! -s conftest.err
  6885. }; then
  6886. # Broken: success on invalid input.
  6887. continue
  6888. else
  6889. $as_echo "$as_me: failed program was:" >&5
  6890. sed 's/^/| /' conftest.$ac_ext >&5
  6891. # Passes both tests.
  6892. ac_preproc_ok=:
  6893. break
  6894. fi
  6895. rm -f conftest.err conftest.$ac_ext
  6896. done
  6897. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6898. rm -f conftest.err conftest.$ac_ext
  6899. if $ac_preproc_ok; then
  6900. :
  6901. else
  6902. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6903. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6904. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6905. See \`config.log' for more details." >&5
  6906. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6907. See \`config.log' for more details." >&2;}
  6908. { (exit 1); exit 1; }; }; }
  6909. fi
  6910. ac_ext=c
  6911. ac_cpp='$CPP $CPPFLAGS'
  6912. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6913. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6914. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6915. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6916. $as_echo_n "checking for ANSI C header files... " >&6; }
  6917. if test "${ac_cv_header_stdc+set}" = set; then
  6918. $as_echo_n "(cached) " >&6
  6919. else
  6920. cat >conftest.$ac_ext <<_ACEOF
  6921. /* confdefs.h. */
  6922. _ACEOF
  6923. cat confdefs.h >>conftest.$ac_ext
  6924. cat >>conftest.$ac_ext <<_ACEOF
  6925. /* end confdefs.h. */
  6926. #include <stdlib.h>
  6927. #include <stdarg.h>
  6928. #include <string.h>
  6929. #include <float.h>
  6930. int
  6931. main ()
  6932. {
  6933. ;
  6934. return 0;
  6935. }
  6936. _ACEOF
  6937. rm -f conftest.$ac_objext
  6938. if { (ac_try="$ac_compile"
  6939. case "(($ac_try" in
  6940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6941. *) ac_try_echo=$ac_try;;
  6942. esac
  6943. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6944. $as_echo "$ac_try_echo") >&5
  6945. (eval "$ac_compile") 2>conftest.er1
  6946. ac_status=$?
  6947. grep -v '^ *+' conftest.er1 >conftest.err
  6948. rm -f conftest.er1
  6949. cat conftest.err >&5
  6950. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6951. (exit $ac_status); } && {
  6952. test -z "$ac_c_werror_flag" ||
  6953. test ! -s conftest.err
  6954. } && test -s conftest.$ac_objext; then
  6955. ac_cv_header_stdc=yes
  6956. else
  6957. $as_echo "$as_me: failed program was:" >&5
  6958. sed 's/^/| /' conftest.$ac_ext >&5
  6959. ac_cv_header_stdc=no
  6960. fi
  6961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6962. if test $ac_cv_header_stdc = yes; then
  6963. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6964. cat >conftest.$ac_ext <<_ACEOF
  6965. /* confdefs.h. */
  6966. _ACEOF
  6967. cat confdefs.h >>conftest.$ac_ext
  6968. cat >>conftest.$ac_ext <<_ACEOF
  6969. /* end confdefs.h. */
  6970. #include <string.h>
  6971. _ACEOF
  6972. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6973. $EGREP "memchr" >/dev/null 2>&1; then
  6974. :
  6975. else
  6976. ac_cv_header_stdc=no
  6977. fi
  6978. rm -f conftest*
  6979. fi
  6980. if test $ac_cv_header_stdc = yes; then
  6981. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6982. cat >conftest.$ac_ext <<_ACEOF
  6983. /* confdefs.h. */
  6984. _ACEOF
  6985. cat confdefs.h >>conftest.$ac_ext
  6986. cat >>conftest.$ac_ext <<_ACEOF
  6987. /* end confdefs.h. */
  6988. #include <stdlib.h>
  6989. _ACEOF
  6990. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6991. $EGREP "free" >/dev/null 2>&1; then
  6992. :
  6993. else
  6994. ac_cv_header_stdc=no
  6995. fi
  6996. rm -f conftest*
  6997. fi
  6998. if test $ac_cv_header_stdc = yes; then
  6999. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7000. if test "$cross_compiling" = yes; then
  7001. :
  7002. else
  7003. cat >conftest.$ac_ext <<_ACEOF
  7004. /* confdefs.h. */
  7005. _ACEOF
  7006. cat confdefs.h >>conftest.$ac_ext
  7007. cat >>conftest.$ac_ext <<_ACEOF
  7008. /* end confdefs.h. */
  7009. #include <ctype.h>
  7010. #include <stdlib.h>
  7011. #if ((' ' & 0x0FF) == 0x020)
  7012. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7013. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7014. #else
  7015. # define ISLOWER(c) \
  7016. (('a' <= (c) && (c) <= 'i') \
  7017. || ('j' <= (c) && (c) <= 'r') \
  7018. || ('s' <= (c) && (c) <= 'z'))
  7019. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7020. #endif
  7021. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7022. int
  7023. main ()
  7024. {
  7025. int i;
  7026. for (i = 0; i < 256; i++)
  7027. if (XOR (islower (i), ISLOWER (i))
  7028. || toupper (i) != TOUPPER (i))
  7029. return 2;
  7030. return 0;
  7031. }
  7032. _ACEOF
  7033. rm -f conftest$ac_exeext
  7034. if { (ac_try="$ac_link"
  7035. case "(($ac_try" in
  7036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7037. *) ac_try_echo=$ac_try;;
  7038. esac
  7039. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7040. $as_echo "$ac_try_echo") >&5
  7041. (eval "$ac_link") 2>&5
  7042. ac_status=$?
  7043. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7044. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7045. { (case "(($ac_try" in
  7046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7047. *) ac_try_echo=$ac_try;;
  7048. esac
  7049. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7050. $as_echo "$ac_try_echo") >&5
  7051. (eval "$ac_try") 2>&5
  7052. ac_status=$?
  7053. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7054. (exit $ac_status); }; }; then
  7055. :
  7056. else
  7057. $as_echo "$as_me: program exited with status $ac_status" >&5
  7058. $as_echo "$as_me: failed program was:" >&5
  7059. sed 's/^/| /' conftest.$ac_ext >&5
  7060. ( exit $ac_status )
  7061. ac_cv_header_stdc=no
  7062. fi
  7063. rm -rf conftest.dSYM
  7064. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7065. fi
  7066. fi
  7067. fi
  7068. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7069. $as_echo "$ac_cv_header_stdc" >&6; }
  7070. if test $ac_cv_header_stdc = yes; then
  7071. cat >>confdefs.h <<\_ACEOF
  7072. #define STDC_HEADERS 1
  7073. _ACEOF
  7074. fi
  7075. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7076. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7077. inttypes.h stdint.h unistd.h
  7078. do
  7079. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7080. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7081. $as_echo_n "checking for $ac_header... " >&6; }
  7082. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7083. $as_echo_n "(cached) " >&6
  7084. else
  7085. cat >conftest.$ac_ext <<_ACEOF
  7086. /* confdefs.h. */
  7087. _ACEOF
  7088. cat confdefs.h >>conftest.$ac_ext
  7089. cat >>conftest.$ac_ext <<_ACEOF
  7090. /* end confdefs.h. */
  7091. $ac_includes_default
  7092. #include <$ac_header>
  7093. _ACEOF
  7094. rm -f conftest.$ac_objext
  7095. if { (ac_try="$ac_compile"
  7096. case "(($ac_try" in
  7097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7098. *) ac_try_echo=$ac_try;;
  7099. esac
  7100. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7101. $as_echo "$ac_try_echo") >&5
  7102. (eval "$ac_compile") 2>conftest.er1
  7103. ac_status=$?
  7104. grep -v '^ *+' conftest.er1 >conftest.err
  7105. rm -f conftest.er1
  7106. cat conftest.err >&5
  7107. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7108. (exit $ac_status); } && {
  7109. test -z "$ac_c_werror_flag" ||
  7110. test ! -s conftest.err
  7111. } && test -s conftest.$ac_objext; then
  7112. eval "$as_ac_Header=yes"
  7113. else
  7114. $as_echo "$as_me: failed program was:" >&5
  7115. sed 's/^/| /' conftest.$ac_ext >&5
  7116. eval "$as_ac_Header=no"
  7117. fi
  7118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7119. fi
  7120. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7121. $as_echo "$as_val"'`
  7122. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7123. $as_echo "$ac_res" >&6; }
  7124. as_val=`eval 'as_val=${'$as_ac_Header'}
  7125. $as_echo "$as_val"'`
  7126. if test "x$as_val" = x""yes; then
  7127. cat >>confdefs.h <<_ACEOF
  7128. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7129. _ACEOF
  7130. fi
  7131. done
  7132. for ac_header in dlfcn.h
  7133. do
  7134. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7135. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7136. $as_echo_n "checking for $ac_header... " >&6; }
  7137. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7138. $as_echo_n "(cached) " >&6
  7139. else
  7140. cat >conftest.$ac_ext <<_ACEOF
  7141. /* confdefs.h. */
  7142. _ACEOF
  7143. cat confdefs.h >>conftest.$ac_ext
  7144. cat >>conftest.$ac_ext <<_ACEOF
  7145. /* end confdefs.h. */
  7146. $ac_includes_default
  7147. #include <$ac_header>
  7148. _ACEOF
  7149. rm -f conftest.$ac_objext
  7150. if { (ac_try="$ac_compile"
  7151. case "(($ac_try" in
  7152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7153. *) ac_try_echo=$ac_try;;
  7154. esac
  7155. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7156. $as_echo "$ac_try_echo") >&5
  7157. (eval "$ac_compile") 2>conftest.er1
  7158. ac_status=$?
  7159. grep -v '^ *+' conftest.er1 >conftest.err
  7160. rm -f conftest.er1
  7161. cat conftest.err >&5
  7162. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7163. (exit $ac_status); } && {
  7164. test -z "$ac_c_werror_flag" ||
  7165. test ! -s conftest.err
  7166. } && test -s conftest.$ac_objext; then
  7167. eval "$as_ac_Header=yes"
  7168. else
  7169. $as_echo "$as_me: failed program was:" >&5
  7170. sed 's/^/| /' conftest.$ac_ext >&5
  7171. eval "$as_ac_Header=no"
  7172. fi
  7173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7174. fi
  7175. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7176. $as_echo "$as_val"'`
  7177. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7178. $as_echo "$ac_res" >&6; }
  7179. as_val=`eval 'as_val=${'$as_ac_Header'}
  7180. $as_echo "$as_val"'`
  7181. if test "x$as_val" = x""yes; then
  7182. cat >>confdefs.h <<_ACEOF
  7183. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7184. _ACEOF
  7185. fi
  7186. done
  7187. # Set options
  7188. enable_dlopen=no
  7189. # Check whether --enable-shared was given.
  7190. if test "${enable_shared+set}" = set; then
  7191. enableval=$enable_shared; p=${PACKAGE-default}
  7192. case $enableval in
  7193. yes) enable_shared=yes ;;
  7194. no) enable_shared=no ;;
  7195. *)
  7196. enable_shared=no
  7197. # Look at the argument we got. We use all the common list separators.
  7198. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7199. for pkg in $enableval; do
  7200. IFS="$lt_save_ifs"
  7201. if test "X$pkg" = "X$p"; then
  7202. enable_shared=yes
  7203. fi
  7204. done
  7205. IFS="$lt_save_ifs"
  7206. ;;
  7207. esac
  7208. else
  7209. enable_shared=yes
  7210. fi
  7211. # Check whether --enable-static was given.
  7212. if test "${enable_static+set}" = set; then
  7213. enableval=$enable_static; p=${PACKAGE-default}
  7214. case $enableval in
  7215. yes) enable_static=yes ;;
  7216. no) enable_static=no ;;
  7217. *)
  7218. enable_static=no
  7219. # Look at the argument we got. We use all the common list separators.
  7220. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7221. for pkg in $enableval; do
  7222. IFS="$lt_save_ifs"
  7223. if test "X$pkg" = "X$p"; then
  7224. enable_static=yes
  7225. fi
  7226. done
  7227. IFS="$lt_save_ifs"
  7228. ;;
  7229. esac
  7230. else
  7231. enable_static=yes
  7232. fi
  7233. # Check whether --with-pic was given.
  7234. if test "${with_pic+set}" = set; then
  7235. withval=$with_pic; pic_mode="$withval"
  7236. else
  7237. pic_mode=default
  7238. fi
  7239. test -z "$pic_mode" && pic_mode=default
  7240. # Check whether --enable-fast-install was given.
  7241. if test "${enable_fast_install+set}" = set; then
  7242. enableval=$enable_fast_install; p=${PACKAGE-default}
  7243. case $enableval in
  7244. yes) enable_fast_install=yes ;;
  7245. no) enable_fast_install=no ;;
  7246. *)
  7247. enable_fast_install=no
  7248. # Look at the argument we got. We use all the common list separators.
  7249. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7250. for pkg in $enableval; do
  7251. IFS="$lt_save_ifs"
  7252. if test "X$pkg" = "X$p"; then
  7253. enable_fast_install=yes
  7254. fi
  7255. done
  7256. IFS="$lt_save_ifs"
  7257. ;;
  7258. esac
  7259. else
  7260. enable_fast_install=yes
  7261. fi
  7262. # This can be used to rebuild libtool when needed
  7263. LIBTOOL_DEPS="$ltmain"
  7264. # Always use our own libtool.
  7265. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7266. test -z "$LN_S" && LN_S="ln -s"
  7267. if test -n "${ZSH_VERSION+set}" ; then
  7268. setopt NO_GLOB_SUBST
  7269. fi
  7270. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  7271. $as_echo_n "checking for objdir... " >&6; }
  7272. if test "${lt_cv_objdir+set}" = set; then
  7273. $as_echo_n "(cached) " >&6
  7274. else
  7275. rm -f .libs 2>/dev/null
  7276. mkdir .libs 2>/dev/null
  7277. if test -d .libs; then
  7278. lt_cv_objdir=.libs
  7279. else
  7280. # MS-DOS does not allow filenames that begin with a dot.
  7281. lt_cv_objdir=_libs
  7282. fi
  7283. rmdir .libs 2>/dev/null
  7284. fi
  7285. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7286. $as_echo "$lt_cv_objdir" >&6; }
  7287. objdir=$lt_cv_objdir
  7288. cat >>confdefs.h <<_ACEOF
  7289. #define LT_OBJDIR "$lt_cv_objdir/"
  7290. _ACEOF
  7291. case $host_os in
  7292. aix3*)
  7293. # AIX sometimes has problems with the GCC collect2 program. For some
  7294. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7295. # vanish in a puff of smoke.
  7296. if test "X${COLLECT_NAMES+set}" != Xset; then
  7297. COLLECT_NAMES=
  7298. export COLLECT_NAMES
  7299. fi
  7300. ;;
  7301. esac
  7302. # Sed substitution that helps us do robust quoting. It backslashifies
  7303. # metacharacters that are still active within double-quoted strings.
  7304. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7305. # Same as above, but do not quote variable references.
  7306. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7307. # Sed substitution to delay expansion of an escaped shell variable in a
  7308. # double_quote_subst'ed string.
  7309. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7310. # Sed substitution to delay expansion of an escaped single quote.
  7311. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7312. # Sed substitution to avoid accidental globbing in evaled expressions
  7313. no_glob_subst='s/\*/\\\*/g'
  7314. # Global variables:
  7315. ofile=libtool
  7316. can_build_shared=yes
  7317. # All known linkers require a `.a' archive for static linking (except MSVC,
  7318. # which needs '.lib').
  7319. libext=a
  7320. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7321. old_CC="$CC"
  7322. old_CFLAGS="$CFLAGS"
  7323. # Set sane defaults for various variables
  7324. test -z "$CC" && CC=cc
  7325. test -z "$LTCC" && LTCC=$CC
  7326. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7327. test -z "$LD" && LD=ld
  7328. test -z "$ac_objext" && ac_objext=o
  7329. for cc_temp in $compiler""; do
  7330. case $cc_temp in
  7331. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7332. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7333. \-*) ;;
  7334. *) break;;
  7335. esac
  7336. done
  7337. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7338. # Only perform the check for file, if the check method requires it
  7339. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7340. case $deplibs_check_method in
  7341. file_magic*)
  7342. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7343. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7344. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7345. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7346. $as_echo_n "(cached) " >&6
  7347. else
  7348. case $MAGIC_CMD in
  7349. [\\/*] | ?:[\\/]*)
  7350. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7351. ;;
  7352. *)
  7353. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7354. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7355. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7356. for ac_dir in $ac_dummy; do
  7357. IFS="$lt_save_ifs"
  7358. test -z "$ac_dir" && ac_dir=.
  7359. if test -f $ac_dir/${ac_tool_prefix}file; then
  7360. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7361. if test -n "$file_magic_test_file"; then
  7362. case $deplibs_check_method in
  7363. "file_magic "*)
  7364. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7365. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7366. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7367. $EGREP "$file_magic_regex" > /dev/null; then
  7368. :
  7369. else
  7370. cat <<_LT_EOF 1>&2
  7371. *** Warning: the command libtool uses to detect shared libraries,
  7372. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7373. *** The result is that libtool may fail to recognize shared libraries
  7374. *** as such. This will affect the creation of libtool libraries that
  7375. *** depend on shared libraries, but programs linked with such libtool
  7376. *** libraries will work regardless of this problem. Nevertheless, you
  7377. *** may want to report the problem to your system manager and/or to
  7378. *** bug-libtool@gnu.org
  7379. _LT_EOF
  7380. fi ;;
  7381. esac
  7382. fi
  7383. break
  7384. fi
  7385. done
  7386. IFS="$lt_save_ifs"
  7387. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7388. ;;
  7389. esac
  7390. fi
  7391. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7392. if test -n "$MAGIC_CMD"; then
  7393. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7394. $as_echo "$MAGIC_CMD" >&6; }
  7395. else
  7396. { $as_echo "$as_me:$LINENO: result: no" >&5
  7397. $as_echo "no" >&6; }
  7398. fi
  7399. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7400. if test -n "$ac_tool_prefix"; then
  7401. { $as_echo "$as_me:$LINENO: checking for file" >&5
  7402. $as_echo_n "checking for file... " >&6; }
  7403. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7404. $as_echo_n "(cached) " >&6
  7405. else
  7406. case $MAGIC_CMD in
  7407. [\\/*] | ?:[\\/]*)
  7408. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7409. ;;
  7410. *)
  7411. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7412. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7413. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7414. for ac_dir in $ac_dummy; do
  7415. IFS="$lt_save_ifs"
  7416. test -z "$ac_dir" && ac_dir=.
  7417. if test -f $ac_dir/file; then
  7418. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7419. if test -n "$file_magic_test_file"; then
  7420. case $deplibs_check_method in
  7421. "file_magic "*)
  7422. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7423. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7424. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7425. $EGREP "$file_magic_regex" > /dev/null; then
  7426. :
  7427. else
  7428. cat <<_LT_EOF 1>&2
  7429. *** Warning: the command libtool uses to detect shared libraries,
  7430. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7431. *** The result is that libtool may fail to recognize shared libraries
  7432. *** as such. This will affect the creation of libtool libraries that
  7433. *** depend on shared libraries, but programs linked with such libtool
  7434. *** libraries will work regardless of this problem. Nevertheless, you
  7435. *** may want to report the problem to your system manager and/or to
  7436. *** bug-libtool@gnu.org
  7437. _LT_EOF
  7438. fi ;;
  7439. esac
  7440. fi
  7441. break
  7442. fi
  7443. done
  7444. IFS="$lt_save_ifs"
  7445. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7446. ;;
  7447. esac
  7448. fi
  7449. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7450. if test -n "$MAGIC_CMD"; then
  7451. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7452. $as_echo "$MAGIC_CMD" >&6; }
  7453. else
  7454. { $as_echo "$as_me:$LINENO: result: no" >&5
  7455. $as_echo "no" >&6; }
  7456. fi
  7457. else
  7458. MAGIC_CMD=:
  7459. fi
  7460. fi
  7461. fi
  7462. ;;
  7463. esac
  7464. # Use C for the default configuration in the libtool script
  7465. lt_save_CC="$CC"
  7466. ac_ext=c
  7467. ac_cpp='$CPP $CPPFLAGS'
  7468. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7469. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7470. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7471. # Source file extension for C test sources.
  7472. ac_ext=c
  7473. # Object file extension for compiled C test sources.
  7474. objext=o
  7475. objext=$objext
  7476. # Code to be used in simple compile tests
  7477. lt_simple_compile_test_code="int some_variable = 0;"
  7478. # Code to be used in simple link tests
  7479. lt_simple_link_test_code='int main(){return(0);}'
  7480. # If no C compiler was specified, use CC.
  7481. LTCC=${LTCC-"$CC"}
  7482. # If no C compiler flags were specified, use CFLAGS.
  7483. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7484. # Allow CC to be a program name with arguments.
  7485. compiler=$CC
  7486. # Save the default compiler, since it gets overwritten when the other
  7487. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7488. compiler_DEFAULT=$CC
  7489. # save warnings/boilerplate of simple test code
  7490. ac_outfile=conftest.$ac_objext
  7491. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7492. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7493. _lt_compiler_boilerplate=`cat conftest.err`
  7494. $RM conftest*
  7495. ac_outfile=conftest.$ac_objext
  7496. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7497. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7498. _lt_linker_boilerplate=`cat conftest.err`
  7499. $RM -r conftest*
  7500. if test -n "$compiler"; then
  7501. lt_prog_compiler_no_builtin_flag=
  7502. if test "$GCC" = yes; then
  7503. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7504. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7505. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7506. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  7507. $as_echo_n "(cached) " >&6
  7508. else
  7509. lt_cv_prog_compiler_rtti_exceptions=no
  7510. ac_outfile=conftest.$ac_objext
  7511. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7512. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7513. # Insert the option either (1) after the last *FLAGS variable, or
  7514. # (2) before a word containing "conftest.", or (3) at the end.
  7515. # Note that $ac_compile itself does not contain backslashes and begins
  7516. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7517. # The option is referenced via a variable to avoid confusing sed.
  7518. lt_compile=`echo "$ac_compile" | $SED \
  7519. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7520. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7521. -e 's:$: $lt_compiler_flag:'`
  7522. (eval echo "\"\$as_me:8641: $lt_compile\"" >&5)
  7523. (eval "$lt_compile" 2>conftest.err)
  7524. ac_status=$?
  7525. cat conftest.err >&5
  7526. echo "$as_me:8645: \$? = $ac_status" >&5
  7527. if (exit $ac_status) && test -s "$ac_outfile"; then
  7528. # The compiler can only warn and ignore the option if not recognized
  7529. # So say no if there are warnings other than the usual output.
  7530. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7531. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7532. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7533. lt_cv_prog_compiler_rtti_exceptions=yes
  7534. fi
  7535. fi
  7536. $RM conftest*
  7537. fi
  7538. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7539. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7540. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7541. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7542. else
  7543. :
  7544. fi
  7545. fi
  7546. lt_prog_compiler_wl=
  7547. lt_prog_compiler_pic=
  7548. lt_prog_compiler_static=
  7549. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  7550. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7551. if test "$GCC" = yes; then
  7552. lt_prog_compiler_wl='-Wl,'
  7553. lt_prog_compiler_static='-static'
  7554. case $host_os in
  7555. aix*)
  7556. # All AIX code is PIC.
  7557. if test "$host_cpu" = ia64; then
  7558. # AIX 5 now supports IA64 processor
  7559. lt_prog_compiler_static='-Bstatic'
  7560. fi
  7561. ;;
  7562. amigaos*)
  7563. case $host_cpu in
  7564. powerpc)
  7565. # see comment about AmigaOS4 .so support
  7566. lt_prog_compiler_pic='-fPIC'
  7567. ;;
  7568. m68k)
  7569. # FIXME: we need at least 68020 code to build shared libraries, but
  7570. # adding the `-m68020' flag to GCC prevents building anything better,
  7571. # like `-m68040'.
  7572. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7573. ;;
  7574. esac
  7575. ;;
  7576. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7577. # PIC is the default for these OSes.
  7578. ;;
  7579. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7580. # This hack is so that the source file can tell whether it is being
  7581. # built for inclusion in a dll (and should export symbols for example).
  7582. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7583. # (--disable-auto-import) libraries
  7584. lt_prog_compiler_pic='-DDLL_EXPORT'
  7585. ;;
  7586. darwin* | rhapsody*)
  7587. # PIC is the default on this platform
  7588. # Common symbols not allowed in MH_DYLIB files
  7589. lt_prog_compiler_pic='-fno-common'
  7590. ;;
  7591. hpux*)
  7592. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7593. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7594. # sets the default TLS model and affects inlining.
  7595. case $host_cpu in
  7596. hppa*64*)
  7597. # +Z the default
  7598. ;;
  7599. *)
  7600. lt_prog_compiler_pic='-fPIC'
  7601. ;;
  7602. esac
  7603. ;;
  7604. interix[3-9]*)
  7605. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7606. # Instead, we relocate shared libraries at runtime.
  7607. ;;
  7608. msdosdjgpp*)
  7609. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7610. # on systems that don't support them.
  7611. lt_prog_compiler_can_build_shared=no
  7612. enable_shared=no
  7613. ;;
  7614. *nto* | *qnx*)
  7615. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7616. # it will coredump.
  7617. lt_prog_compiler_pic='-fPIC -shared'
  7618. ;;
  7619. sysv4*MP*)
  7620. if test -d /usr/nec; then
  7621. lt_prog_compiler_pic=-Kconform_pic
  7622. fi
  7623. ;;
  7624. *)
  7625. lt_prog_compiler_pic='-fPIC'
  7626. ;;
  7627. esac
  7628. else
  7629. # PORTME Check for flag to pass linker flags through the system compiler.
  7630. case $host_os in
  7631. aix*)
  7632. lt_prog_compiler_wl='-Wl,'
  7633. if test "$host_cpu" = ia64; then
  7634. # AIX 5 now supports IA64 processor
  7635. lt_prog_compiler_static='-Bstatic'
  7636. else
  7637. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7638. fi
  7639. ;;
  7640. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7641. # This hack is so that the source file can tell whether it is being
  7642. # built for inclusion in a dll (and should export symbols for example).
  7643. lt_prog_compiler_pic='-DDLL_EXPORT'
  7644. ;;
  7645. hpux9* | hpux10* | hpux11*)
  7646. lt_prog_compiler_wl='-Wl,'
  7647. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7648. # not for PA HP-UX.
  7649. case $host_cpu in
  7650. hppa*64*|ia64*)
  7651. # +Z the default
  7652. ;;
  7653. *)
  7654. lt_prog_compiler_pic='+Z'
  7655. ;;
  7656. esac
  7657. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7658. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7659. ;;
  7660. irix5* | irix6* | nonstopux*)
  7661. lt_prog_compiler_wl='-Wl,'
  7662. # PIC (with -KPIC) is the default.
  7663. lt_prog_compiler_static='-non_shared'
  7664. ;;
  7665. linux* | k*bsd*-gnu)
  7666. case $cc_basename in
  7667. # old Intel for x86_64 which still supported -KPIC.
  7668. ecc*)
  7669. lt_prog_compiler_wl='-Wl,'
  7670. lt_prog_compiler_pic='-KPIC'
  7671. lt_prog_compiler_static='-static'
  7672. ;;
  7673. # icc used to be incompatible with GCC.
  7674. # ICC 10 doesn't accept -KPIC any more.
  7675. icc* | ifort*)
  7676. lt_prog_compiler_wl='-Wl,'
  7677. lt_prog_compiler_pic='-fPIC'
  7678. lt_prog_compiler_static='-static'
  7679. ;;
  7680. # Lahey Fortran 8.1.
  7681. lf95*)
  7682. lt_prog_compiler_wl='-Wl,'
  7683. lt_prog_compiler_pic='--shared'
  7684. lt_prog_compiler_static='--static'
  7685. ;;
  7686. pgcc* | pgf77* | pgf90* | pgf95*)
  7687. # Portland Group compilers (*not* the Pentium gcc compiler,
  7688. # which looks to be a dead project)
  7689. lt_prog_compiler_wl='-Wl,'
  7690. lt_prog_compiler_pic='-fpic'
  7691. lt_prog_compiler_static='-Bstatic'
  7692. ;;
  7693. ccc*)
  7694. lt_prog_compiler_wl='-Wl,'
  7695. # All Alpha code is PIC.
  7696. lt_prog_compiler_static='-non_shared'
  7697. ;;
  7698. xl*)
  7699. # IBM XL C 8.0/Fortran 10.1 on PPC
  7700. lt_prog_compiler_wl='-Wl,'
  7701. lt_prog_compiler_pic='-qpic'
  7702. lt_prog_compiler_static='-qstaticlink'
  7703. ;;
  7704. *)
  7705. case `$CC -V 2>&1 | sed 5q` in
  7706. *Sun\ C*)
  7707. # Sun C 5.9
  7708. lt_prog_compiler_pic='-KPIC'
  7709. lt_prog_compiler_static='-Bstatic'
  7710. lt_prog_compiler_wl='-Wl,'
  7711. ;;
  7712. *Sun\ F*)
  7713. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7714. lt_prog_compiler_pic='-KPIC'
  7715. lt_prog_compiler_static='-Bstatic'
  7716. lt_prog_compiler_wl=''
  7717. ;;
  7718. esac
  7719. ;;
  7720. esac
  7721. ;;
  7722. newsos6)
  7723. lt_prog_compiler_pic='-KPIC'
  7724. lt_prog_compiler_static='-Bstatic'
  7725. ;;
  7726. *nto* | *qnx*)
  7727. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7728. # it will coredump.
  7729. lt_prog_compiler_pic='-fPIC -shared'
  7730. ;;
  7731. osf3* | osf4* | osf5*)
  7732. lt_prog_compiler_wl='-Wl,'
  7733. # All OSF/1 code is PIC.
  7734. lt_prog_compiler_static='-non_shared'
  7735. ;;
  7736. rdos*)
  7737. lt_prog_compiler_static='-non_shared'
  7738. ;;
  7739. solaris*)
  7740. lt_prog_compiler_pic='-KPIC'
  7741. lt_prog_compiler_static='-Bstatic'
  7742. case $cc_basename in
  7743. f77* | f90* | f95*)
  7744. lt_prog_compiler_wl='-Qoption ld ';;
  7745. *)
  7746. lt_prog_compiler_wl='-Wl,';;
  7747. esac
  7748. ;;
  7749. sunos4*)
  7750. lt_prog_compiler_wl='-Qoption ld '
  7751. lt_prog_compiler_pic='-PIC'
  7752. lt_prog_compiler_static='-Bstatic'
  7753. ;;
  7754. sysv4 | sysv4.2uw2* | sysv4.3*)
  7755. lt_prog_compiler_wl='-Wl,'
  7756. lt_prog_compiler_pic='-KPIC'
  7757. lt_prog_compiler_static='-Bstatic'
  7758. ;;
  7759. sysv4*MP*)
  7760. if test -d /usr/nec ;then
  7761. lt_prog_compiler_pic='-Kconform_pic'
  7762. lt_prog_compiler_static='-Bstatic'
  7763. fi
  7764. ;;
  7765. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7766. lt_prog_compiler_wl='-Wl,'
  7767. lt_prog_compiler_pic='-KPIC'
  7768. lt_prog_compiler_static='-Bstatic'
  7769. ;;
  7770. unicos*)
  7771. lt_prog_compiler_wl='-Wl,'
  7772. lt_prog_compiler_can_build_shared=no
  7773. ;;
  7774. uts4*)
  7775. lt_prog_compiler_pic='-pic'
  7776. lt_prog_compiler_static='-Bstatic'
  7777. ;;
  7778. *)
  7779. lt_prog_compiler_can_build_shared=no
  7780. ;;
  7781. esac
  7782. fi
  7783. case $host_os in
  7784. # For platforms which do not support PIC, -DPIC is meaningless:
  7785. *djgpp*)
  7786. lt_prog_compiler_pic=
  7787. ;;
  7788. *)
  7789. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7790. ;;
  7791. esac
  7792. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7793. $as_echo "$lt_prog_compiler_pic" >&6; }
  7794. #
  7795. # Check to make sure the PIC flag actually works.
  7796. #
  7797. if test -n "$lt_prog_compiler_pic"; then
  7798. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7799. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7800. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  7801. $as_echo_n "(cached) " >&6
  7802. else
  7803. lt_cv_prog_compiler_pic_works=no
  7804. ac_outfile=conftest.$ac_objext
  7805. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7806. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7807. # Insert the option either (1) after the last *FLAGS variable, or
  7808. # (2) before a word containing "conftest.", or (3) at the end.
  7809. # Note that $ac_compile itself does not contain backslashes and begins
  7810. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7811. # The option is referenced via a variable to avoid confusing sed.
  7812. lt_compile=`echo "$ac_compile" | $SED \
  7813. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7814. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7815. -e 's:$: $lt_compiler_flag:'`
  7816. (eval echo "\"\$as_me:8980: $lt_compile\"" >&5)
  7817. (eval "$lt_compile" 2>conftest.err)
  7818. ac_status=$?
  7819. cat conftest.err >&5
  7820. echo "$as_me:8984: \$? = $ac_status" >&5
  7821. if (exit $ac_status) && test -s "$ac_outfile"; then
  7822. # The compiler can only warn and ignore the option if not recognized
  7823. # So say no if there are warnings other than the usual output.
  7824. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7825. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7826. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7827. lt_cv_prog_compiler_pic_works=yes
  7828. fi
  7829. fi
  7830. $RM conftest*
  7831. fi
  7832. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  7833. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7834. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7835. case $lt_prog_compiler_pic in
  7836. "" | " "*) ;;
  7837. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7838. esac
  7839. else
  7840. lt_prog_compiler_pic=
  7841. lt_prog_compiler_can_build_shared=no
  7842. fi
  7843. fi
  7844. #
  7845. # Check to make sure the static flag actually works.
  7846. #
  7847. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7848. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7849. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7850. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  7851. $as_echo_n "(cached) " >&6
  7852. else
  7853. lt_cv_prog_compiler_static_works=no
  7854. save_LDFLAGS="$LDFLAGS"
  7855. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7856. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7857. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7858. # The linker can only warn and ignore the option if not recognized
  7859. # So say no if there are warnings
  7860. if test -s conftest.err; then
  7861. # Append any errors to the config.log.
  7862. cat conftest.err 1>&5
  7863. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7864. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7865. if diff conftest.exp conftest.er2 >/dev/null; then
  7866. lt_cv_prog_compiler_static_works=yes
  7867. fi
  7868. else
  7869. lt_cv_prog_compiler_static_works=yes
  7870. fi
  7871. fi
  7872. $RM -r conftest*
  7873. LDFLAGS="$save_LDFLAGS"
  7874. fi
  7875. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  7876. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7877. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7878. :
  7879. else
  7880. lt_prog_compiler_static=
  7881. fi
  7882. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7883. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7884. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7885. $as_echo_n "(cached) " >&6
  7886. else
  7887. lt_cv_prog_compiler_c_o=no
  7888. $RM -r conftest 2>/dev/null
  7889. mkdir conftest
  7890. cd conftest
  7891. mkdir out
  7892. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7893. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7894. # Insert the option either (1) after the last *FLAGS variable, or
  7895. # (2) before a word containing "conftest.", or (3) at the end.
  7896. # Note that $ac_compile itself does not contain backslashes and begins
  7897. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7898. lt_compile=`echo "$ac_compile" | $SED \
  7899. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7900. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7901. -e 's:$: $lt_compiler_flag:'`
  7902. (eval echo "\"\$as_me:9085: $lt_compile\"" >&5)
  7903. (eval "$lt_compile" 2>out/conftest.err)
  7904. ac_status=$?
  7905. cat out/conftest.err >&5
  7906. echo "$as_me:9089: \$? = $ac_status" >&5
  7907. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7908. then
  7909. # The compiler can only warn and ignore the option if not recognized
  7910. # So say no if there are warnings
  7911. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7912. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7913. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7914. lt_cv_prog_compiler_c_o=yes
  7915. fi
  7916. fi
  7917. chmod u+w . 2>&5
  7918. $RM conftest*
  7919. # SGI C++ compiler will create directory out/ii_files/ for
  7920. # template instantiation
  7921. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7922. $RM out/* && rmdir out
  7923. cd ..
  7924. $RM -r conftest
  7925. $RM conftest*
  7926. fi
  7927. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7928. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7929. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7930. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7931. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7932. $as_echo_n "(cached) " >&6
  7933. else
  7934. lt_cv_prog_compiler_c_o=no
  7935. $RM -r conftest 2>/dev/null
  7936. mkdir conftest
  7937. cd conftest
  7938. mkdir out
  7939. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7940. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7941. # Insert the option either (1) after the last *FLAGS variable, or
  7942. # (2) before a word containing "conftest.", or (3) at the end.
  7943. # Note that $ac_compile itself does not contain backslashes and begins
  7944. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7945. lt_compile=`echo "$ac_compile" | $SED \
  7946. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7947. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7948. -e 's:$: $lt_compiler_flag:'`
  7949. (eval echo "\"\$as_me:9140: $lt_compile\"" >&5)
  7950. (eval "$lt_compile" 2>out/conftest.err)
  7951. ac_status=$?
  7952. cat out/conftest.err >&5
  7953. echo "$as_me:9144: \$? = $ac_status" >&5
  7954. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7955. then
  7956. # The compiler can only warn and ignore the option if not recognized
  7957. # So say no if there are warnings
  7958. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7959. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7960. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7961. lt_cv_prog_compiler_c_o=yes
  7962. fi
  7963. fi
  7964. chmod u+w . 2>&5
  7965. $RM conftest*
  7966. # SGI C++ compiler will create directory out/ii_files/ for
  7967. # template instantiation
  7968. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7969. $RM out/* && rmdir out
  7970. cd ..
  7971. $RM -r conftest
  7972. $RM conftest*
  7973. fi
  7974. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7975. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7976. hard_links="nottested"
  7977. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7978. # do not overwrite the value of need_locks provided by the user
  7979. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7980. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7981. hard_links=yes
  7982. $RM conftest*
  7983. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7984. touch conftest.a
  7985. ln conftest.a conftest.b 2>&5 || hard_links=no
  7986. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7987. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  7988. $as_echo "$hard_links" >&6; }
  7989. if test "$hard_links" = no; then
  7990. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7991. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7992. need_locks=warn
  7993. fi
  7994. else
  7995. need_locks=no
  7996. fi
  7997. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7998. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7999. runpath_var=
  8000. allow_undefined_flag=
  8001. always_export_symbols=no
  8002. archive_cmds=
  8003. archive_expsym_cmds=
  8004. compiler_needs_object=no
  8005. enable_shared_with_static_runtimes=no
  8006. export_dynamic_flag_spec=
  8007. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8008. hardcode_automatic=no
  8009. hardcode_direct=no
  8010. hardcode_direct_absolute=no
  8011. hardcode_libdir_flag_spec=
  8012. hardcode_libdir_flag_spec_ld=
  8013. hardcode_libdir_separator=
  8014. hardcode_minus_L=no
  8015. hardcode_shlibpath_var=unsupported
  8016. inherit_rpath=no
  8017. link_all_deplibs=unknown
  8018. module_cmds=
  8019. module_expsym_cmds=
  8020. old_archive_from_new_cmds=
  8021. old_archive_from_expsyms_cmds=
  8022. thread_safe_flag_spec=
  8023. whole_archive_flag_spec=
  8024. # include_expsyms should be a list of space-separated symbols to be *always*
  8025. # included in the symbol list
  8026. include_expsyms=
  8027. # exclude_expsyms can be an extended regexp of symbols to exclude
  8028. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8029. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8030. # as well as any symbol that contains `d'.
  8031. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8032. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8033. # platforms (ab)use it in PIC code, but their linkers get confused if
  8034. # the symbol is explicitly referenced. Since portable code cannot
  8035. # rely on this symbol name, it's probably fine to never include it in
  8036. # preloaded symbol tables.
  8037. # Exclude shared library initialization/finalization symbols.
  8038. extract_expsyms_cmds=
  8039. case $host_os in
  8040. cygwin* | mingw* | pw32* | cegcc*)
  8041. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8042. # When not using gcc, we currently assume that we are using
  8043. # Microsoft Visual C++.
  8044. if test "$GCC" != yes; then
  8045. with_gnu_ld=no
  8046. fi
  8047. ;;
  8048. interix*)
  8049. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8050. with_gnu_ld=yes
  8051. ;;
  8052. openbsd*)
  8053. with_gnu_ld=no
  8054. ;;
  8055. esac
  8056. ld_shlibs=yes
  8057. if test "$with_gnu_ld" = yes; then
  8058. # If archive_cmds runs LD, not CC, wlarc should be empty
  8059. wlarc='${wl}'
  8060. # Set some defaults for GNU ld with shared library support. These
  8061. # are reset later if shared libraries are not supported. Putting them
  8062. # here allows them to be overridden if necessary.
  8063. runpath_var=LD_RUN_PATH
  8064. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8065. export_dynamic_flag_spec='${wl}--export-dynamic'
  8066. # ancient GNU ld didn't support --whole-archive et. al.
  8067. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8068. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8069. else
  8070. whole_archive_flag_spec=
  8071. fi
  8072. supports_anon_versioning=no
  8073. case `$LD -v 2>&1` in
  8074. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8075. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8076. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8077. *\ 2.11.*) ;; # other 2.11 versions
  8078. *) supports_anon_versioning=yes ;;
  8079. esac
  8080. # See if GNU ld supports shared libraries.
  8081. case $host_os in
  8082. aix[3-9]*)
  8083. # On AIX/PPC, the GNU linker is very broken
  8084. if test "$host_cpu" != ia64; then
  8085. ld_shlibs=no
  8086. cat <<_LT_EOF 1>&2
  8087. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8088. *** to be unable to reliably create shared libraries on AIX.
  8089. *** Therefore, libtool is disabling shared libraries support. If you
  8090. *** really care for shared libraries, you may want to modify your PATH
  8091. *** so that a non-GNU linker is found, and then restart.
  8092. _LT_EOF
  8093. fi
  8094. ;;
  8095. amigaos*)
  8096. case $host_cpu in
  8097. powerpc)
  8098. # see comment about AmigaOS4 .so support
  8099. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8100. archive_expsym_cmds=''
  8101. ;;
  8102. m68k)
  8103. 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)'
  8104. hardcode_libdir_flag_spec='-L$libdir'
  8105. hardcode_minus_L=yes
  8106. ;;
  8107. esac
  8108. ;;
  8109. beos*)
  8110. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8111. allow_undefined_flag=unsupported
  8112. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8113. # support --undefined. This deserves some investigation. FIXME
  8114. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8115. else
  8116. ld_shlibs=no
  8117. fi
  8118. ;;
  8119. cygwin* | mingw* | pw32* | cegcc*)
  8120. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8121. # as there is no search path for DLLs.
  8122. hardcode_libdir_flag_spec='-L$libdir'
  8123. allow_undefined_flag=unsupported
  8124. always_export_symbols=no
  8125. enable_shared_with_static_runtimes=yes
  8126. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8127. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8128. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8129. # If the export-symbols file already is a .def file (1st line
  8130. # is EXPORTS), use it as is; otherwise, prepend...
  8131. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8132. cp $export_symbols $output_objdir/$soname.def;
  8133. else
  8134. echo EXPORTS > $output_objdir/$soname.def;
  8135. cat $export_symbols >> $output_objdir/$soname.def;
  8136. fi~
  8137. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8138. else
  8139. ld_shlibs=no
  8140. fi
  8141. ;;
  8142. interix[3-9]*)
  8143. hardcode_direct=no
  8144. hardcode_shlibpath_var=no
  8145. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8146. export_dynamic_flag_spec='${wl}-E'
  8147. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8148. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8149. # default) and relocated if they conflict, which is a slow very memory
  8150. # consuming and fragmenting process. To avoid this, we pick a random,
  8151. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8152. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8153. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8154. 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'
  8155. ;;
  8156. gnu* | linux* | tpf* | k*bsd*-gnu)
  8157. tmp_diet=no
  8158. if test "$host_os" = linux-dietlibc; then
  8159. case $cc_basename in
  8160. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8161. esac
  8162. fi
  8163. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8164. && test "$tmp_diet" = no
  8165. then
  8166. tmp_addflag=
  8167. tmp_sharedflag='-shared'
  8168. case $cc_basename,$host_cpu in
  8169. pgcc*) # Portland Group C compiler
  8170. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8171. tmp_addflag=' $pic_flag'
  8172. ;;
  8173. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8174. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8175. tmp_addflag=' $pic_flag -Mnomain' ;;
  8176. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8177. tmp_addflag=' -i_dynamic' ;;
  8178. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8179. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8180. ifc* | ifort*) # Intel Fortran compiler
  8181. tmp_addflag=' -nofor_main' ;;
  8182. lf95*) # Lahey Fortran 8.1
  8183. whole_archive_flag_spec=
  8184. tmp_sharedflag='--shared' ;;
  8185. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8186. tmp_sharedflag='-qmkshrobj'
  8187. tmp_addflag= ;;
  8188. esac
  8189. case `$CC -V 2>&1 | sed 5q` in
  8190. *Sun\ C*) # Sun C 5.9
  8191. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8192. compiler_needs_object=yes
  8193. tmp_sharedflag='-G' ;;
  8194. *Sun\ F*) # Sun Fortran 8.3
  8195. tmp_sharedflag='-G' ;;
  8196. esac
  8197. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8198. if test "x$supports_anon_versioning" = xyes; then
  8199. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8200. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8201. echo "local: *; };" >> $output_objdir/$libname.ver~
  8202. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8203. fi
  8204. case $cc_basename in
  8205. xlf*)
  8206. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8207. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8208. hardcode_libdir_flag_spec=
  8209. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8210. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8211. if test "x$supports_anon_versioning" = xyes; then
  8212. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8213. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8214. echo "local: *; };" >> $output_objdir/$libname.ver~
  8215. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8216. fi
  8217. ;;
  8218. esac
  8219. else
  8220. ld_shlibs=no
  8221. fi
  8222. ;;
  8223. netbsd*)
  8224. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8225. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8226. wlarc=
  8227. else
  8228. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8229. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8230. fi
  8231. ;;
  8232. solaris*)
  8233. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8234. ld_shlibs=no
  8235. cat <<_LT_EOF 1>&2
  8236. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8237. *** create shared libraries on Solaris systems. Therefore, libtool
  8238. *** is disabling shared libraries support. We urge you to upgrade GNU
  8239. *** binutils to release 2.9.1 or newer. Another option is to modify
  8240. *** your PATH or compiler configuration so that the native linker is
  8241. *** used, and then restart.
  8242. _LT_EOF
  8243. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8244. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8245. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8246. else
  8247. ld_shlibs=no
  8248. fi
  8249. ;;
  8250. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8251. case `$LD -v 2>&1` in
  8252. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8253. ld_shlibs=no
  8254. cat <<_LT_EOF 1>&2
  8255. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8256. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8257. *** is disabling shared libraries support. We urge you to upgrade GNU
  8258. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8259. *** your PATH or compiler configuration so that the native linker is
  8260. *** used, and then restart.
  8261. _LT_EOF
  8262. ;;
  8263. *)
  8264. # For security reasons, it is highly recommended that you always
  8265. # use absolute paths for naming shared libraries, and exclude the
  8266. # DT_RUNPATH tag from executables and libraries. But doing so
  8267. # requires that you compile everything twice, which is a pain.
  8268. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8269. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8270. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8271. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8272. else
  8273. ld_shlibs=no
  8274. fi
  8275. ;;
  8276. esac
  8277. ;;
  8278. sunos4*)
  8279. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8280. wlarc=
  8281. hardcode_direct=yes
  8282. hardcode_shlibpath_var=no
  8283. ;;
  8284. *)
  8285. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8286. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8287. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8288. else
  8289. ld_shlibs=no
  8290. fi
  8291. ;;
  8292. esac
  8293. if test "$ld_shlibs" = no; then
  8294. runpath_var=
  8295. hardcode_libdir_flag_spec=
  8296. export_dynamic_flag_spec=
  8297. whole_archive_flag_spec=
  8298. fi
  8299. else
  8300. # PORTME fill in a description of your system's linker (not GNU ld)
  8301. case $host_os in
  8302. aix3*)
  8303. allow_undefined_flag=unsupported
  8304. always_export_symbols=yes
  8305. 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'
  8306. # Note: this linker hardcodes the directories in LIBPATH if there
  8307. # are no directories specified by -L.
  8308. hardcode_minus_L=yes
  8309. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8310. # Neither direct hardcoding nor static linking is supported with a
  8311. # broken collect2.
  8312. hardcode_direct=unsupported
  8313. fi
  8314. ;;
  8315. aix[4-9]*)
  8316. if test "$host_cpu" = ia64; then
  8317. # On IA64, the linker does run time linking by default, so we don't
  8318. # have to do anything special.
  8319. aix_use_runtimelinking=no
  8320. exp_sym_flag='-Bexport'
  8321. no_entry_flag=""
  8322. else
  8323. # If we're using GNU nm, then we don't want the "-C" option.
  8324. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8325. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8326. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8327. else
  8328. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8329. fi
  8330. aix_use_runtimelinking=no
  8331. # Test if we are trying to use run time linking or normal
  8332. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8333. # need to do runtime linking.
  8334. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8335. for ld_flag in $LDFLAGS; do
  8336. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8337. aix_use_runtimelinking=yes
  8338. break
  8339. fi
  8340. done
  8341. ;;
  8342. esac
  8343. exp_sym_flag='-bexport'
  8344. no_entry_flag='-bnoentry'
  8345. fi
  8346. # When large executables or shared objects are built, AIX ld can
  8347. # have problems creating the table of contents. If linking a library
  8348. # or program results in "error TOC overflow" add -mminimal-toc to
  8349. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8350. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8351. archive_cmds=''
  8352. hardcode_direct=yes
  8353. hardcode_direct_absolute=yes
  8354. hardcode_libdir_separator=':'
  8355. link_all_deplibs=yes
  8356. file_list_spec='${wl}-f,'
  8357. if test "$GCC" = yes; then
  8358. case $host_os in aix4.[012]|aix4.[012].*)
  8359. # We only want to do this on AIX 4.2 and lower, the check
  8360. # below for broken collect2 doesn't work under 4.3+
  8361. collect2name=`${CC} -print-prog-name=collect2`
  8362. if test -f "$collect2name" &&
  8363. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8364. then
  8365. # We have reworked collect2
  8366. :
  8367. else
  8368. # We have old collect2
  8369. hardcode_direct=unsupported
  8370. # It fails to find uninstalled libraries when the uninstalled
  8371. # path is not listed in the libpath. Setting hardcode_minus_L
  8372. # to unsupported forces relinking
  8373. hardcode_minus_L=yes
  8374. hardcode_libdir_flag_spec='-L$libdir'
  8375. hardcode_libdir_separator=
  8376. fi
  8377. ;;
  8378. esac
  8379. shared_flag='-shared'
  8380. if test "$aix_use_runtimelinking" = yes; then
  8381. shared_flag="$shared_flag "'${wl}-G'
  8382. fi
  8383. else
  8384. # not using gcc
  8385. if test "$host_cpu" = ia64; then
  8386. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8387. # chokes on -Wl,-G. The following line is correct:
  8388. shared_flag='-G'
  8389. else
  8390. if test "$aix_use_runtimelinking" = yes; then
  8391. shared_flag='${wl}-G'
  8392. else
  8393. shared_flag='${wl}-bM:SRE'
  8394. fi
  8395. fi
  8396. fi
  8397. export_dynamic_flag_spec='${wl}-bexpall'
  8398. # It seems that -bexpall does not export symbols beginning with
  8399. # underscore (_), so it is better to generate a list of symbols to export.
  8400. always_export_symbols=yes
  8401. if test "$aix_use_runtimelinking" = yes; then
  8402. # Warning - without using the other runtime loading flags (-brtl),
  8403. # -berok will link without error, but may produce a broken library.
  8404. allow_undefined_flag='-berok'
  8405. # Determine the default libpath from the value encoded in an
  8406. # empty executable.
  8407. cat >conftest.$ac_ext <<_ACEOF
  8408. /* confdefs.h. */
  8409. _ACEOF
  8410. cat confdefs.h >>conftest.$ac_ext
  8411. cat >>conftest.$ac_ext <<_ACEOF
  8412. /* end confdefs.h. */
  8413. int
  8414. main ()
  8415. {
  8416. ;
  8417. return 0;
  8418. }
  8419. _ACEOF
  8420. rm -f conftest.$ac_objext conftest$ac_exeext
  8421. if { (ac_try="$ac_link"
  8422. case "(($ac_try" in
  8423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8424. *) ac_try_echo=$ac_try;;
  8425. esac
  8426. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8427. $as_echo "$ac_try_echo") >&5
  8428. (eval "$ac_link") 2>conftest.er1
  8429. ac_status=$?
  8430. grep -v '^ *+' conftest.er1 >conftest.err
  8431. rm -f conftest.er1
  8432. cat conftest.err >&5
  8433. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8434. (exit $ac_status); } && {
  8435. test -z "$ac_c_werror_flag" ||
  8436. test ! -s conftest.err
  8437. } && test -s conftest$ac_exeext && {
  8438. test "$cross_compiling" = yes ||
  8439. $as_test_x conftest$ac_exeext
  8440. }; then
  8441. lt_aix_libpath_sed='
  8442. /Import File Strings/,/^$/ {
  8443. /^0/ {
  8444. s/^0 *\(.*\)$/\1/
  8445. p
  8446. }
  8447. }'
  8448. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8449. # Check for a 64-bit object if we didn't find anything.
  8450. if test -z "$aix_libpath"; then
  8451. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8452. fi
  8453. else
  8454. $as_echo "$as_me: failed program was:" >&5
  8455. sed 's/^/| /' conftest.$ac_ext >&5
  8456. fi
  8457. rm -rf conftest.dSYM
  8458. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8459. conftest$ac_exeext conftest.$ac_ext
  8460. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8461. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8462. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8463. else
  8464. if test "$host_cpu" = ia64; then
  8465. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8466. allow_undefined_flag="-z nodefs"
  8467. 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"
  8468. else
  8469. # Determine the default libpath from the value encoded in an
  8470. # empty executable.
  8471. cat >conftest.$ac_ext <<_ACEOF
  8472. /* confdefs.h. */
  8473. _ACEOF
  8474. cat confdefs.h >>conftest.$ac_ext
  8475. cat >>conftest.$ac_ext <<_ACEOF
  8476. /* end confdefs.h. */
  8477. int
  8478. main ()
  8479. {
  8480. ;
  8481. return 0;
  8482. }
  8483. _ACEOF
  8484. rm -f conftest.$ac_objext conftest$ac_exeext
  8485. if { (ac_try="$ac_link"
  8486. case "(($ac_try" in
  8487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8488. *) ac_try_echo=$ac_try;;
  8489. esac
  8490. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8491. $as_echo "$ac_try_echo") >&5
  8492. (eval "$ac_link") 2>conftest.er1
  8493. ac_status=$?
  8494. grep -v '^ *+' conftest.er1 >conftest.err
  8495. rm -f conftest.er1
  8496. cat conftest.err >&5
  8497. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8498. (exit $ac_status); } && {
  8499. test -z "$ac_c_werror_flag" ||
  8500. test ! -s conftest.err
  8501. } && test -s conftest$ac_exeext && {
  8502. test "$cross_compiling" = yes ||
  8503. $as_test_x conftest$ac_exeext
  8504. }; then
  8505. lt_aix_libpath_sed='
  8506. /Import File Strings/,/^$/ {
  8507. /^0/ {
  8508. s/^0 *\(.*\)$/\1/
  8509. p
  8510. }
  8511. }'
  8512. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8513. # Check for a 64-bit object if we didn't find anything.
  8514. if test -z "$aix_libpath"; then
  8515. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8516. fi
  8517. else
  8518. $as_echo "$as_me: failed program was:" >&5
  8519. sed 's/^/| /' conftest.$ac_ext >&5
  8520. fi
  8521. rm -rf conftest.dSYM
  8522. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8523. conftest$ac_exeext conftest.$ac_ext
  8524. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8525. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8526. # Warning - without using the other run time loading flags,
  8527. # -berok will link without error, but may produce a broken library.
  8528. no_undefined_flag=' ${wl}-bernotok'
  8529. allow_undefined_flag=' ${wl}-berok'
  8530. # Exported symbols can be pulled into shared objects from archives
  8531. whole_archive_flag_spec='$convenience'
  8532. archive_cmds_need_lc=yes
  8533. # This is similar to how AIX traditionally builds its shared libraries.
  8534. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8535. fi
  8536. fi
  8537. ;;
  8538. amigaos*)
  8539. case $host_cpu in
  8540. powerpc)
  8541. # see comment about AmigaOS4 .so support
  8542. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8543. archive_expsym_cmds=''
  8544. ;;
  8545. m68k)
  8546. 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)'
  8547. hardcode_libdir_flag_spec='-L$libdir'
  8548. hardcode_minus_L=yes
  8549. ;;
  8550. esac
  8551. ;;
  8552. bsdi[45]*)
  8553. export_dynamic_flag_spec=-rdynamic
  8554. ;;
  8555. cygwin* | mingw* | pw32* | cegcc*)
  8556. # When not using gcc, we currently assume that we are using
  8557. # Microsoft Visual C++.
  8558. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8559. # no search path for DLLs.
  8560. hardcode_libdir_flag_spec=' '
  8561. allow_undefined_flag=unsupported
  8562. # Tell ltmain to make .lib files, not .a files.
  8563. libext=lib
  8564. # Tell ltmain to make .dll files, not .so files.
  8565. shrext_cmds=".dll"
  8566. # FIXME: Setting linknames here is a bad hack.
  8567. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8568. # The linker will automatically build a .lib file if we build a DLL.
  8569. old_archive_from_new_cmds='true'
  8570. # FIXME: Should let the user specify the lib program.
  8571. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8572. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8573. enable_shared_with_static_runtimes=yes
  8574. ;;
  8575. darwin* | rhapsody*)
  8576. archive_cmds_need_lc=no
  8577. hardcode_direct=no
  8578. hardcode_automatic=yes
  8579. hardcode_shlibpath_var=unsupported
  8580. whole_archive_flag_spec=''
  8581. link_all_deplibs=yes
  8582. allow_undefined_flag="$_lt_dar_allow_undefined"
  8583. case $cc_basename in
  8584. ifort*) _lt_dar_can_shared=yes ;;
  8585. *) _lt_dar_can_shared=$GCC ;;
  8586. esac
  8587. if test "$_lt_dar_can_shared" = "yes"; then
  8588. output_verbose_link_cmd=echo
  8589. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8590. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8591. 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}"
  8592. 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}"
  8593. else
  8594. ld_shlibs=no
  8595. fi
  8596. ;;
  8597. dgux*)
  8598. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8599. hardcode_libdir_flag_spec='-L$libdir'
  8600. hardcode_shlibpath_var=no
  8601. ;;
  8602. freebsd1*)
  8603. ld_shlibs=no
  8604. ;;
  8605. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8606. # support. Future versions do this automatically, but an explicit c++rt0.o
  8607. # does not break anything, and helps significantly (at the cost of a little
  8608. # extra space).
  8609. freebsd2.2*)
  8610. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8611. hardcode_libdir_flag_spec='-R$libdir'
  8612. hardcode_direct=yes
  8613. hardcode_shlibpath_var=no
  8614. ;;
  8615. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8616. freebsd2*)
  8617. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8618. hardcode_direct=yes
  8619. hardcode_minus_L=yes
  8620. hardcode_shlibpath_var=no
  8621. ;;
  8622. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8623. freebsd* | dragonfly*)
  8624. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8625. hardcode_libdir_flag_spec='-R$libdir'
  8626. hardcode_direct=yes
  8627. hardcode_shlibpath_var=no
  8628. ;;
  8629. hpux9*)
  8630. if test "$GCC" = yes; then
  8631. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8632. else
  8633. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8634. fi
  8635. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8636. hardcode_libdir_separator=:
  8637. hardcode_direct=yes
  8638. # hardcode_minus_L: Not really in the search PATH,
  8639. # but as the default location of the library.
  8640. hardcode_minus_L=yes
  8641. export_dynamic_flag_spec='${wl}-E'
  8642. ;;
  8643. hpux10*)
  8644. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8645. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8646. else
  8647. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8648. fi
  8649. if test "$with_gnu_ld" = no; then
  8650. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8651. hardcode_libdir_flag_spec_ld='+b $libdir'
  8652. hardcode_libdir_separator=:
  8653. hardcode_direct=yes
  8654. hardcode_direct_absolute=yes
  8655. export_dynamic_flag_spec='${wl}-E'
  8656. # hardcode_minus_L: Not really in the search PATH,
  8657. # but as the default location of the library.
  8658. hardcode_minus_L=yes
  8659. fi
  8660. ;;
  8661. hpux11*)
  8662. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8663. case $host_cpu in
  8664. hppa*64*)
  8665. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8666. ;;
  8667. ia64*)
  8668. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8669. ;;
  8670. *)
  8671. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8672. ;;
  8673. esac
  8674. else
  8675. case $host_cpu in
  8676. hppa*64*)
  8677. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8678. ;;
  8679. ia64*)
  8680. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8681. ;;
  8682. *)
  8683. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8684. ;;
  8685. esac
  8686. fi
  8687. if test "$with_gnu_ld" = no; then
  8688. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8689. hardcode_libdir_separator=:
  8690. case $host_cpu in
  8691. hppa*64*|ia64*)
  8692. hardcode_direct=no
  8693. hardcode_shlibpath_var=no
  8694. ;;
  8695. *)
  8696. hardcode_direct=yes
  8697. hardcode_direct_absolute=yes
  8698. export_dynamic_flag_spec='${wl}-E'
  8699. # hardcode_minus_L: Not really in the search PATH,
  8700. # but as the default location of the library.
  8701. hardcode_minus_L=yes
  8702. ;;
  8703. esac
  8704. fi
  8705. ;;
  8706. irix5* | irix6* | nonstopux*)
  8707. if test "$GCC" = yes; then
  8708. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8709. # Try to use the -exported_symbol ld option, if it does not
  8710. # work, assume that -exports_file does not work either and
  8711. # implicitly export all symbols.
  8712. save_LDFLAGS="$LDFLAGS"
  8713. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8714. cat >conftest.$ac_ext <<_ACEOF
  8715. int foo(void) {}
  8716. _ACEOF
  8717. rm -f conftest.$ac_objext conftest$ac_exeext
  8718. if { (ac_try="$ac_link"
  8719. case "(($ac_try" in
  8720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8721. *) ac_try_echo=$ac_try;;
  8722. esac
  8723. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8724. $as_echo "$ac_try_echo") >&5
  8725. (eval "$ac_link") 2>conftest.er1
  8726. ac_status=$?
  8727. grep -v '^ *+' conftest.er1 >conftest.err
  8728. rm -f conftest.er1
  8729. cat conftest.err >&5
  8730. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8731. (exit $ac_status); } && {
  8732. test -z "$ac_c_werror_flag" ||
  8733. test ! -s conftest.err
  8734. } && test -s conftest$ac_exeext && {
  8735. test "$cross_compiling" = yes ||
  8736. $as_test_x conftest$ac_exeext
  8737. }; then
  8738. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8739. else
  8740. $as_echo "$as_me: failed program was:" >&5
  8741. sed 's/^/| /' conftest.$ac_ext >&5
  8742. fi
  8743. rm -rf conftest.dSYM
  8744. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8745. conftest$ac_exeext conftest.$ac_ext
  8746. LDFLAGS="$save_LDFLAGS"
  8747. else
  8748. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8749. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8750. fi
  8751. archive_cmds_need_lc='no'
  8752. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8753. hardcode_libdir_separator=:
  8754. inherit_rpath=yes
  8755. link_all_deplibs=yes
  8756. ;;
  8757. netbsd*)
  8758. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8759. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8760. else
  8761. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8762. fi
  8763. hardcode_libdir_flag_spec='-R$libdir'
  8764. hardcode_direct=yes
  8765. hardcode_shlibpath_var=no
  8766. ;;
  8767. newsos6)
  8768. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8769. hardcode_direct=yes
  8770. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8771. hardcode_libdir_separator=:
  8772. hardcode_shlibpath_var=no
  8773. ;;
  8774. *nto* | *qnx*)
  8775. ;;
  8776. openbsd*)
  8777. if test -f /usr/libexec/ld.so; then
  8778. hardcode_direct=yes
  8779. hardcode_shlibpath_var=no
  8780. hardcode_direct_absolute=yes
  8781. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8782. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8783. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8784. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8785. export_dynamic_flag_spec='${wl}-E'
  8786. else
  8787. case $host_os in
  8788. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8789. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8790. hardcode_libdir_flag_spec='-R$libdir'
  8791. ;;
  8792. *)
  8793. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8794. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8795. ;;
  8796. esac
  8797. fi
  8798. else
  8799. ld_shlibs=no
  8800. fi
  8801. ;;
  8802. os2*)
  8803. hardcode_libdir_flag_spec='-L$libdir'
  8804. hardcode_minus_L=yes
  8805. allow_undefined_flag=unsupported
  8806. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8807. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8808. ;;
  8809. osf3*)
  8810. if test "$GCC" = yes; then
  8811. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8812. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8813. else
  8814. allow_undefined_flag=' -expect_unresolved \*'
  8815. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8816. fi
  8817. archive_cmds_need_lc='no'
  8818. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8819. hardcode_libdir_separator=:
  8820. ;;
  8821. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8822. if test "$GCC" = yes; then
  8823. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8824. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8825. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8826. else
  8827. allow_undefined_flag=' -expect_unresolved \*'
  8828. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8829. 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~
  8830. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8831. # Both c and cxx compiler support -rpath directly
  8832. hardcode_libdir_flag_spec='-rpath $libdir'
  8833. fi
  8834. archive_cmds_need_lc='no'
  8835. hardcode_libdir_separator=:
  8836. ;;
  8837. solaris*)
  8838. no_undefined_flag=' -z defs'
  8839. if test "$GCC" = yes; then
  8840. wlarc='${wl}'
  8841. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8842. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8843. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8844. else
  8845. case `$CC -V 2>&1` in
  8846. *"Compilers 5.0"*)
  8847. wlarc=''
  8848. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8849. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8850. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8851. ;;
  8852. *)
  8853. wlarc='${wl}'
  8854. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8855. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8856. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8857. ;;
  8858. esac
  8859. fi
  8860. hardcode_libdir_flag_spec='-R$libdir'
  8861. hardcode_shlibpath_var=no
  8862. case $host_os in
  8863. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8864. *)
  8865. # The compiler driver will combine and reorder linker options,
  8866. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8867. # but is careful enough not to reorder.
  8868. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8869. if test "$GCC" = yes; then
  8870. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8871. else
  8872. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8873. fi
  8874. ;;
  8875. esac
  8876. link_all_deplibs=yes
  8877. ;;
  8878. sunos4*)
  8879. if test "x$host_vendor" = xsequent; then
  8880. # Use $CC to link under sequent, because it throws in some extra .o
  8881. # files that make .init and .fini sections work.
  8882. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8883. else
  8884. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8885. fi
  8886. hardcode_libdir_flag_spec='-L$libdir'
  8887. hardcode_direct=yes
  8888. hardcode_minus_L=yes
  8889. hardcode_shlibpath_var=no
  8890. ;;
  8891. sysv4)
  8892. case $host_vendor in
  8893. sni)
  8894. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8895. hardcode_direct=yes # is this really true???
  8896. ;;
  8897. siemens)
  8898. ## LD is ld it makes a PLAMLIB
  8899. ## CC just makes a GrossModule.
  8900. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8901. reload_cmds='$CC -r -o $output$reload_objs'
  8902. hardcode_direct=no
  8903. ;;
  8904. motorola)
  8905. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8906. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8907. ;;
  8908. esac
  8909. runpath_var='LD_RUN_PATH'
  8910. hardcode_shlibpath_var=no
  8911. ;;
  8912. sysv4.3*)
  8913. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8914. hardcode_shlibpath_var=no
  8915. export_dynamic_flag_spec='-Bexport'
  8916. ;;
  8917. sysv4*MP*)
  8918. if test -d /usr/nec; then
  8919. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8920. hardcode_shlibpath_var=no
  8921. runpath_var=LD_RUN_PATH
  8922. hardcode_runpath_var=yes
  8923. ld_shlibs=yes
  8924. fi
  8925. ;;
  8926. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8927. no_undefined_flag='${wl}-z,text'
  8928. archive_cmds_need_lc=no
  8929. hardcode_shlibpath_var=no
  8930. runpath_var='LD_RUN_PATH'
  8931. if test "$GCC" = yes; then
  8932. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8933. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8934. else
  8935. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8936. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8937. fi
  8938. ;;
  8939. sysv5* | sco3.2v5* | sco5v6*)
  8940. # Note: We can NOT use -z defs as we might desire, because we do not
  8941. # link with -lc, and that would cause any symbols used from libc to
  8942. # always be unresolved, which means just about no library would
  8943. # ever link correctly. If we're not using GNU ld we use -z text
  8944. # though, which does catch some bad symbols but isn't as heavy-handed
  8945. # as -z defs.
  8946. no_undefined_flag='${wl}-z,text'
  8947. allow_undefined_flag='${wl}-z,nodefs'
  8948. archive_cmds_need_lc=no
  8949. hardcode_shlibpath_var=no
  8950. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8951. hardcode_libdir_separator=':'
  8952. link_all_deplibs=yes
  8953. export_dynamic_flag_spec='${wl}-Bexport'
  8954. runpath_var='LD_RUN_PATH'
  8955. if test "$GCC" = yes; then
  8956. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8957. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8958. else
  8959. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8960. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8961. fi
  8962. ;;
  8963. uts4*)
  8964. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8965. hardcode_libdir_flag_spec='-L$libdir'
  8966. hardcode_shlibpath_var=no
  8967. ;;
  8968. *)
  8969. ld_shlibs=no
  8970. ;;
  8971. esac
  8972. if test x$host_vendor = xsni; then
  8973. case $host in
  8974. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8975. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8976. ;;
  8977. esac
  8978. fi
  8979. fi
  8980. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8981. $as_echo "$ld_shlibs" >&6; }
  8982. test "$ld_shlibs" = no && can_build_shared=no
  8983. with_gnu_ld=$with_gnu_ld
  8984. #
  8985. # Do we need to explicitly link libc?
  8986. #
  8987. case "x$archive_cmds_need_lc" in
  8988. x|xyes)
  8989. # Assume -lc should be added
  8990. archive_cmds_need_lc=yes
  8991. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8992. case $archive_cmds in
  8993. *'~'*)
  8994. # FIXME: we may have to deal with multi-command sequences.
  8995. ;;
  8996. '$CC '*)
  8997. # Test whether the compiler implicitly links with -lc since on some
  8998. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8999. # to ld, don't add -lc before -lgcc.
  9000. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9001. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9002. $RM conftest*
  9003. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9004. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9005. (eval $ac_compile) 2>&5
  9006. ac_status=$?
  9007. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9008. (exit $ac_status); } 2>conftest.err; then
  9009. soname=conftest
  9010. lib=conftest
  9011. libobjs=conftest.$ac_objext
  9012. deplibs=
  9013. wl=$lt_prog_compiler_wl
  9014. pic_flag=$lt_prog_compiler_pic
  9015. compiler_flags=-v
  9016. linker_flags=-v
  9017. verstring=
  9018. output_objdir=.
  9019. libname=conftest
  9020. lt_save_allow_undefined_flag=$allow_undefined_flag
  9021. allow_undefined_flag=
  9022. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9023. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9024. ac_status=$?
  9025. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9026. (exit $ac_status); }
  9027. then
  9028. archive_cmds_need_lc=no
  9029. else
  9030. archive_cmds_need_lc=yes
  9031. fi
  9032. allow_undefined_flag=$lt_save_allow_undefined_flag
  9033. else
  9034. cat conftest.err 1>&5
  9035. fi
  9036. $RM conftest*
  9037. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9038. $as_echo "$archive_cmds_need_lc" >&6; }
  9039. ;;
  9040. esac
  9041. fi
  9042. ;;
  9043. esac
  9044. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9045. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9046. if test "$GCC" = yes; then
  9047. case $host_os in
  9048. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9049. *) lt_awk_arg="/^libraries:/" ;;
  9050. esac
  9051. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9052. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9053. # if the path contains ";" then we assume it to be the separator
  9054. # otherwise default to the standard path separator (i.e. ":") - it is
  9055. # assumed that no part of a normal pathname contains ";" but that should
  9056. # okay in the real world where ";" in dirpaths is itself problematic.
  9057. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9058. else
  9059. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9060. fi
  9061. # Ok, now we have the path, separated by spaces, we can step through it
  9062. # and add multilib dir if necessary.
  9063. lt_tmp_lt_search_path_spec=
  9064. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9065. for lt_sys_path in $lt_search_path_spec; do
  9066. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9067. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9068. else
  9069. test -d "$lt_sys_path" && \
  9070. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9071. fi
  9072. done
  9073. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9074. BEGIN {RS=" "; FS="/|\n";} {
  9075. lt_foo="";
  9076. lt_count=0;
  9077. for (lt_i = NF; lt_i > 0; lt_i--) {
  9078. if ($lt_i != "" && $lt_i != ".") {
  9079. if ($lt_i == "..") {
  9080. lt_count++;
  9081. } else {
  9082. if (lt_count == 0) {
  9083. lt_foo="/" $lt_i lt_foo;
  9084. } else {
  9085. lt_count--;
  9086. }
  9087. }
  9088. }
  9089. }
  9090. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9091. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9092. }'`
  9093. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9094. else
  9095. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9096. fi
  9097. library_names_spec=
  9098. libname_spec='lib$name'
  9099. soname_spec=
  9100. shrext_cmds=".so"
  9101. postinstall_cmds=
  9102. postuninstall_cmds=
  9103. finish_cmds=
  9104. finish_eval=
  9105. shlibpath_var=
  9106. shlibpath_overrides_runpath=unknown
  9107. version_type=none
  9108. dynamic_linker="$host_os ld.so"
  9109. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9110. need_lib_prefix=unknown
  9111. hardcode_into_libs=no
  9112. # when you set need_version to no, make sure it does not cause -set_version
  9113. # flags to be left without arguments
  9114. need_version=unknown
  9115. case $host_os in
  9116. aix3*)
  9117. version_type=linux
  9118. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9119. shlibpath_var=LIBPATH
  9120. # AIX 3 has no versioning support, so we append a major version to the name.
  9121. soname_spec='${libname}${release}${shared_ext}$major'
  9122. ;;
  9123. aix[4-9]*)
  9124. version_type=linux
  9125. need_lib_prefix=no
  9126. need_version=no
  9127. hardcode_into_libs=yes
  9128. if test "$host_cpu" = ia64; then
  9129. # AIX 5 supports IA64
  9130. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9131. shlibpath_var=LD_LIBRARY_PATH
  9132. else
  9133. # With GCC up to 2.95.x, collect2 would create an import file
  9134. # for dependence libraries. The import file would start with
  9135. # the line `#! .'. This would cause the generated library to
  9136. # depend on `.', always an invalid library. This was fixed in
  9137. # development snapshots of GCC prior to 3.0.
  9138. case $host_os in
  9139. aix4 | aix4.[01] | aix4.[01].*)
  9140. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9141. echo ' yes '
  9142. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9143. :
  9144. else
  9145. can_build_shared=no
  9146. fi
  9147. ;;
  9148. esac
  9149. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9150. # soname into executable. Probably we can add versioning support to
  9151. # collect2, so additional links can be useful in future.
  9152. if test "$aix_use_runtimelinking" = yes; then
  9153. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9154. # instead of lib<name>.a to let people know that these are not
  9155. # typical AIX shared libraries.
  9156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9157. else
  9158. # We preserve .a as extension for shared libraries through AIX4.2
  9159. # and later when we are not doing run time linking.
  9160. library_names_spec='${libname}${release}.a $libname.a'
  9161. soname_spec='${libname}${release}${shared_ext}$major'
  9162. fi
  9163. shlibpath_var=LIBPATH
  9164. fi
  9165. ;;
  9166. amigaos*)
  9167. case $host_cpu in
  9168. powerpc)
  9169. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9170. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9172. ;;
  9173. m68k)
  9174. library_names_spec='$libname.ixlibrary $libname.a'
  9175. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9176. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9177. ;;
  9178. esac
  9179. ;;
  9180. beos*)
  9181. library_names_spec='${libname}${shared_ext}'
  9182. dynamic_linker="$host_os ld.so"
  9183. shlibpath_var=LIBRARY_PATH
  9184. ;;
  9185. bsdi[45]*)
  9186. version_type=linux
  9187. need_version=no
  9188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9189. soname_spec='${libname}${release}${shared_ext}$major'
  9190. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9191. shlibpath_var=LD_LIBRARY_PATH
  9192. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9193. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9194. # the default ld.so.conf also contains /usr/contrib/lib and
  9195. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9196. # libtool to hard-code these into programs
  9197. ;;
  9198. cygwin* | mingw* | pw32* | cegcc*)
  9199. version_type=windows
  9200. shrext_cmds=".dll"
  9201. need_version=no
  9202. need_lib_prefix=no
  9203. case $GCC,$host_os in
  9204. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9205. library_names_spec='$libname.dll.a'
  9206. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9207. postinstall_cmds='base_file=`basename \${file}`~
  9208. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9209. dldir=$destdir/`dirname \$dlpath`~
  9210. test -d \$dldir || mkdir -p \$dldir~
  9211. $install_prog $dir/$dlname \$dldir/$dlname~
  9212. chmod a+x \$dldir/$dlname~
  9213. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9214. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9215. fi'
  9216. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9217. dlpath=$dir/\$dldll~
  9218. $RM \$dlpath'
  9219. shlibpath_overrides_runpath=yes
  9220. case $host_os in
  9221. cygwin*)
  9222. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9223. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9224. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9225. ;;
  9226. mingw* | cegcc*)
  9227. # MinGW DLLs use traditional 'lib' prefix
  9228. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9229. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9230. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9231. # It is most probably a Windows format PATH printed by
  9232. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9233. # path with ; separators, and with drive letters. We can handle the
  9234. # drive letters (cygwin fileutils understands them), so leave them,
  9235. # especially as we might pass files found there to a mingw objdump,
  9236. # which wouldn't understand a cygwinified path. Ahh.
  9237. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9238. else
  9239. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9240. fi
  9241. ;;
  9242. pw32*)
  9243. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9244. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9245. ;;
  9246. esac
  9247. ;;
  9248. *)
  9249. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9250. ;;
  9251. esac
  9252. dynamic_linker='Win32 ld.exe'
  9253. # FIXME: first we should search . and the directory the executable is in
  9254. shlibpath_var=PATH
  9255. ;;
  9256. darwin* | rhapsody*)
  9257. dynamic_linker="$host_os dyld"
  9258. version_type=darwin
  9259. need_lib_prefix=no
  9260. need_version=no
  9261. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9262. soname_spec='${libname}${release}${major}$shared_ext'
  9263. shlibpath_overrides_runpath=yes
  9264. shlibpath_var=DYLD_LIBRARY_PATH
  9265. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9266. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9267. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9268. ;;
  9269. dgux*)
  9270. version_type=linux
  9271. need_lib_prefix=no
  9272. need_version=no
  9273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9274. soname_spec='${libname}${release}${shared_ext}$major'
  9275. shlibpath_var=LD_LIBRARY_PATH
  9276. ;;
  9277. freebsd1*)
  9278. dynamic_linker=no
  9279. ;;
  9280. freebsd* | dragonfly*)
  9281. # DragonFly does not have aout. When/if they implement a new
  9282. # versioning mechanism, adjust this.
  9283. if test -x /usr/bin/objformat; then
  9284. objformat=`/usr/bin/objformat`
  9285. else
  9286. case $host_os in
  9287. freebsd[123]*) objformat=aout ;;
  9288. *) objformat=elf ;;
  9289. esac
  9290. fi
  9291. version_type=freebsd-$objformat
  9292. case $version_type in
  9293. freebsd-elf*)
  9294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9295. need_version=no
  9296. need_lib_prefix=no
  9297. ;;
  9298. freebsd-*)
  9299. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9300. need_version=yes
  9301. ;;
  9302. esac
  9303. shlibpath_var=LD_LIBRARY_PATH
  9304. case $host_os in
  9305. freebsd2*)
  9306. shlibpath_overrides_runpath=yes
  9307. ;;
  9308. freebsd3.[01]* | freebsdelf3.[01]*)
  9309. shlibpath_overrides_runpath=yes
  9310. hardcode_into_libs=yes
  9311. ;;
  9312. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9313. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9314. shlibpath_overrides_runpath=no
  9315. hardcode_into_libs=yes
  9316. ;;
  9317. *) # from 4.6 on, and DragonFly
  9318. shlibpath_overrides_runpath=yes
  9319. hardcode_into_libs=yes
  9320. ;;
  9321. esac
  9322. ;;
  9323. gnu*)
  9324. version_type=linux
  9325. need_lib_prefix=no
  9326. need_version=no
  9327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9328. soname_spec='${libname}${release}${shared_ext}$major'
  9329. shlibpath_var=LD_LIBRARY_PATH
  9330. hardcode_into_libs=yes
  9331. ;;
  9332. hpux9* | hpux10* | hpux11*)
  9333. # Give a soname corresponding to the major version so that dld.sl refuses to
  9334. # link against other versions.
  9335. version_type=sunos
  9336. need_lib_prefix=no
  9337. need_version=no
  9338. case $host_cpu in
  9339. ia64*)
  9340. shrext_cmds='.so'
  9341. hardcode_into_libs=yes
  9342. dynamic_linker="$host_os dld.so"
  9343. shlibpath_var=LD_LIBRARY_PATH
  9344. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9346. soname_spec='${libname}${release}${shared_ext}$major'
  9347. if test "X$HPUX_IA64_MODE" = X32; then
  9348. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9349. else
  9350. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9351. fi
  9352. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9353. ;;
  9354. hppa*64*)
  9355. shrext_cmds='.sl'
  9356. hardcode_into_libs=yes
  9357. dynamic_linker="$host_os dld.sl"
  9358. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9359. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9361. soname_spec='${libname}${release}${shared_ext}$major'
  9362. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9363. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9364. ;;
  9365. *)
  9366. shrext_cmds='.sl'
  9367. dynamic_linker="$host_os dld.sl"
  9368. shlibpath_var=SHLIB_PATH
  9369. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9371. soname_spec='${libname}${release}${shared_ext}$major'
  9372. ;;
  9373. esac
  9374. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9375. postinstall_cmds='chmod 555 $lib'
  9376. ;;
  9377. interix[3-9]*)
  9378. version_type=linux
  9379. need_lib_prefix=no
  9380. need_version=no
  9381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9382. soname_spec='${libname}${release}${shared_ext}$major'
  9383. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9384. shlibpath_var=LD_LIBRARY_PATH
  9385. shlibpath_overrides_runpath=no
  9386. hardcode_into_libs=yes
  9387. ;;
  9388. irix5* | irix6* | nonstopux*)
  9389. case $host_os in
  9390. nonstopux*) version_type=nonstopux ;;
  9391. *)
  9392. if test "$lt_cv_prog_gnu_ld" = yes; then
  9393. version_type=linux
  9394. else
  9395. version_type=irix
  9396. fi ;;
  9397. esac
  9398. need_lib_prefix=no
  9399. need_version=no
  9400. soname_spec='${libname}${release}${shared_ext}$major'
  9401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9402. case $host_os in
  9403. irix5* | nonstopux*)
  9404. libsuff= shlibsuff=
  9405. ;;
  9406. *)
  9407. case $LD in # libtool.m4 will add one of these switches to LD
  9408. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9409. libsuff= shlibsuff= libmagic=32-bit;;
  9410. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9411. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9412. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9413. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9414. *) libsuff= shlibsuff= libmagic=never-match;;
  9415. esac
  9416. ;;
  9417. esac
  9418. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9419. shlibpath_overrides_runpath=no
  9420. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9421. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9422. hardcode_into_libs=yes
  9423. ;;
  9424. # No shared lib support for Linux oldld, aout, or coff.
  9425. linux*oldld* | linux*aout* | linux*coff*)
  9426. dynamic_linker=no
  9427. ;;
  9428. # This must be Linux ELF.
  9429. linux* | k*bsd*-gnu)
  9430. version_type=linux
  9431. need_lib_prefix=no
  9432. need_version=no
  9433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9434. soname_spec='${libname}${release}${shared_ext}$major'
  9435. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9436. shlibpath_var=LD_LIBRARY_PATH
  9437. shlibpath_overrides_runpath=no
  9438. # Some binutils ld are patched to set DT_RUNPATH
  9439. save_LDFLAGS=$LDFLAGS
  9440. save_libdir=$libdir
  9441. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9442. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9443. cat >conftest.$ac_ext <<_ACEOF
  9444. /* confdefs.h. */
  9445. _ACEOF
  9446. cat confdefs.h >>conftest.$ac_ext
  9447. cat >>conftest.$ac_ext <<_ACEOF
  9448. /* end confdefs.h. */
  9449. int
  9450. main ()
  9451. {
  9452. ;
  9453. return 0;
  9454. }
  9455. _ACEOF
  9456. rm -f conftest.$ac_objext conftest$ac_exeext
  9457. if { (ac_try="$ac_link"
  9458. case "(($ac_try" in
  9459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9460. *) ac_try_echo=$ac_try;;
  9461. esac
  9462. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9463. $as_echo "$ac_try_echo") >&5
  9464. (eval "$ac_link") 2>conftest.er1
  9465. ac_status=$?
  9466. grep -v '^ *+' conftest.er1 >conftest.err
  9467. rm -f conftest.er1
  9468. cat conftest.err >&5
  9469. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9470. (exit $ac_status); } && {
  9471. test -z "$ac_c_werror_flag" ||
  9472. test ! -s conftest.err
  9473. } && test -s conftest$ac_exeext && {
  9474. test "$cross_compiling" = yes ||
  9475. $as_test_x conftest$ac_exeext
  9476. }; then
  9477. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  9478. shlibpath_overrides_runpath=yes
  9479. fi
  9480. else
  9481. $as_echo "$as_me: failed program was:" >&5
  9482. sed 's/^/| /' conftest.$ac_ext >&5
  9483. fi
  9484. rm -rf conftest.dSYM
  9485. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9486. conftest$ac_exeext conftest.$ac_ext
  9487. LDFLAGS=$save_LDFLAGS
  9488. libdir=$save_libdir
  9489. # This implies no fast_install, which is unacceptable.
  9490. # Some rework will be needed to allow for fast_install
  9491. # before this can be enabled.
  9492. hardcode_into_libs=yes
  9493. # Append ld.so.conf contents to the search path
  9494. if test -f /etc/ld.so.conf; then
  9495. 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;/^$/d' | tr '\n' ' '`
  9496. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9497. fi
  9498. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9499. # powerpc, because MkLinux only supported shared libraries with the
  9500. # GNU dynamic linker. Since this was broken with cross compilers,
  9501. # most powerpc-linux boxes support dynamic linking these days and
  9502. # people can always --disable-shared, the test was removed, and we
  9503. # assume the GNU/Linux dynamic linker is in use.
  9504. dynamic_linker='GNU/Linux ld.so'
  9505. ;;
  9506. netbsd*)
  9507. version_type=sunos
  9508. need_lib_prefix=no
  9509. need_version=no
  9510. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9512. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9513. dynamic_linker='NetBSD (a.out) ld.so'
  9514. else
  9515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9516. soname_spec='${libname}${release}${shared_ext}$major'
  9517. dynamic_linker='NetBSD ld.elf_so'
  9518. fi
  9519. shlibpath_var=LD_LIBRARY_PATH
  9520. shlibpath_overrides_runpath=yes
  9521. hardcode_into_libs=yes
  9522. ;;
  9523. newsos6)
  9524. version_type=linux
  9525. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9526. shlibpath_var=LD_LIBRARY_PATH
  9527. shlibpath_overrides_runpath=yes
  9528. ;;
  9529. *nto* | *qnx*)
  9530. version_type=qnx
  9531. need_lib_prefix=no
  9532. need_version=no
  9533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9534. soname_spec='${libname}${release}${shared_ext}$major'
  9535. shlibpath_var=LD_LIBRARY_PATH
  9536. shlibpath_overrides_runpath=no
  9537. hardcode_into_libs=yes
  9538. dynamic_linker='ldqnx.so'
  9539. ;;
  9540. openbsd*)
  9541. version_type=sunos
  9542. sys_lib_dlsearch_path_spec="/usr/lib"
  9543. need_lib_prefix=no
  9544. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9545. case $host_os in
  9546. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9547. *) need_version=no ;;
  9548. esac
  9549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9550. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9551. shlibpath_var=LD_LIBRARY_PATH
  9552. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9553. case $host_os in
  9554. openbsd2.[89] | openbsd2.[89].*)
  9555. shlibpath_overrides_runpath=no
  9556. ;;
  9557. *)
  9558. shlibpath_overrides_runpath=yes
  9559. ;;
  9560. esac
  9561. else
  9562. shlibpath_overrides_runpath=yes
  9563. fi
  9564. ;;
  9565. os2*)
  9566. libname_spec='$name'
  9567. shrext_cmds=".dll"
  9568. need_lib_prefix=no
  9569. library_names_spec='$libname${shared_ext} $libname.a'
  9570. dynamic_linker='OS/2 ld.exe'
  9571. shlibpath_var=LIBPATH
  9572. ;;
  9573. osf3* | osf4* | osf5*)
  9574. version_type=osf
  9575. need_lib_prefix=no
  9576. need_version=no
  9577. soname_spec='${libname}${release}${shared_ext}$major'
  9578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9579. shlibpath_var=LD_LIBRARY_PATH
  9580. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9581. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9582. ;;
  9583. rdos*)
  9584. dynamic_linker=no
  9585. ;;
  9586. solaris*)
  9587. version_type=linux
  9588. need_lib_prefix=no
  9589. need_version=no
  9590. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9591. soname_spec='${libname}${release}${shared_ext}$major'
  9592. shlibpath_var=LD_LIBRARY_PATH
  9593. shlibpath_overrides_runpath=yes
  9594. hardcode_into_libs=yes
  9595. # ldd complains unless libraries are executable
  9596. postinstall_cmds='chmod +x $lib'
  9597. ;;
  9598. sunos4*)
  9599. version_type=sunos
  9600. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9601. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9602. shlibpath_var=LD_LIBRARY_PATH
  9603. shlibpath_overrides_runpath=yes
  9604. if test "$with_gnu_ld" = yes; then
  9605. need_lib_prefix=no
  9606. fi
  9607. need_version=yes
  9608. ;;
  9609. sysv4 | sysv4.3*)
  9610. version_type=linux
  9611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9612. soname_spec='${libname}${release}${shared_ext}$major'
  9613. shlibpath_var=LD_LIBRARY_PATH
  9614. case $host_vendor in
  9615. sni)
  9616. shlibpath_overrides_runpath=no
  9617. need_lib_prefix=no
  9618. runpath_var=LD_RUN_PATH
  9619. ;;
  9620. siemens)
  9621. need_lib_prefix=no
  9622. ;;
  9623. motorola)
  9624. need_lib_prefix=no
  9625. need_version=no
  9626. shlibpath_overrides_runpath=no
  9627. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9628. ;;
  9629. esac
  9630. ;;
  9631. sysv4*MP*)
  9632. if test -d /usr/nec ;then
  9633. version_type=linux
  9634. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9635. soname_spec='$libname${shared_ext}.$major'
  9636. shlibpath_var=LD_LIBRARY_PATH
  9637. fi
  9638. ;;
  9639. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9640. version_type=freebsd-elf
  9641. need_lib_prefix=no
  9642. need_version=no
  9643. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9644. soname_spec='${libname}${release}${shared_ext}$major'
  9645. shlibpath_var=LD_LIBRARY_PATH
  9646. shlibpath_overrides_runpath=yes
  9647. hardcode_into_libs=yes
  9648. if test "$with_gnu_ld" = yes; then
  9649. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9650. else
  9651. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9652. case $host_os in
  9653. sco3.2v5*)
  9654. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9655. ;;
  9656. esac
  9657. fi
  9658. sys_lib_dlsearch_path_spec='/usr/lib'
  9659. ;;
  9660. tpf*)
  9661. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9662. version_type=linux
  9663. need_lib_prefix=no
  9664. need_version=no
  9665. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9666. shlibpath_var=LD_LIBRARY_PATH
  9667. shlibpath_overrides_runpath=no
  9668. hardcode_into_libs=yes
  9669. ;;
  9670. uts4*)
  9671. version_type=linux
  9672. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9673. soname_spec='${libname}${release}${shared_ext}$major'
  9674. shlibpath_var=LD_LIBRARY_PATH
  9675. ;;
  9676. *)
  9677. dynamic_linker=no
  9678. ;;
  9679. esac
  9680. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  9681. $as_echo "$dynamic_linker" >&6; }
  9682. test "$dynamic_linker" = no && can_build_shared=no
  9683. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9684. if test "$GCC" = yes; then
  9685. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9686. fi
  9687. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9688. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9689. fi
  9690. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9691. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9692. fi
  9693. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  9694. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9695. hardcode_action=
  9696. if test -n "$hardcode_libdir_flag_spec" ||
  9697. test -n "$runpath_var" ||
  9698. test "X$hardcode_automatic" = "Xyes" ; then
  9699. # We can hardcode non-existent directories.
  9700. if test "$hardcode_direct" != no &&
  9701. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9702. # have to relink, otherwise we might link with an installed library
  9703. # when we should be linking with a yet-to-be-installed one
  9704. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9705. test "$hardcode_minus_L" != no; then
  9706. # Linking always hardcodes the temporary library directory.
  9707. hardcode_action=relink
  9708. else
  9709. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9710. hardcode_action=immediate
  9711. fi
  9712. else
  9713. # We cannot hardcode anything, or else we can only hardcode existing
  9714. # directories.
  9715. hardcode_action=unsupported
  9716. fi
  9717. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  9718. $as_echo "$hardcode_action" >&6; }
  9719. if test "$hardcode_action" = relink ||
  9720. test "$inherit_rpath" = yes; then
  9721. # Fast installation is not supported
  9722. enable_fast_install=no
  9723. elif test "$shlibpath_overrides_runpath" = yes ||
  9724. test "$enable_shared" = no; then
  9725. # Fast installation is not necessary
  9726. enable_fast_install=needless
  9727. fi
  9728. if test "x$enable_dlopen" != xyes; then
  9729. enable_dlopen=unknown
  9730. enable_dlopen_self=unknown
  9731. enable_dlopen_self_static=unknown
  9732. else
  9733. lt_cv_dlopen=no
  9734. lt_cv_dlopen_libs=
  9735. case $host_os in
  9736. beos*)
  9737. lt_cv_dlopen="load_add_on"
  9738. lt_cv_dlopen_libs=
  9739. lt_cv_dlopen_self=yes
  9740. ;;
  9741. mingw* | pw32* | cegcc*)
  9742. lt_cv_dlopen="LoadLibrary"
  9743. lt_cv_dlopen_libs=
  9744. ;;
  9745. cygwin*)
  9746. lt_cv_dlopen="dlopen"
  9747. lt_cv_dlopen_libs=
  9748. ;;
  9749. darwin*)
  9750. # if libdl is installed we need to link against it
  9751. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9752. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9753. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9754. $as_echo_n "(cached) " >&6
  9755. else
  9756. ac_check_lib_save_LIBS=$LIBS
  9757. LIBS="-ldl $LIBS"
  9758. cat >conftest.$ac_ext <<_ACEOF
  9759. /* confdefs.h. */
  9760. _ACEOF
  9761. cat confdefs.h >>conftest.$ac_ext
  9762. cat >>conftest.$ac_ext <<_ACEOF
  9763. /* end confdefs.h. */
  9764. /* Override any GCC internal prototype to avoid an error.
  9765. Use char because int might match the return type of a GCC
  9766. builtin and then its argument prototype would still apply. */
  9767. #ifdef __cplusplus
  9768. extern "C"
  9769. #endif
  9770. char dlopen ();
  9771. int
  9772. main ()
  9773. {
  9774. return dlopen ();
  9775. ;
  9776. return 0;
  9777. }
  9778. _ACEOF
  9779. rm -f conftest.$ac_objext conftest$ac_exeext
  9780. if { (ac_try="$ac_link"
  9781. case "(($ac_try" in
  9782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9783. *) ac_try_echo=$ac_try;;
  9784. esac
  9785. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9786. $as_echo "$ac_try_echo") >&5
  9787. (eval "$ac_link") 2>conftest.er1
  9788. ac_status=$?
  9789. grep -v '^ *+' conftest.er1 >conftest.err
  9790. rm -f conftest.er1
  9791. cat conftest.err >&5
  9792. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9793. (exit $ac_status); } && {
  9794. test -z "$ac_c_werror_flag" ||
  9795. test ! -s conftest.err
  9796. } && test -s conftest$ac_exeext && {
  9797. test "$cross_compiling" = yes ||
  9798. $as_test_x conftest$ac_exeext
  9799. }; then
  9800. ac_cv_lib_dl_dlopen=yes
  9801. else
  9802. $as_echo "$as_me: failed program was:" >&5
  9803. sed 's/^/| /' conftest.$ac_ext >&5
  9804. ac_cv_lib_dl_dlopen=no
  9805. fi
  9806. rm -rf conftest.dSYM
  9807. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9808. conftest$ac_exeext conftest.$ac_ext
  9809. LIBS=$ac_check_lib_save_LIBS
  9810. fi
  9811. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9812. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9813. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9814. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9815. else
  9816. lt_cv_dlopen="dyld"
  9817. lt_cv_dlopen_libs=
  9818. lt_cv_dlopen_self=yes
  9819. fi
  9820. ;;
  9821. *)
  9822. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  9823. $as_echo_n "checking for shl_load... " >&6; }
  9824. if test "${ac_cv_func_shl_load+set}" = set; then
  9825. $as_echo_n "(cached) " >&6
  9826. else
  9827. cat >conftest.$ac_ext <<_ACEOF
  9828. /* confdefs.h. */
  9829. _ACEOF
  9830. cat confdefs.h >>conftest.$ac_ext
  9831. cat >>conftest.$ac_ext <<_ACEOF
  9832. /* end confdefs.h. */
  9833. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9834. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9835. #define shl_load innocuous_shl_load
  9836. /* System header to define __stub macros and hopefully few prototypes,
  9837. which can conflict with char shl_load (); below.
  9838. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9839. <limits.h> exists even on freestanding compilers. */
  9840. #ifdef __STDC__
  9841. # include <limits.h>
  9842. #else
  9843. # include <assert.h>
  9844. #endif
  9845. #undef shl_load
  9846. /* Override any GCC internal prototype to avoid an error.
  9847. Use char because int might match the return type of a GCC
  9848. builtin and then its argument prototype would still apply. */
  9849. #ifdef __cplusplus
  9850. extern "C"
  9851. #endif
  9852. char shl_load ();
  9853. /* The GNU C library defines this for functions which it implements
  9854. to always fail with ENOSYS. Some functions are actually named
  9855. something starting with __ and the normal name is an alias. */
  9856. #if defined __stub_shl_load || defined __stub___shl_load
  9857. choke me
  9858. #endif
  9859. int
  9860. main ()
  9861. {
  9862. return shl_load ();
  9863. ;
  9864. return 0;
  9865. }
  9866. _ACEOF
  9867. rm -f conftest.$ac_objext conftest$ac_exeext
  9868. if { (ac_try="$ac_link"
  9869. case "(($ac_try" in
  9870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9871. *) ac_try_echo=$ac_try;;
  9872. esac
  9873. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9874. $as_echo "$ac_try_echo") >&5
  9875. (eval "$ac_link") 2>conftest.er1
  9876. ac_status=$?
  9877. grep -v '^ *+' conftest.er1 >conftest.err
  9878. rm -f conftest.er1
  9879. cat conftest.err >&5
  9880. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9881. (exit $ac_status); } && {
  9882. test -z "$ac_c_werror_flag" ||
  9883. test ! -s conftest.err
  9884. } && test -s conftest$ac_exeext && {
  9885. test "$cross_compiling" = yes ||
  9886. $as_test_x conftest$ac_exeext
  9887. }; then
  9888. ac_cv_func_shl_load=yes
  9889. else
  9890. $as_echo "$as_me: failed program was:" >&5
  9891. sed 's/^/| /' conftest.$ac_ext >&5
  9892. ac_cv_func_shl_load=no
  9893. fi
  9894. rm -rf conftest.dSYM
  9895. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9896. conftest$ac_exeext conftest.$ac_ext
  9897. fi
  9898. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9899. $as_echo "$ac_cv_func_shl_load" >&6; }
  9900. if test "x$ac_cv_func_shl_load" = x""yes; then
  9901. lt_cv_dlopen="shl_load"
  9902. else
  9903. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9904. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9905. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9906. $as_echo_n "(cached) " >&6
  9907. else
  9908. ac_check_lib_save_LIBS=$LIBS
  9909. LIBS="-ldld $LIBS"
  9910. cat >conftest.$ac_ext <<_ACEOF
  9911. /* confdefs.h. */
  9912. _ACEOF
  9913. cat confdefs.h >>conftest.$ac_ext
  9914. cat >>conftest.$ac_ext <<_ACEOF
  9915. /* end confdefs.h. */
  9916. /* Override any GCC internal prototype to avoid an error.
  9917. Use char because int might match the return type of a GCC
  9918. builtin and then its argument prototype would still apply. */
  9919. #ifdef __cplusplus
  9920. extern "C"
  9921. #endif
  9922. char shl_load ();
  9923. int
  9924. main ()
  9925. {
  9926. return shl_load ();
  9927. ;
  9928. return 0;
  9929. }
  9930. _ACEOF
  9931. rm -f conftest.$ac_objext conftest$ac_exeext
  9932. if { (ac_try="$ac_link"
  9933. case "(($ac_try" in
  9934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9935. *) ac_try_echo=$ac_try;;
  9936. esac
  9937. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9938. $as_echo "$ac_try_echo") >&5
  9939. (eval "$ac_link") 2>conftest.er1
  9940. ac_status=$?
  9941. grep -v '^ *+' conftest.er1 >conftest.err
  9942. rm -f conftest.er1
  9943. cat conftest.err >&5
  9944. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9945. (exit $ac_status); } && {
  9946. test -z "$ac_c_werror_flag" ||
  9947. test ! -s conftest.err
  9948. } && test -s conftest$ac_exeext && {
  9949. test "$cross_compiling" = yes ||
  9950. $as_test_x conftest$ac_exeext
  9951. }; then
  9952. ac_cv_lib_dld_shl_load=yes
  9953. else
  9954. $as_echo "$as_me: failed program was:" >&5
  9955. sed 's/^/| /' conftest.$ac_ext >&5
  9956. ac_cv_lib_dld_shl_load=no
  9957. fi
  9958. rm -rf conftest.dSYM
  9959. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9960. conftest$ac_exeext conftest.$ac_ext
  9961. LIBS=$ac_check_lib_save_LIBS
  9962. fi
  9963. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9964. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9965. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  9966. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9967. else
  9968. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  9969. $as_echo_n "checking for dlopen... " >&6; }
  9970. if test "${ac_cv_func_dlopen+set}" = set; then
  9971. $as_echo_n "(cached) " >&6
  9972. else
  9973. cat >conftest.$ac_ext <<_ACEOF
  9974. /* confdefs.h. */
  9975. _ACEOF
  9976. cat confdefs.h >>conftest.$ac_ext
  9977. cat >>conftest.$ac_ext <<_ACEOF
  9978. /* end confdefs.h. */
  9979. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  9980. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9981. #define dlopen innocuous_dlopen
  9982. /* System header to define __stub macros and hopefully few prototypes,
  9983. which can conflict with char dlopen (); below.
  9984. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9985. <limits.h> exists even on freestanding compilers. */
  9986. #ifdef __STDC__
  9987. # include <limits.h>
  9988. #else
  9989. # include <assert.h>
  9990. #endif
  9991. #undef dlopen
  9992. /* Override any GCC internal prototype to avoid an error.
  9993. Use char because int might match the return type of a GCC
  9994. builtin and then its argument prototype would still apply. */
  9995. #ifdef __cplusplus
  9996. extern "C"
  9997. #endif
  9998. char dlopen ();
  9999. /* The GNU C library defines this for functions which it implements
  10000. to always fail with ENOSYS. Some functions are actually named
  10001. something starting with __ and the normal name is an alias. */
  10002. #if defined __stub_dlopen || defined __stub___dlopen
  10003. choke me
  10004. #endif
  10005. int
  10006. main ()
  10007. {
  10008. return dlopen ();
  10009. ;
  10010. return 0;
  10011. }
  10012. _ACEOF
  10013. rm -f conftest.$ac_objext conftest$ac_exeext
  10014. if { (ac_try="$ac_link"
  10015. case "(($ac_try" in
  10016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10017. *) ac_try_echo=$ac_try;;
  10018. esac
  10019. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10020. $as_echo "$ac_try_echo") >&5
  10021. (eval "$ac_link") 2>conftest.er1
  10022. ac_status=$?
  10023. grep -v '^ *+' conftest.er1 >conftest.err
  10024. rm -f conftest.er1
  10025. cat conftest.err >&5
  10026. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10027. (exit $ac_status); } && {
  10028. test -z "$ac_c_werror_flag" ||
  10029. test ! -s conftest.err
  10030. } && test -s conftest$ac_exeext && {
  10031. test "$cross_compiling" = yes ||
  10032. $as_test_x conftest$ac_exeext
  10033. }; then
  10034. ac_cv_func_dlopen=yes
  10035. else
  10036. $as_echo "$as_me: failed program was:" >&5
  10037. sed 's/^/| /' conftest.$ac_ext >&5
  10038. ac_cv_func_dlopen=no
  10039. fi
  10040. rm -rf conftest.dSYM
  10041. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10042. conftest$ac_exeext conftest.$ac_ext
  10043. fi
  10044. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10045. $as_echo "$ac_cv_func_dlopen" >&6; }
  10046. if test "x$ac_cv_func_dlopen" = x""yes; then
  10047. lt_cv_dlopen="dlopen"
  10048. else
  10049. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10050. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10051. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10052. $as_echo_n "(cached) " >&6
  10053. else
  10054. ac_check_lib_save_LIBS=$LIBS
  10055. LIBS="-ldl $LIBS"
  10056. cat >conftest.$ac_ext <<_ACEOF
  10057. /* confdefs.h. */
  10058. _ACEOF
  10059. cat confdefs.h >>conftest.$ac_ext
  10060. cat >>conftest.$ac_ext <<_ACEOF
  10061. /* end confdefs.h. */
  10062. /* Override any GCC internal prototype to avoid an error.
  10063. Use char because int might match the return type of a GCC
  10064. builtin and then its argument prototype would still apply. */
  10065. #ifdef __cplusplus
  10066. extern "C"
  10067. #endif
  10068. char dlopen ();
  10069. int
  10070. main ()
  10071. {
  10072. return dlopen ();
  10073. ;
  10074. return 0;
  10075. }
  10076. _ACEOF
  10077. rm -f conftest.$ac_objext conftest$ac_exeext
  10078. if { (ac_try="$ac_link"
  10079. case "(($ac_try" in
  10080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10081. *) ac_try_echo=$ac_try;;
  10082. esac
  10083. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10084. $as_echo "$ac_try_echo") >&5
  10085. (eval "$ac_link") 2>conftest.er1
  10086. ac_status=$?
  10087. grep -v '^ *+' conftest.er1 >conftest.err
  10088. rm -f conftest.er1
  10089. cat conftest.err >&5
  10090. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10091. (exit $ac_status); } && {
  10092. test -z "$ac_c_werror_flag" ||
  10093. test ! -s conftest.err
  10094. } && test -s conftest$ac_exeext && {
  10095. test "$cross_compiling" = yes ||
  10096. $as_test_x conftest$ac_exeext
  10097. }; then
  10098. ac_cv_lib_dl_dlopen=yes
  10099. else
  10100. $as_echo "$as_me: failed program was:" >&5
  10101. sed 's/^/| /' conftest.$ac_ext >&5
  10102. ac_cv_lib_dl_dlopen=no
  10103. fi
  10104. rm -rf conftest.dSYM
  10105. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10106. conftest$ac_exeext conftest.$ac_ext
  10107. LIBS=$ac_check_lib_save_LIBS
  10108. fi
  10109. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10110. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10111. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10112. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10113. else
  10114. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10115. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10116. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10117. $as_echo_n "(cached) " >&6
  10118. else
  10119. ac_check_lib_save_LIBS=$LIBS
  10120. LIBS="-lsvld $LIBS"
  10121. cat >conftest.$ac_ext <<_ACEOF
  10122. /* confdefs.h. */
  10123. _ACEOF
  10124. cat confdefs.h >>conftest.$ac_ext
  10125. cat >>conftest.$ac_ext <<_ACEOF
  10126. /* end confdefs.h. */
  10127. /* Override any GCC internal prototype to avoid an error.
  10128. Use char because int might match the return type of a GCC
  10129. builtin and then its argument prototype would still apply. */
  10130. #ifdef __cplusplus
  10131. extern "C"
  10132. #endif
  10133. char dlopen ();
  10134. int
  10135. main ()
  10136. {
  10137. return dlopen ();
  10138. ;
  10139. return 0;
  10140. }
  10141. _ACEOF
  10142. rm -f conftest.$ac_objext conftest$ac_exeext
  10143. if { (ac_try="$ac_link"
  10144. case "(($ac_try" in
  10145. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10146. *) ac_try_echo=$ac_try;;
  10147. esac
  10148. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10149. $as_echo "$ac_try_echo") >&5
  10150. (eval "$ac_link") 2>conftest.er1
  10151. ac_status=$?
  10152. grep -v '^ *+' conftest.er1 >conftest.err
  10153. rm -f conftest.er1
  10154. cat conftest.err >&5
  10155. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10156. (exit $ac_status); } && {
  10157. test -z "$ac_c_werror_flag" ||
  10158. test ! -s conftest.err
  10159. } && test -s conftest$ac_exeext && {
  10160. test "$cross_compiling" = yes ||
  10161. $as_test_x conftest$ac_exeext
  10162. }; then
  10163. ac_cv_lib_svld_dlopen=yes
  10164. else
  10165. $as_echo "$as_me: failed program was:" >&5
  10166. sed 's/^/| /' conftest.$ac_ext >&5
  10167. ac_cv_lib_svld_dlopen=no
  10168. fi
  10169. rm -rf conftest.dSYM
  10170. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10171. conftest$ac_exeext conftest.$ac_ext
  10172. LIBS=$ac_check_lib_save_LIBS
  10173. fi
  10174. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10175. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10176. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  10177. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10178. else
  10179. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10180. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10181. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10182. $as_echo_n "(cached) " >&6
  10183. else
  10184. ac_check_lib_save_LIBS=$LIBS
  10185. LIBS="-ldld $LIBS"
  10186. cat >conftest.$ac_ext <<_ACEOF
  10187. /* confdefs.h. */
  10188. _ACEOF
  10189. cat confdefs.h >>conftest.$ac_ext
  10190. cat >>conftest.$ac_ext <<_ACEOF
  10191. /* end confdefs.h. */
  10192. /* Override any GCC internal prototype to avoid an error.
  10193. Use char because int might match the return type of a GCC
  10194. builtin and then its argument prototype would still apply. */
  10195. #ifdef __cplusplus
  10196. extern "C"
  10197. #endif
  10198. char dld_link ();
  10199. int
  10200. main ()
  10201. {
  10202. return dld_link ();
  10203. ;
  10204. return 0;
  10205. }
  10206. _ACEOF
  10207. rm -f conftest.$ac_objext conftest$ac_exeext
  10208. if { (ac_try="$ac_link"
  10209. case "(($ac_try" in
  10210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10211. *) ac_try_echo=$ac_try;;
  10212. esac
  10213. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10214. $as_echo "$ac_try_echo") >&5
  10215. (eval "$ac_link") 2>conftest.er1
  10216. ac_status=$?
  10217. grep -v '^ *+' conftest.er1 >conftest.err
  10218. rm -f conftest.er1
  10219. cat conftest.err >&5
  10220. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10221. (exit $ac_status); } && {
  10222. test -z "$ac_c_werror_flag" ||
  10223. test ! -s conftest.err
  10224. } && test -s conftest$ac_exeext && {
  10225. test "$cross_compiling" = yes ||
  10226. $as_test_x conftest$ac_exeext
  10227. }; then
  10228. ac_cv_lib_dld_dld_link=yes
  10229. else
  10230. $as_echo "$as_me: failed program was:" >&5
  10231. sed 's/^/| /' conftest.$ac_ext >&5
  10232. ac_cv_lib_dld_dld_link=no
  10233. fi
  10234. rm -rf conftest.dSYM
  10235. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10236. conftest$ac_exeext conftest.$ac_ext
  10237. LIBS=$ac_check_lib_save_LIBS
  10238. fi
  10239. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10240. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10241. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  10242. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10243. fi
  10244. fi
  10245. fi
  10246. fi
  10247. fi
  10248. fi
  10249. ;;
  10250. esac
  10251. if test "x$lt_cv_dlopen" != xno; then
  10252. enable_dlopen=yes
  10253. else
  10254. enable_dlopen=no
  10255. fi
  10256. case $lt_cv_dlopen in
  10257. dlopen)
  10258. save_CPPFLAGS="$CPPFLAGS"
  10259. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10260. save_LDFLAGS="$LDFLAGS"
  10261. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10262. save_LIBS="$LIBS"
  10263. LIBS="$lt_cv_dlopen_libs $LIBS"
  10264. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10265. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10266. if test "${lt_cv_dlopen_self+set}" = set; then
  10267. $as_echo_n "(cached) " >&6
  10268. else
  10269. if test "$cross_compiling" = yes; then :
  10270. lt_cv_dlopen_self=cross
  10271. else
  10272. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10273. lt_status=$lt_dlunknown
  10274. cat > conftest.$ac_ext <<_LT_EOF
  10275. #line 11940 "configure"
  10276. #include "confdefs.h"
  10277. #if HAVE_DLFCN_H
  10278. #include <dlfcn.h>
  10279. #endif
  10280. #include <stdio.h>
  10281. #ifdef RTLD_GLOBAL
  10282. # define LT_DLGLOBAL RTLD_GLOBAL
  10283. #else
  10284. # ifdef DL_GLOBAL
  10285. # define LT_DLGLOBAL DL_GLOBAL
  10286. # else
  10287. # define LT_DLGLOBAL 0
  10288. # endif
  10289. #endif
  10290. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10291. find out it does not work in some platform. */
  10292. #ifndef LT_DLLAZY_OR_NOW
  10293. # ifdef RTLD_LAZY
  10294. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10295. # else
  10296. # ifdef DL_LAZY
  10297. # define LT_DLLAZY_OR_NOW DL_LAZY
  10298. # else
  10299. # ifdef RTLD_NOW
  10300. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10301. # else
  10302. # ifdef DL_NOW
  10303. # define LT_DLLAZY_OR_NOW DL_NOW
  10304. # else
  10305. # define LT_DLLAZY_OR_NOW 0
  10306. # endif
  10307. # endif
  10308. # endif
  10309. # endif
  10310. #endif
  10311. void fnord() { int i=42;}
  10312. int main ()
  10313. {
  10314. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10315. int status = $lt_dlunknown;
  10316. if (self)
  10317. {
  10318. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10319. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10320. /* dlclose (self); */
  10321. }
  10322. else
  10323. puts (dlerror ());
  10324. return status;
  10325. }
  10326. _LT_EOF
  10327. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10328. (eval $ac_link) 2>&5
  10329. ac_status=$?
  10330. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10331. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10332. (./conftest; exit; ) >&5 2>/dev/null
  10333. lt_status=$?
  10334. case x$lt_status in
  10335. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10336. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10337. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10338. esac
  10339. else :
  10340. # compilation failed
  10341. lt_cv_dlopen_self=no
  10342. fi
  10343. fi
  10344. rm -fr conftest*
  10345. fi
  10346. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10347. $as_echo "$lt_cv_dlopen_self" >&6; }
  10348. if test "x$lt_cv_dlopen_self" = xyes; then
  10349. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10350. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10351. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10352. if test "${lt_cv_dlopen_self_static+set}" = set; then
  10353. $as_echo_n "(cached) " >&6
  10354. else
  10355. if test "$cross_compiling" = yes; then :
  10356. lt_cv_dlopen_self_static=cross
  10357. else
  10358. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10359. lt_status=$lt_dlunknown
  10360. cat > conftest.$ac_ext <<_LT_EOF
  10361. #line 12036 "configure"
  10362. #include "confdefs.h"
  10363. #if HAVE_DLFCN_H
  10364. #include <dlfcn.h>
  10365. #endif
  10366. #include <stdio.h>
  10367. #ifdef RTLD_GLOBAL
  10368. # define LT_DLGLOBAL RTLD_GLOBAL
  10369. #else
  10370. # ifdef DL_GLOBAL
  10371. # define LT_DLGLOBAL DL_GLOBAL
  10372. # else
  10373. # define LT_DLGLOBAL 0
  10374. # endif
  10375. #endif
  10376. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10377. find out it does not work in some platform. */
  10378. #ifndef LT_DLLAZY_OR_NOW
  10379. # ifdef RTLD_LAZY
  10380. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10381. # else
  10382. # ifdef DL_LAZY
  10383. # define LT_DLLAZY_OR_NOW DL_LAZY
  10384. # else
  10385. # ifdef RTLD_NOW
  10386. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10387. # else
  10388. # ifdef DL_NOW
  10389. # define LT_DLLAZY_OR_NOW DL_NOW
  10390. # else
  10391. # define LT_DLLAZY_OR_NOW 0
  10392. # endif
  10393. # endif
  10394. # endif
  10395. # endif
  10396. #endif
  10397. void fnord() { int i=42;}
  10398. int main ()
  10399. {
  10400. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10401. int status = $lt_dlunknown;
  10402. if (self)
  10403. {
  10404. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10405. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10406. /* dlclose (self); */
  10407. }
  10408. else
  10409. puts (dlerror ());
  10410. return status;
  10411. }
  10412. _LT_EOF
  10413. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10414. (eval $ac_link) 2>&5
  10415. ac_status=$?
  10416. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10417. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10418. (./conftest; exit; ) >&5 2>/dev/null
  10419. lt_status=$?
  10420. case x$lt_status in
  10421. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10422. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10423. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10424. esac
  10425. else :
  10426. # compilation failed
  10427. lt_cv_dlopen_self_static=no
  10428. fi
  10429. fi
  10430. rm -fr conftest*
  10431. fi
  10432. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  10433. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10434. fi
  10435. CPPFLAGS="$save_CPPFLAGS"
  10436. LDFLAGS="$save_LDFLAGS"
  10437. LIBS="$save_LIBS"
  10438. ;;
  10439. esac
  10440. case $lt_cv_dlopen_self in
  10441. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10442. *) enable_dlopen_self=unknown ;;
  10443. esac
  10444. case $lt_cv_dlopen_self_static in
  10445. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10446. *) enable_dlopen_self_static=unknown ;;
  10447. esac
  10448. fi
  10449. striplib=
  10450. old_striplib=
  10451. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  10452. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10453. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10454. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10455. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10456. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10457. $as_echo "yes" >&6; }
  10458. else
  10459. # FIXME - insert some real tests, host_os isn't really good enough
  10460. case $host_os in
  10461. darwin*)
  10462. if test -n "$STRIP" ; then
  10463. striplib="$STRIP -x"
  10464. old_striplib="$STRIP -S"
  10465. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10466. $as_echo "yes" >&6; }
  10467. else
  10468. { $as_echo "$as_me:$LINENO: result: no" >&5
  10469. $as_echo "no" >&6; }
  10470. fi
  10471. ;;
  10472. *)
  10473. { $as_echo "$as_me:$LINENO: result: no" >&5
  10474. $as_echo "no" >&6; }
  10475. ;;
  10476. esac
  10477. fi
  10478. # Report which library types will actually be built
  10479. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  10480. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10481. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  10482. $as_echo "$can_build_shared" >&6; }
  10483. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  10484. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10485. test "$can_build_shared" = "no" && enable_shared=no
  10486. # On AIX, shared libraries and static libraries use the same namespace, and
  10487. # are all built from PIC.
  10488. case $host_os in
  10489. aix3*)
  10490. test "$enable_shared" = yes && enable_static=no
  10491. if test -n "$RANLIB"; then
  10492. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10493. postinstall_cmds='$RANLIB $lib'
  10494. fi
  10495. ;;
  10496. aix[4-9]*)
  10497. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10498. test "$enable_shared" = yes && enable_static=no
  10499. fi
  10500. ;;
  10501. esac
  10502. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  10503. $as_echo "$enable_shared" >&6; }
  10504. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  10505. $as_echo_n "checking whether to build static libraries... " >&6; }
  10506. # Make sure either enable_shared or enable_static is yes.
  10507. test "$enable_shared" = yes || enable_static=yes
  10508. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  10509. $as_echo "$enable_static" >&6; }
  10510. fi
  10511. ac_ext=c
  10512. ac_cpp='$CPP $CPPFLAGS'
  10513. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10514. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10515. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10516. CC="$lt_save_CC"
  10517. ac_config_commands="$ac_config_commands libtool"
  10518. # Only expand once:
  10519. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  10520. $as_echo_n "checking host system type... " >&6; }
  10521. if test "${ac_cv_host+set}" = set; then
  10522. $as_echo_n "(cached) " >&6
  10523. else
  10524. if test "x$host_alias" = x; then
  10525. ac_cv_host=$ac_cv_build
  10526. else
  10527. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  10528. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  10529. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  10530. { (exit 1); exit 1; }; }
  10531. fi
  10532. fi
  10533. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  10534. $as_echo "$ac_cv_host" >&6; }
  10535. case $ac_cv_host in
  10536. *-*-*) ;;
  10537. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  10538. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  10539. { (exit 1); exit 1; }; };;
  10540. esac
  10541. host=$ac_cv_host
  10542. ac_save_IFS=$IFS; IFS='-'
  10543. set x $ac_cv_host
  10544. shift
  10545. host_cpu=$1
  10546. host_vendor=$2
  10547. shift; shift
  10548. # Remember, the first character of IFS is used to create $*,
  10549. # except with old shells:
  10550. host_os=$*
  10551. IFS=$ac_save_IFS
  10552. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  10553. case $host_os in
  10554. *cygwin* ) CYGWIN=yes;;
  10555. * ) CYGWIN=no;;
  10556. esac
  10557. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  10558. $as_echo_n "checking host system type... " >&6; }
  10559. if test "${ac_cv_host+set}" = set; then
  10560. $as_echo_n "(cached) " >&6
  10561. else
  10562. if test "x$host_alias" = x; then
  10563. ac_cv_host=$ac_cv_build
  10564. else
  10565. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  10566. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  10567. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  10568. { (exit 1); exit 1; }; }
  10569. fi
  10570. fi
  10571. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  10572. $as_echo "$ac_cv_host" >&6; }
  10573. case $ac_cv_host in
  10574. *-*-*) ;;
  10575. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  10576. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  10577. { (exit 1); exit 1; }; };;
  10578. esac
  10579. host=$ac_cv_host
  10580. ac_save_IFS=$IFS; IFS='-'
  10581. set x $ac_cv_host
  10582. shift
  10583. host_cpu=$1
  10584. host_vendor=$2
  10585. shift; shift
  10586. # Remember, the first character of IFS is used to create $*,
  10587. # except with old shells:
  10588. host_os=$*
  10589. IFS=$ac_save_IFS
  10590. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  10591. case $host_os in
  10592. *mingw32* ) MINGW32=yes;;
  10593. * ) MINGW32=no;;
  10594. esac
  10595. EXTRA_DEFS=""
  10596. if test "$MINGW32" = "yes" ; then
  10597. if test $enable_shared = yes ; then
  10598. EXTRA_DEFS="-DSCM_IMPORT"
  10599. fi
  10600. fi
  10601. for termlib in ncurses curses termcap terminfo termlib ; do
  10602. as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tgoto" | $as_tr_sh`
  10603. { $as_echo "$as_me:$LINENO: checking for tgoto in -l${termlib}" >&5
  10604. $as_echo_n "checking for tgoto in -l${termlib}... " >&6; }
  10605. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  10606. $as_echo_n "(cached) " >&6
  10607. else
  10608. ac_check_lib_save_LIBS=$LIBS
  10609. LIBS="-l${termlib} $LIBS"
  10610. cat >conftest.$ac_ext <<_ACEOF
  10611. /* confdefs.h. */
  10612. _ACEOF
  10613. cat confdefs.h >>conftest.$ac_ext
  10614. cat >>conftest.$ac_ext <<_ACEOF
  10615. /* end confdefs.h. */
  10616. /* Override any GCC internal prototype to avoid an error.
  10617. Use char because int might match the return type of a GCC
  10618. builtin and then its argument prototype would still apply. */
  10619. #ifdef __cplusplus
  10620. extern "C"
  10621. #endif
  10622. char tgoto ();
  10623. int
  10624. main ()
  10625. {
  10626. return tgoto ();
  10627. ;
  10628. return 0;
  10629. }
  10630. _ACEOF
  10631. rm -f conftest.$ac_objext conftest$ac_exeext
  10632. if { (ac_try="$ac_link"
  10633. case "(($ac_try" in
  10634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10635. *) ac_try_echo=$ac_try;;
  10636. esac
  10637. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10638. $as_echo "$ac_try_echo") >&5
  10639. (eval "$ac_link") 2>conftest.er1
  10640. ac_status=$?
  10641. grep -v '^ *+' conftest.er1 >conftest.err
  10642. rm -f conftest.er1
  10643. cat conftest.err >&5
  10644. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10645. (exit $ac_status); } && {
  10646. test -z "$ac_c_werror_flag" ||
  10647. test ! -s conftest.err
  10648. } && test -s conftest$ac_exeext && {
  10649. test "$cross_compiling" = yes ||
  10650. $as_test_x conftest$ac_exeext
  10651. }; then
  10652. eval "$as_ac_Lib=yes"
  10653. else
  10654. $as_echo "$as_me: failed program was:" >&5
  10655. sed 's/^/| /' conftest.$ac_ext >&5
  10656. eval "$as_ac_Lib=no"
  10657. fi
  10658. rm -rf conftest.dSYM
  10659. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10660. conftest$ac_exeext conftest.$ac_ext
  10661. LIBS=$ac_check_lib_save_LIBS
  10662. fi
  10663. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  10664. $as_echo "$as_val"'`
  10665. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10666. $as_echo "$ac_res" >&6; }
  10667. as_val=`eval 'as_val=${'$as_ac_Lib'}
  10668. $as_echo "$as_val"'`
  10669. if test "x$as_val" = x""yes; then
  10670. LIBS="-l${termlib} $LIBS"; break
  10671. fi
  10672. done
  10673. { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
  10674. $as_echo_n "checking for readline in -lreadline... " >&6; }
  10675. if test "${ac_cv_lib_readline_readline+set}" = set; then
  10676. $as_echo_n "(cached) " >&6
  10677. else
  10678. ac_check_lib_save_LIBS=$LIBS
  10679. LIBS="-lreadline $LIBS"
  10680. cat >conftest.$ac_ext <<_ACEOF
  10681. /* confdefs.h. */
  10682. _ACEOF
  10683. cat confdefs.h >>conftest.$ac_ext
  10684. cat >>conftest.$ac_ext <<_ACEOF
  10685. /* end confdefs.h. */
  10686. /* Override any GCC internal prototype to avoid an error.
  10687. Use char because int might match the return type of a GCC
  10688. builtin and then its argument prototype would still apply. */
  10689. #ifdef __cplusplus
  10690. extern "C"
  10691. #endif
  10692. char readline ();
  10693. int
  10694. main ()
  10695. {
  10696. return readline ();
  10697. ;
  10698. return 0;
  10699. }
  10700. _ACEOF
  10701. rm -f conftest.$ac_objext conftest$ac_exeext
  10702. if { (ac_try="$ac_link"
  10703. case "(($ac_try" in
  10704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10705. *) ac_try_echo=$ac_try;;
  10706. esac
  10707. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10708. $as_echo "$ac_try_echo") >&5
  10709. (eval "$ac_link") 2>conftest.er1
  10710. ac_status=$?
  10711. grep -v '^ *+' conftest.er1 >conftest.err
  10712. rm -f conftest.er1
  10713. cat conftest.err >&5
  10714. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10715. (exit $ac_status); } && {
  10716. test -z "$ac_c_werror_flag" ||
  10717. test ! -s conftest.err
  10718. } && test -s conftest$ac_exeext && {
  10719. test "$cross_compiling" = yes ||
  10720. $as_test_x conftest$ac_exeext
  10721. }; then
  10722. ac_cv_lib_readline_readline=yes
  10723. else
  10724. $as_echo "$as_me: failed program was:" >&5
  10725. sed 's/^/| /' conftest.$ac_ext >&5
  10726. ac_cv_lib_readline_readline=no
  10727. fi
  10728. rm -rf conftest.dSYM
  10729. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10730. conftest$ac_exeext conftest.$ac_ext
  10731. LIBS=$ac_check_lib_save_LIBS
  10732. fi
  10733. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
  10734. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  10735. if test "x$ac_cv_lib_readline_readline" = x""yes; then
  10736. cat >>confdefs.h <<_ACEOF
  10737. #define HAVE_LIBREADLINE 1
  10738. _ACEOF
  10739. LIBS="-lreadline $LIBS"
  10740. fi
  10741. if test $ac_cv_lib_readline_readline = no; then
  10742. { $as_echo "$as_me:$LINENO: WARNING: libreadline was not found on your system." >&5
  10743. $as_echo "$as_me: WARNING: libreadline was not found on your system." >&2;}
  10744. fi
  10745. for ac_func in siginterrupt rl_clear_signals rl_cleanup_after_signal
  10746. do
  10747. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10748. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10749. $as_echo_n "checking for $ac_func... " >&6; }
  10750. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10751. $as_echo_n "(cached) " >&6
  10752. else
  10753. cat >conftest.$ac_ext <<_ACEOF
  10754. /* confdefs.h. */
  10755. _ACEOF
  10756. cat confdefs.h >>conftest.$ac_ext
  10757. cat >>conftest.$ac_ext <<_ACEOF
  10758. /* end confdefs.h. */
  10759. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10760. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10761. #define $ac_func innocuous_$ac_func
  10762. /* System header to define __stub macros and hopefully few prototypes,
  10763. which can conflict with char $ac_func (); below.
  10764. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10765. <limits.h> exists even on freestanding compilers. */
  10766. #ifdef __STDC__
  10767. # include <limits.h>
  10768. #else
  10769. # include <assert.h>
  10770. #endif
  10771. #undef $ac_func
  10772. /* Override any GCC internal prototype to avoid an error.
  10773. Use char because int might match the return type of a GCC
  10774. builtin and then its argument prototype would still apply. */
  10775. #ifdef __cplusplus
  10776. extern "C"
  10777. #endif
  10778. char $ac_func ();
  10779. /* The GNU C library defines this for functions which it implements
  10780. to always fail with ENOSYS. Some functions are actually named
  10781. something starting with __ and the normal name is an alias. */
  10782. #if defined __stub_$ac_func || defined __stub___$ac_func
  10783. choke me
  10784. #endif
  10785. int
  10786. main ()
  10787. {
  10788. return $ac_func ();
  10789. ;
  10790. return 0;
  10791. }
  10792. _ACEOF
  10793. rm -f conftest.$ac_objext conftest$ac_exeext
  10794. if { (ac_try="$ac_link"
  10795. case "(($ac_try" in
  10796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10797. *) ac_try_echo=$ac_try;;
  10798. esac
  10799. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10800. $as_echo "$ac_try_echo") >&5
  10801. (eval "$ac_link") 2>conftest.er1
  10802. ac_status=$?
  10803. grep -v '^ *+' conftest.er1 >conftest.err
  10804. rm -f conftest.er1
  10805. cat conftest.err >&5
  10806. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10807. (exit $ac_status); } && {
  10808. test -z "$ac_c_werror_flag" ||
  10809. test ! -s conftest.err
  10810. } && test -s conftest$ac_exeext && {
  10811. test "$cross_compiling" = yes ||
  10812. $as_test_x conftest$ac_exeext
  10813. }; then
  10814. eval "$as_ac_var=yes"
  10815. else
  10816. $as_echo "$as_me: failed program was:" >&5
  10817. sed 's/^/| /' conftest.$ac_ext >&5
  10818. eval "$as_ac_var=no"
  10819. fi
  10820. rm -rf conftest.dSYM
  10821. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10822. conftest$ac_exeext conftest.$ac_ext
  10823. fi
  10824. ac_res=`eval 'as_val=${'$as_ac_var'}
  10825. $as_echo "$as_val"'`
  10826. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10827. $as_echo "$ac_res" >&6; }
  10828. as_val=`eval 'as_val=${'$as_ac_var'}
  10829. $as_echo "$as_val"'`
  10830. if test "x$as_val" = x""yes; then
  10831. cat >>confdefs.h <<_ACEOF
  10832. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10833. _ACEOF
  10834. fi
  10835. done
  10836. for ac_func in rl_filename_completion_function
  10837. do
  10838. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10839. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10840. $as_echo_n "checking for $ac_func... " >&6; }
  10841. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10842. $as_echo_n "(cached) " >&6
  10843. else
  10844. cat >conftest.$ac_ext <<_ACEOF
  10845. /* confdefs.h. */
  10846. _ACEOF
  10847. cat confdefs.h >>conftest.$ac_ext
  10848. cat >>conftest.$ac_ext <<_ACEOF
  10849. /* end confdefs.h. */
  10850. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10851. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10852. #define $ac_func innocuous_$ac_func
  10853. /* System header to define __stub macros and hopefully few prototypes,
  10854. which can conflict with char $ac_func (); below.
  10855. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10856. <limits.h> exists even on freestanding compilers. */
  10857. #ifdef __STDC__
  10858. # include <limits.h>
  10859. #else
  10860. # include <assert.h>
  10861. #endif
  10862. #undef $ac_func
  10863. /* Override any GCC internal prototype to avoid an error.
  10864. Use char because int might match the return type of a GCC
  10865. builtin and then its argument prototype would still apply. */
  10866. #ifdef __cplusplus
  10867. extern "C"
  10868. #endif
  10869. char $ac_func ();
  10870. /* The GNU C library defines this for functions which it implements
  10871. to always fail with ENOSYS. Some functions are actually named
  10872. something starting with __ and the normal name is an alias. */
  10873. #if defined __stub_$ac_func || defined __stub___$ac_func
  10874. choke me
  10875. #endif
  10876. int
  10877. main ()
  10878. {
  10879. return $ac_func ();
  10880. ;
  10881. return 0;
  10882. }
  10883. _ACEOF
  10884. rm -f conftest.$ac_objext conftest$ac_exeext
  10885. if { (ac_try="$ac_link"
  10886. case "(($ac_try" in
  10887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10888. *) ac_try_echo=$ac_try;;
  10889. esac
  10890. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10891. $as_echo "$ac_try_echo") >&5
  10892. (eval "$ac_link") 2>conftest.er1
  10893. ac_status=$?
  10894. grep -v '^ *+' conftest.er1 >conftest.err
  10895. rm -f conftest.er1
  10896. cat conftest.err >&5
  10897. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10898. (exit $ac_status); } && {
  10899. test -z "$ac_c_werror_flag" ||
  10900. test ! -s conftest.err
  10901. } && test -s conftest$ac_exeext && {
  10902. test "$cross_compiling" = yes ||
  10903. $as_test_x conftest$ac_exeext
  10904. }; then
  10905. eval "$as_ac_var=yes"
  10906. else
  10907. $as_echo "$as_me: failed program was:" >&5
  10908. sed 's/^/| /' conftest.$ac_ext >&5
  10909. eval "$as_ac_var=no"
  10910. fi
  10911. rm -rf conftest.dSYM
  10912. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10913. conftest$ac_exeext conftest.$ac_ext
  10914. fi
  10915. ac_res=`eval 'as_val=${'$as_ac_var'}
  10916. $as_echo "$as_val"'`
  10917. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10918. $as_echo "$ac_res" >&6; }
  10919. as_val=`eval 'as_val=${'$as_ac_var'}
  10920. $as_echo "$as_val"'`
  10921. if test "x$as_val" = x""yes; then
  10922. cat >>confdefs.h <<_ACEOF
  10923. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10924. _ACEOF
  10925. fi
  10926. done
  10927. for ac_func in rl_get_keymap
  10928. do
  10929. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10930. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10931. $as_echo_n "checking for $ac_func... " >&6; }
  10932. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10933. $as_echo_n "(cached) " >&6
  10934. else
  10935. cat >conftest.$ac_ext <<_ACEOF
  10936. /* confdefs.h. */
  10937. _ACEOF
  10938. cat confdefs.h >>conftest.$ac_ext
  10939. cat >>conftest.$ac_ext <<_ACEOF
  10940. /* end confdefs.h. */
  10941. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10942. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10943. #define $ac_func innocuous_$ac_func
  10944. /* System header to define __stub macros and hopefully few prototypes,
  10945. which can conflict with char $ac_func (); below.
  10946. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10947. <limits.h> exists even on freestanding compilers. */
  10948. #ifdef __STDC__
  10949. # include <limits.h>
  10950. #else
  10951. # include <assert.h>
  10952. #endif
  10953. #undef $ac_func
  10954. /* Override any GCC internal prototype to avoid an error.
  10955. Use char because int might match the return type of a GCC
  10956. builtin and then its argument prototype would still apply. */
  10957. #ifdef __cplusplus
  10958. extern "C"
  10959. #endif
  10960. char $ac_func ();
  10961. /* The GNU C library defines this for functions which it implements
  10962. to always fail with ENOSYS. Some functions are actually named
  10963. something starting with __ and the normal name is an alias. */
  10964. #if defined __stub_$ac_func || defined __stub___$ac_func
  10965. choke me
  10966. #endif
  10967. int
  10968. main ()
  10969. {
  10970. return $ac_func ();
  10971. ;
  10972. return 0;
  10973. }
  10974. _ACEOF
  10975. rm -f conftest.$ac_objext conftest$ac_exeext
  10976. if { (ac_try="$ac_link"
  10977. case "(($ac_try" in
  10978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10979. *) ac_try_echo=$ac_try;;
  10980. esac
  10981. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10982. $as_echo "$ac_try_echo") >&5
  10983. (eval "$ac_link") 2>conftest.er1
  10984. ac_status=$?
  10985. grep -v '^ *+' conftest.er1 >conftest.err
  10986. rm -f conftest.er1
  10987. cat conftest.err >&5
  10988. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10989. (exit $ac_status); } && {
  10990. test -z "$ac_c_werror_flag" ||
  10991. test ! -s conftest.err
  10992. } && test -s conftest$ac_exeext && {
  10993. test "$cross_compiling" = yes ||
  10994. $as_test_x conftest$ac_exeext
  10995. }; then
  10996. eval "$as_ac_var=yes"
  10997. else
  10998. $as_echo "$as_me: failed program was:" >&5
  10999. sed 's/^/| /' conftest.$ac_ext >&5
  11000. eval "$as_ac_var=no"
  11001. fi
  11002. rm -rf conftest.dSYM
  11003. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11004. conftest$ac_exeext conftest.$ac_ext
  11005. fi
  11006. ac_res=`eval 'as_val=${'$as_ac_var'}
  11007. $as_echo "$as_val"'`
  11008. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11009. $as_echo "$ac_res" >&6; }
  11010. as_val=`eval 'as_val=${'$as_ac_var'}
  11011. $as_echo "$as_val"'`
  11012. if test "x$as_val" = x""yes; then
  11013. cat >>confdefs.h <<_ACEOF
  11014. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11015. _ACEOF
  11016. fi
  11017. done
  11018. { $as_echo "$as_me:$LINENO: checking for rl_getc_function pointer in readline" >&5
  11019. $as_echo_n "checking for rl_getc_function pointer in readline... " >&6; }
  11020. if test "${ac_cv_var_rl_getc_function+set}" = set; then
  11021. $as_echo_n "(cached) " >&6
  11022. else
  11023. cat >conftest.$ac_ext <<_ACEOF
  11024. /* confdefs.h. */
  11025. _ACEOF
  11026. cat confdefs.h >>conftest.$ac_ext
  11027. cat >>conftest.$ac_ext <<_ACEOF
  11028. /* end confdefs.h. */
  11029. #include <stdio.h>
  11030. #include <readline/readline.h>
  11031. int
  11032. main ()
  11033. {
  11034. printf ("%ld", (long) rl_getc_function)
  11035. ;
  11036. return 0;
  11037. }
  11038. _ACEOF
  11039. rm -f conftest.$ac_objext conftest$ac_exeext
  11040. if { (ac_try="$ac_link"
  11041. case "(($ac_try" in
  11042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11043. *) ac_try_echo=$ac_try;;
  11044. esac
  11045. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11046. $as_echo "$ac_try_echo") >&5
  11047. (eval "$ac_link") 2>conftest.er1
  11048. ac_status=$?
  11049. grep -v '^ *+' conftest.er1 >conftest.err
  11050. rm -f conftest.er1
  11051. cat conftest.err >&5
  11052. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11053. (exit $ac_status); } && {
  11054. test -z "$ac_c_werror_flag" ||
  11055. test ! -s conftest.err
  11056. } && test -s conftest$ac_exeext && {
  11057. test "$cross_compiling" = yes ||
  11058. $as_test_x conftest$ac_exeext
  11059. }; then
  11060. ac_cv_var_rl_getc_function=yes
  11061. else
  11062. $as_echo "$as_me: failed program was:" >&5
  11063. sed 's/^/| /' conftest.$ac_ext >&5
  11064. ac_cv_var_rl_getc_function=no
  11065. fi
  11066. rm -rf conftest.dSYM
  11067. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11068. conftest$ac_exeext conftest.$ac_ext
  11069. fi
  11070. { $as_echo "$as_me:$LINENO: result: $ac_cv_var_rl_getc_function" >&5
  11071. $as_echo "$ac_cv_var_rl_getc_function" >&6; }
  11072. if test "${ac_cv_var_rl_getc_function}" = "yes"; then
  11073. cat >>confdefs.h <<\_ACEOF
  11074. #define HAVE_RL_GETC_FUNCTION 1
  11075. _ACEOF
  11076. fi
  11077. if test $ac_cv_lib_readline_readline = yes \
  11078. -a $ac_cv_var_rl_getc_function = no; then
  11079. { $as_echo "$as_me:$LINENO: WARNING: *** libreadline is too old on your system." >&5
  11080. $as_echo "$as_me: WARNING: *** libreadline is too old on your system." >&2;}
  11081. { $as_echo "$as_me:$LINENO: WARNING: *** You need readline version 2.1 or later." >&5
  11082. $as_echo "$as_me: WARNING: *** You need readline version 2.1 or later." >&2;}
  11083. fi
  11084. for ac_func in strdup
  11085. do
  11086. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11087. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11088. $as_echo_n "checking for $ac_func... " >&6; }
  11089. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11090. $as_echo_n "(cached) " >&6
  11091. else
  11092. cat >conftest.$ac_ext <<_ACEOF
  11093. /* confdefs.h. */
  11094. _ACEOF
  11095. cat confdefs.h >>conftest.$ac_ext
  11096. cat >>conftest.$ac_ext <<_ACEOF
  11097. /* end confdefs.h. */
  11098. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11099. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11100. #define $ac_func innocuous_$ac_func
  11101. /* System header to define __stub macros and hopefully few prototypes,
  11102. which can conflict with char $ac_func (); below.
  11103. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11104. <limits.h> exists even on freestanding compilers. */
  11105. #ifdef __STDC__
  11106. # include <limits.h>
  11107. #else
  11108. # include <assert.h>
  11109. #endif
  11110. #undef $ac_func
  11111. /* Override any GCC internal prototype to avoid an error.
  11112. Use char because int might match the return type of a GCC
  11113. builtin and then its argument prototype would still apply. */
  11114. #ifdef __cplusplus
  11115. extern "C"
  11116. #endif
  11117. char $ac_func ();
  11118. /* The GNU C library defines this for functions which it implements
  11119. to always fail with ENOSYS. Some functions are actually named
  11120. something starting with __ and the normal name is an alias. */
  11121. #if defined __stub_$ac_func || defined __stub___$ac_func
  11122. choke me
  11123. #endif
  11124. int
  11125. main ()
  11126. {
  11127. return $ac_func ();
  11128. ;
  11129. return 0;
  11130. }
  11131. _ACEOF
  11132. rm -f conftest.$ac_objext conftest$ac_exeext
  11133. if { (ac_try="$ac_link"
  11134. case "(($ac_try" in
  11135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11136. *) ac_try_echo=$ac_try;;
  11137. esac
  11138. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11139. $as_echo "$ac_try_echo") >&5
  11140. (eval "$ac_link") 2>conftest.er1
  11141. ac_status=$?
  11142. grep -v '^ *+' conftest.er1 >conftest.err
  11143. rm -f conftest.er1
  11144. cat conftest.err >&5
  11145. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11146. (exit $ac_status); } && {
  11147. test -z "$ac_c_werror_flag" ||
  11148. test ! -s conftest.err
  11149. } && test -s conftest$ac_exeext && {
  11150. test "$cross_compiling" = yes ||
  11151. $as_test_x conftest$ac_exeext
  11152. }; then
  11153. eval "$as_ac_var=yes"
  11154. else
  11155. $as_echo "$as_me: failed program was:" >&5
  11156. sed 's/^/| /' conftest.$ac_ext >&5
  11157. eval "$as_ac_var=no"
  11158. fi
  11159. rm -rf conftest.dSYM
  11160. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11161. conftest$ac_exeext conftest.$ac_ext
  11162. fi
  11163. ac_res=`eval 'as_val=${'$as_ac_var'}
  11164. $as_echo "$as_val"'`
  11165. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11166. $as_echo "$ac_res" >&6; }
  11167. as_val=`eval 'as_val=${'$as_ac_var'}
  11168. $as_echo "$as_val"'`
  11169. if test "x$as_val" = x""yes; then
  11170. cat >>confdefs.h <<_ACEOF
  11171. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11172. _ACEOF
  11173. fi
  11174. done
  11175. . $srcdir/LIBGUILEREADLINE-VERSION
  11176. ac_config_files="$ac_config_files Makefile ice-9/Makefile"
  11177. cat >confcache <<\_ACEOF
  11178. # This file is a shell script that caches the results of configure
  11179. # tests run on this system so they can be shared between configure
  11180. # scripts and configure runs, see configure's option --config-cache.
  11181. # It is not useful on other systems. If it contains results you don't
  11182. # want to keep, you may remove or edit it.
  11183. #
  11184. # config.status only pays attention to the cache file if you give it
  11185. # the --recheck option to rerun configure.
  11186. #
  11187. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11188. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11189. # following values.
  11190. _ACEOF
  11191. # The following way of writing the cache mishandles newlines in values,
  11192. # but we know of no workaround that is simple, portable, and efficient.
  11193. # So, we kill variables containing newlines.
  11194. # Ultrix sh set writes to stderr and can't be redirected directly,
  11195. # and sets the high bit in the cache file unless we assign to the vars.
  11196. (
  11197. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11198. eval ac_val=\$$ac_var
  11199. case $ac_val in #(
  11200. *${as_nl}*)
  11201. case $ac_var in #(
  11202. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11203. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11204. esac
  11205. case $ac_var in #(
  11206. _ | IFS | as_nl) ;; #(
  11207. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11208. *) $as_unset $ac_var ;;
  11209. esac ;;
  11210. esac
  11211. done
  11212. (set) 2>&1 |
  11213. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11214. *${as_nl}ac_space=\ *)
  11215. # `set' does not quote correctly, so add quotes (double-quote
  11216. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11217. sed -n \
  11218. "s/'/'\\\\''/g;
  11219. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11220. ;; #(
  11221. *)
  11222. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11223. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11224. ;;
  11225. esac |
  11226. sort
  11227. ) |
  11228. sed '
  11229. /^ac_cv_env_/b end
  11230. t clear
  11231. :clear
  11232. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11233. t end
  11234. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11235. :end' >>confcache
  11236. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11237. if test -w "$cache_file"; then
  11238. test "x$cache_file" != "x/dev/null" &&
  11239. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11240. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11241. cat confcache >$cache_file
  11242. else
  11243. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11244. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11245. fi
  11246. fi
  11247. rm -f confcache
  11248. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11249. # Let make expand exec_prefix.
  11250. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11251. DEFS=-DHAVE_CONFIG_H
  11252. ac_libobjs=
  11253. ac_ltlibobjs=
  11254. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11255. # 1. Remove the extension, and $U if already installed.
  11256. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11257. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11258. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11259. # will be set to the directory where LIBOBJS objects are built.
  11260. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11261. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  11262. done
  11263. LIBOBJS=$ac_libobjs
  11264. LTLIBOBJS=$ac_ltlibobjs
  11265. if test -n "$EXEEXT"; then
  11266. am__EXEEXT_TRUE=
  11267. am__EXEEXT_FALSE='#'
  11268. else
  11269. am__EXEEXT_TRUE='#'
  11270. am__EXEEXT_FALSE=
  11271. fi
  11272. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11273. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  11274. Usually this means the macro was only invoked conditionally." >&5
  11275. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  11276. Usually this means the macro was only invoked conditionally." >&2;}
  11277. { (exit 1); exit 1; }; }
  11278. fi
  11279. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11280. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  11281. Usually this means the macro was only invoked conditionally." >&5
  11282. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  11283. Usually this means the macro was only invoked conditionally." >&2;}
  11284. { (exit 1); exit 1; }; }
  11285. fi
  11286. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11287. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  11288. Usually this means the macro was only invoked conditionally." >&5
  11289. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  11290. Usually this means the macro was only invoked conditionally." >&2;}
  11291. { (exit 1); exit 1; }; }
  11292. fi
  11293. : ${CONFIG_STATUS=./config.status}
  11294. ac_write_fail=0
  11295. ac_clean_files_save=$ac_clean_files
  11296. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11297. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11298. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11299. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11300. #! $SHELL
  11301. # Generated by $as_me.
  11302. # Run this file to recreate the current configuration.
  11303. # Compiler output produced by configure, useful for debugging
  11304. # configure, is in config.log if it exists.
  11305. debug=false
  11306. ac_cs_recheck=false
  11307. ac_cs_silent=false
  11308. SHELL=\${CONFIG_SHELL-$SHELL}
  11309. _ACEOF
  11310. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11311. ## --------------------- ##
  11312. ## M4sh Initialization. ##
  11313. ## --------------------- ##
  11314. # Be more Bourne compatible
  11315. DUALCASE=1; export DUALCASE # for MKS sh
  11316. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11317. emulate sh
  11318. NULLCMD=:
  11319. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11320. # is contrary to our usage. Disable this feature.
  11321. alias -g '${1+"$@"}'='"$@"'
  11322. setopt NO_GLOB_SUBST
  11323. else
  11324. case `(set -o) 2>/dev/null` in
  11325. *posix*) set -o posix ;;
  11326. esac
  11327. fi
  11328. # PATH needs CR
  11329. # Avoid depending upon Character Ranges.
  11330. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11331. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11332. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11333. as_cr_digits='0123456789'
  11334. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11335. as_nl='
  11336. '
  11337. export as_nl
  11338. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11339. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11340. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11341. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11342. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11343. as_echo='printf %s\n'
  11344. as_echo_n='printf %s'
  11345. else
  11346. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11347. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11348. as_echo_n='/usr/ucb/echo -n'
  11349. else
  11350. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11351. as_echo_n_body='eval
  11352. arg=$1;
  11353. case $arg in
  11354. *"$as_nl"*)
  11355. expr "X$arg" : "X\\(.*\\)$as_nl";
  11356. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11357. esac;
  11358. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11359. '
  11360. export as_echo_n_body
  11361. as_echo_n='sh -c $as_echo_n_body as_echo'
  11362. fi
  11363. export as_echo_body
  11364. as_echo='sh -c $as_echo_body as_echo'
  11365. fi
  11366. # The user is always right.
  11367. if test "${PATH_SEPARATOR+set}" != set; then
  11368. PATH_SEPARATOR=:
  11369. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11370. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11371. PATH_SEPARATOR=';'
  11372. }
  11373. fi
  11374. # Support unset when possible.
  11375. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11376. as_unset=unset
  11377. else
  11378. as_unset=false
  11379. fi
  11380. # IFS
  11381. # We need space, tab and new line, in precisely that order. Quoting is
  11382. # there to prevent editors from complaining about space-tab.
  11383. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11384. # splitting by setting IFS to empty value.)
  11385. IFS=" "" $as_nl"
  11386. # Find who we are. Look in the path if we contain no directory separator.
  11387. case $0 in
  11388. *[\\/]* ) as_myself=$0 ;;
  11389. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11390. for as_dir in $PATH
  11391. do
  11392. IFS=$as_save_IFS
  11393. test -z "$as_dir" && as_dir=.
  11394. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11395. done
  11396. IFS=$as_save_IFS
  11397. ;;
  11398. esac
  11399. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11400. # in which case we are not to be found in the path.
  11401. if test "x$as_myself" = x; then
  11402. as_myself=$0
  11403. fi
  11404. if test ! -f "$as_myself"; then
  11405. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11406. { (exit 1); exit 1; }
  11407. fi
  11408. # Work around bugs in pre-3.0 UWIN ksh.
  11409. for as_var in ENV MAIL MAILPATH
  11410. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  11411. done
  11412. PS1='$ '
  11413. PS2='> '
  11414. PS4='+ '
  11415. # NLS nuisances.
  11416. LC_ALL=C
  11417. export LC_ALL
  11418. LANGUAGE=C
  11419. export LANGUAGE
  11420. # Required to use basename.
  11421. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11422. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11423. as_expr=expr
  11424. else
  11425. as_expr=false
  11426. fi
  11427. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11428. as_basename=basename
  11429. else
  11430. as_basename=false
  11431. fi
  11432. # Name of the executable.
  11433. as_me=`$as_basename -- "$0" ||
  11434. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11435. X"$0" : 'X\(//\)$' \| \
  11436. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11437. $as_echo X/"$0" |
  11438. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11439. s//\1/
  11440. q
  11441. }
  11442. /^X\/\(\/\/\)$/{
  11443. s//\1/
  11444. q
  11445. }
  11446. /^X\/\(\/\).*/{
  11447. s//\1/
  11448. q
  11449. }
  11450. s/.*/./; q'`
  11451. # CDPATH.
  11452. $as_unset CDPATH
  11453. as_lineno_1=$LINENO
  11454. as_lineno_2=$LINENO
  11455. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11456. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  11457. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11458. # uniformly replaced by the line number. The first 'sed' inserts a
  11459. # line-number line after each line using $LINENO; the second 'sed'
  11460. # does the real work. The second script uses 'N' to pair each
  11461. # line-number line with the line containing $LINENO, and appends
  11462. # trailing '-' during substitution so that $LINENO is not a special
  11463. # case at line end.
  11464. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11465. # scripts with optimization help from Paolo Bonzini. Blame Lee
  11466. # E. McMahon (1931-1989) for sed's syntax. :-)
  11467. sed -n '
  11468. p
  11469. /[$]LINENO/=
  11470. ' <$as_myself |
  11471. sed '
  11472. s/[$]LINENO.*/&-/
  11473. t lineno
  11474. b
  11475. :lineno
  11476. N
  11477. :loop
  11478. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  11479. t loop
  11480. s/-\n.*//
  11481. ' >$as_me.lineno &&
  11482. chmod +x "$as_me.lineno" ||
  11483. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  11484. { (exit 1); exit 1; }; }
  11485. # Don't try to exec as it changes $[0], causing all sort of problems
  11486. # (the dirname of $[0] is not the place where we might find the
  11487. # original and so on. Autoconf is especially sensitive to this).
  11488. . "./$as_me.lineno"
  11489. # Exit status is that of the last command.
  11490. exit
  11491. }
  11492. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11493. as_dirname=dirname
  11494. else
  11495. as_dirname=false
  11496. fi
  11497. ECHO_C= ECHO_N= ECHO_T=
  11498. case `echo -n x` in
  11499. -n*)
  11500. case `echo 'x\c'` in
  11501. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11502. *) ECHO_C='\c';;
  11503. esac;;
  11504. *)
  11505. ECHO_N='-n';;
  11506. esac
  11507. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11508. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11509. as_expr=expr
  11510. else
  11511. as_expr=false
  11512. fi
  11513. rm -f conf$$ conf$$.exe conf$$.file
  11514. if test -d conf$$.dir; then
  11515. rm -f conf$$.dir/conf$$.file
  11516. else
  11517. rm -f conf$$.dir
  11518. mkdir conf$$.dir 2>/dev/null
  11519. fi
  11520. if (echo >conf$$.file) 2>/dev/null; then
  11521. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11522. as_ln_s='ln -s'
  11523. # ... but there are two gotchas:
  11524. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11525. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11526. # In both cases, we have to default to `cp -p'.
  11527. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11528. as_ln_s='cp -p'
  11529. elif ln conf$$.file conf$$ 2>/dev/null; then
  11530. as_ln_s=ln
  11531. else
  11532. as_ln_s='cp -p'
  11533. fi
  11534. else
  11535. as_ln_s='cp -p'
  11536. fi
  11537. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11538. rmdir conf$$.dir 2>/dev/null
  11539. if mkdir -p . 2>/dev/null; then
  11540. as_mkdir_p=:
  11541. else
  11542. test -d ./-p && rmdir ./-p
  11543. as_mkdir_p=false
  11544. fi
  11545. if test -x / >/dev/null 2>&1; then
  11546. as_test_x='test -x'
  11547. else
  11548. if ls -dL / >/dev/null 2>&1; then
  11549. as_ls_L_option=L
  11550. else
  11551. as_ls_L_option=
  11552. fi
  11553. as_test_x='
  11554. eval sh -c '\''
  11555. if test -d "$1"; then
  11556. test -d "$1/.";
  11557. else
  11558. case $1 in
  11559. -*)set "./$1";;
  11560. esac;
  11561. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  11562. ???[sx]*):;;*)false;;esac;fi
  11563. '\'' sh
  11564. '
  11565. fi
  11566. as_executable_p=$as_test_x
  11567. # Sed expression to map a string onto a valid CPP name.
  11568. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11569. # Sed expression to map a string onto a valid variable name.
  11570. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11571. exec 6>&1
  11572. # Save the log message, to keep $[0] and so on meaningful, and to
  11573. # report actual input values of CONFIG_FILES etc. instead of their
  11574. # values after options handling.
  11575. ac_log="
  11576. This file was extended by guile-readline $as_me 1.8.7, which was
  11577. generated by GNU Autoconf 2.63. Invocation command line was
  11578. CONFIG_FILES = $CONFIG_FILES
  11579. CONFIG_HEADERS = $CONFIG_HEADERS
  11580. CONFIG_LINKS = $CONFIG_LINKS
  11581. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11582. $ $0 $@
  11583. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11584. "
  11585. _ACEOF
  11586. case $ac_config_files in *"
  11587. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11588. esac
  11589. case $ac_config_headers in *"
  11590. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11591. esac
  11592. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11593. # Files that config.status was made for.
  11594. config_files="$ac_config_files"
  11595. config_headers="$ac_config_headers"
  11596. config_commands="$ac_config_commands"
  11597. _ACEOF
  11598. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11599. ac_cs_usage="\
  11600. \`$as_me' instantiates files from templates according to the
  11601. current configuration.
  11602. Usage: $0 [OPTION]... [FILE]...
  11603. -h, --help print this help, then exit
  11604. -V, --version print version number and configuration settings, then exit
  11605. -q, --quiet, --silent
  11606. do not print progress messages
  11607. -d, --debug don't remove temporary files
  11608. --recheck update $as_me by reconfiguring in the same conditions
  11609. --file=FILE[:TEMPLATE]
  11610. instantiate the configuration file FILE
  11611. --header=FILE[:TEMPLATE]
  11612. instantiate the configuration header FILE
  11613. Configuration files:
  11614. $config_files
  11615. Configuration headers:
  11616. $config_headers
  11617. Configuration commands:
  11618. $config_commands
  11619. Report bugs to <bug-autoconf@gnu.org>."
  11620. _ACEOF
  11621. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11622. ac_cs_version="\\
  11623. guile-readline config.status 1.8.7
  11624. configured by $0, generated by GNU Autoconf 2.63,
  11625. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11626. Copyright (C) 2008 Free Software Foundation, Inc.
  11627. This config.status script is free software; the Free Software Foundation
  11628. gives unlimited permission to copy, distribute and modify it."
  11629. ac_pwd='$ac_pwd'
  11630. srcdir='$srcdir'
  11631. INSTALL='$INSTALL'
  11632. MKDIR_P='$MKDIR_P'
  11633. AWK='$AWK'
  11634. test -n "\$AWK" || AWK=awk
  11635. _ACEOF
  11636. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11637. # The default lists apply if the user does not specify any file.
  11638. ac_need_defaults=:
  11639. while test $# != 0
  11640. do
  11641. case $1 in
  11642. --*=*)
  11643. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11644. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11645. ac_shift=:
  11646. ;;
  11647. *)
  11648. ac_option=$1
  11649. ac_optarg=$2
  11650. ac_shift=shift
  11651. ;;
  11652. esac
  11653. case $ac_option in
  11654. # Handling of the options.
  11655. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11656. ac_cs_recheck=: ;;
  11657. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11658. $as_echo "$ac_cs_version"; exit ;;
  11659. --debug | --debu | --deb | --de | --d | -d )
  11660. debug=: ;;
  11661. --file | --fil | --fi | --f )
  11662. $ac_shift
  11663. case $ac_optarg in
  11664. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11665. esac
  11666. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  11667. ac_need_defaults=false;;
  11668. --header | --heade | --head | --hea )
  11669. $ac_shift
  11670. case $ac_optarg in
  11671. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11672. esac
  11673. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  11674. ac_need_defaults=false;;
  11675. --he | --h)
  11676. # Conflict between --help and --header
  11677. { $as_echo "$as_me: error: ambiguous option: $1
  11678. Try \`$0 --help' for more information." >&2
  11679. { (exit 1); exit 1; }; };;
  11680. --help | --hel | -h )
  11681. $as_echo "$ac_cs_usage"; exit ;;
  11682. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11683. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11684. ac_cs_silent=: ;;
  11685. # This is an error.
  11686. -*) { $as_echo "$as_me: error: unrecognized option: $1
  11687. Try \`$0 --help' for more information." >&2
  11688. { (exit 1); exit 1; }; } ;;
  11689. *) ac_config_targets="$ac_config_targets $1"
  11690. ac_need_defaults=false ;;
  11691. esac
  11692. shift
  11693. done
  11694. ac_configure_extra_args=
  11695. if $ac_cs_silent; then
  11696. exec 6>/dev/null
  11697. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11698. fi
  11699. _ACEOF
  11700. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11701. if \$ac_cs_recheck; then
  11702. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11703. shift
  11704. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11705. CONFIG_SHELL='$SHELL'
  11706. export CONFIG_SHELL
  11707. exec "\$@"
  11708. fi
  11709. _ACEOF
  11710. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11711. exec 5>>config.log
  11712. {
  11713. echo
  11714. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11715. ## Running $as_me. ##
  11716. _ASBOX
  11717. $as_echo "$ac_log"
  11718. } >&5
  11719. _ACEOF
  11720. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11721. #
  11722. # INIT-COMMANDS
  11723. #
  11724. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11725. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11726. # if CDPATH is set.
  11727. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11728. sed_quote_subst='$sed_quote_subst'
  11729. double_quote_subst='$double_quote_subst'
  11730. delay_variable_subst='$delay_variable_subst'
  11731. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  11732. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  11733. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  11734. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  11735. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  11736. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  11737. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  11738. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  11739. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  11740. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  11741. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  11742. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  11743. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  11744. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  11745. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  11746. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  11747. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  11748. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  11749. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  11750. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  11751. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  11752. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  11753. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  11754. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  11755. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  11756. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  11757. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  11758. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  11759. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  11760. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11761. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11762. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  11763. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  11764. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  11765. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  11766. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  11767. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  11768. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11769. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11770. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11771. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  11772. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  11773. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  11774. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  11775. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  11776. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  11777. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  11778. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  11779. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  11780. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  11781. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  11782. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  11783. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11784. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  11785. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  11786. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  11787. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  11788. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  11789. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  11790. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  11791. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  11792. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  11793. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  11794. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  11795. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11796. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11797. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  11798. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  11799. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11800. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11801. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  11802. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11803. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11804. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11805. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11806. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11807. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11808. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  11809. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11810. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11811. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11812. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  11813. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  11814. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  11815. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  11816. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  11817. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11818. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  11819. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  11820. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  11821. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  11822. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  11823. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11824. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  11825. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  11826. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11827. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11828. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  11829. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  11830. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  11831. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  11832. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11833. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11834. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  11835. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11836. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11837. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11838. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11839. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11840. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11841. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  11842. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  11843. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11844. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11845. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  11846. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  11847. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  11848. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  11849. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  11850. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  11851. LTCC='$LTCC'
  11852. LTCFLAGS='$LTCFLAGS'
  11853. compiler='$compiler_DEFAULT'
  11854. # Quote evaled strings.
  11855. for var in SED \
  11856. GREP \
  11857. EGREP \
  11858. FGREP \
  11859. LD \
  11860. NM \
  11861. LN_S \
  11862. lt_SP2NL \
  11863. lt_NL2SP \
  11864. reload_flag \
  11865. deplibs_check_method \
  11866. file_magic_cmd \
  11867. AR \
  11868. AR_FLAGS \
  11869. STRIP \
  11870. RANLIB \
  11871. CC \
  11872. CFLAGS \
  11873. compiler \
  11874. lt_cv_sys_global_symbol_pipe \
  11875. lt_cv_sys_global_symbol_to_cdecl \
  11876. lt_cv_sys_global_symbol_to_c_name_address \
  11877. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11878. SHELL \
  11879. ECHO \
  11880. lt_prog_compiler_no_builtin_flag \
  11881. lt_prog_compiler_wl \
  11882. lt_prog_compiler_pic \
  11883. lt_prog_compiler_static \
  11884. lt_cv_prog_compiler_c_o \
  11885. need_locks \
  11886. DSYMUTIL \
  11887. NMEDIT \
  11888. LIPO \
  11889. OTOOL \
  11890. OTOOL64 \
  11891. shrext_cmds \
  11892. export_dynamic_flag_spec \
  11893. whole_archive_flag_spec \
  11894. compiler_needs_object \
  11895. with_gnu_ld \
  11896. allow_undefined_flag \
  11897. no_undefined_flag \
  11898. hardcode_libdir_flag_spec \
  11899. hardcode_libdir_flag_spec_ld \
  11900. hardcode_libdir_separator \
  11901. fix_srcfile_path \
  11902. exclude_expsyms \
  11903. include_expsyms \
  11904. file_list_spec \
  11905. variables_saved_for_relink \
  11906. libname_spec \
  11907. library_names_spec \
  11908. soname_spec \
  11909. finish_eval \
  11910. old_striplib \
  11911. striplib; do
  11912. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  11913. *[\\\\\\\`\\"\\\$]*)
  11914. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11915. ;;
  11916. *)
  11917. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11918. ;;
  11919. esac
  11920. done
  11921. # Double-quote double-evaled strings.
  11922. for var in reload_cmds \
  11923. old_postinstall_cmds \
  11924. old_postuninstall_cmds \
  11925. old_archive_cmds \
  11926. extract_expsyms_cmds \
  11927. old_archive_from_new_cmds \
  11928. old_archive_from_expsyms_cmds \
  11929. archive_cmds \
  11930. archive_expsym_cmds \
  11931. module_cmds \
  11932. module_expsym_cmds \
  11933. export_symbols_cmds \
  11934. prelink_cmds \
  11935. postinstall_cmds \
  11936. postuninstall_cmds \
  11937. finish_cmds \
  11938. sys_lib_search_path_spec \
  11939. sys_lib_dlsearch_path_spec; do
  11940. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  11941. *[\\\\\\\`\\"\\\$]*)
  11942. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11943. ;;
  11944. *)
  11945. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11946. ;;
  11947. esac
  11948. done
  11949. # Fix-up fallback echo if it was mangled by the above quoting rules.
  11950. case \$lt_ECHO in
  11951. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  11952. ;;
  11953. esac
  11954. ac_aux_dir='$ac_aux_dir'
  11955. xsi_shell='$xsi_shell'
  11956. lt_shell_append='$lt_shell_append'
  11957. # See if we are running on zsh, and set the options which allow our
  11958. # commands through without removal of \ escapes INIT.
  11959. if test -n "\${ZSH_VERSION+set}" ; then
  11960. setopt NO_GLOB_SUBST
  11961. fi
  11962. PACKAGE='$PACKAGE'
  11963. VERSION='$VERSION'
  11964. TIMESTAMP='$TIMESTAMP'
  11965. RM='$RM'
  11966. ofile='$ofile'
  11967. _ACEOF
  11968. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11969. # Handling of arguments.
  11970. for ac_config_target in $ac_config_targets
  11971. do
  11972. case $ac_config_target in
  11973. "guile-readline-config.h") CONFIG_HEADERS="$CONFIG_HEADERS guile-readline-config.h" ;;
  11974. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11975. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11976. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11977. "ice-9/Makefile") CONFIG_FILES="$CONFIG_FILES ice-9/Makefile" ;;
  11978. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11979. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11980. { (exit 1); exit 1; }; };;
  11981. esac
  11982. done
  11983. # If the user did not use the arguments to specify the items to instantiate,
  11984. # then the envvar interface is used. Set only those that are not.
  11985. # We use the long form for the default assignment because of an extremely
  11986. # bizarre bug on SunOS 4.1.3.
  11987. if $ac_need_defaults; then
  11988. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11989. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11990. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11991. fi
  11992. # Have a temporary directory for convenience. Make it in the build tree
  11993. # simply because there is no reason against having it here, and in addition,
  11994. # creating and moving files from /tmp can sometimes cause problems.
  11995. # Hook for its removal unless debugging.
  11996. # Note that there is a small window in which the directory will not be cleaned:
  11997. # after its creation but before its name has been assigned to `$tmp'.
  11998. $debug ||
  11999. {
  12000. tmp=
  12001. trap 'exit_status=$?
  12002. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12003. ' 0
  12004. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12005. }
  12006. # Create a (secure) tmp directory for tmp files.
  12007. {
  12008. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12009. test -n "$tmp" && test -d "$tmp"
  12010. } ||
  12011. {
  12012. tmp=./conf$$-$RANDOM
  12013. (umask 077 && mkdir "$tmp")
  12014. } ||
  12015. {
  12016. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  12017. { (exit 1); exit 1; }
  12018. }
  12019. # Set up the scripts for CONFIG_FILES section.
  12020. # No need to generate them if there are no CONFIG_FILES.
  12021. # This happens for instance with `./config.status config.h'.
  12022. if test -n "$CONFIG_FILES"; then
  12023. ac_cr=' '
  12024. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12025. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12026. ac_cs_awk_cr='\\r'
  12027. else
  12028. ac_cs_awk_cr=$ac_cr
  12029. fi
  12030. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12031. _ACEOF
  12032. {
  12033. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12034. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12035. echo "_ACEOF"
  12036. } >conf$$subs.sh ||
  12037. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12038. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12039. { (exit 1); exit 1; }; }
  12040. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12041. ac_delim='%!_!# '
  12042. for ac_last_try in false false false false false :; do
  12043. . ./conf$$subs.sh ||
  12044. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12045. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12046. { (exit 1); exit 1; }; }
  12047. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12048. if test $ac_delim_n = $ac_delim_num; then
  12049. break
  12050. elif $ac_last_try; then
  12051. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12052. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12053. { (exit 1); exit 1; }; }
  12054. else
  12055. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12056. fi
  12057. done
  12058. rm -f conf$$subs.sh
  12059. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12060. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  12061. _ACEOF
  12062. sed -n '
  12063. h
  12064. s/^/S["/; s/!.*/"]=/
  12065. p
  12066. g
  12067. s/^[^!]*!//
  12068. :repl
  12069. t repl
  12070. s/'"$ac_delim"'$//
  12071. t delim
  12072. :nl
  12073. h
  12074. s/\(.\{148\}\).*/\1/
  12075. t more1
  12076. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12077. p
  12078. n
  12079. b repl
  12080. :more1
  12081. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12082. p
  12083. g
  12084. s/.\{148\}//
  12085. t nl
  12086. :delim
  12087. h
  12088. s/\(.\{148\}\).*/\1/
  12089. t more2
  12090. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12091. p
  12092. b
  12093. :more2
  12094. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12095. p
  12096. g
  12097. s/.\{148\}//
  12098. t delim
  12099. ' <conf$$subs.awk | sed '
  12100. /^[^""]/{
  12101. N
  12102. s/\n//
  12103. }
  12104. ' >>$CONFIG_STATUS || ac_write_fail=1
  12105. rm -f conf$$subs.awk
  12106. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12107. _ACAWK
  12108. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  12109. for (key in S) S_is_set[key] = 1
  12110. FS = ""
  12111. }
  12112. {
  12113. line = $ 0
  12114. nfields = split(line, field, "@")
  12115. substed = 0
  12116. len = length(field[1])
  12117. for (i = 2; i < nfields; i++) {
  12118. key = field[i]
  12119. keylen = length(key)
  12120. if (S_is_set[key]) {
  12121. value = S[key]
  12122. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12123. len += length(value) + length(field[++i])
  12124. substed = 1
  12125. } else
  12126. len += 1 + keylen
  12127. }
  12128. print line
  12129. }
  12130. _ACAWK
  12131. _ACEOF
  12132. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12133. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12134. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12135. else
  12136. cat
  12137. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12138. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  12139. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  12140. { (exit 1); exit 1; }; }
  12141. _ACEOF
  12142. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12143. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12144. # trailing colons and then remove the whole line if VPATH becomes empty
  12145. # (actually we leave an empty line to preserve line numbers).
  12146. if test "x$srcdir" = x.; then
  12147. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12148. s/:*\$(srcdir):*/:/
  12149. s/:*\${srcdir}:*/:/
  12150. s/:*@srcdir@:*/:/
  12151. s/^\([^=]*=[ ]*\):*/\1/
  12152. s/:*$//
  12153. s/^[^=]*=[ ]*$//
  12154. }'
  12155. fi
  12156. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12157. fi # test -n "$CONFIG_FILES"
  12158. # Set up the scripts for CONFIG_HEADERS section.
  12159. # No need to generate them if there are no CONFIG_HEADERS.
  12160. # This happens for instance with `./config.status Makefile'.
  12161. if test -n "$CONFIG_HEADERS"; then
  12162. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12163. BEGIN {
  12164. _ACEOF
  12165. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12166. # here-document in config.status, that substitutes the proper values into
  12167. # config.h.in to produce config.h.
  12168. # Create a delimiter string that does not exist in confdefs.h, to ease
  12169. # handling of long lines.
  12170. ac_delim='%!_!# '
  12171. for ac_last_try in false false :; do
  12172. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12173. if test -z "$ac_t"; then
  12174. break
  12175. elif $ac_last_try; then
  12176. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  12177. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  12178. { (exit 1); exit 1; }; }
  12179. else
  12180. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12181. fi
  12182. done
  12183. # For the awk script, D is an array of macro values keyed by name,
  12184. # likewise P contains macro parameters if any. Preserve backslash
  12185. # newline sequences.
  12186. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12187. sed -n '
  12188. s/.\{148\}/&'"$ac_delim"'/g
  12189. t rset
  12190. :rset
  12191. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12192. t def
  12193. d
  12194. :def
  12195. s/\\$//
  12196. t bsnl
  12197. s/["\\]/\\&/g
  12198. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12199. D["\1"]=" \3"/p
  12200. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12201. d
  12202. :bsnl
  12203. s/["\\]/\\&/g
  12204. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12205. D["\1"]=" \3\\\\\\n"\\/p
  12206. t cont
  12207. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12208. t cont
  12209. d
  12210. :cont
  12211. n
  12212. s/.\{148\}/&'"$ac_delim"'/g
  12213. t clear
  12214. :clear
  12215. s/\\$//
  12216. t bsnlc
  12217. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12218. d
  12219. :bsnlc
  12220. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12221. b cont
  12222. ' <confdefs.h | sed '
  12223. s/'"$ac_delim"'/"\\\
  12224. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12225. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12226. for (key in D) D_is_set[key] = 1
  12227. FS = ""
  12228. }
  12229. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12230. line = \$ 0
  12231. split(line, arg, " ")
  12232. if (arg[1] == "#") {
  12233. defundef = arg[2]
  12234. mac1 = arg[3]
  12235. } else {
  12236. defundef = substr(arg[1], 2)
  12237. mac1 = arg[2]
  12238. }
  12239. split(mac1, mac2, "(") #)
  12240. macro = mac2[1]
  12241. prefix = substr(line, 1, index(line, defundef) - 1)
  12242. if (D_is_set[macro]) {
  12243. # Preserve the white space surrounding the "#".
  12244. print prefix "define", macro P[macro] D[macro]
  12245. next
  12246. } else {
  12247. # Replace #undef with comments. This is necessary, for example,
  12248. # in the case of _POSIX_SOURCE, which is predefined and required
  12249. # on some systems where configure will not decide to define it.
  12250. if (defundef == "undef") {
  12251. print "/*", prefix defundef, macro, "*/"
  12252. next
  12253. }
  12254. }
  12255. }
  12256. { print }
  12257. _ACAWK
  12258. _ACEOF
  12259. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12260. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  12261. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  12262. { (exit 1); exit 1; }; }
  12263. fi # test -n "$CONFIG_HEADERS"
  12264. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12265. shift
  12266. for ac_tag
  12267. do
  12268. case $ac_tag in
  12269. :[FHLC]) ac_mode=$ac_tag; continue;;
  12270. esac
  12271. case $ac_mode$ac_tag in
  12272. :[FHL]*:*);;
  12273. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  12274. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  12275. { (exit 1); exit 1; }; };;
  12276. :[FH]-) ac_tag=-:-;;
  12277. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12278. esac
  12279. ac_save_IFS=$IFS
  12280. IFS=:
  12281. set x $ac_tag
  12282. IFS=$ac_save_IFS
  12283. shift
  12284. ac_file=$1
  12285. shift
  12286. case $ac_mode in
  12287. :L) ac_source=$1;;
  12288. :[FH])
  12289. ac_file_inputs=
  12290. for ac_f
  12291. do
  12292. case $ac_f in
  12293. -) ac_f="$tmp/stdin";;
  12294. *) # Look for the file first in the build tree, then in the source tree
  12295. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12296. # because $ac_f cannot contain `:'.
  12297. test -f "$ac_f" ||
  12298. case $ac_f in
  12299. [\\/$]*) false;;
  12300. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12301. esac ||
  12302. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  12303. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  12304. { (exit 1); exit 1; }; };;
  12305. esac
  12306. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12307. ac_file_inputs="$ac_file_inputs '$ac_f'"
  12308. done
  12309. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12310. # use $as_me), people would be surprised to read:
  12311. # /* config.h. Generated by config.status. */
  12312. configure_input='Generated from '`
  12313. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12314. `' by configure.'
  12315. if test x"$ac_file" != x-; then
  12316. configure_input="$ac_file. $configure_input"
  12317. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  12318. $as_echo "$as_me: creating $ac_file" >&6;}
  12319. fi
  12320. # Neutralize special characters interpreted by sed in replacement strings.
  12321. case $configure_input in #(
  12322. *\&* | *\|* | *\\* )
  12323. ac_sed_conf_input=`$as_echo "$configure_input" |
  12324. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12325. *) ac_sed_conf_input=$configure_input;;
  12326. esac
  12327. case $ac_tag in
  12328. *:-:* | *:-) cat >"$tmp/stdin" \
  12329. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  12330. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  12331. { (exit 1); exit 1; }; } ;;
  12332. esac
  12333. ;;
  12334. esac
  12335. ac_dir=`$as_dirname -- "$ac_file" ||
  12336. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12337. X"$ac_file" : 'X\(//\)[^/]' \| \
  12338. X"$ac_file" : 'X\(//\)$' \| \
  12339. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12340. $as_echo X"$ac_file" |
  12341. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12342. s//\1/
  12343. q
  12344. }
  12345. /^X\(\/\/\)[^/].*/{
  12346. s//\1/
  12347. q
  12348. }
  12349. /^X\(\/\/\)$/{
  12350. s//\1/
  12351. q
  12352. }
  12353. /^X\(\/\).*/{
  12354. s//\1/
  12355. q
  12356. }
  12357. s/.*/./; q'`
  12358. { as_dir="$ac_dir"
  12359. case $as_dir in #(
  12360. -*) as_dir=./$as_dir;;
  12361. esac
  12362. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12363. as_dirs=
  12364. while :; do
  12365. case $as_dir in #(
  12366. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12367. *) as_qdir=$as_dir;;
  12368. esac
  12369. as_dirs="'$as_qdir' $as_dirs"
  12370. as_dir=`$as_dirname -- "$as_dir" ||
  12371. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12372. X"$as_dir" : 'X\(//\)[^/]' \| \
  12373. X"$as_dir" : 'X\(//\)$' \| \
  12374. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12375. $as_echo X"$as_dir" |
  12376. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12377. s//\1/
  12378. q
  12379. }
  12380. /^X\(\/\/\)[^/].*/{
  12381. s//\1/
  12382. q
  12383. }
  12384. /^X\(\/\/\)$/{
  12385. s//\1/
  12386. q
  12387. }
  12388. /^X\(\/\).*/{
  12389. s//\1/
  12390. q
  12391. }
  12392. s/.*/./; q'`
  12393. test -d "$as_dir" && break
  12394. done
  12395. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12396. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12397. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12398. { (exit 1); exit 1; }; }; }
  12399. ac_builddir=.
  12400. case "$ac_dir" in
  12401. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12402. *)
  12403. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12404. # A ".." for each directory in $ac_dir_suffix.
  12405. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12406. case $ac_top_builddir_sub in
  12407. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12408. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12409. esac ;;
  12410. esac
  12411. ac_abs_top_builddir=$ac_pwd
  12412. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12413. # for backward compatibility:
  12414. ac_top_builddir=$ac_top_build_prefix
  12415. case $srcdir in
  12416. .) # We are building in place.
  12417. ac_srcdir=.
  12418. ac_top_srcdir=$ac_top_builddir_sub
  12419. ac_abs_top_srcdir=$ac_pwd ;;
  12420. [\\/]* | ?:[\\/]* ) # Absolute name.
  12421. ac_srcdir=$srcdir$ac_dir_suffix;
  12422. ac_top_srcdir=$srcdir
  12423. ac_abs_top_srcdir=$srcdir ;;
  12424. *) # Relative name.
  12425. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12426. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12427. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12428. esac
  12429. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12430. case $ac_mode in
  12431. :F)
  12432. #
  12433. # CONFIG_FILE
  12434. #
  12435. case $INSTALL in
  12436. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12437. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12438. esac
  12439. ac_MKDIR_P=$MKDIR_P
  12440. case $MKDIR_P in
  12441. [\\/$]* | ?:[\\/]* ) ;;
  12442. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12443. esac
  12444. _ACEOF
  12445. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12446. # If the template does not know about datarootdir, expand it.
  12447. # FIXME: This hack should be removed a few years after 2.60.
  12448. ac_datarootdir_hack=; ac_datarootdir_seen=
  12449. ac_sed_dataroot='
  12450. /datarootdir/ {
  12451. p
  12452. q
  12453. }
  12454. /@datadir@/p
  12455. /@docdir@/p
  12456. /@infodir@/p
  12457. /@localedir@/p
  12458. /@mandir@/p
  12459. '
  12460. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12461. *datarootdir*) ac_datarootdir_seen=yes;;
  12462. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12463. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12464. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12465. _ACEOF
  12466. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12467. ac_datarootdir_hack='
  12468. s&@datadir@&$datadir&g
  12469. s&@docdir@&$docdir&g
  12470. s&@infodir@&$infodir&g
  12471. s&@localedir@&$localedir&g
  12472. s&@mandir@&$mandir&g
  12473. s&\\\${datarootdir}&$datarootdir&g' ;;
  12474. esac
  12475. _ACEOF
  12476. # Neutralize VPATH when `$srcdir' = `.'.
  12477. # Shell code in configure.ac might set extrasub.
  12478. # FIXME: do we really want to maintain this feature?
  12479. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12480. ac_sed_extra="$ac_vpsub
  12481. $extrasub
  12482. _ACEOF
  12483. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12484. :t
  12485. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12486. s|@configure_input@|$ac_sed_conf_input|;t t
  12487. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12488. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12489. s&@srcdir@&$ac_srcdir&;t t
  12490. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12491. s&@top_srcdir@&$ac_top_srcdir&;t t
  12492. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12493. s&@builddir@&$ac_builddir&;t t
  12494. s&@abs_builddir@&$ac_abs_builddir&;t t
  12495. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12496. s&@INSTALL@&$ac_INSTALL&;t t
  12497. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12498. $ac_datarootdir_hack
  12499. "
  12500. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12501. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  12502. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  12503. { (exit 1); exit 1; }; }
  12504. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12505. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12506. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12507. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12508. which seems to be undefined. Please make sure it is defined." >&5
  12509. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12510. which seems to be undefined. Please make sure it is defined." >&2;}
  12511. rm -f "$tmp/stdin"
  12512. case $ac_file in
  12513. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12514. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12515. esac \
  12516. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  12517. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  12518. { (exit 1); exit 1; }; }
  12519. ;;
  12520. :H)
  12521. #
  12522. # CONFIG_HEADER
  12523. #
  12524. if test x"$ac_file" != x-; then
  12525. {
  12526. $as_echo "/* $configure_input */" \
  12527. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12528. } >"$tmp/config.h" \
  12529. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  12530. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  12531. { (exit 1); exit 1; }; }
  12532. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12533. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12534. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12535. else
  12536. rm -f "$ac_file"
  12537. mv "$tmp/config.h" "$ac_file" \
  12538. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  12539. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  12540. { (exit 1); exit 1; }; }
  12541. fi
  12542. else
  12543. $as_echo "/* $configure_input */" \
  12544. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12545. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  12546. $as_echo "$as_me: error: could not create -" >&2;}
  12547. { (exit 1); exit 1; }; }
  12548. fi
  12549. # Compute "$ac_file"'s index in $config_headers.
  12550. _am_arg="$ac_file"
  12551. _am_stamp_count=1
  12552. for _am_header in $config_headers :; do
  12553. case $_am_header in
  12554. $_am_arg | $_am_arg:* )
  12555. break ;;
  12556. * )
  12557. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12558. esac
  12559. done
  12560. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12561. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12562. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12563. X"$_am_arg" : 'X\(//\)$' \| \
  12564. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12565. $as_echo X"$_am_arg" |
  12566. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12567. s//\1/
  12568. q
  12569. }
  12570. /^X\(\/\/\)[^/].*/{
  12571. s//\1/
  12572. q
  12573. }
  12574. /^X\(\/\/\)$/{
  12575. s//\1/
  12576. q
  12577. }
  12578. /^X\(\/\).*/{
  12579. s//\1/
  12580. q
  12581. }
  12582. s/.*/./; q'`/stamp-h$_am_stamp_count
  12583. ;;
  12584. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  12585. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12586. ;;
  12587. esac
  12588. case $ac_file$ac_mode in
  12589. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12590. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  12591. # are listed without --file. Let's play safe and only enable the eval
  12592. # if we detect the quoting.
  12593. case $CONFIG_FILES in
  12594. *\'*) eval set x "$CONFIG_FILES" ;;
  12595. *) set x $CONFIG_FILES ;;
  12596. esac
  12597. shift
  12598. for mf
  12599. do
  12600. # Strip MF so we end up with the name of the file.
  12601. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12602. # Check whether this is an Automake generated Makefile or not.
  12603. # We used to match only the files named `Makefile.in', but
  12604. # some people rename them; so instead we look at the file content.
  12605. # Grep'ing the first line is not enough: some people post-process
  12606. # each Makefile.in and add a new line on top of each file to say so.
  12607. # Grep'ing the whole file is not good either: AIX grep has a line
  12608. # limit of 2048, but all sed's we know have understand at least 4000.
  12609. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12610. dirpart=`$as_dirname -- "$mf" ||
  12611. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12612. X"$mf" : 'X\(//\)[^/]' \| \
  12613. X"$mf" : 'X\(//\)$' \| \
  12614. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12615. $as_echo X"$mf" |
  12616. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12617. s//\1/
  12618. q
  12619. }
  12620. /^X\(\/\/\)[^/].*/{
  12621. s//\1/
  12622. q
  12623. }
  12624. /^X\(\/\/\)$/{
  12625. s//\1/
  12626. q
  12627. }
  12628. /^X\(\/\).*/{
  12629. s//\1/
  12630. q
  12631. }
  12632. s/.*/./; q'`
  12633. else
  12634. continue
  12635. fi
  12636. # Extract the definition of DEPDIR, am__include, and am__quote
  12637. # from the Makefile without running `make'.
  12638. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12639. test -z "$DEPDIR" && continue
  12640. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12641. test -z "am__include" && continue
  12642. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12643. # When using ansi2knr, U may be empty or an underscore; expand it
  12644. U=`sed -n 's/^U = //p' < "$mf"`
  12645. # Find all dependency output files, they are included files with
  12646. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12647. # simplest approach to changing $(DEPDIR) to its actual value in the
  12648. # expansion.
  12649. for file in `sed -n "
  12650. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12651. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12652. # Make sure the directory exists.
  12653. test -f "$dirpart/$file" && continue
  12654. fdir=`$as_dirname -- "$file" ||
  12655. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12656. X"$file" : 'X\(//\)[^/]' \| \
  12657. X"$file" : 'X\(//\)$' \| \
  12658. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12659. $as_echo X"$file" |
  12660. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12661. s//\1/
  12662. q
  12663. }
  12664. /^X\(\/\/\)[^/].*/{
  12665. s//\1/
  12666. q
  12667. }
  12668. /^X\(\/\/\)$/{
  12669. s//\1/
  12670. q
  12671. }
  12672. /^X\(\/\).*/{
  12673. s//\1/
  12674. q
  12675. }
  12676. s/.*/./; q'`
  12677. { as_dir=$dirpart/$fdir
  12678. case $as_dir in #(
  12679. -*) as_dir=./$as_dir;;
  12680. esac
  12681. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12682. as_dirs=
  12683. while :; do
  12684. case $as_dir in #(
  12685. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12686. *) as_qdir=$as_dir;;
  12687. esac
  12688. as_dirs="'$as_qdir' $as_dirs"
  12689. as_dir=`$as_dirname -- "$as_dir" ||
  12690. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12691. X"$as_dir" : 'X\(//\)[^/]' \| \
  12692. X"$as_dir" : 'X\(//\)$' \| \
  12693. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12694. $as_echo X"$as_dir" |
  12695. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12696. s//\1/
  12697. q
  12698. }
  12699. /^X\(\/\/\)[^/].*/{
  12700. s//\1/
  12701. q
  12702. }
  12703. /^X\(\/\/\)$/{
  12704. s//\1/
  12705. q
  12706. }
  12707. /^X\(\/\).*/{
  12708. s//\1/
  12709. q
  12710. }
  12711. s/.*/./; q'`
  12712. test -d "$as_dir" && break
  12713. done
  12714. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12715. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12716. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12717. { (exit 1); exit 1; }; }; }
  12718. # echo "creating $dirpart/$file"
  12719. echo '# dummy' > "$dirpart/$file"
  12720. done
  12721. done
  12722. }
  12723. ;;
  12724. "libtool":C)
  12725. # See if we are running on zsh, and set the options which allow our
  12726. # commands through without removal of \ escapes.
  12727. if test -n "${ZSH_VERSION+set}" ; then
  12728. setopt NO_GLOB_SUBST
  12729. fi
  12730. cfgfile="${ofile}T"
  12731. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12732. $RM "$cfgfile"
  12733. cat <<_LT_EOF >> "$cfgfile"
  12734. #! $SHELL
  12735. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12736. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12737. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12738. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12739. #
  12740. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12741. # 2006, 2007, 2008 Free Software Foundation, Inc.
  12742. # Written by Gordon Matzigkeit, 1996
  12743. #
  12744. # This file is part of GNU Libtool.
  12745. #
  12746. # GNU Libtool is free software; you can redistribute it and/or
  12747. # modify it under the terms of the GNU General Public License as
  12748. # published by the Free Software Foundation; either version 2 of
  12749. # the License, or (at your option) any later version.
  12750. #
  12751. # As a special exception to the GNU General Public License,
  12752. # if you distribute this file as part of a program or library that
  12753. # is built using GNU Libtool, you may include this file under the
  12754. # same distribution terms that you use for the rest of that program.
  12755. #
  12756. # GNU Libtool is distributed in the hope that it will be useful,
  12757. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12758. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12759. # GNU General Public License for more details.
  12760. #
  12761. # You should have received a copy of the GNU General Public License
  12762. # along with GNU Libtool; see the file COPYING. If not, a copy
  12763. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12764. # obtained by writing to the Free Software Foundation, Inc.,
  12765. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12766. # The names of the tagged configurations supported by this script.
  12767. available_tags=""
  12768. # ### BEGIN LIBTOOL CONFIG
  12769. # Assembler program.
  12770. AS=$AS
  12771. # DLL creation program.
  12772. DLLTOOL=$DLLTOOL
  12773. # Object dumper program.
  12774. OBJDUMP=$OBJDUMP
  12775. # Which release of libtool.m4 was used?
  12776. macro_version=$macro_version
  12777. macro_revision=$macro_revision
  12778. # Whether or not to build shared libraries.
  12779. build_libtool_libs=$enable_shared
  12780. # Whether or not to build static libraries.
  12781. build_old_libs=$enable_static
  12782. # What type of objects to build.
  12783. pic_mode=$pic_mode
  12784. # Whether or not to optimize for fast installation.
  12785. fast_install=$enable_fast_install
  12786. # The host system.
  12787. host_alias=$host_alias
  12788. host=$host
  12789. host_os=$host_os
  12790. # The build system.
  12791. build_alias=$build_alias
  12792. build=$build
  12793. build_os=$build_os
  12794. # A sed program that does not truncate output.
  12795. SED=$lt_SED
  12796. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12797. Xsed="\$SED -e 1s/^X//"
  12798. # A grep program that handles long lines.
  12799. GREP=$lt_GREP
  12800. # An ERE matcher.
  12801. EGREP=$lt_EGREP
  12802. # A literal string matcher.
  12803. FGREP=$lt_FGREP
  12804. # A BSD- or MS-compatible name lister.
  12805. NM=$lt_NM
  12806. # Whether we need soft or hard links.
  12807. LN_S=$lt_LN_S
  12808. # What is the maximum length of a command?
  12809. max_cmd_len=$max_cmd_len
  12810. # Object file suffix (normally "o").
  12811. objext=$ac_objext
  12812. # Executable file suffix (normally "").
  12813. exeext=$exeext
  12814. # whether the shell understands "unset".
  12815. lt_unset=$lt_unset
  12816. # turn spaces into newlines.
  12817. SP2NL=$lt_lt_SP2NL
  12818. # turn newlines into spaces.
  12819. NL2SP=$lt_lt_NL2SP
  12820. # How to create reloadable object files.
  12821. reload_flag=$lt_reload_flag
  12822. reload_cmds=$lt_reload_cmds
  12823. # Method to check whether dependent libraries are shared objects.
  12824. deplibs_check_method=$lt_deplibs_check_method
  12825. # Command to use when deplibs_check_method == "file_magic".
  12826. file_magic_cmd=$lt_file_magic_cmd
  12827. # The archiver.
  12828. AR=$lt_AR
  12829. AR_FLAGS=$lt_AR_FLAGS
  12830. # A symbol stripping program.
  12831. STRIP=$lt_STRIP
  12832. # Commands used to install an old-style archive.
  12833. RANLIB=$lt_RANLIB
  12834. old_postinstall_cmds=$lt_old_postinstall_cmds
  12835. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12836. # A C compiler.
  12837. LTCC=$lt_CC
  12838. # LTCC compiler flags.
  12839. LTCFLAGS=$lt_CFLAGS
  12840. # Take the output of nm and produce a listing of raw symbols and C names.
  12841. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12842. # Transform the output of nm in a proper C declaration.
  12843. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12844. # Transform the output of nm in a C name address pair.
  12845. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12846. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12847. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12848. # The name of the directory that contains temporary libtool files.
  12849. objdir=$objdir
  12850. # Shell to use when invoking shell scripts.
  12851. SHELL=$lt_SHELL
  12852. # An echo program that does not interpret backslashes.
  12853. ECHO=$lt_ECHO
  12854. # Used to examine libraries when file_magic_cmd begins with "file".
  12855. MAGIC_CMD=$MAGIC_CMD
  12856. # Must we lock files when doing compilation?
  12857. need_locks=$lt_need_locks
  12858. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12859. DSYMUTIL=$lt_DSYMUTIL
  12860. # Tool to change global to local symbols on Mac OS X.
  12861. NMEDIT=$lt_NMEDIT
  12862. # Tool to manipulate fat objects and archives on Mac OS X.
  12863. LIPO=$lt_LIPO
  12864. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12865. OTOOL=$lt_OTOOL
  12866. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12867. OTOOL64=$lt_OTOOL64
  12868. # Old archive suffix (normally "a").
  12869. libext=$libext
  12870. # Shared library suffix (normally ".so").
  12871. shrext_cmds=$lt_shrext_cmds
  12872. # The commands to extract the exported symbol list from a shared archive.
  12873. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12874. # Variables whose values should be saved in libtool wrapper scripts and
  12875. # restored at link time.
  12876. variables_saved_for_relink=$lt_variables_saved_for_relink
  12877. # Do we need the "lib" prefix for modules?
  12878. need_lib_prefix=$need_lib_prefix
  12879. # Do we need a version for libraries?
  12880. need_version=$need_version
  12881. # Library versioning type.
  12882. version_type=$version_type
  12883. # Shared library runtime path variable.
  12884. runpath_var=$runpath_var
  12885. # Shared library path variable.
  12886. shlibpath_var=$shlibpath_var
  12887. # Is shlibpath searched before the hard-coded library search path?
  12888. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12889. # Format of library name prefix.
  12890. libname_spec=$lt_libname_spec
  12891. # List of archive names. First name is the real one, the rest are links.
  12892. # The last name is the one that the linker finds with -lNAME
  12893. library_names_spec=$lt_library_names_spec
  12894. # The coded name of the library, if different from the real name.
  12895. soname_spec=$lt_soname_spec
  12896. # Command to use after installation of a shared archive.
  12897. postinstall_cmds=$lt_postinstall_cmds
  12898. # Command to use after uninstallation of a shared archive.
  12899. postuninstall_cmds=$lt_postuninstall_cmds
  12900. # Commands used to finish a libtool library installation in a directory.
  12901. finish_cmds=$lt_finish_cmds
  12902. # As "finish_cmds", except a single script fragment to be evaled but
  12903. # not shown.
  12904. finish_eval=$lt_finish_eval
  12905. # Whether we should hardcode library paths into libraries.
  12906. hardcode_into_libs=$hardcode_into_libs
  12907. # Compile-time system search path for libraries.
  12908. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12909. # Run-time system search path for libraries.
  12910. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12911. # Whether dlopen is supported.
  12912. dlopen_support=$enable_dlopen
  12913. # Whether dlopen of programs is supported.
  12914. dlopen_self=$enable_dlopen_self
  12915. # Whether dlopen of statically linked programs is supported.
  12916. dlopen_self_static=$enable_dlopen_self_static
  12917. # Commands to strip libraries.
  12918. old_striplib=$lt_old_striplib
  12919. striplib=$lt_striplib
  12920. # The linker used to build libraries.
  12921. LD=$lt_LD
  12922. # Commands used to build an old-style archive.
  12923. old_archive_cmds=$lt_old_archive_cmds
  12924. # A language specific compiler.
  12925. CC=$lt_compiler
  12926. # Is the compiler the GNU compiler?
  12927. with_gcc=$GCC
  12928. # Compiler flag to turn off builtin functions.
  12929. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12930. # How to pass a linker flag through the compiler.
  12931. wl=$lt_lt_prog_compiler_wl
  12932. # Additional compiler flags for building library objects.
  12933. pic_flag=$lt_lt_prog_compiler_pic
  12934. # Compiler flag to prevent dynamic linking.
  12935. link_static_flag=$lt_lt_prog_compiler_static
  12936. # Does compiler simultaneously support -c and -o options?
  12937. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12938. # Whether or not to add -lc for building shared libraries.
  12939. build_libtool_need_lc=$archive_cmds_need_lc
  12940. # Whether or not to disallow shared libs when runtime libs are static.
  12941. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12942. # Compiler flag to allow reflexive dlopens.
  12943. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12944. # Compiler flag to generate shared objects directly from archives.
  12945. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12946. # Whether the compiler copes with passing no objects directly.
  12947. compiler_needs_object=$lt_compiler_needs_object
  12948. # Create an old-style archive from a shared archive.
  12949. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12950. # Create a temporary old-style archive to link instead of a shared archive.
  12951. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12952. # Commands used to build a shared archive.
  12953. archive_cmds=$lt_archive_cmds
  12954. archive_expsym_cmds=$lt_archive_expsym_cmds
  12955. # Commands used to build a loadable module if different from building
  12956. # a shared archive.
  12957. module_cmds=$lt_module_cmds
  12958. module_expsym_cmds=$lt_module_expsym_cmds
  12959. # Whether we are building with GNU ld or not.
  12960. with_gnu_ld=$lt_with_gnu_ld
  12961. # Flag that allows shared libraries with undefined symbols to be built.
  12962. allow_undefined_flag=$lt_allow_undefined_flag
  12963. # Flag that enforces no undefined symbols.
  12964. no_undefined_flag=$lt_no_undefined_flag
  12965. # Flag to hardcode \$libdir into a binary during linking.
  12966. # This must work even if \$libdir does not exist
  12967. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12968. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12969. # during linking. This must work even if \$libdir does not exist.
  12970. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12971. # Whether we need a single "-rpath" flag with a separated argument.
  12972. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12973. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12974. # DIR into the resulting binary.
  12975. hardcode_direct=$hardcode_direct
  12976. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12977. # DIR into the resulting binary and the resulting library dependency is
  12978. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12979. # library is relocated.
  12980. hardcode_direct_absolute=$hardcode_direct_absolute
  12981. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12982. # into the resulting binary.
  12983. hardcode_minus_L=$hardcode_minus_L
  12984. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12985. # into the resulting binary.
  12986. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12987. # Set to "yes" if building a shared library automatically hardcodes DIR
  12988. # into the library and all subsequent libraries and executables linked
  12989. # against it.
  12990. hardcode_automatic=$hardcode_automatic
  12991. # Set to yes if linker adds runtime paths of dependent libraries
  12992. # to runtime path list.
  12993. inherit_rpath=$inherit_rpath
  12994. # Whether libtool must link a program against all its dependency libraries.
  12995. link_all_deplibs=$link_all_deplibs
  12996. # Fix the shell variable \$srcfile for the compiler.
  12997. fix_srcfile_path=$lt_fix_srcfile_path
  12998. # Set to "yes" if exported symbols are required.
  12999. always_export_symbols=$always_export_symbols
  13000. # The commands to list exported symbols.
  13001. export_symbols_cmds=$lt_export_symbols_cmds
  13002. # Symbols that should not be listed in the preloaded symbols.
  13003. exclude_expsyms=$lt_exclude_expsyms
  13004. # Symbols that must always be exported.
  13005. include_expsyms=$lt_include_expsyms
  13006. # Commands necessary for linking programs (against libraries) with templates.
  13007. prelink_cmds=$lt_prelink_cmds
  13008. # Specify filename containing input files.
  13009. file_list_spec=$lt_file_list_spec
  13010. # How to hardcode a shared library path into an executable.
  13011. hardcode_action=$hardcode_action
  13012. # ### END LIBTOOL CONFIG
  13013. _LT_EOF
  13014. case $host_os in
  13015. aix3*)
  13016. cat <<\_LT_EOF >> "$cfgfile"
  13017. # AIX sometimes has problems with the GCC collect2 program. For some
  13018. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13019. # vanish in a puff of smoke.
  13020. if test "X${COLLECT_NAMES+set}" != Xset; then
  13021. COLLECT_NAMES=
  13022. export COLLECT_NAMES
  13023. fi
  13024. _LT_EOF
  13025. ;;
  13026. esac
  13027. ltmain="$ac_aux_dir/ltmain.sh"
  13028. # We use sed instead of cat because bash on DJGPP gets confused if
  13029. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13030. # text mode, it properly converts lines to CR/LF. This bash problem
  13031. # is reportedly fixed, but why not run on old versions too?
  13032. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13033. || (rm -f "$cfgfile"; exit 1)
  13034. case $xsi_shell in
  13035. yes)
  13036. cat << \_LT_EOF >> "$cfgfile"
  13037. # func_dirname file append nondir_replacement
  13038. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13039. # otherwise set result to NONDIR_REPLACEMENT.
  13040. func_dirname ()
  13041. {
  13042. case ${1} in
  13043. */*) func_dirname_result="${1%/*}${2}" ;;
  13044. * ) func_dirname_result="${3}" ;;
  13045. esac
  13046. }
  13047. # func_basename file
  13048. func_basename ()
  13049. {
  13050. func_basename_result="${1##*/}"
  13051. }
  13052. # func_dirname_and_basename file append nondir_replacement
  13053. # perform func_basename and func_dirname in a single function
  13054. # call:
  13055. # dirname: Compute the dirname of FILE. If nonempty,
  13056. # add APPEND to the result, otherwise set result
  13057. # to NONDIR_REPLACEMENT.
  13058. # value returned in "$func_dirname_result"
  13059. # basename: Compute filename of FILE.
  13060. # value retuned in "$func_basename_result"
  13061. # Implementation must be kept synchronized with func_dirname
  13062. # and func_basename. For efficiency, we do not delegate to
  13063. # those functions but instead duplicate the functionality here.
  13064. func_dirname_and_basename ()
  13065. {
  13066. case ${1} in
  13067. */*) func_dirname_result="${1%/*}${2}" ;;
  13068. * ) func_dirname_result="${3}" ;;
  13069. esac
  13070. func_basename_result="${1##*/}"
  13071. }
  13072. # func_stripname prefix suffix name
  13073. # strip PREFIX and SUFFIX off of NAME.
  13074. # PREFIX and SUFFIX must not contain globbing or regex special
  13075. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13076. # dot (in which case that matches only a dot).
  13077. func_stripname ()
  13078. {
  13079. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  13080. # positional parameters, so assign one to ordinary parameter first.
  13081. func_stripname_result=${3}
  13082. func_stripname_result=${func_stripname_result#"${1}"}
  13083. func_stripname_result=${func_stripname_result%"${2}"}
  13084. }
  13085. # func_opt_split
  13086. func_opt_split ()
  13087. {
  13088. func_opt_split_opt=${1%%=*}
  13089. func_opt_split_arg=${1#*=}
  13090. }
  13091. # func_lo2o object
  13092. func_lo2o ()
  13093. {
  13094. case ${1} in
  13095. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  13096. *) func_lo2o_result=${1} ;;
  13097. esac
  13098. }
  13099. # func_xform libobj-or-source
  13100. func_xform ()
  13101. {
  13102. func_xform_result=${1%.*}.lo
  13103. }
  13104. # func_arith arithmetic-term...
  13105. func_arith ()
  13106. {
  13107. func_arith_result=$(( $* ))
  13108. }
  13109. # func_len string
  13110. # STRING may not start with a hyphen.
  13111. func_len ()
  13112. {
  13113. func_len_result=${#1}
  13114. }
  13115. _LT_EOF
  13116. ;;
  13117. *) # Bourne compatible functions.
  13118. cat << \_LT_EOF >> "$cfgfile"
  13119. # func_dirname file append nondir_replacement
  13120. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13121. # otherwise set result to NONDIR_REPLACEMENT.
  13122. func_dirname ()
  13123. {
  13124. # Extract subdirectory from the argument.
  13125. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  13126. if test "X$func_dirname_result" = "X${1}"; then
  13127. func_dirname_result="${3}"
  13128. else
  13129. func_dirname_result="$func_dirname_result${2}"
  13130. fi
  13131. }
  13132. # func_basename file
  13133. func_basename ()
  13134. {
  13135. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  13136. }
  13137. # func_stripname prefix suffix name
  13138. # strip PREFIX and SUFFIX off of NAME.
  13139. # PREFIX and SUFFIX must not contain globbing or regex special
  13140. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13141. # dot (in which case that matches only a dot).
  13142. # func_strip_suffix prefix name
  13143. func_stripname ()
  13144. {
  13145. case ${2} in
  13146. .*) func_stripname_result=`$ECHO "X${3}" \
  13147. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  13148. *) func_stripname_result=`$ECHO "X${3}" \
  13149. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  13150. esac
  13151. }
  13152. # sed scripts:
  13153. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  13154. my_sed_long_arg='1s/^-[^=]*=//'
  13155. # func_opt_split
  13156. func_opt_split ()
  13157. {
  13158. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  13159. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  13160. }
  13161. # func_lo2o object
  13162. func_lo2o ()
  13163. {
  13164. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  13165. }
  13166. # func_xform libobj-or-source
  13167. func_xform ()
  13168. {
  13169. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  13170. }
  13171. # func_arith arithmetic-term...
  13172. func_arith ()
  13173. {
  13174. func_arith_result=`expr "$@"`
  13175. }
  13176. # func_len string
  13177. # STRING may not start with a hyphen.
  13178. func_len ()
  13179. {
  13180. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  13181. }
  13182. _LT_EOF
  13183. esac
  13184. case $lt_shell_append in
  13185. yes)
  13186. cat << \_LT_EOF >> "$cfgfile"
  13187. # func_append var value
  13188. # Append VALUE to the end of shell variable VAR.
  13189. func_append ()
  13190. {
  13191. eval "$1+=\$2"
  13192. }
  13193. _LT_EOF
  13194. ;;
  13195. *)
  13196. cat << \_LT_EOF >> "$cfgfile"
  13197. # func_append var value
  13198. # Append VALUE to the end of shell variable VAR.
  13199. func_append ()
  13200. {
  13201. eval "$1=\$$1\$2"
  13202. }
  13203. _LT_EOF
  13204. ;;
  13205. esac
  13206. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  13207. || (rm -f "$cfgfile"; exit 1)
  13208. mv -f "$cfgfile" "$ofile" ||
  13209. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13210. chmod +x "$ofile"
  13211. ;;
  13212. esac
  13213. done # for ac_tag
  13214. { (exit 0); exit 0; }
  13215. _ACEOF
  13216. chmod +x $CONFIG_STATUS
  13217. ac_clean_files=$ac_clean_files_save
  13218. test $ac_write_fail = 0 ||
  13219. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  13220. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  13221. { (exit 1); exit 1; }; }
  13222. # configure is writing to config.log, and then calls config.status.
  13223. # config.status does its own redirection, appending to config.log.
  13224. # Unfortunately, on DOS this fails, as config.log is still kept open
  13225. # by configure, so config.status won't be able to write to it; its
  13226. # output is simply discarded. So we exec the FD to /dev/null,
  13227. # effectively closing config.log, so it can be properly (re)opened and
  13228. # appended to by config.status. When coming back to configure, we
  13229. # need to make the FD available again.
  13230. if test "$no_create" != yes; then
  13231. ac_cs_success=:
  13232. ac_config_status_args=
  13233. test "$silent" = yes &&
  13234. ac_config_status_args="$ac_config_status_args --quiet"
  13235. exec 5>/dev/null
  13236. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13237. exec 5>>config.log
  13238. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13239. # would make configure fail if this is the last instruction.
  13240. $ac_cs_success || { (exit 1); exit 1; }
  13241. fi
  13242. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13243. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13244. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13245. fi