configure 445 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libedit 3.1.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell [email protected] about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='libedit'
  539. PACKAGE_TARNAME='libedit-20131017'
  540. PACKAGE_VERSION='3.1'
  541. PACKAGE_STRING='libedit 3.1'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="src/strlcat.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. HAVE_UNVIS_FALSE
  584. HAVE_UNVIS_TRUE
  585. HAVE_VIS_FALSE
  586. HAVE_VIS_TRUE
  587. HAVE_STRLCAT_FALSE
  588. HAVE_STRLCAT_TRUE
  589. HAVE_STRLCPY_FALSE
  590. HAVE_STRLCPY_TRUE
  591. LIBOBJS
  592. WIDECHAR_FALSE
  593. WIDECHAR_TRUE
  594. MANTYPE
  595. NROFF
  596. AM_BACKSLASH
  597. AM_DEFAULT_VERBOSITY
  598. AM_DEFAULT_V
  599. AM_V
  600. LT_VERSION
  601. OTOOL64
  602. OTOOL
  603. LIPO
  604. NMEDIT
  605. DSYMUTIL
  606. MANIFEST_TOOL
  607. RANLIB
  608. ac_ct_AR
  609. AR
  610. DLLTOOL
  611. OBJDUMP
  612. LN_S
  613. NM
  614. ac_ct_DUMPBIN
  615. DUMPBIN
  616. LD
  617. FGREP
  618. SED
  619. host_os
  620. host_vendor
  621. host_cpu
  622. host
  623. build_os
  624. build_vendor
  625. build_cpu
  626. build
  627. LIBTOOL
  628. am__fastdepCC_FALSE
  629. am__fastdepCC_TRUE
  630. CCDEPMODE
  631. am__nodep
  632. AMDEPBACKSLASH
  633. AMDEP_FALSE
  634. AMDEP_TRUE
  635. am__quote
  636. am__include
  637. DEPDIR
  638. am__untar
  639. am__tar
  640. AMTAR
  641. am__leading_dot
  642. SET_MAKE
  643. AWK
  644. mkdir_p
  645. MKDIR_P
  646. INSTALL_STRIP_PROGRAM
  647. STRIP
  648. install_sh
  649. MAKEINFO
  650. AUTOHEADER
  651. AUTOMAKE
  652. AUTOCONF
  653. ACLOCAL
  654. VERSION
  655. PACKAGE
  656. CYGPATH_W
  657. am__isrc
  658. INSTALL_DATA
  659. INSTALL_SCRIPT
  660. INSTALL_PROGRAM
  661. EGREP
  662. GREP
  663. CPP
  664. OBJEXT
  665. EXEEXT
  666. ac_ct_CC
  667. CPPFLAGS
  668. LDFLAGS
  669. CFLAGS
  670. CC
  671. target_alias
  672. host_alias
  673. build_alias
  674. LIBS
  675. ECHO_T
  676. ECHO_N
  677. ECHO_C
  678. DEFS
  679. mandir
  680. localedir
  681. libdir
  682. psdir
  683. pdfdir
  684. dvidir
  685. htmldir
  686. infodir
  687. docdir
  688. oldincludedir
  689. includedir
  690. localstatedir
  691. sharedstatedir
  692. sysconfdir
  693. datadir
  694. datarootdir
  695. libexecdir
  696. sbindir
  697. bindir
  698. program_transform_name
  699. prefix
  700. exec_prefix
  701. PACKAGE_URL
  702. PACKAGE_BUGREPORT
  703. PACKAGE_STRING
  704. PACKAGE_VERSION
  705. PACKAGE_TARNAME
  706. PACKAGE_NAME
  707. PATH_SEPARATOR
  708. SHELL'
  709. ac_subst_files=''
  710. ac_user_opts='
  711. enable_option_checking
  712. enable_dependency_tracking
  713. enable_shared
  714. enable_static
  715. with_pic
  716. enable_fast_install
  717. with_gnu_ld
  718. with_sysroot
  719. enable_libtool_lock
  720. enable_silent_rules
  721. enable_widec
  722. '
  723. ac_precious_vars='build_alias
  724. host_alias
  725. target_alias
  726. CC
  727. CFLAGS
  728. LDFLAGS
  729. LIBS
  730. CPPFLAGS
  731. CPP'
  732. # Initialize some variables set by options.
  733. ac_init_help=
  734. ac_init_version=false
  735. ac_unrecognized_opts=
  736. ac_unrecognized_sep=
  737. # The variables have the same names as the options, with
  738. # dashes changed to underlines.
  739. cache_file=/dev/null
  740. exec_prefix=NONE
  741. no_create=
  742. no_recursion=
  743. prefix=NONE
  744. program_prefix=NONE
  745. program_suffix=NONE
  746. program_transform_name=s,x,x,
  747. silent=
  748. site=
  749. srcdir=
  750. verbose=
  751. x_includes=NONE
  752. x_libraries=NONE
  753. # Installation directory options.
  754. # These are left unexpanded so users can "make install exec_prefix=/foo"
  755. # and all the variables that are supposed to be based on exec_prefix
  756. # by default will actually change.
  757. # Use braces instead of parens because sh, perl, etc. also accept them.
  758. # (The list follows the same order as the GNU Coding Standards.)
  759. bindir='${exec_prefix}/bin'
  760. sbindir='${exec_prefix}/sbin'
  761. libexecdir='${exec_prefix}/libexec'
  762. datarootdir='${prefix}/share'
  763. datadir='${datarootdir}'
  764. sysconfdir='${prefix}/etc'
  765. sharedstatedir='${prefix}/com'
  766. localstatedir='${prefix}/var'
  767. includedir='${prefix}/include'
  768. oldincludedir='/usr/include'
  769. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  770. infodir='${datarootdir}/info'
  771. htmldir='${docdir}'
  772. dvidir='${docdir}'
  773. pdfdir='${docdir}'
  774. psdir='${docdir}'
  775. libdir='${exec_prefix}/lib'
  776. localedir='${datarootdir}/locale'
  777. mandir='${datarootdir}/man'
  778. ac_prev=
  779. ac_dashdash=
  780. for ac_option
  781. do
  782. # If the previous option needs an argument, assign it.
  783. if test -n "$ac_prev"; then
  784. eval $ac_prev=\$ac_option
  785. ac_prev=
  786. continue
  787. fi
  788. case $ac_option in
  789. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  790. *=) ac_optarg= ;;
  791. *) ac_optarg=yes ;;
  792. esac
  793. # Accept the important Cygnus configure options, so we can diagnose typos.
  794. case $ac_dashdash$ac_option in
  795. --)
  796. ac_dashdash=yes ;;
  797. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  798. ac_prev=bindir ;;
  799. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  800. bindir=$ac_optarg ;;
  801. -build | --build | --buil | --bui | --bu)
  802. ac_prev=build_alias ;;
  803. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  804. build_alias=$ac_optarg ;;
  805. -cache-file | --cache-file | --cache-fil | --cache-fi \
  806. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  807. ac_prev=cache_file ;;
  808. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  809. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  810. cache_file=$ac_optarg ;;
  811. --config-cache | -C)
  812. cache_file=config.cache ;;
  813. -datadir | --datadir | --datadi | --datad)
  814. ac_prev=datadir ;;
  815. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  816. datadir=$ac_optarg ;;
  817. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  818. | --dataroo | --dataro | --datar)
  819. ac_prev=datarootdir ;;
  820. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  821. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  822. datarootdir=$ac_optarg ;;
  823. -disable-* | --disable-*)
  824. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  825. # Reject names that are not valid shell variable names.
  826. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  827. as_fn_error $? "invalid feature name: $ac_useropt"
  828. ac_useropt_orig=$ac_useropt
  829. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  830. case $ac_user_opts in
  831. *"
  832. "enable_$ac_useropt"
  833. "*) ;;
  834. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  835. ac_unrecognized_sep=', ';;
  836. esac
  837. eval enable_$ac_useropt=no ;;
  838. -docdir | --docdir | --docdi | --doc | --do)
  839. ac_prev=docdir ;;
  840. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  841. docdir=$ac_optarg ;;
  842. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  843. ac_prev=dvidir ;;
  844. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  845. dvidir=$ac_optarg ;;
  846. -enable-* | --enable-*)
  847. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  848. # Reject names that are not valid shell variable names.
  849. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  850. as_fn_error $? "invalid feature name: $ac_useropt"
  851. ac_useropt_orig=$ac_useropt
  852. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  853. case $ac_user_opts in
  854. *"
  855. "enable_$ac_useropt"
  856. "*) ;;
  857. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  858. ac_unrecognized_sep=', ';;
  859. esac
  860. eval enable_$ac_useropt=\$ac_optarg ;;
  861. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  862. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  863. | --exec | --exe | --ex)
  864. ac_prev=exec_prefix ;;
  865. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  866. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  867. | --exec=* | --exe=* | --ex=*)
  868. exec_prefix=$ac_optarg ;;
  869. -gas | --gas | --ga | --g)
  870. # Obsolete; use --with-gas.
  871. with_gas=yes ;;
  872. -help | --help | --hel | --he | -h)
  873. ac_init_help=long ;;
  874. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  875. ac_init_help=recursive ;;
  876. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  877. ac_init_help=short ;;
  878. -host | --host | --hos | --ho)
  879. ac_prev=host_alias ;;
  880. -host=* | --host=* | --hos=* | --ho=*)
  881. host_alias=$ac_optarg ;;
  882. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  883. ac_prev=htmldir ;;
  884. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  885. | --ht=*)
  886. htmldir=$ac_optarg ;;
  887. -includedir | --includedir | --includedi | --included | --include \
  888. | --includ | --inclu | --incl | --inc)
  889. ac_prev=includedir ;;
  890. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  891. | --includ=* | --inclu=* | --incl=* | --inc=*)
  892. includedir=$ac_optarg ;;
  893. -infodir | --infodir | --infodi | --infod | --info | --inf)
  894. ac_prev=infodir ;;
  895. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  896. infodir=$ac_optarg ;;
  897. -libdir | --libdir | --libdi | --libd)
  898. ac_prev=libdir ;;
  899. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  900. libdir=$ac_optarg ;;
  901. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  902. | --libexe | --libex | --libe)
  903. ac_prev=libexecdir ;;
  904. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  905. | --libexe=* | --libex=* | --libe=*)
  906. libexecdir=$ac_optarg ;;
  907. -localedir | --localedir | --localedi | --localed | --locale)
  908. ac_prev=localedir ;;
  909. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  910. localedir=$ac_optarg ;;
  911. -localstatedir | --localstatedir | --localstatedi | --localstated \
  912. | --localstate | --localstat | --localsta | --localst | --locals)
  913. ac_prev=localstatedir ;;
  914. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  915. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  916. localstatedir=$ac_optarg ;;
  917. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  918. ac_prev=mandir ;;
  919. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  920. mandir=$ac_optarg ;;
  921. -nfp | --nfp | --nf)
  922. # Obsolete; use --without-fp.
  923. with_fp=no ;;
  924. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  925. | --no-cr | --no-c | -n)
  926. no_create=yes ;;
  927. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  928. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  929. no_recursion=yes ;;
  930. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  931. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  932. | --oldin | --oldi | --old | --ol | --o)
  933. ac_prev=oldincludedir ;;
  934. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  935. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  936. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  937. oldincludedir=$ac_optarg ;;
  938. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  939. ac_prev=prefix ;;
  940. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  941. prefix=$ac_optarg ;;
  942. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  943. | --program-pre | --program-pr | --program-p)
  944. ac_prev=program_prefix ;;
  945. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  946. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  947. program_prefix=$ac_optarg ;;
  948. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  949. | --program-suf | --program-su | --program-s)
  950. ac_prev=program_suffix ;;
  951. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  952. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  953. program_suffix=$ac_optarg ;;
  954. -program-transform-name | --program-transform-name \
  955. | --program-transform-nam | --program-transform-na \
  956. | --program-transform-n | --program-transform- \
  957. | --program-transform | --program-transfor \
  958. | --program-transfo | --program-transf \
  959. | --program-trans | --program-tran \
  960. | --progr-tra | --program-tr | --program-t)
  961. ac_prev=program_transform_name ;;
  962. -program-transform-name=* | --program-transform-name=* \
  963. | --program-transform-nam=* | --program-transform-na=* \
  964. | --program-transform-n=* | --program-transform-=* \
  965. | --program-transform=* | --program-transfor=* \
  966. | --program-transfo=* | --program-transf=* \
  967. | --program-trans=* | --program-tran=* \
  968. | --progr-tra=* | --program-tr=* | --program-t=*)
  969. program_transform_name=$ac_optarg ;;
  970. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  971. ac_prev=pdfdir ;;
  972. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  973. pdfdir=$ac_optarg ;;
  974. -psdir | --psdir | --psdi | --psd | --ps)
  975. ac_prev=psdir ;;
  976. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  977. psdir=$ac_optarg ;;
  978. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  979. | -silent | --silent | --silen | --sile | --sil)
  980. silent=yes ;;
  981. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  982. ac_prev=sbindir ;;
  983. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  984. | --sbi=* | --sb=*)
  985. sbindir=$ac_optarg ;;
  986. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  987. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  988. | --sharedst | --shareds | --shared | --share | --shar \
  989. | --sha | --sh)
  990. ac_prev=sharedstatedir ;;
  991. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  992. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  993. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  994. | --sha=* | --sh=*)
  995. sharedstatedir=$ac_optarg ;;
  996. -site | --site | --sit)
  997. ac_prev=site ;;
  998. -site=* | --site=* | --sit=*)
  999. site=$ac_optarg ;;
  1000. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1001. ac_prev=srcdir ;;
  1002. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1003. srcdir=$ac_optarg ;;
  1004. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1005. | --syscon | --sysco | --sysc | --sys | --sy)
  1006. ac_prev=sysconfdir ;;
  1007. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1008. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1009. sysconfdir=$ac_optarg ;;
  1010. -target | --target | --targe | --targ | --tar | --ta | --t)
  1011. ac_prev=target_alias ;;
  1012. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1013. target_alias=$ac_optarg ;;
  1014. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1015. verbose=yes ;;
  1016. -version | --version | --versio | --versi | --vers | -V)
  1017. ac_init_version=: ;;
  1018. -with-* | --with-*)
  1019. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1020. # Reject names that are not valid shell variable names.
  1021. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1022. as_fn_error $? "invalid package name: $ac_useropt"
  1023. ac_useropt_orig=$ac_useropt
  1024. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1025. case $ac_user_opts in
  1026. *"
  1027. "with_$ac_useropt"
  1028. "*) ;;
  1029. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1030. ac_unrecognized_sep=', ';;
  1031. esac
  1032. eval with_$ac_useropt=\$ac_optarg ;;
  1033. -without-* | --without-*)
  1034. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1035. # Reject names that are not valid shell variable names.
  1036. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1037. as_fn_error $? "invalid package name: $ac_useropt"
  1038. ac_useropt_orig=$ac_useropt
  1039. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1040. case $ac_user_opts in
  1041. *"
  1042. "with_$ac_useropt"
  1043. "*) ;;
  1044. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1045. ac_unrecognized_sep=', ';;
  1046. esac
  1047. eval with_$ac_useropt=no ;;
  1048. --x)
  1049. # Obsolete; use --with-x.
  1050. with_x=yes ;;
  1051. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1052. | --x-incl | --x-inc | --x-in | --x-i)
  1053. ac_prev=x_includes ;;
  1054. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1055. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1056. x_includes=$ac_optarg ;;
  1057. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1058. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1059. ac_prev=x_libraries ;;
  1060. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1061. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1062. x_libraries=$ac_optarg ;;
  1063. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1064. Try \`$0 --help' for more information"
  1065. ;;
  1066. *=*)
  1067. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1068. # Reject names that are not valid shell variable names.
  1069. case $ac_envvar in #(
  1070. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1071. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1072. esac
  1073. eval $ac_envvar=\$ac_optarg
  1074. export $ac_envvar ;;
  1075. *)
  1076. # FIXME: should be removed in autoconf 3.0.
  1077. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1078. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1079. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1080. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1081. ;;
  1082. esac
  1083. done
  1084. if test -n "$ac_prev"; then
  1085. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1086. as_fn_error $? "missing argument to $ac_option"
  1087. fi
  1088. if test -n "$ac_unrecognized_opts"; then
  1089. case $enable_option_checking in
  1090. no) ;;
  1091. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1092. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1093. esac
  1094. fi
  1095. # Check all directory arguments for consistency.
  1096. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1097. datadir sysconfdir sharedstatedir localstatedir includedir \
  1098. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1099. libdir localedir mandir
  1100. do
  1101. eval ac_val=\$$ac_var
  1102. # Remove trailing slashes.
  1103. case $ac_val in
  1104. */ )
  1105. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1106. eval $ac_var=\$ac_val;;
  1107. esac
  1108. # Be sure to have absolute directory names.
  1109. case $ac_val in
  1110. [\\/$]* | ?:[\\/]* ) continue;;
  1111. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1112. esac
  1113. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1114. done
  1115. # There might be people who depend on the old broken behavior: `$host'
  1116. # used to hold the argument of --host etc.
  1117. # FIXME: To remove some day.
  1118. build=$build_alias
  1119. host=$host_alias
  1120. target=$target_alias
  1121. # FIXME: To remove some day.
  1122. if test "x$host_alias" != x; then
  1123. if test "x$build_alias" = x; then
  1124. cross_compiling=maybe
  1125. elif test "x$build_alias" != "x$host_alias"; then
  1126. cross_compiling=yes
  1127. fi
  1128. fi
  1129. ac_tool_prefix=
  1130. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1131. test "$silent" = yes && exec 6>/dev/null
  1132. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1133. ac_ls_di=`ls -di .` &&
  1134. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1135. as_fn_error $? "working directory cannot be determined"
  1136. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1137. as_fn_error $? "pwd does not report name of working directory"
  1138. # Find the source files, if location was not specified.
  1139. if test -z "$srcdir"; then
  1140. ac_srcdir_defaulted=yes
  1141. # Try the directory containing this script, then the parent directory.
  1142. ac_confdir=`$as_dirname -- "$as_myself" ||
  1143. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1144. X"$as_myself" : 'X\(//\)[^/]' \| \
  1145. X"$as_myself" : 'X\(//\)$' \| \
  1146. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1147. $as_echo X"$as_myself" |
  1148. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1149. s//\1/
  1150. q
  1151. }
  1152. /^X\(\/\/\)[^/].*/{
  1153. s//\1/
  1154. q
  1155. }
  1156. /^X\(\/\/\)$/{
  1157. s//\1/
  1158. q
  1159. }
  1160. /^X\(\/\).*/{
  1161. s//\1/
  1162. q
  1163. }
  1164. s/.*/./; q'`
  1165. srcdir=$ac_confdir
  1166. if test ! -r "$srcdir/$ac_unique_file"; then
  1167. srcdir=..
  1168. fi
  1169. else
  1170. ac_srcdir_defaulted=no
  1171. fi
  1172. if test ! -r "$srcdir/$ac_unique_file"; then
  1173. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1174. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1175. fi
  1176. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1177. ac_abs_confdir=`(
  1178. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1179. pwd)`
  1180. # When building in place, set srcdir=.
  1181. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1182. srcdir=.
  1183. fi
  1184. # Remove unnecessary trailing slashes from srcdir.
  1185. # Double slashes in file names in object file debugging info
  1186. # mess up M-x gdb in Emacs.
  1187. case $srcdir in
  1188. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1189. esac
  1190. for ac_var in $ac_precious_vars; do
  1191. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1192. eval ac_env_${ac_var}_value=\$${ac_var}
  1193. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1194. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1195. done
  1196. #
  1197. # Report the --help message.
  1198. #
  1199. if test "$ac_init_help" = "long"; then
  1200. # Omit some internal or obsolete options to make the list less imposing.
  1201. # This message is too long to be a string in the A/UX 3.1 sh.
  1202. cat <<_ACEOF
  1203. \`configure' configures libedit 3.1 to adapt to many kinds of systems.
  1204. Usage: $0 [OPTION]... [VAR=VALUE]...
  1205. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1206. VAR=VALUE. See below for descriptions of some of the useful variables.
  1207. Defaults for the options are specified in brackets.
  1208. Configuration:
  1209. -h, --help display this help and exit
  1210. --help=short display options specific to this package
  1211. --help=recursive display the short help of all the included packages
  1212. -V, --version display version information and exit
  1213. -q, --quiet, --silent do not print \`checking ...' messages
  1214. --cache-file=FILE cache test results in FILE [disabled]
  1215. -C, --config-cache alias for \`--cache-file=config.cache'
  1216. -n, --no-create do not create output files
  1217. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1218. Installation directories:
  1219. --prefix=PREFIX install architecture-independent files in PREFIX
  1220. [$ac_default_prefix]
  1221. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1222. [PREFIX]
  1223. By default, \`make install' will install all the files in
  1224. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1225. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1226. for instance \`--prefix=\$HOME'.
  1227. For better control, use the options below.
  1228. Fine tuning of the installation directories:
  1229. --bindir=DIR user executables [EPREFIX/bin]
  1230. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1231. --libexecdir=DIR program executables [EPREFIX/libexec]
  1232. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1233. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1234. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1235. --libdir=DIR object code libraries [EPREFIX/lib]
  1236. --includedir=DIR C header files [PREFIX/include]
  1237. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1238. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1239. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1240. --infodir=DIR info documentation [DATAROOTDIR/info]
  1241. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1242. --mandir=DIR man documentation [DATAROOTDIR/man]
  1243. --docdir=DIR documentation root
  1244. [DATAROOTDIR/doc/libedit-20131017]
  1245. --htmldir=DIR html documentation [DOCDIR]
  1246. --dvidir=DIR dvi documentation [DOCDIR]
  1247. --pdfdir=DIR pdf documentation [DOCDIR]
  1248. --psdir=DIR ps documentation [DOCDIR]
  1249. _ACEOF
  1250. cat <<\_ACEOF
  1251. Program names:
  1252. --program-prefix=PREFIX prepend PREFIX to installed program names
  1253. --program-suffix=SUFFIX append SUFFIX to installed program names
  1254. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1255. System types:
  1256. --build=BUILD configure for building on BUILD [guessed]
  1257. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1258. _ACEOF
  1259. fi
  1260. if test -n "$ac_init_help"; then
  1261. case $ac_init_help in
  1262. short | recursive ) echo "Configuration of libedit 3.1:";;
  1263. esac
  1264. cat <<\_ACEOF
  1265. Optional Features:
  1266. --disable-option-checking ignore unrecognized --enable/--with options
  1267. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1268. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1269. --enable-dependency-tracking
  1270. do not reject slow dependency extractors
  1271. --disable-dependency-tracking
  1272. speeds up one-time build
  1273. --enable-shared[=PKGS] build shared libraries [default=yes]
  1274. --enable-static[=PKGS] build static libraries [default=yes]
  1275. --enable-fast-install[=PKGS]
  1276. optimize for fast installation [default=yes]
  1277. --disable-libtool-lock avoid locking (might break parallel builds)
  1278. --enable-silent-rules less verbose build output (undo: "make V=1")
  1279. --disable-silent-rules verbose build output (undo: "make V=0")
  1280. --enable-widec compile with wide-char/UTF-8 code
  1281. Optional Packages:
  1282. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1283. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1284. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1285. both]
  1286. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1287. --with-sysroot=DIR Search for dependent libraries within DIR
  1288. (or the compiler's sysroot if not specified).
  1289. Some influential environment variables:
  1290. CC C compiler command
  1291. CFLAGS C compiler flags
  1292. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1293. nonstandard directory <lib dir>
  1294. LIBS libraries to pass to the linker, e.g. -l<library>
  1295. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1296. you have headers in a nonstandard directory <include dir>
  1297. CPP C preprocessor
  1298. Use these variables to override the choices made by `configure' or to help
  1299. it to find libraries and programs with nonstandard names/locations.
  1300. Report bugs to the package provider.
  1301. _ACEOF
  1302. ac_status=$?
  1303. fi
  1304. if test "$ac_init_help" = "recursive"; then
  1305. # If there are subdirs, report their specific --help.
  1306. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1307. test -d "$ac_dir" ||
  1308. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1309. continue
  1310. ac_builddir=.
  1311. case "$ac_dir" in
  1312. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1313. *)
  1314. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1315. # A ".." for each directory in $ac_dir_suffix.
  1316. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1317. case $ac_top_builddir_sub in
  1318. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1319. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1320. esac ;;
  1321. esac
  1322. ac_abs_top_builddir=$ac_pwd
  1323. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1324. # for backward compatibility:
  1325. ac_top_builddir=$ac_top_build_prefix
  1326. case $srcdir in
  1327. .) # We are building in place.
  1328. ac_srcdir=.
  1329. ac_top_srcdir=$ac_top_builddir_sub
  1330. ac_abs_top_srcdir=$ac_pwd ;;
  1331. [\\/]* | ?:[\\/]* ) # Absolute name.
  1332. ac_srcdir=$srcdir$ac_dir_suffix;
  1333. ac_top_srcdir=$srcdir
  1334. ac_abs_top_srcdir=$srcdir ;;
  1335. *) # Relative name.
  1336. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1337. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1338. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1339. esac
  1340. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1341. cd "$ac_dir" || { ac_status=$?; continue; }
  1342. # Check for guested configure.
  1343. if test -f "$ac_srcdir/configure.gnu"; then
  1344. echo &&
  1345. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1346. elif test -f "$ac_srcdir/configure"; then
  1347. echo &&
  1348. $SHELL "$ac_srcdir/configure" --help=recursive
  1349. else
  1350. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1351. fi || ac_status=$?
  1352. cd "$ac_pwd" || { ac_status=$?; break; }
  1353. done
  1354. fi
  1355. test -n "$ac_init_help" && exit $ac_status
  1356. if $ac_init_version; then
  1357. cat <<\_ACEOF
  1358. libedit configure 3.1
  1359. generated by GNU Autoconf 2.69
  1360. Copyright (C) 2012 Free Software Foundation, Inc.
  1361. This configure script is free software; the Free Software Foundation
  1362. gives unlimited permission to copy, distribute and modify it.
  1363. _ACEOF
  1364. exit
  1365. fi
  1366. ## ------------------------ ##
  1367. ## Autoconf initialization. ##
  1368. ## ------------------------ ##
  1369. # ac_fn_c_try_compile LINENO
  1370. # --------------------------
  1371. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1372. ac_fn_c_try_compile ()
  1373. {
  1374. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1375. rm -f conftest.$ac_objext
  1376. if { { ac_try="$ac_compile"
  1377. case "(($ac_try" in
  1378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1379. *) ac_try_echo=$ac_try;;
  1380. esac
  1381. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1382. $as_echo "$ac_try_echo"; } >&5
  1383. (eval "$ac_compile") 2>conftest.err
  1384. ac_status=$?
  1385. if test -s conftest.err; then
  1386. grep -v '^ *+' conftest.err >conftest.er1
  1387. cat conftest.er1 >&5
  1388. mv -f conftest.er1 conftest.err
  1389. fi
  1390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1391. test $ac_status = 0; } && {
  1392. test -z "$ac_c_werror_flag" ||
  1393. test ! -s conftest.err
  1394. } && test -s conftest.$ac_objext; then :
  1395. ac_retval=0
  1396. else
  1397. $as_echo "$as_me: failed program was:" >&5
  1398. sed 's/^/| /' conftest.$ac_ext >&5
  1399. ac_retval=1
  1400. fi
  1401. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1402. as_fn_set_status $ac_retval
  1403. } # ac_fn_c_try_compile
  1404. # ac_fn_c_try_cpp LINENO
  1405. # ----------------------
  1406. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1407. ac_fn_c_try_cpp ()
  1408. {
  1409. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1410. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1411. case "(($ac_try" in
  1412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1413. *) ac_try_echo=$ac_try;;
  1414. esac
  1415. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1416. $as_echo "$ac_try_echo"; } >&5
  1417. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1418. ac_status=$?
  1419. if test -s conftest.err; then
  1420. grep -v '^ *+' conftest.err >conftest.er1
  1421. cat conftest.er1 >&5
  1422. mv -f conftest.er1 conftest.err
  1423. fi
  1424. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1425. test $ac_status = 0; } > conftest.i && {
  1426. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1427. test ! -s conftest.err
  1428. }; then :
  1429. ac_retval=0
  1430. else
  1431. $as_echo "$as_me: failed program was:" >&5
  1432. sed 's/^/| /' conftest.$ac_ext >&5
  1433. ac_retval=1
  1434. fi
  1435. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1436. as_fn_set_status $ac_retval
  1437. } # ac_fn_c_try_cpp
  1438. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1439. # -------------------------------------------------------
  1440. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1441. # the include files in INCLUDES and setting the cache variable VAR
  1442. # accordingly.
  1443. ac_fn_c_check_header_mongrel ()
  1444. {
  1445. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1446. if eval \${$3+:} false; then :
  1447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1448. $as_echo_n "checking for $2... " >&6; }
  1449. if eval \${$3+:} false; then :
  1450. $as_echo_n "(cached) " >&6
  1451. fi
  1452. eval ac_res=\$$3
  1453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1454. $as_echo "$ac_res" >&6; }
  1455. else
  1456. # Is the header compilable?
  1457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1458. $as_echo_n "checking $2 usability... " >&6; }
  1459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1460. /* end confdefs.h. */
  1461. $4
  1462. #include <$2>
  1463. _ACEOF
  1464. if ac_fn_c_try_compile "$LINENO"; then :
  1465. ac_header_compiler=yes
  1466. else
  1467. ac_header_compiler=no
  1468. fi
  1469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1471. $as_echo "$ac_header_compiler" >&6; }
  1472. # Is the header present?
  1473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1474. $as_echo_n "checking $2 presence... " >&6; }
  1475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1476. /* end confdefs.h. */
  1477. #include <$2>
  1478. _ACEOF
  1479. if ac_fn_c_try_cpp "$LINENO"; then :
  1480. ac_header_preproc=yes
  1481. else
  1482. ac_header_preproc=no
  1483. fi
  1484. rm -f conftest.err conftest.i conftest.$ac_ext
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1486. $as_echo "$ac_header_preproc" >&6; }
  1487. # So? What about this header?
  1488. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1489. yes:no: )
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1491. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1493. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1494. ;;
  1495. no:yes:* )
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1497. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1499. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1501. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1503. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1505. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1506. ;;
  1507. esac
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1509. $as_echo_n "checking for $2... " >&6; }
  1510. if eval \${$3+:} false; then :
  1511. $as_echo_n "(cached) " >&6
  1512. else
  1513. eval "$3=\$ac_header_compiler"
  1514. fi
  1515. eval ac_res=\$$3
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1517. $as_echo "$ac_res" >&6; }
  1518. fi
  1519. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1520. } # ac_fn_c_check_header_mongrel
  1521. # ac_fn_c_try_run LINENO
  1522. # ----------------------
  1523. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1524. # that executables *can* be run.
  1525. ac_fn_c_try_run ()
  1526. {
  1527. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1528. if { { ac_try="$ac_link"
  1529. case "(($ac_try" in
  1530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1531. *) ac_try_echo=$ac_try;;
  1532. esac
  1533. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1534. $as_echo "$ac_try_echo"; } >&5
  1535. (eval "$ac_link") 2>&5
  1536. ac_status=$?
  1537. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1538. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1539. { { case "(($ac_try" in
  1540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1541. *) ac_try_echo=$ac_try;;
  1542. esac
  1543. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1544. $as_echo "$ac_try_echo"; } >&5
  1545. (eval "$ac_try") 2>&5
  1546. ac_status=$?
  1547. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1548. test $ac_status = 0; }; }; then :
  1549. ac_retval=0
  1550. else
  1551. $as_echo "$as_me: program exited with status $ac_status" >&5
  1552. $as_echo "$as_me: failed program was:" >&5
  1553. sed 's/^/| /' conftest.$ac_ext >&5
  1554. ac_retval=$ac_status
  1555. fi
  1556. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1557. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1558. as_fn_set_status $ac_retval
  1559. } # ac_fn_c_try_run
  1560. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1561. # -------------------------------------------------------
  1562. # Tests whether HEADER exists and can be compiled using the include files in
  1563. # INCLUDES, setting the cache variable VAR accordingly.
  1564. ac_fn_c_check_header_compile ()
  1565. {
  1566. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1568. $as_echo_n "checking for $2... " >&6; }
  1569. if eval \${$3+:} false; then :
  1570. $as_echo_n "(cached) " >&6
  1571. else
  1572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1573. /* end confdefs.h. */
  1574. $4
  1575. #include <$2>
  1576. _ACEOF
  1577. if ac_fn_c_try_compile "$LINENO"; then :
  1578. eval "$3=yes"
  1579. else
  1580. eval "$3=no"
  1581. fi
  1582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1583. fi
  1584. eval ac_res=\$$3
  1585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1586. $as_echo "$ac_res" >&6; }
  1587. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1588. } # ac_fn_c_check_header_compile
  1589. # ac_fn_c_try_link LINENO
  1590. # -----------------------
  1591. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1592. ac_fn_c_try_link ()
  1593. {
  1594. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1595. rm -f conftest.$ac_objext conftest$ac_exeext
  1596. if { { ac_try="$ac_link"
  1597. case "(($ac_try" in
  1598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1599. *) ac_try_echo=$ac_try;;
  1600. esac
  1601. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1602. $as_echo "$ac_try_echo"; } >&5
  1603. (eval "$ac_link") 2>conftest.err
  1604. ac_status=$?
  1605. if test -s conftest.err; then
  1606. grep -v '^ *+' conftest.err >conftest.er1
  1607. cat conftest.er1 >&5
  1608. mv -f conftest.er1 conftest.err
  1609. fi
  1610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1611. test $ac_status = 0; } && {
  1612. test -z "$ac_c_werror_flag" ||
  1613. test ! -s conftest.err
  1614. } && test -s conftest$ac_exeext && {
  1615. test "$cross_compiling" = yes ||
  1616. test -x conftest$ac_exeext
  1617. }; then :
  1618. ac_retval=0
  1619. else
  1620. $as_echo "$as_me: failed program was:" >&5
  1621. sed 's/^/| /' conftest.$ac_ext >&5
  1622. ac_retval=1
  1623. fi
  1624. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1625. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1626. # interfere with the next link command; also delete a directory that is
  1627. # left behind by Apple's compiler. We do this before executing the actions.
  1628. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1629. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1630. as_fn_set_status $ac_retval
  1631. } # ac_fn_c_try_link
  1632. # ac_fn_c_check_func LINENO FUNC VAR
  1633. # ----------------------------------
  1634. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1635. ac_fn_c_check_func ()
  1636. {
  1637. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1639. $as_echo_n "checking for $2... " >&6; }
  1640. if eval \${$3+:} false; then :
  1641. $as_echo_n "(cached) " >&6
  1642. else
  1643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1644. /* end confdefs.h. */
  1645. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1646. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1647. #define $2 innocuous_$2
  1648. /* System header to define __stub macros and hopefully few prototypes,
  1649. which can conflict with char $2 (); below.
  1650. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1651. <limits.h> exists even on freestanding compilers. */
  1652. #ifdef __STDC__
  1653. # include <limits.h>
  1654. #else
  1655. # include <assert.h>
  1656. #endif
  1657. #undef $2
  1658. /* Override any GCC internal prototype to avoid an error.
  1659. Use char because int might match the return type of a GCC
  1660. builtin and then its argument prototype would still apply. */
  1661. #ifdef __cplusplus
  1662. extern "C"
  1663. #endif
  1664. char $2 ();
  1665. /* The GNU C library defines this for functions which it implements
  1666. to always fail with ENOSYS. Some functions are actually named
  1667. something starting with __ and the normal name is an alias. */
  1668. #if defined __stub_$2 || defined __stub___$2
  1669. choke me
  1670. #endif
  1671. int
  1672. main ()
  1673. {
  1674. return $2 ();
  1675. ;
  1676. return 0;
  1677. }
  1678. _ACEOF
  1679. if ac_fn_c_try_link "$LINENO"; then :
  1680. eval "$3=yes"
  1681. else
  1682. eval "$3=no"
  1683. fi
  1684. rm -f core conftest.err conftest.$ac_objext \
  1685. conftest$ac_exeext conftest.$ac_ext
  1686. fi
  1687. eval ac_res=\$$3
  1688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1689. $as_echo "$ac_res" >&6; }
  1690. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1691. } # ac_fn_c_check_func
  1692. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1693. # ----------------------------------------------------
  1694. # Tries to find if the field MEMBER exists in type AGGR, after including
  1695. # INCLUDES, setting cache variable VAR accordingly.
  1696. ac_fn_c_check_member ()
  1697. {
  1698. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1700. $as_echo_n "checking for $2.$3... " >&6; }
  1701. if eval \${$4+:} false; then :
  1702. $as_echo_n "(cached) " >&6
  1703. else
  1704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1705. /* end confdefs.h. */
  1706. $5
  1707. int
  1708. main ()
  1709. {
  1710. static $2 ac_aggr;
  1711. if (ac_aggr.$3)
  1712. return 0;
  1713. ;
  1714. return 0;
  1715. }
  1716. _ACEOF
  1717. if ac_fn_c_try_compile "$LINENO"; then :
  1718. eval "$4=yes"
  1719. else
  1720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1721. /* end confdefs.h. */
  1722. $5
  1723. int
  1724. main ()
  1725. {
  1726. static $2 ac_aggr;
  1727. if (sizeof ac_aggr.$3)
  1728. return 0;
  1729. ;
  1730. return 0;
  1731. }
  1732. _ACEOF
  1733. if ac_fn_c_try_compile "$LINENO"; then :
  1734. eval "$4=yes"
  1735. else
  1736. eval "$4=no"
  1737. fi
  1738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1739. fi
  1740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1741. fi
  1742. eval ac_res=\$$4
  1743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1744. $as_echo "$ac_res" >&6; }
  1745. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1746. } # ac_fn_c_check_member
  1747. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1748. # -------------------------------------------
  1749. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1750. # variable VAR accordingly.
  1751. ac_fn_c_check_type ()
  1752. {
  1753. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1755. $as_echo_n "checking for $2... " >&6; }
  1756. if eval \${$3+:} false; then :
  1757. $as_echo_n "(cached) " >&6
  1758. else
  1759. eval "$3=no"
  1760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1761. /* end confdefs.h. */
  1762. $4
  1763. int
  1764. main ()
  1765. {
  1766. if (sizeof ($2))
  1767. return 0;
  1768. ;
  1769. return 0;
  1770. }
  1771. _ACEOF
  1772. if ac_fn_c_try_compile "$LINENO"; then :
  1773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1774. /* end confdefs.h. */
  1775. $4
  1776. int
  1777. main ()
  1778. {
  1779. if (sizeof (($2)))
  1780. return 0;
  1781. ;
  1782. return 0;
  1783. }
  1784. _ACEOF
  1785. if ac_fn_c_try_compile "$LINENO"; then :
  1786. else
  1787. eval "$3=yes"
  1788. fi
  1789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1790. fi
  1791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1792. fi
  1793. eval ac_res=\$$3
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1795. $as_echo "$ac_res" >&6; }
  1796. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1797. } # ac_fn_c_check_type
  1798. cat >config.log <<_ACEOF
  1799. This file contains any messages produced by compilers while
  1800. running configure, to aid debugging if configure makes a mistake.
  1801. It was created by libedit $as_me 3.1, which was
  1802. generated by GNU Autoconf 2.69. Invocation command line was
  1803. $ $0 $@
  1804. _ACEOF
  1805. exec 5>>config.log
  1806. {
  1807. cat <<_ASUNAME
  1808. ## --------- ##
  1809. ## Platform. ##
  1810. ## --------- ##
  1811. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1812. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1813. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1814. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1815. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1816. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1817. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1818. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1819. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1820. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1821. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1822. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1823. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1824. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1825. _ASUNAME
  1826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1827. for as_dir in $PATH
  1828. do
  1829. IFS=$as_save_IFS
  1830. test -z "$as_dir" && as_dir=.
  1831. $as_echo "PATH: $as_dir"
  1832. done
  1833. IFS=$as_save_IFS
  1834. } >&5
  1835. cat >&5 <<_ACEOF
  1836. ## ----------- ##
  1837. ## Core tests. ##
  1838. ## ----------- ##
  1839. _ACEOF
  1840. # Keep a trace of the command line.
  1841. # Strip out --no-create and --no-recursion so they do not pile up.
  1842. # Strip out --silent because we don't want to record it for future runs.
  1843. # Also quote any args containing shell meta-characters.
  1844. # Make two passes to allow for proper duplicate-argument suppression.
  1845. ac_configure_args=
  1846. ac_configure_args0=
  1847. ac_configure_args1=
  1848. ac_must_keep_next=false
  1849. for ac_pass in 1 2
  1850. do
  1851. for ac_arg
  1852. do
  1853. case $ac_arg in
  1854. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1855. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1856. | -silent | --silent | --silen | --sile | --sil)
  1857. continue ;;
  1858. *\'*)
  1859. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1860. esac
  1861. case $ac_pass in
  1862. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1863. 2)
  1864. as_fn_append ac_configure_args1 " '$ac_arg'"
  1865. if test $ac_must_keep_next = true; then
  1866. ac_must_keep_next=false # Got value, back to normal.
  1867. else
  1868. case $ac_arg in
  1869. *=* | --config-cache | -C | -disable-* | --disable-* \
  1870. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1871. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1872. | -with-* | --with-* | -without-* | --without-* | --x)
  1873. case "$ac_configure_args0 " in
  1874. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1875. esac
  1876. ;;
  1877. -* ) ac_must_keep_next=true ;;
  1878. esac
  1879. fi
  1880. as_fn_append ac_configure_args " '$ac_arg'"
  1881. ;;
  1882. esac
  1883. done
  1884. done
  1885. { ac_configure_args0=; unset ac_configure_args0;}
  1886. { ac_configure_args1=; unset ac_configure_args1;}
  1887. # When interrupted or exit'd, cleanup temporary files, and complete
  1888. # config.log. We remove comments because anyway the quotes in there
  1889. # would cause problems or look ugly.
  1890. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1891. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1892. trap 'exit_status=$?
  1893. # Save into config.log some information that might help in debugging.
  1894. {
  1895. echo
  1896. $as_echo "## ---------------- ##
  1897. ## Cache variables. ##
  1898. ## ---------------- ##"
  1899. echo
  1900. # The following way of writing the cache mishandles newlines in values,
  1901. (
  1902. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1903. eval ac_val=\$$ac_var
  1904. case $ac_val in #(
  1905. *${as_nl}*)
  1906. case $ac_var in #(
  1907. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1908. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1909. esac
  1910. case $ac_var in #(
  1911. _ | IFS | as_nl) ;; #(
  1912. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1913. *) { eval $ac_var=; unset $ac_var;} ;;
  1914. esac ;;
  1915. esac
  1916. done
  1917. (set) 2>&1 |
  1918. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1919. *${as_nl}ac_space=\ *)
  1920. sed -n \
  1921. "s/'\''/'\''\\\\'\'''\''/g;
  1922. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1923. ;; #(
  1924. *)
  1925. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1926. ;;
  1927. esac |
  1928. sort
  1929. )
  1930. echo
  1931. $as_echo "## ----------------- ##
  1932. ## Output variables. ##
  1933. ## ----------------- ##"
  1934. echo
  1935. for ac_var in $ac_subst_vars
  1936. do
  1937. eval ac_val=\$$ac_var
  1938. case $ac_val in
  1939. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1940. esac
  1941. $as_echo "$ac_var='\''$ac_val'\''"
  1942. done | sort
  1943. echo
  1944. if test -n "$ac_subst_files"; then
  1945. $as_echo "## ------------------- ##
  1946. ## File substitutions. ##
  1947. ## ------------------- ##"
  1948. echo
  1949. for ac_var in $ac_subst_files
  1950. do
  1951. eval ac_val=\$$ac_var
  1952. case $ac_val in
  1953. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1954. esac
  1955. $as_echo "$ac_var='\''$ac_val'\''"
  1956. done | sort
  1957. echo
  1958. fi
  1959. if test -s confdefs.h; then
  1960. $as_echo "## ----------- ##
  1961. ## confdefs.h. ##
  1962. ## ----------- ##"
  1963. echo
  1964. cat confdefs.h
  1965. echo
  1966. fi
  1967. test "$ac_signal" != 0 &&
  1968. $as_echo "$as_me: caught signal $ac_signal"
  1969. $as_echo "$as_me: exit $exit_status"
  1970. } >&5
  1971. rm -f core *.core core.conftest.* &&
  1972. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1973. exit $exit_status
  1974. ' 0
  1975. for ac_signal in 1 2 13 15; do
  1976. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1977. done
  1978. ac_signal=0
  1979. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1980. rm -f -r conftest* confdefs.h
  1981. $as_echo "/* confdefs.h */" > confdefs.h
  1982. # Predefined preprocessor variables.
  1983. cat >>confdefs.h <<_ACEOF
  1984. #define PACKAGE_NAME "$PACKAGE_NAME"
  1985. _ACEOF
  1986. cat >>confdefs.h <<_ACEOF
  1987. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1988. _ACEOF
  1989. cat >>confdefs.h <<_ACEOF
  1990. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1991. _ACEOF
  1992. cat >>confdefs.h <<_ACEOF
  1993. #define PACKAGE_STRING "$PACKAGE_STRING"
  1994. _ACEOF
  1995. cat >>confdefs.h <<_ACEOF
  1996. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1997. _ACEOF
  1998. cat >>confdefs.h <<_ACEOF
  1999. #define PACKAGE_URL "$PACKAGE_URL"
  2000. _ACEOF
  2001. # Let the site file select an alternate cache file if it wants to.
  2002. # Prefer an explicitly selected file to automatically selected ones.
  2003. ac_site_file1=NONE
  2004. ac_site_file2=NONE
  2005. if test -n "$CONFIG_SITE"; then
  2006. # We do not want a PATH search for config.site.
  2007. case $CONFIG_SITE in #((
  2008. -*) ac_site_file1=./$CONFIG_SITE;;
  2009. */*) ac_site_file1=$CONFIG_SITE;;
  2010. *) ac_site_file1=./$CONFIG_SITE;;
  2011. esac
  2012. elif test "x$prefix" != xNONE; then
  2013. ac_site_file1=$prefix/share/config.site
  2014. ac_site_file2=$prefix/etc/config.site
  2015. else
  2016. ac_site_file1=$ac_default_prefix/share/config.site
  2017. ac_site_file2=$ac_default_prefix/etc/config.site
  2018. fi
  2019. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2020. do
  2021. test "x$ac_site_file" = xNONE && continue
  2022. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2023. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2024. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2025. sed 's/^/| /' "$ac_site_file" >&5
  2026. . "$ac_site_file" \
  2027. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2028. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2029. as_fn_error $? "failed to load site script $ac_site_file
  2030. See \`config.log' for more details" "$LINENO" 5; }
  2031. fi
  2032. done
  2033. if test -r "$cache_file"; then
  2034. # Some versions of bash will fail to source /dev/null (special files
  2035. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2036. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2037. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2038. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2039. case $cache_file in
  2040. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2041. *) . "./$cache_file";;
  2042. esac
  2043. fi
  2044. else
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2046. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2047. >$cache_file
  2048. fi
  2049. # Check that the precious variables saved in the cache have kept the same
  2050. # value.
  2051. ac_cache_corrupted=false
  2052. for ac_var in $ac_precious_vars; do
  2053. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2054. eval ac_new_set=\$ac_env_${ac_var}_set
  2055. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2056. eval ac_new_val=\$ac_env_${ac_var}_value
  2057. case $ac_old_set,$ac_new_set in
  2058. set,)
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2060. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2061. ac_cache_corrupted=: ;;
  2062. ,set)
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2064. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2065. ac_cache_corrupted=: ;;
  2066. ,);;
  2067. *)
  2068. if test "x$ac_old_val" != "x$ac_new_val"; then
  2069. # differences in whitespace do not lead to failure.
  2070. ac_old_val_w=`echo x $ac_old_val`
  2071. ac_new_val_w=`echo x $ac_new_val`
  2072. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2074. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2075. ac_cache_corrupted=:
  2076. else
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2078. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2079. eval $ac_var=\$ac_old_val
  2080. fi
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2082. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2084. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2085. fi;;
  2086. esac
  2087. # Pass precious variables to config.status.
  2088. if test "$ac_new_set" = set; then
  2089. case $ac_new_val in
  2090. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2091. *) ac_arg=$ac_var=$ac_new_val ;;
  2092. esac
  2093. case " $ac_configure_args " in
  2094. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2095. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2096. esac
  2097. fi
  2098. done
  2099. if $ac_cache_corrupted; then
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2101. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2103. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2104. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2105. fi
  2106. ## -------------------- ##
  2107. ## Main body of script. ##
  2108. ## -------------------- ##
  2109. ac_ext=c
  2110. ac_cpp='$CPP $CPPFLAGS'
  2111. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2112. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2113. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2114. ac_config_headers="$ac_config_headers config.h"
  2115. # features of Posix that are extensions to C (define _GNU_SOURCE)
  2116. ac_ext=c
  2117. ac_cpp='$CPP $CPPFLAGS'
  2118. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2119. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2120. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2121. if test -n "$ac_tool_prefix"; then
  2122. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2123. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2125. $as_echo_n "checking for $ac_word... " >&6; }
  2126. if ${ac_cv_prog_CC+:} false; then :
  2127. $as_echo_n "(cached) " >&6
  2128. else
  2129. if test -n "$CC"; then
  2130. ac_cv_prog_CC="$CC" # Let the user override the test.
  2131. else
  2132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2133. for as_dir in $PATH
  2134. do
  2135. IFS=$as_save_IFS
  2136. test -z "$as_dir" && as_dir=.
  2137. for ac_exec_ext in '' $ac_executable_extensions; do
  2138. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2139. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2141. break 2
  2142. fi
  2143. done
  2144. done
  2145. IFS=$as_save_IFS
  2146. fi
  2147. fi
  2148. CC=$ac_cv_prog_CC
  2149. if test -n "$CC"; then
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2151. $as_echo "$CC" >&6; }
  2152. else
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2154. $as_echo "no" >&6; }
  2155. fi
  2156. fi
  2157. if test -z "$ac_cv_prog_CC"; then
  2158. ac_ct_CC=$CC
  2159. # Extract the first word of "gcc", so it can be a program name with args.
  2160. set dummy gcc; ac_word=$2
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2162. $as_echo_n "checking for $ac_word... " >&6; }
  2163. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2164. $as_echo_n "(cached) " >&6
  2165. else
  2166. if test -n "$ac_ct_CC"; then
  2167. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2168. else
  2169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2170. for as_dir in $PATH
  2171. do
  2172. IFS=$as_save_IFS
  2173. test -z "$as_dir" && as_dir=.
  2174. for ac_exec_ext in '' $ac_executable_extensions; do
  2175. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2176. ac_cv_prog_ac_ct_CC="gcc"
  2177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2178. break 2
  2179. fi
  2180. done
  2181. done
  2182. IFS=$as_save_IFS
  2183. fi
  2184. fi
  2185. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2186. if test -n "$ac_ct_CC"; then
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2188. $as_echo "$ac_ct_CC" >&6; }
  2189. else
  2190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2191. $as_echo "no" >&6; }
  2192. fi
  2193. if test "x$ac_ct_CC" = x; then
  2194. CC=""
  2195. else
  2196. case $cross_compiling:$ac_tool_warned in
  2197. yes:)
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2199. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2200. ac_tool_warned=yes ;;
  2201. esac
  2202. CC=$ac_ct_CC
  2203. fi
  2204. else
  2205. CC="$ac_cv_prog_CC"
  2206. fi
  2207. if test -z "$CC"; then
  2208. if test -n "$ac_tool_prefix"; then
  2209. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2210. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2212. $as_echo_n "checking for $ac_word... " >&6; }
  2213. if ${ac_cv_prog_CC+:} false; then :
  2214. $as_echo_n "(cached) " >&6
  2215. else
  2216. if test -n "$CC"; then
  2217. ac_cv_prog_CC="$CC" # Let the user override the test.
  2218. else
  2219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2220. for as_dir in $PATH
  2221. do
  2222. IFS=$as_save_IFS
  2223. test -z "$as_dir" && as_dir=.
  2224. for ac_exec_ext in '' $ac_executable_extensions; do
  2225. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2226. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2228. break 2
  2229. fi
  2230. done
  2231. done
  2232. IFS=$as_save_IFS
  2233. fi
  2234. fi
  2235. CC=$ac_cv_prog_CC
  2236. if test -n "$CC"; then
  2237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2238. $as_echo "$CC" >&6; }
  2239. else
  2240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2241. $as_echo "no" >&6; }
  2242. fi
  2243. fi
  2244. fi
  2245. if test -z "$CC"; then
  2246. # Extract the first word of "cc", so it can be a program name with args.
  2247. set dummy cc; ac_word=$2
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2249. $as_echo_n "checking for $ac_word... " >&6; }
  2250. if ${ac_cv_prog_CC+:} false; then :
  2251. $as_echo_n "(cached) " >&6
  2252. else
  2253. if test -n "$CC"; then
  2254. ac_cv_prog_CC="$CC" # Let the user override the test.
  2255. else
  2256. ac_prog_rejected=no
  2257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2258. for as_dir in $PATH
  2259. do
  2260. IFS=$as_save_IFS
  2261. test -z "$as_dir" && as_dir=.
  2262. for ac_exec_ext in '' $ac_executable_extensions; do
  2263. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2264. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2265. ac_prog_rejected=yes
  2266. continue
  2267. fi
  2268. ac_cv_prog_CC="cc"
  2269. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2270. break 2
  2271. fi
  2272. done
  2273. done
  2274. IFS=$as_save_IFS
  2275. if test $ac_prog_rejected = yes; then
  2276. # We found a bogon in the path, so make sure we never use it.
  2277. set dummy $ac_cv_prog_CC
  2278. shift
  2279. if test $# != 0; then
  2280. # We chose a different compiler from the bogus one.
  2281. # However, it has the same basename, so the bogon will be chosen
  2282. # first if we set CC to just the basename; use the full file name.
  2283. shift
  2284. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2285. fi
  2286. fi
  2287. fi
  2288. fi
  2289. CC=$ac_cv_prog_CC
  2290. if test -n "$CC"; then
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2292. $as_echo "$CC" >&6; }
  2293. else
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2295. $as_echo "no" >&6; }
  2296. fi
  2297. fi
  2298. if test -z "$CC"; then
  2299. if test -n "$ac_tool_prefix"; then
  2300. for ac_prog in cl.exe
  2301. do
  2302. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2303. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2305. $as_echo_n "checking for $ac_word... " >&6; }
  2306. if ${ac_cv_prog_CC+:} false; then :
  2307. $as_echo_n "(cached) " >&6
  2308. else
  2309. if test -n "$CC"; then
  2310. ac_cv_prog_CC="$CC" # Let the user override the test.
  2311. else
  2312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2313. for as_dir in $PATH
  2314. do
  2315. IFS=$as_save_IFS
  2316. test -z "$as_dir" && as_dir=.
  2317. for ac_exec_ext in '' $ac_executable_extensions; do
  2318. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2319. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2321. break 2
  2322. fi
  2323. done
  2324. done
  2325. IFS=$as_save_IFS
  2326. fi
  2327. fi
  2328. CC=$ac_cv_prog_CC
  2329. if test -n "$CC"; then
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2331. $as_echo "$CC" >&6; }
  2332. else
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2334. $as_echo "no" >&6; }
  2335. fi
  2336. test -n "$CC" && break
  2337. done
  2338. fi
  2339. if test -z "$CC"; then
  2340. ac_ct_CC=$CC
  2341. for ac_prog in cl.exe
  2342. do
  2343. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2344. set dummy $ac_prog; ac_word=$2
  2345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2346. $as_echo_n "checking for $ac_word... " >&6; }
  2347. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2348. $as_echo_n "(cached) " >&6
  2349. else
  2350. if test -n "$ac_ct_CC"; then
  2351. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2352. else
  2353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2354. for as_dir in $PATH
  2355. do
  2356. IFS=$as_save_IFS
  2357. test -z "$as_dir" && as_dir=.
  2358. for ac_exec_ext in '' $ac_executable_extensions; do
  2359. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2360. ac_cv_prog_ac_ct_CC="$ac_prog"
  2361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2362. break 2
  2363. fi
  2364. done
  2365. done
  2366. IFS=$as_save_IFS
  2367. fi
  2368. fi
  2369. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2370. if test -n "$ac_ct_CC"; then
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2372. $as_echo "$ac_ct_CC" >&6; }
  2373. else
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2375. $as_echo "no" >&6; }
  2376. fi
  2377. test -n "$ac_ct_CC" && break
  2378. done
  2379. if test "x$ac_ct_CC" = x; then
  2380. CC=""
  2381. else
  2382. case $cross_compiling:$ac_tool_warned in
  2383. yes:)
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2385. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2386. ac_tool_warned=yes ;;
  2387. esac
  2388. CC=$ac_ct_CC
  2389. fi
  2390. fi
  2391. fi
  2392. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2393. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2394. as_fn_error $? "no acceptable C compiler found in \$PATH
  2395. See \`config.log' for more details" "$LINENO" 5; }
  2396. # Provide some information about the compiler.
  2397. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2398. set X $ac_compile
  2399. ac_compiler=$2
  2400. for ac_option in --version -v -V -qversion; do
  2401. { { ac_try="$ac_compiler $ac_option >&5"
  2402. case "(($ac_try" in
  2403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2404. *) ac_try_echo=$ac_try;;
  2405. esac
  2406. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2407. $as_echo "$ac_try_echo"; } >&5
  2408. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2409. ac_status=$?
  2410. if test -s conftest.err; then
  2411. sed '10a\
  2412. ... rest of stderr output deleted ...
  2413. 10q' conftest.err >conftest.er1
  2414. cat conftest.er1 >&5
  2415. fi
  2416. rm -f conftest.er1 conftest.err
  2417. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2418. test $ac_status = 0; }
  2419. done
  2420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2421. /* end confdefs.h. */
  2422. int
  2423. main ()
  2424. {
  2425. ;
  2426. return 0;
  2427. }
  2428. _ACEOF
  2429. ac_clean_files_save=$ac_clean_files
  2430. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2431. # Try to create an executable without -o first, disregard a.out.
  2432. # It will help us diagnose broken compilers, and finding out an intuition
  2433. # of exeext.
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2435. $as_echo_n "checking whether the C compiler works... " >&6; }
  2436. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2437. # The possible output files:
  2438. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2439. ac_rmfiles=
  2440. for ac_file in $ac_files
  2441. do
  2442. case $ac_file in
  2443. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2444. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2445. esac
  2446. done
  2447. rm -f $ac_rmfiles
  2448. if { { ac_try="$ac_link_default"
  2449. case "(($ac_try" in
  2450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2451. *) ac_try_echo=$ac_try;;
  2452. esac
  2453. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2454. $as_echo "$ac_try_echo"; } >&5
  2455. (eval "$ac_link_default") 2>&5
  2456. ac_status=$?
  2457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2458. test $ac_status = 0; }; then :
  2459. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2460. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2461. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2462. # so that the user can short-circuit this test for compilers unknown to
  2463. # Autoconf.
  2464. for ac_file in $ac_files ''
  2465. do
  2466. test -f "$ac_file" || continue
  2467. case $ac_file in
  2468. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2469. ;;
  2470. [ab].out )
  2471. # We found the default executable, but exeext='' is most
  2472. # certainly right.
  2473. break;;
  2474. *.* )
  2475. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2476. then :; else
  2477. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2478. fi
  2479. # We set ac_cv_exeext here because the later test for it is not
  2480. # safe: cross compilers may not add the suffix if given an `-o'
  2481. # argument, so we may need to know it at that point already.
  2482. # Even if this section looks crufty: it has the advantage of
  2483. # actually working.
  2484. break;;
  2485. * )
  2486. break;;
  2487. esac
  2488. done
  2489. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2490. else
  2491. ac_file=''
  2492. fi
  2493. if test -z "$ac_file"; then :
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2495. $as_echo "no" >&6; }
  2496. $as_echo "$as_me: failed program was:" >&5
  2497. sed 's/^/| /' conftest.$ac_ext >&5
  2498. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2499. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2500. as_fn_error 77 "C compiler cannot create executables
  2501. See \`config.log' for more details" "$LINENO" 5; }
  2502. else
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2504. $as_echo "yes" >&6; }
  2505. fi
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2507. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2509. $as_echo "$ac_file" >&6; }
  2510. ac_exeext=$ac_cv_exeext
  2511. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2512. ac_clean_files=$ac_clean_files_save
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2514. $as_echo_n "checking for suffix of executables... " >&6; }
  2515. if { { ac_try="$ac_link"
  2516. case "(($ac_try" in
  2517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2518. *) ac_try_echo=$ac_try;;
  2519. esac
  2520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2521. $as_echo "$ac_try_echo"; } >&5
  2522. (eval "$ac_link") 2>&5
  2523. ac_status=$?
  2524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2525. test $ac_status = 0; }; then :
  2526. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2527. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2528. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2529. # `rm'.
  2530. for ac_file in conftest.exe conftest conftest.*; do
  2531. test -f "$ac_file" || continue
  2532. case $ac_file in
  2533. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2534. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2535. break;;
  2536. * ) break;;
  2537. esac
  2538. done
  2539. else
  2540. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2541. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2542. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2543. See \`config.log' for more details" "$LINENO" 5; }
  2544. fi
  2545. rm -f conftest conftest$ac_cv_exeext
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2547. $as_echo "$ac_cv_exeext" >&6; }
  2548. rm -f conftest.$ac_ext
  2549. EXEEXT=$ac_cv_exeext
  2550. ac_exeext=$EXEEXT
  2551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2552. /* end confdefs.h. */
  2553. #include <stdio.h>
  2554. int
  2555. main ()
  2556. {
  2557. FILE *f = fopen ("conftest.out", "w");
  2558. return ferror (f) || fclose (f) != 0;
  2559. ;
  2560. return 0;
  2561. }
  2562. _ACEOF
  2563. ac_clean_files="$ac_clean_files conftest.out"
  2564. # Check that the compiler produces executables we can run. If not, either
  2565. # the compiler is broken, or we cross compile.
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2567. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2568. if test "$cross_compiling" != yes; then
  2569. { { ac_try="$ac_link"
  2570. case "(($ac_try" in
  2571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2572. *) ac_try_echo=$ac_try;;
  2573. esac
  2574. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2575. $as_echo "$ac_try_echo"; } >&5
  2576. (eval "$ac_link") 2>&5
  2577. ac_status=$?
  2578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2579. test $ac_status = 0; }
  2580. if { ac_try='./conftest$ac_cv_exeext'
  2581. { { case "(($ac_try" in
  2582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2583. *) ac_try_echo=$ac_try;;
  2584. esac
  2585. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2586. $as_echo "$ac_try_echo"; } >&5
  2587. (eval "$ac_try") 2>&5
  2588. ac_status=$?
  2589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2590. test $ac_status = 0; }; }; then
  2591. cross_compiling=no
  2592. else
  2593. if test "$cross_compiling" = maybe; then
  2594. cross_compiling=yes
  2595. else
  2596. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2597. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2598. as_fn_error $? "cannot run C compiled programs.
  2599. If you meant to cross compile, use \`--host'.
  2600. See \`config.log' for more details" "$LINENO" 5; }
  2601. fi
  2602. fi
  2603. fi
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2605. $as_echo "$cross_compiling" >&6; }
  2606. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2607. ac_clean_files=$ac_clean_files_save
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2609. $as_echo_n "checking for suffix of object files... " >&6; }
  2610. if ${ac_cv_objext+:} false; then :
  2611. $as_echo_n "(cached) " >&6
  2612. else
  2613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2614. /* end confdefs.h. */
  2615. int
  2616. main ()
  2617. {
  2618. ;
  2619. return 0;
  2620. }
  2621. _ACEOF
  2622. rm -f conftest.o conftest.obj
  2623. if { { ac_try="$ac_compile"
  2624. case "(($ac_try" in
  2625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2626. *) ac_try_echo=$ac_try;;
  2627. esac
  2628. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2629. $as_echo "$ac_try_echo"; } >&5
  2630. (eval "$ac_compile") 2>&5
  2631. ac_status=$?
  2632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2633. test $ac_status = 0; }; then :
  2634. for ac_file in conftest.o conftest.obj conftest.*; do
  2635. test -f "$ac_file" || continue;
  2636. case $ac_file in
  2637. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2638. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2639. break;;
  2640. esac
  2641. done
  2642. else
  2643. $as_echo "$as_me: failed program was:" >&5
  2644. sed 's/^/| /' conftest.$ac_ext >&5
  2645. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2646. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2647. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2648. See \`config.log' for more details" "$LINENO" 5; }
  2649. fi
  2650. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2651. fi
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2653. $as_echo "$ac_cv_objext" >&6; }
  2654. OBJEXT=$ac_cv_objext
  2655. ac_objext=$OBJEXT
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2657. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2658. if ${ac_cv_c_compiler_gnu+:} false; then :
  2659. $as_echo_n "(cached) " >&6
  2660. else
  2661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2662. /* end confdefs.h. */
  2663. int
  2664. main ()
  2665. {
  2666. #ifndef __GNUC__
  2667. choke me
  2668. #endif
  2669. ;
  2670. return 0;
  2671. }
  2672. _ACEOF
  2673. if ac_fn_c_try_compile "$LINENO"; then :
  2674. ac_compiler_gnu=yes
  2675. else
  2676. ac_compiler_gnu=no
  2677. fi
  2678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2679. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2680. fi
  2681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2682. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2683. if test $ac_compiler_gnu = yes; then
  2684. GCC=yes
  2685. else
  2686. GCC=
  2687. fi
  2688. ac_test_CFLAGS=${CFLAGS+set}
  2689. ac_save_CFLAGS=$CFLAGS
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2691. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2692. if ${ac_cv_prog_cc_g+:} false; then :
  2693. $as_echo_n "(cached) " >&6
  2694. else
  2695. ac_save_c_werror_flag=$ac_c_werror_flag
  2696. ac_c_werror_flag=yes
  2697. ac_cv_prog_cc_g=no
  2698. CFLAGS="-g"
  2699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2700. /* end confdefs.h. */
  2701. int
  2702. main ()
  2703. {
  2704. ;
  2705. return 0;
  2706. }
  2707. _ACEOF
  2708. if ac_fn_c_try_compile "$LINENO"; then :
  2709. ac_cv_prog_cc_g=yes
  2710. else
  2711. CFLAGS=""
  2712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2713. /* end confdefs.h. */
  2714. int
  2715. main ()
  2716. {
  2717. ;
  2718. return 0;
  2719. }
  2720. _ACEOF
  2721. if ac_fn_c_try_compile "$LINENO"; then :
  2722. else
  2723. ac_c_werror_flag=$ac_save_c_werror_flag
  2724. CFLAGS="-g"
  2725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2726. /* end confdefs.h. */
  2727. int
  2728. main ()
  2729. {
  2730. ;
  2731. return 0;
  2732. }
  2733. _ACEOF
  2734. if ac_fn_c_try_compile "$LINENO"; then :
  2735. ac_cv_prog_cc_g=yes
  2736. fi
  2737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2738. fi
  2739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2740. fi
  2741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2742. ac_c_werror_flag=$ac_save_c_werror_flag
  2743. fi
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2745. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2746. if test "$ac_test_CFLAGS" = set; then
  2747. CFLAGS=$ac_save_CFLAGS
  2748. elif test $ac_cv_prog_cc_g = yes; then
  2749. if test "$GCC" = yes; then
  2750. CFLAGS="-g -O2"
  2751. else
  2752. CFLAGS="-g"
  2753. fi
  2754. else
  2755. if test "$GCC" = yes; then
  2756. CFLAGS="-O2"
  2757. else
  2758. CFLAGS=
  2759. fi
  2760. fi
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2762. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2763. if ${ac_cv_prog_cc_c89+:} false; then :
  2764. $as_echo_n "(cached) " >&6
  2765. else
  2766. ac_cv_prog_cc_c89=no
  2767. ac_save_CC=$CC
  2768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2769. /* end confdefs.h. */
  2770. #include <stdarg.h>
  2771. #include <stdio.h>
  2772. struct stat;
  2773. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2774. struct buf { int x; };
  2775. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2776. static char *e (p, i)
  2777. char **p;
  2778. int i;
  2779. {
  2780. return p[i];
  2781. }
  2782. static char *f (char * (*g) (char **, int), char **p, ...)
  2783. {
  2784. char *s;
  2785. va_list v;
  2786. va_start (v,p);
  2787. s = g (p, va_arg (v,int));
  2788. va_end (v);
  2789. return s;
  2790. }
  2791. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2792. function prototypes and stuff, but not '\xHH' hex character constants.
  2793. These don't provoke an error unfortunately, instead are silently treated
  2794. as 'x'. The following induces an error, until -std is added to get
  2795. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2796. array size at least. It's necessary to write '\x00'==0 to get something
  2797. that's true only with -std. */
  2798. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2799. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2800. inside strings and character constants. */
  2801. #define FOO(x) 'x'
  2802. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2803. int test (int i, double x);
  2804. struct s1 {int (*f) (int a);};
  2805. struct s2 {int (*f) (double a);};
  2806. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2807. int argc;
  2808. char **argv;
  2809. int
  2810. main ()
  2811. {
  2812. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2813. ;
  2814. return 0;
  2815. }
  2816. _ACEOF
  2817. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2818. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2819. do
  2820. CC="$ac_save_CC $ac_arg"
  2821. if ac_fn_c_try_compile "$LINENO"; then :
  2822. ac_cv_prog_cc_c89=$ac_arg
  2823. fi
  2824. rm -f core conftest.err conftest.$ac_objext
  2825. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2826. done
  2827. rm -f conftest.$ac_ext
  2828. CC=$ac_save_CC
  2829. fi
  2830. # AC_CACHE_VAL
  2831. case "x$ac_cv_prog_cc_c89" in
  2832. x)
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2834. $as_echo "none needed" >&6; } ;;
  2835. xno)
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2837. $as_echo "unsupported" >&6; } ;;
  2838. *)
  2839. CC="$CC $ac_cv_prog_cc_c89"
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2841. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2842. esac
  2843. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2844. fi
  2845. ac_ext=c
  2846. ac_cpp='$CPP $CPPFLAGS'
  2847. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2848. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2849. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2850. ac_ext=c
  2851. ac_cpp='$CPP $CPPFLAGS'
  2852. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2853. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2854. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2856. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2857. # On Suns, sometimes $CPP names a directory.
  2858. if test -n "$CPP" && test -d "$CPP"; then
  2859. CPP=
  2860. fi
  2861. if test -z "$CPP"; then
  2862. if ${ac_cv_prog_CPP+:} false; then :
  2863. $as_echo_n "(cached) " >&6
  2864. else
  2865. # Double quotes because CPP needs to be expanded
  2866. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2867. do
  2868. ac_preproc_ok=false
  2869. for ac_c_preproc_warn_flag in '' yes
  2870. do
  2871. # Use a header file that comes with gcc, so configuring glibc
  2872. # with a fresh cross-compiler works.
  2873. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2874. # <limits.h> exists even on freestanding compilers.
  2875. # On the NeXT, cc -E runs the code through the compiler's parser,
  2876. # not just through cpp. "Syntax error" is here to catch this case.
  2877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2878. /* end confdefs.h. */
  2879. #ifdef __STDC__
  2880. # include <limits.h>
  2881. #else
  2882. # include <assert.h>
  2883. #endif
  2884. Syntax error
  2885. _ACEOF
  2886. if ac_fn_c_try_cpp "$LINENO"; then :
  2887. else
  2888. # Broken: fails on valid input.
  2889. continue
  2890. fi
  2891. rm -f conftest.err conftest.i conftest.$ac_ext
  2892. # OK, works on sane cases. Now check whether nonexistent headers
  2893. # can be detected and how.
  2894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2895. /* end confdefs.h. */
  2896. #include <ac_nonexistent.h>
  2897. _ACEOF
  2898. if ac_fn_c_try_cpp "$LINENO"; then :
  2899. # Broken: success on invalid input.
  2900. continue
  2901. else
  2902. # Passes both tests.
  2903. ac_preproc_ok=:
  2904. break
  2905. fi
  2906. rm -f conftest.err conftest.i conftest.$ac_ext
  2907. done
  2908. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2909. rm -f conftest.i conftest.err conftest.$ac_ext
  2910. if $ac_preproc_ok; then :
  2911. break
  2912. fi
  2913. done
  2914. ac_cv_prog_CPP=$CPP
  2915. fi
  2916. CPP=$ac_cv_prog_CPP
  2917. else
  2918. ac_cv_prog_CPP=$CPP
  2919. fi
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2921. $as_echo "$CPP" >&6; }
  2922. ac_preproc_ok=false
  2923. for ac_c_preproc_warn_flag in '' yes
  2924. do
  2925. # Use a header file that comes with gcc, so configuring glibc
  2926. # with a fresh cross-compiler works.
  2927. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2928. # <limits.h> exists even on freestanding compilers.
  2929. # On the NeXT, cc -E runs the code through the compiler's parser,
  2930. # not just through cpp. "Syntax error" is here to catch this case.
  2931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2932. /* end confdefs.h. */
  2933. #ifdef __STDC__
  2934. # include <limits.h>
  2935. #else
  2936. # include <assert.h>
  2937. #endif
  2938. Syntax error
  2939. _ACEOF
  2940. if ac_fn_c_try_cpp "$LINENO"; then :
  2941. else
  2942. # Broken: fails on valid input.
  2943. continue
  2944. fi
  2945. rm -f conftest.err conftest.i conftest.$ac_ext
  2946. # OK, works on sane cases. Now check whether nonexistent headers
  2947. # can be detected and how.
  2948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2949. /* end confdefs.h. */
  2950. #include <ac_nonexistent.h>
  2951. _ACEOF
  2952. if ac_fn_c_try_cpp "$LINENO"; then :
  2953. # Broken: success on invalid input.
  2954. continue
  2955. else
  2956. # Passes both tests.
  2957. ac_preproc_ok=:
  2958. break
  2959. fi
  2960. rm -f conftest.err conftest.i conftest.$ac_ext
  2961. done
  2962. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2963. rm -f conftest.i conftest.err conftest.$ac_ext
  2964. if $ac_preproc_ok; then :
  2965. else
  2966. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2967. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2968. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  2969. See \`config.log' for more details" "$LINENO" 5; }
  2970. fi
  2971. ac_ext=c
  2972. ac_cpp='$CPP $CPPFLAGS'
  2973. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2974. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2975. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2977. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2978. if ${ac_cv_path_GREP+:} false; then :
  2979. $as_echo_n "(cached) " >&6
  2980. else
  2981. if test -z "$GREP"; then
  2982. ac_path_GREP_found=false
  2983. # Loop through the user's path and test for each of PROGNAME-LIST
  2984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2985. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2986. do
  2987. IFS=$as_save_IFS
  2988. test -z "$as_dir" && as_dir=.
  2989. for ac_prog in grep ggrep; do
  2990. for ac_exec_ext in '' $ac_executable_extensions; do
  2991. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2992. as_fn_executable_p "$ac_path_GREP" || continue
  2993. # Check for GNU ac_path_GREP and select it if it is found.
  2994. # Check for GNU $ac_path_GREP
  2995. case `"$ac_path_GREP" --version 2>&1` in
  2996. *GNU*)
  2997. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2998. *)
  2999. ac_count=0
  3000. $as_echo_n 0123456789 >"conftest.in"
  3001. while :
  3002. do
  3003. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3004. mv "conftest.tmp" "conftest.in"
  3005. cp "conftest.in" "conftest.nl"
  3006. $as_echo 'GREP' >> "conftest.nl"
  3007. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3008. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3009. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3010. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3011. # Best one so far, save it but keep looking for a better one
  3012. ac_cv_path_GREP="$ac_path_GREP"
  3013. ac_path_GREP_max=$ac_count
  3014. fi
  3015. # 10*(2^10) chars as input seems more than enough
  3016. test $ac_count -gt 10 && break
  3017. done
  3018. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3019. esac
  3020. $ac_path_GREP_found && break 3
  3021. done
  3022. done
  3023. done
  3024. IFS=$as_save_IFS
  3025. if test -z "$ac_cv_path_GREP"; then
  3026. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3027. fi
  3028. else
  3029. ac_cv_path_GREP=$GREP
  3030. fi
  3031. fi
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3033. $as_echo "$ac_cv_path_GREP" >&6; }
  3034. GREP="$ac_cv_path_GREP"
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3036. $as_echo_n "checking for egrep... " >&6; }
  3037. if ${ac_cv_path_EGREP+:} false; then :
  3038. $as_echo_n "(cached) " >&6
  3039. else
  3040. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3041. then ac_cv_path_EGREP="$GREP -E"
  3042. else
  3043. if test -z "$EGREP"; then
  3044. ac_path_EGREP_found=false
  3045. # Loop through the user's path and test for each of PROGNAME-LIST
  3046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3047. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3048. do
  3049. IFS=$as_save_IFS
  3050. test -z "$as_dir" && as_dir=.
  3051. for ac_prog in egrep; do
  3052. for ac_exec_ext in '' $ac_executable_extensions; do
  3053. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3054. as_fn_executable_p "$ac_path_EGREP" || continue
  3055. # Check for GNU ac_path_EGREP and select it if it is found.
  3056. # Check for GNU $ac_path_EGREP
  3057. case `"$ac_path_EGREP" --version 2>&1` in
  3058. *GNU*)
  3059. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3060. *)
  3061. ac_count=0
  3062. $as_echo_n 0123456789 >"conftest.in"
  3063. while :
  3064. do
  3065. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3066. mv "conftest.tmp" "conftest.in"
  3067. cp "conftest.in" "conftest.nl"
  3068. $as_echo 'EGREP' >> "conftest.nl"
  3069. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3070. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3071. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3072. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3073. # Best one so far, save it but keep looking for a better one
  3074. ac_cv_path_EGREP="$ac_path_EGREP"
  3075. ac_path_EGREP_max=$ac_count
  3076. fi
  3077. # 10*(2^10) chars as input seems more than enough
  3078. test $ac_count -gt 10 && break
  3079. done
  3080. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3081. esac
  3082. $ac_path_EGREP_found && break 3
  3083. done
  3084. done
  3085. done
  3086. IFS=$as_save_IFS
  3087. if test -z "$ac_cv_path_EGREP"; then
  3088. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3089. fi
  3090. else
  3091. ac_cv_path_EGREP=$EGREP
  3092. fi
  3093. fi
  3094. fi
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3096. $as_echo "$ac_cv_path_EGREP" >&6; }
  3097. EGREP="$ac_cv_path_EGREP"
  3098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3099. $as_echo_n "checking for ANSI C header files... " >&6; }
  3100. if ${ac_cv_header_stdc+:} false; then :
  3101. $as_echo_n "(cached) " >&6
  3102. else
  3103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3104. /* end confdefs.h. */
  3105. #include <stdlib.h>
  3106. #include <stdarg.h>
  3107. #include <string.h>
  3108. #include <float.h>
  3109. int
  3110. main ()
  3111. {
  3112. ;
  3113. return 0;
  3114. }
  3115. _ACEOF
  3116. if ac_fn_c_try_compile "$LINENO"; then :
  3117. ac_cv_header_stdc=yes
  3118. else
  3119. ac_cv_header_stdc=no
  3120. fi
  3121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3122. if test $ac_cv_header_stdc = yes; then
  3123. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3125. /* end confdefs.h. */
  3126. #include <string.h>
  3127. _ACEOF
  3128. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3129. $EGREP "memchr" >/dev/null 2>&1; then :
  3130. else
  3131. ac_cv_header_stdc=no
  3132. fi
  3133. rm -f conftest*
  3134. fi
  3135. if test $ac_cv_header_stdc = yes; then
  3136. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3138. /* end confdefs.h. */
  3139. #include <stdlib.h>
  3140. _ACEOF
  3141. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3142. $EGREP "free" >/dev/null 2>&1; then :
  3143. else
  3144. ac_cv_header_stdc=no
  3145. fi
  3146. rm -f conftest*
  3147. fi
  3148. if test $ac_cv_header_stdc = yes; then
  3149. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3150. if test "$cross_compiling" = yes; then :
  3151. :
  3152. else
  3153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3154. /* end confdefs.h. */
  3155. #include <ctype.h>
  3156. #include <stdlib.h>
  3157. #if ((' ' & 0x0FF) == 0x020)
  3158. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3159. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3160. #else
  3161. # define ISLOWER(c) \
  3162. (('a' <= (c) && (c) <= 'i') \
  3163. || ('j' <= (c) && (c) <= 'r') \
  3164. || ('s' <= (c) && (c) <= 'z'))
  3165. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3166. #endif
  3167. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3168. int
  3169. main ()
  3170. {
  3171. int i;
  3172. for (i = 0; i < 256; i++)
  3173. if (XOR (islower (i), ISLOWER (i))
  3174. || toupper (i) != TOUPPER (i))
  3175. return 2;
  3176. return 0;
  3177. }
  3178. _ACEOF
  3179. if ac_fn_c_try_run "$LINENO"; then :
  3180. else
  3181. ac_cv_header_stdc=no
  3182. fi
  3183. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3184. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3185. fi
  3186. fi
  3187. fi
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3189. $as_echo "$ac_cv_header_stdc" >&6; }
  3190. if test $ac_cv_header_stdc = yes; then
  3191. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3192. fi
  3193. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3194. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3195. inttypes.h stdint.h unistd.h
  3196. do :
  3197. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3198. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3199. "
  3200. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3201. cat >>confdefs.h <<_ACEOF
  3202. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3203. _ACEOF
  3204. fi
  3205. done
  3206. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3207. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3208. MINIX=yes
  3209. else
  3210. MINIX=
  3211. fi
  3212. if test "$MINIX" = yes; then
  3213. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3214. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3215. $as_echo "#define _MINIX 1" >>confdefs.h
  3216. fi
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3218. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3219. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3220. $as_echo_n "(cached) " >&6
  3221. else
  3222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3223. /* end confdefs.h. */
  3224. # define __EXTENSIONS__ 1
  3225. $ac_includes_default
  3226. int
  3227. main ()
  3228. {
  3229. ;
  3230. return 0;
  3231. }
  3232. _ACEOF
  3233. if ac_fn_c_try_compile "$LINENO"; then :
  3234. ac_cv_safe_to_define___extensions__=yes
  3235. else
  3236. ac_cv_safe_to_define___extensions__=no
  3237. fi
  3238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3239. fi
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3241. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3242. test $ac_cv_safe_to_define___extensions__ = yes &&
  3243. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3244. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3245. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3246. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3247. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3248. am__api_version='1.12'
  3249. ac_aux_dir=
  3250. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3251. if test -f "$ac_dir/install-sh"; then
  3252. ac_aux_dir=$ac_dir
  3253. ac_install_sh="$ac_aux_dir/install-sh -c"
  3254. break
  3255. elif test -f "$ac_dir/install.sh"; then
  3256. ac_aux_dir=$ac_dir
  3257. ac_install_sh="$ac_aux_dir/install.sh -c"
  3258. break
  3259. elif test -f "$ac_dir/shtool"; then
  3260. ac_aux_dir=$ac_dir
  3261. ac_install_sh="$ac_aux_dir/shtool install -c"
  3262. break
  3263. fi
  3264. done
  3265. if test -z "$ac_aux_dir"; then
  3266. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3267. fi
  3268. # These three variables are undocumented and unsupported,
  3269. # and are intended to be withdrawn in a future Autoconf release.
  3270. # They can cause serious problems if a builder's source tree is in a directory
  3271. # whose full name contains unusual characters.
  3272. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3273. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3274. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3275. # Find a good install program. We prefer a C program (faster),
  3276. # so one script is as good as another. But avoid the broken or
  3277. # incompatible versions:
  3278. # SysV /etc/install, /usr/sbin/install
  3279. # SunOS /usr/etc/install
  3280. # IRIX /sbin/install
  3281. # AIX /bin/install
  3282. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3283. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3284. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3285. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3286. # OS/2's system install, which has a completely different semantic
  3287. # ./install, which can be erroneously created by make from ./install.sh.
  3288. # Reject install programs that cannot install multiple files.
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3290. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3291. if test -z "$INSTALL"; then
  3292. if ${ac_cv_path_install+:} false; then :
  3293. $as_echo_n "(cached) " >&6
  3294. else
  3295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3296. for as_dir in $PATH
  3297. do
  3298. IFS=$as_save_IFS
  3299. test -z "$as_dir" && as_dir=.
  3300. # Account for people who put trailing slashes in PATH elements.
  3301. case $as_dir/ in #((
  3302. ./ | .// | /[cC]/* | \
  3303. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3304. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3305. /usr/ucb/* ) ;;
  3306. *)
  3307. # OSF1 and SCO ODT 3.0 have their own names for install.
  3308. # Don't use installbsd from OSF since it installs stuff as root
  3309. # by default.
  3310. for ac_prog in ginstall scoinst install; do
  3311. for ac_exec_ext in '' $ac_executable_extensions; do
  3312. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3313. if test $ac_prog = install &&
  3314. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3315. # AIX install. It has an incompatible calling convention.
  3316. :
  3317. elif test $ac_prog = install &&
  3318. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3319. # program-specific install script used by HP pwplus--don't use.
  3320. :
  3321. else
  3322. rm -rf conftest.one conftest.two conftest.dir
  3323. echo one > conftest.one
  3324. echo two > conftest.two
  3325. mkdir conftest.dir
  3326. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3327. test -s conftest.one && test -s conftest.two &&
  3328. test -s conftest.dir/conftest.one &&
  3329. test -s conftest.dir/conftest.two
  3330. then
  3331. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3332. break 3
  3333. fi
  3334. fi
  3335. fi
  3336. done
  3337. done
  3338. ;;
  3339. esac
  3340. done
  3341. IFS=$as_save_IFS
  3342. rm -rf conftest.one conftest.two conftest.dir
  3343. fi
  3344. if test "${ac_cv_path_install+set}" = set; then
  3345. INSTALL=$ac_cv_path_install
  3346. else
  3347. # As a last resort, use the slow shell script. Don't cache a
  3348. # value for INSTALL within a source directory, because that will
  3349. # break other packages using the cache if that directory is
  3350. # removed, or if the value is a relative name.
  3351. INSTALL=$ac_install_sh
  3352. fi
  3353. fi
  3354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3355. $as_echo "$INSTALL" >&6; }
  3356. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3357. # It thinks the first close brace ends the variable substitution.
  3358. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3359. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3360. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3362. $as_echo_n "checking whether build environment is sane... " >&6; }
  3363. # Reject unsafe characters in $srcdir or the absolute working directory
  3364. # name. Accept space and tab only in the latter.
  3365. am_lf='
  3366. '
  3367. case `pwd` in
  3368. *[\\\"\#\$\&\'\`$am_lf]*)
  3369. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3370. esac
  3371. case $srcdir in
  3372. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3373. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3374. esac
  3375. # Do 'set' in a subshell so we don't clobber the current shell's
  3376. # arguments. Must try -L first in case configure is actually a
  3377. # symlink; some systems play weird games with the mod time of symlinks
  3378. # (eg FreeBSD returns the mod time of the symlink's containing
  3379. # directory).
  3380. if (
  3381. am_has_slept=no
  3382. for am_try in 1 2; do
  3383. echo "timestamp, slept: $am_has_slept" > conftest.file
  3384. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3385. if test "$*" = "X"; then
  3386. # -L didn't work.
  3387. set X `ls -t "$srcdir/configure" conftest.file`
  3388. fi
  3389. if test "$*" != "X $srcdir/configure conftest.file" \
  3390. && test "$*" != "X conftest.file $srcdir/configure"; then
  3391. # If neither matched, then we have a broken ls. This can happen
  3392. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3393. # broken ls alias from the environment. This has actually
  3394. # happened. Such a system could not be considered "sane".
  3395. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3396. alias in your environment" "$LINENO" 5
  3397. fi
  3398. if test "$2" = conftest.file || test $am_try -eq 2; then
  3399. break
  3400. fi
  3401. # Just in case.
  3402. sleep 1
  3403. am_has_slept=yes
  3404. done
  3405. test "$2" = conftest.file
  3406. )
  3407. then
  3408. # Ok.
  3409. :
  3410. else
  3411. as_fn_error $? "newly created file is older than distributed files!
  3412. Check your system clock" "$LINENO" 5
  3413. fi
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3415. $as_echo "yes" >&6; }
  3416. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3417. # generated files are strictly newer.
  3418. am_sleep_pid=
  3419. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3420. ( sleep 1 ) &
  3421. am_sleep_pid=$!
  3422. fi
  3423. rm -f conftest.file
  3424. test "$program_prefix" != NONE &&
  3425. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3426. # Use a double $ so make ignores it.
  3427. test "$program_suffix" != NONE &&
  3428. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3429. # Double any \ or $.
  3430. # By default was `s,x,x', remove it if useless.
  3431. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3432. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3433. # expand $ac_aux_dir to an absolute path
  3434. am_aux_dir=`cd $ac_aux_dir && pwd`
  3435. if test x"${MISSING+set}" != xset; then
  3436. case $am_aux_dir in
  3437. *\ * | *\ *)
  3438. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3439. *)
  3440. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3441. esac
  3442. fi
  3443. # Use eval to expand $SHELL
  3444. if eval "$MISSING --run true"; then
  3445. am_missing_run="$MISSING --run "
  3446. else
  3447. am_missing_run=
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3449. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3450. fi
  3451. if test x"${install_sh}" != xset; then
  3452. case $am_aux_dir in
  3453. *\ * | *\ *)
  3454. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3455. *)
  3456. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3457. esac
  3458. fi
  3459. # Installed binaries are usually stripped using 'strip' when the user
  3460. # run "make install-strip". However 'strip' might not be the right
  3461. # tool to use in cross-compilation environments, therefore Automake
  3462. # will honor the 'STRIP' environment variable to overrule this program.
  3463. if test "$cross_compiling" != no; then
  3464. if test -n "$ac_tool_prefix"; then
  3465. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3466. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3468. $as_echo_n "checking for $ac_word... " >&6; }
  3469. if ${ac_cv_prog_STRIP+:} false; then :
  3470. $as_echo_n "(cached) " >&6
  3471. else
  3472. if test -n "$STRIP"; then
  3473. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3474. else
  3475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3476. for as_dir in $PATH
  3477. do
  3478. IFS=$as_save_IFS
  3479. test -z "$as_dir" && as_dir=.
  3480. for ac_exec_ext in '' $ac_executable_extensions; do
  3481. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3482. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3484. break 2
  3485. fi
  3486. done
  3487. done
  3488. IFS=$as_save_IFS
  3489. fi
  3490. fi
  3491. STRIP=$ac_cv_prog_STRIP
  3492. if test -n "$STRIP"; then
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3494. $as_echo "$STRIP" >&6; }
  3495. else
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3497. $as_echo "no" >&6; }
  3498. fi
  3499. fi
  3500. if test -z "$ac_cv_prog_STRIP"; then
  3501. ac_ct_STRIP=$STRIP
  3502. # Extract the first word of "strip", so it can be a program name with args.
  3503. set dummy strip; ac_word=$2
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3505. $as_echo_n "checking for $ac_word... " >&6; }
  3506. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3507. $as_echo_n "(cached) " >&6
  3508. else
  3509. if test -n "$ac_ct_STRIP"; then
  3510. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3511. else
  3512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3513. for as_dir in $PATH
  3514. do
  3515. IFS=$as_save_IFS
  3516. test -z "$as_dir" && as_dir=.
  3517. for ac_exec_ext in '' $ac_executable_extensions; do
  3518. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3519. ac_cv_prog_ac_ct_STRIP="strip"
  3520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3521. break 2
  3522. fi
  3523. done
  3524. done
  3525. IFS=$as_save_IFS
  3526. fi
  3527. fi
  3528. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3529. if test -n "$ac_ct_STRIP"; then
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3531. $as_echo "$ac_ct_STRIP" >&6; }
  3532. else
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3534. $as_echo "no" >&6; }
  3535. fi
  3536. if test "x$ac_ct_STRIP" = x; then
  3537. STRIP=":"
  3538. else
  3539. case $cross_compiling:$ac_tool_warned in
  3540. yes:)
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3542. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3543. ac_tool_warned=yes ;;
  3544. esac
  3545. STRIP=$ac_ct_STRIP
  3546. fi
  3547. else
  3548. STRIP="$ac_cv_prog_STRIP"
  3549. fi
  3550. fi
  3551. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3553. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3554. if test -z "$MKDIR_P"; then
  3555. if ${ac_cv_path_mkdir+:} false; then :
  3556. $as_echo_n "(cached) " >&6
  3557. else
  3558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3559. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3560. do
  3561. IFS=$as_save_IFS
  3562. test -z "$as_dir" && as_dir=.
  3563. for ac_prog in mkdir gmkdir; do
  3564. for ac_exec_ext in '' $ac_executable_extensions; do
  3565. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3566. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3567. 'mkdir (GNU coreutils) '* | \
  3568. 'mkdir (coreutils) '* | \
  3569. 'mkdir (fileutils) '4.1*)
  3570. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3571. break 3;;
  3572. esac
  3573. done
  3574. done
  3575. done
  3576. IFS=$as_save_IFS
  3577. fi
  3578. test -d ./--version && rmdir ./--version
  3579. if test "${ac_cv_path_mkdir+set}" = set; then
  3580. MKDIR_P="$ac_cv_path_mkdir -p"
  3581. else
  3582. # As a last resort, use the slow shell script. Don't cache a
  3583. # value for MKDIR_P within a source directory, because that will
  3584. # break other packages using the cache if that directory is
  3585. # removed, or if the value is a relative name.
  3586. MKDIR_P="$ac_install_sh -d"
  3587. fi
  3588. fi
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3590. $as_echo "$MKDIR_P" >&6; }
  3591. for ac_prog in gawk mawk nawk awk
  3592. do
  3593. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3594. set dummy $ac_prog; ac_word=$2
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3596. $as_echo_n "checking for $ac_word... " >&6; }
  3597. if ${ac_cv_prog_AWK+:} false; then :
  3598. $as_echo_n "(cached) " >&6
  3599. else
  3600. if test -n "$AWK"; then
  3601. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3602. else
  3603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3604. for as_dir in $PATH
  3605. do
  3606. IFS=$as_save_IFS
  3607. test -z "$as_dir" && as_dir=.
  3608. for ac_exec_ext in '' $ac_executable_extensions; do
  3609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3610. ac_cv_prog_AWK="$ac_prog"
  3611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3612. break 2
  3613. fi
  3614. done
  3615. done
  3616. IFS=$as_save_IFS
  3617. fi
  3618. fi
  3619. AWK=$ac_cv_prog_AWK
  3620. if test -n "$AWK"; then
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3622. $as_echo "$AWK" >&6; }
  3623. else
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3625. $as_echo "no" >&6; }
  3626. fi
  3627. test -n "$AWK" && break
  3628. done
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3630. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3631. set x ${MAKE-make}
  3632. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3633. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3634. $as_echo_n "(cached) " >&6
  3635. else
  3636. cat >conftest.make <<\_ACEOF
  3637. SHELL = /bin/sh
  3638. all:
  3639. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3640. _ACEOF
  3641. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3642. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3643. *@@@%%%=?*=@@@%%%*)
  3644. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3645. *)
  3646. eval ac_cv_prog_make_${ac_make}_set=no;;
  3647. esac
  3648. rm -f conftest.make
  3649. fi
  3650. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3652. $as_echo "yes" >&6; }
  3653. SET_MAKE=
  3654. else
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3656. $as_echo "no" >&6; }
  3657. SET_MAKE="MAKE=${MAKE-make}"
  3658. fi
  3659. rm -rf .tst 2>/dev/null
  3660. mkdir .tst 2>/dev/null
  3661. if test -d .tst; then
  3662. am__leading_dot=.
  3663. else
  3664. am__leading_dot=_
  3665. fi
  3666. rmdir .tst 2>/dev/null
  3667. DEPDIR="${am__leading_dot}deps"
  3668. ac_config_commands="$ac_config_commands depfiles"
  3669. am_make=${MAKE-make}
  3670. cat > confinc << 'END'
  3671. am__doit:
  3672. @echo this is the am__doit target
  3673. .PHONY: am__doit
  3674. END
  3675. # If we don't find an include directive, just comment out the code.
  3676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3677. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3678. am__include="#"
  3679. am__quote=
  3680. _am_result=none
  3681. # First try GNU make style include.
  3682. echo "include confinc" > confmf
  3683. # Ignore all kinds of additional output from 'make'.
  3684. case `$am_make -s -f confmf 2> /dev/null` in #(
  3685. *the\ am__doit\ target*)
  3686. am__include=include
  3687. am__quote=
  3688. _am_result=GNU
  3689. ;;
  3690. esac
  3691. # Now try BSD make style include.
  3692. if test "$am__include" = "#"; then
  3693. echo '.include "confinc"' > confmf
  3694. case `$am_make -s -f confmf 2> /dev/null` in #(
  3695. *the\ am__doit\ target*)
  3696. am__include=.include
  3697. am__quote="\""
  3698. _am_result=BSD
  3699. ;;
  3700. esac
  3701. fi
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3703. $as_echo "$_am_result" >&6; }
  3704. rm -f confinc confmf
  3705. # Check whether --enable-dependency-tracking was given.
  3706. if test "${enable_dependency_tracking+set}" = set; then :
  3707. enableval=$enable_dependency_tracking;
  3708. fi
  3709. if test "x$enable_dependency_tracking" != xno; then
  3710. am_depcomp="$ac_aux_dir/depcomp"
  3711. AMDEPBACKSLASH='\'
  3712. am__nodep='_no'
  3713. fi
  3714. if test "x$enable_dependency_tracking" != xno; then
  3715. AMDEP_TRUE=
  3716. AMDEP_FALSE='#'
  3717. else
  3718. AMDEP_TRUE='#'
  3719. AMDEP_FALSE=
  3720. fi
  3721. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3722. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3723. # is not polluted with repeated "-I."
  3724. am__isrc=' -I$(srcdir)'
  3725. # test to see if srcdir already configured
  3726. if test -f $srcdir/config.status; then
  3727. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3728. fi
  3729. fi
  3730. # test whether we have cygpath
  3731. if test -z "$CYGPATH_W"; then
  3732. if (cygpath --version) >/dev/null 2>/dev/null; then
  3733. CYGPATH_W='cygpath -w'
  3734. else
  3735. CYGPATH_W=echo
  3736. fi
  3737. fi
  3738. # Define the identity of the package.
  3739. PACKAGE='libedit-20131017'
  3740. VERSION='3.1'
  3741. cat >>confdefs.h <<_ACEOF
  3742. #define PACKAGE "$PACKAGE"
  3743. _ACEOF
  3744. cat >>confdefs.h <<_ACEOF
  3745. #define VERSION "$VERSION"
  3746. _ACEOF
  3747. # Some tools Automake needs.
  3748. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3749. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3750. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3751. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3752. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3753. # For better backward compatibility. To be removed once Automake 1.9.x
  3754. # dies out for good. For more background, see:
  3755. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3756. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3757. mkdir_p='$(MKDIR_P)'
  3758. # We need awk for the "check" target. The system "awk" is bad on
  3759. # some platforms.
  3760. # Always define AMTAR for backward compatibility. Yes, it's still used
  3761. # in the wild :-( We should find a proper way to deprecate it ...
  3762. AMTAR='$${TAR-tar}'
  3763. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3764. depcc="$CC" am_compiler_list=
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3766. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3767. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3768. $as_echo_n "(cached) " >&6
  3769. else
  3770. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3771. # We make a subdir and do the tests there. Otherwise we can end up
  3772. # making bogus files that we don't know about and never remove. For
  3773. # instance it was reported that on HP-UX the gcc test will end up
  3774. # making a dummy file named 'D' -- because '-MD' means "put the output
  3775. # in D".
  3776. rm -rf conftest.dir
  3777. mkdir conftest.dir
  3778. # Copy depcomp to subdir because otherwise we won't find it if we're
  3779. # using a relative directory.
  3780. cp "$am_depcomp" conftest.dir
  3781. cd conftest.dir
  3782. # We will build objects and dependencies in a subdirectory because
  3783. # it helps to detect inapplicable dependency modes. For instance
  3784. # both Tru64's cc and ICC support -MD to output dependencies as a
  3785. # side effect of compilation, but ICC will put the dependencies in
  3786. # the current directory while Tru64 will put them in the object
  3787. # directory.
  3788. mkdir sub
  3789. am_cv_CC_dependencies_compiler_type=none
  3790. if test "$am_compiler_list" = ""; then
  3791. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3792. fi
  3793. am__universal=false
  3794. case " $depcc " in #(
  3795. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3796. esac
  3797. for depmode in $am_compiler_list; do
  3798. # Setup a source with many dependencies, because some compilers
  3799. # like to wrap large dependency lists on column 80 (with \), and
  3800. # we should not choose a depcomp mode which is confused by this.
  3801. #
  3802. # We need to recreate these files for each test, as the compiler may
  3803. # overwrite some of them when testing with obscure command lines.
  3804. # This happens at least with the AIX C compiler.
  3805. : > sub/conftest.c
  3806. for i in 1 2 3 4 5 6; do
  3807. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3808. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3809. # Solaris 10 /bin/sh.
  3810. echo '/* dummy */' > sub/conftst$i.h
  3811. done
  3812. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3813. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3814. # mode. It turns out that the SunPro C++ compiler does not properly
  3815. # handle '-M -o', and we need to detect this. Also, some Intel
  3816. # versions had trouble with output in subdirs.
  3817. am__obj=sub/conftest.${OBJEXT-o}
  3818. am__minus_obj="-o $am__obj"
  3819. case $depmode in
  3820. gcc)
  3821. # This depmode causes a compiler race in universal mode.
  3822. test "$am__universal" = false || continue
  3823. ;;
  3824. nosideeffect)
  3825. # After this tag, mechanisms are not by side-effect, so they'll
  3826. # only be used when explicitly requested.
  3827. if test "x$enable_dependency_tracking" = xyes; then
  3828. continue
  3829. else
  3830. break
  3831. fi
  3832. ;;
  3833. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3834. # This compiler won't grok '-c -o', but also, the minuso test has
  3835. # not run yet. These depmodes are late enough in the game, and
  3836. # so weak that their functioning should not be impacted.
  3837. am__obj=conftest.${OBJEXT-o}
  3838. am__minus_obj=
  3839. ;;
  3840. none) break ;;
  3841. esac
  3842. if depmode=$depmode \
  3843. source=sub/conftest.c object=$am__obj \
  3844. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3845. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3846. >/dev/null 2>conftest.err &&
  3847. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3848. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3849. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3850. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3851. # icc doesn't choke on unknown options, it will just issue warnings
  3852. # or remarks (even with -Werror). So we grep stderr for any message
  3853. # that says an option was ignored or not supported.
  3854. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3855. # icc: Command line warning: ignoring option '-M'; no argument required
  3856. # The diagnosis changed in icc 8.0:
  3857. # icc: Command line remark: option '-MP' not supported
  3858. if (grep 'ignoring option' conftest.err ||
  3859. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3860. am_cv_CC_dependencies_compiler_type=$depmode
  3861. break
  3862. fi
  3863. fi
  3864. done
  3865. cd ..
  3866. rm -rf conftest.dir
  3867. else
  3868. am_cv_CC_dependencies_compiler_type=none
  3869. fi
  3870. fi
  3871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3872. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3873. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3874. if
  3875. test "x$enable_dependency_tracking" != xno \
  3876. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3877. am__fastdepCC_TRUE=
  3878. am__fastdepCC_FALSE='#'
  3879. else
  3880. am__fastdepCC_TRUE='#'
  3881. am__fastdepCC_FALSE=
  3882. fi
  3883. case `pwd` in
  3884. *\ * | *\ *)
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3886. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3887. esac
  3888. macro_version='2.4.2'
  3889. macro_revision='1.3337'
  3890. ltmain="$ac_aux_dir/ltmain.sh"
  3891. # Make sure we can run config.sub.
  3892. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3893. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3895. $as_echo_n "checking build system type... " >&6; }
  3896. if ${ac_cv_build+:} false; then :
  3897. $as_echo_n "(cached) " >&6
  3898. else
  3899. ac_build_alias=$build_alias
  3900. test "x$ac_build_alias" = x &&
  3901. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3902. test "x$ac_build_alias" = x &&
  3903. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3904. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3905. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3906. fi
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3908. $as_echo "$ac_cv_build" >&6; }
  3909. case $ac_cv_build in
  3910. *-*-*) ;;
  3911. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3912. esac
  3913. build=$ac_cv_build
  3914. ac_save_IFS=$IFS; IFS='-'
  3915. set x $ac_cv_build
  3916. shift
  3917. build_cpu=$1
  3918. build_vendor=$2
  3919. shift; shift
  3920. # Remember, the first character of IFS is used to create $*,
  3921. # except with old shells:
  3922. build_os=$*
  3923. IFS=$ac_save_IFS
  3924. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3926. $as_echo_n "checking host system type... " >&6; }
  3927. if ${ac_cv_host+:} false; then :
  3928. $as_echo_n "(cached) " >&6
  3929. else
  3930. if test "x$host_alias" = x; then
  3931. ac_cv_host=$ac_cv_build
  3932. else
  3933. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3934. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3935. fi
  3936. fi
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3938. $as_echo "$ac_cv_host" >&6; }
  3939. case $ac_cv_host in
  3940. *-*-*) ;;
  3941. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3942. esac
  3943. host=$ac_cv_host
  3944. ac_save_IFS=$IFS; IFS='-'
  3945. set x $ac_cv_host
  3946. shift
  3947. host_cpu=$1
  3948. host_vendor=$2
  3949. shift; shift
  3950. # Remember, the first character of IFS is used to create $*,
  3951. # except with old shells:
  3952. host_os=$*
  3953. IFS=$ac_save_IFS
  3954. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3955. # Backslashify metacharacters that are still active within
  3956. # double-quoted strings.
  3957. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3958. # Same as above, but do not quote variable references.
  3959. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3960. # Sed substitution to delay expansion of an escaped shell variable in a
  3961. # double_quote_subst'ed string.
  3962. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3963. # Sed substitution to delay expansion of an escaped single quote.
  3964. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3965. # Sed substitution to avoid accidental globbing in evaled expressions
  3966. no_glob_subst='s/\*/\\\*/g'
  3967. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3968. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3969. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3971. $as_echo_n "checking how to print strings... " >&6; }
  3972. # Test print first, because it will be a builtin if present.
  3973. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3974. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3975. ECHO='print -r --'
  3976. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3977. ECHO='printf %s\n'
  3978. else
  3979. # Use this function as a fallback that always works.
  3980. func_fallback_echo ()
  3981. {
  3982. eval 'cat <<_LTECHO_EOF
  3983. $1
  3984. _LTECHO_EOF'
  3985. }
  3986. ECHO='func_fallback_echo'
  3987. fi
  3988. # func_echo_all arg...
  3989. # Invoke $ECHO with all args, space-separated.
  3990. func_echo_all ()
  3991. {
  3992. $ECHO ""
  3993. }
  3994. case "$ECHO" in
  3995. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3996. $as_echo "printf" >&6; } ;;
  3997. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3998. $as_echo "print -r" >&6; } ;;
  3999. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4000. $as_echo "cat" >&6; } ;;
  4001. esac
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4003. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4004. if ${ac_cv_path_SED+:} false; then :
  4005. $as_echo_n "(cached) " >&6
  4006. else
  4007. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4008. for ac_i in 1 2 3 4 5 6 7; do
  4009. ac_script="$ac_script$as_nl$ac_script"
  4010. done
  4011. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4012. { ac_script=; unset ac_script;}
  4013. if test -z "$SED"; then
  4014. ac_path_SED_found=false
  4015. # Loop through the user's path and test for each of PROGNAME-LIST
  4016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4017. for as_dir in $PATH
  4018. do
  4019. IFS=$as_save_IFS
  4020. test -z "$as_dir" && as_dir=.
  4021. for ac_prog in sed gsed; do
  4022. for ac_exec_ext in '' $ac_executable_extensions; do
  4023. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4024. as_fn_executable_p "$ac_path_SED" || continue
  4025. # Check for GNU ac_path_SED and select it if it is found.
  4026. # Check for GNU $ac_path_SED
  4027. case `"$ac_path_SED" --version 2>&1` in
  4028. *GNU*)
  4029. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4030. *)
  4031. ac_count=0
  4032. $as_echo_n 0123456789 >"conftest.in"
  4033. while :
  4034. do
  4035. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4036. mv "conftest.tmp" "conftest.in"
  4037. cp "conftest.in" "conftest.nl"
  4038. $as_echo '' >> "conftest.nl"
  4039. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4040. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4041. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4042. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4043. # Best one so far, save it but keep looking for a better one
  4044. ac_cv_path_SED="$ac_path_SED"
  4045. ac_path_SED_max=$ac_count
  4046. fi
  4047. # 10*(2^10) chars as input seems more than enough
  4048. test $ac_count -gt 10 && break
  4049. done
  4050. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4051. esac
  4052. $ac_path_SED_found && break 3
  4053. done
  4054. done
  4055. done
  4056. IFS=$as_save_IFS
  4057. if test -z "$ac_cv_path_SED"; then
  4058. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4059. fi
  4060. else
  4061. ac_cv_path_SED=$SED
  4062. fi
  4063. fi
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4065. $as_echo "$ac_cv_path_SED" >&6; }
  4066. SED="$ac_cv_path_SED"
  4067. rm -f conftest.sed
  4068. test -z "$SED" && SED=sed
  4069. Xsed="$SED -e 1s/^X//"
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4071. $as_echo_n "checking for fgrep... " >&6; }
  4072. if ${ac_cv_path_FGREP+:} false; then :
  4073. $as_echo_n "(cached) " >&6
  4074. else
  4075. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4076. then ac_cv_path_FGREP="$GREP -F"
  4077. else
  4078. if test -z "$FGREP"; then
  4079. ac_path_FGREP_found=false
  4080. # Loop through the user's path and test for each of PROGNAME-LIST
  4081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4082. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4083. do
  4084. IFS=$as_save_IFS
  4085. test -z "$as_dir" && as_dir=.
  4086. for ac_prog in fgrep; do
  4087. for ac_exec_ext in '' $ac_executable_extensions; do
  4088. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4089. as_fn_executable_p "$ac_path_FGREP" || continue
  4090. # Check for GNU ac_path_FGREP and select it if it is found.
  4091. # Check for GNU $ac_path_FGREP
  4092. case `"$ac_path_FGREP" --version 2>&1` in
  4093. *GNU*)
  4094. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4095. *)
  4096. ac_count=0
  4097. $as_echo_n 0123456789 >"conftest.in"
  4098. while :
  4099. do
  4100. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4101. mv "conftest.tmp" "conftest.in"
  4102. cp "conftest.in" "conftest.nl"
  4103. $as_echo 'FGREP' >> "conftest.nl"
  4104. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4105. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4106. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4107. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4108. # Best one so far, save it but keep looking for a better one
  4109. ac_cv_path_FGREP="$ac_path_FGREP"
  4110. ac_path_FGREP_max=$ac_count
  4111. fi
  4112. # 10*(2^10) chars as input seems more than enough
  4113. test $ac_count -gt 10 && break
  4114. done
  4115. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4116. esac
  4117. $ac_path_FGREP_found && break 3
  4118. done
  4119. done
  4120. done
  4121. IFS=$as_save_IFS
  4122. if test -z "$ac_cv_path_FGREP"; then
  4123. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4124. fi
  4125. else
  4126. ac_cv_path_FGREP=$FGREP
  4127. fi
  4128. fi
  4129. fi
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4131. $as_echo "$ac_cv_path_FGREP" >&6; }
  4132. FGREP="$ac_cv_path_FGREP"
  4133. test -z "$GREP" && GREP=grep
  4134. # Check whether --with-gnu-ld was given.
  4135. if test "${with_gnu_ld+set}" = set; then :
  4136. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4137. else
  4138. with_gnu_ld=no
  4139. fi
  4140. ac_prog=ld
  4141. if test "$GCC" = yes; then
  4142. # Check if gcc -print-prog-name=ld gives a path.
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4144. $as_echo_n "checking for ld used by $CC... " >&6; }
  4145. case $host in
  4146. *-*-mingw*)
  4147. # gcc leaves a trailing carriage return which upsets mingw
  4148. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4149. *)
  4150. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4151. esac
  4152. case $ac_prog in
  4153. # Accept absolute paths.
  4154. [\\/]* | ?:[\\/]*)
  4155. re_direlt='/[^/][^/]*/\.\./'
  4156. # Canonicalize the pathname of ld
  4157. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4158. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4159. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4160. done
  4161. test -z "$LD" && LD="$ac_prog"
  4162. ;;
  4163. "")
  4164. # If it fails, then pretend we aren't using GCC.
  4165. ac_prog=ld
  4166. ;;
  4167. *)
  4168. # If it is relative, then search for the first ld in PATH.
  4169. with_gnu_ld=unknown
  4170. ;;
  4171. esac
  4172. elif test "$with_gnu_ld" = yes; then
  4173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4174. $as_echo_n "checking for GNU ld... " >&6; }
  4175. else
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4177. $as_echo_n "checking for non-GNU ld... " >&6; }
  4178. fi
  4179. if ${lt_cv_path_LD+:} false; then :
  4180. $as_echo_n "(cached) " >&6
  4181. else
  4182. if test -z "$LD"; then
  4183. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4184. for ac_dir in $PATH; do
  4185. IFS="$lt_save_ifs"
  4186. test -z "$ac_dir" && ac_dir=.
  4187. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4188. lt_cv_path_LD="$ac_dir/$ac_prog"
  4189. # Check to see if the program is GNU ld. I'd rather use --version,
  4190. # but apparently some variants of GNU ld only accept -v.
  4191. # Break only if it was the GNU/non-GNU ld that we prefer.
  4192. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4193. *GNU* | *'with BFD'*)
  4194. test "$with_gnu_ld" != no && break
  4195. ;;
  4196. *)
  4197. test "$with_gnu_ld" != yes && break
  4198. ;;
  4199. esac
  4200. fi
  4201. done
  4202. IFS="$lt_save_ifs"
  4203. else
  4204. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4205. fi
  4206. fi
  4207. LD="$lt_cv_path_LD"
  4208. if test -n "$LD"; then
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4210. $as_echo "$LD" >&6; }
  4211. else
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4213. $as_echo "no" >&6; }
  4214. fi
  4215. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4217. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4218. if ${lt_cv_prog_gnu_ld+:} false; then :
  4219. $as_echo_n "(cached) " >&6
  4220. else
  4221. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4222. case `$LD -v 2>&1 </dev/null` in
  4223. *GNU* | *'with BFD'*)
  4224. lt_cv_prog_gnu_ld=yes
  4225. ;;
  4226. *)
  4227. lt_cv_prog_gnu_ld=no
  4228. ;;
  4229. esac
  4230. fi
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4232. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4233. with_gnu_ld=$lt_cv_prog_gnu_ld
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4235. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4236. if ${lt_cv_path_NM+:} false; then :
  4237. $as_echo_n "(cached) " >&6
  4238. else
  4239. if test -n "$NM"; then
  4240. # Let the user override the test.
  4241. lt_cv_path_NM="$NM"
  4242. else
  4243. lt_nm_to_check="${ac_tool_prefix}nm"
  4244. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4245. lt_nm_to_check="$lt_nm_to_check nm"
  4246. fi
  4247. for lt_tmp_nm in $lt_nm_to_check; do
  4248. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4249. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4250. IFS="$lt_save_ifs"
  4251. test -z "$ac_dir" && ac_dir=.
  4252. tmp_nm="$ac_dir/$lt_tmp_nm"
  4253. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4254. # Check to see if the nm accepts a BSD-compat flag.
  4255. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4256. # nm: unknown option "B" ignored
  4257. # Tru64's nm complains that /dev/null is an invalid object file
  4258. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4259. */dev/null* | *'Invalid file or object type'*)
  4260. lt_cv_path_NM="$tmp_nm -B"
  4261. break
  4262. ;;
  4263. *)
  4264. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4265. */dev/null*)
  4266. lt_cv_path_NM="$tmp_nm -p"
  4267. break
  4268. ;;
  4269. *)
  4270. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4271. continue # so that we can try to find one that supports BSD flags
  4272. ;;
  4273. esac
  4274. ;;
  4275. esac
  4276. fi
  4277. done
  4278. IFS="$lt_save_ifs"
  4279. done
  4280. : ${lt_cv_path_NM=no}
  4281. fi
  4282. fi
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4284. $as_echo "$lt_cv_path_NM" >&6; }
  4285. if test "$lt_cv_path_NM" != "no"; then
  4286. NM="$lt_cv_path_NM"
  4287. else
  4288. # Didn't find any BSD compatible name lister, look for dumpbin.
  4289. if test -n "$DUMPBIN"; then :
  4290. # Let the user override the test.
  4291. else
  4292. if test -n "$ac_tool_prefix"; then
  4293. for ac_prog in dumpbin "link -dump"
  4294. do
  4295. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4296. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4298. $as_echo_n "checking for $ac_word... " >&6; }
  4299. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4300. $as_echo_n "(cached) " >&6
  4301. else
  4302. if test -n "$DUMPBIN"; then
  4303. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4304. else
  4305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4306. for as_dir in $PATH
  4307. do
  4308. IFS=$as_save_IFS
  4309. test -z "$as_dir" && as_dir=.
  4310. for ac_exec_ext in '' $ac_executable_extensions; do
  4311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4312. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4314. break 2
  4315. fi
  4316. done
  4317. done
  4318. IFS=$as_save_IFS
  4319. fi
  4320. fi
  4321. DUMPBIN=$ac_cv_prog_DUMPBIN
  4322. if test -n "$DUMPBIN"; then
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4324. $as_echo "$DUMPBIN" >&6; }
  4325. else
  4326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4327. $as_echo "no" >&6; }
  4328. fi
  4329. test -n "$DUMPBIN" && break
  4330. done
  4331. fi
  4332. if test -z "$DUMPBIN"; then
  4333. ac_ct_DUMPBIN=$DUMPBIN
  4334. for ac_prog in dumpbin "link -dump"
  4335. do
  4336. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4337. set dummy $ac_prog; ac_word=$2
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4339. $as_echo_n "checking for $ac_word... " >&6; }
  4340. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4341. $as_echo_n "(cached) " >&6
  4342. else
  4343. if test -n "$ac_ct_DUMPBIN"; then
  4344. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4345. else
  4346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4347. for as_dir in $PATH
  4348. do
  4349. IFS=$as_save_IFS
  4350. test -z "$as_dir" && as_dir=.
  4351. for ac_exec_ext in '' $ac_executable_extensions; do
  4352. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4353. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4355. break 2
  4356. fi
  4357. done
  4358. done
  4359. IFS=$as_save_IFS
  4360. fi
  4361. fi
  4362. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4363. if test -n "$ac_ct_DUMPBIN"; then
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4365. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4366. else
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4368. $as_echo "no" >&6; }
  4369. fi
  4370. test -n "$ac_ct_DUMPBIN" && break
  4371. done
  4372. if test "x$ac_ct_DUMPBIN" = x; then
  4373. DUMPBIN=":"
  4374. else
  4375. case $cross_compiling:$ac_tool_warned in
  4376. yes:)
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4378. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4379. ac_tool_warned=yes ;;
  4380. esac
  4381. DUMPBIN=$ac_ct_DUMPBIN
  4382. fi
  4383. fi
  4384. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4385. *COFF*)
  4386. DUMPBIN="$DUMPBIN -symbols"
  4387. ;;
  4388. *)
  4389. DUMPBIN=:
  4390. ;;
  4391. esac
  4392. fi
  4393. if test "$DUMPBIN" != ":"; then
  4394. NM="$DUMPBIN"
  4395. fi
  4396. fi
  4397. test -z "$NM" && NM=nm
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4399. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4400. if ${lt_cv_nm_interface+:} false; then :
  4401. $as_echo_n "(cached) " >&6
  4402. else
  4403. lt_cv_nm_interface="BSD nm"
  4404. echo "int some_variable = 0;" > conftest.$ac_ext
  4405. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4406. (eval "$ac_compile" 2>conftest.err)
  4407. cat conftest.err >&5
  4408. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4409. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4410. cat conftest.err >&5
  4411. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4412. cat conftest.out >&5
  4413. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4414. lt_cv_nm_interface="MS dumpbin"
  4415. fi
  4416. rm -f conftest*
  4417. fi
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4419. $as_echo "$lt_cv_nm_interface" >&6; }
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4421. $as_echo_n "checking whether ln -s works... " >&6; }
  4422. LN_S=$as_ln_s
  4423. if test "$LN_S" = "ln -s"; then
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4425. $as_echo "yes" >&6; }
  4426. else
  4427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4428. $as_echo "no, using $LN_S" >&6; }
  4429. fi
  4430. # find the maximum length of command line arguments
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4432. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4433. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4434. $as_echo_n "(cached) " >&6
  4435. else
  4436. i=0
  4437. teststring="ABCD"
  4438. case $build_os in
  4439. msdosdjgpp*)
  4440. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4441. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4442. # during glob expansion). Even if it were fixed, the result of this
  4443. # check would be larger than it should be.
  4444. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4445. ;;
  4446. gnu*)
  4447. # Under GNU Hurd, this test is not required because there is
  4448. # no limit to the length of command line arguments.
  4449. # Libtool will interpret -1 as no limit whatsoever
  4450. lt_cv_sys_max_cmd_len=-1;
  4451. ;;
  4452. cygwin* | mingw* | cegcc*)
  4453. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4454. # about 5 minutes as the teststring grows exponentially.
  4455. # Worse, since 9x/ME are not pre-emptively multitasking,
  4456. # you end up with a "frozen" computer, even though with patience
  4457. # the test eventually succeeds (with a max line length of 256k).
  4458. # Instead, let's just punt: use the minimum linelength reported by
  4459. # all of the supported platforms: 8192 (on NT/2K/XP).
  4460. lt_cv_sys_max_cmd_len=8192;
  4461. ;;
  4462. mint*)
  4463. # On MiNT this can take a long time and run out of memory.
  4464. lt_cv_sys_max_cmd_len=8192;
  4465. ;;
  4466. amigaos*)
  4467. # On AmigaOS with pdksh, this test takes hours, literally.
  4468. # So we just punt and use a minimum line length of 8192.
  4469. lt_cv_sys_max_cmd_len=8192;
  4470. ;;
  4471. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4472. # This has been around since 386BSD, at least. Likely further.
  4473. if test -x /sbin/sysctl; then
  4474. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4475. elif test -x /usr/sbin/sysctl; then
  4476. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4477. else
  4478. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4479. fi
  4480. # And add a safety zone
  4481. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4482. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4483. ;;
  4484. interix*)
  4485. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4486. lt_cv_sys_max_cmd_len=196608
  4487. ;;
  4488. os2*)
  4489. # The test takes a long time on OS/2.
  4490. lt_cv_sys_max_cmd_len=8192
  4491. ;;
  4492. osf*)
  4493. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4494. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4495. # nice to cause kernel panics so lets avoid the loop below.
  4496. # First set a reasonable default.
  4497. lt_cv_sys_max_cmd_len=16384
  4498. #
  4499. if test -x /sbin/sysconfig; then
  4500. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4501. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4502. esac
  4503. fi
  4504. ;;
  4505. sco3.2v5*)
  4506. lt_cv_sys_max_cmd_len=102400
  4507. ;;
  4508. sysv5* | sco5v6* | sysv4.2uw2*)
  4509. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4510. if test -n "$kargmax"; then
  4511. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4512. else
  4513. lt_cv_sys_max_cmd_len=32768
  4514. fi
  4515. ;;
  4516. *)
  4517. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4518. if test -n "$lt_cv_sys_max_cmd_len"; then
  4519. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4520. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4521. else
  4522. # Make teststring a little bigger before we do anything with it.
  4523. # a 1K string should be a reasonable start.
  4524. for i in 1 2 3 4 5 6 7 8 ; do
  4525. teststring=$teststring$teststring
  4526. done
  4527. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4528. # If test is not a shell built-in, we'll probably end up computing a
  4529. # maximum length that is only half of the actual maximum length, but
  4530. # we can't tell.
  4531. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4532. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4533. test $i != 17 # 1/2 MB should be enough
  4534. do
  4535. i=`expr $i + 1`
  4536. teststring=$teststring$teststring
  4537. done
  4538. # Only check the string length outside the loop.
  4539. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4540. teststring=
  4541. # Add a significant safety factor because C++ compilers can tack on
  4542. # massive amounts of additional arguments before passing them to the
  4543. # linker. It appears as though 1/2 is a usable value.
  4544. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4545. fi
  4546. ;;
  4547. esac
  4548. fi
  4549. if test -n $lt_cv_sys_max_cmd_len ; then
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4551. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4552. else
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4554. $as_echo "none" >&6; }
  4555. fi
  4556. max_cmd_len=$lt_cv_sys_max_cmd_len
  4557. : ${CP="cp -f"}
  4558. : ${MV="mv -f"}
  4559. : ${RM="rm -f"}
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4561. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4562. # Try some XSI features
  4563. xsi_shell=no
  4564. ( _lt_dummy="a/b/c"
  4565. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4566. = c,a/b,b/c, \
  4567. && eval 'test $(( 1 + 1 )) -eq 2 \
  4568. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4569. && xsi_shell=yes
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4571. $as_echo "$xsi_shell" >&6; }
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4573. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4574. lt_shell_append=no
  4575. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4576. >/dev/null 2>&1 \
  4577. && lt_shell_append=yes
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4579. $as_echo "$lt_shell_append" >&6; }
  4580. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4581. lt_unset=unset
  4582. else
  4583. lt_unset=false
  4584. fi
  4585. # test EBCDIC or ASCII
  4586. case `echo X|tr X '\101'` in
  4587. A) # ASCII based system
  4588. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4589. lt_SP2NL='tr \040 \012'
  4590. lt_NL2SP='tr \015\012 \040\040'
  4591. ;;
  4592. *) # EBCDIC based system
  4593. lt_SP2NL='tr \100 \n'
  4594. lt_NL2SP='tr \r\n \100\100'
  4595. ;;
  4596. esac
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4598. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4599. if ${lt_cv_to_host_file_cmd+:} false; then :
  4600. $as_echo_n "(cached) " >&6
  4601. else
  4602. case $host in
  4603. *-*-mingw* )
  4604. case $build in
  4605. *-*-mingw* ) # actually msys
  4606. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4607. ;;
  4608. *-*-cygwin* )
  4609. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4610. ;;
  4611. * ) # otherwise, assume *nix
  4612. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4613. ;;
  4614. esac
  4615. ;;
  4616. *-*-cygwin* )
  4617. case $build in
  4618. *-*-mingw* ) # actually msys
  4619. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4620. ;;
  4621. *-*-cygwin* )
  4622. lt_cv_to_host_file_cmd=func_convert_file_noop
  4623. ;;
  4624. * ) # otherwise, assume *nix
  4625. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4626. ;;
  4627. esac
  4628. ;;
  4629. * ) # unhandled hosts (and "normal" native builds)
  4630. lt_cv_to_host_file_cmd=func_convert_file_noop
  4631. ;;
  4632. esac
  4633. fi
  4634. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4636. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4638. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4639. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4640. $as_echo_n "(cached) " >&6
  4641. else
  4642. #assume ordinary cross tools, or native build.
  4643. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4644. case $host in
  4645. *-*-mingw* )
  4646. case $build in
  4647. *-*-mingw* ) # actually msys
  4648. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4649. ;;
  4650. esac
  4651. ;;
  4652. esac
  4653. fi
  4654. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4656. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4658. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4659. if ${lt_cv_ld_reload_flag+:} false; then :
  4660. $as_echo_n "(cached) " >&6
  4661. else
  4662. lt_cv_ld_reload_flag='-r'
  4663. fi
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4665. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4666. reload_flag=$lt_cv_ld_reload_flag
  4667. case $reload_flag in
  4668. "" | " "*) ;;
  4669. *) reload_flag=" $reload_flag" ;;
  4670. esac
  4671. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4672. case $host_os in
  4673. cygwin* | mingw* | pw32* | cegcc*)
  4674. if test "$GCC" != yes; then
  4675. reload_cmds=false
  4676. fi
  4677. ;;
  4678. darwin*)
  4679. if test "$GCC" = yes; then
  4680. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4681. else
  4682. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4683. fi
  4684. ;;
  4685. esac
  4686. if test -n "$ac_tool_prefix"; then
  4687. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4688. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4690. $as_echo_n "checking for $ac_word... " >&6; }
  4691. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4692. $as_echo_n "(cached) " >&6
  4693. else
  4694. if test -n "$OBJDUMP"; then
  4695. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4696. else
  4697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4698. for as_dir in $PATH
  4699. do
  4700. IFS=$as_save_IFS
  4701. test -z "$as_dir" && as_dir=.
  4702. for ac_exec_ext in '' $ac_executable_extensions; do
  4703. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4704. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4706. break 2
  4707. fi
  4708. done
  4709. done
  4710. IFS=$as_save_IFS
  4711. fi
  4712. fi
  4713. OBJDUMP=$ac_cv_prog_OBJDUMP
  4714. if test -n "$OBJDUMP"; then
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4716. $as_echo "$OBJDUMP" >&6; }
  4717. else
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4719. $as_echo "no" >&6; }
  4720. fi
  4721. fi
  4722. if test -z "$ac_cv_prog_OBJDUMP"; then
  4723. ac_ct_OBJDUMP=$OBJDUMP
  4724. # Extract the first word of "objdump", so it can be a program name with args.
  4725. set dummy objdump; ac_word=$2
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4727. $as_echo_n "checking for $ac_word... " >&6; }
  4728. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4729. $as_echo_n "(cached) " >&6
  4730. else
  4731. if test -n "$ac_ct_OBJDUMP"; then
  4732. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4733. else
  4734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4735. for as_dir in $PATH
  4736. do
  4737. IFS=$as_save_IFS
  4738. test -z "$as_dir" && as_dir=.
  4739. for ac_exec_ext in '' $ac_executable_extensions; do
  4740. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4741. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4743. break 2
  4744. fi
  4745. done
  4746. done
  4747. IFS=$as_save_IFS
  4748. fi
  4749. fi
  4750. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4751. if test -n "$ac_ct_OBJDUMP"; then
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4753. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4754. else
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4756. $as_echo "no" >&6; }
  4757. fi
  4758. if test "x$ac_ct_OBJDUMP" = x; then
  4759. OBJDUMP="false"
  4760. else
  4761. case $cross_compiling:$ac_tool_warned in
  4762. yes:)
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4764. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4765. ac_tool_warned=yes ;;
  4766. esac
  4767. OBJDUMP=$ac_ct_OBJDUMP
  4768. fi
  4769. else
  4770. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4771. fi
  4772. test -z "$OBJDUMP" && OBJDUMP=objdump
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4774. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4775. if ${lt_cv_deplibs_check_method+:} false; then :
  4776. $as_echo_n "(cached) " >&6
  4777. else
  4778. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4779. lt_cv_file_magic_test_file=
  4780. lt_cv_deplibs_check_method='unknown'
  4781. # Need to set the preceding variable on all platforms that support
  4782. # interlibrary dependencies.
  4783. # 'none' -- dependencies not supported.
  4784. # `unknown' -- same as none, but documents that we really don't know.
  4785. # 'pass_all' -- all dependencies passed with no checks.
  4786. # 'test_compile' -- check by making test program.
  4787. # 'file_magic [[regex]]' -- check by looking for files in library path
  4788. # which responds to the $file_magic_cmd with a given extended regex.
  4789. # If you have `file' or equivalent on your system and you're not sure
  4790. # whether `pass_all' will *always* work, you probably want this one.
  4791. case $host_os in
  4792. aix[4-9]*)
  4793. lt_cv_deplibs_check_method=pass_all
  4794. ;;
  4795. beos*)
  4796. lt_cv_deplibs_check_method=pass_all
  4797. ;;
  4798. bsdi[45]*)
  4799. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4800. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4801. lt_cv_file_magic_test_file=/shlib/libc.so
  4802. ;;
  4803. cygwin*)
  4804. # func_win32_libid is a shell function defined in ltmain.sh
  4805. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4806. lt_cv_file_magic_cmd='func_win32_libid'
  4807. ;;
  4808. mingw* | pw32*)
  4809. # Base MSYS/MinGW do not provide the 'file' command needed by
  4810. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4811. # unless we find 'file', for example because we are cross-compiling.
  4812. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4813. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4814. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4815. lt_cv_file_magic_cmd='func_win32_libid'
  4816. else
  4817. # Keep this pattern in sync with the one in func_win32_libid.
  4818. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4819. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4820. fi
  4821. ;;
  4822. cegcc*)
  4823. # use the weaker test based on 'objdump'. See mingw*.
  4824. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4825. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4826. ;;
  4827. darwin* | rhapsody*)
  4828. lt_cv_deplibs_check_method=pass_all
  4829. ;;
  4830. freebsd* | dragonfly*)
  4831. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4832. case $host_cpu in
  4833. i*86 )
  4834. # Not sure whether the presence of OpenBSD here was a mistake.
  4835. # Let's accept both of them until this is cleared up.
  4836. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4837. lt_cv_file_magic_cmd=/usr/bin/file
  4838. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4839. ;;
  4840. esac
  4841. else
  4842. lt_cv_deplibs_check_method=pass_all
  4843. fi
  4844. ;;
  4845. gnu*)
  4846. lt_cv_deplibs_check_method=pass_all
  4847. ;;
  4848. haiku*)
  4849. lt_cv_deplibs_check_method=pass_all
  4850. ;;
  4851. hpux10.20* | hpux11*)
  4852. lt_cv_file_magic_cmd=/usr/bin/file
  4853. case $host_cpu in
  4854. ia64*)
  4855. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4856. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4857. ;;
  4858. hppa*64*)
  4859. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4860. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4861. ;;
  4862. *)
  4863. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4864. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4865. ;;
  4866. esac
  4867. ;;
  4868. interix[3-9]*)
  4869. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4870. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4871. ;;
  4872. irix5* | irix6* | nonstopux*)
  4873. case $LD in
  4874. *-32|*"-32 ") libmagic=32-bit;;
  4875. *-n32|*"-n32 ") libmagic=N32;;
  4876. *-64|*"-64 ") libmagic=64-bit;;
  4877. *) libmagic=never-match;;
  4878. esac
  4879. lt_cv_deplibs_check_method=pass_all
  4880. ;;
  4881. # This must be glibc/ELF.
  4882. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4883. lt_cv_deplibs_check_method=pass_all
  4884. ;;
  4885. netbsd*)
  4886. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4887. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4888. else
  4889. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4890. fi
  4891. ;;
  4892. newos6*)
  4893. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4894. lt_cv_file_magic_cmd=/usr/bin/file
  4895. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4896. ;;
  4897. *nto* | *qnx*)
  4898. lt_cv_deplibs_check_method=pass_all
  4899. ;;
  4900. openbsd*)
  4901. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4902. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4903. else
  4904. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4905. fi
  4906. ;;
  4907. osf3* | osf4* | osf5*)
  4908. lt_cv_deplibs_check_method=pass_all
  4909. ;;
  4910. rdos*)
  4911. lt_cv_deplibs_check_method=pass_all
  4912. ;;
  4913. solaris*)
  4914. lt_cv_deplibs_check_method=pass_all
  4915. ;;
  4916. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4917. lt_cv_deplibs_check_method=pass_all
  4918. ;;
  4919. sysv4 | sysv4.3*)
  4920. case $host_vendor in
  4921. motorola)
  4922. 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]'
  4923. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4924. ;;
  4925. ncr)
  4926. lt_cv_deplibs_check_method=pass_all
  4927. ;;
  4928. sequent)
  4929. lt_cv_file_magic_cmd='/bin/file'
  4930. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4931. ;;
  4932. sni)
  4933. lt_cv_file_magic_cmd='/bin/file'
  4934. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4935. lt_cv_file_magic_test_file=/lib/libc.so
  4936. ;;
  4937. siemens)
  4938. lt_cv_deplibs_check_method=pass_all
  4939. ;;
  4940. pc)
  4941. lt_cv_deplibs_check_method=pass_all
  4942. ;;
  4943. esac
  4944. ;;
  4945. tpf*)
  4946. lt_cv_deplibs_check_method=pass_all
  4947. ;;
  4948. esac
  4949. fi
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4951. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4952. file_magic_glob=
  4953. want_nocaseglob=no
  4954. if test "$build" = "$host"; then
  4955. case $host_os in
  4956. mingw* | pw32*)
  4957. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4958. want_nocaseglob=yes
  4959. else
  4960. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4961. fi
  4962. ;;
  4963. esac
  4964. fi
  4965. file_magic_cmd=$lt_cv_file_magic_cmd
  4966. deplibs_check_method=$lt_cv_deplibs_check_method
  4967. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4968. if test -n "$ac_tool_prefix"; then
  4969. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4970. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4972. $as_echo_n "checking for $ac_word... " >&6; }
  4973. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4974. $as_echo_n "(cached) " >&6
  4975. else
  4976. if test -n "$DLLTOOL"; then
  4977. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4978. else
  4979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4980. for as_dir in $PATH
  4981. do
  4982. IFS=$as_save_IFS
  4983. test -z "$as_dir" && as_dir=.
  4984. for ac_exec_ext in '' $ac_executable_extensions; do
  4985. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4986. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4988. break 2
  4989. fi
  4990. done
  4991. done
  4992. IFS=$as_save_IFS
  4993. fi
  4994. fi
  4995. DLLTOOL=$ac_cv_prog_DLLTOOL
  4996. if test -n "$DLLTOOL"; then
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4998. $as_echo "$DLLTOOL" >&6; }
  4999. else
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5001. $as_echo "no" >&6; }
  5002. fi
  5003. fi
  5004. if test -z "$ac_cv_prog_DLLTOOL"; then
  5005. ac_ct_DLLTOOL=$DLLTOOL
  5006. # Extract the first word of "dlltool", so it can be a program name with args.
  5007. set dummy dlltool; ac_word=$2
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5009. $as_echo_n "checking for $ac_word... " >&6; }
  5010. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5011. $as_echo_n "(cached) " >&6
  5012. else
  5013. if test -n "$ac_ct_DLLTOOL"; then
  5014. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5015. else
  5016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5017. for as_dir in $PATH
  5018. do
  5019. IFS=$as_save_IFS
  5020. test -z "$as_dir" && as_dir=.
  5021. for ac_exec_ext in '' $ac_executable_extensions; do
  5022. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5023. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5024. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5025. break 2
  5026. fi
  5027. done
  5028. done
  5029. IFS=$as_save_IFS
  5030. fi
  5031. fi
  5032. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5033. if test -n "$ac_ct_DLLTOOL"; then
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5035. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5036. else
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5038. $as_echo "no" >&6; }
  5039. fi
  5040. if test "x$ac_ct_DLLTOOL" = x; then
  5041. DLLTOOL="false"
  5042. else
  5043. case $cross_compiling:$ac_tool_warned in
  5044. yes:)
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5046. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5047. ac_tool_warned=yes ;;
  5048. esac
  5049. DLLTOOL=$ac_ct_DLLTOOL
  5050. fi
  5051. else
  5052. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5053. fi
  5054. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5056. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5057. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5058. $as_echo_n "(cached) " >&6
  5059. else
  5060. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5061. case $host_os in
  5062. cygwin* | mingw* | pw32* | cegcc*)
  5063. # two different shell functions defined in ltmain.sh
  5064. # decide which to use based on capabilities of $DLLTOOL
  5065. case `$DLLTOOL --help 2>&1` in
  5066. *--identify-strict*)
  5067. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5068. ;;
  5069. *)
  5070. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5071. ;;
  5072. esac
  5073. ;;
  5074. *)
  5075. # fallback: assume linklib IS sharedlib
  5076. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5077. ;;
  5078. esac
  5079. fi
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5081. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5082. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5083. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5084. if test -n "$ac_tool_prefix"; then
  5085. for ac_prog in ar
  5086. do
  5087. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5088. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5090. $as_echo_n "checking for $ac_word... " >&6; }
  5091. if ${ac_cv_prog_AR+:} false; then :
  5092. $as_echo_n "(cached) " >&6
  5093. else
  5094. if test -n "$AR"; then
  5095. ac_cv_prog_AR="$AR" # Let the user override the test.
  5096. else
  5097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5098. for as_dir in $PATH
  5099. do
  5100. IFS=$as_save_IFS
  5101. test -z "$as_dir" && as_dir=.
  5102. for ac_exec_ext in '' $ac_executable_extensions; do
  5103. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5104. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5106. break 2
  5107. fi
  5108. done
  5109. done
  5110. IFS=$as_save_IFS
  5111. fi
  5112. fi
  5113. AR=$ac_cv_prog_AR
  5114. if test -n "$AR"; then
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5116. $as_echo "$AR" >&6; }
  5117. else
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5119. $as_echo "no" >&6; }
  5120. fi
  5121. test -n "$AR" && break
  5122. done
  5123. fi
  5124. if test -z "$AR"; then
  5125. ac_ct_AR=$AR
  5126. for ac_prog in ar
  5127. do
  5128. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5129. set dummy $ac_prog; ac_word=$2
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5131. $as_echo_n "checking for $ac_word... " >&6; }
  5132. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5133. $as_echo_n "(cached) " >&6
  5134. else
  5135. if test -n "$ac_ct_AR"; then
  5136. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5137. else
  5138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5139. for as_dir in $PATH
  5140. do
  5141. IFS=$as_save_IFS
  5142. test -z "$as_dir" && as_dir=.
  5143. for ac_exec_ext in '' $ac_executable_extensions; do
  5144. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5145. ac_cv_prog_ac_ct_AR="$ac_prog"
  5146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5147. break 2
  5148. fi
  5149. done
  5150. done
  5151. IFS=$as_save_IFS
  5152. fi
  5153. fi
  5154. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5155. if test -n "$ac_ct_AR"; then
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5157. $as_echo "$ac_ct_AR" >&6; }
  5158. else
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5160. $as_echo "no" >&6; }
  5161. fi
  5162. test -n "$ac_ct_AR" && break
  5163. done
  5164. if test "x$ac_ct_AR" = x; then
  5165. AR="false"
  5166. else
  5167. case $cross_compiling:$ac_tool_warned in
  5168. yes:)
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5170. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5171. ac_tool_warned=yes ;;
  5172. esac
  5173. AR=$ac_ct_AR
  5174. fi
  5175. fi
  5176. : ${AR=ar}
  5177. : ${AR_FLAGS=cru}
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5179. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5180. if ${lt_cv_ar_at_file+:} false; then :
  5181. $as_echo_n "(cached) " >&6
  5182. else
  5183. lt_cv_ar_at_file=no
  5184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5185. /* end confdefs.h. */
  5186. int
  5187. main ()
  5188. {
  5189. ;
  5190. return 0;
  5191. }
  5192. _ACEOF
  5193. if ac_fn_c_try_compile "$LINENO"; then :
  5194. echo conftest.$ac_objext > conftest.lst
  5195. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5196. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5197. (eval $lt_ar_try) 2>&5
  5198. ac_status=$?
  5199. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5200. test $ac_status = 0; }
  5201. if test "$ac_status" -eq 0; then
  5202. # Ensure the archiver fails upon bogus file names.
  5203. rm -f conftest.$ac_objext libconftest.a
  5204. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5205. (eval $lt_ar_try) 2>&5
  5206. ac_status=$?
  5207. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5208. test $ac_status = 0; }
  5209. if test "$ac_status" -ne 0; then
  5210. lt_cv_ar_at_file=@
  5211. fi
  5212. fi
  5213. rm -f conftest.* libconftest.a
  5214. fi
  5215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5216. fi
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5218. $as_echo "$lt_cv_ar_at_file" >&6; }
  5219. if test "x$lt_cv_ar_at_file" = xno; then
  5220. archiver_list_spec=
  5221. else
  5222. archiver_list_spec=$lt_cv_ar_at_file
  5223. fi
  5224. if test -n "$ac_tool_prefix"; then
  5225. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5226. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5228. $as_echo_n "checking for $ac_word... " >&6; }
  5229. if ${ac_cv_prog_STRIP+:} false; then :
  5230. $as_echo_n "(cached) " >&6
  5231. else
  5232. if test -n "$STRIP"; then
  5233. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5234. else
  5235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5236. for as_dir in $PATH
  5237. do
  5238. IFS=$as_save_IFS
  5239. test -z "$as_dir" && as_dir=.
  5240. for ac_exec_ext in '' $ac_executable_extensions; do
  5241. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5242. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5244. break 2
  5245. fi
  5246. done
  5247. done
  5248. IFS=$as_save_IFS
  5249. fi
  5250. fi
  5251. STRIP=$ac_cv_prog_STRIP
  5252. if test -n "$STRIP"; then
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5254. $as_echo "$STRIP" >&6; }
  5255. else
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5257. $as_echo "no" >&6; }
  5258. fi
  5259. fi
  5260. if test -z "$ac_cv_prog_STRIP"; then
  5261. ac_ct_STRIP=$STRIP
  5262. # Extract the first word of "strip", so it can be a program name with args.
  5263. set dummy strip; ac_word=$2
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5265. $as_echo_n "checking for $ac_word... " >&6; }
  5266. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5267. $as_echo_n "(cached) " >&6
  5268. else
  5269. if test -n "$ac_ct_STRIP"; then
  5270. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5271. else
  5272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5273. for as_dir in $PATH
  5274. do
  5275. IFS=$as_save_IFS
  5276. test -z "$as_dir" && as_dir=.
  5277. for ac_exec_ext in '' $ac_executable_extensions; do
  5278. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5279. ac_cv_prog_ac_ct_STRIP="strip"
  5280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5281. break 2
  5282. fi
  5283. done
  5284. done
  5285. IFS=$as_save_IFS
  5286. fi
  5287. fi
  5288. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5289. if test -n "$ac_ct_STRIP"; then
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5291. $as_echo "$ac_ct_STRIP" >&6; }
  5292. else
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5294. $as_echo "no" >&6; }
  5295. fi
  5296. if test "x$ac_ct_STRIP" = x; then
  5297. STRIP=":"
  5298. else
  5299. case $cross_compiling:$ac_tool_warned in
  5300. yes:)
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5302. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5303. ac_tool_warned=yes ;;
  5304. esac
  5305. STRIP=$ac_ct_STRIP
  5306. fi
  5307. else
  5308. STRIP="$ac_cv_prog_STRIP"
  5309. fi
  5310. test -z "$STRIP" && STRIP=:
  5311. if test -n "$ac_tool_prefix"; then
  5312. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5313. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5315. $as_echo_n "checking for $ac_word... " >&6; }
  5316. if ${ac_cv_prog_RANLIB+:} false; then :
  5317. $as_echo_n "(cached) " >&6
  5318. else
  5319. if test -n "$RANLIB"; then
  5320. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5321. else
  5322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5323. for as_dir in $PATH
  5324. do
  5325. IFS=$as_save_IFS
  5326. test -z "$as_dir" && as_dir=.
  5327. for ac_exec_ext in '' $ac_executable_extensions; do
  5328. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5329. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5331. break 2
  5332. fi
  5333. done
  5334. done
  5335. IFS=$as_save_IFS
  5336. fi
  5337. fi
  5338. RANLIB=$ac_cv_prog_RANLIB
  5339. if test -n "$RANLIB"; then
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5341. $as_echo "$RANLIB" >&6; }
  5342. else
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5344. $as_echo "no" >&6; }
  5345. fi
  5346. fi
  5347. if test -z "$ac_cv_prog_RANLIB"; then
  5348. ac_ct_RANLIB=$RANLIB
  5349. # Extract the first word of "ranlib", so it can be a program name with args.
  5350. set dummy ranlib; ac_word=$2
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5352. $as_echo_n "checking for $ac_word... " >&6; }
  5353. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5354. $as_echo_n "(cached) " >&6
  5355. else
  5356. if test -n "$ac_ct_RANLIB"; then
  5357. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5358. else
  5359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5360. for as_dir in $PATH
  5361. do
  5362. IFS=$as_save_IFS
  5363. test -z "$as_dir" && as_dir=.
  5364. for ac_exec_ext in '' $ac_executable_extensions; do
  5365. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5366. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5368. break 2
  5369. fi
  5370. done
  5371. done
  5372. IFS=$as_save_IFS
  5373. fi
  5374. fi
  5375. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5376. if test -n "$ac_ct_RANLIB"; then
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5378. $as_echo "$ac_ct_RANLIB" >&6; }
  5379. else
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5381. $as_echo "no" >&6; }
  5382. fi
  5383. if test "x$ac_ct_RANLIB" = x; then
  5384. RANLIB=":"
  5385. else
  5386. case $cross_compiling:$ac_tool_warned in
  5387. yes:)
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5389. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5390. ac_tool_warned=yes ;;
  5391. esac
  5392. RANLIB=$ac_ct_RANLIB
  5393. fi
  5394. else
  5395. RANLIB="$ac_cv_prog_RANLIB"
  5396. fi
  5397. test -z "$RANLIB" && RANLIB=:
  5398. # Determine commands to create old-style static archives.
  5399. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5400. old_postinstall_cmds='chmod 644 $oldlib'
  5401. old_postuninstall_cmds=
  5402. if test -n "$RANLIB"; then
  5403. case $host_os in
  5404. openbsd*)
  5405. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5406. ;;
  5407. *)
  5408. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5409. ;;
  5410. esac
  5411. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5412. fi
  5413. case $host_os in
  5414. darwin*)
  5415. lock_old_archive_extraction=yes ;;
  5416. *)
  5417. lock_old_archive_extraction=no ;;
  5418. esac
  5419. # If no C compiler was specified, use CC.
  5420. LTCC=${LTCC-"$CC"}
  5421. # If no C compiler flags were specified, use CFLAGS.
  5422. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5423. # Allow CC to be a program name with arguments.
  5424. compiler=$CC
  5425. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5427. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5428. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5429. $as_echo_n "(cached) " >&6
  5430. else
  5431. # These are sane defaults that work on at least a few old systems.
  5432. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5433. # Character class describing NM global symbol codes.
  5434. symcode='[BCDEGRST]'
  5435. # Regexp to match symbols that can be accessed directly from C.
  5436. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5437. # Define system-specific variables.
  5438. case $host_os in
  5439. aix*)
  5440. symcode='[BCDT]'
  5441. ;;
  5442. cygwin* | mingw* | pw32* | cegcc*)
  5443. symcode='[ABCDGISTW]'
  5444. ;;
  5445. hpux*)
  5446. if test "$host_cpu" = ia64; then
  5447. symcode='[ABCDEGRST]'
  5448. fi
  5449. ;;
  5450. irix* | nonstopux*)
  5451. symcode='[BCDEGRST]'
  5452. ;;
  5453. osf*)
  5454. symcode='[BCDEGQRST]'
  5455. ;;
  5456. solaris*)
  5457. symcode='[BDRT]'
  5458. ;;
  5459. sco3.2v5*)
  5460. symcode='[DT]'
  5461. ;;
  5462. sysv4.2uw2*)
  5463. symcode='[DT]'
  5464. ;;
  5465. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5466. symcode='[ABDT]'
  5467. ;;
  5468. sysv4)
  5469. symcode='[DFNSTU]'
  5470. ;;
  5471. esac
  5472. # If we're using GNU nm, then use its standard symbol codes.
  5473. case `$NM -V 2>&1` in
  5474. *GNU* | *'with BFD'*)
  5475. symcode='[ABCDGIRSTW]' ;;
  5476. esac
  5477. # Transform an extracted symbol line into a proper C declaration.
  5478. # Some systems (esp. on ia64) link data and code symbols differently,
  5479. # so use this general approach.
  5480. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5481. # Transform an extracted symbol line into symbol name and symbol address
  5482. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5483. 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'"
  5484. # Handle CRLF in mingw tool chain
  5485. opt_cr=
  5486. case $build_os in
  5487. mingw*)
  5488. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5489. ;;
  5490. esac
  5491. # Try without a prefix underscore, then with it.
  5492. for ac_symprfx in "" "_"; do
  5493. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5494. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5495. # Write the raw and C identifiers.
  5496. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5497. # Fake it for dumpbin and say T for any non-static function
  5498. # and D for any global variable.
  5499. # Also find C++ and __fastcall symbols from MSVC++,
  5500. # which start with @ or ?.
  5501. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5502. " {last_section=section; section=\$ 3};"\
  5503. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5504. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5505. " \$ 0!~/External *\|/{next};"\
  5506. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5507. " {if(hide[section]) next};"\
  5508. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5509. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5510. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5511. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5512. " ' prfx=^$ac_symprfx"
  5513. else
  5514. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5515. fi
  5516. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5517. # Check to see that the pipe works correctly.
  5518. pipe_works=no
  5519. rm -f conftest*
  5520. cat > conftest.$ac_ext <<_LT_EOF
  5521. #ifdef __cplusplus
  5522. extern "C" {
  5523. #endif
  5524. char nm_test_var;
  5525. void nm_test_func(void);
  5526. void nm_test_func(void){}
  5527. #ifdef __cplusplus
  5528. }
  5529. #endif
  5530. int main(){nm_test_var='a';nm_test_func();return(0);}
  5531. _LT_EOF
  5532. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5533. (eval $ac_compile) 2>&5
  5534. ac_status=$?
  5535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5536. test $ac_status = 0; }; then
  5537. # Now try to grab the symbols.
  5538. nlist=conftest.nm
  5539. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5540. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5541. ac_status=$?
  5542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5543. test $ac_status = 0; } && test -s "$nlist"; then
  5544. # Try sorting and uniquifying the output.
  5545. if sort "$nlist" | uniq > "$nlist"T; then
  5546. mv -f "$nlist"T "$nlist"
  5547. else
  5548. rm -f "$nlist"T
  5549. fi
  5550. # Make sure that we snagged all the symbols we need.
  5551. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5552. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5553. cat <<_LT_EOF > conftest.$ac_ext
  5554. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5555. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5556. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5557. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5558. # define LT_DLSYM_CONST
  5559. #elif defined(__osf__)
  5560. /* This system does not cope well with relocations in const data. */
  5561. # define LT_DLSYM_CONST
  5562. #else
  5563. # define LT_DLSYM_CONST const
  5564. #endif
  5565. #ifdef __cplusplus
  5566. extern "C" {
  5567. #endif
  5568. _LT_EOF
  5569. # Now generate the symbol file.
  5570. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5571. cat <<_LT_EOF >> conftest.$ac_ext
  5572. /* The mapping between symbol names and symbols. */
  5573. LT_DLSYM_CONST struct {
  5574. const char *name;
  5575. void *address;
  5576. }
  5577. lt__PROGRAM__LTX_preloaded_symbols[] =
  5578. {
  5579. { "@PROGRAM@", (void *) 0 },
  5580. _LT_EOF
  5581. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5582. cat <<\_LT_EOF >> conftest.$ac_ext
  5583. {0, (void *) 0}
  5584. };
  5585. /* This works around a problem in FreeBSD linker */
  5586. #ifdef FREEBSD_WORKAROUND
  5587. static const void *lt_preloaded_setup() {
  5588. return lt__PROGRAM__LTX_preloaded_symbols;
  5589. }
  5590. #endif
  5591. #ifdef __cplusplus
  5592. }
  5593. #endif
  5594. _LT_EOF
  5595. # Now try linking the two files.
  5596. mv conftest.$ac_objext conftstm.$ac_objext
  5597. lt_globsym_save_LIBS=$LIBS
  5598. lt_globsym_save_CFLAGS=$CFLAGS
  5599. LIBS="conftstm.$ac_objext"
  5600. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5601. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5602. (eval $ac_link) 2>&5
  5603. ac_status=$?
  5604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5605. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5606. pipe_works=yes
  5607. fi
  5608. LIBS=$lt_globsym_save_LIBS
  5609. CFLAGS=$lt_globsym_save_CFLAGS
  5610. else
  5611. echo "cannot find nm_test_func in $nlist" >&5
  5612. fi
  5613. else
  5614. echo "cannot find nm_test_var in $nlist" >&5
  5615. fi
  5616. else
  5617. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5618. fi
  5619. else
  5620. echo "$progname: failed program was:" >&5
  5621. cat conftest.$ac_ext >&5
  5622. fi
  5623. rm -rf conftest* conftst*
  5624. # Do not use the global_symbol_pipe unless it works.
  5625. if test "$pipe_works" = yes; then
  5626. break
  5627. else
  5628. lt_cv_sys_global_symbol_pipe=
  5629. fi
  5630. done
  5631. fi
  5632. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5633. lt_cv_sys_global_symbol_to_cdecl=
  5634. fi
  5635. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5637. $as_echo "failed" >&6; }
  5638. else
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5640. $as_echo "ok" >&6; }
  5641. fi
  5642. # Response file support.
  5643. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5644. nm_file_list_spec='@'
  5645. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5646. nm_file_list_spec='@'
  5647. fi
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5649. $as_echo_n "checking for sysroot... " >&6; }
  5650. # Check whether --with-sysroot was given.
  5651. if test "${with_sysroot+set}" = set; then :
  5652. withval=$with_sysroot;
  5653. else
  5654. with_sysroot=no
  5655. fi
  5656. lt_sysroot=
  5657. case ${with_sysroot} in #(
  5658. yes)
  5659. if test "$GCC" = yes; then
  5660. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5661. fi
  5662. ;; #(
  5663. /*)
  5664. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5665. ;; #(
  5666. no|'')
  5667. ;; #(
  5668. *)
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5670. $as_echo "${with_sysroot}" >&6; }
  5671. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5672. ;;
  5673. esac
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5675. $as_echo "${lt_sysroot:-no}" >&6; }
  5676. # Check whether --enable-libtool-lock was given.
  5677. if test "${enable_libtool_lock+set}" = set; then :
  5678. enableval=$enable_libtool_lock;
  5679. fi
  5680. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5681. # Some flags need to be propagated to the compiler or linker for good
  5682. # libtool support.
  5683. case $host in
  5684. ia64-*-hpux*)
  5685. # Find out which ABI we are using.
  5686. echo 'int i;' > conftest.$ac_ext
  5687. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5688. (eval $ac_compile) 2>&5
  5689. ac_status=$?
  5690. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5691. test $ac_status = 0; }; then
  5692. case `/usr/bin/file conftest.$ac_objext` in
  5693. *ELF-32*)
  5694. HPUX_IA64_MODE="32"
  5695. ;;
  5696. *ELF-64*)
  5697. HPUX_IA64_MODE="64"
  5698. ;;
  5699. esac
  5700. fi
  5701. rm -rf conftest*
  5702. ;;
  5703. *-*-irix6*)
  5704. # Find out which ABI we are using.
  5705. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5706. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5707. (eval $ac_compile) 2>&5
  5708. ac_status=$?
  5709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5710. test $ac_status = 0; }; then
  5711. if test "$lt_cv_prog_gnu_ld" = yes; then
  5712. case `/usr/bin/file conftest.$ac_objext` in
  5713. *32-bit*)
  5714. LD="${LD-ld} -melf32bsmip"
  5715. ;;
  5716. *N32*)
  5717. LD="${LD-ld} -melf32bmipn32"
  5718. ;;
  5719. *64-bit*)
  5720. LD="${LD-ld} -melf64bmip"
  5721. ;;
  5722. esac
  5723. else
  5724. case `/usr/bin/file conftest.$ac_objext` in
  5725. *32-bit*)
  5726. LD="${LD-ld} -32"
  5727. ;;
  5728. *N32*)
  5729. LD="${LD-ld} -n32"
  5730. ;;
  5731. *64-bit*)
  5732. LD="${LD-ld} -64"
  5733. ;;
  5734. esac
  5735. fi
  5736. fi
  5737. rm -rf conftest*
  5738. ;;
  5739. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5740. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5741. # Find out which ABI we are using.
  5742. echo 'int i;' > conftest.$ac_ext
  5743. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5744. (eval $ac_compile) 2>&5
  5745. ac_status=$?
  5746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5747. test $ac_status = 0; }; then
  5748. case `/usr/bin/file conftest.o` in
  5749. *32-bit*)
  5750. case $host in
  5751. x86_64-*kfreebsd*-gnu)
  5752. LD="${LD-ld} -m elf_i386_fbsd"
  5753. ;;
  5754. x86_64-*linux*)
  5755. LD="${LD-ld} -m elf_i386"
  5756. ;;
  5757. ppc64-*linux*|powerpc64-*linux*)
  5758. LD="${LD-ld} -m elf32ppclinux"
  5759. ;;
  5760. s390x-*linux*)
  5761. LD="${LD-ld} -m elf_s390"
  5762. ;;
  5763. sparc64-*linux*)
  5764. LD="${LD-ld} -m elf32_sparc"
  5765. ;;
  5766. esac
  5767. ;;
  5768. *64-bit*)
  5769. case $host in
  5770. x86_64-*kfreebsd*-gnu)
  5771. LD="${LD-ld} -m elf_x86_64_fbsd"
  5772. ;;
  5773. x86_64-*linux*)
  5774. LD="${LD-ld} -m elf_x86_64"
  5775. ;;
  5776. ppc*-*linux*|powerpc*-*linux*)
  5777. LD="${LD-ld} -m elf64ppc"
  5778. ;;
  5779. s390*-*linux*|s390*-*tpf*)
  5780. LD="${LD-ld} -m elf64_s390"
  5781. ;;
  5782. sparc*-*linux*)
  5783. LD="${LD-ld} -m elf64_sparc"
  5784. ;;
  5785. esac
  5786. ;;
  5787. esac
  5788. fi
  5789. rm -rf conftest*
  5790. ;;
  5791. *-*-sco3.2v5*)
  5792. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5793. SAVE_CFLAGS="$CFLAGS"
  5794. CFLAGS="$CFLAGS -belf"
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5796. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5797. if ${lt_cv_cc_needs_belf+:} false; then :
  5798. $as_echo_n "(cached) " >&6
  5799. else
  5800. ac_ext=c
  5801. ac_cpp='$CPP $CPPFLAGS'
  5802. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5803. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5804. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5806. /* end confdefs.h. */
  5807. int
  5808. main ()
  5809. {
  5810. ;
  5811. return 0;
  5812. }
  5813. _ACEOF
  5814. if ac_fn_c_try_link "$LINENO"; then :
  5815. lt_cv_cc_needs_belf=yes
  5816. else
  5817. lt_cv_cc_needs_belf=no
  5818. fi
  5819. rm -f core conftest.err conftest.$ac_objext \
  5820. conftest$ac_exeext conftest.$ac_ext
  5821. ac_ext=c
  5822. ac_cpp='$CPP $CPPFLAGS'
  5823. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5824. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5825. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5826. fi
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5828. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5829. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5830. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5831. CFLAGS="$SAVE_CFLAGS"
  5832. fi
  5833. ;;
  5834. *-*solaris*)
  5835. # Find out which ABI we are using.
  5836. echo 'int i;' > conftest.$ac_ext
  5837. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5838. (eval $ac_compile) 2>&5
  5839. ac_status=$?
  5840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5841. test $ac_status = 0; }; then
  5842. case `/usr/bin/file conftest.o` in
  5843. *64-bit*)
  5844. case $lt_cv_prog_gnu_ld in
  5845. yes*)
  5846. case $host in
  5847. i?86-*-solaris*)
  5848. LD="${LD-ld} -m elf_x86_64"
  5849. ;;
  5850. sparc*-*-solaris*)
  5851. LD="${LD-ld} -m elf64_sparc"
  5852. ;;
  5853. esac
  5854. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5855. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5856. LD="${LD-ld}_sol2"
  5857. fi
  5858. ;;
  5859. *)
  5860. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5861. LD="${LD-ld} -64"
  5862. fi
  5863. ;;
  5864. esac
  5865. ;;
  5866. esac
  5867. fi
  5868. rm -rf conftest*
  5869. ;;
  5870. esac
  5871. need_locks="$enable_libtool_lock"
  5872. if test -n "$ac_tool_prefix"; then
  5873. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5874. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5876. $as_echo_n "checking for $ac_word... " >&6; }
  5877. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5878. $as_echo_n "(cached) " >&6
  5879. else
  5880. if test -n "$MANIFEST_TOOL"; then
  5881. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5882. else
  5883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5884. for as_dir in $PATH
  5885. do
  5886. IFS=$as_save_IFS
  5887. test -z "$as_dir" && as_dir=.
  5888. for ac_exec_ext in '' $ac_executable_extensions; do
  5889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5890. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5892. break 2
  5893. fi
  5894. done
  5895. done
  5896. IFS=$as_save_IFS
  5897. fi
  5898. fi
  5899. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5900. if test -n "$MANIFEST_TOOL"; then
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5902. $as_echo "$MANIFEST_TOOL" >&6; }
  5903. else
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5905. $as_echo "no" >&6; }
  5906. fi
  5907. fi
  5908. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5909. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5910. # Extract the first word of "mt", so it can be a program name with args.
  5911. set dummy mt; ac_word=$2
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5913. $as_echo_n "checking for $ac_word... " >&6; }
  5914. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5915. $as_echo_n "(cached) " >&6
  5916. else
  5917. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5918. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5919. else
  5920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5921. for as_dir in $PATH
  5922. do
  5923. IFS=$as_save_IFS
  5924. test -z "$as_dir" && as_dir=.
  5925. for ac_exec_ext in '' $ac_executable_extensions; do
  5926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5927. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5929. break 2
  5930. fi
  5931. done
  5932. done
  5933. IFS=$as_save_IFS
  5934. fi
  5935. fi
  5936. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5937. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5939. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5940. else
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5942. $as_echo "no" >&6; }
  5943. fi
  5944. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5945. MANIFEST_TOOL=":"
  5946. else
  5947. case $cross_compiling:$ac_tool_warned in
  5948. yes:)
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5950. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5951. ac_tool_warned=yes ;;
  5952. esac
  5953. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5954. fi
  5955. else
  5956. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5957. fi
  5958. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5960. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5961. if ${lt_cv_path_mainfest_tool+:} false; then :
  5962. $as_echo_n "(cached) " >&6
  5963. else
  5964. lt_cv_path_mainfest_tool=no
  5965. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5966. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5967. cat conftest.err >&5
  5968. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5969. lt_cv_path_mainfest_tool=yes
  5970. fi
  5971. rm -f conftest*
  5972. fi
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5974. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5975. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5976. MANIFEST_TOOL=:
  5977. fi
  5978. case $host_os in
  5979. rhapsody* | darwin*)
  5980. if test -n "$ac_tool_prefix"; then
  5981. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5982. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5984. $as_echo_n "checking for $ac_word... " >&6; }
  5985. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5986. $as_echo_n "(cached) " >&6
  5987. else
  5988. if test -n "$DSYMUTIL"; then
  5989. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5990. else
  5991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5992. for as_dir in $PATH
  5993. do
  5994. IFS=$as_save_IFS
  5995. test -z "$as_dir" && as_dir=.
  5996. for ac_exec_ext in '' $ac_executable_extensions; do
  5997. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5998. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5999. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6000. break 2
  6001. fi
  6002. done
  6003. done
  6004. IFS=$as_save_IFS
  6005. fi
  6006. fi
  6007. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6008. if test -n "$DSYMUTIL"; then
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6010. $as_echo "$DSYMUTIL" >&6; }
  6011. else
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6013. $as_echo "no" >&6; }
  6014. fi
  6015. fi
  6016. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6017. ac_ct_DSYMUTIL=$DSYMUTIL
  6018. # Extract the first word of "dsymutil", so it can be a program name with args.
  6019. set dummy dsymutil; ac_word=$2
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6021. $as_echo_n "checking for $ac_word... " >&6; }
  6022. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6023. $as_echo_n "(cached) " >&6
  6024. else
  6025. if test -n "$ac_ct_DSYMUTIL"; then
  6026. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6027. else
  6028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6029. for as_dir in $PATH
  6030. do
  6031. IFS=$as_save_IFS
  6032. test -z "$as_dir" && as_dir=.
  6033. for ac_exec_ext in '' $ac_executable_extensions; do
  6034. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6035. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6037. break 2
  6038. fi
  6039. done
  6040. done
  6041. IFS=$as_save_IFS
  6042. fi
  6043. fi
  6044. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6045. if test -n "$ac_ct_DSYMUTIL"; then
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6047. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6048. else
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6050. $as_echo "no" >&6; }
  6051. fi
  6052. if test "x$ac_ct_DSYMUTIL" = x; then
  6053. DSYMUTIL=":"
  6054. else
  6055. case $cross_compiling:$ac_tool_warned in
  6056. yes:)
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6058. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6059. ac_tool_warned=yes ;;
  6060. esac
  6061. DSYMUTIL=$ac_ct_DSYMUTIL
  6062. fi
  6063. else
  6064. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6065. fi
  6066. if test -n "$ac_tool_prefix"; then
  6067. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6068. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6070. $as_echo_n "checking for $ac_word... " >&6; }
  6071. if ${ac_cv_prog_NMEDIT+:} false; then :
  6072. $as_echo_n "(cached) " >&6
  6073. else
  6074. if test -n "$NMEDIT"; then
  6075. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6076. else
  6077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6078. for as_dir in $PATH
  6079. do
  6080. IFS=$as_save_IFS
  6081. test -z "$as_dir" && as_dir=.
  6082. for ac_exec_ext in '' $ac_executable_extensions; do
  6083. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6084. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6086. break 2
  6087. fi
  6088. done
  6089. done
  6090. IFS=$as_save_IFS
  6091. fi
  6092. fi
  6093. NMEDIT=$ac_cv_prog_NMEDIT
  6094. if test -n "$NMEDIT"; then
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6096. $as_echo "$NMEDIT" >&6; }
  6097. else
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6099. $as_echo "no" >&6; }
  6100. fi
  6101. fi
  6102. if test -z "$ac_cv_prog_NMEDIT"; then
  6103. ac_ct_NMEDIT=$NMEDIT
  6104. # Extract the first word of "nmedit", so it can be a program name with args.
  6105. set dummy nmedit; ac_word=$2
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6107. $as_echo_n "checking for $ac_word... " >&6; }
  6108. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6109. $as_echo_n "(cached) " >&6
  6110. else
  6111. if test -n "$ac_ct_NMEDIT"; then
  6112. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6113. else
  6114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6115. for as_dir in $PATH
  6116. do
  6117. IFS=$as_save_IFS
  6118. test -z "$as_dir" && as_dir=.
  6119. for ac_exec_ext in '' $ac_executable_extensions; do
  6120. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6121. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6123. break 2
  6124. fi
  6125. done
  6126. done
  6127. IFS=$as_save_IFS
  6128. fi
  6129. fi
  6130. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6131. if test -n "$ac_ct_NMEDIT"; then
  6132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6133. $as_echo "$ac_ct_NMEDIT" >&6; }
  6134. else
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6136. $as_echo "no" >&6; }
  6137. fi
  6138. if test "x$ac_ct_NMEDIT" = x; then
  6139. NMEDIT=":"
  6140. else
  6141. case $cross_compiling:$ac_tool_warned in
  6142. yes:)
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6144. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6145. ac_tool_warned=yes ;;
  6146. esac
  6147. NMEDIT=$ac_ct_NMEDIT
  6148. fi
  6149. else
  6150. NMEDIT="$ac_cv_prog_NMEDIT"
  6151. fi
  6152. if test -n "$ac_tool_prefix"; then
  6153. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6154. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6156. $as_echo_n "checking for $ac_word... " >&6; }
  6157. if ${ac_cv_prog_LIPO+:} false; then :
  6158. $as_echo_n "(cached) " >&6
  6159. else
  6160. if test -n "$LIPO"; then
  6161. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6162. else
  6163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6164. for as_dir in $PATH
  6165. do
  6166. IFS=$as_save_IFS
  6167. test -z "$as_dir" && as_dir=.
  6168. for ac_exec_ext in '' $ac_executable_extensions; do
  6169. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6170. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6171. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6172. break 2
  6173. fi
  6174. done
  6175. done
  6176. IFS=$as_save_IFS
  6177. fi
  6178. fi
  6179. LIPO=$ac_cv_prog_LIPO
  6180. if test -n "$LIPO"; then
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6182. $as_echo "$LIPO" >&6; }
  6183. else
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6185. $as_echo "no" >&6; }
  6186. fi
  6187. fi
  6188. if test -z "$ac_cv_prog_LIPO"; then
  6189. ac_ct_LIPO=$LIPO
  6190. # Extract the first word of "lipo", so it can be a program name with args.
  6191. set dummy lipo; ac_word=$2
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6193. $as_echo_n "checking for $ac_word... " >&6; }
  6194. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6195. $as_echo_n "(cached) " >&6
  6196. else
  6197. if test -n "$ac_ct_LIPO"; then
  6198. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6199. else
  6200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6201. for as_dir in $PATH
  6202. do
  6203. IFS=$as_save_IFS
  6204. test -z "$as_dir" && as_dir=.
  6205. for ac_exec_ext in '' $ac_executable_extensions; do
  6206. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6207. ac_cv_prog_ac_ct_LIPO="lipo"
  6208. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6209. break 2
  6210. fi
  6211. done
  6212. done
  6213. IFS=$as_save_IFS
  6214. fi
  6215. fi
  6216. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6217. if test -n "$ac_ct_LIPO"; then
  6218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6219. $as_echo "$ac_ct_LIPO" >&6; }
  6220. else
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6222. $as_echo "no" >&6; }
  6223. fi
  6224. if test "x$ac_ct_LIPO" = x; then
  6225. LIPO=":"
  6226. else
  6227. case $cross_compiling:$ac_tool_warned in
  6228. yes:)
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6230. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6231. ac_tool_warned=yes ;;
  6232. esac
  6233. LIPO=$ac_ct_LIPO
  6234. fi
  6235. else
  6236. LIPO="$ac_cv_prog_LIPO"
  6237. fi
  6238. if test -n "$ac_tool_prefix"; then
  6239. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6240. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6242. $as_echo_n "checking for $ac_word... " >&6; }
  6243. if ${ac_cv_prog_OTOOL+:} false; then :
  6244. $as_echo_n "(cached) " >&6
  6245. else
  6246. if test -n "$OTOOL"; then
  6247. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6248. else
  6249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6250. for as_dir in $PATH
  6251. do
  6252. IFS=$as_save_IFS
  6253. test -z "$as_dir" && as_dir=.
  6254. for ac_exec_ext in '' $ac_executable_extensions; do
  6255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6256. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6258. break 2
  6259. fi
  6260. done
  6261. done
  6262. IFS=$as_save_IFS
  6263. fi
  6264. fi
  6265. OTOOL=$ac_cv_prog_OTOOL
  6266. if test -n "$OTOOL"; then
  6267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6268. $as_echo "$OTOOL" >&6; }
  6269. else
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6271. $as_echo "no" >&6; }
  6272. fi
  6273. fi
  6274. if test -z "$ac_cv_prog_OTOOL"; then
  6275. ac_ct_OTOOL=$OTOOL
  6276. # Extract the first word of "otool", so it can be a program name with args.
  6277. set dummy otool; ac_word=$2
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6279. $as_echo_n "checking for $ac_word... " >&6; }
  6280. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6281. $as_echo_n "(cached) " >&6
  6282. else
  6283. if test -n "$ac_ct_OTOOL"; then
  6284. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6285. else
  6286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6287. for as_dir in $PATH
  6288. do
  6289. IFS=$as_save_IFS
  6290. test -z "$as_dir" && as_dir=.
  6291. for ac_exec_ext in '' $ac_executable_extensions; do
  6292. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6293. ac_cv_prog_ac_ct_OTOOL="otool"
  6294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6295. break 2
  6296. fi
  6297. done
  6298. done
  6299. IFS=$as_save_IFS
  6300. fi
  6301. fi
  6302. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6303. if test -n "$ac_ct_OTOOL"; then
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6305. $as_echo "$ac_ct_OTOOL" >&6; }
  6306. else
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6308. $as_echo "no" >&6; }
  6309. fi
  6310. if test "x$ac_ct_OTOOL" = x; then
  6311. OTOOL=":"
  6312. else
  6313. case $cross_compiling:$ac_tool_warned in
  6314. yes:)
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6316. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6317. ac_tool_warned=yes ;;
  6318. esac
  6319. OTOOL=$ac_ct_OTOOL
  6320. fi
  6321. else
  6322. OTOOL="$ac_cv_prog_OTOOL"
  6323. fi
  6324. if test -n "$ac_tool_prefix"; then
  6325. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6326. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6328. $as_echo_n "checking for $ac_word... " >&6; }
  6329. if ${ac_cv_prog_OTOOL64+:} false; then :
  6330. $as_echo_n "(cached) " >&6
  6331. else
  6332. if test -n "$OTOOL64"; then
  6333. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6334. else
  6335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6336. for as_dir in $PATH
  6337. do
  6338. IFS=$as_save_IFS
  6339. test -z "$as_dir" && as_dir=.
  6340. for ac_exec_ext in '' $ac_executable_extensions; do
  6341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6342. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6344. break 2
  6345. fi
  6346. done
  6347. done
  6348. IFS=$as_save_IFS
  6349. fi
  6350. fi
  6351. OTOOL64=$ac_cv_prog_OTOOL64
  6352. if test -n "$OTOOL64"; then
  6353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6354. $as_echo "$OTOOL64" >&6; }
  6355. else
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6357. $as_echo "no" >&6; }
  6358. fi
  6359. fi
  6360. if test -z "$ac_cv_prog_OTOOL64"; then
  6361. ac_ct_OTOOL64=$OTOOL64
  6362. # Extract the first word of "otool64", so it can be a program name with args.
  6363. set dummy otool64; ac_word=$2
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6365. $as_echo_n "checking for $ac_word... " >&6; }
  6366. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6367. $as_echo_n "(cached) " >&6
  6368. else
  6369. if test -n "$ac_ct_OTOOL64"; then
  6370. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6371. else
  6372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6373. for as_dir in $PATH
  6374. do
  6375. IFS=$as_save_IFS
  6376. test -z "$as_dir" && as_dir=.
  6377. for ac_exec_ext in '' $ac_executable_extensions; do
  6378. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6379. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6380. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6381. break 2
  6382. fi
  6383. done
  6384. done
  6385. IFS=$as_save_IFS
  6386. fi
  6387. fi
  6388. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6389. if test -n "$ac_ct_OTOOL64"; then
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6391. $as_echo "$ac_ct_OTOOL64" >&6; }
  6392. else
  6393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6394. $as_echo "no" >&6; }
  6395. fi
  6396. if test "x$ac_ct_OTOOL64" = x; then
  6397. OTOOL64=":"
  6398. else
  6399. case $cross_compiling:$ac_tool_warned in
  6400. yes:)
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6402. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6403. ac_tool_warned=yes ;;
  6404. esac
  6405. OTOOL64=$ac_ct_OTOOL64
  6406. fi
  6407. else
  6408. OTOOL64="$ac_cv_prog_OTOOL64"
  6409. fi
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6411. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6412. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6413. $as_echo_n "(cached) " >&6
  6414. else
  6415. lt_cv_apple_cc_single_mod=no
  6416. if test -z "${LT_MULTI_MODULE}"; then
  6417. # By default we will add the -single_module flag. You can override
  6418. # by either setting the environment variable LT_MULTI_MODULE
  6419. # non-empty at configure time, or by adding -multi_module to the
  6420. # link flags.
  6421. rm -rf libconftest.dylib*
  6422. echo "int foo(void){return 1;}" > conftest.c
  6423. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6424. -dynamiclib -Wl,-single_module conftest.c" >&5
  6425. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6426. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6427. _lt_result=$?
  6428. # If there is a non-empty error log, and "single_module"
  6429. # appears in it, assume the flag caused a linker warning
  6430. if test -s conftest.err && $GREP single_module conftest.err; then
  6431. cat conftest.err >&5
  6432. # Otherwise, if the output was created with a 0 exit code from
  6433. # the compiler, it worked.
  6434. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6435. lt_cv_apple_cc_single_mod=yes
  6436. else
  6437. cat conftest.err >&5
  6438. fi
  6439. rm -rf libconftest.dylib*
  6440. rm -f conftest.*
  6441. fi
  6442. fi
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6444. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6446. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6447. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6448. $as_echo_n "(cached) " >&6
  6449. else
  6450. lt_cv_ld_exported_symbols_list=no
  6451. save_LDFLAGS=$LDFLAGS
  6452. echo "_main" > conftest.sym
  6453. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6455. /* end confdefs.h. */
  6456. int
  6457. main ()
  6458. {
  6459. ;
  6460. return 0;
  6461. }
  6462. _ACEOF
  6463. if ac_fn_c_try_link "$LINENO"; then :
  6464. lt_cv_ld_exported_symbols_list=yes
  6465. else
  6466. lt_cv_ld_exported_symbols_list=no
  6467. fi
  6468. rm -f core conftest.err conftest.$ac_objext \
  6469. conftest$ac_exeext conftest.$ac_ext
  6470. LDFLAGS="$save_LDFLAGS"
  6471. fi
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6473. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6475. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6476. if ${lt_cv_ld_force_load+:} false; then :
  6477. $as_echo_n "(cached) " >&6
  6478. else
  6479. lt_cv_ld_force_load=no
  6480. cat > conftest.c << _LT_EOF
  6481. int forced_loaded() { return 2;}
  6482. _LT_EOF
  6483. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6484. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6485. echo "$AR cru libconftest.a conftest.o" >&5
  6486. $AR cru libconftest.a conftest.o 2>&5
  6487. echo "$RANLIB libconftest.a" >&5
  6488. $RANLIB libconftest.a 2>&5
  6489. cat > conftest.c << _LT_EOF
  6490. int main() { return 0;}
  6491. _LT_EOF
  6492. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6493. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6494. _lt_result=$?
  6495. if test -s conftest.err && $GREP force_load conftest.err; then
  6496. cat conftest.err >&5
  6497. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6498. lt_cv_ld_force_load=yes
  6499. else
  6500. cat conftest.err >&5
  6501. fi
  6502. rm -f conftest.err libconftest.a conftest conftest.c
  6503. rm -rf conftest.dSYM
  6504. fi
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6506. $as_echo "$lt_cv_ld_force_load" >&6; }
  6507. case $host_os in
  6508. rhapsody* | darwin1.[012])
  6509. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6510. darwin1.*)
  6511. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6512. darwin*) # darwin 5.x on
  6513. # if running on 10.5 or later, the deployment target defaults
  6514. # to the OS version, if on x86, and 10.4, the deployment
  6515. # target defaults to 10.4. Don't you love it?
  6516. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6517. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6518. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6519. 10.[012]*)
  6520. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6521. 10.*)
  6522. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6523. esac
  6524. ;;
  6525. esac
  6526. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6527. _lt_dar_single_mod='$single_module'
  6528. fi
  6529. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6530. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6531. else
  6532. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6533. fi
  6534. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6535. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6536. else
  6537. _lt_dsymutil=
  6538. fi
  6539. ;;
  6540. esac
  6541. for ac_header in dlfcn.h
  6542. do :
  6543. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6544. "
  6545. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6546. cat >>confdefs.h <<_ACEOF
  6547. #define HAVE_DLFCN_H 1
  6548. _ACEOF
  6549. fi
  6550. done
  6551. # Set options
  6552. enable_dlopen=no
  6553. enable_win32_dll=no
  6554. # Check whether --enable-shared was given.
  6555. if test "${enable_shared+set}" = set; then :
  6556. enableval=$enable_shared; p=${PACKAGE-default}
  6557. case $enableval in
  6558. yes) enable_shared=yes ;;
  6559. no) enable_shared=no ;;
  6560. *)
  6561. enable_shared=no
  6562. # Look at the argument we got. We use all the common list separators.
  6563. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6564. for pkg in $enableval; do
  6565. IFS="$lt_save_ifs"
  6566. if test "X$pkg" = "X$p"; then
  6567. enable_shared=yes
  6568. fi
  6569. done
  6570. IFS="$lt_save_ifs"
  6571. ;;
  6572. esac
  6573. else
  6574. enable_shared=yes
  6575. fi
  6576. # Check whether --enable-static was given.
  6577. if test "${enable_static+set}" = set; then :
  6578. enableval=$enable_static; p=${PACKAGE-default}
  6579. case $enableval in
  6580. yes) enable_static=yes ;;
  6581. no) enable_static=no ;;
  6582. *)
  6583. enable_static=no
  6584. # Look at the argument we got. We use all the common list separators.
  6585. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6586. for pkg in $enableval; do
  6587. IFS="$lt_save_ifs"
  6588. if test "X$pkg" = "X$p"; then
  6589. enable_static=yes
  6590. fi
  6591. done
  6592. IFS="$lt_save_ifs"
  6593. ;;
  6594. esac
  6595. else
  6596. enable_static=yes
  6597. fi
  6598. # Check whether --with-pic was given.
  6599. if test "${with_pic+set}" = set; then :
  6600. withval=$with_pic; lt_p=${PACKAGE-default}
  6601. case $withval in
  6602. yes|no) pic_mode=$withval ;;
  6603. *)
  6604. pic_mode=default
  6605. # Look at the argument we got. We use all the common list separators.
  6606. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6607. for lt_pkg in $withval; do
  6608. IFS="$lt_save_ifs"
  6609. if test "X$lt_pkg" = "X$lt_p"; then
  6610. pic_mode=yes
  6611. fi
  6612. done
  6613. IFS="$lt_save_ifs"
  6614. ;;
  6615. esac
  6616. else
  6617. pic_mode=default
  6618. fi
  6619. test -z "$pic_mode" && pic_mode=default
  6620. # Check whether --enable-fast-install was given.
  6621. if test "${enable_fast_install+set}" = set; then :
  6622. enableval=$enable_fast_install; p=${PACKAGE-default}
  6623. case $enableval in
  6624. yes) enable_fast_install=yes ;;
  6625. no) enable_fast_install=no ;;
  6626. *)
  6627. enable_fast_install=no
  6628. # Look at the argument we got. We use all the common list separators.
  6629. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6630. for pkg in $enableval; do
  6631. IFS="$lt_save_ifs"
  6632. if test "X$pkg" = "X$p"; then
  6633. enable_fast_install=yes
  6634. fi
  6635. done
  6636. IFS="$lt_save_ifs"
  6637. ;;
  6638. esac
  6639. else
  6640. enable_fast_install=yes
  6641. fi
  6642. # This can be used to rebuild libtool when needed
  6643. LIBTOOL_DEPS="$ltmain"
  6644. # Always use our own libtool.
  6645. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6646. test -z "$LN_S" && LN_S="ln -s"
  6647. if test -n "${ZSH_VERSION+set}" ; then
  6648. setopt NO_GLOB_SUBST
  6649. fi
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6651. $as_echo_n "checking for objdir... " >&6; }
  6652. if ${lt_cv_objdir+:} false; then :
  6653. $as_echo_n "(cached) " >&6
  6654. else
  6655. rm -f .libs 2>/dev/null
  6656. mkdir .libs 2>/dev/null
  6657. if test -d .libs; then
  6658. lt_cv_objdir=.libs
  6659. else
  6660. # MS-DOS does not allow filenames that begin with a dot.
  6661. lt_cv_objdir=_libs
  6662. fi
  6663. rmdir .libs 2>/dev/null
  6664. fi
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6666. $as_echo "$lt_cv_objdir" >&6; }
  6667. objdir=$lt_cv_objdir
  6668. cat >>confdefs.h <<_ACEOF
  6669. #define LT_OBJDIR "$lt_cv_objdir/"
  6670. _ACEOF
  6671. case $host_os in
  6672. aix3*)
  6673. # AIX sometimes has problems with the GCC collect2 program. For some
  6674. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6675. # vanish in a puff of smoke.
  6676. if test "X${COLLECT_NAMES+set}" != Xset; then
  6677. COLLECT_NAMES=
  6678. export COLLECT_NAMES
  6679. fi
  6680. ;;
  6681. esac
  6682. # Global variables:
  6683. ofile=libtool
  6684. can_build_shared=yes
  6685. # All known linkers require a `.a' archive for static linking (except MSVC,
  6686. # which needs '.lib').
  6687. libext=a
  6688. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6689. old_CC="$CC"
  6690. old_CFLAGS="$CFLAGS"
  6691. # Set sane defaults for various variables
  6692. test -z "$CC" && CC=cc
  6693. test -z "$LTCC" && LTCC=$CC
  6694. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6695. test -z "$LD" && LD=ld
  6696. test -z "$ac_objext" && ac_objext=o
  6697. for cc_temp in $compiler""; do
  6698. case $cc_temp in
  6699. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6700. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6701. \-*) ;;
  6702. *) break;;
  6703. esac
  6704. done
  6705. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6706. # Only perform the check for file, if the check method requires it
  6707. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6708. case $deplibs_check_method in
  6709. file_magic*)
  6710. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6712. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6713. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6714. $as_echo_n "(cached) " >&6
  6715. else
  6716. case $MAGIC_CMD in
  6717. [\\/*] | ?:[\\/]*)
  6718. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6719. ;;
  6720. *)
  6721. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6722. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6723. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6724. for ac_dir in $ac_dummy; do
  6725. IFS="$lt_save_ifs"
  6726. test -z "$ac_dir" && ac_dir=.
  6727. if test -f $ac_dir/${ac_tool_prefix}file; then
  6728. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6729. if test -n "$file_magic_test_file"; then
  6730. case $deplibs_check_method in
  6731. "file_magic "*)
  6732. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6733. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6734. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6735. $EGREP "$file_magic_regex" > /dev/null; then
  6736. :
  6737. else
  6738. cat <<_LT_EOF 1>&2
  6739. *** Warning: the command libtool uses to detect shared libraries,
  6740. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6741. *** The result is that libtool may fail to recognize shared libraries
  6742. *** as such. This will affect the creation of libtool libraries that
  6743. *** depend on shared libraries, but programs linked with such libtool
  6744. *** libraries will work regardless of this problem. Nevertheless, you
  6745. *** may want to report the problem to your system manager and/or to
  6746. *** [email protected]
  6747. _LT_EOF
  6748. fi ;;
  6749. esac
  6750. fi
  6751. break
  6752. fi
  6753. done
  6754. IFS="$lt_save_ifs"
  6755. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6756. ;;
  6757. esac
  6758. fi
  6759. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6760. if test -n "$MAGIC_CMD"; then
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6762. $as_echo "$MAGIC_CMD" >&6; }
  6763. else
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6765. $as_echo "no" >&6; }
  6766. fi
  6767. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6768. if test -n "$ac_tool_prefix"; then
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6770. $as_echo_n "checking for file... " >&6; }
  6771. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6772. $as_echo_n "(cached) " >&6
  6773. else
  6774. case $MAGIC_CMD in
  6775. [\\/*] | ?:[\\/]*)
  6776. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6777. ;;
  6778. *)
  6779. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6780. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6781. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6782. for ac_dir in $ac_dummy; do
  6783. IFS="$lt_save_ifs"
  6784. test -z "$ac_dir" && ac_dir=.
  6785. if test -f $ac_dir/file; then
  6786. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6787. if test -n "$file_magic_test_file"; then
  6788. case $deplibs_check_method in
  6789. "file_magic "*)
  6790. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6791. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6792. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6793. $EGREP "$file_magic_regex" > /dev/null; then
  6794. :
  6795. else
  6796. cat <<_LT_EOF 1>&2
  6797. *** Warning: the command libtool uses to detect shared libraries,
  6798. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6799. *** The result is that libtool may fail to recognize shared libraries
  6800. *** as such. This will affect the creation of libtool libraries that
  6801. *** depend on shared libraries, but programs linked with such libtool
  6802. *** libraries will work regardless of this problem. Nevertheless, you
  6803. *** may want to report the problem to your system manager and/or to
  6804. *** [email protected]
  6805. _LT_EOF
  6806. fi ;;
  6807. esac
  6808. fi
  6809. break
  6810. fi
  6811. done
  6812. IFS="$lt_save_ifs"
  6813. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6814. ;;
  6815. esac
  6816. fi
  6817. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6818. if test -n "$MAGIC_CMD"; then
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6820. $as_echo "$MAGIC_CMD" >&6; }
  6821. else
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6823. $as_echo "no" >&6; }
  6824. fi
  6825. else
  6826. MAGIC_CMD=:
  6827. fi
  6828. fi
  6829. fi
  6830. ;;
  6831. esac
  6832. # Use C for the default configuration in the libtool script
  6833. lt_save_CC="$CC"
  6834. ac_ext=c
  6835. ac_cpp='$CPP $CPPFLAGS'
  6836. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6837. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6838. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6839. # Source file extension for C test sources.
  6840. ac_ext=c
  6841. # Object file extension for compiled C test sources.
  6842. objext=o
  6843. objext=$objext
  6844. # Code to be used in simple compile tests
  6845. lt_simple_compile_test_code="int some_variable = 0;"
  6846. # Code to be used in simple link tests
  6847. lt_simple_link_test_code='int main(){return(0);}'
  6848. # If no C compiler was specified, use CC.
  6849. LTCC=${LTCC-"$CC"}
  6850. # If no C compiler flags were specified, use CFLAGS.
  6851. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6852. # Allow CC to be a program name with arguments.
  6853. compiler=$CC
  6854. # Save the default compiler, since it gets overwritten when the other
  6855. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6856. compiler_DEFAULT=$CC
  6857. # save warnings/boilerplate of simple test code
  6858. ac_outfile=conftest.$ac_objext
  6859. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6860. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6861. _lt_compiler_boilerplate=`cat conftest.err`
  6862. $RM conftest*
  6863. ac_outfile=conftest.$ac_objext
  6864. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6865. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6866. _lt_linker_boilerplate=`cat conftest.err`
  6867. $RM -r conftest*
  6868. ## CAVEAT EMPTOR:
  6869. ## There is no encapsulation within the following macros, do not change
  6870. ## the running order or otherwise move them around unless you know exactly
  6871. ## what you are doing...
  6872. if test -n "$compiler"; then
  6873. lt_prog_compiler_no_builtin_flag=
  6874. if test "$GCC" = yes; then
  6875. case $cc_basename in
  6876. nvcc*)
  6877. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6878. *)
  6879. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6880. esac
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6882. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6883. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6884. $as_echo_n "(cached) " >&6
  6885. else
  6886. lt_cv_prog_compiler_rtti_exceptions=no
  6887. ac_outfile=conftest.$ac_objext
  6888. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6889. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6890. # Insert the option either (1) after the last *FLAGS variable, or
  6891. # (2) before a word containing "conftest.", or (3) at the end.
  6892. # Note that $ac_compile itself does not contain backslashes and begins
  6893. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6894. # The option is referenced via a variable to avoid confusing sed.
  6895. lt_compile=`echo "$ac_compile" | $SED \
  6896. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6897. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6898. -e 's:$: $lt_compiler_flag:'`
  6899. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6900. (eval "$lt_compile" 2>conftest.err)
  6901. ac_status=$?
  6902. cat conftest.err >&5
  6903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6904. if (exit $ac_status) && test -s "$ac_outfile"; then
  6905. # The compiler can only warn and ignore the option if not recognized
  6906. # So say no if there are warnings other than the usual output.
  6907. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6908. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6909. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6910. lt_cv_prog_compiler_rtti_exceptions=yes
  6911. fi
  6912. fi
  6913. $RM conftest*
  6914. fi
  6915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6916. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6917. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6918. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6919. else
  6920. :
  6921. fi
  6922. fi
  6923. lt_prog_compiler_wl=
  6924. lt_prog_compiler_pic=
  6925. lt_prog_compiler_static=
  6926. if test "$GCC" = yes; then
  6927. lt_prog_compiler_wl='-Wl,'
  6928. lt_prog_compiler_static='-static'
  6929. case $host_os in
  6930. aix*)
  6931. # All AIX code is PIC.
  6932. if test "$host_cpu" = ia64; then
  6933. # AIX 5 now supports IA64 processor
  6934. lt_prog_compiler_static='-Bstatic'
  6935. fi
  6936. ;;
  6937. amigaos*)
  6938. case $host_cpu in
  6939. powerpc)
  6940. # see comment about AmigaOS4 .so support
  6941. lt_prog_compiler_pic='-fPIC'
  6942. ;;
  6943. m68k)
  6944. # FIXME: we need at least 68020 code to build shared libraries, but
  6945. # adding the `-m68020' flag to GCC prevents building anything better,
  6946. # like `-m68040'.
  6947. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6948. ;;
  6949. esac
  6950. ;;
  6951. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6952. # PIC is the default for these OSes.
  6953. ;;
  6954. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6955. # This hack is so that the source file can tell whether it is being
  6956. # built for inclusion in a dll (and should export symbols for example).
  6957. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6958. # (--disable-auto-import) libraries
  6959. lt_prog_compiler_pic='-DDLL_EXPORT'
  6960. ;;
  6961. darwin* | rhapsody*)
  6962. # PIC is the default on this platform
  6963. # Common symbols not allowed in MH_DYLIB files
  6964. lt_prog_compiler_pic='-fno-common'
  6965. ;;
  6966. haiku*)
  6967. # PIC is the default for Haiku.
  6968. # The "-static" flag exists, but is broken.
  6969. lt_prog_compiler_static=
  6970. ;;
  6971. hpux*)
  6972. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6973. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6974. # sets the default TLS model and affects inlining.
  6975. case $host_cpu in
  6976. hppa*64*)
  6977. # +Z the default
  6978. ;;
  6979. *)
  6980. lt_prog_compiler_pic='-fPIC'
  6981. ;;
  6982. esac
  6983. ;;
  6984. interix[3-9]*)
  6985. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6986. # Instead, we relocate shared libraries at runtime.
  6987. ;;
  6988. msdosdjgpp*)
  6989. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6990. # on systems that don't support them.
  6991. lt_prog_compiler_can_build_shared=no
  6992. enable_shared=no
  6993. ;;
  6994. *nto* | *qnx*)
  6995. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6996. # it will coredump.
  6997. lt_prog_compiler_pic='-fPIC -shared'
  6998. ;;
  6999. sysv4*MP*)
  7000. if test -d /usr/nec; then
  7001. lt_prog_compiler_pic=-Kconform_pic
  7002. fi
  7003. ;;
  7004. *)
  7005. lt_prog_compiler_pic='-fPIC'
  7006. ;;
  7007. esac
  7008. case $cc_basename in
  7009. nvcc*) # Cuda Compiler Driver 2.2
  7010. lt_prog_compiler_wl='-Xlinker '
  7011. if test -n "$lt_prog_compiler_pic"; then
  7012. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7013. fi
  7014. ;;
  7015. esac
  7016. else
  7017. # PORTME Check for flag to pass linker flags through the system compiler.
  7018. case $host_os in
  7019. aix*)
  7020. lt_prog_compiler_wl='-Wl,'
  7021. if test "$host_cpu" = ia64; then
  7022. # AIX 5 now supports IA64 processor
  7023. lt_prog_compiler_static='-Bstatic'
  7024. else
  7025. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7026. fi
  7027. ;;
  7028. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7029. # This hack is so that the source file can tell whether it is being
  7030. # built for inclusion in a dll (and should export symbols for example).
  7031. lt_prog_compiler_pic='-DDLL_EXPORT'
  7032. ;;
  7033. hpux9* | hpux10* | hpux11*)
  7034. lt_prog_compiler_wl='-Wl,'
  7035. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7036. # not for PA HP-UX.
  7037. case $host_cpu in
  7038. hppa*64*|ia64*)
  7039. # +Z the default
  7040. ;;
  7041. *)
  7042. lt_prog_compiler_pic='+Z'
  7043. ;;
  7044. esac
  7045. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7046. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7047. ;;
  7048. irix5* | irix6* | nonstopux*)
  7049. lt_prog_compiler_wl='-Wl,'
  7050. # PIC (with -KPIC) is the default.
  7051. lt_prog_compiler_static='-non_shared'
  7052. ;;
  7053. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7054. case $cc_basename in
  7055. # old Intel for x86_64 which still supported -KPIC.
  7056. ecc*)
  7057. lt_prog_compiler_wl='-Wl,'
  7058. lt_prog_compiler_pic='-KPIC'
  7059. lt_prog_compiler_static='-static'
  7060. ;;
  7061. # icc used to be incompatible with GCC.
  7062. # ICC 10 doesn't accept -KPIC any more.
  7063. icc* | ifort*)
  7064. lt_prog_compiler_wl='-Wl,'
  7065. lt_prog_compiler_pic='-fPIC'
  7066. lt_prog_compiler_static='-static'
  7067. ;;
  7068. # Lahey Fortran 8.1.
  7069. lf95*)
  7070. lt_prog_compiler_wl='-Wl,'
  7071. lt_prog_compiler_pic='--shared'
  7072. lt_prog_compiler_static='--static'
  7073. ;;
  7074. nagfor*)
  7075. # NAG Fortran compiler
  7076. lt_prog_compiler_wl='-Wl,-Wl,,'
  7077. lt_prog_compiler_pic='-PIC'
  7078. lt_prog_compiler_static='-Bstatic'
  7079. ;;
  7080. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7081. # Portland Group compilers (*not* the Pentium gcc compiler,
  7082. # which looks to be a dead project)
  7083. lt_prog_compiler_wl='-Wl,'
  7084. lt_prog_compiler_pic='-fpic'
  7085. lt_prog_compiler_static='-Bstatic'
  7086. ;;
  7087. ccc*)
  7088. lt_prog_compiler_wl='-Wl,'
  7089. # All Alpha code is PIC.
  7090. lt_prog_compiler_static='-non_shared'
  7091. ;;
  7092. xl* | bgxl* | bgf* | mpixl*)
  7093. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7094. lt_prog_compiler_wl='-Wl,'
  7095. lt_prog_compiler_pic='-qpic'
  7096. lt_prog_compiler_static='-qstaticlink'
  7097. ;;
  7098. *)
  7099. case `$CC -V 2>&1 | sed 5q` in
  7100. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7101. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7102. lt_prog_compiler_pic='-KPIC'
  7103. lt_prog_compiler_static='-Bstatic'
  7104. lt_prog_compiler_wl=''
  7105. ;;
  7106. *Sun\ F* | *Sun*Fortran*)
  7107. lt_prog_compiler_pic='-KPIC'
  7108. lt_prog_compiler_static='-Bstatic'
  7109. lt_prog_compiler_wl='-Qoption ld '
  7110. ;;
  7111. *Sun\ C*)
  7112. # Sun C 5.9
  7113. lt_prog_compiler_pic='-KPIC'
  7114. lt_prog_compiler_static='-Bstatic'
  7115. lt_prog_compiler_wl='-Wl,'
  7116. ;;
  7117. *Intel*\ [CF]*Compiler*)
  7118. lt_prog_compiler_wl='-Wl,'
  7119. lt_prog_compiler_pic='-fPIC'
  7120. lt_prog_compiler_static='-static'
  7121. ;;
  7122. *Portland\ Group*)
  7123. lt_prog_compiler_wl='-Wl,'
  7124. lt_prog_compiler_pic='-fpic'
  7125. lt_prog_compiler_static='-Bstatic'
  7126. ;;
  7127. esac
  7128. ;;
  7129. esac
  7130. ;;
  7131. newsos6)
  7132. lt_prog_compiler_pic='-KPIC'
  7133. lt_prog_compiler_static='-Bstatic'
  7134. ;;
  7135. *nto* | *qnx*)
  7136. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7137. # it will coredump.
  7138. lt_prog_compiler_pic='-fPIC -shared'
  7139. ;;
  7140. osf3* | osf4* | osf5*)
  7141. lt_prog_compiler_wl='-Wl,'
  7142. # All OSF/1 code is PIC.
  7143. lt_prog_compiler_static='-non_shared'
  7144. ;;
  7145. rdos*)
  7146. lt_prog_compiler_static='-non_shared'
  7147. ;;
  7148. solaris*)
  7149. lt_prog_compiler_pic='-KPIC'
  7150. lt_prog_compiler_static='-Bstatic'
  7151. case $cc_basename in
  7152. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7153. lt_prog_compiler_wl='-Qoption ld ';;
  7154. *)
  7155. lt_prog_compiler_wl='-Wl,';;
  7156. esac
  7157. ;;
  7158. sunos4*)
  7159. lt_prog_compiler_wl='-Qoption ld '
  7160. lt_prog_compiler_pic='-PIC'
  7161. lt_prog_compiler_static='-Bstatic'
  7162. ;;
  7163. sysv4 | sysv4.2uw2* | sysv4.3*)
  7164. lt_prog_compiler_wl='-Wl,'
  7165. lt_prog_compiler_pic='-KPIC'
  7166. lt_prog_compiler_static='-Bstatic'
  7167. ;;
  7168. sysv4*MP*)
  7169. if test -d /usr/nec ;then
  7170. lt_prog_compiler_pic='-Kconform_pic'
  7171. lt_prog_compiler_static='-Bstatic'
  7172. fi
  7173. ;;
  7174. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7175. lt_prog_compiler_wl='-Wl,'
  7176. lt_prog_compiler_pic='-KPIC'
  7177. lt_prog_compiler_static='-Bstatic'
  7178. ;;
  7179. unicos*)
  7180. lt_prog_compiler_wl='-Wl,'
  7181. lt_prog_compiler_can_build_shared=no
  7182. ;;
  7183. uts4*)
  7184. lt_prog_compiler_pic='-pic'
  7185. lt_prog_compiler_static='-Bstatic'
  7186. ;;
  7187. *)
  7188. lt_prog_compiler_can_build_shared=no
  7189. ;;
  7190. esac
  7191. fi
  7192. case $host_os in
  7193. # For platforms which do not support PIC, -DPIC is meaningless:
  7194. *djgpp*)
  7195. lt_prog_compiler_pic=
  7196. ;;
  7197. *)
  7198. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7199. ;;
  7200. esac
  7201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7202. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7203. if ${lt_cv_prog_compiler_pic+:} false; then :
  7204. $as_echo_n "(cached) " >&6
  7205. else
  7206. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7207. fi
  7208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7209. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7210. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7211. #
  7212. # Check to make sure the PIC flag actually works.
  7213. #
  7214. if test -n "$lt_prog_compiler_pic"; then
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7216. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7217. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7218. $as_echo_n "(cached) " >&6
  7219. else
  7220. lt_cv_prog_compiler_pic_works=no
  7221. ac_outfile=conftest.$ac_objext
  7222. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7223. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7224. # Insert the option either (1) after the last *FLAGS variable, or
  7225. # (2) before a word containing "conftest.", or (3) at the end.
  7226. # Note that $ac_compile itself does not contain backslashes and begins
  7227. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7228. # The option is referenced via a variable to avoid confusing sed.
  7229. lt_compile=`echo "$ac_compile" | $SED \
  7230. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7231. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7232. -e 's:$: $lt_compiler_flag:'`
  7233. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7234. (eval "$lt_compile" 2>conftest.err)
  7235. ac_status=$?
  7236. cat conftest.err >&5
  7237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7238. if (exit $ac_status) && test -s "$ac_outfile"; then
  7239. # The compiler can only warn and ignore the option if not recognized
  7240. # So say no if there are warnings other than the usual output.
  7241. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7242. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7243. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7244. lt_cv_prog_compiler_pic_works=yes
  7245. fi
  7246. fi
  7247. $RM conftest*
  7248. fi
  7249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7250. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7251. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7252. case $lt_prog_compiler_pic in
  7253. "" | " "*) ;;
  7254. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7255. esac
  7256. else
  7257. lt_prog_compiler_pic=
  7258. lt_prog_compiler_can_build_shared=no
  7259. fi
  7260. fi
  7261. #
  7262. # Check to make sure the static flag actually works.
  7263. #
  7264. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7266. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7267. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7268. $as_echo_n "(cached) " >&6
  7269. else
  7270. lt_cv_prog_compiler_static_works=no
  7271. save_LDFLAGS="$LDFLAGS"
  7272. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7273. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7274. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7275. # The linker can only warn and ignore the option if not recognized
  7276. # So say no if there are warnings
  7277. if test -s conftest.err; then
  7278. # Append any errors to the config.log.
  7279. cat conftest.err 1>&5
  7280. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7281. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7282. if diff conftest.exp conftest.er2 >/dev/null; then
  7283. lt_cv_prog_compiler_static_works=yes
  7284. fi
  7285. else
  7286. lt_cv_prog_compiler_static_works=yes
  7287. fi
  7288. fi
  7289. $RM -r conftest*
  7290. LDFLAGS="$save_LDFLAGS"
  7291. fi
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7293. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7294. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7295. :
  7296. else
  7297. lt_prog_compiler_static=
  7298. fi
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7300. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7301. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7302. $as_echo_n "(cached) " >&6
  7303. else
  7304. lt_cv_prog_compiler_c_o=no
  7305. $RM -r conftest 2>/dev/null
  7306. mkdir conftest
  7307. cd conftest
  7308. mkdir out
  7309. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7310. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7311. # Insert the option either (1) after the last *FLAGS variable, or
  7312. # (2) before a word containing "conftest.", or (3) at the end.
  7313. # Note that $ac_compile itself does not contain backslashes and begins
  7314. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7315. lt_compile=`echo "$ac_compile" | $SED \
  7316. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7317. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7318. -e 's:$: $lt_compiler_flag:'`
  7319. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7320. (eval "$lt_compile" 2>out/conftest.err)
  7321. ac_status=$?
  7322. cat out/conftest.err >&5
  7323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7324. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7325. then
  7326. # The compiler can only warn and ignore the option if not recognized
  7327. # So say no if there are warnings
  7328. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7329. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7330. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7331. lt_cv_prog_compiler_c_o=yes
  7332. fi
  7333. fi
  7334. chmod u+w . 2>&5
  7335. $RM conftest*
  7336. # SGI C++ compiler will create directory out/ii_files/ for
  7337. # template instantiation
  7338. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7339. $RM out/* && rmdir out
  7340. cd ..
  7341. $RM -r conftest
  7342. $RM conftest*
  7343. fi
  7344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7345. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7347. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7348. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7349. $as_echo_n "(cached) " >&6
  7350. else
  7351. lt_cv_prog_compiler_c_o=no
  7352. $RM -r conftest 2>/dev/null
  7353. mkdir conftest
  7354. cd conftest
  7355. mkdir out
  7356. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7357. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7358. # Insert the option either (1) after the last *FLAGS variable, or
  7359. # (2) before a word containing "conftest.", or (3) at the end.
  7360. # Note that $ac_compile itself does not contain backslashes and begins
  7361. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7362. lt_compile=`echo "$ac_compile" | $SED \
  7363. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7364. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7365. -e 's:$: $lt_compiler_flag:'`
  7366. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7367. (eval "$lt_compile" 2>out/conftest.err)
  7368. ac_status=$?
  7369. cat out/conftest.err >&5
  7370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7371. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7372. then
  7373. # The compiler can only warn and ignore the option if not recognized
  7374. # So say no if there are warnings
  7375. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7376. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7377. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7378. lt_cv_prog_compiler_c_o=yes
  7379. fi
  7380. fi
  7381. chmod u+w . 2>&5
  7382. $RM conftest*
  7383. # SGI C++ compiler will create directory out/ii_files/ for
  7384. # template instantiation
  7385. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7386. $RM out/* && rmdir out
  7387. cd ..
  7388. $RM -r conftest
  7389. $RM conftest*
  7390. fi
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7392. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7393. hard_links="nottested"
  7394. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7395. # do not overwrite the value of need_locks provided by the user
  7396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7397. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7398. hard_links=yes
  7399. $RM conftest*
  7400. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7401. touch conftest.a
  7402. ln conftest.a conftest.b 2>&5 || hard_links=no
  7403. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7405. $as_echo "$hard_links" >&6; }
  7406. if test "$hard_links" = no; then
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7408. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7409. need_locks=warn
  7410. fi
  7411. else
  7412. need_locks=no
  7413. fi
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7415. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7416. runpath_var=
  7417. allow_undefined_flag=
  7418. always_export_symbols=no
  7419. archive_cmds=
  7420. archive_expsym_cmds=
  7421. compiler_needs_object=no
  7422. enable_shared_with_static_runtimes=no
  7423. export_dynamic_flag_spec=
  7424. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7425. hardcode_automatic=no
  7426. hardcode_direct=no
  7427. hardcode_direct_absolute=no
  7428. hardcode_libdir_flag_spec=
  7429. hardcode_libdir_separator=
  7430. hardcode_minus_L=no
  7431. hardcode_shlibpath_var=unsupported
  7432. inherit_rpath=no
  7433. link_all_deplibs=unknown
  7434. module_cmds=
  7435. module_expsym_cmds=
  7436. old_archive_from_new_cmds=
  7437. old_archive_from_expsyms_cmds=
  7438. thread_safe_flag_spec=
  7439. whole_archive_flag_spec=
  7440. # include_expsyms should be a list of space-separated symbols to be *always*
  7441. # included in the symbol list
  7442. include_expsyms=
  7443. # exclude_expsyms can be an extended regexp of symbols to exclude
  7444. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7445. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7446. # as well as any symbol that contains `d'.
  7447. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7448. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7449. # platforms (ab)use it in PIC code, but their linkers get confused if
  7450. # the symbol is explicitly referenced. Since portable code cannot
  7451. # rely on this symbol name, it's probably fine to never include it in
  7452. # preloaded symbol tables.
  7453. # Exclude shared library initialization/finalization symbols.
  7454. extract_expsyms_cmds=
  7455. case $host_os in
  7456. cygwin* | mingw* | pw32* | cegcc*)
  7457. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7458. # When not using gcc, we currently assume that we are using
  7459. # Microsoft Visual C++.
  7460. if test "$GCC" != yes; then
  7461. with_gnu_ld=no
  7462. fi
  7463. ;;
  7464. interix*)
  7465. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7466. with_gnu_ld=yes
  7467. ;;
  7468. openbsd*)
  7469. with_gnu_ld=no
  7470. ;;
  7471. esac
  7472. ld_shlibs=yes
  7473. # On some targets, GNU ld is compatible enough with the native linker
  7474. # that we're better off using the native interface for both.
  7475. lt_use_gnu_ld_interface=no
  7476. if test "$with_gnu_ld" = yes; then
  7477. case $host_os in
  7478. aix*)
  7479. # The AIX port of GNU ld has always aspired to compatibility
  7480. # with the native linker. However, as the warning in the GNU ld
  7481. # block says, versions before 2.19.5* couldn't really create working
  7482. # shared libraries, regardless of the interface used.
  7483. case `$LD -v 2>&1` in
  7484. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7485. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7486. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7487. *)
  7488. lt_use_gnu_ld_interface=yes
  7489. ;;
  7490. esac
  7491. ;;
  7492. *)
  7493. lt_use_gnu_ld_interface=yes
  7494. ;;
  7495. esac
  7496. fi
  7497. if test "$lt_use_gnu_ld_interface" = yes; then
  7498. # If archive_cmds runs LD, not CC, wlarc should be empty
  7499. wlarc='${wl}'
  7500. # Set some defaults for GNU ld with shared library support. These
  7501. # are reset later if shared libraries are not supported. Putting them
  7502. # here allows them to be overridden if necessary.
  7503. runpath_var=LD_RUN_PATH
  7504. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7505. export_dynamic_flag_spec='${wl}--export-dynamic'
  7506. # ancient GNU ld didn't support --whole-archive et. al.
  7507. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7508. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7509. else
  7510. whole_archive_flag_spec=
  7511. fi
  7512. supports_anon_versioning=no
  7513. case `$LD -v 2>&1` in
  7514. *GNU\ gold*) supports_anon_versioning=yes ;;
  7515. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7516. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7517. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7518. *\ 2.11.*) ;; # other 2.11 versions
  7519. *) supports_anon_versioning=yes ;;
  7520. esac
  7521. # See if GNU ld supports shared libraries.
  7522. case $host_os in
  7523. aix[3-9]*)
  7524. # On AIX/PPC, the GNU linker is very broken
  7525. if test "$host_cpu" != ia64; then
  7526. ld_shlibs=no
  7527. cat <<_LT_EOF 1>&2
  7528. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7529. *** to be unable to reliably create shared libraries on AIX.
  7530. *** Therefore, libtool is disabling shared libraries support. If you
  7531. *** really care for shared libraries, you may want to install binutils
  7532. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7533. *** You will then need to restart the configuration process.
  7534. _LT_EOF
  7535. fi
  7536. ;;
  7537. amigaos*)
  7538. case $host_cpu in
  7539. powerpc)
  7540. # see comment about AmigaOS4 .so support
  7541. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7542. archive_expsym_cmds=''
  7543. ;;
  7544. m68k)
  7545. 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)'
  7546. hardcode_libdir_flag_spec='-L$libdir'
  7547. hardcode_minus_L=yes
  7548. ;;
  7549. esac
  7550. ;;
  7551. beos*)
  7552. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7553. allow_undefined_flag=unsupported
  7554. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7555. # support --undefined. This deserves some investigation. FIXME
  7556. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7557. else
  7558. ld_shlibs=no
  7559. fi
  7560. ;;
  7561. cygwin* | mingw* | pw32* | cegcc*)
  7562. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7563. # as there is no search path for DLLs.
  7564. hardcode_libdir_flag_spec='-L$libdir'
  7565. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7566. allow_undefined_flag=unsupported
  7567. always_export_symbols=no
  7568. enable_shared_with_static_runtimes=yes
  7569. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7570. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7571. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7572. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7573. # If the export-symbols file already is a .def file (1st line
  7574. # is EXPORTS), use it as is; otherwise, prepend...
  7575. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7576. cp $export_symbols $output_objdir/$soname.def;
  7577. else
  7578. echo EXPORTS > $output_objdir/$soname.def;
  7579. cat $export_symbols >> $output_objdir/$soname.def;
  7580. fi~
  7581. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7582. else
  7583. ld_shlibs=no
  7584. fi
  7585. ;;
  7586. haiku*)
  7587. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7588. link_all_deplibs=yes
  7589. ;;
  7590. interix[3-9]*)
  7591. hardcode_direct=no
  7592. hardcode_shlibpath_var=no
  7593. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7594. export_dynamic_flag_spec='${wl}-E'
  7595. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7596. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7597. # default) and relocated if they conflict, which is a slow very memory
  7598. # consuming and fragmenting process. To avoid this, we pick a random,
  7599. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7600. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7601. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7602. 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'
  7603. ;;
  7604. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7605. tmp_diet=no
  7606. if test "$host_os" = linux-dietlibc; then
  7607. case $cc_basename in
  7608. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7609. esac
  7610. fi
  7611. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7612. && test "$tmp_diet" = no
  7613. then
  7614. tmp_addflag=' $pic_flag'
  7615. tmp_sharedflag='-shared'
  7616. case $cc_basename,$host_cpu in
  7617. pgcc*) # Portland Group C compiler
  7618. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7619. tmp_addflag=' $pic_flag'
  7620. ;;
  7621. pgf77* | pgf90* | pgf95* | pgfortran*)
  7622. # Portland Group f77 and f90 compilers
  7623. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7624. tmp_addflag=' $pic_flag -Mnomain' ;;
  7625. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7626. tmp_addflag=' -i_dynamic' ;;
  7627. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7628. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7629. ifc* | ifort*) # Intel Fortran compiler
  7630. tmp_addflag=' -nofor_main' ;;
  7631. lf95*) # Lahey Fortran 8.1
  7632. whole_archive_flag_spec=
  7633. tmp_sharedflag='--shared' ;;
  7634. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7635. tmp_sharedflag='-qmkshrobj'
  7636. tmp_addflag= ;;
  7637. nvcc*) # Cuda Compiler Driver 2.2
  7638. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7639. compiler_needs_object=yes
  7640. ;;
  7641. esac
  7642. case `$CC -V 2>&1 | sed 5q` in
  7643. *Sun\ C*) # Sun C 5.9
  7644. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7645. compiler_needs_object=yes
  7646. tmp_sharedflag='-G' ;;
  7647. *Sun\ F*) # Sun Fortran 8.3
  7648. tmp_sharedflag='-G' ;;
  7649. esac
  7650. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7651. if test "x$supports_anon_versioning" = xyes; then
  7652. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7653. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7654. echo "local: *; };" >> $output_objdir/$libname.ver~
  7655. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7656. fi
  7657. case $cc_basename in
  7658. xlf* | bgf* | bgxlf* | mpixlf*)
  7659. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7660. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7661. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7662. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7663. if test "x$supports_anon_versioning" = xyes; then
  7664. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7665. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7666. echo "local: *; };" >> $output_objdir/$libname.ver~
  7667. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7668. fi
  7669. ;;
  7670. esac
  7671. else
  7672. ld_shlibs=no
  7673. fi
  7674. ;;
  7675. netbsd*)
  7676. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7677. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7678. wlarc=
  7679. else
  7680. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7681. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7682. fi
  7683. ;;
  7684. solaris*)
  7685. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7686. ld_shlibs=no
  7687. cat <<_LT_EOF 1>&2
  7688. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7689. *** create shared libraries on Solaris systems. Therefore, libtool
  7690. *** is disabling shared libraries support. We urge you to upgrade GNU
  7691. *** binutils to release 2.9.1 or newer. Another option is to modify
  7692. *** your PATH or compiler configuration so that the native linker is
  7693. *** used, and then restart.
  7694. _LT_EOF
  7695. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7696. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7697. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7698. else
  7699. ld_shlibs=no
  7700. fi
  7701. ;;
  7702. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7703. case `$LD -v 2>&1` in
  7704. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7705. ld_shlibs=no
  7706. cat <<_LT_EOF 1>&2
  7707. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7708. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7709. *** is disabling shared libraries support. We urge you to upgrade GNU
  7710. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7711. *** your PATH or compiler configuration so that the native linker is
  7712. *** used, and then restart.
  7713. _LT_EOF
  7714. ;;
  7715. *)
  7716. # For security reasons, it is highly recommended that you always
  7717. # use absolute paths for naming shared libraries, and exclude the
  7718. # DT_RUNPATH tag from executables and libraries. But doing so
  7719. # requires that you compile everything twice, which is a pain.
  7720. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7721. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7722. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7723. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7724. else
  7725. ld_shlibs=no
  7726. fi
  7727. ;;
  7728. esac
  7729. ;;
  7730. sunos4*)
  7731. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7732. wlarc=
  7733. hardcode_direct=yes
  7734. hardcode_shlibpath_var=no
  7735. ;;
  7736. *)
  7737. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7738. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7739. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7740. else
  7741. ld_shlibs=no
  7742. fi
  7743. ;;
  7744. esac
  7745. if test "$ld_shlibs" = no; then
  7746. runpath_var=
  7747. hardcode_libdir_flag_spec=
  7748. export_dynamic_flag_spec=
  7749. whole_archive_flag_spec=
  7750. fi
  7751. else
  7752. # PORTME fill in a description of your system's linker (not GNU ld)
  7753. case $host_os in
  7754. aix3*)
  7755. allow_undefined_flag=unsupported
  7756. always_export_symbols=yes
  7757. 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'
  7758. # Note: this linker hardcodes the directories in LIBPATH if there
  7759. # are no directories specified by -L.
  7760. hardcode_minus_L=yes
  7761. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7762. # Neither direct hardcoding nor static linking is supported with a
  7763. # broken collect2.
  7764. hardcode_direct=unsupported
  7765. fi
  7766. ;;
  7767. aix[4-9]*)
  7768. if test "$host_cpu" = ia64; then
  7769. # On IA64, the linker does run time linking by default, so we don't
  7770. # have to do anything special.
  7771. aix_use_runtimelinking=no
  7772. exp_sym_flag='-Bexport'
  7773. no_entry_flag=""
  7774. else
  7775. # If we're using GNU nm, then we don't want the "-C" option.
  7776. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7777. # Also, AIX nm treats weak defined symbols like other global
  7778. # defined symbols, whereas GNU nm marks them as "W".
  7779. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7780. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7781. else
  7782. 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'
  7783. fi
  7784. aix_use_runtimelinking=no
  7785. # Test if we are trying to use run time linking or normal
  7786. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7787. # need to do runtime linking.
  7788. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7789. for ld_flag in $LDFLAGS; do
  7790. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7791. aix_use_runtimelinking=yes
  7792. break
  7793. fi
  7794. done
  7795. ;;
  7796. esac
  7797. exp_sym_flag='-bexport'
  7798. no_entry_flag='-bnoentry'
  7799. fi
  7800. # When large executables or shared objects are built, AIX ld can
  7801. # have problems creating the table of contents. If linking a library
  7802. # or program results in "error TOC overflow" add -mminimal-toc to
  7803. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7804. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7805. archive_cmds=''
  7806. hardcode_direct=yes
  7807. hardcode_direct_absolute=yes
  7808. hardcode_libdir_separator=':'
  7809. link_all_deplibs=yes
  7810. file_list_spec='${wl}-f,'
  7811. if test "$GCC" = yes; then
  7812. case $host_os in aix4.[012]|aix4.[012].*)
  7813. # We only want to do this on AIX 4.2 and lower, the check
  7814. # below for broken collect2 doesn't work under 4.3+
  7815. collect2name=`${CC} -print-prog-name=collect2`
  7816. if test -f "$collect2name" &&
  7817. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7818. then
  7819. # We have reworked collect2
  7820. :
  7821. else
  7822. # We have old collect2
  7823. hardcode_direct=unsupported
  7824. # It fails to find uninstalled libraries when the uninstalled
  7825. # path is not listed in the libpath. Setting hardcode_minus_L
  7826. # to unsupported forces relinking
  7827. hardcode_minus_L=yes
  7828. hardcode_libdir_flag_spec='-L$libdir'
  7829. hardcode_libdir_separator=
  7830. fi
  7831. ;;
  7832. esac
  7833. shared_flag='-shared'
  7834. if test "$aix_use_runtimelinking" = yes; then
  7835. shared_flag="$shared_flag "'${wl}-G'
  7836. fi
  7837. else
  7838. # not using gcc
  7839. if test "$host_cpu" = ia64; then
  7840. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7841. # chokes on -Wl,-G. The following line is correct:
  7842. shared_flag='-G'
  7843. else
  7844. if test "$aix_use_runtimelinking" = yes; then
  7845. shared_flag='${wl}-G'
  7846. else
  7847. shared_flag='${wl}-bM:SRE'
  7848. fi
  7849. fi
  7850. fi
  7851. export_dynamic_flag_spec='${wl}-bexpall'
  7852. # It seems that -bexpall does not export symbols beginning with
  7853. # underscore (_), so it is better to generate a list of symbols to export.
  7854. always_export_symbols=yes
  7855. if test "$aix_use_runtimelinking" = yes; then
  7856. # Warning - without using the other runtime loading flags (-brtl),
  7857. # -berok will link without error, but may produce a broken library.
  7858. allow_undefined_flag='-berok'
  7859. # Determine the default libpath from the value encoded in an
  7860. # empty executable.
  7861. if test "${lt_cv_aix_libpath+set}" = set; then
  7862. aix_libpath=$lt_cv_aix_libpath
  7863. else
  7864. if ${lt_cv_aix_libpath_+:} false; then :
  7865. $as_echo_n "(cached) " >&6
  7866. else
  7867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7868. /* end confdefs.h. */
  7869. int
  7870. main ()
  7871. {
  7872. ;
  7873. return 0;
  7874. }
  7875. _ACEOF
  7876. if ac_fn_c_try_link "$LINENO"; then :
  7877. lt_aix_libpath_sed='
  7878. /Import File Strings/,/^$/ {
  7879. /^0/ {
  7880. s/^0 *\([^ ]*\) *$/\1/
  7881. p
  7882. }
  7883. }'
  7884. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7885. # Check for a 64-bit object if we didn't find anything.
  7886. if test -z "$lt_cv_aix_libpath_"; then
  7887. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7888. fi
  7889. fi
  7890. rm -f core conftest.err conftest.$ac_objext \
  7891. conftest$ac_exeext conftest.$ac_ext
  7892. if test -z "$lt_cv_aix_libpath_"; then
  7893. lt_cv_aix_libpath_="/usr/lib:/lib"
  7894. fi
  7895. fi
  7896. aix_libpath=$lt_cv_aix_libpath_
  7897. fi
  7898. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7899. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7900. else
  7901. if test "$host_cpu" = ia64; then
  7902. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7903. allow_undefined_flag="-z nodefs"
  7904. 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"
  7905. else
  7906. # Determine the default libpath from the value encoded in an
  7907. # empty executable.
  7908. if test "${lt_cv_aix_libpath+set}" = set; then
  7909. aix_libpath=$lt_cv_aix_libpath
  7910. else
  7911. if ${lt_cv_aix_libpath_+:} false; then :
  7912. $as_echo_n "(cached) " >&6
  7913. else
  7914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7915. /* end confdefs.h. */
  7916. int
  7917. main ()
  7918. {
  7919. ;
  7920. return 0;
  7921. }
  7922. _ACEOF
  7923. if ac_fn_c_try_link "$LINENO"; then :
  7924. lt_aix_libpath_sed='
  7925. /Import File Strings/,/^$/ {
  7926. /^0/ {
  7927. s/^0 *\([^ ]*\) *$/\1/
  7928. p
  7929. }
  7930. }'
  7931. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7932. # Check for a 64-bit object if we didn't find anything.
  7933. if test -z "$lt_cv_aix_libpath_"; then
  7934. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7935. fi
  7936. fi
  7937. rm -f core conftest.err conftest.$ac_objext \
  7938. conftest$ac_exeext conftest.$ac_ext
  7939. if test -z "$lt_cv_aix_libpath_"; then
  7940. lt_cv_aix_libpath_="/usr/lib:/lib"
  7941. fi
  7942. fi
  7943. aix_libpath=$lt_cv_aix_libpath_
  7944. fi
  7945. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7946. # Warning - without using the other run time loading flags,
  7947. # -berok will link without error, but may produce a broken library.
  7948. no_undefined_flag=' ${wl}-bernotok'
  7949. allow_undefined_flag=' ${wl}-berok'
  7950. if test "$with_gnu_ld" = yes; then
  7951. # We only use this code for GNU lds that support --whole-archive.
  7952. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7953. else
  7954. # Exported symbols can be pulled into shared objects from archives
  7955. whole_archive_flag_spec='$convenience'
  7956. fi
  7957. archive_cmds_need_lc=yes
  7958. # This is similar to how AIX traditionally builds its shared libraries.
  7959. 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'
  7960. fi
  7961. fi
  7962. ;;
  7963. amigaos*)
  7964. case $host_cpu in
  7965. powerpc)
  7966. # see comment about AmigaOS4 .so support
  7967. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7968. archive_expsym_cmds=''
  7969. ;;
  7970. m68k)
  7971. 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)'
  7972. hardcode_libdir_flag_spec='-L$libdir'
  7973. hardcode_minus_L=yes
  7974. ;;
  7975. esac
  7976. ;;
  7977. bsdi[45]*)
  7978. export_dynamic_flag_spec=-rdynamic
  7979. ;;
  7980. cygwin* | mingw* | pw32* | cegcc*)
  7981. # When not using gcc, we currently assume that we are using
  7982. # Microsoft Visual C++.
  7983. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7984. # no search path for DLLs.
  7985. case $cc_basename in
  7986. cl*)
  7987. # Native MSVC
  7988. hardcode_libdir_flag_spec=' '
  7989. allow_undefined_flag=unsupported
  7990. always_export_symbols=yes
  7991. file_list_spec='@'
  7992. # Tell ltmain to make .lib files, not .a files.
  7993. libext=lib
  7994. # Tell ltmain to make .dll files, not .so files.
  7995. shrext_cmds=".dll"
  7996. # FIXME: Setting linknames here is a bad hack.
  7997. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7998. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7999. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8000. else
  8001. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8002. fi~
  8003. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8004. linknames='
  8005. # The linker will not automatically build a static lib if we build a DLL.
  8006. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8007. enable_shared_with_static_runtimes=yes
  8008. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8009. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8010. # Don't use ranlib
  8011. old_postinstall_cmds='chmod 644 $oldlib'
  8012. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8013. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8014. case $lt_outputfile in
  8015. *.exe|*.EXE) ;;
  8016. *)
  8017. lt_outputfile="$lt_outputfile.exe"
  8018. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8019. ;;
  8020. esac~
  8021. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8022. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8023. $RM "$lt_outputfile.manifest";
  8024. fi'
  8025. ;;
  8026. *)
  8027. # Assume MSVC wrapper
  8028. hardcode_libdir_flag_spec=' '
  8029. allow_undefined_flag=unsupported
  8030. # Tell ltmain to make .lib files, not .a files.
  8031. libext=lib
  8032. # Tell ltmain to make .dll files, not .so files.
  8033. shrext_cmds=".dll"
  8034. # FIXME: Setting linknames here is a bad hack.
  8035. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8036. # The linker will automatically build a .lib file if we build a DLL.
  8037. old_archive_from_new_cmds='true'
  8038. # FIXME: Should let the user specify the lib program.
  8039. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8040. enable_shared_with_static_runtimes=yes
  8041. ;;
  8042. esac
  8043. ;;
  8044. darwin* | rhapsody*)
  8045. archive_cmds_need_lc=no
  8046. hardcode_direct=no
  8047. hardcode_automatic=yes
  8048. hardcode_shlibpath_var=unsupported
  8049. if test "$lt_cv_ld_force_load" = "yes"; then
  8050. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8051. else
  8052. whole_archive_flag_spec=''
  8053. fi
  8054. link_all_deplibs=yes
  8055. allow_undefined_flag="$_lt_dar_allow_undefined"
  8056. case $cc_basename in
  8057. ifort*) _lt_dar_can_shared=yes ;;
  8058. *) _lt_dar_can_shared=$GCC ;;
  8059. esac
  8060. if test "$_lt_dar_can_shared" = "yes"; then
  8061. output_verbose_link_cmd=func_echo_all
  8062. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8063. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8064. 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}"
  8065. 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}"
  8066. else
  8067. ld_shlibs=no
  8068. fi
  8069. ;;
  8070. dgux*)
  8071. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8072. hardcode_libdir_flag_spec='-L$libdir'
  8073. hardcode_shlibpath_var=no
  8074. ;;
  8075. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8076. # support. Future versions do this automatically, but an explicit c++rt0.o
  8077. # does not break anything, and helps significantly (at the cost of a little
  8078. # extra space).
  8079. freebsd2.2*)
  8080. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8081. hardcode_libdir_flag_spec='-R$libdir'
  8082. hardcode_direct=yes
  8083. hardcode_shlibpath_var=no
  8084. ;;
  8085. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8086. freebsd2.*)
  8087. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8088. hardcode_direct=yes
  8089. hardcode_minus_L=yes
  8090. hardcode_shlibpath_var=no
  8091. ;;
  8092. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8093. freebsd* | dragonfly*)
  8094. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8095. hardcode_libdir_flag_spec='-R$libdir'
  8096. hardcode_direct=yes
  8097. hardcode_shlibpath_var=no
  8098. ;;
  8099. hpux9*)
  8100. if test "$GCC" = yes; then
  8101. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8102. else
  8103. 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'
  8104. fi
  8105. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8106. hardcode_libdir_separator=:
  8107. hardcode_direct=yes
  8108. # hardcode_minus_L: Not really in the search PATH,
  8109. # but as the default location of the library.
  8110. hardcode_minus_L=yes
  8111. export_dynamic_flag_spec='${wl}-E'
  8112. ;;
  8113. hpux10*)
  8114. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8115. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8116. else
  8117. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8118. fi
  8119. if test "$with_gnu_ld" = no; then
  8120. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8121. hardcode_libdir_separator=:
  8122. hardcode_direct=yes
  8123. hardcode_direct_absolute=yes
  8124. export_dynamic_flag_spec='${wl}-E'
  8125. # hardcode_minus_L: Not really in the search PATH,
  8126. # but as the default location of the library.
  8127. hardcode_minus_L=yes
  8128. fi
  8129. ;;
  8130. hpux11*)
  8131. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8132. case $host_cpu in
  8133. hppa*64*)
  8134. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8135. ;;
  8136. ia64*)
  8137. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8138. ;;
  8139. *)
  8140. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8141. ;;
  8142. esac
  8143. else
  8144. case $host_cpu in
  8145. hppa*64*)
  8146. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8147. ;;
  8148. ia64*)
  8149. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8150. ;;
  8151. *)
  8152. # Older versions of the 11.00 compiler do not understand -b yet
  8153. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8155. $as_echo_n "checking if $CC understands -b... " >&6; }
  8156. if ${lt_cv_prog_compiler__b+:} false; then :
  8157. $as_echo_n "(cached) " >&6
  8158. else
  8159. lt_cv_prog_compiler__b=no
  8160. save_LDFLAGS="$LDFLAGS"
  8161. LDFLAGS="$LDFLAGS -b"
  8162. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8163. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8164. # The linker can only warn and ignore the option if not recognized
  8165. # So say no if there are warnings
  8166. if test -s conftest.err; then
  8167. # Append any errors to the config.log.
  8168. cat conftest.err 1>&5
  8169. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8170. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8171. if diff conftest.exp conftest.er2 >/dev/null; then
  8172. lt_cv_prog_compiler__b=yes
  8173. fi
  8174. else
  8175. lt_cv_prog_compiler__b=yes
  8176. fi
  8177. fi
  8178. $RM -r conftest*
  8179. LDFLAGS="$save_LDFLAGS"
  8180. fi
  8181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8182. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8183. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8184. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8185. else
  8186. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8187. fi
  8188. ;;
  8189. esac
  8190. fi
  8191. if test "$with_gnu_ld" = no; then
  8192. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8193. hardcode_libdir_separator=:
  8194. case $host_cpu in
  8195. hppa*64*|ia64*)
  8196. hardcode_direct=no
  8197. hardcode_shlibpath_var=no
  8198. ;;
  8199. *)
  8200. hardcode_direct=yes
  8201. hardcode_direct_absolute=yes
  8202. export_dynamic_flag_spec='${wl}-E'
  8203. # hardcode_minus_L: Not really in the search PATH,
  8204. # but as the default location of the library.
  8205. hardcode_minus_L=yes
  8206. ;;
  8207. esac
  8208. fi
  8209. ;;
  8210. irix5* | irix6* | nonstopux*)
  8211. if test "$GCC" = yes; then
  8212. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8213. # Try to use the -exported_symbol ld option, if it does not
  8214. # work, assume that -exports_file does not work either and
  8215. # implicitly export all symbols.
  8216. # This should be the same for all languages, so no per-tag cache variable.
  8217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8218. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8219. if ${lt_cv_irix_exported_symbol+:} false; then :
  8220. $as_echo_n "(cached) " >&6
  8221. else
  8222. save_LDFLAGS="$LDFLAGS"
  8223. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8225. /* end confdefs.h. */
  8226. int foo (void) { return 0; }
  8227. _ACEOF
  8228. if ac_fn_c_try_link "$LINENO"; then :
  8229. lt_cv_irix_exported_symbol=yes
  8230. else
  8231. lt_cv_irix_exported_symbol=no
  8232. fi
  8233. rm -f core conftest.err conftest.$ac_objext \
  8234. conftest$ac_exeext conftest.$ac_ext
  8235. LDFLAGS="$save_LDFLAGS"
  8236. fi
  8237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8238. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8239. if test "$lt_cv_irix_exported_symbol" = yes; then
  8240. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8241. fi
  8242. else
  8243. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8244. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8245. fi
  8246. archive_cmds_need_lc='no'
  8247. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8248. hardcode_libdir_separator=:
  8249. inherit_rpath=yes
  8250. link_all_deplibs=yes
  8251. ;;
  8252. netbsd*)
  8253. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8254. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8255. else
  8256. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8257. fi
  8258. hardcode_libdir_flag_spec='-R$libdir'
  8259. hardcode_direct=yes
  8260. hardcode_shlibpath_var=no
  8261. ;;
  8262. newsos6)
  8263. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8264. hardcode_direct=yes
  8265. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8266. hardcode_libdir_separator=:
  8267. hardcode_shlibpath_var=no
  8268. ;;
  8269. *nto* | *qnx*)
  8270. ;;
  8271. openbsd*)
  8272. if test -f /usr/libexec/ld.so; then
  8273. hardcode_direct=yes
  8274. hardcode_shlibpath_var=no
  8275. hardcode_direct_absolute=yes
  8276. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8277. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8278. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8279. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8280. export_dynamic_flag_spec='${wl}-E'
  8281. else
  8282. case $host_os in
  8283. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8284. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8285. hardcode_libdir_flag_spec='-R$libdir'
  8286. ;;
  8287. *)
  8288. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8289. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8290. ;;
  8291. esac
  8292. fi
  8293. else
  8294. ld_shlibs=no
  8295. fi
  8296. ;;
  8297. os2*)
  8298. hardcode_libdir_flag_spec='-L$libdir'
  8299. hardcode_minus_L=yes
  8300. allow_undefined_flag=unsupported
  8301. 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'
  8302. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8303. ;;
  8304. osf3*)
  8305. if test "$GCC" = yes; then
  8306. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8307. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8308. else
  8309. allow_undefined_flag=' -expect_unresolved \*'
  8310. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8311. fi
  8312. archive_cmds_need_lc='no'
  8313. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8314. hardcode_libdir_separator=:
  8315. ;;
  8316. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8317. if test "$GCC" = yes; then
  8318. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8319. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8320. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8321. else
  8322. allow_undefined_flag=' -expect_unresolved \*'
  8323. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8324. 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~
  8325. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8326. # Both c and cxx compiler support -rpath directly
  8327. hardcode_libdir_flag_spec='-rpath $libdir'
  8328. fi
  8329. archive_cmds_need_lc='no'
  8330. hardcode_libdir_separator=:
  8331. ;;
  8332. solaris*)
  8333. no_undefined_flag=' -z defs'
  8334. if test "$GCC" = yes; then
  8335. wlarc='${wl}'
  8336. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8337. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8338. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8339. else
  8340. case `$CC -V 2>&1` in
  8341. *"Compilers 5.0"*)
  8342. wlarc=''
  8343. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8344. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8345. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8346. ;;
  8347. *)
  8348. wlarc='${wl}'
  8349. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8350. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8351. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8352. ;;
  8353. esac
  8354. fi
  8355. hardcode_libdir_flag_spec='-R$libdir'
  8356. hardcode_shlibpath_var=no
  8357. case $host_os in
  8358. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8359. *)
  8360. # The compiler driver will combine and reorder linker options,
  8361. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8362. # but is careful enough not to reorder.
  8363. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8364. if test "$GCC" = yes; then
  8365. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8366. else
  8367. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8368. fi
  8369. ;;
  8370. esac
  8371. link_all_deplibs=yes
  8372. ;;
  8373. sunos4*)
  8374. if test "x$host_vendor" = xsequent; then
  8375. # Use $CC to link under sequent, because it throws in some extra .o
  8376. # files that make .init and .fini sections work.
  8377. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8378. else
  8379. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8380. fi
  8381. hardcode_libdir_flag_spec='-L$libdir'
  8382. hardcode_direct=yes
  8383. hardcode_minus_L=yes
  8384. hardcode_shlibpath_var=no
  8385. ;;
  8386. sysv4)
  8387. case $host_vendor in
  8388. sni)
  8389. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8390. hardcode_direct=yes # is this really true???
  8391. ;;
  8392. siemens)
  8393. ## LD is ld it makes a PLAMLIB
  8394. ## CC just makes a GrossModule.
  8395. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8396. reload_cmds='$CC -r -o $output$reload_objs'
  8397. hardcode_direct=no
  8398. ;;
  8399. motorola)
  8400. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8401. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8402. ;;
  8403. esac
  8404. runpath_var='LD_RUN_PATH'
  8405. hardcode_shlibpath_var=no
  8406. ;;
  8407. sysv4.3*)
  8408. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8409. hardcode_shlibpath_var=no
  8410. export_dynamic_flag_spec='-Bexport'
  8411. ;;
  8412. sysv4*MP*)
  8413. if test -d /usr/nec; then
  8414. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8415. hardcode_shlibpath_var=no
  8416. runpath_var=LD_RUN_PATH
  8417. hardcode_runpath_var=yes
  8418. ld_shlibs=yes
  8419. fi
  8420. ;;
  8421. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8422. no_undefined_flag='${wl}-z,text'
  8423. archive_cmds_need_lc=no
  8424. hardcode_shlibpath_var=no
  8425. runpath_var='LD_RUN_PATH'
  8426. if test "$GCC" = yes; then
  8427. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8428. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8429. else
  8430. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8431. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8432. fi
  8433. ;;
  8434. sysv5* | sco3.2v5* | sco5v6*)
  8435. # Note: We can NOT use -z defs as we might desire, because we do not
  8436. # link with -lc, and that would cause any symbols used from libc to
  8437. # always be unresolved, which means just about no library would
  8438. # ever link correctly. If we're not using GNU ld we use -z text
  8439. # though, which does catch some bad symbols but isn't as heavy-handed
  8440. # as -z defs.
  8441. no_undefined_flag='${wl}-z,text'
  8442. allow_undefined_flag='${wl}-z,nodefs'
  8443. archive_cmds_need_lc=no
  8444. hardcode_shlibpath_var=no
  8445. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8446. hardcode_libdir_separator=':'
  8447. link_all_deplibs=yes
  8448. export_dynamic_flag_spec='${wl}-Bexport'
  8449. runpath_var='LD_RUN_PATH'
  8450. if test "$GCC" = yes; then
  8451. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8452. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8453. else
  8454. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8455. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8456. fi
  8457. ;;
  8458. uts4*)
  8459. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8460. hardcode_libdir_flag_spec='-L$libdir'
  8461. hardcode_shlibpath_var=no
  8462. ;;
  8463. *)
  8464. ld_shlibs=no
  8465. ;;
  8466. esac
  8467. if test x$host_vendor = xsni; then
  8468. case $host in
  8469. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8470. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8471. ;;
  8472. esac
  8473. fi
  8474. fi
  8475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8476. $as_echo "$ld_shlibs" >&6; }
  8477. test "$ld_shlibs" = no && can_build_shared=no
  8478. with_gnu_ld=$with_gnu_ld
  8479. #
  8480. # Do we need to explicitly link libc?
  8481. #
  8482. case "x$archive_cmds_need_lc" in
  8483. x|xyes)
  8484. # Assume -lc should be added
  8485. archive_cmds_need_lc=yes
  8486. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8487. case $archive_cmds in
  8488. *'~'*)
  8489. # FIXME: we may have to deal with multi-command sequences.
  8490. ;;
  8491. '$CC '*)
  8492. # Test whether the compiler implicitly links with -lc since on some
  8493. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8494. # to ld, don't add -lc before -lgcc.
  8495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8496. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8497. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8498. $as_echo_n "(cached) " >&6
  8499. else
  8500. $RM conftest*
  8501. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8502. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8503. (eval $ac_compile) 2>&5
  8504. ac_status=$?
  8505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8506. test $ac_status = 0; } 2>conftest.err; then
  8507. soname=conftest
  8508. lib=conftest
  8509. libobjs=conftest.$ac_objext
  8510. deplibs=
  8511. wl=$lt_prog_compiler_wl
  8512. pic_flag=$lt_prog_compiler_pic
  8513. compiler_flags=-v
  8514. linker_flags=-v
  8515. verstring=
  8516. output_objdir=.
  8517. libname=conftest
  8518. lt_save_allow_undefined_flag=$allow_undefined_flag
  8519. allow_undefined_flag=
  8520. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8521. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8522. ac_status=$?
  8523. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8524. test $ac_status = 0; }
  8525. then
  8526. lt_cv_archive_cmds_need_lc=no
  8527. else
  8528. lt_cv_archive_cmds_need_lc=yes
  8529. fi
  8530. allow_undefined_flag=$lt_save_allow_undefined_flag
  8531. else
  8532. cat conftest.err 1>&5
  8533. fi
  8534. $RM conftest*
  8535. fi
  8536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8537. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8538. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8539. ;;
  8540. esac
  8541. fi
  8542. ;;
  8543. esac
  8544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8545. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8546. if test "$GCC" = yes; then
  8547. case $host_os in
  8548. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8549. *) lt_awk_arg="/^libraries:/" ;;
  8550. esac
  8551. case $host_os in
  8552. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8553. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8554. esac
  8555. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8556. case $lt_search_path_spec in
  8557. *\;*)
  8558. # if the path contains ";" then we assume it to be the separator
  8559. # otherwise default to the standard path separator (i.e. ":") - it is
  8560. # assumed that no part of a normal pathname contains ";" but that should
  8561. # okay in the real world where ";" in dirpaths is itself problematic.
  8562. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8563. ;;
  8564. *)
  8565. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8566. ;;
  8567. esac
  8568. # Ok, now we have the path, separated by spaces, we can step through it
  8569. # and add multilib dir if necessary.
  8570. lt_tmp_lt_search_path_spec=
  8571. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8572. for lt_sys_path in $lt_search_path_spec; do
  8573. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8574. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8575. else
  8576. test -d "$lt_sys_path" && \
  8577. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8578. fi
  8579. done
  8580. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8581. BEGIN {RS=" "; FS="/|\n";} {
  8582. lt_foo="";
  8583. lt_count=0;
  8584. for (lt_i = NF; lt_i > 0; lt_i--) {
  8585. if ($lt_i != "" && $lt_i != ".") {
  8586. if ($lt_i == "..") {
  8587. lt_count++;
  8588. } else {
  8589. if (lt_count == 0) {
  8590. lt_foo="/" $lt_i lt_foo;
  8591. } else {
  8592. lt_count--;
  8593. }
  8594. }
  8595. }
  8596. }
  8597. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8598. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8599. }'`
  8600. # AWK program above erroneously prepends '/' to C:/dos/paths
  8601. # for these hosts.
  8602. case $host_os in
  8603. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8604. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8605. esac
  8606. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8607. else
  8608. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8609. fi
  8610. library_names_spec=
  8611. libname_spec='lib$name'
  8612. soname_spec=
  8613. shrext_cmds=".so"
  8614. postinstall_cmds=
  8615. postuninstall_cmds=
  8616. finish_cmds=
  8617. finish_eval=
  8618. shlibpath_var=
  8619. shlibpath_overrides_runpath=unknown
  8620. version_type=none
  8621. dynamic_linker="$host_os ld.so"
  8622. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8623. need_lib_prefix=unknown
  8624. hardcode_into_libs=no
  8625. # when you set need_version to no, make sure it does not cause -set_version
  8626. # flags to be left without arguments
  8627. need_version=unknown
  8628. case $host_os in
  8629. aix3*)
  8630. version_type=linux # correct to gnu/linux during the next big refactor
  8631. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8632. shlibpath_var=LIBPATH
  8633. # AIX 3 has no versioning support, so we append a major version to the name.
  8634. soname_spec='${libname}${release}${shared_ext}$major'
  8635. ;;
  8636. aix[4-9]*)
  8637. version_type=linux # correct to gnu/linux during the next big refactor
  8638. need_lib_prefix=no
  8639. need_version=no
  8640. hardcode_into_libs=yes
  8641. if test "$host_cpu" = ia64; then
  8642. # AIX 5 supports IA64
  8643. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8644. shlibpath_var=LD_LIBRARY_PATH
  8645. else
  8646. # With GCC up to 2.95.x, collect2 would create an import file
  8647. # for dependence libraries. The import file would start with
  8648. # the line `#! .'. This would cause the generated library to
  8649. # depend on `.', always an invalid library. This was fixed in
  8650. # development snapshots of GCC prior to 3.0.
  8651. case $host_os in
  8652. aix4 | aix4.[01] | aix4.[01].*)
  8653. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8654. echo ' yes '
  8655. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8656. :
  8657. else
  8658. can_build_shared=no
  8659. fi
  8660. ;;
  8661. esac
  8662. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8663. # soname into executable. Probably we can add versioning support to
  8664. # collect2, so additional links can be useful in future.
  8665. if test "$aix_use_runtimelinking" = yes; then
  8666. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8667. # instead of lib<name>.a to let people know that these are not
  8668. # typical AIX shared libraries.
  8669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8670. else
  8671. # We preserve .a as extension for shared libraries through AIX4.2
  8672. # and later when we are not doing run time linking.
  8673. library_names_spec='${libname}${release}.a $libname.a'
  8674. soname_spec='${libname}${release}${shared_ext}$major'
  8675. fi
  8676. shlibpath_var=LIBPATH
  8677. fi
  8678. ;;
  8679. amigaos*)
  8680. case $host_cpu in
  8681. powerpc)
  8682. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8683. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8685. ;;
  8686. m68k)
  8687. library_names_spec='$libname.ixlibrary $libname.a'
  8688. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8689. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8690. ;;
  8691. esac
  8692. ;;
  8693. beos*)
  8694. library_names_spec='${libname}${shared_ext}'
  8695. dynamic_linker="$host_os ld.so"
  8696. shlibpath_var=LIBRARY_PATH
  8697. ;;
  8698. bsdi[45]*)
  8699. version_type=linux # correct to gnu/linux during the next big refactor
  8700. need_version=no
  8701. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8702. soname_spec='${libname}${release}${shared_ext}$major'
  8703. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8704. shlibpath_var=LD_LIBRARY_PATH
  8705. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8706. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8707. # the default ld.so.conf also contains /usr/contrib/lib and
  8708. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8709. # libtool to hard-code these into programs
  8710. ;;
  8711. cygwin* | mingw* | pw32* | cegcc*)
  8712. version_type=windows
  8713. shrext_cmds=".dll"
  8714. need_version=no
  8715. need_lib_prefix=no
  8716. case $GCC,$cc_basename in
  8717. yes,*)
  8718. # gcc
  8719. library_names_spec='$libname.dll.a'
  8720. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8721. postinstall_cmds='base_file=`basename \${file}`~
  8722. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8723. dldir=$destdir/`dirname \$dlpath`~
  8724. test -d \$dldir || mkdir -p \$dldir~
  8725. $install_prog $dir/$dlname \$dldir/$dlname~
  8726. chmod a+x \$dldir/$dlname~
  8727. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8728. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8729. fi'
  8730. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8731. dlpath=$dir/\$dldll~
  8732. $RM \$dlpath'
  8733. shlibpath_overrides_runpath=yes
  8734. case $host_os in
  8735. cygwin*)
  8736. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8737. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8738. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8739. ;;
  8740. mingw* | cegcc*)
  8741. # MinGW DLLs use traditional 'lib' prefix
  8742. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8743. ;;
  8744. pw32*)
  8745. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8746. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8747. ;;
  8748. esac
  8749. dynamic_linker='Win32 ld.exe'
  8750. ;;
  8751. *,cl*)
  8752. # Native MSVC
  8753. libname_spec='$name'
  8754. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8755. library_names_spec='${libname}.dll.lib'
  8756. case $build_os in
  8757. mingw*)
  8758. sys_lib_search_path_spec=
  8759. lt_save_ifs=$IFS
  8760. IFS=';'
  8761. for lt_path in $LIB
  8762. do
  8763. IFS=$lt_save_ifs
  8764. # Let DOS variable expansion print the short 8.3 style file name.
  8765. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8766. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8767. done
  8768. IFS=$lt_save_ifs
  8769. # Convert to MSYS style.
  8770. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8771. ;;
  8772. cygwin*)
  8773. # Convert to unix form, then to dos form, then back to unix form
  8774. # but this time dos style (no spaces!) so that the unix form looks
  8775. # like /cygdrive/c/PROGRA~1:/cygdr...
  8776. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8777. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8778. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8779. ;;
  8780. *)
  8781. sys_lib_search_path_spec="$LIB"
  8782. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8783. # It is most probably a Windows format PATH.
  8784. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8785. else
  8786. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8787. fi
  8788. # FIXME: find the short name or the path components, as spaces are
  8789. # common. (e.g. "Program Files" -> "PROGRA~1")
  8790. ;;
  8791. esac
  8792. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8793. postinstall_cmds='base_file=`basename \${file}`~
  8794. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8795. dldir=$destdir/`dirname \$dlpath`~
  8796. test -d \$dldir || mkdir -p \$dldir~
  8797. $install_prog $dir/$dlname \$dldir/$dlname'
  8798. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8799. dlpath=$dir/\$dldll~
  8800. $RM \$dlpath'
  8801. shlibpath_overrides_runpath=yes
  8802. dynamic_linker='Win32 link.exe'
  8803. ;;
  8804. *)
  8805. # Assume MSVC wrapper
  8806. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8807. dynamic_linker='Win32 ld.exe'
  8808. ;;
  8809. esac
  8810. # FIXME: first we should search . and the directory the executable is in
  8811. shlibpath_var=PATH
  8812. ;;
  8813. darwin* | rhapsody*)
  8814. dynamic_linker="$host_os dyld"
  8815. version_type=darwin
  8816. need_lib_prefix=no
  8817. need_version=no
  8818. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8819. soname_spec='${libname}${release}${major}$shared_ext'
  8820. shlibpath_overrides_runpath=yes
  8821. shlibpath_var=DYLD_LIBRARY_PATH
  8822. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8823. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8824. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8825. ;;
  8826. dgux*)
  8827. version_type=linux # correct to gnu/linux during the next big refactor
  8828. need_lib_prefix=no
  8829. need_version=no
  8830. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8831. soname_spec='${libname}${release}${shared_ext}$major'
  8832. shlibpath_var=LD_LIBRARY_PATH
  8833. ;;
  8834. freebsd* | dragonfly*)
  8835. # DragonFly does not have aout. When/if they implement a new
  8836. # versioning mechanism, adjust this.
  8837. if test -x /usr/bin/objformat; then
  8838. objformat=`/usr/bin/objformat`
  8839. else
  8840. case $host_os in
  8841. freebsd[23].*) objformat=aout ;;
  8842. *) objformat=elf ;;
  8843. esac
  8844. fi
  8845. version_type=freebsd-$objformat
  8846. case $version_type in
  8847. freebsd-elf*)
  8848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8849. need_version=no
  8850. need_lib_prefix=no
  8851. ;;
  8852. freebsd-*)
  8853. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8854. need_version=yes
  8855. ;;
  8856. esac
  8857. shlibpath_var=LD_LIBRARY_PATH
  8858. case $host_os in
  8859. freebsd2.*)
  8860. shlibpath_overrides_runpath=yes
  8861. ;;
  8862. freebsd3.[01]* | freebsdelf3.[01]*)
  8863. shlibpath_overrides_runpath=yes
  8864. hardcode_into_libs=yes
  8865. ;;
  8866. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8867. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8868. shlibpath_overrides_runpath=no
  8869. hardcode_into_libs=yes
  8870. ;;
  8871. *) # from 4.6 on, and DragonFly
  8872. shlibpath_overrides_runpath=yes
  8873. hardcode_into_libs=yes
  8874. ;;
  8875. esac
  8876. ;;
  8877. gnu*)
  8878. version_type=linux # correct to gnu/linux during the next big refactor
  8879. need_lib_prefix=no
  8880. need_version=no
  8881. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8882. soname_spec='${libname}${release}${shared_ext}$major'
  8883. shlibpath_var=LD_LIBRARY_PATH
  8884. shlibpath_overrides_runpath=no
  8885. hardcode_into_libs=yes
  8886. ;;
  8887. haiku*)
  8888. version_type=linux # correct to gnu/linux during the next big refactor
  8889. need_lib_prefix=no
  8890. need_version=no
  8891. dynamic_linker="$host_os runtime_loader"
  8892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8893. soname_spec='${libname}${release}${shared_ext}$major'
  8894. shlibpath_var=LIBRARY_PATH
  8895. shlibpath_overrides_runpath=yes
  8896. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8897. hardcode_into_libs=yes
  8898. ;;
  8899. hpux9* | hpux10* | hpux11*)
  8900. # Give a soname corresponding to the major version so that dld.sl refuses to
  8901. # link against other versions.
  8902. version_type=sunos
  8903. need_lib_prefix=no
  8904. need_version=no
  8905. case $host_cpu in
  8906. ia64*)
  8907. shrext_cmds='.so'
  8908. hardcode_into_libs=yes
  8909. dynamic_linker="$host_os dld.so"
  8910. shlibpath_var=LD_LIBRARY_PATH
  8911. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8913. soname_spec='${libname}${release}${shared_ext}$major'
  8914. if test "X$HPUX_IA64_MODE" = X32; then
  8915. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8916. else
  8917. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8918. fi
  8919. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8920. ;;
  8921. hppa*64*)
  8922. shrext_cmds='.sl'
  8923. hardcode_into_libs=yes
  8924. dynamic_linker="$host_os dld.sl"
  8925. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8926. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8928. soname_spec='${libname}${release}${shared_ext}$major'
  8929. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8930. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8931. ;;
  8932. *)
  8933. shrext_cmds='.sl'
  8934. dynamic_linker="$host_os dld.sl"
  8935. shlibpath_var=SHLIB_PATH
  8936. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8938. soname_spec='${libname}${release}${shared_ext}$major'
  8939. ;;
  8940. esac
  8941. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8942. postinstall_cmds='chmod 555 $lib'
  8943. # or fails outright, so override atomically:
  8944. install_override_mode=555
  8945. ;;
  8946. interix[3-9]*)
  8947. version_type=linux # correct to gnu/linux during the next big refactor
  8948. need_lib_prefix=no
  8949. need_version=no
  8950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8951. soname_spec='${libname}${release}${shared_ext}$major'
  8952. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8953. shlibpath_var=LD_LIBRARY_PATH
  8954. shlibpath_overrides_runpath=no
  8955. hardcode_into_libs=yes
  8956. ;;
  8957. irix5* | irix6* | nonstopux*)
  8958. case $host_os in
  8959. nonstopux*) version_type=nonstopux ;;
  8960. *)
  8961. if test "$lt_cv_prog_gnu_ld" = yes; then
  8962. version_type=linux # correct to gnu/linux during the next big refactor
  8963. else
  8964. version_type=irix
  8965. fi ;;
  8966. esac
  8967. need_lib_prefix=no
  8968. need_version=no
  8969. soname_spec='${libname}${release}${shared_ext}$major'
  8970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8971. case $host_os in
  8972. irix5* | nonstopux*)
  8973. libsuff= shlibsuff=
  8974. ;;
  8975. *)
  8976. case $LD in # libtool.m4 will add one of these switches to LD
  8977. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8978. libsuff= shlibsuff= libmagic=32-bit;;
  8979. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8980. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8981. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8982. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8983. *) libsuff= shlibsuff= libmagic=never-match;;
  8984. esac
  8985. ;;
  8986. esac
  8987. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8988. shlibpath_overrides_runpath=no
  8989. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8990. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8991. hardcode_into_libs=yes
  8992. ;;
  8993. # No shared lib support for Linux oldld, aout, or coff.
  8994. linux*oldld* | linux*aout* | linux*coff*)
  8995. dynamic_linker=no
  8996. ;;
  8997. # This must be glibc/ELF.
  8998. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8999. version_type=linux # correct to gnu/linux during the next big refactor
  9000. need_lib_prefix=no
  9001. need_version=no
  9002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9003. soname_spec='${libname}${release}${shared_ext}$major'
  9004. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9005. shlibpath_var=LD_LIBRARY_PATH
  9006. shlibpath_overrides_runpath=no
  9007. # Some binutils ld are patched to set DT_RUNPATH
  9008. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9009. $as_echo_n "(cached) " >&6
  9010. else
  9011. lt_cv_shlibpath_overrides_runpath=no
  9012. save_LDFLAGS=$LDFLAGS
  9013. save_libdir=$libdir
  9014. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9015. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9017. /* end confdefs.h. */
  9018. int
  9019. main ()
  9020. {
  9021. ;
  9022. return 0;
  9023. }
  9024. _ACEOF
  9025. if ac_fn_c_try_link "$LINENO"; then :
  9026. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9027. lt_cv_shlibpath_overrides_runpath=yes
  9028. fi
  9029. fi
  9030. rm -f core conftest.err conftest.$ac_objext \
  9031. conftest$ac_exeext conftest.$ac_ext
  9032. LDFLAGS=$save_LDFLAGS
  9033. libdir=$save_libdir
  9034. fi
  9035. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9036. # This implies no fast_install, which is unacceptable.
  9037. # Some rework will be needed to allow for fast_install
  9038. # before this can be enabled.
  9039. hardcode_into_libs=yes
  9040. # Append ld.so.conf contents to the search path
  9041. if test -f /etc/ld.so.conf; then
  9042. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9043. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9044. fi
  9045. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9046. # powerpc, because MkLinux only supported shared libraries with the
  9047. # GNU dynamic linker. Since this was broken with cross compilers,
  9048. # most powerpc-linux boxes support dynamic linking these days and
  9049. # people can always --disable-shared, the test was removed, and we
  9050. # assume the GNU/Linux dynamic linker is in use.
  9051. dynamic_linker='GNU/Linux ld.so'
  9052. ;;
  9053. netbsd*)
  9054. version_type=sunos
  9055. need_lib_prefix=no
  9056. need_version=no
  9057. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9059. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9060. dynamic_linker='NetBSD (a.out) ld.so'
  9061. else
  9062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9063. soname_spec='${libname}${release}${shared_ext}$major'
  9064. dynamic_linker='NetBSD ld.elf_so'
  9065. fi
  9066. shlibpath_var=LD_LIBRARY_PATH
  9067. shlibpath_overrides_runpath=yes
  9068. hardcode_into_libs=yes
  9069. ;;
  9070. newsos6)
  9071. version_type=linux # correct to gnu/linux during the next big refactor
  9072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9073. shlibpath_var=LD_LIBRARY_PATH
  9074. shlibpath_overrides_runpath=yes
  9075. ;;
  9076. *nto* | *qnx*)
  9077. version_type=qnx
  9078. need_lib_prefix=no
  9079. need_version=no
  9080. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9081. soname_spec='${libname}${release}${shared_ext}$major'
  9082. shlibpath_var=LD_LIBRARY_PATH
  9083. shlibpath_overrides_runpath=no
  9084. hardcode_into_libs=yes
  9085. dynamic_linker='ldqnx.so'
  9086. ;;
  9087. openbsd*)
  9088. version_type=sunos
  9089. sys_lib_dlsearch_path_spec="/usr/lib"
  9090. need_lib_prefix=no
  9091. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9092. case $host_os in
  9093. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9094. *) need_version=no ;;
  9095. esac
  9096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9097. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9098. shlibpath_var=LD_LIBRARY_PATH
  9099. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9100. case $host_os in
  9101. openbsd2.[89] | openbsd2.[89].*)
  9102. shlibpath_overrides_runpath=no
  9103. ;;
  9104. *)
  9105. shlibpath_overrides_runpath=yes
  9106. ;;
  9107. esac
  9108. else
  9109. shlibpath_overrides_runpath=yes
  9110. fi
  9111. ;;
  9112. os2*)
  9113. libname_spec='$name'
  9114. shrext_cmds=".dll"
  9115. need_lib_prefix=no
  9116. library_names_spec='$libname${shared_ext} $libname.a'
  9117. dynamic_linker='OS/2 ld.exe'
  9118. shlibpath_var=LIBPATH
  9119. ;;
  9120. osf3* | osf4* | osf5*)
  9121. version_type=osf
  9122. need_lib_prefix=no
  9123. need_version=no
  9124. soname_spec='${libname}${release}${shared_ext}$major'
  9125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9126. shlibpath_var=LD_LIBRARY_PATH
  9127. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9128. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9129. ;;
  9130. rdos*)
  9131. dynamic_linker=no
  9132. ;;
  9133. solaris*)
  9134. version_type=linux # correct to gnu/linux during the next big refactor
  9135. need_lib_prefix=no
  9136. need_version=no
  9137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9138. soname_spec='${libname}${release}${shared_ext}$major'
  9139. shlibpath_var=LD_LIBRARY_PATH
  9140. shlibpath_overrides_runpath=yes
  9141. hardcode_into_libs=yes
  9142. # ldd complains unless libraries are executable
  9143. postinstall_cmds='chmod +x $lib'
  9144. ;;
  9145. sunos4*)
  9146. version_type=sunos
  9147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9148. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9149. shlibpath_var=LD_LIBRARY_PATH
  9150. shlibpath_overrides_runpath=yes
  9151. if test "$with_gnu_ld" = yes; then
  9152. need_lib_prefix=no
  9153. fi
  9154. need_version=yes
  9155. ;;
  9156. sysv4 | sysv4.3*)
  9157. version_type=linux # correct to gnu/linux during the next big refactor
  9158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9159. soname_spec='${libname}${release}${shared_ext}$major'
  9160. shlibpath_var=LD_LIBRARY_PATH
  9161. case $host_vendor in
  9162. sni)
  9163. shlibpath_overrides_runpath=no
  9164. need_lib_prefix=no
  9165. runpath_var=LD_RUN_PATH
  9166. ;;
  9167. siemens)
  9168. need_lib_prefix=no
  9169. ;;
  9170. motorola)
  9171. need_lib_prefix=no
  9172. need_version=no
  9173. shlibpath_overrides_runpath=no
  9174. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9175. ;;
  9176. esac
  9177. ;;
  9178. sysv4*MP*)
  9179. if test -d /usr/nec ;then
  9180. version_type=linux # correct to gnu/linux during the next big refactor
  9181. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9182. soname_spec='$libname${shared_ext}.$major'
  9183. shlibpath_var=LD_LIBRARY_PATH
  9184. fi
  9185. ;;
  9186. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9187. version_type=freebsd-elf
  9188. need_lib_prefix=no
  9189. need_version=no
  9190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9191. soname_spec='${libname}${release}${shared_ext}$major'
  9192. shlibpath_var=LD_LIBRARY_PATH
  9193. shlibpath_overrides_runpath=yes
  9194. hardcode_into_libs=yes
  9195. if test "$with_gnu_ld" = yes; then
  9196. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9197. else
  9198. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9199. case $host_os in
  9200. sco3.2v5*)
  9201. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9202. ;;
  9203. esac
  9204. fi
  9205. sys_lib_dlsearch_path_spec='/usr/lib'
  9206. ;;
  9207. tpf*)
  9208. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9209. version_type=linux # correct to gnu/linux during the next big refactor
  9210. need_lib_prefix=no
  9211. need_version=no
  9212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9213. shlibpath_var=LD_LIBRARY_PATH
  9214. shlibpath_overrides_runpath=no
  9215. hardcode_into_libs=yes
  9216. ;;
  9217. uts4*)
  9218. version_type=linux # correct to gnu/linux during the next big refactor
  9219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9220. soname_spec='${libname}${release}${shared_ext}$major'
  9221. shlibpath_var=LD_LIBRARY_PATH
  9222. ;;
  9223. *)
  9224. dynamic_linker=no
  9225. ;;
  9226. esac
  9227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9228. $as_echo "$dynamic_linker" >&6; }
  9229. test "$dynamic_linker" = no && can_build_shared=no
  9230. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9231. if test "$GCC" = yes; then
  9232. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9233. fi
  9234. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9235. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9236. fi
  9237. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9238. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9239. fi
  9240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9241. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9242. hardcode_action=
  9243. if test -n "$hardcode_libdir_flag_spec" ||
  9244. test -n "$runpath_var" ||
  9245. test "X$hardcode_automatic" = "Xyes" ; then
  9246. # We can hardcode non-existent directories.
  9247. if test "$hardcode_direct" != no &&
  9248. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9249. # have to relink, otherwise we might link with an installed library
  9250. # when we should be linking with a yet-to-be-installed one
  9251. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9252. test "$hardcode_minus_L" != no; then
  9253. # Linking always hardcodes the temporary library directory.
  9254. hardcode_action=relink
  9255. else
  9256. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9257. hardcode_action=immediate
  9258. fi
  9259. else
  9260. # We cannot hardcode anything, or else we can only hardcode existing
  9261. # directories.
  9262. hardcode_action=unsupported
  9263. fi
  9264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9265. $as_echo "$hardcode_action" >&6; }
  9266. if test "$hardcode_action" = relink ||
  9267. test "$inherit_rpath" = yes; then
  9268. # Fast installation is not supported
  9269. enable_fast_install=no
  9270. elif test "$shlibpath_overrides_runpath" = yes ||
  9271. test "$enable_shared" = no; then
  9272. # Fast installation is not necessary
  9273. enable_fast_install=needless
  9274. fi
  9275. if test "x$enable_dlopen" != xyes; then
  9276. enable_dlopen=unknown
  9277. enable_dlopen_self=unknown
  9278. enable_dlopen_self_static=unknown
  9279. else
  9280. lt_cv_dlopen=no
  9281. lt_cv_dlopen_libs=
  9282. case $host_os in
  9283. beos*)
  9284. lt_cv_dlopen="load_add_on"
  9285. lt_cv_dlopen_libs=
  9286. lt_cv_dlopen_self=yes
  9287. ;;
  9288. mingw* | pw32* | cegcc*)
  9289. lt_cv_dlopen="LoadLibrary"
  9290. lt_cv_dlopen_libs=
  9291. ;;
  9292. cygwin*)
  9293. lt_cv_dlopen="dlopen"
  9294. lt_cv_dlopen_libs=
  9295. ;;
  9296. darwin*)
  9297. # if libdl is installed we need to link against it
  9298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9299. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9300. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9301. $as_echo_n "(cached) " >&6
  9302. else
  9303. ac_check_lib_save_LIBS=$LIBS
  9304. LIBS="-ldl $LIBS"
  9305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9306. /* end confdefs.h. */
  9307. /* Override any GCC internal prototype to avoid an error.
  9308. Use char because int might match the return type of a GCC
  9309. builtin and then its argument prototype would still apply. */
  9310. #ifdef __cplusplus
  9311. extern "C"
  9312. #endif
  9313. char dlopen ();
  9314. int
  9315. main ()
  9316. {
  9317. return dlopen ();
  9318. ;
  9319. return 0;
  9320. }
  9321. _ACEOF
  9322. if ac_fn_c_try_link "$LINENO"; then :
  9323. ac_cv_lib_dl_dlopen=yes
  9324. else
  9325. ac_cv_lib_dl_dlopen=no
  9326. fi
  9327. rm -f core conftest.err conftest.$ac_objext \
  9328. conftest$ac_exeext conftest.$ac_ext
  9329. LIBS=$ac_check_lib_save_LIBS
  9330. fi
  9331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9332. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9333. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9334. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9335. else
  9336. lt_cv_dlopen="dyld"
  9337. lt_cv_dlopen_libs=
  9338. lt_cv_dlopen_self=yes
  9339. fi
  9340. ;;
  9341. *)
  9342. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9343. if test "x$ac_cv_func_shl_load" = xyes; then :
  9344. lt_cv_dlopen="shl_load"
  9345. else
  9346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9347. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9348. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9349. $as_echo_n "(cached) " >&6
  9350. else
  9351. ac_check_lib_save_LIBS=$LIBS
  9352. LIBS="-ldld $LIBS"
  9353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9354. /* end confdefs.h. */
  9355. /* Override any GCC internal prototype to avoid an error.
  9356. Use char because int might match the return type of a GCC
  9357. builtin and then its argument prototype would still apply. */
  9358. #ifdef __cplusplus
  9359. extern "C"
  9360. #endif
  9361. char shl_load ();
  9362. int
  9363. main ()
  9364. {
  9365. return shl_load ();
  9366. ;
  9367. return 0;
  9368. }
  9369. _ACEOF
  9370. if ac_fn_c_try_link "$LINENO"; then :
  9371. ac_cv_lib_dld_shl_load=yes
  9372. else
  9373. ac_cv_lib_dld_shl_load=no
  9374. fi
  9375. rm -f core conftest.err conftest.$ac_objext \
  9376. conftest$ac_exeext conftest.$ac_ext
  9377. LIBS=$ac_check_lib_save_LIBS
  9378. fi
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9380. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9381. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9382. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9383. else
  9384. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9385. if test "x$ac_cv_func_dlopen" = xyes; then :
  9386. lt_cv_dlopen="dlopen"
  9387. else
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9389. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9390. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9391. $as_echo_n "(cached) " >&6
  9392. else
  9393. ac_check_lib_save_LIBS=$LIBS
  9394. LIBS="-ldl $LIBS"
  9395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9396. /* end confdefs.h. */
  9397. /* Override any GCC internal prototype to avoid an error.
  9398. Use char because int might match the return type of a GCC
  9399. builtin and then its argument prototype would still apply. */
  9400. #ifdef __cplusplus
  9401. extern "C"
  9402. #endif
  9403. char dlopen ();
  9404. int
  9405. main ()
  9406. {
  9407. return dlopen ();
  9408. ;
  9409. return 0;
  9410. }
  9411. _ACEOF
  9412. if ac_fn_c_try_link "$LINENO"; then :
  9413. ac_cv_lib_dl_dlopen=yes
  9414. else
  9415. ac_cv_lib_dl_dlopen=no
  9416. fi
  9417. rm -f core conftest.err conftest.$ac_objext \
  9418. conftest$ac_exeext conftest.$ac_ext
  9419. LIBS=$ac_check_lib_save_LIBS
  9420. fi
  9421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9422. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9423. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9424. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9425. else
  9426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9427. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9428. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9429. $as_echo_n "(cached) " >&6
  9430. else
  9431. ac_check_lib_save_LIBS=$LIBS
  9432. LIBS="-lsvld $LIBS"
  9433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9434. /* end confdefs.h. */
  9435. /* Override any GCC internal prototype to avoid an error.
  9436. Use char because int might match the return type of a GCC
  9437. builtin and then its argument prototype would still apply. */
  9438. #ifdef __cplusplus
  9439. extern "C"
  9440. #endif
  9441. char dlopen ();
  9442. int
  9443. main ()
  9444. {
  9445. return dlopen ();
  9446. ;
  9447. return 0;
  9448. }
  9449. _ACEOF
  9450. if ac_fn_c_try_link "$LINENO"; then :
  9451. ac_cv_lib_svld_dlopen=yes
  9452. else
  9453. ac_cv_lib_svld_dlopen=no
  9454. fi
  9455. rm -f core conftest.err conftest.$ac_objext \
  9456. conftest$ac_exeext conftest.$ac_ext
  9457. LIBS=$ac_check_lib_save_LIBS
  9458. fi
  9459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9460. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9461. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9462. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9463. else
  9464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9465. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9466. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9467. $as_echo_n "(cached) " >&6
  9468. else
  9469. ac_check_lib_save_LIBS=$LIBS
  9470. LIBS="-ldld $LIBS"
  9471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9472. /* end confdefs.h. */
  9473. /* Override any GCC internal prototype to avoid an error.
  9474. Use char because int might match the return type of a GCC
  9475. builtin and then its argument prototype would still apply. */
  9476. #ifdef __cplusplus
  9477. extern "C"
  9478. #endif
  9479. char dld_link ();
  9480. int
  9481. main ()
  9482. {
  9483. return dld_link ();
  9484. ;
  9485. return 0;
  9486. }
  9487. _ACEOF
  9488. if ac_fn_c_try_link "$LINENO"; then :
  9489. ac_cv_lib_dld_dld_link=yes
  9490. else
  9491. ac_cv_lib_dld_dld_link=no
  9492. fi
  9493. rm -f core conftest.err conftest.$ac_objext \
  9494. conftest$ac_exeext conftest.$ac_ext
  9495. LIBS=$ac_check_lib_save_LIBS
  9496. fi
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9498. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9499. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9500. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9501. fi
  9502. fi
  9503. fi
  9504. fi
  9505. fi
  9506. fi
  9507. ;;
  9508. esac
  9509. if test "x$lt_cv_dlopen" != xno; then
  9510. enable_dlopen=yes
  9511. else
  9512. enable_dlopen=no
  9513. fi
  9514. case $lt_cv_dlopen in
  9515. dlopen)
  9516. save_CPPFLAGS="$CPPFLAGS"
  9517. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9518. save_LDFLAGS="$LDFLAGS"
  9519. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9520. save_LIBS="$LIBS"
  9521. LIBS="$lt_cv_dlopen_libs $LIBS"
  9522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9523. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9524. if ${lt_cv_dlopen_self+:} false; then :
  9525. $as_echo_n "(cached) " >&6
  9526. else
  9527. if test "$cross_compiling" = yes; then :
  9528. lt_cv_dlopen_self=cross
  9529. else
  9530. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9531. lt_status=$lt_dlunknown
  9532. cat > conftest.$ac_ext <<_LT_EOF
  9533. #line $LINENO "configure"
  9534. #include "confdefs.h"
  9535. #if HAVE_DLFCN_H
  9536. #include <dlfcn.h>
  9537. #endif
  9538. #include <stdio.h>
  9539. #ifdef RTLD_GLOBAL
  9540. # define LT_DLGLOBAL RTLD_GLOBAL
  9541. #else
  9542. # ifdef DL_GLOBAL
  9543. # define LT_DLGLOBAL DL_GLOBAL
  9544. # else
  9545. # define LT_DLGLOBAL 0
  9546. # endif
  9547. #endif
  9548. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9549. find out it does not work in some platform. */
  9550. #ifndef LT_DLLAZY_OR_NOW
  9551. # ifdef RTLD_LAZY
  9552. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9553. # else
  9554. # ifdef DL_LAZY
  9555. # define LT_DLLAZY_OR_NOW DL_LAZY
  9556. # else
  9557. # ifdef RTLD_NOW
  9558. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9559. # else
  9560. # ifdef DL_NOW
  9561. # define LT_DLLAZY_OR_NOW DL_NOW
  9562. # else
  9563. # define LT_DLLAZY_OR_NOW 0
  9564. # endif
  9565. # endif
  9566. # endif
  9567. # endif
  9568. #endif
  9569. /* When -fvisbility=hidden is used, assume the code has been annotated
  9570. correspondingly for the symbols needed. */
  9571. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9572. int fnord () __attribute__((visibility("default")));
  9573. #endif
  9574. int fnord () { return 42; }
  9575. int main ()
  9576. {
  9577. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9578. int status = $lt_dlunknown;
  9579. if (self)
  9580. {
  9581. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9582. else
  9583. {
  9584. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9585. else puts (dlerror ());
  9586. }
  9587. /* dlclose (self); */
  9588. }
  9589. else
  9590. puts (dlerror ());
  9591. return status;
  9592. }
  9593. _LT_EOF
  9594. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9595. (eval $ac_link) 2>&5
  9596. ac_status=$?
  9597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9598. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9599. (./conftest; exit; ) >&5 2>/dev/null
  9600. lt_status=$?
  9601. case x$lt_status in
  9602. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9603. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9604. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9605. esac
  9606. else :
  9607. # compilation failed
  9608. lt_cv_dlopen_self=no
  9609. fi
  9610. fi
  9611. rm -fr conftest*
  9612. fi
  9613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9614. $as_echo "$lt_cv_dlopen_self" >&6; }
  9615. if test "x$lt_cv_dlopen_self" = xyes; then
  9616. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9618. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9619. if ${lt_cv_dlopen_self_static+:} false; then :
  9620. $as_echo_n "(cached) " >&6
  9621. else
  9622. if test "$cross_compiling" = yes; then :
  9623. lt_cv_dlopen_self_static=cross
  9624. else
  9625. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9626. lt_status=$lt_dlunknown
  9627. cat > conftest.$ac_ext <<_LT_EOF
  9628. #line $LINENO "configure"
  9629. #include "confdefs.h"
  9630. #if HAVE_DLFCN_H
  9631. #include <dlfcn.h>
  9632. #endif
  9633. #include <stdio.h>
  9634. #ifdef RTLD_GLOBAL
  9635. # define LT_DLGLOBAL RTLD_GLOBAL
  9636. #else
  9637. # ifdef DL_GLOBAL
  9638. # define LT_DLGLOBAL DL_GLOBAL
  9639. # else
  9640. # define LT_DLGLOBAL 0
  9641. # endif
  9642. #endif
  9643. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9644. find out it does not work in some platform. */
  9645. #ifndef LT_DLLAZY_OR_NOW
  9646. # ifdef RTLD_LAZY
  9647. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9648. # else
  9649. # ifdef DL_LAZY
  9650. # define LT_DLLAZY_OR_NOW DL_LAZY
  9651. # else
  9652. # ifdef RTLD_NOW
  9653. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9654. # else
  9655. # ifdef DL_NOW
  9656. # define LT_DLLAZY_OR_NOW DL_NOW
  9657. # else
  9658. # define LT_DLLAZY_OR_NOW 0
  9659. # endif
  9660. # endif
  9661. # endif
  9662. # endif
  9663. #endif
  9664. /* When -fvisbility=hidden is used, assume the code has been annotated
  9665. correspondingly for the symbols needed. */
  9666. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9667. int fnord () __attribute__((visibility("default")));
  9668. #endif
  9669. int fnord () { return 42; }
  9670. int main ()
  9671. {
  9672. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9673. int status = $lt_dlunknown;
  9674. if (self)
  9675. {
  9676. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9677. else
  9678. {
  9679. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9680. else puts (dlerror ());
  9681. }
  9682. /* dlclose (self); */
  9683. }
  9684. else
  9685. puts (dlerror ());
  9686. return status;
  9687. }
  9688. _LT_EOF
  9689. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9690. (eval $ac_link) 2>&5
  9691. ac_status=$?
  9692. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9693. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9694. (./conftest; exit; ) >&5 2>/dev/null
  9695. lt_status=$?
  9696. case x$lt_status in
  9697. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9698. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9699. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9700. esac
  9701. else :
  9702. # compilation failed
  9703. lt_cv_dlopen_self_static=no
  9704. fi
  9705. fi
  9706. rm -fr conftest*
  9707. fi
  9708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9709. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9710. fi
  9711. CPPFLAGS="$save_CPPFLAGS"
  9712. LDFLAGS="$save_LDFLAGS"
  9713. LIBS="$save_LIBS"
  9714. ;;
  9715. esac
  9716. case $lt_cv_dlopen_self in
  9717. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9718. *) enable_dlopen_self=unknown ;;
  9719. esac
  9720. case $lt_cv_dlopen_self_static in
  9721. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9722. *) enable_dlopen_self_static=unknown ;;
  9723. esac
  9724. fi
  9725. striplib=
  9726. old_striplib=
  9727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9728. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9729. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9730. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9731. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9733. $as_echo "yes" >&6; }
  9734. else
  9735. # FIXME - insert some real tests, host_os isn't really good enough
  9736. case $host_os in
  9737. darwin*)
  9738. if test -n "$STRIP" ; then
  9739. striplib="$STRIP -x"
  9740. old_striplib="$STRIP -S"
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9742. $as_echo "yes" >&6; }
  9743. else
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9745. $as_echo "no" >&6; }
  9746. fi
  9747. ;;
  9748. *)
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9750. $as_echo "no" >&6; }
  9751. ;;
  9752. esac
  9753. fi
  9754. # Report which library types will actually be built
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9756. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9758. $as_echo "$can_build_shared" >&6; }
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9760. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9761. test "$can_build_shared" = "no" && enable_shared=no
  9762. # On AIX, shared libraries and static libraries use the same namespace, and
  9763. # are all built from PIC.
  9764. case $host_os in
  9765. aix3*)
  9766. test "$enable_shared" = yes && enable_static=no
  9767. if test -n "$RANLIB"; then
  9768. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9769. postinstall_cmds='$RANLIB $lib'
  9770. fi
  9771. ;;
  9772. aix[4-9]*)
  9773. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9774. test "$enable_shared" = yes && enable_static=no
  9775. fi
  9776. ;;
  9777. esac
  9778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9779. $as_echo "$enable_shared" >&6; }
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9781. $as_echo_n "checking whether to build static libraries... " >&6; }
  9782. # Make sure either enable_shared or enable_static is yes.
  9783. test "$enable_shared" = yes || enable_static=yes
  9784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9785. $as_echo "$enable_static" >&6; }
  9786. fi
  9787. ac_ext=c
  9788. ac_cpp='$CPP $CPPFLAGS'
  9789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9792. CC="$lt_save_CC"
  9793. ac_config_commands="$ac_config_commands libtool"
  9794. # Only expand once:
  9795. # libtool -version-info
  9796. LT_VERSION=0:47:0
  9797. # Check whether --enable-silent-rules was given.
  9798. if test "${enable_silent_rules+set}" = set; then :
  9799. enableval=$enable_silent_rules;
  9800. fi
  9801. case $enable_silent_rules in # (((
  9802. yes) AM_DEFAULT_VERBOSITY=0;;
  9803. no) AM_DEFAULT_VERBOSITY=1;;
  9804. *) AM_DEFAULT_VERBOSITY=0;;
  9805. esac
  9806. am_make=${MAKE-make}
  9807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  9808. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  9809. if ${am_cv_make_support_nested_variables+:} false; then :
  9810. $as_echo_n "(cached) " >&6
  9811. else
  9812. if $as_echo 'TRUE=$(BAR$(V))
  9813. BAR0=false
  9814. BAR1=true
  9815. V=1
  9816. am__doit:
  9817. @$(TRUE)
  9818. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  9819. am_cv_make_support_nested_variables=yes
  9820. else
  9821. am_cv_make_support_nested_variables=no
  9822. fi
  9823. fi
  9824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  9825. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  9826. if test $am_cv_make_support_nested_variables = yes; then
  9827. AM_V='$(V)'
  9828. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  9829. else
  9830. AM_V=$AM_DEFAULT_VERBOSITY
  9831. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  9832. fi
  9833. AM_BACKSLASH='\'
  9834. # Checks for programs.
  9835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  9836. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  9837. if ${ac_cv_prog_cc_c99+:} false; then :
  9838. $as_echo_n "(cached) " >&6
  9839. else
  9840. ac_cv_prog_cc_c99=no
  9841. ac_save_CC=$CC
  9842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9843. /* end confdefs.h. */
  9844. #include <stdarg.h>
  9845. #include <stdbool.h>
  9846. #include <stdlib.h>
  9847. #include <wchar.h>
  9848. #include <stdio.h>
  9849. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  9850. #define debug(...) fprintf (stderr, __VA_ARGS__)
  9851. #define showlist(...) puts (#__VA_ARGS__)
  9852. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  9853. static void
  9854. test_varargs_macros (void)
  9855. {
  9856. int x = 1234;
  9857. int y = 5678;
  9858. debug ("Flag");
  9859. debug ("X = %d\n", x);
  9860. showlist (The first, second, and third items.);
  9861. report (x>y, "x is %d but y is %d", x, y);
  9862. }
  9863. // Check long long types.
  9864. #define BIG64 18446744073709551615ull
  9865. #define BIG32 4294967295ul
  9866. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  9867. #if !BIG_OK
  9868. your preprocessor is broken;
  9869. #endif
  9870. #if BIG_OK
  9871. #else
  9872. your preprocessor is broken;
  9873. #endif
  9874. static long long int bignum = -9223372036854775807LL;
  9875. static unsigned long long int ubignum = BIG64;
  9876. struct incomplete_array
  9877. {
  9878. int datasize;
  9879. double data[];
  9880. };
  9881. struct named_init {
  9882. int number;
  9883. const wchar_t *name;
  9884. double average;
  9885. };
  9886. typedef const char *ccp;
  9887. static inline int
  9888. test_restrict (ccp restrict text)
  9889. {
  9890. // See if C++-style comments work.
  9891. // Iterate through items via the restricted pointer.
  9892. // Also check for declarations in for loops.
  9893. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  9894. continue;
  9895. return 0;
  9896. }
  9897. // Check varargs and va_copy.
  9898. static void
  9899. test_varargs (const char *format, ...)
  9900. {
  9901. va_list args;
  9902. va_start (args, format);
  9903. va_list args_copy;
  9904. va_copy (args_copy, args);
  9905. const char *str;
  9906. int number;
  9907. float fnumber;
  9908. while (*format)
  9909. {
  9910. switch (*format++)
  9911. {
  9912. case 's': // string
  9913. str = va_arg (args_copy, const char *);
  9914. break;
  9915. case 'd': // int
  9916. number = va_arg (args_copy, int);
  9917. break;
  9918. case 'f': // float
  9919. fnumber = va_arg (args_copy, double);
  9920. break;
  9921. default:
  9922. break;
  9923. }
  9924. }
  9925. va_end (args_copy);
  9926. va_end (args);
  9927. }
  9928. int
  9929. main ()
  9930. {
  9931. // Check bool.
  9932. _Bool success = false;
  9933. // Check restrict.
  9934. if (test_restrict ("String literal") == 0)
  9935. success = true;
  9936. char *restrict newvar = "Another string";
  9937. // Check varargs.
  9938. test_varargs ("s, d' f .", "string", 65, 34.234);
  9939. test_varargs_macros ();
  9940. // Check flexible array members.
  9941. struct incomplete_array *ia =
  9942. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  9943. ia->datasize = 10;
  9944. for (int i = 0; i < ia->datasize; ++i)
  9945. ia->data[i] = i * 1.234;
  9946. // Check named initializers.
  9947. struct named_init ni = {
  9948. .number = 34,
  9949. .name = L"Test wide string",
  9950. .average = 543.34343,
  9951. };
  9952. ni.number = 58;
  9953. int dynamic_array[ni.number];
  9954. dynamic_array[ni.number - 1] = 543;
  9955. // work around unused variable warnings
  9956. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  9957. || dynamic_array[ni.number - 1] != 543);
  9958. ;
  9959. return 0;
  9960. }
  9961. _ACEOF
  9962. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  9963. do
  9964. CC="$ac_save_CC $ac_arg"
  9965. if ac_fn_c_try_compile "$LINENO"; then :
  9966. ac_cv_prog_cc_c99=$ac_arg
  9967. fi
  9968. rm -f core conftest.err conftest.$ac_objext
  9969. test "x$ac_cv_prog_cc_c99" != "xno" && break
  9970. done
  9971. rm -f conftest.$ac_ext
  9972. CC=$ac_save_CC
  9973. fi
  9974. # AC_CACHE_VAL
  9975. case "x$ac_cv_prog_cc_c99" in
  9976. x)
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  9978. $as_echo "none needed" >&6; } ;;
  9979. xno)
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  9981. $as_echo "unsupported" >&6; } ;;
  9982. *)
  9983. CC="$CC $ac_cv_prog_cc_c99"
  9984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  9985. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  9986. esac
  9987. if test "x$ac_cv_prog_cc_c99" != xno; then :
  9988. fi
  9989. #AC_PROG_CC
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  9991. $as_echo_n "checking whether ln -s works... " >&6; }
  9992. LN_S=$as_ln_s
  9993. if test "$LN_S" = "ln -s"; then
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9995. $as_echo "yes" >&6; }
  9996. else
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  9998. $as_echo "no, using $LN_S" >&6; }
  9999. fi
  10000. for ac_prog in gawk mawk nawk awk
  10001. do
  10002. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10003. set dummy $ac_prog; ac_word=$2
  10004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10005. $as_echo_n "checking for $ac_word... " >&6; }
  10006. if ${ac_cv_prog_AWK+:} false; then :
  10007. $as_echo_n "(cached) " >&6
  10008. else
  10009. if test -n "$AWK"; then
  10010. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  10011. else
  10012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10013. for as_dir in $PATH
  10014. do
  10015. IFS=$as_save_IFS
  10016. test -z "$as_dir" && as_dir=.
  10017. for ac_exec_ext in '' $ac_executable_extensions; do
  10018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10019. ac_cv_prog_AWK="$ac_prog"
  10020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10021. break 2
  10022. fi
  10023. done
  10024. done
  10025. IFS=$as_save_IFS
  10026. fi
  10027. fi
  10028. AWK=$ac_cv_prog_AWK
  10029. if test -n "$AWK"; then
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  10031. $as_echo "$AWK" >&6; }
  10032. else
  10033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10034. $as_echo "no" >&6; }
  10035. fi
  10036. test -n "$AWK" && break
  10037. done
  10038. MANTYPE=
  10039. TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
  10040. for ac_prog in nroff awf
  10041. do
  10042. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10043. set dummy $ac_prog; ac_word=$2
  10044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10045. $as_echo_n "checking for $ac_word... " >&6; }
  10046. if ${ac_cv_path_NROFF+:} false; then :
  10047. $as_echo_n "(cached) " >&6
  10048. else
  10049. case $NROFF in
  10050. [\\/]* | ?:[\\/]*)
  10051. ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  10052. ;;
  10053. *)
  10054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10055. for as_dir in $TestPath
  10056. do
  10057. IFS=$as_save_IFS
  10058. test -z "$as_dir" && as_dir=.
  10059. for ac_exec_ext in '' $ac_executable_extensions; do
  10060. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10061. ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
  10062. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10063. break 2
  10064. fi
  10065. done
  10066. done
  10067. IFS=$as_save_IFS
  10068. ;;
  10069. esac
  10070. fi
  10071. NROFF=$ac_cv_path_NROFF
  10072. if test -n "$NROFF"; then
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
  10074. $as_echo "$NROFF" >&6; }
  10075. else
  10076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10077. $as_echo "no" >&6; }
  10078. fi
  10079. test -n "$NROFF" && break
  10080. done
  10081. test -n "$NROFF" || NROFF="/bin/false"
  10082. if ${NROFF} -mdoc ${srcdir}/doc/editrc.5.roff >/dev/null 2>&1; then
  10083. MANTYPE=mdoc
  10084. fi
  10085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
  10086. $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
  10087. if ${ac_cv_lib_tinfo_tgetent+:} false; then :
  10088. $as_echo_n "(cached) " >&6
  10089. else
  10090. ac_check_lib_save_LIBS=$LIBS
  10091. LIBS="-ltinfo $LIBS"
  10092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10093. /* end confdefs.h. */
  10094. /* Override any GCC internal prototype to avoid an error.
  10095. Use char because int might match the return type of a GCC
  10096. builtin and then its argument prototype would still apply. */
  10097. #ifdef __cplusplus
  10098. extern "C"
  10099. #endif
  10100. char tgetent ();
  10101. int
  10102. main ()
  10103. {
  10104. return tgetent ();
  10105. ;
  10106. return 0;
  10107. }
  10108. _ACEOF
  10109. if ac_fn_c_try_link "$LINENO"; then :
  10110. ac_cv_lib_tinfo_tgetent=yes
  10111. else
  10112. ac_cv_lib_tinfo_tgetent=no
  10113. fi
  10114. rm -f core conftest.err conftest.$ac_objext \
  10115. conftest$ac_exeext conftest.$ac_ext
  10116. LIBS=$ac_check_lib_save_LIBS
  10117. fi
  10118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
  10119. $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
  10120. if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
  10121. cat >>confdefs.h <<_ACEOF
  10122. #define HAVE_LIBTINFO 1
  10123. _ACEOF
  10124. LIBS="-ltinfo $LIBS"
  10125. else
  10126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lterminfo" >&5
  10127. $as_echo_n "checking for tgetent in -lterminfo... " >&6; }
  10128. if ${ac_cv_lib_terminfo_tgetent+:} false; then :
  10129. $as_echo_n "(cached) " >&6
  10130. else
  10131. ac_check_lib_save_LIBS=$LIBS
  10132. LIBS="-lterminfo $LIBS"
  10133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10134. /* end confdefs.h. */
  10135. /* Override any GCC internal prototype to avoid an error.
  10136. Use char because int might match the return type of a GCC
  10137. builtin and then its argument prototype would still apply. */
  10138. #ifdef __cplusplus
  10139. extern "C"
  10140. #endif
  10141. char tgetent ();
  10142. int
  10143. main ()
  10144. {
  10145. return tgetent ();
  10146. ;
  10147. return 0;
  10148. }
  10149. _ACEOF
  10150. if ac_fn_c_try_link "$LINENO"; then :
  10151. ac_cv_lib_terminfo_tgetent=yes
  10152. else
  10153. ac_cv_lib_terminfo_tgetent=no
  10154. fi
  10155. rm -f core conftest.err conftest.$ac_objext \
  10156. conftest$ac_exeext conftest.$ac_ext
  10157. LIBS=$ac_check_lib_save_LIBS
  10158. fi
  10159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_terminfo_tgetent" >&5
  10160. $as_echo "$ac_cv_lib_terminfo_tgetent" >&6; }
  10161. if test "x$ac_cv_lib_terminfo_tgetent" = xyes; then :
  10162. cat >>confdefs.h <<_ACEOF
  10163. #define HAVE_LIBTERMINFO 1
  10164. _ACEOF
  10165. LIBS="-lterminfo $LIBS"
  10166. else
  10167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
  10168. $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
  10169. if ${ac_cv_lib_termcap_tgetent+:} false; then :
  10170. $as_echo_n "(cached) " >&6
  10171. else
  10172. ac_check_lib_save_LIBS=$LIBS
  10173. LIBS="-ltermcap $LIBS"
  10174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10175. /* end confdefs.h. */
  10176. /* Override any GCC internal prototype to avoid an error.
  10177. Use char because int might match the return type of a GCC
  10178. builtin and then its argument prototype would still apply. */
  10179. #ifdef __cplusplus
  10180. extern "C"
  10181. #endif
  10182. char tgetent ();
  10183. int
  10184. main ()
  10185. {
  10186. return tgetent ();
  10187. ;
  10188. return 0;
  10189. }
  10190. _ACEOF
  10191. if ac_fn_c_try_link "$LINENO"; then :
  10192. ac_cv_lib_termcap_tgetent=yes
  10193. else
  10194. ac_cv_lib_termcap_tgetent=no
  10195. fi
  10196. rm -f core conftest.err conftest.$ac_objext \
  10197. conftest$ac_exeext conftest.$ac_ext
  10198. LIBS=$ac_check_lib_save_LIBS
  10199. fi
  10200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
  10201. $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
  10202. if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
  10203. cat >>confdefs.h <<_ACEOF
  10204. #define HAVE_LIBTERMCAP 1
  10205. _ACEOF
  10206. LIBS="-ltermcap $LIBS"
  10207. else
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
  10209. $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
  10210. if ${ac_cv_lib_termlib_tgetent+:} false; then :
  10211. $as_echo_n "(cached) " >&6
  10212. else
  10213. ac_check_lib_save_LIBS=$LIBS
  10214. LIBS="-ltermlib $LIBS"
  10215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10216. /* end confdefs.h. */
  10217. /* Override any GCC internal prototype to avoid an error.
  10218. Use char because int might match the return type of a GCC
  10219. builtin and then its argument prototype would still apply. */
  10220. #ifdef __cplusplus
  10221. extern "C"
  10222. #endif
  10223. char tgetent ();
  10224. int
  10225. main ()
  10226. {
  10227. return tgetent ();
  10228. ;
  10229. return 0;
  10230. }
  10231. _ACEOF
  10232. if ac_fn_c_try_link "$LINENO"; then :
  10233. ac_cv_lib_termlib_tgetent=yes
  10234. else
  10235. ac_cv_lib_termlib_tgetent=no
  10236. fi
  10237. rm -f core conftest.err conftest.$ac_objext \
  10238. conftest$ac_exeext conftest.$ac_ext
  10239. LIBS=$ac_check_lib_save_LIBS
  10240. fi
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
  10242. $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
  10243. if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
  10244. cat >>confdefs.h <<_ACEOF
  10245. #define HAVE_LIBTERMLIB 1
  10246. _ACEOF
  10247. LIBS="-ltermlib $LIBS"
  10248. else
  10249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
  10250. $as_echo_n "checking for tgetent in -lcurses... " >&6; }
  10251. if ${ac_cv_lib_curses_tgetent+:} false; then :
  10252. $as_echo_n "(cached) " >&6
  10253. else
  10254. ac_check_lib_save_LIBS=$LIBS
  10255. LIBS="-lcurses $LIBS"
  10256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10257. /* end confdefs.h. */
  10258. /* Override any GCC internal prototype to avoid an error.
  10259. Use char because int might match the return type of a GCC
  10260. builtin and then its argument prototype would still apply. */
  10261. #ifdef __cplusplus
  10262. extern "C"
  10263. #endif
  10264. char tgetent ();
  10265. int
  10266. main ()
  10267. {
  10268. return tgetent ();
  10269. ;
  10270. return 0;
  10271. }
  10272. _ACEOF
  10273. if ac_fn_c_try_link "$LINENO"; then :
  10274. ac_cv_lib_curses_tgetent=yes
  10275. else
  10276. ac_cv_lib_curses_tgetent=no
  10277. fi
  10278. rm -f core conftest.err conftest.$ac_objext \
  10279. conftest$ac_exeext conftest.$ac_ext
  10280. LIBS=$ac_check_lib_save_LIBS
  10281. fi
  10282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
  10283. $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
  10284. if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
  10285. cat >>confdefs.h <<_ACEOF
  10286. #define HAVE_LIBCURSES 1
  10287. _ACEOF
  10288. LIBS="-lcurses $LIBS"
  10289. else
  10290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
  10291. $as_echo_n "checking for tgetent in -lncurses... " >&6; }
  10292. if ${ac_cv_lib_ncurses_tgetent+:} false; then :
  10293. $as_echo_n "(cached) " >&6
  10294. else
  10295. ac_check_lib_save_LIBS=$LIBS
  10296. LIBS="-lncurses $LIBS"
  10297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10298. /* end confdefs.h. */
  10299. /* Override any GCC internal prototype to avoid an error.
  10300. Use char because int might match the return type of a GCC
  10301. builtin and then its argument prototype would still apply. */
  10302. #ifdef __cplusplus
  10303. extern "C"
  10304. #endif
  10305. char tgetent ();
  10306. int
  10307. main ()
  10308. {
  10309. return tgetent ();
  10310. ;
  10311. return 0;
  10312. }
  10313. _ACEOF
  10314. if ac_fn_c_try_link "$LINENO"; then :
  10315. ac_cv_lib_ncurses_tgetent=yes
  10316. else
  10317. ac_cv_lib_ncurses_tgetent=no
  10318. fi
  10319. rm -f core conftest.err conftest.$ac_objext \
  10320. conftest$ac_exeext conftest.$ac_ext
  10321. LIBS=$ac_check_lib_save_LIBS
  10322. fi
  10323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
  10324. $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
  10325. if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
  10326. cat >>confdefs.h <<_ACEOF
  10327. #define HAVE_LIBNCURSES 1
  10328. _ACEOF
  10329. LIBS="-lncurses $LIBS"
  10330. else
  10331. as_fn_error $? "libcurses or libncurses are required!" "$LINENO" 5
  10332. fi
  10333. fi
  10334. fi
  10335. fi
  10336. fi
  10337. fi
  10338. ### use option --enable-widec to turn on use of wide-character support
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want wide-character code" >&5
  10340. $as_echo_n "checking if you want wide-character code... " >&6; }
  10341. # Check whether --enable-widec was given.
  10342. if test "${enable_widec+set}" = set; then :
  10343. enableval=$enable_widec; with_widec=$enableval
  10344. else
  10345. with_widec=no
  10346. fi
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_widec" >&5
  10348. $as_echo "$with_widec" >&6; }
  10349. if test "$with_widec" = yes ; then
  10350. $as_echo "#define WIDECHAR 1" >>confdefs.h
  10351. fi
  10352. if test "$with_widec" = yes; then
  10353. WIDECHAR_TRUE=
  10354. WIDECHAR_FALSE='#'
  10355. else
  10356. WIDECHAR_TRUE='#'
  10357. WIDECHAR_FALSE=
  10358. fi
  10359. # Checks for header files.
  10360. ac_header_dirent=no
  10361. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  10362. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  10363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  10364. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  10365. if eval \${$as_ac_Header+:} false; then :
  10366. $as_echo_n "(cached) " >&6
  10367. else
  10368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10369. /* end confdefs.h. */
  10370. #include <sys/types.h>
  10371. #include <$ac_hdr>
  10372. int
  10373. main ()
  10374. {
  10375. if ((DIR *) 0)
  10376. return 0;
  10377. ;
  10378. return 0;
  10379. }
  10380. _ACEOF
  10381. if ac_fn_c_try_compile "$LINENO"; then :
  10382. eval "$as_ac_Header=yes"
  10383. else
  10384. eval "$as_ac_Header=no"
  10385. fi
  10386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10387. fi
  10388. eval ac_res=\$$as_ac_Header
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10390. $as_echo "$ac_res" >&6; }
  10391. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10392. cat >>confdefs.h <<_ACEOF
  10393. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  10394. _ACEOF
  10395. ac_header_dirent=$ac_hdr; break
  10396. fi
  10397. done
  10398. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  10399. if test $ac_header_dirent = dirent.h; then
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  10401. $as_echo_n "checking for library containing opendir... " >&6; }
  10402. if ${ac_cv_search_opendir+:} false; then :
  10403. $as_echo_n "(cached) " >&6
  10404. else
  10405. ac_func_search_save_LIBS=$LIBS
  10406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10407. /* end confdefs.h. */
  10408. /* Override any GCC internal prototype to avoid an error.
  10409. Use char because int might match the return type of a GCC
  10410. builtin and then its argument prototype would still apply. */
  10411. #ifdef __cplusplus
  10412. extern "C"
  10413. #endif
  10414. char opendir ();
  10415. int
  10416. main ()
  10417. {
  10418. return opendir ();
  10419. ;
  10420. return 0;
  10421. }
  10422. _ACEOF
  10423. for ac_lib in '' dir; do
  10424. if test -z "$ac_lib"; then
  10425. ac_res="none required"
  10426. else
  10427. ac_res=-l$ac_lib
  10428. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10429. fi
  10430. if ac_fn_c_try_link "$LINENO"; then :
  10431. ac_cv_search_opendir=$ac_res
  10432. fi
  10433. rm -f core conftest.err conftest.$ac_objext \
  10434. conftest$ac_exeext
  10435. if ${ac_cv_search_opendir+:} false; then :
  10436. break
  10437. fi
  10438. done
  10439. if ${ac_cv_search_opendir+:} false; then :
  10440. else
  10441. ac_cv_search_opendir=no
  10442. fi
  10443. rm conftest.$ac_ext
  10444. LIBS=$ac_func_search_save_LIBS
  10445. fi
  10446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  10447. $as_echo "$ac_cv_search_opendir" >&6; }
  10448. ac_res=$ac_cv_search_opendir
  10449. if test "$ac_res" != no; then :
  10450. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10451. fi
  10452. else
  10453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  10454. $as_echo_n "checking for library containing opendir... " >&6; }
  10455. if ${ac_cv_search_opendir+:} false; then :
  10456. $as_echo_n "(cached) " >&6
  10457. else
  10458. ac_func_search_save_LIBS=$LIBS
  10459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10460. /* end confdefs.h. */
  10461. /* Override any GCC internal prototype to avoid an error.
  10462. Use char because int might match the return type of a GCC
  10463. builtin and then its argument prototype would still apply. */
  10464. #ifdef __cplusplus
  10465. extern "C"
  10466. #endif
  10467. char opendir ();
  10468. int
  10469. main ()
  10470. {
  10471. return opendir ();
  10472. ;
  10473. return 0;
  10474. }
  10475. _ACEOF
  10476. for ac_lib in '' x; do
  10477. if test -z "$ac_lib"; then
  10478. ac_res="none required"
  10479. else
  10480. ac_res=-l$ac_lib
  10481. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10482. fi
  10483. if ac_fn_c_try_link "$LINENO"; then :
  10484. ac_cv_search_opendir=$ac_res
  10485. fi
  10486. rm -f core conftest.err conftest.$ac_objext \
  10487. conftest$ac_exeext
  10488. if ${ac_cv_search_opendir+:} false; then :
  10489. break
  10490. fi
  10491. done
  10492. if ${ac_cv_search_opendir+:} false; then :
  10493. else
  10494. ac_cv_search_opendir=no
  10495. fi
  10496. rm conftest.$ac_ext
  10497. LIBS=$ac_func_search_save_LIBS
  10498. fi
  10499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  10500. $as_echo "$ac_cv_search_opendir" >&6; }
  10501. ac_res=$ac_cv_search_opendir
  10502. if test "$ac_res" != no; then :
  10503. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10504. fi
  10505. fi
  10506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10507. $as_echo_n "checking for ANSI C header files... " >&6; }
  10508. if ${ac_cv_header_stdc+:} false; then :
  10509. $as_echo_n "(cached) " >&6
  10510. else
  10511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10512. /* end confdefs.h. */
  10513. #include <stdlib.h>
  10514. #include <stdarg.h>
  10515. #include <string.h>
  10516. #include <float.h>
  10517. int
  10518. main ()
  10519. {
  10520. ;
  10521. return 0;
  10522. }
  10523. _ACEOF
  10524. if ac_fn_c_try_compile "$LINENO"; then :
  10525. ac_cv_header_stdc=yes
  10526. else
  10527. ac_cv_header_stdc=no
  10528. fi
  10529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10530. if test $ac_cv_header_stdc = yes; then
  10531. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10533. /* end confdefs.h. */
  10534. #include <string.h>
  10535. _ACEOF
  10536. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10537. $EGREP "memchr" >/dev/null 2>&1; then :
  10538. else
  10539. ac_cv_header_stdc=no
  10540. fi
  10541. rm -f conftest*
  10542. fi
  10543. if test $ac_cv_header_stdc = yes; then
  10544. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10546. /* end confdefs.h. */
  10547. #include <stdlib.h>
  10548. _ACEOF
  10549. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10550. $EGREP "free" >/dev/null 2>&1; then :
  10551. else
  10552. ac_cv_header_stdc=no
  10553. fi
  10554. rm -f conftest*
  10555. fi
  10556. if test $ac_cv_header_stdc = yes; then
  10557. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10558. if test "$cross_compiling" = yes; then :
  10559. :
  10560. else
  10561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10562. /* end confdefs.h. */
  10563. #include <ctype.h>
  10564. #include <stdlib.h>
  10565. #if ((' ' & 0x0FF) == 0x020)
  10566. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10567. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10568. #else
  10569. # define ISLOWER(c) \
  10570. (('a' <= (c) && (c) <= 'i') \
  10571. || ('j' <= (c) && (c) <= 'r') \
  10572. || ('s' <= (c) && (c) <= 'z'))
  10573. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10574. #endif
  10575. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10576. int
  10577. main ()
  10578. {
  10579. int i;
  10580. for (i = 0; i < 256; i++)
  10581. if (XOR (islower (i), ISLOWER (i))
  10582. || toupper (i) != TOUPPER (i))
  10583. return 2;
  10584. return 0;
  10585. }
  10586. _ACEOF
  10587. if ac_fn_c_try_run "$LINENO"; then :
  10588. else
  10589. ac_cv_header_stdc=no
  10590. fi
  10591. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10592. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10593. fi
  10594. fi
  10595. fi
  10596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10597. $as_echo "$ac_cv_header_stdc" >&6; }
  10598. if test $ac_cv_header_stdc = yes; then
  10599. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10600. fi
  10601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10602. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10603. if ${ac_cv_header_sys_wait_h+:} false; then :
  10604. $as_echo_n "(cached) " >&6
  10605. else
  10606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10607. /* end confdefs.h. */
  10608. #include <sys/types.h>
  10609. #include <sys/wait.h>
  10610. #ifndef WEXITSTATUS
  10611. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10612. #endif
  10613. #ifndef WIFEXITED
  10614. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10615. #endif
  10616. int
  10617. main ()
  10618. {
  10619. int s;
  10620. wait (&s);
  10621. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10622. ;
  10623. return 0;
  10624. }
  10625. _ACEOF
  10626. if ac_fn_c_try_compile "$LINENO"; then :
  10627. ac_cv_header_sys_wait_h=yes
  10628. else
  10629. ac_cv_header_sys_wait_h=no
  10630. fi
  10631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10632. fi
  10633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10634. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10635. if test $ac_cv_header_sys_wait_h = yes; then
  10636. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10637. fi
  10638. for ac_header in fcntl.h limits.h malloc.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h curses.h ncurses.h sys/cdefs.h termcap.h
  10639. do :
  10640. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10641. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10642. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10643. cat >>confdefs.h <<_ACEOF
  10644. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10645. _ACEOF
  10646. fi
  10647. done
  10648. ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
  10649. if test "x$ac_cv_header_termios_h" = xyes; then :
  10650. else
  10651. as_fn_error $? "termios.h is required!" "$LINENO" 5
  10652. fi
  10653. ## include curses.h to prevent "Present But Cannot Be Compiled"
  10654. for ac_header in term.h
  10655. do :
  10656. ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
  10657. # include <curses.h>
  10658. #elif HAVE_NCURSES_H
  10659. # include <ncurses.h>
  10660. #endif
  10661. "
  10662. if test "x$ac_cv_header_term_h" = xyes; then :
  10663. cat >>confdefs.h <<_ACEOF
  10664. #define HAVE_TERM_H 1
  10665. _ACEOF
  10666. fi
  10667. done
  10668. # Check for dirent.d_namlen field explicitly
  10669. # (This is a bit more straightforward than, if not quite as portable as,
  10670. # the recipe given by the autoconf maintainers.)
  10671. ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#if HAVE_DIRENT_H
  10672. #include <dirent.h>
  10673. #endif
  10674. "
  10675. if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes; then :
  10676. $as_echo "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
  10677. fi
  10678. # Checks for typedefs, structures, and compiler characteristics.
  10679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10680. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10681. if ${ac_cv_c_const+:} false; then :
  10682. $as_echo_n "(cached) " >&6
  10683. else
  10684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10685. /* end confdefs.h. */
  10686. int
  10687. main ()
  10688. {
  10689. #ifndef __cplusplus
  10690. /* Ultrix mips cc rejects this sort of thing. */
  10691. typedef int charset[2];
  10692. const charset cs = { 0, 0 };
  10693. /* SunOS 4.1.1 cc rejects this. */
  10694. char const *const *pcpcc;
  10695. char **ppc;
  10696. /* NEC SVR4.0.2 mips cc rejects this. */
  10697. struct point {int x, y;};
  10698. static struct point const zero = {0,0};
  10699. /* AIX XL C 1.02.0.0 rejects this.
  10700. It does not let you subtract one const X* pointer from another in
  10701. an arm of an if-expression whose if-part is not a constant
  10702. expression */
  10703. const char *g = "string";
  10704. pcpcc = &g + (g ? g-g : 0);
  10705. /* HPUX 7.0 cc rejects these. */
  10706. ++pcpcc;
  10707. ppc = (char**) pcpcc;
  10708. pcpcc = (char const *const *) ppc;
  10709. { /* SCO 3.2v4 cc rejects this sort of thing. */
  10710. char tx;
  10711. char *t = &tx;
  10712. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10713. *t++ = 0;
  10714. if (s) return 0;
  10715. }
  10716. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10717. int x[] = {25, 17};
  10718. const int *foo = &x[0];
  10719. ++foo;
  10720. }
  10721. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10722. typedef const int *iptr;
  10723. iptr p = 0;
  10724. ++p;
  10725. }
  10726. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  10727. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10728. struct s { int j; const int *ap[3]; } bx;
  10729. struct s *b = &bx; b->j = 5;
  10730. }
  10731. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10732. const int foo = 10;
  10733. if (!foo) return 0;
  10734. }
  10735. return !cs[0] && !zero.x;
  10736. #endif
  10737. ;
  10738. return 0;
  10739. }
  10740. _ACEOF
  10741. if ac_fn_c_try_compile "$LINENO"; then :
  10742. ac_cv_c_const=yes
  10743. else
  10744. ac_cv_c_const=no
  10745. fi
  10746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10747. fi
  10748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10749. $as_echo "$ac_cv_c_const" >&6; }
  10750. if test $ac_cv_c_const = no; then
  10751. $as_echo "#define const /**/" >>confdefs.h
  10752. fi
  10753. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  10754. if test "x$ac_cv_type_pid_t" = xyes; then :
  10755. else
  10756. cat >>confdefs.h <<_ACEOF
  10757. #define pid_t int
  10758. _ACEOF
  10759. fi
  10760. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  10761. if test "x$ac_cv_type_size_t" = xyes; then :
  10762. else
  10763. cat >>confdefs.h <<_ACEOF
  10764. #define size_t unsigned int
  10765. _ACEOF
  10766. fi
  10767. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  10768. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  10769. cat >>confdefs.h <<_ACEOF
  10770. #define HAVE_U_INT32_T 1
  10771. _ACEOF
  10772. fi
  10773. # Checks for library functions.
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  10775. $as_echo_n "checking whether closedir returns void... " >&6; }
  10776. if ${ac_cv_func_closedir_void+:} false; then :
  10777. $as_echo_n "(cached) " >&6
  10778. else
  10779. if test "$cross_compiling" = yes; then :
  10780. ac_cv_func_closedir_void=yes
  10781. else
  10782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10783. /* end confdefs.h. */
  10784. $ac_includes_default
  10785. #include <$ac_header_dirent>
  10786. #ifndef __cplusplus
  10787. int closedir ();
  10788. #endif
  10789. int
  10790. main ()
  10791. {
  10792. return closedir (opendir (".")) != 0;
  10793. ;
  10794. return 0;
  10795. }
  10796. _ACEOF
  10797. if ac_fn_c_try_run "$LINENO"; then :
  10798. ac_cv_func_closedir_void=no
  10799. else
  10800. ac_cv_func_closedir_void=yes
  10801. fi
  10802. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10803. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10804. fi
  10805. fi
  10806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  10807. $as_echo "$ac_cv_func_closedir_void" >&6; }
  10808. if test $ac_cv_func_closedir_void = yes; then
  10809. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  10810. fi
  10811. for ac_header in vfork.h
  10812. do :
  10813. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  10814. if test "x$ac_cv_header_vfork_h" = xyes; then :
  10815. cat >>confdefs.h <<_ACEOF
  10816. #define HAVE_VFORK_H 1
  10817. _ACEOF
  10818. fi
  10819. done
  10820. for ac_func in fork vfork
  10821. do :
  10822. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10823. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10824. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  10825. cat >>confdefs.h <<_ACEOF
  10826. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10827. _ACEOF
  10828. fi
  10829. done
  10830. if test "x$ac_cv_func_fork" = xyes; then
  10831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  10832. $as_echo_n "checking for working fork... " >&6; }
  10833. if ${ac_cv_func_fork_works+:} false; then :
  10834. $as_echo_n "(cached) " >&6
  10835. else
  10836. if test "$cross_compiling" = yes; then :
  10837. ac_cv_func_fork_works=cross
  10838. else
  10839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10840. /* end confdefs.h. */
  10841. $ac_includes_default
  10842. int
  10843. main ()
  10844. {
  10845. /* By Ruediger Kuhlmann. */
  10846. return fork () < 0;
  10847. ;
  10848. return 0;
  10849. }
  10850. _ACEOF
  10851. if ac_fn_c_try_run "$LINENO"; then :
  10852. ac_cv_func_fork_works=yes
  10853. else
  10854. ac_cv_func_fork_works=no
  10855. fi
  10856. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10857. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10858. fi
  10859. fi
  10860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  10861. $as_echo "$ac_cv_func_fork_works" >&6; }
  10862. else
  10863. ac_cv_func_fork_works=$ac_cv_func_fork
  10864. fi
  10865. if test "x$ac_cv_func_fork_works" = xcross; then
  10866. case $host in
  10867. *-*-amigaos* | *-*-msdosdjgpp*)
  10868. # Override, as these systems have only a dummy fork() stub
  10869. ac_cv_func_fork_works=no
  10870. ;;
  10871. *)
  10872. ac_cv_func_fork_works=yes
  10873. ;;
  10874. esac
  10875. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  10876. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  10877. fi
  10878. ac_cv_func_vfork_works=$ac_cv_func_vfork
  10879. if test "x$ac_cv_func_vfork" = xyes; then
  10880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  10881. $as_echo_n "checking for working vfork... " >&6; }
  10882. if ${ac_cv_func_vfork_works+:} false; then :
  10883. $as_echo_n "(cached) " >&6
  10884. else
  10885. if test "$cross_compiling" = yes; then :
  10886. ac_cv_func_vfork_works=cross
  10887. else
  10888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10889. /* end confdefs.h. */
  10890. /* Thanks to Paul Eggert for this test. */
  10891. $ac_includes_default
  10892. #include <sys/wait.h>
  10893. #ifdef HAVE_VFORK_H
  10894. # include <vfork.h>
  10895. #endif
  10896. /* On some sparc systems, changes by the child to local and incoming
  10897. argument registers are propagated back to the parent. The compiler
  10898. is told about this with #include <vfork.h>, but some compilers
  10899. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  10900. static variable whose address is put into a register that is
  10901. clobbered by the vfork. */
  10902. static void
  10903. #ifdef __cplusplus
  10904. sparc_address_test (int arg)
  10905. # else
  10906. sparc_address_test (arg) int arg;
  10907. #endif
  10908. {
  10909. static pid_t child;
  10910. if (!child) {
  10911. child = vfork ();
  10912. if (child < 0) {
  10913. perror ("vfork");
  10914. _exit(2);
  10915. }
  10916. if (!child) {
  10917. arg = getpid();
  10918. write(-1, "", 0);
  10919. _exit (arg);
  10920. }
  10921. }
  10922. }
  10923. int
  10924. main ()
  10925. {
  10926. pid_t parent = getpid ();
  10927. pid_t child;
  10928. sparc_address_test (0);
  10929. child = vfork ();
  10930. if (child == 0) {
  10931. /* Here is another test for sparc vfork register problems. This
  10932. test uses lots of local variables, at least as many local
  10933. variables as main has allocated so far including compiler
  10934. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  10935. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  10936. reuse the register of parent for one of the local variables,
  10937. since it will think that parent can't possibly be used any more
  10938. in this routine. Assigning to the local variable will thus
  10939. munge parent in the parent process. */
  10940. pid_t
  10941. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  10942. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  10943. /* Convince the compiler that p..p7 are live; otherwise, it might
  10944. use the same hardware register for all 8 local variables. */
  10945. if (p != p1 || p != p2 || p != p3 || p != p4
  10946. || p != p5 || p != p6 || p != p7)
  10947. _exit(1);
  10948. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  10949. from child file descriptors. If the child closes a descriptor
  10950. before it execs or exits, this munges the parent's descriptor
  10951. as well. Test for this by closing stdout in the child. */
  10952. _exit(close(fileno(stdout)) != 0);
  10953. } else {
  10954. int status;
  10955. struct stat st;
  10956. while (wait(&status) != child)
  10957. ;
  10958. return (
  10959. /* Was there some problem with vforking? */
  10960. child < 0
  10961. /* Did the child fail? (This shouldn't happen.) */
  10962. || status
  10963. /* Did the vfork/compiler bug occur? */
  10964. || parent != getpid()
  10965. /* Did the file descriptor bug occur? */
  10966. || fstat(fileno(stdout), &st) != 0
  10967. );
  10968. }
  10969. }
  10970. _ACEOF
  10971. if ac_fn_c_try_run "$LINENO"; then :
  10972. ac_cv_func_vfork_works=yes
  10973. else
  10974. ac_cv_func_vfork_works=no
  10975. fi
  10976. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10977. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10978. fi
  10979. fi
  10980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  10981. $as_echo "$ac_cv_func_vfork_works" >&6; }
  10982. fi;
  10983. if test "x$ac_cv_func_fork_works" = xcross; then
  10984. ac_cv_func_vfork_works=$ac_cv_func_vfork
  10985. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  10986. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  10987. fi
  10988. if test "x$ac_cv_func_vfork_works" = xyes; then
  10989. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  10990. else
  10991. $as_echo "#define vfork fork" >>confdefs.h
  10992. fi
  10993. if test "x$ac_cv_func_fork_works" = xyes; then
  10994. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  10995. fi
  10996. if test $ac_cv_c_compiler_gnu = yes; then
  10997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  10998. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  10999. if ${ac_cv_prog_gcc_traditional+:} false; then :
  11000. $as_echo_n "(cached) " >&6
  11001. else
  11002. ac_pattern="Autoconf.*'x'"
  11003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11004. /* end confdefs.h. */
  11005. #include <sgtty.h>
  11006. Autoconf TIOCGETP
  11007. _ACEOF
  11008. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11009. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11010. ac_cv_prog_gcc_traditional=yes
  11011. else
  11012. ac_cv_prog_gcc_traditional=no
  11013. fi
  11014. rm -f conftest*
  11015. if test $ac_cv_prog_gcc_traditional = no; then
  11016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11017. /* end confdefs.h. */
  11018. #include <termio.h>
  11019. Autoconf TCGETA
  11020. _ACEOF
  11021. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11022. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11023. ac_cv_prog_gcc_traditional=yes
  11024. fi
  11025. rm -f conftest*
  11026. fi
  11027. fi
  11028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  11029. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  11030. if test $ac_cv_prog_gcc_traditional = yes; then
  11031. CC="$CC -traditional"
  11032. fi
  11033. fi
  11034. ## _AIX is offended by rpl_malloc and rpl_realloc
  11035. #AC_FUNC_MALLOC
  11036. #AC_FUNC_REALLOC
  11037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  11038. $as_echo_n "checking return type of signal handlers... " >&6; }
  11039. if ${ac_cv_type_signal+:} false; then :
  11040. $as_echo_n "(cached) " >&6
  11041. else
  11042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11043. /* end confdefs.h. */
  11044. #include <sys/types.h>
  11045. #include <signal.h>
  11046. int
  11047. main ()
  11048. {
  11049. return *(signal (0, 0)) (0) == 1;
  11050. ;
  11051. return 0;
  11052. }
  11053. _ACEOF
  11054. if ac_fn_c_try_compile "$LINENO"; then :
  11055. ac_cv_type_signal=int
  11056. else
  11057. ac_cv_type_signal=void
  11058. fi
  11059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11060. fi
  11061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  11062. $as_echo "$ac_cv_type_signal" >&6; }
  11063. cat >>confdefs.h <<_ACEOF
  11064. #define RETSIGTYPE $ac_cv_type_signal
  11065. _ACEOF
  11066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  11067. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  11068. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  11069. $as_echo_n "(cached) " >&6
  11070. else
  11071. rm -f conftest.sym conftest.file
  11072. echo >conftest.file
  11073. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  11074. if test "$cross_compiling" = yes; then :
  11075. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11076. else
  11077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11078. /* end confdefs.h. */
  11079. $ac_includes_default
  11080. int
  11081. main ()
  11082. {
  11083. struct stat sbuf;
  11084. /* Linux will dereference the symlink and fail, as required by POSIX.
  11085. That is better in the sense that it means we will not
  11086. have to compile and use the lstat wrapper. */
  11087. return lstat ("conftest.sym/", &sbuf) == 0;
  11088. ;
  11089. return 0;
  11090. }
  11091. _ACEOF
  11092. if ac_fn_c_try_run "$LINENO"; then :
  11093. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  11094. else
  11095. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11096. fi
  11097. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11098. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11099. fi
  11100. else
  11101. # If the `ln -s' command failed, then we probably don't even
  11102. # have an lstat function.
  11103. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11104. fi
  11105. rm -f conftest.sym conftest.file
  11106. fi
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  11108. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  11109. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  11110. cat >>confdefs.h <<_ACEOF
  11111. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  11112. _ACEOF
  11113. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  11114. case " $LIBOBJS " in
  11115. *" lstat.$ac_objext "* ) ;;
  11116. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  11117. ;;
  11118. esac
  11119. fi
  11120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  11121. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  11122. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  11123. $as_echo_n "(cached) " >&6
  11124. else
  11125. if test "$cross_compiling" = yes; then :
  11126. ac_cv_func_stat_empty_string_bug=yes
  11127. else
  11128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11129. /* end confdefs.h. */
  11130. $ac_includes_default
  11131. int
  11132. main ()
  11133. {
  11134. struct stat sbuf;
  11135. return stat ("", &sbuf) == 0;
  11136. ;
  11137. return 0;
  11138. }
  11139. _ACEOF
  11140. if ac_fn_c_try_run "$LINENO"; then :
  11141. ac_cv_func_stat_empty_string_bug=no
  11142. else
  11143. ac_cv_func_stat_empty_string_bug=yes
  11144. fi
  11145. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11146. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11147. fi
  11148. fi
  11149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  11150. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  11151. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11152. case " $LIBOBJS " in
  11153. *" stat.$ac_objext "* ) ;;
  11154. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11155. ;;
  11156. esac
  11157. cat >>confdefs.h <<_ACEOF
  11158. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11159. _ACEOF
  11160. fi
  11161. for ac_func in endpwent isascii memchr memset re_comp regcomp strcasecmp strchr strcspn strdup strerror strrchr strstr strtol issetugid wcsdup strlcpy strlcat fgetln vis strvis strunvis __secure_getenv secure_getenv
  11162. do :
  11163. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11164. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11165. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11166. cat >>confdefs.h <<_ACEOF
  11167. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11168. _ACEOF
  11169. fi
  11170. done
  11171. # strlcpy
  11172. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  11173. if test "x$ac_cv_func_strlcpy" = xyes; then :
  11174. found_strlcpy=yes
  11175. else
  11176. found_strlcpy=no
  11177. fi
  11178. if test "x$found_strlcpy" = xyes; then
  11179. HAVE_STRLCPY_TRUE=
  11180. HAVE_STRLCPY_FALSE='#'
  11181. else
  11182. HAVE_STRLCPY_TRUE='#'
  11183. HAVE_STRLCPY_FALSE=
  11184. fi
  11185. # strlcat
  11186. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  11187. if test "x$ac_cv_func_strlcat" = xyes; then :
  11188. found_strlcat=yes
  11189. else
  11190. found_strlcat=no
  11191. fi
  11192. if test "x$found_strlcat" = xyes; then
  11193. HAVE_STRLCAT_TRUE=
  11194. HAVE_STRLCAT_FALSE='#'
  11195. else
  11196. HAVE_STRLCAT_TRUE='#'
  11197. HAVE_STRLCAT_FALSE=
  11198. fi
  11199. # vis
  11200. ac_fn_c_check_func "$LINENO" "vis" "ac_cv_func_vis"
  11201. if test "x$ac_cv_func_vis" = xyes; then :
  11202. found_vis=yes
  11203. else
  11204. found_vis=no
  11205. fi
  11206. if test "x$found_vis" = xyes; then
  11207. HAVE_VIS_TRUE=
  11208. HAVE_VIS_FALSE='#'
  11209. else
  11210. HAVE_VIS_TRUE='#'
  11211. HAVE_VIS_FALSE=
  11212. fi
  11213. # unvis
  11214. ac_fn_c_check_func "$LINENO" "unvis" "ac_cv_func_unvis"
  11215. if test "x$ac_cv_func_unvis" = xyes; then :
  11216. found_unvis=yes
  11217. else
  11218. found_unvis=no
  11219. fi
  11220. if test "x$found_unvis" = xyes; then
  11221. HAVE_UNVIS_TRUE=
  11222. HAVE_UNVIS_FALSE='#'
  11223. else
  11224. HAVE_UNVIS_TRUE='#'
  11225. HAVE_UNVIS_FALSE=
  11226. fi
  11227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix like" >&5
  11228. $as_echo_n "checking whether getpwnam_r and getpwuid_r are posix like... " >&6; }
  11229. # The prototype for the POSIX version is:
  11230. # int getpwnam_r(char *, struct passwd *, char *, size_t, struct passwd **)
  11231. # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **);
  11232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11233. /* end confdefs.h. */
  11234. #include <stdlib.h>
  11235. #include <sys/types.h>
  11236. #include <pwd.h>
  11237. int
  11238. main ()
  11239. {
  11240. getpwnam_r(NULL, NULL, NULL, (size_t)0, NULL);
  11241. getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);
  11242. ;
  11243. return 0;
  11244. }
  11245. _ACEOF
  11246. if ac_fn_c_try_link "$LINENO"; then :
  11247. $as_echo "#define HAVE_GETPW_R_POSIX 1" >>confdefs.h
  11248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11249. $as_echo "yes" >&6; }
  11250. else
  11251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11252. $as_echo "no" >&6; }
  11253. fi
  11254. rm -f core conftest.err conftest.$ac_objext \
  11255. conftest$ac_exeext conftest.$ac_ext
  11256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix _draft_ like" >&5
  11257. $as_echo_n "checking whether getpwnam_r and getpwuid_r are posix _draft_ like... " >&6; }
  11258. # The prototype for the POSIX draft version is:
  11259. # struct passwd *getpwuid_r(uid_t, struct passwd *, char *, int);
  11260. # struct passwd *getpwnam_r(char *, struct passwd *, char *, int);
  11261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11262. /* end confdefs.h. */
  11263. #include <stdlib.h>
  11264. #include <sys/types.h>
  11265. #include <pwd.h>
  11266. int
  11267. main ()
  11268. {
  11269. getpwnam_r(NULL, NULL, NULL, (size_t)0);
  11270. getpwuid_r((uid_t)0, NULL, NULL, (size_t)0);
  11271. ;
  11272. return 0;
  11273. }
  11274. _ACEOF
  11275. if ac_fn_c_try_link "$LINENO"; then :
  11276. $as_echo "#define HAVE_GETPW_R_DRAFT 1" >>confdefs.h
  11277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11278. $as_echo "yes" >&6; }
  11279. else
  11280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11281. $as_echo "no" >&6; }
  11282. fi
  11283. rm -f core conftest.err conftest.$ac_objext \
  11284. conftest$ac_exeext conftest.$ac_ext
  11285. ac_config_files="$ac_config_files Makefile libedit.pc src/Makefile"
  11286. cat >confcache <<\_ACEOF
  11287. # This file is a shell script that caches the results of configure
  11288. # tests run on this system so they can be shared between configure
  11289. # scripts and configure runs, see configure's option --config-cache.
  11290. # It is not useful on other systems. If it contains results you don't
  11291. # want to keep, you may remove or edit it.
  11292. #
  11293. # config.status only pays attention to the cache file if you give it
  11294. # the --recheck option to rerun configure.
  11295. #
  11296. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11297. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11298. # following values.
  11299. _ACEOF
  11300. # The following way of writing the cache mishandles newlines in values,
  11301. # but we know of no workaround that is simple, portable, and efficient.
  11302. # So, we kill variables containing newlines.
  11303. # Ultrix sh set writes to stderr and can't be redirected directly,
  11304. # and sets the high bit in the cache file unless we assign to the vars.
  11305. (
  11306. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11307. eval ac_val=\$$ac_var
  11308. case $ac_val in #(
  11309. *${as_nl}*)
  11310. case $ac_var in #(
  11311. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11312. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11313. esac
  11314. case $ac_var in #(
  11315. _ | IFS | as_nl) ;; #(
  11316. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11317. *) { eval $ac_var=; unset $ac_var;} ;;
  11318. esac ;;
  11319. esac
  11320. done
  11321. (set) 2>&1 |
  11322. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11323. *${as_nl}ac_space=\ *)
  11324. # `set' does not quote correctly, so add quotes: double-quote
  11325. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11326. sed -n \
  11327. "s/'/'\\\\''/g;
  11328. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11329. ;; #(
  11330. *)
  11331. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11332. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11333. ;;
  11334. esac |
  11335. sort
  11336. ) |
  11337. sed '
  11338. /^ac_cv_env_/b end
  11339. t clear
  11340. :clear
  11341. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11342. t end
  11343. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11344. :end' >>confcache
  11345. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11346. if test -w "$cache_file"; then
  11347. if test "x$cache_file" != "x/dev/null"; then
  11348. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11349. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11350. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11351. cat confcache >"$cache_file"
  11352. else
  11353. case $cache_file in #(
  11354. */* | ?:*)
  11355. mv -f confcache "$cache_file"$$ &&
  11356. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11357. *)
  11358. mv -f confcache "$cache_file" ;;
  11359. esac
  11360. fi
  11361. fi
  11362. else
  11363. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11364. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11365. fi
  11366. fi
  11367. rm -f confcache
  11368. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11369. # Let make expand exec_prefix.
  11370. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11371. DEFS=-DHAVE_CONFIG_H
  11372. ac_libobjs=
  11373. ac_ltlibobjs=
  11374. U=
  11375. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11376. # 1. Remove the extension, and $U if already installed.
  11377. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11378. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11379. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11380. # will be set to the directory where LIBOBJS objects are built.
  11381. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11382. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11383. done
  11384. LIBOBJS=$ac_libobjs
  11385. LTLIBOBJS=$ac_ltlibobjs
  11386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11387. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11388. if test -n "$am_sleep_pid"; then
  11389. # Hide warnings about reused PIDs.
  11390. wait $am_sleep_pid 2>/dev/null
  11391. fi
  11392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11393. $as_echo "done" >&6; }
  11394. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11395. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11396. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11397. fi
  11398. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11399. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11400. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11401. fi
  11402. if test -n "$EXEEXT"; then
  11403. am__EXEEXT_TRUE=
  11404. am__EXEEXT_FALSE='#'
  11405. else
  11406. am__EXEEXT_TRUE='#'
  11407. am__EXEEXT_FALSE=
  11408. fi
  11409. if test -z "${WIDECHAR_TRUE}" && test -z "${WIDECHAR_FALSE}"; then
  11410. as_fn_error $? "conditional \"WIDECHAR\" was never defined.
  11411. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11412. fi
  11413. if test -z "${HAVE_STRLCPY_TRUE}" && test -z "${HAVE_STRLCPY_FALSE}"; then
  11414. as_fn_error $? "conditional \"HAVE_STRLCPY\" was never defined.
  11415. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11416. fi
  11417. if test -z "${HAVE_STRLCAT_TRUE}" && test -z "${HAVE_STRLCAT_FALSE}"; then
  11418. as_fn_error $? "conditional \"HAVE_STRLCAT\" was never defined.
  11419. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11420. fi
  11421. if test -z "${HAVE_VIS_TRUE}" && test -z "${HAVE_VIS_FALSE}"; then
  11422. as_fn_error $? "conditional \"HAVE_VIS\" was never defined.
  11423. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11424. fi
  11425. if test -z "${HAVE_UNVIS_TRUE}" && test -z "${HAVE_UNVIS_FALSE}"; then
  11426. as_fn_error $? "conditional \"HAVE_UNVIS\" was never defined.
  11427. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11428. fi
  11429. : "${CONFIG_STATUS=./config.status}"
  11430. ac_write_fail=0
  11431. ac_clean_files_save=$ac_clean_files
  11432. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11433. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11434. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11435. as_write_fail=0
  11436. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11437. #! $SHELL
  11438. # Generated by $as_me.
  11439. # Run this file to recreate the current configuration.
  11440. # Compiler output produced by configure, useful for debugging
  11441. # configure, is in config.log if it exists.
  11442. debug=false
  11443. ac_cs_recheck=false
  11444. ac_cs_silent=false
  11445. SHELL=\${CONFIG_SHELL-$SHELL}
  11446. export SHELL
  11447. _ASEOF
  11448. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11449. ## -------------------- ##
  11450. ## M4sh Initialization. ##
  11451. ## -------------------- ##
  11452. # Be more Bourne compatible
  11453. DUALCASE=1; export DUALCASE # for MKS sh
  11454. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11455. emulate sh
  11456. NULLCMD=:
  11457. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11458. # is contrary to our usage. Disable this feature.
  11459. alias -g '${1+"$@"}'='"$@"'
  11460. setopt NO_GLOB_SUBST
  11461. else
  11462. case `(set -o) 2>/dev/null` in #(
  11463. *posix*) :
  11464. set -o posix ;; #(
  11465. *) :
  11466. ;;
  11467. esac
  11468. fi
  11469. as_nl='
  11470. '
  11471. export as_nl
  11472. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11473. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11474. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11475. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11476. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11477. # but without wasting forks for bash or zsh.
  11478. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11479. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11480. as_echo='print -r --'
  11481. as_echo_n='print -rn --'
  11482. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11483. as_echo='printf %s\n'
  11484. as_echo_n='printf %s'
  11485. else
  11486. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11487. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11488. as_echo_n='/usr/ucb/echo -n'
  11489. else
  11490. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11491. as_echo_n_body='eval
  11492. arg=$1;
  11493. case $arg in #(
  11494. *"$as_nl"*)
  11495. expr "X$arg" : "X\\(.*\\)$as_nl";
  11496. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11497. esac;
  11498. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11499. '
  11500. export as_echo_n_body
  11501. as_echo_n='sh -c $as_echo_n_body as_echo'
  11502. fi
  11503. export as_echo_body
  11504. as_echo='sh -c $as_echo_body as_echo'
  11505. fi
  11506. # The user is always right.
  11507. if test "${PATH_SEPARATOR+set}" != set; then
  11508. PATH_SEPARATOR=:
  11509. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11510. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11511. PATH_SEPARATOR=';'
  11512. }
  11513. fi
  11514. # IFS
  11515. # We need space, tab and new line, in precisely that order. Quoting is
  11516. # there to prevent editors from complaining about space-tab.
  11517. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11518. # splitting by setting IFS to empty value.)
  11519. IFS=" "" $as_nl"
  11520. # Find who we are. Look in the path if we contain no directory separator.
  11521. as_myself=
  11522. case $0 in #((
  11523. *[\\/]* ) as_myself=$0 ;;
  11524. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11525. for as_dir in $PATH
  11526. do
  11527. IFS=$as_save_IFS
  11528. test -z "$as_dir" && as_dir=.
  11529. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11530. done
  11531. IFS=$as_save_IFS
  11532. ;;
  11533. esac
  11534. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11535. # in which case we are not to be found in the path.
  11536. if test "x$as_myself" = x; then
  11537. as_myself=$0
  11538. fi
  11539. if test ! -f "$as_myself"; then
  11540. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11541. exit 1
  11542. fi
  11543. # Unset variables that we do not need and which cause bugs (e.g. in
  11544. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11545. # suppresses any "Segmentation fault" message there. '((' could
  11546. # trigger a bug in pdksh 5.2.14.
  11547. for as_var in BASH_ENV ENV MAIL MAILPATH
  11548. do eval test x\${$as_var+set} = xset \
  11549. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11550. done
  11551. PS1='$ '
  11552. PS2='> '
  11553. PS4='+ '
  11554. # NLS nuisances.
  11555. LC_ALL=C
  11556. export LC_ALL
  11557. LANGUAGE=C
  11558. export LANGUAGE
  11559. # CDPATH.
  11560. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11561. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11562. # ----------------------------------------
  11563. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11564. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11565. # script with STATUS, using 1 if that was 0.
  11566. as_fn_error ()
  11567. {
  11568. as_status=$1; test $as_status -eq 0 && as_status=1
  11569. if test "$4"; then
  11570. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11571. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11572. fi
  11573. $as_echo "$as_me: error: $2" >&2
  11574. as_fn_exit $as_status
  11575. } # as_fn_error
  11576. # as_fn_set_status STATUS
  11577. # -----------------------
  11578. # Set $? to STATUS, without forking.
  11579. as_fn_set_status ()
  11580. {
  11581. return $1
  11582. } # as_fn_set_status
  11583. # as_fn_exit STATUS
  11584. # -----------------
  11585. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11586. as_fn_exit ()
  11587. {
  11588. set +e
  11589. as_fn_set_status $1
  11590. exit $1
  11591. } # as_fn_exit
  11592. # as_fn_unset VAR
  11593. # ---------------
  11594. # Portably unset VAR.
  11595. as_fn_unset ()
  11596. {
  11597. { eval $1=; unset $1;}
  11598. }
  11599. as_unset=as_fn_unset
  11600. # as_fn_append VAR VALUE
  11601. # ----------------------
  11602. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11603. # advantage of any shell optimizations that allow amortized linear growth over
  11604. # repeated appends, instead of the typical quadratic growth present in naive
  11605. # implementations.
  11606. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11607. eval 'as_fn_append ()
  11608. {
  11609. eval $1+=\$2
  11610. }'
  11611. else
  11612. as_fn_append ()
  11613. {
  11614. eval $1=\$$1\$2
  11615. }
  11616. fi # as_fn_append
  11617. # as_fn_arith ARG...
  11618. # ------------------
  11619. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11620. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11621. # must be portable across $(()) and expr.
  11622. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11623. eval 'as_fn_arith ()
  11624. {
  11625. as_val=$(( $* ))
  11626. }'
  11627. else
  11628. as_fn_arith ()
  11629. {
  11630. as_val=`expr "$@" || test $? -eq 1`
  11631. }
  11632. fi # as_fn_arith
  11633. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11634. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11635. as_expr=expr
  11636. else
  11637. as_expr=false
  11638. fi
  11639. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11640. as_basename=basename
  11641. else
  11642. as_basename=false
  11643. fi
  11644. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11645. as_dirname=dirname
  11646. else
  11647. as_dirname=false
  11648. fi
  11649. as_me=`$as_basename -- "$0" ||
  11650. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11651. X"$0" : 'X\(//\)$' \| \
  11652. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11653. $as_echo X/"$0" |
  11654. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11655. s//\1/
  11656. q
  11657. }
  11658. /^X\/\(\/\/\)$/{
  11659. s//\1/
  11660. q
  11661. }
  11662. /^X\/\(\/\).*/{
  11663. s//\1/
  11664. q
  11665. }
  11666. s/.*/./; q'`
  11667. # Avoid depending upon Character Ranges.
  11668. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11669. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11670. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11671. as_cr_digits='0123456789'
  11672. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11673. ECHO_C= ECHO_N= ECHO_T=
  11674. case `echo -n x` in #(((((
  11675. -n*)
  11676. case `echo 'xy\c'` in
  11677. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11678. xy) ECHO_C='\c';;
  11679. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11680. ECHO_T=' ';;
  11681. esac;;
  11682. *)
  11683. ECHO_N='-n';;
  11684. esac
  11685. rm -f conf$$ conf$$.exe conf$$.file
  11686. if test -d conf$$.dir; then
  11687. rm -f conf$$.dir/conf$$.file
  11688. else
  11689. rm -f conf$$.dir
  11690. mkdir conf$$.dir 2>/dev/null
  11691. fi
  11692. if (echo >conf$$.file) 2>/dev/null; then
  11693. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11694. as_ln_s='ln -s'
  11695. # ... but there are two gotchas:
  11696. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11697. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11698. # In both cases, we have to default to `cp -pR'.
  11699. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11700. as_ln_s='cp -pR'
  11701. elif ln conf$$.file conf$$ 2>/dev/null; then
  11702. as_ln_s=ln
  11703. else
  11704. as_ln_s='cp -pR'
  11705. fi
  11706. else
  11707. as_ln_s='cp -pR'
  11708. fi
  11709. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11710. rmdir conf$$.dir 2>/dev/null
  11711. # as_fn_mkdir_p
  11712. # -------------
  11713. # Create "$as_dir" as a directory, including parents if necessary.
  11714. as_fn_mkdir_p ()
  11715. {
  11716. case $as_dir in #(
  11717. -*) as_dir=./$as_dir;;
  11718. esac
  11719. test -d "$as_dir" || eval $as_mkdir_p || {
  11720. as_dirs=
  11721. while :; do
  11722. case $as_dir in #(
  11723. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11724. *) as_qdir=$as_dir;;
  11725. esac
  11726. as_dirs="'$as_qdir' $as_dirs"
  11727. as_dir=`$as_dirname -- "$as_dir" ||
  11728. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11729. X"$as_dir" : 'X\(//\)[^/]' \| \
  11730. X"$as_dir" : 'X\(//\)$' \| \
  11731. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11732. $as_echo X"$as_dir" |
  11733. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11734. s//\1/
  11735. q
  11736. }
  11737. /^X\(\/\/\)[^/].*/{
  11738. s//\1/
  11739. q
  11740. }
  11741. /^X\(\/\/\)$/{
  11742. s//\1/
  11743. q
  11744. }
  11745. /^X\(\/\).*/{
  11746. s//\1/
  11747. q
  11748. }
  11749. s/.*/./; q'`
  11750. test -d "$as_dir" && break
  11751. done
  11752. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11753. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11754. } # as_fn_mkdir_p
  11755. if mkdir -p . 2>/dev/null; then
  11756. as_mkdir_p='mkdir -p "$as_dir"'
  11757. else
  11758. test -d ./-p && rmdir ./-p
  11759. as_mkdir_p=false
  11760. fi
  11761. # as_fn_executable_p FILE
  11762. # -----------------------
  11763. # Test if FILE is an executable regular file.
  11764. as_fn_executable_p ()
  11765. {
  11766. test -f "$1" && test -x "$1"
  11767. } # as_fn_executable_p
  11768. as_test_x='test -x'
  11769. as_executable_p=as_fn_executable_p
  11770. # Sed expression to map a string onto a valid CPP name.
  11771. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11772. # Sed expression to map a string onto a valid variable name.
  11773. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11774. exec 6>&1
  11775. ## ----------------------------------- ##
  11776. ## Main body of $CONFIG_STATUS script. ##
  11777. ## ----------------------------------- ##
  11778. _ASEOF
  11779. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11780. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11781. # Save the log message, to keep $0 and so on meaningful, and to
  11782. # report actual input values of CONFIG_FILES etc. instead of their
  11783. # values after options handling.
  11784. ac_log="
  11785. This file was extended by libedit $as_me 3.1, which was
  11786. generated by GNU Autoconf 2.69. Invocation command line was
  11787. CONFIG_FILES = $CONFIG_FILES
  11788. CONFIG_HEADERS = $CONFIG_HEADERS
  11789. CONFIG_LINKS = $CONFIG_LINKS
  11790. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11791. $ $0 $@
  11792. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11793. "
  11794. _ACEOF
  11795. case $ac_config_files in *"
  11796. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11797. esac
  11798. case $ac_config_headers in *"
  11799. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11800. esac
  11801. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11802. # Files that config.status was made for.
  11803. config_files="$ac_config_files"
  11804. config_headers="$ac_config_headers"
  11805. config_commands="$ac_config_commands"
  11806. _ACEOF
  11807. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11808. ac_cs_usage="\
  11809. \`$as_me' instantiates files and other configuration actions
  11810. from templates according to the current configuration. Unless the files
  11811. and actions are specified as TAGs, all are instantiated by default.
  11812. Usage: $0 [OPTION]... [TAG]...
  11813. -h, --help print this help, then exit
  11814. -V, --version print version number and configuration settings, then exit
  11815. --config print configuration, then exit
  11816. -q, --quiet, --silent
  11817. do not print progress messages
  11818. -d, --debug don't remove temporary files
  11819. --recheck update $as_me by reconfiguring in the same conditions
  11820. --file=FILE[:TEMPLATE]
  11821. instantiate the configuration file FILE
  11822. --header=FILE[:TEMPLATE]
  11823. instantiate the configuration header FILE
  11824. Configuration files:
  11825. $config_files
  11826. Configuration headers:
  11827. $config_headers
  11828. Configuration commands:
  11829. $config_commands
  11830. Report bugs to the package provider."
  11831. _ACEOF
  11832. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11833. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11834. ac_cs_version="\\
  11835. libedit config.status 3.1
  11836. configured by $0, generated by GNU Autoconf 2.69,
  11837. with options \\"\$ac_cs_config\\"
  11838. Copyright (C) 2012 Free Software Foundation, Inc.
  11839. This config.status script is free software; the Free Software Foundation
  11840. gives unlimited permission to copy, distribute and modify it."
  11841. ac_pwd='$ac_pwd'
  11842. srcdir='$srcdir'
  11843. INSTALL='$INSTALL'
  11844. MKDIR_P='$MKDIR_P'
  11845. AWK='$AWK'
  11846. test -n "\$AWK" || AWK=awk
  11847. _ACEOF
  11848. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11849. # The default lists apply if the user does not specify any file.
  11850. ac_need_defaults=:
  11851. while test $# != 0
  11852. do
  11853. case $1 in
  11854. --*=?*)
  11855. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11856. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11857. ac_shift=:
  11858. ;;
  11859. --*=)
  11860. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11861. ac_optarg=
  11862. ac_shift=:
  11863. ;;
  11864. *)
  11865. ac_option=$1
  11866. ac_optarg=$2
  11867. ac_shift=shift
  11868. ;;
  11869. esac
  11870. case $ac_option in
  11871. # Handling of the options.
  11872. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11873. ac_cs_recheck=: ;;
  11874. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11875. $as_echo "$ac_cs_version"; exit ;;
  11876. --config | --confi | --conf | --con | --co | --c )
  11877. $as_echo "$ac_cs_config"; exit ;;
  11878. --debug | --debu | --deb | --de | --d | -d )
  11879. debug=: ;;
  11880. --file | --fil | --fi | --f )
  11881. $ac_shift
  11882. case $ac_optarg in
  11883. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11884. '') as_fn_error $? "missing file argument" ;;
  11885. esac
  11886. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11887. ac_need_defaults=false;;
  11888. --header | --heade | --head | --hea )
  11889. $ac_shift
  11890. case $ac_optarg in
  11891. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11892. esac
  11893. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11894. ac_need_defaults=false;;
  11895. --he | --h)
  11896. # Conflict between --help and --header
  11897. as_fn_error $? "ambiguous option: \`$1'
  11898. Try \`$0 --help' for more information.";;
  11899. --help | --hel | -h )
  11900. $as_echo "$ac_cs_usage"; exit ;;
  11901. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11902. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11903. ac_cs_silent=: ;;
  11904. # This is an error.
  11905. -*) as_fn_error $? "unrecognized option: \`$1'
  11906. Try \`$0 --help' for more information." ;;
  11907. *) as_fn_append ac_config_targets " $1"
  11908. ac_need_defaults=false ;;
  11909. esac
  11910. shift
  11911. done
  11912. ac_configure_extra_args=
  11913. if $ac_cs_silent; then
  11914. exec 6>/dev/null
  11915. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11916. fi
  11917. _ACEOF
  11918. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11919. if \$ac_cs_recheck; then
  11920. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11921. shift
  11922. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11923. CONFIG_SHELL='$SHELL'
  11924. export CONFIG_SHELL
  11925. exec "\$@"
  11926. fi
  11927. _ACEOF
  11928. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11929. exec 5>>config.log
  11930. {
  11931. echo
  11932. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11933. ## Running $as_me. ##
  11934. _ASBOX
  11935. $as_echo "$ac_log"
  11936. } >&5
  11937. _ACEOF
  11938. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11939. #
  11940. # INIT-COMMANDS
  11941. #
  11942. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11943. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11944. # if CDPATH is set.
  11945. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11946. sed_quote_subst='$sed_quote_subst'
  11947. double_quote_subst='$double_quote_subst'
  11948. delay_variable_subst='$delay_variable_subst'
  11949. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11950. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11951. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11952. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11953. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11954. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11955. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11956. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11957. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11958. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11959. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11960. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11961. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11962. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11963. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11964. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11965. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11966. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11967. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11968. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11969. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11970. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11971. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11972. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11973. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11974. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11975. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11976. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11977. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11978. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11979. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11980. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11981. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11982. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11983. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11984. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11985. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11986. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11987. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11988. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11989. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11990. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11991. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11992. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11993. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11994. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11995. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11996. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11997. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11998. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11999. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12000. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12001. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12002. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12003. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12004. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12005. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12006. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  12007. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  12008. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12009. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12010. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12011. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12012. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12013. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12014. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12015. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12016. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  12017. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12018. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12019. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12020. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12021. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12022. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12023. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12024. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12025. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12026. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12027. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12028. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12029. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12030. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12031. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12032. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12033. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12034. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12035. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12036. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12037. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12038. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12039. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12040. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12041. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12042. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12043. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12044. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12045. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12046. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12047. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12048. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12049. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12050. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12051. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12052. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12053. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  12054. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12055. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12056. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12057. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12058. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12059. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12060. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12061. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12062. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12063. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12064. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12065. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12066. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12067. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12068. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12069. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12070. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12071. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12072. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  12073. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12074. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12075. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12076. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12077. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12078. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12079. LTCC='$LTCC'
  12080. LTCFLAGS='$LTCFLAGS'
  12081. compiler='$compiler_DEFAULT'
  12082. # A function that is used when there is no print builtin or printf.
  12083. func_fallback_echo ()
  12084. {
  12085. eval 'cat <<_LTECHO_EOF
  12086. \$1
  12087. _LTECHO_EOF'
  12088. }
  12089. # Quote evaled strings.
  12090. for var in SHELL \
  12091. ECHO \
  12092. PATH_SEPARATOR \
  12093. SED \
  12094. GREP \
  12095. EGREP \
  12096. FGREP \
  12097. LD \
  12098. NM \
  12099. LN_S \
  12100. lt_SP2NL \
  12101. lt_NL2SP \
  12102. reload_flag \
  12103. OBJDUMP \
  12104. deplibs_check_method \
  12105. file_magic_cmd \
  12106. file_magic_glob \
  12107. want_nocaseglob \
  12108. DLLTOOL \
  12109. sharedlib_from_linklib_cmd \
  12110. AR \
  12111. AR_FLAGS \
  12112. archiver_list_spec \
  12113. STRIP \
  12114. RANLIB \
  12115. CC \
  12116. CFLAGS \
  12117. compiler \
  12118. lt_cv_sys_global_symbol_pipe \
  12119. lt_cv_sys_global_symbol_to_cdecl \
  12120. lt_cv_sys_global_symbol_to_c_name_address \
  12121. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12122. nm_file_list_spec \
  12123. lt_prog_compiler_no_builtin_flag \
  12124. lt_prog_compiler_pic \
  12125. lt_prog_compiler_wl \
  12126. lt_prog_compiler_static \
  12127. lt_cv_prog_compiler_c_o \
  12128. need_locks \
  12129. MANIFEST_TOOL \
  12130. DSYMUTIL \
  12131. NMEDIT \
  12132. LIPO \
  12133. OTOOL \
  12134. OTOOL64 \
  12135. shrext_cmds \
  12136. export_dynamic_flag_spec \
  12137. whole_archive_flag_spec \
  12138. compiler_needs_object \
  12139. with_gnu_ld \
  12140. allow_undefined_flag \
  12141. no_undefined_flag \
  12142. hardcode_libdir_flag_spec \
  12143. hardcode_libdir_separator \
  12144. exclude_expsyms \
  12145. include_expsyms \
  12146. file_list_spec \
  12147. variables_saved_for_relink \
  12148. libname_spec \
  12149. library_names_spec \
  12150. soname_spec \
  12151. install_override_mode \
  12152. finish_eval \
  12153. old_striplib \
  12154. striplib; do
  12155. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12156. *[\\\\\\\`\\"\\\$]*)
  12157. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12158. ;;
  12159. *)
  12160. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12161. ;;
  12162. esac
  12163. done
  12164. # Double-quote double-evaled strings.
  12165. for var in reload_cmds \
  12166. old_postinstall_cmds \
  12167. old_postuninstall_cmds \
  12168. old_archive_cmds \
  12169. extract_expsyms_cmds \
  12170. old_archive_from_new_cmds \
  12171. old_archive_from_expsyms_cmds \
  12172. archive_cmds \
  12173. archive_expsym_cmds \
  12174. module_cmds \
  12175. module_expsym_cmds \
  12176. export_symbols_cmds \
  12177. prelink_cmds \
  12178. postlink_cmds \
  12179. postinstall_cmds \
  12180. postuninstall_cmds \
  12181. finish_cmds \
  12182. sys_lib_search_path_spec \
  12183. sys_lib_dlsearch_path_spec; do
  12184. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12185. *[\\\\\\\`\\"\\\$]*)
  12186. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12187. ;;
  12188. *)
  12189. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12190. ;;
  12191. esac
  12192. done
  12193. ac_aux_dir='$ac_aux_dir'
  12194. xsi_shell='$xsi_shell'
  12195. lt_shell_append='$lt_shell_append'
  12196. # See if we are running on zsh, and set the options which allow our
  12197. # commands through without removal of \ escapes INIT.
  12198. if test -n "\${ZSH_VERSION+set}" ; then
  12199. setopt NO_GLOB_SUBST
  12200. fi
  12201. PACKAGE='$PACKAGE'
  12202. VERSION='$VERSION'
  12203. TIMESTAMP='$TIMESTAMP'
  12204. RM='$RM'
  12205. ofile='$ofile'
  12206. _ACEOF
  12207. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12208. # Handling of arguments.
  12209. for ac_config_target in $ac_config_targets
  12210. do
  12211. case $ac_config_target in
  12212. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12213. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12214. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12215. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12216. "libedit.pc") CONFIG_FILES="$CONFIG_FILES libedit.pc" ;;
  12217. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12218. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12219. esac
  12220. done
  12221. # If the user did not use the arguments to specify the items to instantiate,
  12222. # then the envvar interface is used. Set only those that are not.
  12223. # We use the long form for the default assignment because of an extremely
  12224. # bizarre bug on SunOS 4.1.3.
  12225. if $ac_need_defaults; then
  12226. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12227. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12228. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12229. fi
  12230. # Have a temporary directory for convenience. Make it in the build tree
  12231. # simply because there is no reason against having it here, and in addition,
  12232. # creating and moving files from /tmp can sometimes cause problems.
  12233. # Hook for its removal unless debugging.
  12234. # Note that there is a small window in which the directory will not be cleaned:
  12235. # after its creation but before its name has been assigned to `$tmp'.
  12236. $debug ||
  12237. {
  12238. tmp= ac_tmp=
  12239. trap 'exit_status=$?
  12240. : "${ac_tmp:=$tmp}"
  12241. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12242. ' 0
  12243. trap 'as_fn_exit 1' 1 2 13 15
  12244. }
  12245. # Create a (secure) tmp directory for tmp files.
  12246. {
  12247. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12248. test -d "$tmp"
  12249. } ||
  12250. {
  12251. tmp=./conf$$-$RANDOM
  12252. (umask 077 && mkdir "$tmp")
  12253. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12254. ac_tmp=$tmp
  12255. # Set up the scripts for CONFIG_FILES section.
  12256. # No need to generate them if there are no CONFIG_FILES.
  12257. # This happens for instance with `./config.status config.h'.
  12258. if test -n "$CONFIG_FILES"; then
  12259. ac_cr=`echo X | tr X '\015'`
  12260. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12261. # But we know of no other shell where ac_cr would be empty at this
  12262. # point, so we can use a bashism as a fallback.
  12263. if test "x$ac_cr" = x; then
  12264. eval ac_cr=\$\'\\r\'
  12265. fi
  12266. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12267. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12268. ac_cs_awk_cr='\\r'
  12269. else
  12270. ac_cs_awk_cr=$ac_cr
  12271. fi
  12272. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12273. _ACEOF
  12274. {
  12275. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12276. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12277. echo "_ACEOF"
  12278. } >conf$$subs.sh ||
  12279. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12280. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12281. ac_delim='%!_!# '
  12282. for ac_last_try in false false false false false :; do
  12283. . ./conf$$subs.sh ||
  12284. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12285. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12286. if test $ac_delim_n = $ac_delim_num; then
  12287. break
  12288. elif $ac_last_try; then
  12289. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12290. else
  12291. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12292. fi
  12293. done
  12294. rm -f conf$$subs.sh
  12295. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12296. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12297. _ACEOF
  12298. sed -n '
  12299. h
  12300. s/^/S["/; s/!.*/"]=/
  12301. p
  12302. g
  12303. s/^[^!]*!//
  12304. :repl
  12305. t repl
  12306. s/'"$ac_delim"'$//
  12307. t delim
  12308. :nl
  12309. h
  12310. s/\(.\{148\}\)..*/\1/
  12311. t more1
  12312. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12313. p
  12314. n
  12315. b repl
  12316. :more1
  12317. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12318. p
  12319. g
  12320. s/.\{148\}//
  12321. t nl
  12322. :delim
  12323. h
  12324. s/\(.\{148\}\)..*/\1/
  12325. t more2
  12326. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12327. p
  12328. b
  12329. :more2
  12330. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12331. p
  12332. g
  12333. s/.\{148\}//
  12334. t delim
  12335. ' <conf$$subs.awk | sed '
  12336. /^[^""]/{
  12337. N
  12338. s/\n//
  12339. }
  12340. ' >>$CONFIG_STATUS || ac_write_fail=1
  12341. rm -f conf$$subs.awk
  12342. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12343. _ACAWK
  12344. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12345. for (key in S) S_is_set[key] = 1
  12346. FS = ""
  12347. }
  12348. {
  12349. line = $ 0
  12350. nfields = split(line, field, "@")
  12351. substed = 0
  12352. len = length(field[1])
  12353. for (i = 2; i < nfields; i++) {
  12354. key = field[i]
  12355. keylen = length(key)
  12356. if (S_is_set[key]) {
  12357. value = S[key]
  12358. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12359. len += length(value) + length(field[++i])
  12360. substed = 1
  12361. } else
  12362. len += 1 + keylen
  12363. }
  12364. print line
  12365. }
  12366. _ACAWK
  12367. _ACEOF
  12368. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12369. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12370. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12371. else
  12372. cat
  12373. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12374. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12375. _ACEOF
  12376. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12377. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12378. # trailing colons and then remove the whole line if VPATH becomes empty
  12379. # (actually we leave an empty line to preserve line numbers).
  12380. if test "x$srcdir" = x.; then
  12381. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12382. h
  12383. s///
  12384. s/^/:/
  12385. s/[ ]*$/:/
  12386. s/:\$(srcdir):/:/g
  12387. s/:\${srcdir}:/:/g
  12388. s/:@srcdir@:/:/g
  12389. s/^:*//
  12390. s/:*$//
  12391. x
  12392. s/\(=[ ]*\).*/\1/
  12393. G
  12394. s/\n//
  12395. s/^[^=]*=[ ]*$//
  12396. }'
  12397. fi
  12398. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12399. fi # test -n "$CONFIG_FILES"
  12400. # Set up the scripts for CONFIG_HEADERS section.
  12401. # No need to generate them if there are no CONFIG_HEADERS.
  12402. # This happens for instance with `./config.status Makefile'.
  12403. if test -n "$CONFIG_HEADERS"; then
  12404. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12405. BEGIN {
  12406. _ACEOF
  12407. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12408. # here-document in config.status, that substitutes the proper values into
  12409. # config.h.in to produce config.h.
  12410. # Create a delimiter string that does not exist in confdefs.h, to ease
  12411. # handling of long lines.
  12412. ac_delim='%!_!# '
  12413. for ac_last_try in false false :; do
  12414. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12415. if test -z "$ac_tt"; then
  12416. break
  12417. elif $ac_last_try; then
  12418. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12419. else
  12420. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12421. fi
  12422. done
  12423. # For the awk script, D is an array of macro values keyed by name,
  12424. # likewise P contains macro parameters if any. Preserve backslash
  12425. # newline sequences.
  12426. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12427. sed -n '
  12428. s/.\{148\}/&'"$ac_delim"'/g
  12429. t rset
  12430. :rset
  12431. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12432. t def
  12433. d
  12434. :def
  12435. s/\\$//
  12436. t bsnl
  12437. s/["\\]/\\&/g
  12438. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12439. D["\1"]=" \3"/p
  12440. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12441. d
  12442. :bsnl
  12443. s/["\\]/\\&/g
  12444. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12445. D["\1"]=" \3\\\\\\n"\\/p
  12446. t cont
  12447. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12448. t cont
  12449. d
  12450. :cont
  12451. n
  12452. s/.\{148\}/&'"$ac_delim"'/g
  12453. t clear
  12454. :clear
  12455. s/\\$//
  12456. t bsnlc
  12457. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12458. d
  12459. :bsnlc
  12460. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12461. b cont
  12462. ' <confdefs.h | sed '
  12463. s/'"$ac_delim"'/"\\\
  12464. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12465. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12466. for (key in D) D_is_set[key] = 1
  12467. FS = ""
  12468. }
  12469. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12470. line = \$ 0
  12471. split(line, arg, " ")
  12472. if (arg[1] == "#") {
  12473. defundef = arg[2]
  12474. mac1 = arg[3]
  12475. } else {
  12476. defundef = substr(arg[1], 2)
  12477. mac1 = arg[2]
  12478. }
  12479. split(mac1, mac2, "(") #)
  12480. macro = mac2[1]
  12481. prefix = substr(line, 1, index(line, defundef) - 1)
  12482. if (D_is_set[macro]) {
  12483. # Preserve the white space surrounding the "#".
  12484. print prefix "define", macro P[macro] D[macro]
  12485. next
  12486. } else {
  12487. # Replace #undef with comments. This is necessary, for example,
  12488. # in the case of _POSIX_SOURCE, which is predefined and required
  12489. # on some systems where configure will not decide to define it.
  12490. if (defundef == "undef") {
  12491. print "/*", prefix defundef, macro, "*/"
  12492. next
  12493. }
  12494. }
  12495. }
  12496. { print }
  12497. _ACAWK
  12498. _ACEOF
  12499. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12500. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12501. fi # test -n "$CONFIG_HEADERS"
  12502. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12503. shift
  12504. for ac_tag
  12505. do
  12506. case $ac_tag in
  12507. :[FHLC]) ac_mode=$ac_tag; continue;;
  12508. esac
  12509. case $ac_mode$ac_tag in
  12510. :[FHL]*:*);;
  12511. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12512. :[FH]-) ac_tag=-:-;;
  12513. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12514. esac
  12515. ac_save_IFS=$IFS
  12516. IFS=:
  12517. set x $ac_tag
  12518. IFS=$ac_save_IFS
  12519. shift
  12520. ac_file=$1
  12521. shift
  12522. case $ac_mode in
  12523. :L) ac_source=$1;;
  12524. :[FH])
  12525. ac_file_inputs=
  12526. for ac_f
  12527. do
  12528. case $ac_f in
  12529. -) ac_f="$ac_tmp/stdin";;
  12530. *) # Look for the file first in the build tree, then in the source tree
  12531. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12532. # because $ac_f cannot contain `:'.
  12533. test -f "$ac_f" ||
  12534. case $ac_f in
  12535. [\\/$]*) false;;
  12536. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12537. esac ||
  12538. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12539. esac
  12540. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12541. as_fn_append ac_file_inputs " '$ac_f'"
  12542. done
  12543. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12544. # use $as_me), people would be surprised to read:
  12545. # /* config.h. Generated by config.status. */
  12546. configure_input='Generated from '`
  12547. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12548. `' by configure.'
  12549. if test x"$ac_file" != x-; then
  12550. configure_input="$ac_file. $configure_input"
  12551. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12552. $as_echo "$as_me: creating $ac_file" >&6;}
  12553. fi
  12554. # Neutralize special characters interpreted by sed in replacement strings.
  12555. case $configure_input in #(
  12556. *\&* | *\|* | *\\* )
  12557. ac_sed_conf_input=`$as_echo "$configure_input" |
  12558. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12559. *) ac_sed_conf_input=$configure_input;;
  12560. esac
  12561. case $ac_tag in
  12562. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12563. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12564. esac
  12565. ;;
  12566. esac
  12567. ac_dir=`$as_dirname -- "$ac_file" ||
  12568. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12569. X"$ac_file" : 'X\(//\)[^/]' \| \
  12570. X"$ac_file" : 'X\(//\)$' \| \
  12571. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12572. $as_echo X"$ac_file" |
  12573. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12574. s//\1/
  12575. q
  12576. }
  12577. /^X\(\/\/\)[^/].*/{
  12578. s//\1/
  12579. q
  12580. }
  12581. /^X\(\/\/\)$/{
  12582. s//\1/
  12583. q
  12584. }
  12585. /^X\(\/\).*/{
  12586. s//\1/
  12587. q
  12588. }
  12589. s/.*/./; q'`
  12590. as_dir="$ac_dir"; as_fn_mkdir_p
  12591. ac_builddir=.
  12592. case "$ac_dir" in
  12593. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12594. *)
  12595. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12596. # A ".." for each directory in $ac_dir_suffix.
  12597. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12598. case $ac_top_builddir_sub in
  12599. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12600. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12601. esac ;;
  12602. esac
  12603. ac_abs_top_builddir=$ac_pwd
  12604. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12605. # for backward compatibility:
  12606. ac_top_builddir=$ac_top_build_prefix
  12607. case $srcdir in
  12608. .) # We are building in place.
  12609. ac_srcdir=.
  12610. ac_top_srcdir=$ac_top_builddir_sub
  12611. ac_abs_top_srcdir=$ac_pwd ;;
  12612. [\\/]* | ?:[\\/]* ) # Absolute name.
  12613. ac_srcdir=$srcdir$ac_dir_suffix;
  12614. ac_top_srcdir=$srcdir
  12615. ac_abs_top_srcdir=$srcdir ;;
  12616. *) # Relative name.
  12617. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12618. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12619. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12620. esac
  12621. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12622. case $ac_mode in
  12623. :F)
  12624. #
  12625. # CONFIG_FILE
  12626. #
  12627. case $INSTALL in
  12628. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12629. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12630. esac
  12631. ac_MKDIR_P=$MKDIR_P
  12632. case $MKDIR_P in
  12633. [\\/$]* | ?:[\\/]* ) ;;
  12634. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12635. esac
  12636. _ACEOF
  12637. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12638. # If the template does not know about datarootdir, expand it.
  12639. # FIXME: This hack should be removed a few years after 2.60.
  12640. ac_datarootdir_hack=; ac_datarootdir_seen=
  12641. ac_sed_dataroot='
  12642. /datarootdir/ {
  12643. p
  12644. q
  12645. }
  12646. /@datadir@/p
  12647. /@docdir@/p
  12648. /@infodir@/p
  12649. /@localedir@/p
  12650. /@mandir@/p'
  12651. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12652. *datarootdir*) ac_datarootdir_seen=yes;;
  12653. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12655. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12656. _ACEOF
  12657. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12658. ac_datarootdir_hack='
  12659. s&@datadir@&$datadir&g
  12660. s&@docdir@&$docdir&g
  12661. s&@infodir@&$infodir&g
  12662. s&@localedir@&$localedir&g
  12663. s&@mandir@&$mandir&g
  12664. s&\\\${datarootdir}&$datarootdir&g' ;;
  12665. esac
  12666. _ACEOF
  12667. # Neutralize VPATH when `$srcdir' = `.'.
  12668. # Shell code in configure.ac might set extrasub.
  12669. # FIXME: do we really want to maintain this feature?
  12670. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12671. ac_sed_extra="$ac_vpsub
  12672. $extrasub
  12673. _ACEOF
  12674. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12675. :t
  12676. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12677. s|@configure_input@|$ac_sed_conf_input|;t t
  12678. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12679. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12680. s&@srcdir@&$ac_srcdir&;t t
  12681. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12682. s&@top_srcdir@&$ac_top_srcdir&;t t
  12683. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12684. s&@builddir@&$ac_builddir&;t t
  12685. s&@abs_builddir@&$ac_abs_builddir&;t t
  12686. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12687. s&@INSTALL@&$ac_INSTALL&;t t
  12688. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12689. $ac_datarootdir_hack
  12690. "
  12691. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12692. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12693. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12694. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12695. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12696. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12698. which seems to be undefined. Please make sure it is defined" >&5
  12699. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12700. which seems to be undefined. Please make sure it is defined" >&2;}
  12701. rm -f "$ac_tmp/stdin"
  12702. case $ac_file in
  12703. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12704. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12705. esac \
  12706. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12707. ;;
  12708. :H)
  12709. #
  12710. # CONFIG_HEADER
  12711. #
  12712. if test x"$ac_file" != x-; then
  12713. {
  12714. $as_echo "/* $configure_input */" \
  12715. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12716. } >"$ac_tmp/config.h" \
  12717. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12718. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12719. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12720. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12721. else
  12722. rm -f "$ac_file"
  12723. mv "$ac_tmp/config.h" "$ac_file" \
  12724. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12725. fi
  12726. else
  12727. $as_echo "/* $configure_input */" \
  12728. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12729. || as_fn_error $? "could not create -" "$LINENO" 5
  12730. fi
  12731. # Compute "$ac_file"'s index in $config_headers.
  12732. _am_arg="$ac_file"
  12733. _am_stamp_count=1
  12734. for _am_header in $config_headers :; do
  12735. case $_am_header in
  12736. $_am_arg | $_am_arg:* )
  12737. break ;;
  12738. * )
  12739. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12740. esac
  12741. done
  12742. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12743. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12744. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12745. X"$_am_arg" : 'X\(//\)$' \| \
  12746. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12747. $as_echo X"$_am_arg" |
  12748. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12749. s//\1/
  12750. q
  12751. }
  12752. /^X\(\/\/\)[^/].*/{
  12753. s//\1/
  12754. q
  12755. }
  12756. /^X\(\/\/\)$/{
  12757. s//\1/
  12758. q
  12759. }
  12760. /^X\(\/\).*/{
  12761. s//\1/
  12762. q
  12763. }
  12764. s/.*/./; q'`/stamp-h$_am_stamp_count
  12765. ;;
  12766. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12767. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12768. ;;
  12769. esac
  12770. case $ac_file$ac_mode in
  12771. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12772. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  12773. # are listed without --file. Let's play safe and only enable the eval
  12774. # if we detect the quoting.
  12775. case $CONFIG_FILES in
  12776. *\'*) eval set x "$CONFIG_FILES" ;;
  12777. *) set x $CONFIG_FILES ;;
  12778. esac
  12779. shift
  12780. for mf
  12781. do
  12782. # Strip MF so we end up with the name of the file.
  12783. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12784. # Check whether this is an Automake generated Makefile or not.
  12785. # We used to match only the files named 'Makefile.in', but
  12786. # some people rename them; so instead we look at the file content.
  12787. # Grep'ing the first line is not enough: some people post-process
  12788. # each Makefile.in and add a new line on top of each file to say so.
  12789. # Grep'ing the whole file is not good either: AIX grep has a line
  12790. # limit of 2048, but all sed's we know have understand at least 4000.
  12791. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12792. dirpart=`$as_dirname -- "$mf" ||
  12793. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12794. X"$mf" : 'X\(//\)[^/]' \| \
  12795. X"$mf" : 'X\(//\)$' \| \
  12796. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12797. $as_echo X"$mf" |
  12798. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12799. s//\1/
  12800. q
  12801. }
  12802. /^X\(\/\/\)[^/].*/{
  12803. s//\1/
  12804. q
  12805. }
  12806. /^X\(\/\/\)$/{
  12807. s//\1/
  12808. q
  12809. }
  12810. /^X\(\/\).*/{
  12811. s//\1/
  12812. q
  12813. }
  12814. s/.*/./; q'`
  12815. else
  12816. continue
  12817. fi
  12818. # Extract the definition of DEPDIR, am__include, and am__quote
  12819. # from the Makefile without running 'make'.
  12820. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12821. test -z "$DEPDIR" && continue
  12822. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12823. test -z "am__include" && continue
  12824. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12825. # Find all dependency output files, they are included files with
  12826. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12827. # simplest approach to changing $(DEPDIR) to its actual value in the
  12828. # expansion.
  12829. for file in `sed -n "
  12830. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12831. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12832. # Make sure the directory exists.
  12833. test -f "$dirpart/$file" && continue
  12834. fdir=`$as_dirname -- "$file" ||
  12835. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12836. X"$file" : 'X\(//\)[^/]' \| \
  12837. X"$file" : 'X\(//\)$' \| \
  12838. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12839. $as_echo X"$file" |
  12840. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12841. s//\1/
  12842. q
  12843. }
  12844. /^X\(\/\/\)[^/].*/{
  12845. s//\1/
  12846. q
  12847. }
  12848. /^X\(\/\/\)$/{
  12849. s//\1/
  12850. q
  12851. }
  12852. /^X\(\/\).*/{
  12853. s//\1/
  12854. q
  12855. }
  12856. s/.*/./; q'`
  12857. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12858. # echo "creating $dirpart/$file"
  12859. echo '# dummy' > "$dirpart/$file"
  12860. done
  12861. done
  12862. }
  12863. ;;
  12864. "libtool":C)
  12865. # See if we are running on zsh, and set the options which allow our
  12866. # commands through without removal of \ escapes.
  12867. if test -n "${ZSH_VERSION+set}" ; then
  12868. setopt NO_GLOB_SUBST
  12869. fi
  12870. cfgfile="${ofile}T"
  12871. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12872. $RM "$cfgfile"
  12873. cat <<_LT_EOF >> "$cfgfile"
  12874. #! $SHELL
  12875. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12876. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12877. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12878. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12879. #
  12880. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12881. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  12882. # Foundation, Inc.
  12883. # Written by Gordon Matzigkeit, 1996
  12884. #
  12885. # This file is part of GNU Libtool.
  12886. #
  12887. # GNU Libtool is free software; you can redistribute it and/or
  12888. # modify it under the terms of the GNU General Public License as
  12889. # published by the Free Software Foundation; either version 2 of
  12890. # the License, or (at your option) any later version.
  12891. #
  12892. # As a special exception to the GNU General Public License,
  12893. # if you distribute this file as part of a program or library that
  12894. # is built using GNU Libtool, you may include this file under the
  12895. # same distribution terms that you use for the rest of that program.
  12896. #
  12897. # GNU Libtool is distributed in the hope that it will be useful,
  12898. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12899. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12900. # GNU General Public License for more details.
  12901. #
  12902. # You should have received a copy of the GNU General Public License
  12903. # along with GNU Libtool; see the file COPYING. If not, a copy
  12904. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12905. # obtained by writing to the Free Software Foundation, Inc.,
  12906. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12907. # The names of the tagged configurations supported by this script.
  12908. available_tags=""
  12909. # ### BEGIN LIBTOOL CONFIG
  12910. # Which release of libtool.m4 was used?
  12911. macro_version=$macro_version
  12912. macro_revision=$macro_revision
  12913. # Whether or not to build shared libraries.
  12914. build_libtool_libs=$enable_shared
  12915. # Whether or not to build static libraries.
  12916. build_old_libs=$enable_static
  12917. # What type of objects to build.
  12918. pic_mode=$pic_mode
  12919. # Whether or not to optimize for fast installation.
  12920. fast_install=$enable_fast_install
  12921. # Shell to use when invoking shell scripts.
  12922. SHELL=$lt_SHELL
  12923. # An echo program that protects backslashes.
  12924. ECHO=$lt_ECHO
  12925. # The PATH separator for the build system.
  12926. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12927. # The host system.
  12928. host_alias=$host_alias
  12929. host=$host
  12930. host_os=$host_os
  12931. # The build system.
  12932. build_alias=$build_alias
  12933. build=$build
  12934. build_os=$build_os
  12935. # A sed program that does not truncate output.
  12936. SED=$lt_SED
  12937. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12938. Xsed="\$SED -e 1s/^X//"
  12939. # A grep program that handles long lines.
  12940. GREP=$lt_GREP
  12941. # An ERE matcher.
  12942. EGREP=$lt_EGREP
  12943. # A literal string matcher.
  12944. FGREP=$lt_FGREP
  12945. # A BSD- or MS-compatible name lister.
  12946. NM=$lt_NM
  12947. # Whether we need soft or hard links.
  12948. LN_S=$lt_LN_S
  12949. # What is the maximum length of a command?
  12950. max_cmd_len=$max_cmd_len
  12951. # Object file suffix (normally "o").
  12952. objext=$ac_objext
  12953. # Executable file suffix (normally "").
  12954. exeext=$exeext
  12955. # whether the shell understands "unset".
  12956. lt_unset=$lt_unset
  12957. # turn spaces into newlines.
  12958. SP2NL=$lt_lt_SP2NL
  12959. # turn newlines into spaces.
  12960. NL2SP=$lt_lt_NL2SP
  12961. # convert \$build file names to \$host format.
  12962. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12963. # convert \$build files to toolchain format.
  12964. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12965. # An object symbol dumper.
  12966. OBJDUMP=$lt_OBJDUMP
  12967. # Method to check whether dependent libraries are shared objects.
  12968. deplibs_check_method=$lt_deplibs_check_method
  12969. # Command to use when deplibs_check_method = "file_magic".
  12970. file_magic_cmd=$lt_file_magic_cmd
  12971. # How to find potential files when deplibs_check_method = "file_magic".
  12972. file_magic_glob=$lt_file_magic_glob
  12973. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12974. want_nocaseglob=$lt_want_nocaseglob
  12975. # DLL creation program.
  12976. DLLTOOL=$lt_DLLTOOL
  12977. # Command to associate shared and link libraries.
  12978. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12979. # The archiver.
  12980. AR=$lt_AR
  12981. # Flags to create an archive.
  12982. AR_FLAGS=$lt_AR_FLAGS
  12983. # How to feed a file listing to the archiver.
  12984. archiver_list_spec=$lt_archiver_list_spec
  12985. # A symbol stripping program.
  12986. STRIP=$lt_STRIP
  12987. # Commands used to install an old-style archive.
  12988. RANLIB=$lt_RANLIB
  12989. old_postinstall_cmds=$lt_old_postinstall_cmds
  12990. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12991. # Whether to use a lock for old archive extraction.
  12992. lock_old_archive_extraction=$lock_old_archive_extraction
  12993. # A C compiler.
  12994. LTCC=$lt_CC
  12995. # LTCC compiler flags.
  12996. LTCFLAGS=$lt_CFLAGS
  12997. # Take the output of nm and produce a listing of raw symbols and C names.
  12998. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12999. # Transform the output of nm in a proper C declaration.
  13000. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13001. # Transform the output of nm in a C name address pair.
  13002. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13003. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13004. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13005. # Specify filename containing input files for \$NM.
  13006. nm_file_list_spec=$lt_nm_file_list_spec
  13007. # The root where to search for dependent libraries,and in which our libraries should be installed.
  13008. lt_sysroot=$lt_sysroot
  13009. # The name of the directory that contains temporary libtool files.
  13010. objdir=$objdir
  13011. # Used to examine libraries when file_magic_cmd begins with "file".
  13012. MAGIC_CMD=$MAGIC_CMD
  13013. # Must we lock files when doing compilation?
  13014. need_locks=$lt_need_locks
  13015. # Manifest tool.
  13016. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  13017. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13018. DSYMUTIL=$lt_DSYMUTIL
  13019. # Tool to change global to local symbols on Mac OS X.
  13020. NMEDIT=$lt_NMEDIT
  13021. # Tool to manipulate fat objects and archives on Mac OS X.
  13022. LIPO=$lt_LIPO
  13023. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13024. OTOOL=$lt_OTOOL
  13025. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13026. OTOOL64=$lt_OTOOL64
  13027. # Old archive suffix (normally "a").
  13028. libext=$libext
  13029. # Shared library suffix (normally ".so").
  13030. shrext_cmds=$lt_shrext_cmds
  13031. # The commands to extract the exported symbol list from a shared archive.
  13032. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13033. # Variables whose values should be saved in libtool wrapper scripts and
  13034. # restored at link time.
  13035. variables_saved_for_relink=$lt_variables_saved_for_relink
  13036. # Do we need the "lib" prefix for modules?
  13037. need_lib_prefix=$need_lib_prefix
  13038. # Do we need a version for libraries?
  13039. need_version=$need_version
  13040. # Library versioning type.
  13041. version_type=$version_type
  13042. # Shared library runtime path variable.
  13043. runpath_var=$runpath_var
  13044. # Shared library path variable.
  13045. shlibpath_var=$shlibpath_var
  13046. # Is shlibpath searched before the hard-coded library search path?
  13047. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13048. # Format of library name prefix.
  13049. libname_spec=$lt_libname_spec
  13050. # List of archive names. First name is the real one, the rest are links.
  13051. # The last name is the one that the linker finds with -lNAME
  13052. library_names_spec=$lt_library_names_spec
  13053. # The coded name of the library, if different from the real name.
  13054. soname_spec=$lt_soname_spec
  13055. # Permission mode override for installation of shared libraries.
  13056. install_override_mode=$lt_install_override_mode
  13057. # Command to use after installation of a shared archive.
  13058. postinstall_cmds=$lt_postinstall_cmds
  13059. # Command to use after uninstallation of a shared archive.
  13060. postuninstall_cmds=$lt_postuninstall_cmds
  13061. # Commands used to finish a libtool library installation in a directory.
  13062. finish_cmds=$lt_finish_cmds
  13063. # As "finish_cmds", except a single script fragment to be evaled but
  13064. # not shown.
  13065. finish_eval=$lt_finish_eval
  13066. # Whether we should hardcode library paths into libraries.
  13067. hardcode_into_libs=$hardcode_into_libs
  13068. # Compile-time system search path for libraries.
  13069. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13070. # Run-time system search path for libraries.
  13071. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13072. # Whether dlopen is supported.
  13073. dlopen_support=$enable_dlopen
  13074. # Whether dlopen of programs is supported.
  13075. dlopen_self=$enable_dlopen_self
  13076. # Whether dlopen of statically linked programs is supported.
  13077. dlopen_self_static=$enable_dlopen_self_static
  13078. # Commands to strip libraries.
  13079. old_striplib=$lt_old_striplib
  13080. striplib=$lt_striplib
  13081. # The linker used to build libraries.
  13082. LD=$lt_LD
  13083. # How to create reloadable object files.
  13084. reload_flag=$lt_reload_flag
  13085. reload_cmds=$lt_reload_cmds
  13086. # Commands used to build an old-style archive.
  13087. old_archive_cmds=$lt_old_archive_cmds
  13088. # A language specific compiler.
  13089. CC=$lt_compiler
  13090. # Is the compiler the GNU compiler?
  13091. with_gcc=$GCC
  13092. # Compiler flag to turn off builtin functions.
  13093. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13094. # Additional compiler flags for building library objects.
  13095. pic_flag=$lt_lt_prog_compiler_pic
  13096. # How to pass a linker flag through the compiler.
  13097. wl=$lt_lt_prog_compiler_wl
  13098. # Compiler flag to prevent dynamic linking.
  13099. link_static_flag=$lt_lt_prog_compiler_static
  13100. # Does compiler simultaneously support -c and -o options?
  13101. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13102. # Whether or not to add -lc for building shared libraries.
  13103. build_libtool_need_lc=$archive_cmds_need_lc
  13104. # Whether or not to disallow shared libs when runtime libs are static.
  13105. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13106. # Compiler flag to allow reflexive dlopens.
  13107. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13108. # Compiler flag to generate shared objects directly from archives.
  13109. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13110. # Whether the compiler copes with passing no objects directly.
  13111. compiler_needs_object=$lt_compiler_needs_object
  13112. # Create an old-style archive from a shared archive.
  13113. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13114. # Create a temporary old-style archive to link instead of a shared archive.
  13115. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13116. # Commands used to build a shared archive.
  13117. archive_cmds=$lt_archive_cmds
  13118. archive_expsym_cmds=$lt_archive_expsym_cmds
  13119. # Commands used to build a loadable module if different from building
  13120. # a shared archive.
  13121. module_cmds=$lt_module_cmds
  13122. module_expsym_cmds=$lt_module_expsym_cmds
  13123. # Whether we are building with GNU ld or not.
  13124. with_gnu_ld=$lt_with_gnu_ld
  13125. # Flag that allows shared libraries with undefined symbols to be built.
  13126. allow_undefined_flag=$lt_allow_undefined_flag
  13127. # Flag that enforces no undefined symbols.
  13128. no_undefined_flag=$lt_no_undefined_flag
  13129. # Flag to hardcode \$libdir into a binary during linking.
  13130. # This must work even if \$libdir does not exist
  13131. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13132. # Whether we need a single "-rpath" flag with a separated argument.
  13133. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13134. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13135. # DIR into the resulting binary.
  13136. hardcode_direct=$hardcode_direct
  13137. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13138. # DIR into the resulting binary and the resulting library dependency is
  13139. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13140. # library is relocated.
  13141. hardcode_direct_absolute=$hardcode_direct_absolute
  13142. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13143. # into the resulting binary.
  13144. hardcode_minus_L=$hardcode_minus_L
  13145. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13146. # into the resulting binary.
  13147. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13148. # Set to "yes" if building a shared library automatically hardcodes DIR
  13149. # into the library and all subsequent libraries and executables linked
  13150. # against it.
  13151. hardcode_automatic=$hardcode_automatic
  13152. # Set to yes if linker adds runtime paths of dependent libraries
  13153. # to runtime path list.
  13154. inherit_rpath=$inherit_rpath
  13155. # Whether libtool must link a program against all its dependency libraries.
  13156. link_all_deplibs=$link_all_deplibs
  13157. # Set to "yes" if exported symbols are required.
  13158. always_export_symbols=$always_export_symbols
  13159. # The commands to list exported symbols.
  13160. export_symbols_cmds=$lt_export_symbols_cmds
  13161. # Symbols that should not be listed in the preloaded symbols.
  13162. exclude_expsyms=$lt_exclude_expsyms
  13163. # Symbols that must always be exported.
  13164. include_expsyms=$lt_include_expsyms
  13165. # Commands necessary for linking programs (against libraries) with templates.
  13166. prelink_cmds=$lt_prelink_cmds
  13167. # Commands necessary for finishing linking programs.
  13168. postlink_cmds=$lt_postlink_cmds
  13169. # Specify filename containing input files.
  13170. file_list_spec=$lt_file_list_spec
  13171. # How to hardcode a shared library path into an executable.
  13172. hardcode_action=$hardcode_action
  13173. # ### END LIBTOOL CONFIG
  13174. _LT_EOF
  13175. case $host_os in
  13176. aix3*)
  13177. cat <<\_LT_EOF >> "$cfgfile"
  13178. # AIX sometimes has problems with the GCC collect2 program. For some
  13179. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13180. # vanish in a puff of smoke.
  13181. if test "X${COLLECT_NAMES+set}" != Xset; then
  13182. COLLECT_NAMES=
  13183. export COLLECT_NAMES
  13184. fi
  13185. _LT_EOF
  13186. ;;
  13187. esac
  13188. ltmain="$ac_aux_dir/ltmain.sh"
  13189. # We use sed instead of cat because bash on DJGPP gets confused if
  13190. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13191. # text mode, it properly converts lines to CR/LF. This bash problem
  13192. # is reportedly fixed, but why not run on old versions too?
  13193. sed '$q' "$ltmain" >> "$cfgfile" \
  13194. || (rm -f "$cfgfile"; exit 1)
  13195. if test x"$xsi_shell" = xyes; then
  13196. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  13197. func_dirname ()\
  13198. {\
  13199. \ case ${1} in\
  13200. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  13201. \ * ) func_dirname_result="${3}" ;;\
  13202. \ esac\
  13203. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  13204. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13205. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13206. test 0 -eq $? || _lt_function_replace_fail=:
  13207. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  13208. func_basename ()\
  13209. {\
  13210. \ func_basename_result="${1##*/}"\
  13211. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  13212. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13213. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13214. test 0 -eq $? || _lt_function_replace_fail=:
  13215. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  13216. func_dirname_and_basename ()\
  13217. {\
  13218. \ case ${1} in\
  13219. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  13220. \ * ) func_dirname_result="${3}" ;;\
  13221. \ esac\
  13222. \ func_basename_result="${1##*/}"\
  13223. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  13224. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13225. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13226. test 0 -eq $? || _lt_function_replace_fail=:
  13227. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  13228. func_stripname ()\
  13229. {\
  13230. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  13231. \ # positional parameters, so assign one to ordinary parameter first.\
  13232. \ func_stripname_result=${3}\
  13233. \ func_stripname_result=${func_stripname_result#"${1}"}\
  13234. \ func_stripname_result=${func_stripname_result%"${2}"}\
  13235. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  13236. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13237. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13238. test 0 -eq $? || _lt_function_replace_fail=:
  13239. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  13240. func_split_long_opt ()\
  13241. {\
  13242. \ func_split_long_opt_name=${1%%=*}\
  13243. \ func_split_long_opt_arg=${1#*=}\
  13244. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  13245. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13246. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13247. test 0 -eq $? || _lt_function_replace_fail=:
  13248. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  13249. func_split_short_opt ()\
  13250. {\
  13251. \ func_split_short_opt_arg=${1#??}\
  13252. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  13253. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  13254. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13255. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13256. test 0 -eq $? || _lt_function_replace_fail=:
  13257. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  13258. func_lo2o ()\
  13259. {\
  13260. \ case ${1} in\
  13261. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  13262. \ *) func_lo2o_result=${1} ;;\
  13263. \ esac\
  13264. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  13265. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13266. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13267. test 0 -eq $? || _lt_function_replace_fail=:
  13268. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  13269. func_xform ()\
  13270. {\
  13271. func_xform_result=${1%.*}.lo\
  13272. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  13273. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13274. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13275. test 0 -eq $? || _lt_function_replace_fail=:
  13276. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  13277. func_arith ()\
  13278. {\
  13279. func_arith_result=$(( $* ))\
  13280. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  13281. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13282. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13283. test 0 -eq $? || _lt_function_replace_fail=:
  13284. sed -e '/^func_len ()$/,/^} # func_len /c\
  13285. func_len ()\
  13286. {\
  13287. func_len_result=${#1}\
  13288. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  13289. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13290. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13291. test 0 -eq $? || _lt_function_replace_fail=:
  13292. fi
  13293. if test x"$lt_shell_append" = xyes; then
  13294. sed -e '/^func_append ()$/,/^} # func_append /c\
  13295. func_append ()\
  13296. {\
  13297. eval "${1}+=\\${2}"\
  13298. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  13299. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13300. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13301. test 0 -eq $? || _lt_function_replace_fail=:
  13302. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  13303. func_append_quoted ()\
  13304. {\
  13305. \ func_quote_for_eval "${2}"\
  13306. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  13307. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  13308. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13309. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13310. test 0 -eq $? || _lt_function_replace_fail=:
  13311. # Save a `func_append' function call where possible by direct use of '+='
  13312. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  13313. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13314. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13315. test 0 -eq $? || _lt_function_replace_fail=:
  13316. else
  13317. # Save a `func_append' function call even when '+=' is not available
  13318. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  13319. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13320. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13321. test 0 -eq $? || _lt_function_replace_fail=:
  13322. fi
  13323. if test x"$_lt_function_replace_fail" = x":"; then
  13324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  13325. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  13326. fi
  13327. mv -f "$cfgfile" "$ofile" ||
  13328. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13329. chmod +x "$ofile"
  13330. ;;
  13331. esac
  13332. done # for ac_tag
  13333. as_fn_exit 0
  13334. _ACEOF
  13335. ac_clean_files=$ac_clean_files_save
  13336. test $ac_write_fail = 0 ||
  13337. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13338. # configure is writing to config.log, and then calls config.status.
  13339. # config.status does its own redirection, appending to config.log.
  13340. # Unfortunately, on DOS this fails, as config.log is still kept open
  13341. # by configure, so config.status won't be able to write to it; its
  13342. # output is simply discarded. So we exec the FD to /dev/null,
  13343. # effectively closing config.log, so it can be properly (re)opened and
  13344. # appended to by config.status. When coming back to configure, we
  13345. # need to make the FD available again.
  13346. if test "$no_create" != yes; then
  13347. ac_cs_success=:
  13348. ac_config_status_args=
  13349. test "$silent" = yes &&
  13350. ac_config_status_args="$ac_config_status_args --quiet"
  13351. exec 5>/dev/null
  13352. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13353. exec 5>>config.log
  13354. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13355. # would make configure fail if this is the last instruction.
  13356. $ac_cs_success || as_fn_exit 1
  13357. fi
  13358. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13359. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13360. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13361. fi