configure 502 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for klish 2.2.4.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  259. $0: gmail dot com about your system, including any error
  260. $0: possibly output before this message. Then install a
  261. $0: modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='klish'
  542. PACKAGE_TARNAME='klish'
  543. PACKAGE_VERSION='2.2.4'
  544. PACKAGE_STRING='klish 2.2.4'
  545. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_config_libobj_dir=libc
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. CLISH_PLUGIN_BUILTIN_LIBS
  587. CLISH_PLUGIN_BUILTIN_DEFS
  588. CLISH_PLUGIN_BUILTIN_LIST
  589. LIBOBJS
  590. XML_CFLAGS
  591. XML_LDFLAGS
  592. XML_LIBS
  593. LUA_LIB
  594. LUA_INCLUDE
  595. WITH_LUA_FALSE
  596. WITH_LUA_TRUE
  597. DISABLE_NSS_FALSE
  598. DISABLE_NSS_TRUE
  599. LEGACY_FALSE
  600. LEGACY_TRUE
  601. DEBUG_FALSE
  602. DEBUG_TRUE
  603. HAVE_LD_VERSION_SCRIPT_FALSE
  604. HAVE_LD_VERSION_SCRIPT_TRUE
  605. AM_BACKSLASH
  606. AM_DEFAULT_VERBOSITY
  607. AM_DEFAULT_V
  608. AM_V
  609. am__fastdepCC_FALSE
  610. am__fastdepCC_TRUE
  611. CCDEPMODE
  612. am__nodep
  613. AMDEPBACKSLASH
  614. AMDEP_FALSE
  615. AMDEP_TRUE
  616. am__include
  617. DEPDIR
  618. am__untar
  619. am__tar
  620. AMTAR
  621. am__leading_dot
  622. SET_MAKE
  623. mkdir_p
  624. MKDIR_P
  625. INSTALL_STRIP_PROGRAM
  626. install_sh
  627. MAKEINFO
  628. AUTOHEADER
  629. AUTOMAKE
  630. AUTOCONF
  631. ACLOCAL
  632. VERSION
  633. PACKAGE
  634. CYGPATH_W
  635. am__isrc
  636. INSTALL_DATA
  637. INSTALL_SCRIPT
  638. INSTALL_PROGRAM
  639. LT_SYS_LIBRARY_PATH
  640. OTOOL64
  641. OTOOL
  642. LIPO
  643. NMEDIT
  644. DSYMUTIL
  645. MANIFEST_TOOL
  646. AWK
  647. RANLIB
  648. STRIP
  649. ac_ct_AR
  650. AR
  651. LN_S
  652. NM
  653. ac_ct_DUMPBIN
  654. DUMPBIN
  655. LD
  656. FGREP
  657. SED
  658. LIBTOOL
  659. OBJDUMP
  660. DLLTOOL
  661. AS
  662. host_os
  663. host_vendor
  664. host_cpu
  665. host
  666. build_os
  667. build_vendor
  668. build_cpu
  669. build
  670. EGREP
  671. GREP
  672. CPP
  673. OBJEXT
  674. EXEEXT
  675. ac_ct_CC
  676. CPPFLAGS
  677. LDFLAGS
  678. CFLAGS
  679. CC
  680. SONAME_AGE
  681. SONAME_REVISION
  682. SONAME_CURRENT
  683. target_alias
  684. host_alias
  685. build_alias
  686. LIBS
  687. ECHO_T
  688. ECHO_N
  689. ECHO_C
  690. DEFS
  691. mandir
  692. localedir
  693. libdir
  694. psdir
  695. pdfdir
  696. dvidir
  697. htmldir
  698. infodir
  699. docdir
  700. oldincludedir
  701. includedir
  702. runstatedir
  703. localstatedir
  704. sharedstatedir
  705. sysconfdir
  706. datadir
  707. datarootdir
  708. libexecdir
  709. sbindir
  710. bindir
  711. program_transform_name
  712. prefix
  713. exec_prefix
  714. PACKAGE_URL
  715. PACKAGE_BUGREPORT
  716. PACKAGE_STRING
  717. PACKAGE_VERSION
  718. PACKAGE_TARNAME
  719. PACKAGE_NAME
  720. PATH_SEPARATOR
  721. SHELL
  722. am__quote'
  723. ac_subst_files=''
  724. ac_user_opts='
  725. enable_option_checking
  726. enable_shared
  727. enable_static
  728. with_pic
  729. enable_fast_install
  730. with_aix_soname
  731. with_gnu_ld
  732. with_sysroot
  733. enable_libtool_lock
  734. enable_dependency_tracking
  735. enable_silent_rules
  736. enable_ld_version_script
  737. enable_debug
  738. enable_legacy
  739. enable_nss
  740. with_lua
  741. with_libroxml
  742. with_libexpat
  743. with_libxml2
  744. with_libxslt
  745. with_internal_getopt
  746. '
  747. ac_precious_vars='build_alias
  748. host_alias
  749. target_alias
  750. CC
  751. CFLAGS
  752. LDFLAGS
  753. LIBS
  754. CPPFLAGS
  755. CPP
  756. LT_SYS_LIBRARY_PATH
  757. LUA_INCLUDE
  758. LUA_LIB'
  759. # Initialize some variables set by options.
  760. ac_init_help=
  761. ac_init_version=false
  762. ac_unrecognized_opts=
  763. ac_unrecognized_sep=
  764. # The variables have the same names as the options, with
  765. # dashes changed to underlines.
  766. cache_file=/dev/null
  767. exec_prefix=NONE
  768. no_create=
  769. no_recursion=
  770. prefix=NONE
  771. program_prefix=NONE
  772. program_suffix=NONE
  773. program_transform_name=s,x,x,
  774. silent=
  775. site=
  776. srcdir=
  777. verbose=
  778. x_includes=NONE
  779. x_libraries=NONE
  780. # Installation directory options.
  781. # These are left unexpanded so users can "make install exec_prefix=/foo"
  782. # and all the variables that are supposed to be based on exec_prefix
  783. # by default will actually change.
  784. # Use braces instead of parens because sh, perl, etc. also accept them.
  785. # (The list follows the same order as the GNU Coding Standards.)
  786. bindir='${exec_prefix}/bin'
  787. sbindir='${exec_prefix}/sbin'
  788. libexecdir='${exec_prefix}/libexec'
  789. datarootdir='${prefix}/share'
  790. datadir='${datarootdir}'
  791. sysconfdir='${prefix}/etc'
  792. sharedstatedir='${prefix}/com'
  793. localstatedir='${prefix}/var'
  794. runstatedir='${localstatedir}/run'
  795. includedir='${prefix}/include'
  796. oldincludedir='/usr/include'
  797. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  798. infodir='${datarootdir}/info'
  799. htmldir='${docdir}'
  800. dvidir='${docdir}'
  801. pdfdir='${docdir}'
  802. psdir='${docdir}'
  803. libdir='${exec_prefix}/lib'
  804. localedir='${datarootdir}/locale'
  805. mandir='${datarootdir}/man'
  806. ac_prev=
  807. ac_dashdash=
  808. for ac_option
  809. do
  810. # If the previous option needs an argument, assign it.
  811. if test -n "$ac_prev"; then
  812. eval $ac_prev=\$ac_option
  813. ac_prev=
  814. continue
  815. fi
  816. case $ac_option in
  817. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  818. *=) ac_optarg= ;;
  819. *) ac_optarg=yes ;;
  820. esac
  821. # Accept the important Cygnus configure options, so we can diagnose typos.
  822. case $ac_dashdash$ac_option in
  823. --)
  824. ac_dashdash=yes ;;
  825. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  826. ac_prev=bindir ;;
  827. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  828. bindir=$ac_optarg ;;
  829. -build | --build | --buil | --bui | --bu)
  830. ac_prev=build_alias ;;
  831. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  832. build_alias=$ac_optarg ;;
  833. -cache-file | --cache-file | --cache-fil | --cache-fi \
  834. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  835. ac_prev=cache_file ;;
  836. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  837. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  838. cache_file=$ac_optarg ;;
  839. --config-cache | -C)
  840. cache_file=config.cache ;;
  841. -datadir | --datadir | --datadi | --datad)
  842. ac_prev=datadir ;;
  843. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  844. datadir=$ac_optarg ;;
  845. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  846. | --dataroo | --dataro | --datar)
  847. ac_prev=datarootdir ;;
  848. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  849. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  850. datarootdir=$ac_optarg ;;
  851. -disable-* | --disable-*)
  852. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  853. # Reject names that are not valid shell variable names.
  854. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  855. as_fn_error $? "invalid feature name: $ac_useropt"
  856. ac_useropt_orig=$ac_useropt
  857. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  858. case $ac_user_opts in
  859. *"
  860. "enable_$ac_useropt"
  861. "*) ;;
  862. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  863. ac_unrecognized_sep=', ';;
  864. esac
  865. eval enable_$ac_useropt=no ;;
  866. -docdir | --docdir | --docdi | --doc | --do)
  867. ac_prev=docdir ;;
  868. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  869. docdir=$ac_optarg ;;
  870. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  871. ac_prev=dvidir ;;
  872. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  873. dvidir=$ac_optarg ;;
  874. -enable-* | --enable-*)
  875. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  876. # Reject names that are not valid shell variable names.
  877. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  878. as_fn_error $? "invalid feature name: $ac_useropt"
  879. ac_useropt_orig=$ac_useropt
  880. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  881. case $ac_user_opts in
  882. *"
  883. "enable_$ac_useropt"
  884. "*) ;;
  885. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  886. ac_unrecognized_sep=', ';;
  887. esac
  888. eval enable_$ac_useropt=\$ac_optarg ;;
  889. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  890. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  891. | --exec | --exe | --ex)
  892. ac_prev=exec_prefix ;;
  893. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  894. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  895. | --exec=* | --exe=* | --ex=*)
  896. exec_prefix=$ac_optarg ;;
  897. -gas | --gas | --ga | --g)
  898. # Obsolete; use --with-gas.
  899. with_gas=yes ;;
  900. -help | --help | --hel | --he | -h)
  901. ac_init_help=long ;;
  902. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  903. ac_init_help=recursive ;;
  904. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  905. ac_init_help=short ;;
  906. -host | --host | --hos | --ho)
  907. ac_prev=host_alias ;;
  908. -host=* | --host=* | --hos=* | --ho=*)
  909. host_alias=$ac_optarg ;;
  910. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  911. ac_prev=htmldir ;;
  912. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  913. | --ht=*)
  914. htmldir=$ac_optarg ;;
  915. -includedir | --includedir | --includedi | --included | --include \
  916. | --includ | --inclu | --incl | --inc)
  917. ac_prev=includedir ;;
  918. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  919. | --includ=* | --inclu=* | --incl=* | --inc=*)
  920. includedir=$ac_optarg ;;
  921. -infodir | --infodir | --infodi | --infod | --info | --inf)
  922. ac_prev=infodir ;;
  923. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  924. infodir=$ac_optarg ;;
  925. -libdir | --libdir | --libdi | --libd)
  926. ac_prev=libdir ;;
  927. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  928. libdir=$ac_optarg ;;
  929. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  930. | --libexe | --libex | --libe)
  931. ac_prev=libexecdir ;;
  932. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  933. | --libexe=* | --libex=* | --libe=*)
  934. libexecdir=$ac_optarg ;;
  935. -localedir | --localedir | --localedi | --localed | --locale)
  936. ac_prev=localedir ;;
  937. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  938. localedir=$ac_optarg ;;
  939. -localstatedir | --localstatedir | --localstatedi | --localstated \
  940. | --localstate | --localstat | --localsta | --localst | --locals)
  941. ac_prev=localstatedir ;;
  942. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  943. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  944. localstatedir=$ac_optarg ;;
  945. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  946. ac_prev=mandir ;;
  947. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  948. mandir=$ac_optarg ;;
  949. -nfp | --nfp | --nf)
  950. # Obsolete; use --without-fp.
  951. with_fp=no ;;
  952. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  953. | --no-cr | --no-c | -n)
  954. no_create=yes ;;
  955. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  956. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  957. no_recursion=yes ;;
  958. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  959. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  960. | --oldin | --oldi | --old | --ol | --o)
  961. ac_prev=oldincludedir ;;
  962. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  963. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  964. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  965. oldincludedir=$ac_optarg ;;
  966. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  967. ac_prev=prefix ;;
  968. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  969. prefix=$ac_optarg ;;
  970. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  971. | --program-pre | --program-pr | --program-p)
  972. ac_prev=program_prefix ;;
  973. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  974. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  975. program_prefix=$ac_optarg ;;
  976. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  977. | --program-suf | --program-su | --program-s)
  978. ac_prev=program_suffix ;;
  979. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  980. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  981. program_suffix=$ac_optarg ;;
  982. -program-transform-name | --program-transform-name \
  983. | --program-transform-nam | --program-transform-na \
  984. | --program-transform-n | --program-transform- \
  985. | --program-transform | --program-transfor \
  986. | --program-transfo | --program-transf \
  987. | --program-trans | --program-tran \
  988. | --progr-tra | --program-tr | --program-t)
  989. ac_prev=program_transform_name ;;
  990. -program-transform-name=* | --program-transform-name=* \
  991. | --program-transform-nam=* | --program-transform-na=* \
  992. | --program-transform-n=* | --program-transform-=* \
  993. | --program-transform=* | --program-transfor=* \
  994. | --program-transfo=* | --program-transf=* \
  995. | --program-trans=* | --program-tran=* \
  996. | --progr-tra=* | --program-tr=* | --program-t=*)
  997. program_transform_name=$ac_optarg ;;
  998. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  999. ac_prev=pdfdir ;;
  1000. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1001. pdfdir=$ac_optarg ;;
  1002. -psdir | --psdir | --psdi | --psd | --ps)
  1003. ac_prev=psdir ;;
  1004. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1005. psdir=$ac_optarg ;;
  1006. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1007. | -silent | --silent | --silen | --sile | --sil)
  1008. silent=yes ;;
  1009. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1010. | --runstate | --runstat | --runsta | --runst | --runs \
  1011. | --run | --ru | --r)
  1012. ac_prev=runstatedir ;;
  1013. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1014. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1015. | --run=* | --ru=* | --r=*)
  1016. runstatedir=$ac_optarg ;;
  1017. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1018. ac_prev=sbindir ;;
  1019. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1020. | --sbi=* | --sb=*)
  1021. sbindir=$ac_optarg ;;
  1022. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1023. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1024. | --sharedst | --shareds | --shared | --share | --shar \
  1025. | --sha | --sh)
  1026. ac_prev=sharedstatedir ;;
  1027. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1028. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1029. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1030. | --sha=* | --sh=*)
  1031. sharedstatedir=$ac_optarg ;;
  1032. -site | --site | --sit)
  1033. ac_prev=site ;;
  1034. -site=* | --site=* | --sit=*)
  1035. site=$ac_optarg ;;
  1036. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1037. ac_prev=srcdir ;;
  1038. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1039. srcdir=$ac_optarg ;;
  1040. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1041. | --syscon | --sysco | --sysc | --sys | --sy)
  1042. ac_prev=sysconfdir ;;
  1043. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1044. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1045. sysconfdir=$ac_optarg ;;
  1046. -target | --target | --targe | --targ | --tar | --ta | --t)
  1047. ac_prev=target_alias ;;
  1048. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1049. target_alias=$ac_optarg ;;
  1050. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1051. verbose=yes ;;
  1052. -version | --version | --versio | --versi | --vers | -V)
  1053. ac_init_version=: ;;
  1054. -with-* | --with-*)
  1055. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1056. # Reject names that are not valid shell variable names.
  1057. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1058. as_fn_error $? "invalid package name: $ac_useropt"
  1059. ac_useropt_orig=$ac_useropt
  1060. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1061. case $ac_user_opts in
  1062. *"
  1063. "with_$ac_useropt"
  1064. "*) ;;
  1065. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1066. ac_unrecognized_sep=', ';;
  1067. esac
  1068. eval with_$ac_useropt=\$ac_optarg ;;
  1069. -without-* | --without-*)
  1070. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1071. # Reject names that are not valid shell variable names.
  1072. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1073. as_fn_error $? "invalid package name: $ac_useropt"
  1074. ac_useropt_orig=$ac_useropt
  1075. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1076. case $ac_user_opts in
  1077. *"
  1078. "with_$ac_useropt"
  1079. "*) ;;
  1080. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1081. ac_unrecognized_sep=', ';;
  1082. esac
  1083. eval with_$ac_useropt=no ;;
  1084. --x)
  1085. # Obsolete; use --with-x.
  1086. with_x=yes ;;
  1087. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1088. | --x-incl | --x-inc | --x-in | --x-i)
  1089. ac_prev=x_includes ;;
  1090. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1091. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1092. x_includes=$ac_optarg ;;
  1093. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1094. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1095. ac_prev=x_libraries ;;
  1096. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1097. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1098. x_libraries=$ac_optarg ;;
  1099. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1100. Try \`$0 --help' for more information"
  1101. ;;
  1102. *=*)
  1103. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1104. # Reject names that are not valid shell variable names.
  1105. case $ac_envvar in #(
  1106. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1107. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1108. esac
  1109. eval $ac_envvar=\$ac_optarg
  1110. export $ac_envvar ;;
  1111. *)
  1112. # FIXME: should be removed in autoconf 3.0.
  1113. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1114. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1115. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1116. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1117. ;;
  1118. esac
  1119. done
  1120. if test -n "$ac_prev"; then
  1121. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1122. as_fn_error $? "missing argument to $ac_option"
  1123. fi
  1124. if test -n "$ac_unrecognized_opts"; then
  1125. case $enable_option_checking in
  1126. no) ;;
  1127. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1128. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1129. esac
  1130. fi
  1131. # Check all directory arguments for consistency.
  1132. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1133. datadir sysconfdir sharedstatedir localstatedir includedir \
  1134. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1135. libdir localedir mandir runstatedir
  1136. do
  1137. eval ac_val=\$$ac_var
  1138. # Remove trailing slashes.
  1139. case $ac_val in
  1140. */ )
  1141. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1142. eval $ac_var=\$ac_val;;
  1143. esac
  1144. # Be sure to have absolute directory names.
  1145. case $ac_val in
  1146. [\\/$]* | ?:[\\/]* ) continue;;
  1147. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1148. esac
  1149. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1150. done
  1151. # There might be people who depend on the old broken behavior: `$host'
  1152. # used to hold the argument of --host etc.
  1153. # FIXME: To remove some day.
  1154. build=$build_alias
  1155. host=$host_alias
  1156. target=$target_alias
  1157. # FIXME: To remove some day.
  1158. if test "x$host_alias" != x; then
  1159. if test "x$build_alias" = x; then
  1160. cross_compiling=maybe
  1161. elif test "x$build_alias" != "x$host_alias"; then
  1162. cross_compiling=yes
  1163. fi
  1164. fi
  1165. ac_tool_prefix=
  1166. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1167. test "$silent" = yes && exec 6>/dev/null
  1168. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1169. ac_ls_di=`ls -di .` &&
  1170. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1171. as_fn_error $? "working directory cannot be determined"
  1172. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1173. as_fn_error $? "pwd does not report name of working directory"
  1174. # Find the source files, if location was not specified.
  1175. if test -z "$srcdir"; then
  1176. ac_srcdir_defaulted=yes
  1177. # Try the directory containing this script, then the parent directory.
  1178. ac_confdir=`$as_dirname -- "$as_myself" ||
  1179. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1180. X"$as_myself" : 'X\(//\)[^/]' \| \
  1181. X"$as_myself" : 'X\(//\)$' \| \
  1182. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1183. $as_echo X"$as_myself" |
  1184. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1185. s//\1/
  1186. q
  1187. }
  1188. /^X\(\/\/\)[^/].*/{
  1189. s//\1/
  1190. q
  1191. }
  1192. /^X\(\/\/\)$/{
  1193. s//\1/
  1194. q
  1195. }
  1196. /^X\(\/\).*/{
  1197. s//\1/
  1198. q
  1199. }
  1200. s/.*/./; q'`
  1201. srcdir=$ac_confdir
  1202. if test ! -r "$srcdir/$ac_unique_file"; then
  1203. srcdir=..
  1204. fi
  1205. else
  1206. ac_srcdir_defaulted=no
  1207. fi
  1208. if test ! -r "$srcdir/$ac_unique_file"; then
  1209. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1210. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1211. fi
  1212. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1213. ac_abs_confdir=`(
  1214. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1215. pwd)`
  1216. # When building in place, set srcdir=.
  1217. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1218. srcdir=.
  1219. fi
  1220. # Remove unnecessary trailing slashes from srcdir.
  1221. # Double slashes in file names in object file debugging info
  1222. # mess up M-x gdb in Emacs.
  1223. case $srcdir in
  1224. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1225. esac
  1226. for ac_var in $ac_precious_vars; do
  1227. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1228. eval ac_env_${ac_var}_value=\$${ac_var}
  1229. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1230. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1231. done
  1232. #
  1233. # Report the --help message.
  1234. #
  1235. if test "$ac_init_help" = "long"; then
  1236. # Omit some internal or obsolete options to make the list less imposing.
  1237. # This message is too long to be a string in the A/UX 3.1 sh.
  1238. cat <<_ACEOF
  1239. \`configure' configures klish 2.2.4 to adapt to many kinds of systems.
  1240. Usage: $0 [OPTION]... [VAR=VALUE]...
  1241. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1242. VAR=VALUE. See below for descriptions of some of the useful variables.
  1243. Defaults for the options are specified in brackets.
  1244. Configuration:
  1245. -h, --help display this help and exit
  1246. --help=short display options specific to this package
  1247. --help=recursive display the short help of all the included packages
  1248. -V, --version display version information and exit
  1249. -q, --quiet, --silent do not print \`checking ...' messages
  1250. --cache-file=FILE cache test results in FILE [disabled]
  1251. -C, --config-cache alias for \`--cache-file=config.cache'
  1252. -n, --no-create do not create output files
  1253. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1254. Installation directories:
  1255. --prefix=PREFIX install architecture-independent files in PREFIX
  1256. [$ac_default_prefix]
  1257. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1258. [PREFIX]
  1259. By default, \`make install' will install all the files in
  1260. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1261. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1262. for instance \`--prefix=\$HOME'.
  1263. For better control, use the options below.
  1264. Fine tuning of the installation directories:
  1265. --bindir=DIR user executables [EPREFIX/bin]
  1266. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1267. --libexecdir=DIR program executables [EPREFIX/libexec]
  1268. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1269. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1270. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1271. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1272. --libdir=DIR object code libraries [EPREFIX/lib]
  1273. --includedir=DIR C header files [PREFIX/include]
  1274. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1275. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1276. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1277. --infodir=DIR info documentation [DATAROOTDIR/info]
  1278. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1279. --mandir=DIR man documentation [DATAROOTDIR/man]
  1280. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1281. --htmldir=DIR html documentation [DOCDIR]
  1282. --dvidir=DIR dvi documentation [DOCDIR]
  1283. --pdfdir=DIR pdf documentation [DOCDIR]
  1284. --psdir=DIR ps documentation [DOCDIR]
  1285. _ACEOF
  1286. cat <<\_ACEOF
  1287. Program names:
  1288. --program-prefix=PREFIX prepend PREFIX to installed program names
  1289. --program-suffix=SUFFIX append SUFFIX to installed program names
  1290. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1291. System types:
  1292. --build=BUILD configure for building on BUILD [guessed]
  1293. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1294. _ACEOF
  1295. fi
  1296. if test -n "$ac_init_help"; then
  1297. case $ac_init_help in
  1298. short | recursive ) echo "Configuration of klish 2.2.4:";;
  1299. esac
  1300. cat <<\_ACEOF
  1301. Optional Features:
  1302. --disable-option-checking ignore unrecognized --enable/--with options
  1303. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1304. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1305. --enable-shared[=PKGS] build shared libraries [default=yes]
  1306. --enable-static[=PKGS] build static libraries [default=yes]
  1307. --enable-fast-install[=PKGS]
  1308. optimize for fast installation [default=yes]
  1309. --disable-libtool-lock avoid locking (might break parallel builds)
  1310. --enable-dependency-tracking
  1311. do not reject slow dependency extractors
  1312. --disable-dependency-tracking
  1313. speeds up one-time build
  1314. --enable-silent-rules less verbose build output (undo: "make V=1")
  1315. --disable-silent-rules verbose build output (undo: "make V=0")
  1316. --enable-ld-version-script
  1317. enable linker version script (default is enabled
  1318. when possible)
  1319. --enable-debug Turn on debugging including asserts [default=no]
  1320. --enable-legacy Turn on legacy klish-2 features [default=no]
  1321. --enable-nss Support for glibc NSS-dependent functions line
  1322. getpwnam() [default=yes]
  1323. Optional Packages:
  1324. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1325. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1326. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1327. both]
  1328. --with-aix-soname=aix|svr4|both
  1329. shared library versioning (aka "SONAME") variant to
  1330. provide on AIX, [default=aix].
  1331. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1332. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1333. compiler's sysroot if not specified).
  1334. --with-lua=DIR Build Lua ACTION plugin [default=no]
  1335. --with-libroxml=DIR Use roxml as the XML parser implementation
  1336. [default=no]
  1337. --with-libexpat=DIR Use expat as the XML parser implementation
  1338. [default=no]
  1339. --with-libxml2=DIR Use libxml2 as the XML parser implementation
  1340. [default=no]
  1341. --with-libxslt=DIR Use libxslt as the XSLT transform engine
  1342. [default=no]. Depend on libxml2 library.
  1343. --with-internal-getopt Use internal implementation of getopt [default=no]
  1344. Some influential environment variables:
  1345. CC C compiler command
  1346. CFLAGS C compiler flags
  1347. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1348. nonstandard directory <lib dir>
  1349. LIBS libraries to pass to the linker, e.g. -l<library>
  1350. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1351. you have headers in a nonstandard directory <include dir>
  1352. CPP C preprocessor
  1353. LT_SYS_LIBRARY_PATH
  1354. User-defined run-time library search path.
  1355. LUA_INCLUDE The Lua includes, e.g. -I/usr/include/lua5.1
  1356. LUA_LIB The Lua library, e.g. -llua5.1
  1357. Use these variables to override the choices made by `configure' or to help
  1358. it to find libraries and programs with nonstandard names/locations.
  1359. Report bugs to <serj.kalichev at gmail dot com>.
  1360. _ACEOF
  1361. ac_status=$?
  1362. fi
  1363. if test "$ac_init_help" = "recursive"; then
  1364. # If there are subdirs, report their specific --help.
  1365. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1366. test -d "$ac_dir" ||
  1367. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1368. continue
  1369. ac_builddir=.
  1370. case "$ac_dir" in
  1371. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1372. *)
  1373. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1374. # A ".." for each directory in $ac_dir_suffix.
  1375. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1376. case $ac_top_builddir_sub in
  1377. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1378. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1379. esac ;;
  1380. esac
  1381. ac_abs_top_builddir=$ac_pwd
  1382. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1383. # for backward compatibility:
  1384. ac_top_builddir=$ac_top_build_prefix
  1385. case $srcdir in
  1386. .) # We are building in place.
  1387. ac_srcdir=.
  1388. ac_top_srcdir=$ac_top_builddir_sub
  1389. ac_abs_top_srcdir=$ac_pwd ;;
  1390. [\\/]* | ?:[\\/]* ) # Absolute name.
  1391. ac_srcdir=$srcdir$ac_dir_suffix;
  1392. ac_top_srcdir=$srcdir
  1393. ac_abs_top_srcdir=$srcdir ;;
  1394. *) # Relative name.
  1395. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1396. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1397. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1398. esac
  1399. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1400. cd "$ac_dir" || { ac_status=$?; continue; }
  1401. # Check for guested configure.
  1402. if test -f "$ac_srcdir/configure.gnu"; then
  1403. echo &&
  1404. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1405. elif test -f "$ac_srcdir/configure"; then
  1406. echo &&
  1407. $SHELL "$ac_srcdir/configure" --help=recursive
  1408. else
  1409. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1410. fi || ac_status=$?
  1411. cd "$ac_pwd" || { ac_status=$?; break; }
  1412. done
  1413. fi
  1414. test -n "$ac_init_help" && exit $ac_status
  1415. if $ac_init_version; then
  1416. cat <<\_ACEOF
  1417. klish configure 2.2.4
  1418. generated by GNU Autoconf 2.69
  1419. Copyright (C) 2012 Free Software Foundation, Inc.
  1420. This configure script is free software; the Free Software Foundation
  1421. gives unlimited permission to copy, distribute and modify it.
  1422. _ACEOF
  1423. exit
  1424. fi
  1425. ## ------------------------ ##
  1426. ## Autoconf initialization. ##
  1427. ## ------------------------ ##
  1428. # ac_fn_c_try_compile LINENO
  1429. # --------------------------
  1430. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1431. ac_fn_c_try_compile ()
  1432. {
  1433. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1434. rm -f conftest.$ac_objext
  1435. if { { ac_try="$ac_compile"
  1436. case "(($ac_try" in
  1437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1438. *) ac_try_echo=$ac_try;;
  1439. esac
  1440. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1441. $as_echo "$ac_try_echo"; } >&5
  1442. (eval "$ac_compile") 2>conftest.err
  1443. ac_status=$?
  1444. if test -s conftest.err; then
  1445. grep -v '^ *+' conftest.err >conftest.er1
  1446. cat conftest.er1 >&5
  1447. mv -f conftest.er1 conftest.err
  1448. fi
  1449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1450. test $ac_status = 0; } && {
  1451. test -z "$ac_c_werror_flag" ||
  1452. test ! -s conftest.err
  1453. } && test -s conftest.$ac_objext; then :
  1454. ac_retval=0
  1455. else
  1456. $as_echo "$as_me: failed program was:" >&5
  1457. sed 's/^/| /' conftest.$ac_ext >&5
  1458. ac_retval=1
  1459. fi
  1460. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1461. as_fn_set_status $ac_retval
  1462. } # ac_fn_c_try_compile
  1463. # ac_fn_c_try_cpp LINENO
  1464. # ----------------------
  1465. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1466. ac_fn_c_try_cpp ()
  1467. {
  1468. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1469. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1470. case "(($ac_try" in
  1471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1472. *) ac_try_echo=$ac_try;;
  1473. esac
  1474. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1475. $as_echo "$ac_try_echo"; } >&5
  1476. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1477. ac_status=$?
  1478. if test -s conftest.err; then
  1479. grep -v '^ *+' conftest.err >conftest.er1
  1480. cat conftest.er1 >&5
  1481. mv -f conftest.er1 conftest.err
  1482. fi
  1483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1484. test $ac_status = 0; } > conftest.i && {
  1485. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1486. test ! -s conftest.err
  1487. }; then :
  1488. ac_retval=0
  1489. else
  1490. $as_echo "$as_me: failed program was:" >&5
  1491. sed 's/^/| /' conftest.$ac_ext >&5
  1492. ac_retval=1
  1493. fi
  1494. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1495. as_fn_set_status $ac_retval
  1496. } # ac_fn_c_try_cpp
  1497. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1498. # -------------------------------------------------------
  1499. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1500. # the include files in INCLUDES and setting the cache variable VAR
  1501. # accordingly.
  1502. ac_fn_c_check_header_mongrel ()
  1503. {
  1504. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1505. if eval \${$3+:} false; then :
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1507. $as_echo_n "checking for $2... " >&6; }
  1508. if eval \${$3+:} false; then :
  1509. $as_echo_n "(cached) " >&6
  1510. fi
  1511. eval ac_res=\$$3
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1513. $as_echo "$ac_res" >&6; }
  1514. else
  1515. # Is the header compilable?
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1517. $as_echo_n "checking $2 usability... " >&6; }
  1518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1519. /* end confdefs.h. */
  1520. $4
  1521. #include <$2>
  1522. _ACEOF
  1523. if ac_fn_c_try_compile "$LINENO"; then :
  1524. ac_header_compiler=yes
  1525. else
  1526. ac_header_compiler=no
  1527. fi
  1528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1530. $as_echo "$ac_header_compiler" >&6; }
  1531. # Is the header present?
  1532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1533. $as_echo_n "checking $2 presence... " >&6; }
  1534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1535. /* end confdefs.h. */
  1536. #include <$2>
  1537. _ACEOF
  1538. if ac_fn_c_try_cpp "$LINENO"; then :
  1539. ac_header_preproc=yes
  1540. else
  1541. ac_header_preproc=no
  1542. fi
  1543. rm -f conftest.err conftest.i conftest.$ac_ext
  1544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1545. $as_echo "$ac_header_preproc" >&6; }
  1546. # So? What about this header?
  1547. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1548. yes:no: )
  1549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1550. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1552. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1553. ;;
  1554. no:yes:* )
  1555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1556. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1558. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1560. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1561. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1562. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1563. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1564. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1565. ( $as_echo "## --------------------------------------------- ##
  1566. ## Report this to serj.kalichev at gmail dot com ##
  1567. ## --------------------------------------------- ##"
  1568. ) | sed "s/^/$as_me: WARNING: /" >&2
  1569. ;;
  1570. esac
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1572. $as_echo_n "checking for $2... " >&6; }
  1573. if eval \${$3+:} false; then :
  1574. $as_echo_n "(cached) " >&6
  1575. else
  1576. eval "$3=\$ac_header_compiler"
  1577. fi
  1578. eval ac_res=\$$3
  1579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1580. $as_echo "$ac_res" >&6; }
  1581. fi
  1582. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1583. } # ac_fn_c_check_header_mongrel
  1584. # ac_fn_c_try_run LINENO
  1585. # ----------------------
  1586. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1587. # that executables *can* be run.
  1588. ac_fn_c_try_run ()
  1589. {
  1590. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1591. if { { ac_try="$ac_link"
  1592. case "(($ac_try" in
  1593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1594. *) ac_try_echo=$ac_try;;
  1595. esac
  1596. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1597. $as_echo "$ac_try_echo"; } >&5
  1598. (eval "$ac_link") 2>&5
  1599. ac_status=$?
  1600. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1601. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1602. { { case "(($ac_try" in
  1603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1604. *) ac_try_echo=$ac_try;;
  1605. esac
  1606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1607. $as_echo "$ac_try_echo"; } >&5
  1608. (eval "$ac_try") 2>&5
  1609. ac_status=$?
  1610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1611. test $ac_status = 0; }; }; then :
  1612. ac_retval=0
  1613. else
  1614. $as_echo "$as_me: program exited with status $ac_status" >&5
  1615. $as_echo "$as_me: failed program was:" >&5
  1616. sed 's/^/| /' conftest.$ac_ext >&5
  1617. ac_retval=$ac_status
  1618. fi
  1619. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1620. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1621. as_fn_set_status $ac_retval
  1622. } # ac_fn_c_try_run
  1623. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1624. # -------------------------------------------------------
  1625. # Tests whether HEADER exists and can be compiled using the include files in
  1626. # INCLUDES, setting the cache variable VAR accordingly.
  1627. ac_fn_c_check_header_compile ()
  1628. {
  1629. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1631. $as_echo_n "checking for $2... " >&6; }
  1632. if eval \${$3+:} false; then :
  1633. $as_echo_n "(cached) " >&6
  1634. else
  1635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1636. /* end confdefs.h. */
  1637. $4
  1638. #include <$2>
  1639. _ACEOF
  1640. if ac_fn_c_try_compile "$LINENO"; then :
  1641. eval "$3=yes"
  1642. else
  1643. eval "$3=no"
  1644. fi
  1645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1646. fi
  1647. eval ac_res=\$$3
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1649. $as_echo "$ac_res" >&6; }
  1650. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1651. } # ac_fn_c_check_header_compile
  1652. # ac_fn_c_try_link LINENO
  1653. # -----------------------
  1654. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1655. ac_fn_c_try_link ()
  1656. {
  1657. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1658. rm -f conftest.$ac_objext conftest$ac_exeext
  1659. if { { ac_try="$ac_link"
  1660. case "(($ac_try" in
  1661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1662. *) ac_try_echo=$ac_try;;
  1663. esac
  1664. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1665. $as_echo "$ac_try_echo"; } >&5
  1666. (eval "$ac_link") 2>conftest.err
  1667. ac_status=$?
  1668. if test -s conftest.err; then
  1669. grep -v '^ *+' conftest.err >conftest.er1
  1670. cat conftest.er1 >&5
  1671. mv -f conftest.er1 conftest.err
  1672. fi
  1673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1674. test $ac_status = 0; } && {
  1675. test -z "$ac_c_werror_flag" ||
  1676. test ! -s conftest.err
  1677. } && test -s conftest$ac_exeext && {
  1678. test "$cross_compiling" = yes ||
  1679. test -x conftest$ac_exeext
  1680. }; then :
  1681. ac_retval=0
  1682. else
  1683. $as_echo "$as_me: failed program was:" >&5
  1684. sed 's/^/| /' conftest.$ac_ext >&5
  1685. ac_retval=1
  1686. fi
  1687. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1688. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1689. # interfere with the next link command; also delete a directory that is
  1690. # left behind by Apple's compiler. We do this before executing the actions.
  1691. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1692. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1693. as_fn_set_status $ac_retval
  1694. } # ac_fn_c_try_link
  1695. # ac_fn_c_check_func LINENO FUNC VAR
  1696. # ----------------------------------
  1697. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1698. ac_fn_c_check_func ()
  1699. {
  1700. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1702. $as_echo_n "checking for $2... " >&6; }
  1703. if eval \${$3+:} false; then :
  1704. $as_echo_n "(cached) " >&6
  1705. else
  1706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1707. /* end confdefs.h. */
  1708. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1709. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1710. #define $2 innocuous_$2
  1711. /* System header to define __stub macros and hopefully few prototypes,
  1712. which can conflict with char $2 (); below.
  1713. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1714. <limits.h> exists even on freestanding compilers. */
  1715. #ifdef __STDC__
  1716. # include <limits.h>
  1717. #else
  1718. # include <assert.h>
  1719. #endif
  1720. #undef $2
  1721. /* Override any GCC internal prototype to avoid an error.
  1722. Use char because int might match the return type of a GCC
  1723. builtin and then its argument prototype would still apply. */
  1724. #ifdef __cplusplus
  1725. extern "C"
  1726. #endif
  1727. char $2 ();
  1728. /* The GNU C library defines this for functions which it implements
  1729. to always fail with ENOSYS. Some functions are actually named
  1730. something starting with __ and the normal name is an alias. */
  1731. #if defined __stub_$2 || defined __stub___$2
  1732. choke me
  1733. #endif
  1734. int
  1735. main ()
  1736. {
  1737. return $2 ();
  1738. ;
  1739. return 0;
  1740. }
  1741. _ACEOF
  1742. if ac_fn_c_try_link "$LINENO"; then :
  1743. eval "$3=yes"
  1744. else
  1745. eval "$3=no"
  1746. fi
  1747. rm -f core conftest.err conftest.$ac_objext \
  1748. conftest$ac_exeext conftest.$ac_ext
  1749. fi
  1750. eval ac_res=\$$3
  1751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1752. $as_echo "$ac_res" >&6; }
  1753. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1754. } # ac_fn_c_check_func
  1755. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1756. # --------------------------------------------
  1757. # Tries to find the compile-time value of EXPR in a program that includes
  1758. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1759. # computed
  1760. ac_fn_c_compute_int ()
  1761. {
  1762. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1763. if test "$cross_compiling" = yes; then
  1764. # Depending upon the size, compute the lo and hi bounds.
  1765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1766. /* end confdefs.h. */
  1767. $4
  1768. int
  1769. main ()
  1770. {
  1771. static int test_array [1 - 2 * !(($2) >= 0)];
  1772. test_array [0] = 0;
  1773. return test_array [0];
  1774. ;
  1775. return 0;
  1776. }
  1777. _ACEOF
  1778. if ac_fn_c_try_compile "$LINENO"; then :
  1779. ac_lo=0 ac_mid=0
  1780. while :; do
  1781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1782. /* end confdefs.h. */
  1783. $4
  1784. int
  1785. main ()
  1786. {
  1787. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1788. test_array [0] = 0;
  1789. return test_array [0];
  1790. ;
  1791. return 0;
  1792. }
  1793. _ACEOF
  1794. if ac_fn_c_try_compile "$LINENO"; then :
  1795. ac_hi=$ac_mid; break
  1796. else
  1797. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1798. if test $ac_lo -le $ac_mid; then
  1799. ac_lo= ac_hi=
  1800. break
  1801. fi
  1802. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1803. fi
  1804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1805. done
  1806. else
  1807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1808. /* end confdefs.h. */
  1809. $4
  1810. int
  1811. main ()
  1812. {
  1813. static int test_array [1 - 2 * !(($2) < 0)];
  1814. test_array [0] = 0;
  1815. return test_array [0];
  1816. ;
  1817. return 0;
  1818. }
  1819. _ACEOF
  1820. if ac_fn_c_try_compile "$LINENO"; then :
  1821. ac_hi=-1 ac_mid=-1
  1822. while :; do
  1823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1824. /* end confdefs.h. */
  1825. $4
  1826. int
  1827. main ()
  1828. {
  1829. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1830. test_array [0] = 0;
  1831. return test_array [0];
  1832. ;
  1833. return 0;
  1834. }
  1835. _ACEOF
  1836. if ac_fn_c_try_compile "$LINENO"; then :
  1837. ac_lo=$ac_mid; break
  1838. else
  1839. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1840. if test $ac_mid -le $ac_hi; then
  1841. ac_lo= ac_hi=
  1842. break
  1843. fi
  1844. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1845. fi
  1846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1847. done
  1848. else
  1849. ac_lo= ac_hi=
  1850. fi
  1851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1852. fi
  1853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1854. # Binary search between lo and hi bounds.
  1855. while test "x$ac_lo" != "x$ac_hi"; do
  1856. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1858. /* end confdefs.h. */
  1859. $4
  1860. int
  1861. main ()
  1862. {
  1863. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1864. test_array [0] = 0;
  1865. return test_array [0];
  1866. ;
  1867. return 0;
  1868. }
  1869. _ACEOF
  1870. if ac_fn_c_try_compile "$LINENO"; then :
  1871. ac_hi=$ac_mid
  1872. else
  1873. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1874. fi
  1875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1876. done
  1877. case $ac_lo in #((
  1878. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1879. '') ac_retval=1 ;;
  1880. esac
  1881. else
  1882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1883. /* end confdefs.h. */
  1884. $4
  1885. static long int longval () { return $2; }
  1886. static unsigned long int ulongval () { return $2; }
  1887. #include <stdio.h>
  1888. #include <stdlib.h>
  1889. int
  1890. main ()
  1891. {
  1892. FILE *f = fopen ("conftest.val", "w");
  1893. if (! f)
  1894. return 1;
  1895. if (($2) < 0)
  1896. {
  1897. long int i = longval ();
  1898. if (i != ($2))
  1899. return 1;
  1900. fprintf (f, "%ld", i);
  1901. }
  1902. else
  1903. {
  1904. unsigned long int i = ulongval ();
  1905. if (i != ($2))
  1906. return 1;
  1907. fprintf (f, "%lu", i);
  1908. }
  1909. /* Do not output a trailing newline, as this causes \r\n confusion
  1910. on some platforms. */
  1911. return ferror (f) || fclose (f) != 0;
  1912. ;
  1913. return 0;
  1914. }
  1915. _ACEOF
  1916. if ac_fn_c_try_run "$LINENO"; then :
  1917. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1918. else
  1919. ac_retval=1
  1920. fi
  1921. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1922. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1923. rm -f conftest.val
  1924. fi
  1925. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1926. as_fn_set_status $ac_retval
  1927. } # ac_fn_c_compute_int
  1928. cat >config.log <<_ACEOF
  1929. This file contains any messages produced by compilers while
  1930. running configure, to aid debugging if configure makes a mistake.
  1931. It was created by klish $as_me 2.2.4, which was
  1932. generated by GNU Autoconf 2.69. Invocation command line was
  1933. $ $0 $@
  1934. _ACEOF
  1935. exec 5>>config.log
  1936. {
  1937. cat <<_ASUNAME
  1938. ## --------- ##
  1939. ## Platform. ##
  1940. ## --------- ##
  1941. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1942. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1943. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1944. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1945. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1946. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1947. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1948. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1949. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1950. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1951. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1952. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1953. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1954. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1955. _ASUNAME
  1956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1957. for as_dir in $PATH
  1958. do
  1959. IFS=$as_save_IFS
  1960. test -z "$as_dir" && as_dir=.
  1961. $as_echo "PATH: $as_dir"
  1962. done
  1963. IFS=$as_save_IFS
  1964. } >&5
  1965. cat >&5 <<_ACEOF
  1966. ## ----------- ##
  1967. ## Core tests. ##
  1968. ## ----------- ##
  1969. _ACEOF
  1970. # Keep a trace of the command line.
  1971. # Strip out --no-create and --no-recursion so they do not pile up.
  1972. # Strip out --silent because we don't want to record it for future runs.
  1973. # Also quote any args containing shell meta-characters.
  1974. # Make two passes to allow for proper duplicate-argument suppression.
  1975. ac_configure_args=
  1976. ac_configure_args0=
  1977. ac_configure_args1=
  1978. ac_must_keep_next=false
  1979. for ac_pass in 1 2
  1980. do
  1981. for ac_arg
  1982. do
  1983. case $ac_arg in
  1984. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1985. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1986. | -silent | --silent | --silen | --sile | --sil)
  1987. continue ;;
  1988. *\'*)
  1989. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1990. esac
  1991. case $ac_pass in
  1992. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1993. 2)
  1994. as_fn_append ac_configure_args1 " '$ac_arg'"
  1995. if test $ac_must_keep_next = true; then
  1996. ac_must_keep_next=false # Got value, back to normal.
  1997. else
  1998. case $ac_arg in
  1999. *=* | --config-cache | -C | -disable-* | --disable-* \
  2000. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2001. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2002. | -with-* | --with-* | -without-* | --without-* | --x)
  2003. case "$ac_configure_args0 " in
  2004. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2005. esac
  2006. ;;
  2007. -* ) ac_must_keep_next=true ;;
  2008. esac
  2009. fi
  2010. as_fn_append ac_configure_args " '$ac_arg'"
  2011. ;;
  2012. esac
  2013. done
  2014. done
  2015. { ac_configure_args0=; unset ac_configure_args0;}
  2016. { ac_configure_args1=; unset ac_configure_args1;}
  2017. # When interrupted or exit'd, cleanup temporary files, and complete
  2018. # config.log. We remove comments because anyway the quotes in there
  2019. # would cause problems or look ugly.
  2020. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2021. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2022. trap 'exit_status=$?
  2023. # Save into config.log some information that might help in debugging.
  2024. {
  2025. echo
  2026. $as_echo "## ---------------- ##
  2027. ## Cache variables. ##
  2028. ## ---------------- ##"
  2029. echo
  2030. # The following way of writing the cache mishandles newlines in values,
  2031. (
  2032. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2033. eval ac_val=\$$ac_var
  2034. case $ac_val in #(
  2035. *${as_nl}*)
  2036. case $ac_var in #(
  2037. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2038. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2039. esac
  2040. case $ac_var in #(
  2041. _ | IFS | as_nl) ;; #(
  2042. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2043. *) { eval $ac_var=; unset $ac_var;} ;;
  2044. esac ;;
  2045. esac
  2046. done
  2047. (set) 2>&1 |
  2048. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2049. *${as_nl}ac_space=\ *)
  2050. sed -n \
  2051. "s/'\''/'\''\\\\'\'''\''/g;
  2052. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2053. ;; #(
  2054. *)
  2055. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2056. ;;
  2057. esac |
  2058. sort
  2059. )
  2060. echo
  2061. $as_echo "## ----------------- ##
  2062. ## Output variables. ##
  2063. ## ----------------- ##"
  2064. echo
  2065. for ac_var in $ac_subst_vars
  2066. do
  2067. eval ac_val=\$$ac_var
  2068. case $ac_val in
  2069. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2070. esac
  2071. $as_echo "$ac_var='\''$ac_val'\''"
  2072. done | sort
  2073. echo
  2074. if test -n "$ac_subst_files"; then
  2075. $as_echo "## ------------------- ##
  2076. ## File substitutions. ##
  2077. ## ------------------- ##"
  2078. echo
  2079. for ac_var in $ac_subst_files
  2080. do
  2081. eval ac_val=\$$ac_var
  2082. case $ac_val in
  2083. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2084. esac
  2085. $as_echo "$ac_var='\''$ac_val'\''"
  2086. done | sort
  2087. echo
  2088. fi
  2089. if test -s confdefs.h; then
  2090. $as_echo "## ----------- ##
  2091. ## confdefs.h. ##
  2092. ## ----------- ##"
  2093. echo
  2094. cat confdefs.h
  2095. echo
  2096. fi
  2097. test "$ac_signal" != 0 &&
  2098. $as_echo "$as_me: caught signal $ac_signal"
  2099. $as_echo "$as_me: exit $exit_status"
  2100. } >&5
  2101. rm -f core *.core core.conftest.* &&
  2102. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2103. exit $exit_status
  2104. ' 0
  2105. for ac_signal in 1 2 13 15; do
  2106. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2107. done
  2108. ac_signal=0
  2109. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2110. rm -f -r conftest* confdefs.h
  2111. $as_echo "/* confdefs.h */" > confdefs.h
  2112. # Predefined preprocessor variables.
  2113. cat >>confdefs.h <<_ACEOF
  2114. #define PACKAGE_NAME "$PACKAGE_NAME"
  2115. _ACEOF
  2116. cat >>confdefs.h <<_ACEOF
  2117. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2118. _ACEOF
  2119. cat >>confdefs.h <<_ACEOF
  2120. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2121. _ACEOF
  2122. cat >>confdefs.h <<_ACEOF
  2123. #define PACKAGE_STRING "$PACKAGE_STRING"
  2124. _ACEOF
  2125. cat >>confdefs.h <<_ACEOF
  2126. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2127. _ACEOF
  2128. cat >>confdefs.h <<_ACEOF
  2129. #define PACKAGE_URL "$PACKAGE_URL"
  2130. _ACEOF
  2131. # Let the site file select an alternate cache file if it wants to.
  2132. # Prefer an explicitly selected file to automatically selected ones.
  2133. ac_site_file1=NONE
  2134. ac_site_file2=NONE
  2135. if test -n "$CONFIG_SITE"; then
  2136. # We do not want a PATH search for config.site.
  2137. case $CONFIG_SITE in #((
  2138. -*) ac_site_file1=./$CONFIG_SITE;;
  2139. */*) ac_site_file1=$CONFIG_SITE;;
  2140. *) ac_site_file1=./$CONFIG_SITE;;
  2141. esac
  2142. elif test "x$prefix" != xNONE; then
  2143. ac_site_file1=$prefix/share/config.site
  2144. ac_site_file2=$prefix/etc/config.site
  2145. else
  2146. ac_site_file1=$ac_default_prefix/share/config.site
  2147. ac_site_file2=$ac_default_prefix/etc/config.site
  2148. fi
  2149. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2150. do
  2151. test "x$ac_site_file" = xNONE && continue
  2152. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2154. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2155. sed 's/^/| /' "$ac_site_file" >&5
  2156. . "$ac_site_file" \
  2157. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2158. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2159. as_fn_error $? "failed to load site script $ac_site_file
  2160. See \`config.log' for more details" "$LINENO" 5; }
  2161. fi
  2162. done
  2163. if test -r "$cache_file"; then
  2164. # Some versions of bash will fail to source /dev/null (special files
  2165. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2166. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2168. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2169. case $cache_file in
  2170. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2171. *) . "./$cache_file";;
  2172. esac
  2173. fi
  2174. else
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2176. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2177. >$cache_file
  2178. fi
  2179. # Check that the precious variables saved in the cache have kept the same
  2180. # value.
  2181. ac_cache_corrupted=false
  2182. for ac_var in $ac_precious_vars; do
  2183. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2184. eval ac_new_set=\$ac_env_${ac_var}_set
  2185. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2186. eval ac_new_val=\$ac_env_${ac_var}_value
  2187. case $ac_old_set,$ac_new_set in
  2188. set,)
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2190. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2191. ac_cache_corrupted=: ;;
  2192. ,set)
  2193. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2194. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2195. ac_cache_corrupted=: ;;
  2196. ,);;
  2197. *)
  2198. if test "x$ac_old_val" != "x$ac_new_val"; then
  2199. # differences in whitespace do not lead to failure.
  2200. ac_old_val_w=`echo x $ac_old_val`
  2201. ac_new_val_w=`echo x $ac_new_val`
  2202. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2204. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2205. ac_cache_corrupted=:
  2206. else
  2207. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2208. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2209. eval $ac_var=\$ac_old_val
  2210. fi
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2212. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2214. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2215. fi;;
  2216. esac
  2217. # Pass precious variables to config.status.
  2218. if test "$ac_new_set" = set; then
  2219. case $ac_new_val in
  2220. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2221. *) ac_arg=$ac_var=$ac_new_val ;;
  2222. esac
  2223. case " $ac_configure_args " in
  2224. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2225. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2226. esac
  2227. fi
  2228. done
  2229. if $ac_cache_corrupted; then
  2230. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2231. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2233. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2234. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2235. fi
  2236. ## -------------------- ##
  2237. ## Main body of script. ##
  2238. ## -------------------- ##
  2239. ac_ext=c
  2240. ac_cpp='$CPP $CPPFLAGS'
  2241. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2242. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2243. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2244. ac_aux_dir=
  2245. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2246. if test -f "$ac_dir/install-sh"; then
  2247. ac_aux_dir=$ac_dir
  2248. ac_install_sh="$ac_aux_dir/install-sh -c"
  2249. break
  2250. elif test -f "$ac_dir/install.sh"; then
  2251. ac_aux_dir=$ac_dir
  2252. ac_install_sh="$ac_aux_dir/install.sh -c"
  2253. break
  2254. elif test -f "$ac_dir/shtool"; then
  2255. ac_aux_dir=$ac_dir
  2256. ac_install_sh="$ac_aux_dir/shtool install -c"
  2257. break
  2258. fi
  2259. done
  2260. if test -z "$ac_aux_dir"; then
  2261. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2262. fi
  2263. # These three variables are undocumented and unsupported,
  2264. # and are intended to be withdrawn in a future Autoconf release.
  2265. # They can cause serious problems if a builder's source tree is in a directory
  2266. # whose full name contains unusual characters.
  2267. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2268. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2269. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2270. # Values for SONAME. See -version-info for details.
  2271. SONAME_CURRENT=2
  2272. SONAME_REVISION=0
  2273. SONAME_AGE=0
  2274. # Check for system extensions (_POSIX_THREAD_SEMANTICS for Solaris)
  2275. # Expand $ac_aux_dir to an absolute path.
  2276. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2277. ac_ext=c
  2278. ac_cpp='$CPP $CPPFLAGS'
  2279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2282. if test -n "$ac_tool_prefix"; then
  2283. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2284. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2286. $as_echo_n "checking for $ac_word... " >&6; }
  2287. if ${ac_cv_prog_CC+:} false; then :
  2288. $as_echo_n "(cached) " >&6
  2289. else
  2290. if test -n "$CC"; then
  2291. ac_cv_prog_CC="$CC" # Let the user override the test.
  2292. else
  2293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2294. for as_dir in $PATH
  2295. do
  2296. IFS=$as_save_IFS
  2297. test -z "$as_dir" && as_dir=.
  2298. for ac_exec_ext in '' $ac_executable_extensions; do
  2299. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2300. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2302. break 2
  2303. fi
  2304. done
  2305. done
  2306. IFS=$as_save_IFS
  2307. fi
  2308. fi
  2309. CC=$ac_cv_prog_CC
  2310. if test -n "$CC"; then
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2312. $as_echo "$CC" >&6; }
  2313. else
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2315. $as_echo "no" >&6; }
  2316. fi
  2317. fi
  2318. if test -z "$ac_cv_prog_CC"; then
  2319. ac_ct_CC=$CC
  2320. # Extract the first word of "gcc", so it can be a program name with args.
  2321. set dummy gcc; ac_word=$2
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2323. $as_echo_n "checking for $ac_word... " >&6; }
  2324. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2325. $as_echo_n "(cached) " >&6
  2326. else
  2327. if test -n "$ac_ct_CC"; then
  2328. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2329. else
  2330. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2331. for as_dir in $PATH
  2332. do
  2333. IFS=$as_save_IFS
  2334. test -z "$as_dir" && as_dir=.
  2335. for ac_exec_ext in '' $ac_executable_extensions; do
  2336. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2337. ac_cv_prog_ac_ct_CC="gcc"
  2338. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2339. break 2
  2340. fi
  2341. done
  2342. done
  2343. IFS=$as_save_IFS
  2344. fi
  2345. fi
  2346. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2347. if test -n "$ac_ct_CC"; then
  2348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2349. $as_echo "$ac_ct_CC" >&6; }
  2350. else
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2352. $as_echo "no" >&6; }
  2353. fi
  2354. if test "x$ac_ct_CC" = x; then
  2355. CC=""
  2356. else
  2357. case $cross_compiling:$ac_tool_warned in
  2358. yes:)
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2360. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2361. ac_tool_warned=yes ;;
  2362. esac
  2363. CC=$ac_ct_CC
  2364. fi
  2365. else
  2366. CC="$ac_cv_prog_CC"
  2367. fi
  2368. if test -z "$CC"; then
  2369. if test -n "$ac_tool_prefix"; then
  2370. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2371. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2373. $as_echo_n "checking for $ac_word... " >&6; }
  2374. if ${ac_cv_prog_CC+:} false; then :
  2375. $as_echo_n "(cached) " >&6
  2376. else
  2377. if test -n "$CC"; then
  2378. ac_cv_prog_CC="$CC" # Let the user override the test.
  2379. else
  2380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2381. for as_dir in $PATH
  2382. do
  2383. IFS=$as_save_IFS
  2384. test -z "$as_dir" && as_dir=.
  2385. for ac_exec_ext in '' $ac_executable_extensions; do
  2386. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2387. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2389. break 2
  2390. fi
  2391. done
  2392. done
  2393. IFS=$as_save_IFS
  2394. fi
  2395. fi
  2396. CC=$ac_cv_prog_CC
  2397. if test -n "$CC"; then
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2399. $as_echo "$CC" >&6; }
  2400. else
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2402. $as_echo "no" >&6; }
  2403. fi
  2404. fi
  2405. fi
  2406. if test -z "$CC"; then
  2407. # Extract the first word of "cc", so it can be a program name with args.
  2408. set dummy cc; ac_word=$2
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2410. $as_echo_n "checking for $ac_word... " >&6; }
  2411. if ${ac_cv_prog_CC+:} false; then :
  2412. $as_echo_n "(cached) " >&6
  2413. else
  2414. if test -n "$CC"; then
  2415. ac_cv_prog_CC="$CC" # Let the user override the test.
  2416. else
  2417. ac_prog_rejected=no
  2418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2419. for as_dir in $PATH
  2420. do
  2421. IFS=$as_save_IFS
  2422. test -z "$as_dir" && as_dir=.
  2423. for ac_exec_ext in '' $ac_executable_extensions; do
  2424. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2425. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2426. ac_prog_rejected=yes
  2427. continue
  2428. fi
  2429. ac_cv_prog_CC="cc"
  2430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2431. break 2
  2432. fi
  2433. done
  2434. done
  2435. IFS=$as_save_IFS
  2436. if test $ac_prog_rejected = yes; then
  2437. # We found a bogon in the path, so make sure we never use it.
  2438. set dummy $ac_cv_prog_CC
  2439. shift
  2440. if test $# != 0; then
  2441. # We chose a different compiler from the bogus one.
  2442. # However, it has the same basename, so the bogon will be chosen
  2443. # first if we set CC to just the basename; use the full file name.
  2444. shift
  2445. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2446. fi
  2447. fi
  2448. fi
  2449. fi
  2450. CC=$ac_cv_prog_CC
  2451. if test -n "$CC"; then
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2453. $as_echo "$CC" >&6; }
  2454. else
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2456. $as_echo "no" >&6; }
  2457. fi
  2458. fi
  2459. if test -z "$CC"; then
  2460. if test -n "$ac_tool_prefix"; then
  2461. for ac_prog in cl.exe
  2462. do
  2463. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2464. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2466. $as_echo_n "checking for $ac_word... " >&6; }
  2467. if ${ac_cv_prog_CC+:} false; then :
  2468. $as_echo_n "(cached) " >&6
  2469. else
  2470. if test -n "$CC"; then
  2471. ac_cv_prog_CC="$CC" # Let the user override the test.
  2472. else
  2473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2474. for as_dir in $PATH
  2475. do
  2476. IFS=$as_save_IFS
  2477. test -z "$as_dir" && as_dir=.
  2478. for ac_exec_ext in '' $ac_executable_extensions; do
  2479. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2480. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2482. break 2
  2483. fi
  2484. done
  2485. done
  2486. IFS=$as_save_IFS
  2487. fi
  2488. fi
  2489. CC=$ac_cv_prog_CC
  2490. if test -n "$CC"; then
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2492. $as_echo "$CC" >&6; }
  2493. else
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2495. $as_echo "no" >&6; }
  2496. fi
  2497. test -n "$CC" && break
  2498. done
  2499. fi
  2500. if test -z "$CC"; then
  2501. ac_ct_CC=$CC
  2502. for ac_prog in cl.exe
  2503. do
  2504. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2505. set dummy $ac_prog; ac_word=$2
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2507. $as_echo_n "checking for $ac_word... " >&6; }
  2508. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2509. $as_echo_n "(cached) " >&6
  2510. else
  2511. if test -n "$ac_ct_CC"; then
  2512. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2513. else
  2514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2515. for as_dir in $PATH
  2516. do
  2517. IFS=$as_save_IFS
  2518. test -z "$as_dir" && as_dir=.
  2519. for ac_exec_ext in '' $ac_executable_extensions; do
  2520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2521. ac_cv_prog_ac_ct_CC="$ac_prog"
  2522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2523. break 2
  2524. fi
  2525. done
  2526. done
  2527. IFS=$as_save_IFS
  2528. fi
  2529. fi
  2530. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2531. if test -n "$ac_ct_CC"; then
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2533. $as_echo "$ac_ct_CC" >&6; }
  2534. else
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2536. $as_echo "no" >&6; }
  2537. fi
  2538. test -n "$ac_ct_CC" && break
  2539. done
  2540. if test "x$ac_ct_CC" = x; then
  2541. CC=""
  2542. else
  2543. case $cross_compiling:$ac_tool_warned in
  2544. yes:)
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2546. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2547. ac_tool_warned=yes ;;
  2548. esac
  2549. CC=$ac_ct_CC
  2550. fi
  2551. fi
  2552. fi
  2553. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2554. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2555. as_fn_error $? "no acceptable C compiler found in \$PATH
  2556. See \`config.log' for more details" "$LINENO" 5; }
  2557. # Provide some information about the compiler.
  2558. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2559. set X $ac_compile
  2560. ac_compiler=$2
  2561. for ac_option in --version -v -V -qversion; do
  2562. { { ac_try="$ac_compiler $ac_option >&5"
  2563. case "(($ac_try" in
  2564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2565. *) ac_try_echo=$ac_try;;
  2566. esac
  2567. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2568. $as_echo "$ac_try_echo"; } >&5
  2569. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2570. ac_status=$?
  2571. if test -s conftest.err; then
  2572. sed '10a\
  2573. ... rest of stderr output deleted ...
  2574. 10q' conftest.err >conftest.er1
  2575. cat conftest.er1 >&5
  2576. fi
  2577. rm -f conftest.er1 conftest.err
  2578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2579. test $ac_status = 0; }
  2580. done
  2581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2582. /* end confdefs.h. */
  2583. int
  2584. main ()
  2585. {
  2586. ;
  2587. return 0;
  2588. }
  2589. _ACEOF
  2590. ac_clean_files_save=$ac_clean_files
  2591. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2592. # Try to create an executable without -o first, disregard a.out.
  2593. # It will help us diagnose broken compilers, and finding out an intuition
  2594. # of exeext.
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2596. $as_echo_n "checking whether the C compiler works... " >&6; }
  2597. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2598. # The possible output files:
  2599. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2600. ac_rmfiles=
  2601. for ac_file in $ac_files
  2602. do
  2603. case $ac_file in
  2604. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2605. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2606. esac
  2607. done
  2608. rm -f $ac_rmfiles
  2609. if { { ac_try="$ac_link_default"
  2610. case "(($ac_try" in
  2611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2612. *) ac_try_echo=$ac_try;;
  2613. esac
  2614. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2615. $as_echo "$ac_try_echo"; } >&5
  2616. (eval "$ac_link_default") 2>&5
  2617. ac_status=$?
  2618. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2619. test $ac_status = 0; }; then :
  2620. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2621. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2622. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2623. # so that the user can short-circuit this test for compilers unknown to
  2624. # Autoconf.
  2625. for ac_file in $ac_files ''
  2626. do
  2627. test -f "$ac_file" || continue
  2628. case $ac_file in
  2629. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2630. ;;
  2631. [ab].out )
  2632. # We found the default executable, but exeext='' is most
  2633. # certainly right.
  2634. break;;
  2635. *.* )
  2636. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2637. then :; else
  2638. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2639. fi
  2640. # We set ac_cv_exeext here because the later test for it is not
  2641. # safe: cross compilers may not add the suffix if given an `-o'
  2642. # argument, so we may need to know it at that point already.
  2643. # Even if this section looks crufty: it has the advantage of
  2644. # actually working.
  2645. break;;
  2646. * )
  2647. break;;
  2648. esac
  2649. done
  2650. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2651. else
  2652. ac_file=''
  2653. fi
  2654. if test -z "$ac_file"; then :
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2656. $as_echo "no" >&6; }
  2657. $as_echo "$as_me: failed program was:" >&5
  2658. sed 's/^/| /' conftest.$ac_ext >&5
  2659. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2660. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2661. as_fn_error 77 "C compiler cannot create executables
  2662. See \`config.log' for more details" "$LINENO" 5; }
  2663. else
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2665. $as_echo "yes" >&6; }
  2666. fi
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2668. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2670. $as_echo "$ac_file" >&6; }
  2671. ac_exeext=$ac_cv_exeext
  2672. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2673. ac_clean_files=$ac_clean_files_save
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2675. $as_echo_n "checking for suffix of executables... " >&6; }
  2676. if { { ac_try="$ac_link"
  2677. case "(($ac_try" in
  2678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2679. *) ac_try_echo=$ac_try;;
  2680. esac
  2681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2682. $as_echo "$ac_try_echo"; } >&5
  2683. (eval "$ac_link") 2>&5
  2684. ac_status=$?
  2685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2686. test $ac_status = 0; }; then :
  2687. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2688. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2689. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2690. # `rm'.
  2691. for ac_file in conftest.exe conftest conftest.*; do
  2692. test -f "$ac_file" || continue
  2693. case $ac_file in
  2694. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2695. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2696. break;;
  2697. * ) break;;
  2698. esac
  2699. done
  2700. else
  2701. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2702. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2703. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2704. See \`config.log' for more details" "$LINENO" 5; }
  2705. fi
  2706. rm -f conftest conftest$ac_cv_exeext
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2708. $as_echo "$ac_cv_exeext" >&6; }
  2709. rm -f conftest.$ac_ext
  2710. EXEEXT=$ac_cv_exeext
  2711. ac_exeext=$EXEEXT
  2712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2713. /* end confdefs.h. */
  2714. #include <stdio.h>
  2715. int
  2716. main ()
  2717. {
  2718. FILE *f = fopen ("conftest.out", "w");
  2719. return ferror (f) || fclose (f) != 0;
  2720. ;
  2721. return 0;
  2722. }
  2723. _ACEOF
  2724. ac_clean_files="$ac_clean_files conftest.out"
  2725. # Check that the compiler produces executables we can run. If not, either
  2726. # the compiler is broken, or we cross compile.
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2728. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2729. if test "$cross_compiling" != yes; then
  2730. { { ac_try="$ac_link"
  2731. case "(($ac_try" in
  2732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2733. *) ac_try_echo=$ac_try;;
  2734. esac
  2735. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2736. $as_echo "$ac_try_echo"; } >&5
  2737. (eval "$ac_link") 2>&5
  2738. ac_status=$?
  2739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2740. test $ac_status = 0; }
  2741. if { ac_try='./conftest$ac_cv_exeext'
  2742. { { case "(($ac_try" in
  2743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2744. *) ac_try_echo=$ac_try;;
  2745. esac
  2746. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2747. $as_echo "$ac_try_echo"; } >&5
  2748. (eval "$ac_try") 2>&5
  2749. ac_status=$?
  2750. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2751. test $ac_status = 0; }; }; then
  2752. cross_compiling=no
  2753. else
  2754. if test "$cross_compiling" = maybe; then
  2755. cross_compiling=yes
  2756. else
  2757. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2758. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2759. as_fn_error $? "cannot run C compiled programs.
  2760. If you meant to cross compile, use \`--host'.
  2761. See \`config.log' for more details" "$LINENO" 5; }
  2762. fi
  2763. fi
  2764. fi
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2766. $as_echo "$cross_compiling" >&6; }
  2767. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2768. ac_clean_files=$ac_clean_files_save
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2770. $as_echo_n "checking for suffix of object files... " >&6; }
  2771. if ${ac_cv_objext+:} false; then :
  2772. $as_echo_n "(cached) " >&6
  2773. else
  2774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2775. /* end confdefs.h. */
  2776. int
  2777. main ()
  2778. {
  2779. ;
  2780. return 0;
  2781. }
  2782. _ACEOF
  2783. rm -f conftest.o conftest.obj
  2784. if { { ac_try="$ac_compile"
  2785. case "(($ac_try" in
  2786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2787. *) ac_try_echo=$ac_try;;
  2788. esac
  2789. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2790. $as_echo "$ac_try_echo"; } >&5
  2791. (eval "$ac_compile") 2>&5
  2792. ac_status=$?
  2793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2794. test $ac_status = 0; }; then :
  2795. for ac_file in conftest.o conftest.obj conftest.*; do
  2796. test -f "$ac_file" || continue;
  2797. case $ac_file in
  2798. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2799. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2800. break;;
  2801. esac
  2802. done
  2803. else
  2804. $as_echo "$as_me: failed program was:" >&5
  2805. sed 's/^/| /' conftest.$ac_ext >&5
  2806. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2807. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2808. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2809. See \`config.log' for more details" "$LINENO" 5; }
  2810. fi
  2811. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2812. fi
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2814. $as_echo "$ac_cv_objext" >&6; }
  2815. OBJEXT=$ac_cv_objext
  2816. ac_objext=$OBJEXT
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2818. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2819. if ${ac_cv_c_compiler_gnu+:} false; then :
  2820. $as_echo_n "(cached) " >&6
  2821. else
  2822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2823. /* end confdefs.h. */
  2824. int
  2825. main ()
  2826. {
  2827. #ifndef __GNUC__
  2828. choke me
  2829. #endif
  2830. ;
  2831. return 0;
  2832. }
  2833. _ACEOF
  2834. if ac_fn_c_try_compile "$LINENO"; then :
  2835. ac_compiler_gnu=yes
  2836. else
  2837. ac_compiler_gnu=no
  2838. fi
  2839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2840. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2841. fi
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2843. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2844. if test $ac_compiler_gnu = yes; then
  2845. GCC=yes
  2846. else
  2847. GCC=
  2848. fi
  2849. ac_test_CFLAGS=${CFLAGS+set}
  2850. ac_save_CFLAGS=$CFLAGS
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2852. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2853. if ${ac_cv_prog_cc_g+:} false; then :
  2854. $as_echo_n "(cached) " >&6
  2855. else
  2856. ac_save_c_werror_flag=$ac_c_werror_flag
  2857. ac_c_werror_flag=yes
  2858. ac_cv_prog_cc_g=no
  2859. CFLAGS="-g"
  2860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2861. /* end confdefs.h. */
  2862. int
  2863. main ()
  2864. {
  2865. ;
  2866. return 0;
  2867. }
  2868. _ACEOF
  2869. if ac_fn_c_try_compile "$LINENO"; then :
  2870. ac_cv_prog_cc_g=yes
  2871. else
  2872. CFLAGS=""
  2873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2874. /* end confdefs.h. */
  2875. int
  2876. main ()
  2877. {
  2878. ;
  2879. return 0;
  2880. }
  2881. _ACEOF
  2882. if ac_fn_c_try_compile "$LINENO"; then :
  2883. else
  2884. ac_c_werror_flag=$ac_save_c_werror_flag
  2885. CFLAGS="-g"
  2886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2887. /* end confdefs.h. */
  2888. int
  2889. main ()
  2890. {
  2891. ;
  2892. return 0;
  2893. }
  2894. _ACEOF
  2895. if ac_fn_c_try_compile "$LINENO"; then :
  2896. ac_cv_prog_cc_g=yes
  2897. fi
  2898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2899. fi
  2900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2901. fi
  2902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2903. ac_c_werror_flag=$ac_save_c_werror_flag
  2904. fi
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2906. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2907. if test "$ac_test_CFLAGS" = set; then
  2908. CFLAGS=$ac_save_CFLAGS
  2909. elif test $ac_cv_prog_cc_g = yes; then
  2910. if test "$GCC" = yes; then
  2911. CFLAGS="-g -O2"
  2912. else
  2913. CFLAGS="-g"
  2914. fi
  2915. else
  2916. if test "$GCC" = yes; then
  2917. CFLAGS="-O2"
  2918. else
  2919. CFLAGS=
  2920. fi
  2921. fi
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2923. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2924. if ${ac_cv_prog_cc_c89+:} false; then :
  2925. $as_echo_n "(cached) " >&6
  2926. else
  2927. ac_cv_prog_cc_c89=no
  2928. ac_save_CC=$CC
  2929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2930. /* end confdefs.h. */
  2931. #include <stdarg.h>
  2932. #include <stdio.h>
  2933. struct stat;
  2934. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2935. struct buf { int x; };
  2936. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2937. static char *e (p, i)
  2938. char **p;
  2939. int i;
  2940. {
  2941. return p[i];
  2942. }
  2943. static char *f (char * (*g) (char **, int), char **p, ...)
  2944. {
  2945. char *s;
  2946. va_list v;
  2947. va_start (v,p);
  2948. s = g (p, va_arg (v,int));
  2949. va_end (v);
  2950. return s;
  2951. }
  2952. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2953. function prototypes and stuff, but not '\xHH' hex character constants.
  2954. These don't provoke an error unfortunately, instead are silently treated
  2955. as 'x'. The following induces an error, until -std is added to get
  2956. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2957. array size at least. It's necessary to write '\x00'==0 to get something
  2958. that's true only with -std. */
  2959. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2960. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2961. inside strings and character constants. */
  2962. #define FOO(x) 'x'
  2963. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2964. int test (int i, double x);
  2965. struct s1 {int (*f) (int a);};
  2966. struct s2 {int (*f) (double a);};
  2967. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2968. int argc;
  2969. char **argv;
  2970. int
  2971. main ()
  2972. {
  2973. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2974. ;
  2975. return 0;
  2976. }
  2977. _ACEOF
  2978. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2979. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2980. do
  2981. CC="$ac_save_CC $ac_arg"
  2982. if ac_fn_c_try_compile "$LINENO"; then :
  2983. ac_cv_prog_cc_c89=$ac_arg
  2984. fi
  2985. rm -f core conftest.err conftest.$ac_objext
  2986. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2987. done
  2988. rm -f conftest.$ac_ext
  2989. CC=$ac_save_CC
  2990. fi
  2991. # AC_CACHE_VAL
  2992. case "x$ac_cv_prog_cc_c89" in
  2993. x)
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2995. $as_echo "none needed" >&6; } ;;
  2996. xno)
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2998. $as_echo "unsupported" >&6; } ;;
  2999. *)
  3000. CC="$CC $ac_cv_prog_cc_c89"
  3001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3002. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3003. esac
  3004. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3005. fi
  3006. ac_ext=c
  3007. ac_cpp='$CPP $CPPFLAGS'
  3008. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3009. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3010. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3011. ac_ext=c
  3012. ac_cpp='$CPP $CPPFLAGS'
  3013. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3014. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3015. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3017. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3018. if ${am_cv_prog_cc_c_o+:} false; then :
  3019. $as_echo_n "(cached) " >&6
  3020. else
  3021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3022. /* end confdefs.h. */
  3023. int
  3024. main ()
  3025. {
  3026. ;
  3027. return 0;
  3028. }
  3029. _ACEOF
  3030. # Make sure it works both with $CC and with simple cc.
  3031. # Following AC_PROG_CC_C_O, we do the test twice because some
  3032. # compilers refuse to overwrite an existing .o file with -o,
  3033. # though they will create one.
  3034. am_cv_prog_cc_c_o=yes
  3035. for am_i in 1 2; do
  3036. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3037. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3038. ac_status=$?
  3039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3040. (exit $ac_status); } \
  3041. && test -f conftest2.$ac_objext; then
  3042. : OK
  3043. else
  3044. am_cv_prog_cc_c_o=no
  3045. break
  3046. fi
  3047. done
  3048. rm -f core conftest*
  3049. unset am_i
  3050. fi
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3052. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3053. if test "$am_cv_prog_cc_c_o" != yes; then
  3054. # Losing compiler, so override with the script.
  3055. # FIXME: It is wrong to rewrite CC.
  3056. # But if we don't then we get into trouble of one sort or another.
  3057. # A longer-term fix would be to have automake use am__CC in this case,
  3058. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3059. CC="$am_aux_dir/compile $CC"
  3060. fi
  3061. ac_ext=c
  3062. ac_cpp='$CPP $CPPFLAGS'
  3063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3066. ac_ext=c
  3067. ac_cpp='$CPP $CPPFLAGS'
  3068. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3069. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3070. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3072. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3073. # On Suns, sometimes $CPP names a directory.
  3074. if test -n "$CPP" && test -d "$CPP"; then
  3075. CPP=
  3076. fi
  3077. if test -z "$CPP"; then
  3078. if ${ac_cv_prog_CPP+:} false; then :
  3079. $as_echo_n "(cached) " >&6
  3080. else
  3081. # Double quotes because CPP needs to be expanded
  3082. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3083. do
  3084. ac_preproc_ok=false
  3085. for ac_c_preproc_warn_flag in '' yes
  3086. do
  3087. # Use a header file that comes with gcc, so configuring glibc
  3088. # with a fresh cross-compiler works.
  3089. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3090. # <limits.h> exists even on freestanding compilers.
  3091. # On the NeXT, cc -E runs the code through the compiler's parser,
  3092. # not just through cpp. "Syntax error" is here to catch this case.
  3093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3094. /* end confdefs.h. */
  3095. #ifdef __STDC__
  3096. # include <limits.h>
  3097. #else
  3098. # include <assert.h>
  3099. #endif
  3100. Syntax error
  3101. _ACEOF
  3102. if ac_fn_c_try_cpp "$LINENO"; then :
  3103. else
  3104. # Broken: fails on valid input.
  3105. continue
  3106. fi
  3107. rm -f conftest.err conftest.i conftest.$ac_ext
  3108. # OK, works on sane cases. Now check whether nonexistent headers
  3109. # can be detected and how.
  3110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3111. /* end confdefs.h. */
  3112. #include <ac_nonexistent.h>
  3113. _ACEOF
  3114. if ac_fn_c_try_cpp "$LINENO"; then :
  3115. # Broken: success on invalid input.
  3116. continue
  3117. else
  3118. # Passes both tests.
  3119. ac_preproc_ok=:
  3120. break
  3121. fi
  3122. rm -f conftest.err conftest.i conftest.$ac_ext
  3123. done
  3124. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3125. rm -f conftest.i conftest.err conftest.$ac_ext
  3126. if $ac_preproc_ok; then :
  3127. break
  3128. fi
  3129. done
  3130. ac_cv_prog_CPP=$CPP
  3131. fi
  3132. CPP=$ac_cv_prog_CPP
  3133. else
  3134. ac_cv_prog_CPP=$CPP
  3135. fi
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3137. $as_echo "$CPP" >&6; }
  3138. ac_preproc_ok=false
  3139. for ac_c_preproc_warn_flag in '' yes
  3140. do
  3141. # Use a header file that comes with gcc, so configuring glibc
  3142. # with a fresh cross-compiler works.
  3143. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3144. # <limits.h> exists even on freestanding compilers.
  3145. # On the NeXT, cc -E runs the code through the compiler's parser,
  3146. # not just through cpp. "Syntax error" is here to catch this case.
  3147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3148. /* end confdefs.h. */
  3149. #ifdef __STDC__
  3150. # include <limits.h>
  3151. #else
  3152. # include <assert.h>
  3153. #endif
  3154. Syntax error
  3155. _ACEOF
  3156. if ac_fn_c_try_cpp "$LINENO"; then :
  3157. else
  3158. # Broken: fails on valid input.
  3159. continue
  3160. fi
  3161. rm -f conftest.err conftest.i conftest.$ac_ext
  3162. # OK, works on sane cases. Now check whether nonexistent headers
  3163. # can be detected and how.
  3164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3165. /* end confdefs.h. */
  3166. #include <ac_nonexistent.h>
  3167. _ACEOF
  3168. if ac_fn_c_try_cpp "$LINENO"; then :
  3169. # Broken: success on invalid input.
  3170. continue
  3171. else
  3172. # Passes both tests.
  3173. ac_preproc_ok=:
  3174. break
  3175. fi
  3176. rm -f conftest.err conftest.i conftest.$ac_ext
  3177. done
  3178. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3179. rm -f conftest.i conftest.err conftest.$ac_ext
  3180. if $ac_preproc_ok; then :
  3181. else
  3182. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3183. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3184. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3185. See \`config.log' for more details" "$LINENO" 5; }
  3186. fi
  3187. ac_ext=c
  3188. ac_cpp='$CPP $CPPFLAGS'
  3189. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3190. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3191. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3193. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3194. if ${ac_cv_path_GREP+:} false; then :
  3195. $as_echo_n "(cached) " >&6
  3196. else
  3197. if test -z "$GREP"; then
  3198. ac_path_GREP_found=false
  3199. # Loop through the user's path and test for each of PROGNAME-LIST
  3200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3201. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3202. do
  3203. IFS=$as_save_IFS
  3204. test -z "$as_dir" && as_dir=.
  3205. for ac_prog in grep ggrep; do
  3206. for ac_exec_ext in '' $ac_executable_extensions; do
  3207. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3208. as_fn_executable_p "$ac_path_GREP" || continue
  3209. # Check for GNU ac_path_GREP and select it if it is found.
  3210. # Check for GNU $ac_path_GREP
  3211. case `"$ac_path_GREP" --version 2>&1` in
  3212. *GNU*)
  3213. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3214. *)
  3215. ac_count=0
  3216. $as_echo_n 0123456789 >"conftest.in"
  3217. while :
  3218. do
  3219. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3220. mv "conftest.tmp" "conftest.in"
  3221. cp "conftest.in" "conftest.nl"
  3222. $as_echo 'GREP' >> "conftest.nl"
  3223. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3224. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3225. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3226. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3227. # Best one so far, save it but keep looking for a better one
  3228. ac_cv_path_GREP="$ac_path_GREP"
  3229. ac_path_GREP_max=$ac_count
  3230. fi
  3231. # 10*(2^10) chars as input seems more than enough
  3232. test $ac_count -gt 10 && break
  3233. done
  3234. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3235. esac
  3236. $ac_path_GREP_found && break 3
  3237. done
  3238. done
  3239. done
  3240. IFS=$as_save_IFS
  3241. if test -z "$ac_cv_path_GREP"; then
  3242. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3243. fi
  3244. else
  3245. ac_cv_path_GREP=$GREP
  3246. fi
  3247. fi
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3249. $as_echo "$ac_cv_path_GREP" >&6; }
  3250. GREP="$ac_cv_path_GREP"
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3252. $as_echo_n "checking for egrep... " >&6; }
  3253. if ${ac_cv_path_EGREP+:} false; then :
  3254. $as_echo_n "(cached) " >&6
  3255. else
  3256. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3257. then ac_cv_path_EGREP="$GREP -E"
  3258. else
  3259. if test -z "$EGREP"; then
  3260. ac_path_EGREP_found=false
  3261. # Loop through the user's path and test for each of PROGNAME-LIST
  3262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3263. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3264. do
  3265. IFS=$as_save_IFS
  3266. test -z "$as_dir" && as_dir=.
  3267. for ac_prog in egrep; do
  3268. for ac_exec_ext in '' $ac_executable_extensions; do
  3269. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3270. as_fn_executable_p "$ac_path_EGREP" || continue
  3271. # Check for GNU ac_path_EGREP and select it if it is found.
  3272. # Check for GNU $ac_path_EGREP
  3273. case `"$ac_path_EGREP" --version 2>&1` in
  3274. *GNU*)
  3275. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3276. *)
  3277. ac_count=0
  3278. $as_echo_n 0123456789 >"conftest.in"
  3279. while :
  3280. do
  3281. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3282. mv "conftest.tmp" "conftest.in"
  3283. cp "conftest.in" "conftest.nl"
  3284. $as_echo 'EGREP' >> "conftest.nl"
  3285. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3286. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3287. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3288. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3289. # Best one so far, save it but keep looking for a better one
  3290. ac_cv_path_EGREP="$ac_path_EGREP"
  3291. ac_path_EGREP_max=$ac_count
  3292. fi
  3293. # 10*(2^10) chars as input seems more than enough
  3294. test $ac_count -gt 10 && break
  3295. done
  3296. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3297. esac
  3298. $ac_path_EGREP_found && break 3
  3299. done
  3300. done
  3301. done
  3302. IFS=$as_save_IFS
  3303. if test -z "$ac_cv_path_EGREP"; then
  3304. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3305. fi
  3306. else
  3307. ac_cv_path_EGREP=$EGREP
  3308. fi
  3309. fi
  3310. fi
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3312. $as_echo "$ac_cv_path_EGREP" >&6; }
  3313. EGREP="$ac_cv_path_EGREP"
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3315. $as_echo_n "checking for ANSI C header files... " >&6; }
  3316. if ${ac_cv_header_stdc+:} false; then :
  3317. $as_echo_n "(cached) " >&6
  3318. else
  3319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3320. /* end confdefs.h. */
  3321. #include <stdlib.h>
  3322. #include <stdarg.h>
  3323. #include <string.h>
  3324. #include <float.h>
  3325. int
  3326. main ()
  3327. {
  3328. ;
  3329. return 0;
  3330. }
  3331. _ACEOF
  3332. if ac_fn_c_try_compile "$LINENO"; then :
  3333. ac_cv_header_stdc=yes
  3334. else
  3335. ac_cv_header_stdc=no
  3336. fi
  3337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3338. if test $ac_cv_header_stdc = yes; then
  3339. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3341. /* end confdefs.h. */
  3342. #include <string.h>
  3343. _ACEOF
  3344. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3345. $EGREP "memchr" >/dev/null 2>&1; then :
  3346. else
  3347. ac_cv_header_stdc=no
  3348. fi
  3349. rm -f conftest*
  3350. fi
  3351. if test $ac_cv_header_stdc = yes; then
  3352. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3354. /* end confdefs.h. */
  3355. #include <stdlib.h>
  3356. _ACEOF
  3357. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3358. $EGREP "free" >/dev/null 2>&1; then :
  3359. else
  3360. ac_cv_header_stdc=no
  3361. fi
  3362. rm -f conftest*
  3363. fi
  3364. if test $ac_cv_header_stdc = yes; then
  3365. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3366. if test "$cross_compiling" = yes; then :
  3367. :
  3368. else
  3369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3370. /* end confdefs.h. */
  3371. #include <ctype.h>
  3372. #include <stdlib.h>
  3373. #if ((' ' & 0x0FF) == 0x020)
  3374. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3375. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3376. #else
  3377. # define ISLOWER(c) \
  3378. (('a' <= (c) && (c) <= 'i') \
  3379. || ('j' <= (c) && (c) <= 'r') \
  3380. || ('s' <= (c) && (c) <= 'z'))
  3381. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3382. #endif
  3383. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3384. int
  3385. main ()
  3386. {
  3387. int i;
  3388. for (i = 0; i < 256; i++)
  3389. if (XOR (islower (i), ISLOWER (i))
  3390. || toupper (i) != TOUPPER (i))
  3391. return 2;
  3392. return 0;
  3393. }
  3394. _ACEOF
  3395. if ac_fn_c_try_run "$LINENO"; then :
  3396. else
  3397. ac_cv_header_stdc=no
  3398. fi
  3399. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3400. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3401. fi
  3402. fi
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3405. $as_echo "$ac_cv_header_stdc" >&6; }
  3406. if test $ac_cv_header_stdc = yes; then
  3407. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3408. fi
  3409. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3410. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3411. inttypes.h stdint.h unistd.h
  3412. do :
  3413. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3414. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3415. "
  3416. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3417. cat >>confdefs.h <<_ACEOF
  3418. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3419. _ACEOF
  3420. fi
  3421. done
  3422. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3423. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3424. MINIX=yes
  3425. else
  3426. MINIX=
  3427. fi
  3428. if test "$MINIX" = yes; then
  3429. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3430. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3431. $as_echo "#define _MINIX 1" >>confdefs.h
  3432. fi
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3434. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3435. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3436. $as_echo_n "(cached) " >&6
  3437. else
  3438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3439. /* end confdefs.h. */
  3440. # define __EXTENSIONS__ 1
  3441. $ac_includes_default
  3442. int
  3443. main ()
  3444. {
  3445. ;
  3446. return 0;
  3447. }
  3448. _ACEOF
  3449. if ac_fn_c_try_compile "$LINENO"; then :
  3450. ac_cv_safe_to_define___extensions__=yes
  3451. else
  3452. ac_cv_safe_to_define___extensions__=no
  3453. fi
  3454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3455. fi
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3457. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3458. test $ac_cv_safe_to_define___extensions__ = yes &&
  3459. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3460. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3461. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3462. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3463. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3464. # Checks for programs.
  3465. ac_ext=c
  3466. ac_cpp='$CPP $CPPFLAGS'
  3467. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3468. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3469. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3470. if test -n "$ac_tool_prefix"; then
  3471. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3472. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3474. $as_echo_n "checking for $ac_word... " >&6; }
  3475. if ${ac_cv_prog_CC+:} false; then :
  3476. $as_echo_n "(cached) " >&6
  3477. else
  3478. if test -n "$CC"; then
  3479. ac_cv_prog_CC="$CC" # Let the user override the test.
  3480. else
  3481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3482. for as_dir in $PATH
  3483. do
  3484. IFS=$as_save_IFS
  3485. test -z "$as_dir" && as_dir=.
  3486. for ac_exec_ext in '' $ac_executable_extensions; do
  3487. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3488. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3490. break 2
  3491. fi
  3492. done
  3493. done
  3494. IFS=$as_save_IFS
  3495. fi
  3496. fi
  3497. CC=$ac_cv_prog_CC
  3498. if test -n "$CC"; then
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3500. $as_echo "$CC" >&6; }
  3501. else
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3503. $as_echo "no" >&6; }
  3504. fi
  3505. fi
  3506. if test -z "$ac_cv_prog_CC"; then
  3507. ac_ct_CC=$CC
  3508. # Extract the first word of "gcc", so it can be a program name with args.
  3509. set dummy gcc; ac_word=$2
  3510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3511. $as_echo_n "checking for $ac_word... " >&6; }
  3512. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3513. $as_echo_n "(cached) " >&6
  3514. else
  3515. if test -n "$ac_ct_CC"; then
  3516. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3517. else
  3518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3519. for as_dir in $PATH
  3520. do
  3521. IFS=$as_save_IFS
  3522. test -z "$as_dir" && as_dir=.
  3523. for ac_exec_ext in '' $ac_executable_extensions; do
  3524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3525. ac_cv_prog_ac_ct_CC="gcc"
  3526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3527. break 2
  3528. fi
  3529. done
  3530. done
  3531. IFS=$as_save_IFS
  3532. fi
  3533. fi
  3534. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3535. if test -n "$ac_ct_CC"; then
  3536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3537. $as_echo "$ac_ct_CC" >&6; }
  3538. else
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3540. $as_echo "no" >&6; }
  3541. fi
  3542. if test "x$ac_ct_CC" = x; then
  3543. CC=""
  3544. else
  3545. case $cross_compiling:$ac_tool_warned in
  3546. yes:)
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3548. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3549. ac_tool_warned=yes ;;
  3550. esac
  3551. CC=$ac_ct_CC
  3552. fi
  3553. else
  3554. CC="$ac_cv_prog_CC"
  3555. fi
  3556. if test -z "$CC"; then
  3557. if test -n "$ac_tool_prefix"; then
  3558. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3559. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3561. $as_echo_n "checking for $ac_word... " >&6; }
  3562. if ${ac_cv_prog_CC+:} false; then :
  3563. $as_echo_n "(cached) " >&6
  3564. else
  3565. if test -n "$CC"; then
  3566. ac_cv_prog_CC="$CC" # Let the user override the test.
  3567. else
  3568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3569. for as_dir in $PATH
  3570. do
  3571. IFS=$as_save_IFS
  3572. test -z "$as_dir" && as_dir=.
  3573. for ac_exec_ext in '' $ac_executable_extensions; do
  3574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3575. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3577. break 2
  3578. fi
  3579. done
  3580. done
  3581. IFS=$as_save_IFS
  3582. fi
  3583. fi
  3584. CC=$ac_cv_prog_CC
  3585. if test -n "$CC"; then
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3587. $as_echo "$CC" >&6; }
  3588. else
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3590. $as_echo "no" >&6; }
  3591. fi
  3592. fi
  3593. fi
  3594. if test -z "$CC"; then
  3595. # Extract the first word of "cc", so it can be a program name with args.
  3596. set dummy cc; ac_word=$2
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3598. $as_echo_n "checking for $ac_word... " >&6; }
  3599. if ${ac_cv_prog_CC+:} false; then :
  3600. $as_echo_n "(cached) " >&6
  3601. else
  3602. if test -n "$CC"; then
  3603. ac_cv_prog_CC="$CC" # Let the user override the test.
  3604. else
  3605. ac_prog_rejected=no
  3606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3607. for as_dir in $PATH
  3608. do
  3609. IFS=$as_save_IFS
  3610. test -z "$as_dir" && as_dir=.
  3611. for ac_exec_ext in '' $ac_executable_extensions; do
  3612. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3613. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3614. ac_prog_rejected=yes
  3615. continue
  3616. fi
  3617. ac_cv_prog_CC="cc"
  3618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3619. break 2
  3620. fi
  3621. done
  3622. done
  3623. IFS=$as_save_IFS
  3624. if test $ac_prog_rejected = yes; then
  3625. # We found a bogon in the path, so make sure we never use it.
  3626. set dummy $ac_cv_prog_CC
  3627. shift
  3628. if test $# != 0; then
  3629. # We chose a different compiler from the bogus one.
  3630. # However, it has the same basename, so the bogon will be chosen
  3631. # first if we set CC to just the basename; use the full file name.
  3632. shift
  3633. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3634. fi
  3635. fi
  3636. fi
  3637. fi
  3638. CC=$ac_cv_prog_CC
  3639. if test -n "$CC"; then
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3641. $as_echo "$CC" >&6; }
  3642. else
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3644. $as_echo "no" >&6; }
  3645. fi
  3646. fi
  3647. if test -z "$CC"; then
  3648. if test -n "$ac_tool_prefix"; then
  3649. for ac_prog in cl.exe
  3650. do
  3651. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3652. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3654. $as_echo_n "checking for $ac_word... " >&6; }
  3655. if ${ac_cv_prog_CC+:} false; then :
  3656. $as_echo_n "(cached) " >&6
  3657. else
  3658. if test -n "$CC"; then
  3659. ac_cv_prog_CC="$CC" # Let the user override the test.
  3660. else
  3661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3662. for as_dir in $PATH
  3663. do
  3664. IFS=$as_save_IFS
  3665. test -z "$as_dir" && as_dir=.
  3666. for ac_exec_ext in '' $ac_executable_extensions; do
  3667. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3668. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3670. break 2
  3671. fi
  3672. done
  3673. done
  3674. IFS=$as_save_IFS
  3675. fi
  3676. fi
  3677. CC=$ac_cv_prog_CC
  3678. if test -n "$CC"; then
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3680. $as_echo "$CC" >&6; }
  3681. else
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3683. $as_echo "no" >&6; }
  3684. fi
  3685. test -n "$CC" && break
  3686. done
  3687. fi
  3688. if test -z "$CC"; then
  3689. ac_ct_CC=$CC
  3690. for ac_prog in cl.exe
  3691. do
  3692. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3693. set dummy $ac_prog; ac_word=$2
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3695. $as_echo_n "checking for $ac_word... " >&6; }
  3696. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3697. $as_echo_n "(cached) " >&6
  3698. else
  3699. if test -n "$ac_ct_CC"; then
  3700. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3701. else
  3702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3703. for as_dir in $PATH
  3704. do
  3705. IFS=$as_save_IFS
  3706. test -z "$as_dir" && as_dir=.
  3707. for ac_exec_ext in '' $ac_executable_extensions; do
  3708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3709. ac_cv_prog_ac_ct_CC="$ac_prog"
  3710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3711. break 2
  3712. fi
  3713. done
  3714. done
  3715. IFS=$as_save_IFS
  3716. fi
  3717. fi
  3718. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3719. if test -n "$ac_ct_CC"; then
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3721. $as_echo "$ac_ct_CC" >&6; }
  3722. else
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3724. $as_echo "no" >&6; }
  3725. fi
  3726. test -n "$ac_ct_CC" && break
  3727. done
  3728. if test "x$ac_ct_CC" = x; then
  3729. CC=""
  3730. else
  3731. case $cross_compiling:$ac_tool_warned in
  3732. yes:)
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3734. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3735. ac_tool_warned=yes ;;
  3736. esac
  3737. CC=$ac_ct_CC
  3738. fi
  3739. fi
  3740. fi
  3741. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3742. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3743. as_fn_error $? "no acceptable C compiler found in \$PATH
  3744. See \`config.log' for more details" "$LINENO" 5; }
  3745. # Provide some information about the compiler.
  3746. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3747. set X $ac_compile
  3748. ac_compiler=$2
  3749. for ac_option in --version -v -V -qversion; do
  3750. { { ac_try="$ac_compiler $ac_option >&5"
  3751. case "(($ac_try" in
  3752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3753. *) ac_try_echo=$ac_try;;
  3754. esac
  3755. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3756. $as_echo "$ac_try_echo"; } >&5
  3757. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3758. ac_status=$?
  3759. if test -s conftest.err; then
  3760. sed '10a\
  3761. ... rest of stderr output deleted ...
  3762. 10q' conftest.err >conftest.er1
  3763. cat conftest.er1 >&5
  3764. fi
  3765. rm -f conftest.er1 conftest.err
  3766. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3767. test $ac_status = 0; }
  3768. done
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3770. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3771. if ${ac_cv_c_compiler_gnu+:} false; then :
  3772. $as_echo_n "(cached) " >&6
  3773. else
  3774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3775. /* end confdefs.h. */
  3776. int
  3777. main ()
  3778. {
  3779. #ifndef __GNUC__
  3780. choke me
  3781. #endif
  3782. ;
  3783. return 0;
  3784. }
  3785. _ACEOF
  3786. if ac_fn_c_try_compile "$LINENO"; then :
  3787. ac_compiler_gnu=yes
  3788. else
  3789. ac_compiler_gnu=no
  3790. fi
  3791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3792. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3793. fi
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3795. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3796. if test $ac_compiler_gnu = yes; then
  3797. GCC=yes
  3798. else
  3799. GCC=
  3800. fi
  3801. ac_test_CFLAGS=${CFLAGS+set}
  3802. ac_save_CFLAGS=$CFLAGS
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3804. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3805. if ${ac_cv_prog_cc_g+:} false; then :
  3806. $as_echo_n "(cached) " >&6
  3807. else
  3808. ac_save_c_werror_flag=$ac_c_werror_flag
  3809. ac_c_werror_flag=yes
  3810. ac_cv_prog_cc_g=no
  3811. CFLAGS="-g"
  3812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3813. /* end confdefs.h. */
  3814. int
  3815. main ()
  3816. {
  3817. ;
  3818. return 0;
  3819. }
  3820. _ACEOF
  3821. if ac_fn_c_try_compile "$LINENO"; then :
  3822. ac_cv_prog_cc_g=yes
  3823. else
  3824. CFLAGS=""
  3825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3826. /* end confdefs.h. */
  3827. int
  3828. main ()
  3829. {
  3830. ;
  3831. return 0;
  3832. }
  3833. _ACEOF
  3834. if ac_fn_c_try_compile "$LINENO"; then :
  3835. else
  3836. ac_c_werror_flag=$ac_save_c_werror_flag
  3837. CFLAGS="-g"
  3838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3839. /* end confdefs.h. */
  3840. int
  3841. main ()
  3842. {
  3843. ;
  3844. return 0;
  3845. }
  3846. _ACEOF
  3847. if ac_fn_c_try_compile "$LINENO"; then :
  3848. ac_cv_prog_cc_g=yes
  3849. fi
  3850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3851. fi
  3852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3853. fi
  3854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3855. ac_c_werror_flag=$ac_save_c_werror_flag
  3856. fi
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3858. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3859. if test "$ac_test_CFLAGS" = set; then
  3860. CFLAGS=$ac_save_CFLAGS
  3861. elif test $ac_cv_prog_cc_g = yes; then
  3862. if test "$GCC" = yes; then
  3863. CFLAGS="-g -O2"
  3864. else
  3865. CFLAGS="-g"
  3866. fi
  3867. else
  3868. if test "$GCC" = yes; then
  3869. CFLAGS="-O2"
  3870. else
  3871. CFLAGS=
  3872. fi
  3873. fi
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3875. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3876. if ${ac_cv_prog_cc_c89+:} false; then :
  3877. $as_echo_n "(cached) " >&6
  3878. else
  3879. ac_cv_prog_cc_c89=no
  3880. ac_save_CC=$CC
  3881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3882. /* end confdefs.h. */
  3883. #include <stdarg.h>
  3884. #include <stdio.h>
  3885. struct stat;
  3886. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3887. struct buf { int x; };
  3888. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3889. static char *e (p, i)
  3890. char **p;
  3891. int i;
  3892. {
  3893. return p[i];
  3894. }
  3895. static char *f (char * (*g) (char **, int), char **p, ...)
  3896. {
  3897. char *s;
  3898. va_list v;
  3899. va_start (v,p);
  3900. s = g (p, va_arg (v,int));
  3901. va_end (v);
  3902. return s;
  3903. }
  3904. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3905. function prototypes and stuff, but not '\xHH' hex character constants.
  3906. These don't provoke an error unfortunately, instead are silently treated
  3907. as 'x'. The following induces an error, until -std is added to get
  3908. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3909. array size at least. It's necessary to write '\x00'==0 to get something
  3910. that's true only with -std. */
  3911. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3912. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3913. inside strings and character constants. */
  3914. #define FOO(x) 'x'
  3915. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3916. int test (int i, double x);
  3917. struct s1 {int (*f) (int a);};
  3918. struct s2 {int (*f) (double a);};
  3919. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3920. int argc;
  3921. char **argv;
  3922. int
  3923. main ()
  3924. {
  3925. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3926. ;
  3927. return 0;
  3928. }
  3929. _ACEOF
  3930. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3931. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3932. do
  3933. CC="$ac_save_CC $ac_arg"
  3934. if ac_fn_c_try_compile "$LINENO"; then :
  3935. ac_cv_prog_cc_c89=$ac_arg
  3936. fi
  3937. rm -f core conftest.err conftest.$ac_objext
  3938. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3939. done
  3940. rm -f conftest.$ac_ext
  3941. CC=$ac_save_CC
  3942. fi
  3943. # AC_CACHE_VAL
  3944. case "x$ac_cv_prog_cc_c89" in
  3945. x)
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3947. $as_echo "none needed" >&6; } ;;
  3948. xno)
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3950. $as_echo "unsupported" >&6; } ;;
  3951. *)
  3952. CC="$CC $ac_cv_prog_cc_c89"
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3954. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3955. esac
  3956. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3957. fi
  3958. ac_ext=c
  3959. ac_cpp='$CPP $CPPFLAGS'
  3960. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3961. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3962. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3963. ac_ext=c
  3964. ac_cpp='$CPP $CPPFLAGS'
  3965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3969. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3970. if ${am_cv_prog_cc_c_o+:} false; then :
  3971. $as_echo_n "(cached) " >&6
  3972. else
  3973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3974. /* end confdefs.h. */
  3975. int
  3976. main ()
  3977. {
  3978. ;
  3979. return 0;
  3980. }
  3981. _ACEOF
  3982. # Make sure it works both with $CC and with simple cc.
  3983. # Following AC_PROG_CC_C_O, we do the test twice because some
  3984. # compilers refuse to overwrite an existing .o file with -o,
  3985. # though they will create one.
  3986. am_cv_prog_cc_c_o=yes
  3987. for am_i in 1 2; do
  3988. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3989. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3990. ac_status=$?
  3991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3992. (exit $ac_status); } \
  3993. && test -f conftest2.$ac_objext; then
  3994. : OK
  3995. else
  3996. am_cv_prog_cc_c_o=no
  3997. break
  3998. fi
  3999. done
  4000. rm -f core conftest*
  4001. unset am_i
  4002. fi
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4004. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4005. if test "$am_cv_prog_cc_c_o" != yes; then
  4006. # Losing compiler, so override with the script.
  4007. # FIXME: It is wrong to rewrite CC.
  4008. # But if we don't then we get into trouble of one sort or another.
  4009. # A longer-term fix would be to have automake use am__CC in this case,
  4010. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4011. CC="$am_aux_dir/compile $CC"
  4012. fi
  4013. ac_ext=c
  4014. ac_cpp='$CPP $CPPFLAGS'
  4015. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4016. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4017. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4018. # Make sure we can run config.sub.
  4019. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4020. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4022. $as_echo_n "checking build system type... " >&6; }
  4023. if ${ac_cv_build+:} false; then :
  4024. $as_echo_n "(cached) " >&6
  4025. else
  4026. ac_build_alias=$build_alias
  4027. test "x$ac_build_alias" = x &&
  4028. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4029. test "x$ac_build_alias" = x &&
  4030. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4031. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4032. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4033. fi
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4035. $as_echo "$ac_cv_build" >&6; }
  4036. case $ac_cv_build in
  4037. *-*-*) ;;
  4038. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4039. esac
  4040. build=$ac_cv_build
  4041. ac_save_IFS=$IFS; IFS='-'
  4042. set x $ac_cv_build
  4043. shift
  4044. build_cpu=$1
  4045. build_vendor=$2
  4046. shift; shift
  4047. # Remember, the first character of IFS is used to create $*,
  4048. # except with old shells:
  4049. build_os=$*
  4050. IFS=$ac_save_IFS
  4051. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4053. $as_echo_n "checking host system type... " >&6; }
  4054. if ${ac_cv_host+:} false; then :
  4055. $as_echo_n "(cached) " >&6
  4056. else
  4057. if test "x$host_alias" = x; then
  4058. ac_cv_host=$ac_cv_build
  4059. else
  4060. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4061. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4062. fi
  4063. fi
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4065. $as_echo "$ac_cv_host" >&6; }
  4066. case $ac_cv_host in
  4067. *-*-*) ;;
  4068. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4069. esac
  4070. host=$ac_cv_host
  4071. ac_save_IFS=$IFS; IFS='-'
  4072. set x $ac_cv_host
  4073. shift
  4074. host_cpu=$1
  4075. host_vendor=$2
  4076. shift; shift
  4077. # Remember, the first character of IFS is used to create $*,
  4078. # except with old shells:
  4079. host_os=$*
  4080. IFS=$ac_save_IFS
  4081. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4082. enable_win32_dll=yes
  4083. case $host in
  4084. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  4085. if test -n "$ac_tool_prefix"; then
  4086. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4087. set dummy ${ac_tool_prefix}as; ac_word=$2
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4089. $as_echo_n "checking for $ac_word... " >&6; }
  4090. if ${ac_cv_prog_AS+:} false; then :
  4091. $as_echo_n "(cached) " >&6
  4092. else
  4093. if test -n "$AS"; then
  4094. ac_cv_prog_AS="$AS" # Let the user override the test.
  4095. else
  4096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4097. for as_dir in $PATH
  4098. do
  4099. IFS=$as_save_IFS
  4100. test -z "$as_dir" && as_dir=.
  4101. for ac_exec_ext in '' $ac_executable_extensions; do
  4102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4103. ac_cv_prog_AS="${ac_tool_prefix}as"
  4104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4105. break 2
  4106. fi
  4107. done
  4108. done
  4109. IFS=$as_save_IFS
  4110. fi
  4111. fi
  4112. AS=$ac_cv_prog_AS
  4113. if test -n "$AS"; then
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4115. $as_echo "$AS" >&6; }
  4116. else
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4118. $as_echo "no" >&6; }
  4119. fi
  4120. fi
  4121. if test -z "$ac_cv_prog_AS"; then
  4122. ac_ct_AS=$AS
  4123. # Extract the first word of "as", so it can be a program name with args.
  4124. set dummy as; ac_word=$2
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4126. $as_echo_n "checking for $ac_word... " >&6; }
  4127. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  4128. $as_echo_n "(cached) " >&6
  4129. else
  4130. if test -n "$ac_ct_AS"; then
  4131. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4132. else
  4133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4134. for as_dir in $PATH
  4135. do
  4136. IFS=$as_save_IFS
  4137. test -z "$as_dir" && as_dir=.
  4138. for ac_exec_ext in '' $ac_executable_extensions; do
  4139. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4140. ac_cv_prog_ac_ct_AS="as"
  4141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4142. break 2
  4143. fi
  4144. done
  4145. done
  4146. IFS=$as_save_IFS
  4147. fi
  4148. fi
  4149. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4150. if test -n "$ac_ct_AS"; then
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4152. $as_echo "$ac_ct_AS" >&6; }
  4153. else
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4155. $as_echo "no" >&6; }
  4156. fi
  4157. if test "x$ac_ct_AS" = x; then
  4158. AS="false"
  4159. else
  4160. case $cross_compiling:$ac_tool_warned in
  4161. yes:)
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4163. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4164. ac_tool_warned=yes ;;
  4165. esac
  4166. AS=$ac_ct_AS
  4167. fi
  4168. else
  4169. AS="$ac_cv_prog_AS"
  4170. fi
  4171. if test -n "$ac_tool_prefix"; then
  4172. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4173. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4175. $as_echo_n "checking for $ac_word... " >&6; }
  4176. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4177. $as_echo_n "(cached) " >&6
  4178. else
  4179. if test -n "$DLLTOOL"; then
  4180. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4181. else
  4182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4183. for as_dir in $PATH
  4184. do
  4185. IFS=$as_save_IFS
  4186. test -z "$as_dir" && as_dir=.
  4187. for ac_exec_ext in '' $ac_executable_extensions; do
  4188. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4189. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4190. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4191. break 2
  4192. fi
  4193. done
  4194. done
  4195. IFS=$as_save_IFS
  4196. fi
  4197. fi
  4198. DLLTOOL=$ac_cv_prog_DLLTOOL
  4199. if test -n "$DLLTOOL"; then
  4200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4201. $as_echo "$DLLTOOL" >&6; }
  4202. else
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4204. $as_echo "no" >&6; }
  4205. fi
  4206. fi
  4207. if test -z "$ac_cv_prog_DLLTOOL"; then
  4208. ac_ct_DLLTOOL=$DLLTOOL
  4209. # Extract the first word of "dlltool", so it can be a program name with args.
  4210. set dummy dlltool; ac_word=$2
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4212. $as_echo_n "checking for $ac_word... " >&6; }
  4213. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4214. $as_echo_n "(cached) " >&6
  4215. else
  4216. if test -n "$ac_ct_DLLTOOL"; then
  4217. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4218. else
  4219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4220. for as_dir in $PATH
  4221. do
  4222. IFS=$as_save_IFS
  4223. test -z "$as_dir" && as_dir=.
  4224. for ac_exec_ext in '' $ac_executable_extensions; do
  4225. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4226. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4228. break 2
  4229. fi
  4230. done
  4231. done
  4232. IFS=$as_save_IFS
  4233. fi
  4234. fi
  4235. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4236. if test -n "$ac_ct_DLLTOOL"; then
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4238. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4239. else
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4241. $as_echo "no" >&6; }
  4242. fi
  4243. if test "x$ac_ct_DLLTOOL" = x; then
  4244. DLLTOOL="false"
  4245. else
  4246. case $cross_compiling:$ac_tool_warned in
  4247. yes:)
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4249. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4250. ac_tool_warned=yes ;;
  4251. esac
  4252. DLLTOOL=$ac_ct_DLLTOOL
  4253. fi
  4254. else
  4255. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4256. fi
  4257. if test -n "$ac_tool_prefix"; then
  4258. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4259. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4261. $as_echo_n "checking for $ac_word... " >&6; }
  4262. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4263. $as_echo_n "(cached) " >&6
  4264. else
  4265. if test -n "$OBJDUMP"; then
  4266. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4267. else
  4268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4269. for as_dir in $PATH
  4270. do
  4271. IFS=$as_save_IFS
  4272. test -z "$as_dir" && as_dir=.
  4273. for ac_exec_ext in '' $ac_executable_extensions; do
  4274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4275. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4277. break 2
  4278. fi
  4279. done
  4280. done
  4281. IFS=$as_save_IFS
  4282. fi
  4283. fi
  4284. OBJDUMP=$ac_cv_prog_OBJDUMP
  4285. if test -n "$OBJDUMP"; then
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4287. $as_echo "$OBJDUMP" >&6; }
  4288. else
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4290. $as_echo "no" >&6; }
  4291. fi
  4292. fi
  4293. if test -z "$ac_cv_prog_OBJDUMP"; then
  4294. ac_ct_OBJDUMP=$OBJDUMP
  4295. # Extract the first word of "objdump", so it can be a program name with args.
  4296. set dummy objdump; 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_ac_ct_OBJDUMP+:} false; then :
  4300. $as_echo_n "(cached) " >&6
  4301. else
  4302. if test -n "$ac_ct_OBJDUMP"; then
  4303. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_ac_ct_OBJDUMP="objdump"
  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. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4322. if test -n "$ac_ct_OBJDUMP"; then
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4324. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4325. else
  4326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4327. $as_echo "no" >&6; }
  4328. fi
  4329. if test "x$ac_ct_OBJDUMP" = x; then
  4330. OBJDUMP="false"
  4331. else
  4332. case $cross_compiling:$ac_tool_warned in
  4333. yes:)
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4335. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4336. ac_tool_warned=yes ;;
  4337. esac
  4338. OBJDUMP=$ac_ct_OBJDUMP
  4339. fi
  4340. else
  4341. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4342. fi
  4343. ;;
  4344. esac
  4345. test -z "$AS" && AS=as
  4346. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4347. test -z "$OBJDUMP" && OBJDUMP=objdump
  4348. case `pwd` in
  4349. *\ * | *\ *)
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4351. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4352. esac
  4353. macro_version='2.4.6'
  4354. macro_revision='2.4.6'
  4355. ltmain=$ac_aux_dir/ltmain.sh
  4356. # Backslashify metacharacters that are still active within
  4357. # double-quoted strings.
  4358. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4359. # Same as above, but do not quote variable references.
  4360. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4361. # Sed substitution to delay expansion of an escaped shell variable in a
  4362. # double_quote_subst'ed string.
  4363. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4364. # Sed substitution to delay expansion of an escaped single quote.
  4365. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4366. # Sed substitution to avoid accidental globbing in evaled expressions
  4367. no_glob_subst='s/\*/\\\*/g'
  4368. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4369. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4370. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4372. $as_echo_n "checking how to print strings... " >&6; }
  4373. # Test print first, because it will be a builtin if present.
  4374. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4375. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4376. ECHO='print -r --'
  4377. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4378. ECHO='printf %s\n'
  4379. else
  4380. # Use this function as a fallback that always works.
  4381. func_fallback_echo ()
  4382. {
  4383. eval 'cat <<_LTECHO_EOF
  4384. $1
  4385. _LTECHO_EOF'
  4386. }
  4387. ECHO='func_fallback_echo'
  4388. fi
  4389. # func_echo_all arg...
  4390. # Invoke $ECHO with all args, space-separated.
  4391. func_echo_all ()
  4392. {
  4393. $ECHO ""
  4394. }
  4395. case $ECHO in
  4396. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4397. $as_echo "printf" >&6; } ;;
  4398. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4399. $as_echo "print -r" >&6; } ;;
  4400. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4401. $as_echo "cat" >&6; } ;;
  4402. esac
  4403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4404. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4405. if ${ac_cv_path_SED+:} false; then :
  4406. $as_echo_n "(cached) " >&6
  4407. else
  4408. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4409. for ac_i in 1 2 3 4 5 6 7; do
  4410. ac_script="$ac_script$as_nl$ac_script"
  4411. done
  4412. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4413. { ac_script=; unset ac_script;}
  4414. if test -z "$SED"; then
  4415. ac_path_SED_found=false
  4416. # Loop through the user's path and test for each of PROGNAME-LIST
  4417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4418. for as_dir in $PATH
  4419. do
  4420. IFS=$as_save_IFS
  4421. test -z "$as_dir" && as_dir=.
  4422. for ac_prog in sed gsed; do
  4423. for ac_exec_ext in '' $ac_executable_extensions; do
  4424. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4425. as_fn_executable_p "$ac_path_SED" || continue
  4426. # Check for GNU ac_path_SED and select it if it is found.
  4427. # Check for GNU $ac_path_SED
  4428. case `"$ac_path_SED" --version 2>&1` in
  4429. *GNU*)
  4430. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4431. *)
  4432. ac_count=0
  4433. $as_echo_n 0123456789 >"conftest.in"
  4434. while :
  4435. do
  4436. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4437. mv "conftest.tmp" "conftest.in"
  4438. cp "conftest.in" "conftest.nl"
  4439. $as_echo '' >> "conftest.nl"
  4440. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4441. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4442. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4443. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4444. # Best one so far, save it but keep looking for a better one
  4445. ac_cv_path_SED="$ac_path_SED"
  4446. ac_path_SED_max=$ac_count
  4447. fi
  4448. # 10*(2^10) chars as input seems more than enough
  4449. test $ac_count -gt 10 && break
  4450. done
  4451. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4452. esac
  4453. $ac_path_SED_found && break 3
  4454. done
  4455. done
  4456. done
  4457. IFS=$as_save_IFS
  4458. if test -z "$ac_cv_path_SED"; then
  4459. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4460. fi
  4461. else
  4462. ac_cv_path_SED=$SED
  4463. fi
  4464. fi
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4466. $as_echo "$ac_cv_path_SED" >&6; }
  4467. SED="$ac_cv_path_SED"
  4468. rm -f conftest.sed
  4469. test -z "$SED" && SED=sed
  4470. Xsed="$SED -e 1s/^X//"
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4472. $as_echo_n "checking for fgrep... " >&6; }
  4473. if ${ac_cv_path_FGREP+:} false; then :
  4474. $as_echo_n "(cached) " >&6
  4475. else
  4476. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4477. then ac_cv_path_FGREP="$GREP -F"
  4478. else
  4479. if test -z "$FGREP"; then
  4480. ac_path_FGREP_found=false
  4481. # Loop through the user's path and test for each of PROGNAME-LIST
  4482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4483. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4484. do
  4485. IFS=$as_save_IFS
  4486. test -z "$as_dir" && as_dir=.
  4487. for ac_prog in fgrep; do
  4488. for ac_exec_ext in '' $ac_executable_extensions; do
  4489. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4490. as_fn_executable_p "$ac_path_FGREP" || continue
  4491. # Check for GNU ac_path_FGREP and select it if it is found.
  4492. # Check for GNU $ac_path_FGREP
  4493. case `"$ac_path_FGREP" --version 2>&1` in
  4494. *GNU*)
  4495. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4496. *)
  4497. ac_count=0
  4498. $as_echo_n 0123456789 >"conftest.in"
  4499. while :
  4500. do
  4501. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4502. mv "conftest.tmp" "conftest.in"
  4503. cp "conftest.in" "conftest.nl"
  4504. $as_echo 'FGREP' >> "conftest.nl"
  4505. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4506. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4507. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4508. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4509. # Best one so far, save it but keep looking for a better one
  4510. ac_cv_path_FGREP="$ac_path_FGREP"
  4511. ac_path_FGREP_max=$ac_count
  4512. fi
  4513. # 10*(2^10) chars as input seems more than enough
  4514. test $ac_count -gt 10 && break
  4515. done
  4516. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4517. esac
  4518. $ac_path_FGREP_found && break 3
  4519. done
  4520. done
  4521. done
  4522. IFS=$as_save_IFS
  4523. if test -z "$ac_cv_path_FGREP"; then
  4524. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4525. fi
  4526. else
  4527. ac_cv_path_FGREP=$FGREP
  4528. fi
  4529. fi
  4530. fi
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4532. $as_echo "$ac_cv_path_FGREP" >&6; }
  4533. FGREP="$ac_cv_path_FGREP"
  4534. test -z "$GREP" && GREP=grep
  4535. # Check whether --with-gnu-ld was given.
  4536. if test "${with_gnu_ld+set}" = set; then :
  4537. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4538. else
  4539. with_gnu_ld=no
  4540. fi
  4541. ac_prog=ld
  4542. if test yes = "$GCC"; then
  4543. # Check if gcc -print-prog-name=ld gives a path.
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4545. $as_echo_n "checking for ld used by $CC... " >&6; }
  4546. case $host in
  4547. *-*-mingw*)
  4548. # gcc leaves a trailing carriage return, which upsets mingw
  4549. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4550. *)
  4551. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4552. esac
  4553. case $ac_prog in
  4554. # Accept absolute paths.
  4555. [\\/]* | ?:[\\/]*)
  4556. re_direlt='/[^/][^/]*/\.\./'
  4557. # Canonicalize the pathname of ld
  4558. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4559. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4560. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4561. done
  4562. test -z "$LD" && LD=$ac_prog
  4563. ;;
  4564. "")
  4565. # If it fails, then pretend we aren't using GCC.
  4566. ac_prog=ld
  4567. ;;
  4568. *)
  4569. # If it is relative, then search for the first ld in PATH.
  4570. with_gnu_ld=unknown
  4571. ;;
  4572. esac
  4573. elif test yes = "$with_gnu_ld"; then
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4575. $as_echo_n "checking for GNU ld... " >&6; }
  4576. else
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4578. $as_echo_n "checking for non-GNU ld... " >&6; }
  4579. fi
  4580. if ${lt_cv_path_LD+:} false; then :
  4581. $as_echo_n "(cached) " >&6
  4582. else
  4583. if test -z "$LD"; then
  4584. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4585. for ac_dir in $PATH; do
  4586. IFS=$lt_save_ifs
  4587. test -z "$ac_dir" && ac_dir=.
  4588. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4589. lt_cv_path_LD=$ac_dir/$ac_prog
  4590. # Check to see if the program is GNU ld. I'd rather use --version,
  4591. # but apparently some variants of GNU ld only accept -v.
  4592. # Break only if it was the GNU/non-GNU ld that we prefer.
  4593. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4594. *GNU* | *'with BFD'*)
  4595. test no != "$with_gnu_ld" && break
  4596. ;;
  4597. *)
  4598. test yes != "$with_gnu_ld" && break
  4599. ;;
  4600. esac
  4601. fi
  4602. done
  4603. IFS=$lt_save_ifs
  4604. else
  4605. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4606. fi
  4607. fi
  4608. LD=$lt_cv_path_LD
  4609. if test -n "$LD"; then
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4611. $as_echo "$LD" >&6; }
  4612. else
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4614. $as_echo "no" >&6; }
  4615. fi
  4616. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4618. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4619. if ${lt_cv_prog_gnu_ld+:} false; then :
  4620. $as_echo_n "(cached) " >&6
  4621. else
  4622. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4623. case `$LD -v 2>&1 </dev/null` in
  4624. *GNU* | *'with BFD'*)
  4625. lt_cv_prog_gnu_ld=yes
  4626. ;;
  4627. *)
  4628. lt_cv_prog_gnu_ld=no
  4629. ;;
  4630. esac
  4631. fi
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4633. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4634. with_gnu_ld=$lt_cv_prog_gnu_ld
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4636. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4637. if ${lt_cv_path_NM+:} false; then :
  4638. $as_echo_n "(cached) " >&6
  4639. else
  4640. if test -n "$NM"; then
  4641. # Let the user override the test.
  4642. lt_cv_path_NM=$NM
  4643. else
  4644. lt_nm_to_check=${ac_tool_prefix}nm
  4645. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4646. lt_nm_to_check="$lt_nm_to_check nm"
  4647. fi
  4648. for lt_tmp_nm in $lt_nm_to_check; do
  4649. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4650. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4651. IFS=$lt_save_ifs
  4652. test -z "$ac_dir" && ac_dir=.
  4653. tmp_nm=$ac_dir/$lt_tmp_nm
  4654. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4655. # Check to see if the nm accepts a BSD-compat flag.
  4656. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4657. # nm: unknown option "B" ignored
  4658. # Tru64's nm complains that /dev/null is an invalid object file
  4659. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4660. case $build_os in
  4661. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4662. *) lt_bad_file=/dev/null ;;
  4663. esac
  4664. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4665. *$lt_bad_file* | *'Invalid file or object type'*)
  4666. lt_cv_path_NM="$tmp_nm -B"
  4667. break 2
  4668. ;;
  4669. *)
  4670. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4671. */dev/null*)
  4672. lt_cv_path_NM="$tmp_nm -p"
  4673. break 2
  4674. ;;
  4675. *)
  4676. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4677. continue # so that we can try to find one that supports BSD flags
  4678. ;;
  4679. esac
  4680. ;;
  4681. esac
  4682. fi
  4683. done
  4684. IFS=$lt_save_ifs
  4685. done
  4686. : ${lt_cv_path_NM=no}
  4687. fi
  4688. fi
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4690. $as_echo "$lt_cv_path_NM" >&6; }
  4691. if test no != "$lt_cv_path_NM"; then
  4692. NM=$lt_cv_path_NM
  4693. else
  4694. # Didn't find any BSD compatible name lister, look for dumpbin.
  4695. if test -n "$DUMPBIN"; then :
  4696. # Let the user override the test.
  4697. else
  4698. if test -n "$ac_tool_prefix"; then
  4699. for ac_prog in dumpbin "link -dump"
  4700. do
  4701. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4702. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4704. $as_echo_n "checking for $ac_word... " >&6; }
  4705. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4706. $as_echo_n "(cached) " >&6
  4707. else
  4708. if test -n "$DUMPBIN"; then
  4709. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4710. else
  4711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4712. for as_dir in $PATH
  4713. do
  4714. IFS=$as_save_IFS
  4715. test -z "$as_dir" && as_dir=.
  4716. for ac_exec_ext in '' $ac_executable_extensions; do
  4717. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4718. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4720. break 2
  4721. fi
  4722. done
  4723. done
  4724. IFS=$as_save_IFS
  4725. fi
  4726. fi
  4727. DUMPBIN=$ac_cv_prog_DUMPBIN
  4728. if test -n "$DUMPBIN"; then
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4730. $as_echo "$DUMPBIN" >&6; }
  4731. else
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4733. $as_echo "no" >&6; }
  4734. fi
  4735. test -n "$DUMPBIN" && break
  4736. done
  4737. fi
  4738. if test -z "$DUMPBIN"; then
  4739. ac_ct_DUMPBIN=$DUMPBIN
  4740. for ac_prog in dumpbin "link -dump"
  4741. do
  4742. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4743. set dummy $ac_prog; ac_word=$2
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4745. $as_echo_n "checking for $ac_word... " >&6; }
  4746. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4747. $as_echo_n "(cached) " >&6
  4748. else
  4749. if test -n "$ac_ct_DUMPBIN"; then
  4750. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4751. else
  4752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4753. for as_dir in $PATH
  4754. do
  4755. IFS=$as_save_IFS
  4756. test -z "$as_dir" && as_dir=.
  4757. for ac_exec_ext in '' $ac_executable_extensions; do
  4758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4759. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4761. break 2
  4762. fi
  4763. done
  4764. done
  4765. IFS=$as_save_IFS
  4766. fi
  4767. fi
  4768. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4769. if test -n "$ac_ct_DUMPBIN"; then
  4770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4771. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4772. else
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4774. $as_echo "no" >&6; }
  4775. fi
  4776. test -n "$ac_ct_DUMPBIN" && break
  4777. done
  4778. if test "x$ac_ct_DUMPBIN" = x; then
  4779. DUMPBIN=":"
  4780. else
  4781. case $cross_compiling:$ac_tool_warned in
  4782. yes:)
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4784. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4785. ac_tool_warned=yes ;;
  4786. esac
  4787. DUMPBIN=$ac_ct_DUMPBIN
  4788. fi
  4789. fi
  4790. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4791. *COFF*)
  4792. DUMPBIN="$DUMPBIN -symbols -headers"
  4793. ;;
  4794. *)
  4795. DUMPBIN=:
  4796. ;;
  4797. esac
  4798. fi
  4799. if test : != "$DUMPBIN"; then
  4800. NM=$DUMPBIN
  4801. fi
  4802. fi
  4803. test -z "$NM" && NM=nm
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4805. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4806. if ${lt_cv_nm_interface+:} false; then :
  4807. $as_echo_n "(cached) " >&6
  4808. else
  4809. lt_cv_nm_interface="BSD nm"
  4810. echo "int some_variable = 0;" > conftest.$ac_ext
  4811. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4812. (eval "$ac_compile" 2>conftest.err)
  4813. cat conftest.err >&5
  4814. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4815. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4816. cat conftest.err >&5
  4817. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4818. cat conftest.out >&5
  4819. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4820. lt_cv_nm_interface="MS dumpbin"
  4821. fi
  4822. rm -f conftest*
  4823. fi
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4825. $as_echo "$lt_cv_nm_interface" >&6; }
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4827. $as_echo_n "checking whether ln -s works... " >&6; }
  4828. LN_S=$as_ln_s
  4829. if test "$LN_S" = "ln -s"; then
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4831. $as_echo "yes" >&6; }
  4832. else
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4834. $as_echo "no, using $LN_S" >&6; }
  4835. fi
  4836. # find the maximum length of command line arguments
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4838. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4839. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4840. $as_echo_n "(cached) " >&6
  4841. else
  4842. i=0
  4843. teststring=ABCD
  4844. case $build_os in
  4845. msdosdjgpp*)
  4846. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4847. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4848. # during glob expansion). Even if it were fixed, the result of this
  4849. # check would be larger than it should be.
  4850. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4851. ;;
  4852. gnu*)
  4853. # Under GNU Hurd, this test is not required because there is
  4854. # no limit to the length of command line arguments.
  4855. # Libtool will interpret -1 as no limit whatsoever
  4856. lt_cv_sys_max_cmd_len=-1;
  4857. ;;
  4858. cygwin* | mingw* | cegcc*)
  4859. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4860. # about 5 minutes as the teststring grows exponentially.
  4861. # Worse, since 9x/ME are not pre-emptively multitasking,
  4862. # you end up with a "frozen" computer, even though with patience
  4863. # the test eventually succeeds (with a max line length of 256k).
  4864. # Instead, let's just punt: use the minimum linelength reported by
  4865. # all of the supported platforms: 8192 (on NT/2K/XP).
  4866. lt_cv_sys_max_cmd_len=8192;
  4867. ;;
  4868. mint*)
  4869. # On MiNT this can take a long time and run out of memory.
  4870. lt_cv_sys_max_cmd_len=8192;
  4871. ;;
  4872. amigaos*)
  4873. # On AmigaOS with pdksh, this test takes hours, literally.
  4874. # So we just punt and use a minimum line length of 8192.
  4875. lt_cv_sys_max_cmd_len=8192;
  4876. ;;
  4877. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4878. # This has been around since 386BSD, at least. Likely further.
  4879. if test -x /sbin/sysctl; then
  4880. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4881. elif test -x /usr/sbin/sysctl; then
  4882. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4883. else
  4884. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4885. fi
  4886. # And add a safety zone
  4887. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4888. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4889. ;;
  4890. interix*)
  4891. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4892. lt_cv_sys_max_cmd_len=196608
  4893. ;;
  4894. os2*)
  4895. # The test takes a long time on OS/2.
  4896. lt_cv_sys_max_cmd_len=8192
  4897. ;;
  4898. osf*)
  4899. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4900. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4901. # nice to cause kernel panics so lets avoid the loop below.
  4902. # First set a reasonable default.
  4903. lt_cv_sys_max_cmd_len=16384
  4904. #
  4905. if test -x /sbin/sysconfig; then
  4906. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4907. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4908. esac
  4909. fi
  4910. ;;
  4911. sco3.2v5*)
  4912. lt_cv_sys_max_cmd_len=102400
  4913. ;;
  4914. sysv5* | sco5v6* | sysv4.2uw2*)
  4915. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4916. if test -n "$kargmax"; then
  4917. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4918. else
  4919. lt_cv_sys_max_cmd_len=32768
  4920. fi
  4921. ;;
  4922. *)
  4923. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4924. if test -n "$lt_cv_sys_max_cmd_len" && \
  4925. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4926. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4927. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4928. else
  4929. # Make teststring a little bigger before we do anything with it.
  4930. # a 1K string should be a reasonable start.
  4931. for i in 1 2 3 4 5 6 7 8; do
  4932. teststring=$teststring$teststring
  4933. done
  4934. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4935. # If test is not a shell built-in, we'll probably end up computing a
  4936. # maximum length that is only half of the actual maximum length, but
  4937. # we can't tell.
  4938. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4939. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4940. test 17 != "$i" # 1/2 MB should be enough
  4941. do
  4942. i=`expr $i + 1`
  4943. teststring=$teststring$teststring
  4944. done
  4945. # Only check the string length outside the loop.
  4946. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4947. teststring=
  4948. # Add a significant safety factor because C++ compilers can tack on
  4949. # massive amounts of additional arguments before passing them to the
  4950. # linker. It appears as though 1/2 is a usable value.
  4951. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4952. fi
  4953. ;;
  4954. esac
  4955. fi
  4956. if test -n "$lt_cv_sys_max_cmd_len"; then
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4958. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4959. else
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4961. $as_echo "none" >&6; }
  4962. fi
  4963. max_cmd_len=$lt_cv_sys_max_cmd_len
  4964. : ${CP="cp -f"}
  4965. : ${MV="mv -f"}
  4966. : ${RM="rm -f"}
  4967. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4968. lt_unset=unset
  4969. else
  4970. lt_unset=false
  4971. fi
  4972. # test EBCDIC or ASCII
  4973. case `echo X|tr X '\101'` in
  4974. A) # ASCII based system
  4975. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4976. lt_SP2NL='tr \040 \012'
  4977. lt_NL2SP='tr \015\012 \040\040'
  4978. ;;
  4979. *) # EBCDIC based system
  4980. lt_SP2NL='tr \100 \n'
  4981. lt_NL2SP='tr \r\n \100\100'
  4982. ;;
  4983. esac
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4985. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4986. if ${lt_cv_to_host_file_cmd+:} false; then :
  4987. $as_echo_n "(cached) " >&6
  4988. else
  4989. case $host in
  4990. *-*-mingw* )
  4991. case $build in
  4992. *-*-mingw* ) # actually msys
  4993. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4994. ;;
  4995. *-*-cygwin* )
  4996. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4997. ;;
  4998. * ) # otherwise, assume *nix
  4999. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5000. ;;
  5001. esac
  5002. ;;
  5003. *-*-cygwin* )
  5004. case $build in
  5005. *-*-mingw* ) # actually msys
  5006. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5007. ;;
  5008. *-*-cygwin* )
  5009. lt_cv_to_host_file_cmd=func_convert_file_noop
  5010. ;;
  5011. * ) # otherwise, assume *nix
  5012. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5013. ;;
  5014. esac
  5015. ;;
  5016. * ) # unhandled hosts (and "normal" native builds)
  5017. lt_cv_to_host_file_cmd=func_convert_file_noop
  5018. ;;
  5019. esac
  5020. fi
  5021. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5023. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5025. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5026. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5027. $as_echo_n "(cached) " >&6
  5028. else
  5029. #assume ordinary cross tools, or native build.
  5030. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5031. case $host in
  5032. *-*-mingw* )
  5033. case $build in
  5034. *-*-mingw* ) # actually msys
  5035. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5036. ;;
  5037. esac
  5038. ;;
  5039. esac
  5040. fi
  5041. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5043. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5045. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5046. if ${lt_cv_ld_reload_flag+:} false; then :
  5047. $as_echo_n "(cached) " >&6
  5048. else
  5049. lt_cv_ld_reload_flag='-r'
  5050. fi
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5052. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5053. reload_flag=$lt_cv_ld_reload_flag
  5054. case $reload_flag in
  5055. "" | " "*) ;;
  5056. *) reload_flag=" $reload_flag" ;;
  5057. esac
  5058. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5059. case $host_os in
  5060. cygwin* | mingw* | pw32* | cegcc*)
  5061. if test yes != "$GCC"; then
  5062. reload_cmds=false
  5063. fi
  5064. ;;
  5065. darwin*)
  5066. if test yes = "$GCC"; then
  5067. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5068. else
  5069. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5070. fi
  5071. ;;
  5072. esac
  5073. if test -n "$ac_tool_prefix"; then
  5074. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5075. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5077. $as_echo_n "checking for $ac_word... " >&6; }
  5078. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5079. $as_echo_n "(cached) " >&6
  5080. else
  5081. if test -n "$OBJDUMP"; then
  5082. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5083. else
  5084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5085. for as_dir in $PATH
  5086. do
  5087. IFS=$as_save_IFS
  5088. test -z "$as_dir" && as_dir=.
  5089. for ac_exec_ext in '' $ac_executable_extensions; do
  5090. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5091. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5093. break 2
  5094. fi
  5095. done
  5096. done
  5097. IFS=$as_save_IFS
  5098. fi
  5099. fi
  5100. OBJDUMP=$ac_cv_prog_OBJDUMP
  5101. if test -n "$OBJDUMP"; then
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5103. $as_echo "$OBJDUMP" >&6; }
  5104. else
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5106. $as_echo "no" >&6; }
  5107. fi
  5108. fi
  5109. if test -z "$ac_cv_prog_OBJDUMP"; then
  5110. ac_ct_OBJDUMP=$OBJDUMP
  5111. # Extract the first word of "objdump", so it can be a program name with args.
  5112. set dummy objdump; ac_word=$2
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5114. $as_echo_n "checking for $ac_word... " >&6; }
  5115. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5116. $as_echo_n "(cached) " >&6
  5117. else
  5118. if test -n "$ac_ct_OBJDUMP"; then
  5119. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5120. else
  5121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5122. for as_dir in $PATH
  5123. do
  5124. IFS=$as_save_IFS
  5125. test -z "$as_dir" && as_dir=.
  5126. for ac_exec_ext in '' $ac_executable_extensions; do
  5127. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5128. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5130. break 2
  5131. fi
  5132. done
  5133. done
  5134. IFS=$as_save_IFS
  5135. fi
  5136. fi
  5137. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5138. if test -n "$ac_ct_OBJDUMP"; then
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5140. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5141. else
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5143. $as_echo "no" >&6; }
  5144. fi
  5145. if test "x$ac_ct_OBJDUMP" = x; then
  5146. OBJDUMP="false"
  5147. else
  5148. case $cross_compiling:$ac_tool_warned in
  5149. yes:)
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5151. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5152. ac_tool_warned=yes ;;
  5153. esac
  5154. OBJDUMP=$ac_ct_OBJDUMP
  5155. fi
  5156. else
  5157. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5158. fi
  5159. test -z "$OBJDUMP" && OBJDUMP=objdump
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5161. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5162. if ${lt_cv_deplibs_check_method+:} false; then :
  5163. $as_echo_n "(cached) " >&6
  5164. else
  5165. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5166. lt_cv_file_magic_test_file=
  5167. lt_cv_deplibs_check_method='unknown'
  5168. # Need to set the preceding variable on all platforms that support
  5169. # interlibrary dependencies.
  5170. # 'none' -- dependencies not supported.
  5171. # 'unknown' -- same as none, but documents that we really don't know.
  5172. # 'pass_all' -- all dependencies passed with no checks.
  5173. # 'test_compile' -- check by making test program.
  5174. # 'file_magic [[regex]]' -- check by looking for files in library path
  5175. # that responds to the $file_magic_cmd with a given extended regex.
  5176. # If you have 'file' or equivalent on your system and you're not sure
  5177. # whether 'pass_all' will *always* work, you probably want this one.
  5178. case $host_os in
  5179. aix[4-9]*)
  5180. lt_cv_deplibs_check_method=pass_all
  5181. ;;
  5182. beos*)
  5183. lt_cv_deplibs_check_method=pass_all
  5184. ;;
  5185. bsdi[45]*)
  5186. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5187. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5188. lt_cv_file_magic_test_file=/shlib/libc.so
  5189. ;;
  5190. cygwin*)
  5191. # func_win32_libid is a shell function defined in ltmain.sh
  5192. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5193. lt_cv_file_magic_cmd='func_win32_libid'
  5194. ;;
  5195. mingw* | pw32*)
  5196. # Base MSYS/MinGW do not provide the 'file' command needed by
  5197. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5198. # unless we find 'file', for example because we are cross-compiling.
  5199. if ( file / ) >/dev/null 2>&1; then
  5200. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5201. lt_cv_file_magic_cmd='func_win32_libid'
  5202. else
  5203. # Keep this pattern in sync with the one in func_win32_libid.
  5204. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5205. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5206. fi
  5207. ;;
  5208. cegcc*)
  5209. # use the weaker test based on 'objdump'. See mingw*.
  5210. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5211. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5212. ;;
  5213. darwin* | rhapsody*)
  5214. lt_cv_deplibs_check_method=pass_all
  5215. ;;
  5216. freebsd* | dragonfly*)
  5217. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5218. case $host_cpu in
  5219. i*86 )
  5220. # Not sure whether the presence of OpenBSD here was a mistake.
  5221. # Let's accept both of them until this is cleared up.
  5222. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5223. lt_cv_file_magic_cmd=/usr/bin/file
  5224. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5225. ;;
  5226. esac
  5227. else
  5228. lt_cv_deplibs_check_method=pass_all
  5229. fi
  5230. ;;
  5231. haiku*)
  5232. lt_cv_deplibs_check_method=pass_all
  5233. ;;
  5234. hpux10.20* | hpux11*)
  5235. lt_cv_file_magic_cmd=/usr/bin/file
  5236. case $host_cpu in
  5237. ia64*)
  5238. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5239. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5240. ;;
  5241. hppa*64*)
  5242. 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]'
  5243. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5244. ;;
  5245. *)
  5246. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5247. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5248. ;;
  5249. esac
  5250. ;;
  5251. interix[3-9]*)
  5252. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5253. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5254. ;;
  5255. irix5* | irix6* | nonstopux*)
  5256. case $LD in
  5257. *-32|*"-32 ") libmagic=32-bit;;
  5258. *-n32|*"-n32 ") libmagic=N32;;
  5259. *-64|*"-64 ") libmagic=64-bit;;
  5260. *) libmagic=never-match;;
  5261. esac
  5262. lt_cv_deplibs_check_method=pass_all
  5263. ;;
  5264. # This must be glibc/ELF.
  5265. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5266. lt_cv_deplibs_check_method=pass_all
  5267. ;;
  5268. netbsd* | netbsdelf*-gnu)
  5269. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5270. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5271. else
  5272. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5273. fi
  5274. ;;
  5275. newos6*)
  5276. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5277. lt_cv_file_magic_cmd=/usr/bin/file
  5278. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5279. ;;
  5280. *nto* | *qnx*)
  5281. lt_cv_deplibs_check_method=pass_all
  5282. ;;
  5283. openbsd* | bitrig*)
  5284. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5285. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5286. else
  5287. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5288. fi
  5289. ;;
  5290. osf3* | osf4* | osf5*)
  5291. lt_cv_deplibs_check_method=pass_all
  5292. ;;
  5293. rdos*)
  5294. lt_cv_deplibs_check_method=pass_all
  5295. ;;
  5296. solaris*)
  5297. lt_cv_deplibs_check_method=pass_all
  5298. ;;
  5299. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5300. lt_cv_deplibs_check_method=pass_all
  5301. ;;
  5302. sysv4 | sysv4.3*)
  5303. case $host_vendor in
  5304. motorola)
  5305. 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]'
  5306. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5307. ;;
  5308. ncr)
  5309. lt_cv_deplibs_check_method=pass_all
  5310. ;;
  5311. sequent)
  5312. lt_cv_file_magic_cmd='/bin/file'
  5313. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5314. ;;
  5315. sni)
  5316. lt_cv_file_magic_cmd='/bin/file'
  5317. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5318. lt_cv_file_magic_test_file=/lib/libc.so
  5319. ;;
  5320. siemens)
  5321. lt_cv_deplibs_check_method=pass_all
  5322. ;;
  5323. pc)
  5324. lt_cv_deplibs_check_method=pass_all
  5325. ;;
  5326. esac
  5327. ;;
  5328. tpf*)
  5329. lt_cv_deplibs_check_method=pass_all
  5330. ;;
  5331. os2*)
  5332. lt_cv_deplibs_check_method=pass_all
  5333. ;;
  5334. esac
  5335. fi
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5337. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5338. file_magic_glob=
  5339. want_nocaseglob=no
  5340. if test "$build" = "$host"; then
  5341. case $host_os in
  5342. mingw* | pw32*)
  5343. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5344. want_nocaseglob=yes
  5345. else
  5346. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5347. fi
  5348. ;;
  5349. esac
  5350. fi
  5351. file_magic_cmd=$lt_cv_file_magic_cmd
  5352. deplibs_check_method=$lt_cv_deplibs_check_method
  5353. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5354. if test -n "$ac_tool_prefix"; then
  5355. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5356. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5358. $as_echo_n "checking for $ac_word... " >&6; }
  5359. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5360. $as_echo_n "(cached) " >&6
  5361. else
  5362. if test -n "$DLLTOOL"; then
  5363. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5364. else
  5365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5366. for as_dir in $PATH
  5367. do
  5368. IFS=$as_save_IFS
  5369. test -z "$as_dir" && as_dir=.
  5370. for ac_exec_ext in '' $ac_executable_extensions; do
  5371. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5372. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5374. break 2
  5375. fi
  5376. done
  5377. done
  5378. IFS=$as_save_IFS
  5379. fi
  5380. fi
  5381. DLLTOOL=$ac_cv_prog_DLLTOOL
  5382. if test -n "$DLLTOOL"; then
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5384. $as_echo "$DLLTOOL" >&6; }
  5385. else
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5387. $as_echo "no" >&6; }
  5388. fi
  5389. fi
  5390. if test -z "$ac_cv_prog_DLLTOOL"; then
  5391. ac_ct_DLLTOOL=$DLLTOOL
  5392. # Extract the first word of "dlltool", so it can be a program name with args.
  5393. set dummy dlltool; ac_word=$2
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5395. $as_echo_n "checking for $ac_word... " >&6; }
  5396. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5397. $as_echo_n "(cached) " >&6
  5398. else
  5399. if test -n "$ac_ct_DLLTOOL"; then
  5400. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5401. else
  5402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5403. for as_dir in $PATH
  5404. do
  5405. IFS=$as_save_IFS
  5406. test -z "$as_dir" && as_dir=.
  5407. for ac_exec_ext in '' $ac_executable_extensions; do
  5408. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5409. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5411. break 2
  5412. fi
  5413. done
  5414. done
  5415. IFS=$as_save_IFS
  5416. fi
  5417. fi
  5418. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5419. if test -n "$ac_ct_DLLTOOL"; then
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5421. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5422. else
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5424. $as_echo "no" >&6; }
  5425. fi
  5426. if test "x$ac_ct_DLLTOOL" = x; then
  5427. DLLTOOL="false"
  5428. else
  5429. case $cross_compiling:$ac_tool_warned in
  5430. yes:)
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5432. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5433. ac_tool_warned=yes ;;
  5434. esac
  5435. DLLTOOL=$ac_ct_DLLTOOL
  5436. fi
  5437. else
  5438. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5439. fi
  5440. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5442. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5443. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5444. $as_echo_n "(cached) " >&6
  5445. else
  5446. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5447. case $host_os in
  5448. cygwin* | mingw* | pw32* | cegcc*)
  5449. # two different shell functions defined in ltmain.sh;
  5450. # decide which one to use based on capabilities of $DLLTOOL
  5451. case `$DLLTOOL --help 2>&1` in
  5452. *--identify-strict*)
  5453. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5454. ;;
  5455. *)
  5456. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5457. ;;
  5458. esac
  5459. ;;
  5460. *)
  5461. # fallback: assume linklib IS sharedlib
  5462. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5463. ;;
  5464. esac
  5465. fi
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5467. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5468. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5469. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5470. if test -n "$ac_tool_prefix"; then
  5471. for ac_prog in ar
  5472. do
  5473. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5474. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5476. $as_echo_n "checking for $ac_word... " >&6; }
  5477. if ${ac_cv_prog_AR+:} false; then :
  5478. $as_echo_n "(cached) " >&6
  5479. else
  5480. if test -n "$AR"; then
  5481. ac_cv_prog_AR="$AR" # Let the user override the test.
  5482. else
  5483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5484. for as_dir in $PATH
  5485. do
  5486. IFS=$as_save_IFS
  5487. test -z "$as_dir" && as_dir=.
  5488. for ac_exec_ext in '' $ac_executable_extensions; do
  5489. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5490. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5492. break 2
  5493. fi
  5494. done
  5495. done
  5496. IFS=$as_save_IFS
  5497. fi
  5498. fi
  5499. AR=$ac_cv_prog_AR
  5500. if test -n "$AR"; then
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5502. $as_echo "$AR" >&6; }
  5503. else
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5505. $as_echo "no" >&6; }
  5506. fi
  5507. test -n "$AR" && break
  5508. done
  5509. fi
  5510. if test -z "$AR"; then
  5511. ac_ct_AR=$AR
  5512. for ac_prog in ar
  5513. do
  5514. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5515. set dummy $ac_prog; ac_word=$2
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5517. $as_echo_n "checking for $ac_word... " >&6; }
  5518. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5519. $as_echo_n "(cached) " >&6
  5520. else
  5521. if test -n "$ac_ct_AR"; then
  5522. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5523. else
  5524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5525. for as_dir in $PATH
  5526. do
  5527. IFS=$as_save_IFS
  5528. test -z "$as_dir" && as_dir=.
  5529. for ac_exec_ext in '' $ac_executable_extensions; do
  5530. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5531. ac_cv_prog_ac_ct_AR="$ac_prog"
  5532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5533. break 2
  5534. fi
  5535. done
  5536. done
  5537. IFS=$as_save_IFS
  5538. fi
  5539. fi
  5540. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5541. if test -n "$ac_ct_AR"; then
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5543. $as_echo "$ac_ct_AR" >&6; }
  5544. else
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5546. $as_echo "no" >&6; }
  5547. fi
  5548. test -n "$ac_ct_AR" && break
  5549. done
  5550. if test "x$ac_ct_AR" = x; then
  5551. AR="false"
  5552. else
  5553. case $cross_compiling:$ac_tool_warned in
  5554. yes:)
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5556. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5557. ac_tool_warned=yes ;;
  5558. esac
  5559. AR=$ac_ct_AR
  5560. fi
  5561. fi
  5562. : ${AR=ar}
  5563. : ${AR_FLAGS=cr}
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5565. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5566. if ${lt_cv_ar_at_file+:} false; then :
  5567. $as_echo_n "(cached) " >&6
  5568. else
  5569. lt_cv_ar_at_file=no
  5570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5571. /* end confdefs.h. */
  5572. int
  5573. main ()
  5574. {
  5575. ;
  5576. return 0;
  5577. }
  5578. _ACEOF
  5579. if ac_fn_c_try_compile "$LINENO"; then :
  5580. echo conftest.$ac_objext > conftest.lst
  5581. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5582. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5583. (eval $lt_ar_try) 2>&5
  5584. ac_status=$?
  5585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5586. test $ac_status = 0; }
  5587. if test 0 -eq "$ac_status"; then
  5588. # Ensure the archiver fails upon bogus file names.
  5589. rm -f conftest.$ac_objext libconftest.a
  5590. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5591. (eval $lt_ar_try) 2>&5
  5592. ac_status=$?
  5593. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5594. test $ac_status = 0; }
  5595. if test 0 -ne "$ac_status"; then
  5596. lt_cv_ar_at_file=@
  5597. fi
  5598. fi
  5599. rm -f conftest.* libconftest.a
  5600. fi
  5601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5602. fi
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5604. $as_echo "$lt_cv_ar_at_file" >&6; }
  5605. if test no = "$lt_cv_ar_at_file"; then
  5606. archiver_list_spec=
  5607. else
  5608. archiver_list_spec=$lt_cv_ar_at_file
  5609. fi
  5610. if test -n "$ac_tool_prefix"; then
  5611. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5612. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5614. $as_echo_n "checking for $ac_word... " >&6; }
  5615. if ${ac_cv_prog_STRIP+:} false; then :
  5616. $as_echo_n "(cached) " >&6
  5617. else
  5618. if test -n "$STRIP"; then
  5619. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5620. else
  5621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5622. for as_dir in $PATH
  5623. do
  5624. IFS=$as_save_IFS
  5625. test -z "$as_dir" && as_dir=.
  5626. for ac_exec_ext in '' $ac_executable_extensions; do
  5627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5628. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5630. break 2
  5631. fi
  5632. done
  5633. done
  5634. IFS=$as_save_IFS
  5635. fi
  5636. fi
  5637. STRIP=$ac_cv_prog_STRIP
  5638. if test -n "$STRIP"; then
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5640. $as_echo "$STRIP" >&6; }
  5641. else
  5642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5643. $as_echo "no" >&6; }
  5644. fi
  5645. fi
  5646. if test -z "$ac_cv_prog_STRIP"; then
  5647. ac_ct_STRIP=$STRIP
  5648. # Extract the first word of "strip", so it can be a program name with args.
  5649. set dummy strip; ac_word=$2
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5651. $as_echo_n "checking for $ac_word... " >&6; }
  5652. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5653. $as_echo_n "(cached) " >&6
  5654. else
  5655. if test -n "$ac_ct_STRIP"; then
  5656. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5657. else
  5658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5659. for as_dir in $PATH
  5660. do
  5661. IFS=$as_save_IFS
  5662. test -z "$as_dir" && as_dir=.
  5663. for ac_exec_ext in '' $ac_executable_extensions; do
  5664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5665. ac_cv_prog_ac_ct_STRIP="strip"
  5666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5667. break 2
  5668. fi
  5669. done
  5670. done
  5671. IFS=$as_save_IFS
  5672. fi
  5673. fi
  5674. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5675. if test -n "$ac_ct_STRIP"; then
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5677. $as_echo "$ac_ct_STRIP" >&6; }
  5678. else
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5680. $as_echo "no" >&6; }
  5681. fi
  5682. if test "x$ac_ct_STRIP" = x; then
  5683. STRIP=":"
  5684. else
  5685. case $cross_compiling:$ac_tool_warned in
  5686. yes:)
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5688. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5689. ac_tool_warned=yes ;;
  5690. esac
  5691. STRIP=$ac_ct_STRIP
  5692. fi
  5693. else
  5694. STRIP="$ac_cv_prog_STRIP"
  5695. fi
  5696. test -z "$STRIP" && STRIP=:
  5697. if test -n "$ac_tool_prefix"; then
  5698. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5699. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5701. $as_echo_n "checking for $ac_word... " >&6; }
  5702. if ${ac_cv_prog_RANLIB+:} false; then :
  5703. $as_echo_n "(cached) " >&6
  5704. else
  5705. if test -n "$RANLIB"; then
  5706. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5707. else
  5708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5709. for as_dir in $PATH
  5710. do
  5711. IFS=$as_save_IFS
  5712. test -z "$as_dir" && as_dir=.
  5713. for ac_exec_ext in '' $ac_executable_extensions; do
  5714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5715. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5717. break 2
  5718. fi
  5719. done
  5720. done
  5721. IFS=$as_save_IFS
  5722. fi
  5723. fi
  5724. RANLIB=$ac_cv_prog_RANLIB
  5725. if test -n "$RANLIB"; then
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5727. $as_echo "$RANLIB" >&6; }
  5728. else
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5730. $as_echo "no" >&6; }
  5731. fi
  5732. fi
  5733. if test -z "$ac_cv_prog_RANLIB"; then
  5734. ac_ct_RANLIB=$RANLIB
  5735. # Extract the first word of "ranlib", so it can be a program name with args.
  5736. set dummy ranlib; ac_word=$2
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5738. $as_echo_n "checking for $ac_word... " >&6; }
  5739. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5740. $as_echo_n "(cached) " >&6
  5741. else
  5742. if test -n "$ac_ct_RANLIB"; then
  5743. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5744. else
  5745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5746. for as_dir in $PATH
  5747. do
  5748. IFS=$as_save_IFS
  5749. test -z "$as_dir" && as_dir=.
  5750. for ac_exec_ext in '' $ac_executable_extensions; do
  5751. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5752. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5754. break 2
  5755. fi
  5756. done
  5757. done
  5758. IFS=$as_save_IFS
  5759. fi
  5760. fi
  5761. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5762. if test -n "$ac_ct_RANLIB"; then
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5764. $as_echo "$ac_ct_RANLIB" >&6; }
  5765. else
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5767. $as_echo "no" >&6; }
  5768. fi
  5769. if test "x$ac_ct_RANLIB" = x; then
  5770. RANLIB=":"
  5771. else
  5772. case $cross_compiling:$ac_tool_warned in
  5773. yes:)
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5775. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5776. ac_tool_warned=yes ;;
  5777. esac
  5778. RANLIB=$ac_ct_RANLIB
  5779. fi
  5780. else
  5781. RANLIB="$ac_cv_prog_RANLIB"
  5782. fi
  5783. test -z "$RANLIB" && RANLIB=:
  5784. # Determine commands to create old-style static archives.
  5785. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5786. old_postinstall_cmds='chmod 644 $oldlib'
  5787. old_postuninstall_cmds=
  5788. if test -n "$RANLIB"; then
  5789. case $host_os in
  5790. bitrig* | openbsd*)
  5791. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5792. ;;
  5793. *)
  5794. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5795. ;;
  5796. esac
  5797. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5798. fi
  5799. case $host_os in
  5800. darwin*)
  5801. lock_old_archive_extraction=yes ;;
  5802. *)
  5803. lock_old_archive_extraction=no ;;
  5804. esac
  5805. for ac_prog in gawk mawk nawk awk
  5806. do
  5807. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5808. set dummy $ac_prog; ac_word=$2
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5810. $as_echo_n "checking for $ac_word... " >&6; }
  5811. if ${ac_cv_prog_AWK+:} false; then :
  5812. $as_echo_n "(cached) " >&6
  5813. else
  5814. if test -n "$AWK"; then
  5815. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5816. else
  5817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5818. for as_dir in $PATH
  5819. do
  5820. IFS=$as_save_IFS
  5821. test -z "$as_dir" && as_dir=.
  5822. for ac_exec_ext in '' $ac_executable_extensions; do
  5823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5824. ac_cv_prog_AWK="$ac_prog"
  5825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5826. break 2
  5827. fi
  5828. done
  5829. done
  5830. IFS=$as_save_IFS
  5831. fi
  5832. fi
  5833. AWK=$ac_cv_prog_AWK
  5834. if test -n "$AWK"; then
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5836. $as_echo "$AWK" >&6; }
  5837. else
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5839. $as_echo "no" >&6; }
  5840. fi
  5841. test -n "$AWK" && break
  5842. done
  5843. # If no C compiler was specified, use CC.
  5844. LTCC=${LTCC-"$CC"}
  5845. # If no C compiler flags were specified, use CFLAGS.
  5846. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5847. # Allow CC to be a program name with arguments.
  5848. compiler=$CC
  5849. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5851. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5852. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5853. $as_echo_n "(cached) " >&6
  5854. else
  5855. # These are sane defaults that work on at least a few old systems.
  5856. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5857. # Character class describing NM global symbol codes.
  5858. symcode='[BCDEGRST]'
  5859. # Regexp to match symbols that can be accessed directly from C.
  5860. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5861. # Define system-specific variables.
  5862. case $host_os in
  5863. aix*)
  5864. symcode='[BCDT]'
  5865. ;;
  5866. cygwin* | mingw* | pw32* | cegcc*)
  5867. symcode='[ABCDGISTW]'
  5868. ;;
  5869. hpux*)
  5870. if test ia64 = "$host_cpu"; then
  5871. symcode='[ABCDEGRST]'
  5872. fi
  5873. ;;
  5874. irix* | nonstopux*)
  5875. symcode='[BCDEGRST]'
  5876. ;;
  5877. osf*)
  5878. symcode='[BCDEGQRST]'
  5879. ;;
  5880. solaris*)
  5881. symcode='[BDRT]'
  5882. ;;
  5883. sco3.2v5*)
  5884. symcode='[DT]'
  5885. ;;
  5886. sysv4.2uw2*)
  5887. symcode='[DT]'
  5888. ;;
  5889. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5890. symcode='[ABDT]'
  5891. ;;
  5892. sysv4)
  5893. symcode='[DFNSTU]'
  5894. ;;
  5895. esac
  5896. # If we're using GNU nm, then use its standard symbol codes.
  5897. case `$NM -V 2>&1` in
  5898. *GNU* | *'with BFD'*)
  5899. symcode='[ABCDGIRSTW]' ;;
  5900. esac
  5901. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5902. # Gets list of data symbols to import.
  5903. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5904. # Adjust the below global symbol transforms to fixup imported variables.
  5905. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5906. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5907. lt_c_name_lib_hook="\
  5908. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5909. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5910. else
  5911. # Disable hooks by default.
  5912. lt_cv_sys_global_symbol_to_import=
  5913. lt_cdecl_hook=
  5914. lt_c_name_hook=
  5915. lt_c_name_lib_hook=
  5916. fi
  5917. # Transform an extracted symbol line into a proper C declaration.
  5918. # Some systems (esp. on ia64) link data and code symbols differently,
  5919. # so use this general approach.
  5920. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5921. $lt_cdecl_hook\
  5922. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5923. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5924. # Transform an extracted symbol line into symbol name and symbol address
  5925. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5926. $lt_c_name_hook\
  5927. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5928. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5929. # Transform an extracted symbol line into symbol name with lib prefix and
  5930. # symbol address.
  5931. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5932. $lt_c_name_lib_hook\
  5933. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5934. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5935. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5936. # Handle CRLF in mingw tool chain
  5937. opt_cr=
  5938. case $build_os in
  5939. mingw*)
  5940. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5941. ;;
  5942. esac
  5943. # Try without a prefix underscore, then with it.
  5944. for ac_symprfx in "" "_"; do
  5945. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5946. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5947. # Write the raw and C identifiers.
  5948. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5949. # Fake it for dumpbin and say T for any non-static function,
  5950. # D for any global variable and I for any imported variable.
  5951. # Also find C++ and __fastcall symbols from MSVC++,
  5952. # which start with @ or ?.
  5953. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5954. " {last_section=section; section=\$ 3};"\
  5955. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5956. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5957. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5958. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5959. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5960. " \$ 0!~/External *\|/{next};"\
  5961. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5962. " {if(hide[section]) next};"\
  5963. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5964. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5965. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5966. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5967. " ' prfx=^$ac_symprfx"
  5968. else
  5969. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5970. fi
  5971. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5972. # Check to see that the pipe works correctly.
  5973. pipe_works=no
  5974. rm -f conftest*
  5975. cat > conftest.$ac_ext <<_LT_EOF
  5976. #ifdef __cplusplus
  5977. extern "C" {
  5978. #endif
  5979. char nm_test_var;
  5980. void nm_test_func(void);
  5981. void nm_test_func(void){}
  5982. #ifdef __cplusplus
  5983. }
  5984. #endif
  5985. int main(){nm_test_var='a';nm_test_func();return(0);}
  5986. _LT_EOF
  5987. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5988. (eval $ac_compile) 2>&5
  5989. ac_status=$?
  5990. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5991. test $ac_status = 0; }; then
  5992. # Now try to grab the symbols.
  5993. nlist=conftest.nm
  5994. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  5995. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  5996. # Try sorting and uniquifying the output.
  5997. if sort "$nlist" | uniq > "$nlist"T; then
  5998. mv -f "$nlist"T "$nlist"
  5999. else
  6000. rm -f "$nlist"T
  6001. fi
  6002. # Make sure that we snagged all the symbols we need.
  6003. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6004. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6005. cat <<_LT_EOF > conftest.$ac_ext
  6006. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6007. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6008. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6009. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6010. # define LT_DLSYM_CONST
  6011. #elif defined __osf__
  6012. /* This system does not cope well with relocations in const data. */
  6013. # define LT_DLSYM_CONST
  6014. #else
  6015. # define LT_DLSYM_CONST const
  6016. #endif
  6017. #ifdef __cplusplus
  6018. extern "C" {
  6019. #endif
  6020. _LT_EOF
  6021. # Now generate the symbol file.
  6022. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6023. cat <<_LT_EOF >> conftest.$ac_ext
  6024. /* The mapping between symbol names and symbols. */
  6025. LT_DLSYM_CONST struct {
  6026. const char *name;
  6027. void *address;
  6028. }
  6029. lt__PROGRAM__LTX_preloaded_symbols[] =
  6030. {
  6031. { "@PROGRAM@", (void *) 0 },
  6032. _LT_EOF
  6033. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6034. cat <<\_LT_EOF >> conftest.$ac_ext
  6035. {0, (void *) 0}
  6036. };
  6037. /* This works around a problem in FreeBSD linker */
  6038. #ifdef FREEBSD_WORKAROUND
  6039. static const void *lt_preloaded_setup() {
  6040. return lt__PROGRAM__LTX_preloaded_symbols;
  6041. }
  6042. #endif
  6043. #ifdef __cplusplus
  6044. }
  6045. #endif
  6046. _LT_EOF
  6047. # Now try linking the two files.
  6048. mv conftest.$ac_objext conftstm.$ac_objext
  6049. lt_globsym_save_LIBS=$LIBS
  6050. lt_globsym_save_CFLAGS=$CFLAGS
  6051. LIBS=conftstm.$ac_objext
  6052. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6053. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6054. (eval $ac_link) 2>&5
  6055. ac_status=$?
  6056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6057. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6058. pipe_works=yes
  6059. fi
  6060. LIBS=$lt_globsym_save_LIBS
  6061. CFLAGS=$lt_globsym_save_CFLAGS
  6062. else
  6063. echo "cannot find nm_test_func in $nlist" >&5
  6064. fi
  6065. else
  6066. echo "cannot find nm_test_var in $nlist" >&5
  6067. fi
  6068. else
  6069. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6070. fi
  6071. else
  6072. echo "$progname: failed program was:" >&5
  6073. cat conftest.$ac_ext >&5
  6074. fi
  6075. rm -rf conftest* conftst*
  6076. # Do not use the global_symbol_pipe unless it works.
  6077. if test yes = "$pipe_works"; then
  6078. break
  6079. else
  6080. lt_cv_sys_global_symbol_pipe=
  6081. fi
  6082. done
  6083. fi
  6084. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6085. lt_cv_sys_global_symbol_to_cdecl=
  6086. fi
  6087. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6089. $as_echo "failed" >&6; }
  6090. else
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6092. $as_echo "ok" >&6; }
  6093. fi
  6094. # Response file support.
  6095. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6096. nm_file_list_spec='@'
  6097. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6098. nm_file_list_spec='@'
  6099. fi
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6101. $as_echo_n "checking for sysroot... " >&6; }
  6102. # Check whether --with-sysroot was given.
  6103. if test "${with_sysroot+set}" = set; then :
  6104. withval=$with_sysroot;
  6105. else
  6106. with_sysroot=no
  6107. fi
  6108. lt_sysroot=
  6109. case $with_sysroot in #(
  6110. yes)
  6111. if test yes = "$GCC"; then
  6112. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6113. fi
  6114. ;; #(
  6115. /*)
  6116. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6117. ;; #(
  6118. no|'')
  6119. ;; #(
  6120. *)
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6122. $as_echo "$with_sysroot" >&6; }
  6123. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6124. ;;
  6125. esac
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6127. $as_echo "${lt_sysroot:-no}" >&6; }
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6129. $as_echo_n "checking for a working dd... " >&6; }
  6130. if ${ac_cv_path_lt_DD+:} false; then :
  6131. $as_echo_n "(cached) " >&6
  6132. else
  6133. printf 0123456789abcdef0123456789abcdef >conftest.i
  6134. cat conftest.i conftest.i >conftest2.i
  6135. : ${lt_DD:=$DD}
  6136. if test -z "$lt_DD"; then
  6137. ac_path_lt_DD_found=false
  6138. # Loop through the user's path and test for each of PROGNAME-LIST
  6139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6140. for as_dir in $PATH
  6141. do
  6142. IFS=$as_save_IFS
  6143. test -z "$as_dir" && as_dir=.
  6144. for ac_prog in dd; do
  6145. for ac_exec_ext in '' $ac_executable_extensions; do
  6146. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6147. as_fn_executable_p "$ac_path_lt_DD" || continue
  6148. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6149. cmp -s conftest.i conftest.out \
  6150. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6151. fi
  6152. $ac_path_lt_DD_found && break 3
  6153. done
  6154. done
  6155. done
  6156. IFS=$as_save_IFS
  6157. if test -z "$ac_cv_path_lt_DD"; then
  6158. :
  6159. fi
  6160. else
  6161. ac_cv_path_lt_DD=$lt_DD
  6162. fi
  6163. rm -f conftest.i conftest2.i conftest.out
  6164. fi
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6166. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6168. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6169. if ${lt_cv_truncate_bin+:} false; then :
  6170. $as_echo_n "(cached) " >&6
  6171. else
  6172. printf 0123456789abcdef0123456789abcdef >conftest.i
  6173. cat conftest.i conftest.i >conftest2.i
  6174. lt_cv_truncate_bin=
  6175. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6176. cmp -s conftest.i conftest.out \
  6177. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6178. fi
  6179. rm -f conftest.i conftest2.i conftest.out
  6180. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6181. fi
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6183. $as_echo "$lt_cv_truncate_bin" >&6; }
  6184. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6185. func_cc_basename ()
  6186. {
  6187. for cc_temp in $*""; do
  6188. case $cc_temp in
  6189. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6190. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6191. \-*) ;;
  6192. *) break;;
  6193. esac
  6194. done
  6195. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6196. }
  6197. # Check whether --enable-libtool-lock was given.
  6198. if test "${enable_libtool_lock+set}" = set; then :
  6199. enableval=$enable_libtool_lock;
  6200. fi
  6201. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6202. # Some flags need to be propagated to the compiler or linker for good
  6203. # libtool support.
  6204. case $host in
  6205. ia64-*-hpux*)
  6206. # Find out what ABI is being produced by ac_compile, and set mode
  6207. # options accordingly.
  6208. echo 'int i;' > conftest.$ac_ext
  6209. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6210. (eval $ac_compile) 2>&5
  6211. ac_status=$?
  6212. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6213. test $ac_status = 0; }; then
  6214. case `/usr/bin/file conftest.$ac_objext` in
  6215. *ELF-32*)
  6216. HPUX_IA64_MODE=32
  6217. ;;
  6218. *ELF-64*)
  6219. HPUX_IA64_MODE=64
  6220. ;;
  6221. esac
  6222. fi
  6223. rm -rf conftest*
  6224. ;;
  6225. *-*-irix6*)
  6226. # Find out what ABI is being produced by ac_compile, and set linker
  6227. # options accordingly.
  6228. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6229. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6230. (eval $ac_compile) 2>&5
  6231. ac_status=$?
  6232. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6233. test $ac_status = 0; }; then
  6234. if test yes = "$lt_cv_prog_gnu_ld"; then
  6235. case `/usr/bin/file conftest.$ac_objext` in
  6236. *32-bit*)
  6237. LD="${LD-ld} -melf32bsmip"
  6238. ;;
  6239. *N32*)
  6240. LD="${LD-ld} -melf32bmipn32"
  6241. ;;
  6242. *64-bit*)
  6243. LD="${LD-ld} -melf64bmip"
  6244. ;;
  6245. esac
  6246. else
  6247. case `/usr/bin/file conftest.$ac_objext` in
  6248. *32-bit*)
  6249. LD="${LD-ld} -32"
  6250. ;;
  6251. *N32*)
  6252. LD="${LD-ld} -n32"
  6253. ;;
  6254. *64-bit*)
  6255. LD="${LD-ld} -64"
  6256. ;;
  6257. esac
  6258. fi
  6259. fi
  6260. rm -rf conftest*
  6261. ;;
  6262. mips64*-*linux*)
  6263. # Find out what ABI is being produced by ac_compile, and set linker
  6264. # options accordingly.
  6265. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6266. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6267. (eval $ac_compile) 2>&5
  6268. ac_status=$?
  6269. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6270. test $ac_status = 0; }; then
  6271. emul=elf
  6272. case `/usr/bin/file conftest.$ac_objext` in
  6273. *32-bit*)
  6274. emul="${emul}32"
  6275. ;;
  6276. *64-bit*)
  6277. emul="${emul}64"
  6278. ;;
  6279. esac
  6280. case `/usr/bin/file conftest.$ac_objext` in
  6281. *MSB*)
  6282. emul="${emul}btsmip"
  6283. ;;
  6284. *LSB*)
  6285. emul="${emul}ltsmip"
  6286. ;;
  6287. esac
  6288. case `/usr/bin/file conftest.$ac_objext` in
  6289. *N32*)
  6290. emul="${emul}n32"
  6291. ;;
  6292. esac
  6293. LD="${LD-ld} -m $emul"
  6294. fi
  6295. rm -rf conftest*
  6296. ;;
  6297. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6298. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6299. # Find out what ABI is being produced by ac_compile, and set linker
  6300. # options accordingly. Note that the listed cases only cover the
  6301. # situations where additional linker options are needed (such as when
  6302. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6303. # vice versa); the common cases where no linker options are needed do
  6304. # not appear in the list.
  6305. echo 'int i;' > conftest.$ac_ext
  6306. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6307. (eval $ac_compile) 2>&5
  6308. ac_status=$?
  6309. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6310. test $ac_status = 0; }; then
  6311. case `/usr/bin/file conftest.o` in
  6312. *32-bit*)
  6313. case $host in
  6314. x86_64-*kfreebsd*-gnu)
  6315. LD="${LD-ld} -m elf_i386_fbsd"
  6316. ;;
  6317. x86_64-*linux*)
  6318. case `/usr/bin/file conftest.o` in
  6319. *x86-64*)
  6320. LD="${LD-ld} -m elf32_x86_64"
  6321. ;;
  6322. *)
  6323. LD="${LD-ld} -m elf_i386"
  6324. ;;
  6325. esac
  6326. ;;
  6327. powerpc64le-*linux*)
  6328. LD="${LD-ld} -m elf32lppclinux"
  6329. ;;
  6330. powerpc64-*linux*)
  6331. LD="${LD-ld} -m elf32ppclinux"
  6332. ;;
  6333. s390x-*linux*)
  6334. LD="${LD-ld} -m elf_s390"
  6335. ;;
  6336. sparc64-*linux*)
  6337. LD="${LD-ld} -m elf32_sparc"
  6338. ;;
  6339. esac
  6340. ;;
  6341. *64-bit*)
  6342. case $host in
  6343. x86_64-*kfreebsd*-gnu)
  6344. LD="${LD-ld} -m elf_x86_64_fbsd"
  6345. ;;
  6346. x86_64-*linux*)
  6347. LD="${LD-ld} -m elf_x86_64"
  6348. ;;
  6349. powerpcle-*linux*)
  6350. LD="${LD-ld} -m elf64lppc"
  6351. ;;
  6352. powerpc-*linux*)
  6353. LD="${LD-ld} -m elf64ppc"
  6354. ;;
  6355. s390*-*linux*|s390*-*tpf*)
  6356. LD="${LD-ld} -m elf64_s390"
  6357. ;;
  6358. sparc*-*linux*)
  6359. LD="${LD-ld} -m elf64_sparc"
  6360. ;;
  6361. esac
  6362. ;;
  6363. esac
  6364. fi
  6365. rm -rf conftest*
  6366. ;;
  6367. *-*-sco3.2v5*)
  6368. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6369. SAVE_CFLAGS=$CFLAGS
  6370. CFLAGS="$CFLAGS -belf"
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6372. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6373. if ${lt_cv_cc_needs_belf+:} false; then :
  6374. $as_echo_n "(cached) " >&6
  6375. else
  6376. ac_ext=c
  6377. ac_cpp='$CPP $CPPFLAGS'
  6378. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6379. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6380. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6382. /* end confdefs.h. */
  6383. int
  6384. main ()
  6385. {
  6386. ;
  6387. return 0;
  6388. }
  6389. _ACEOF
  6390. if ac_fn_c_try_link "$LINENO"; then :
  6391. lt_cv_cc_needs_belf=yes
  6392. else
  6393. lt_cv_cc_needs_belf=no
  6394. fi
  6395. rm -f core conftest.err conftest.$ac_objext \
  6396. conftest$ac_exeext conftest.$ac_ext
  6397. ac_ext=c
  6398. ac_cpp='$CPP $CPPFLAGS'
  6399. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6400. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6401. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6402. fi
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6404. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6405. if test yes != "$lt_cv_cc_needs_belf"; then
  6406. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6407. CFLAGS=$SAVE_CFLAGS
  6408. fi
  6409. ;;
  6410. *-*solaris*)
  6411. # Find out what ABI is being produced by ac_compile, and set linker
  6412. # options accordingly.
  6413. echo 'int i;' > conftest.$ac_ext
  6414. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6415. (eval $ac_compile) 2>&5
  6416. ac_status=$?
  6417. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6418. test $ac_status = 0; }; then
  6419. case `/usr/bin/file conftest.o` in
  6420. *64-bit*)
  6421. case $lt_cv_prog_gnu_ld in
  6422. yes*)
  6423. case $host in
  6424. i?86-*-solaris*|x86_64-*-solaris*)
  6425. LD="${LD-ld} -m elf_x86_64"
  6426. ;;
  6427. sparc*-*-solaris*)
  6428. LD="${LD-ld} -m elf64_sparc"
  6429. ;;
  6430. esac
  6431. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6432. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6433. LD=${LD-ld}_sol2
  6434. fi
  6435. ;;
  6436. *)
  6437. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6438. LD="${LD-ld} -64"
  6439. fi
  6440. ;;
  6441. esac
  6442. ;;
  6443. esac
  6444. fi
  6445. rm -rf conftest*
  6446. ;;
  6447. esac
  6448. need_locks=$enable_libtool_lock
  6449. if test -n "$ac_tool_prefix"; then
  6450. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6451. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6453. $as_echo_n "checking for $ac_word... " >&6; }
  6454. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6455. $as_echo_n "(cached) " >&6
  6456. else
  6457. if test -n "$MANIFEST_TOOL"; then
  6458. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6459. else
  6460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6461. for as_dir in $PATH
  6462. do
  6463. IFS=$as_save_IFS
  6464. test -z "$as_dir" && as_dir=.
  6465. for ac_exec_ext in '' $ac_executable_extensions; do
  6466. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6467. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6469. break 2
  6470. fi
  6471. done
  6472. done
  6473. IFS=$as_save_IFS
  6474. fi
  6475. fi
  6476. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6477. if test -n "$MANIFEST_TOOL"; then
  6478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6479. $as_echo "$MANIFEST_TOOL" >&6; }
  6480. else
  6481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6482. $as_echo "no" >&6; }
  6483. fi
  6484. fi
  6485. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6486. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6487. # Extract the first word of "mt", so it can be a program name with args.
  6488. set dummy mt; ac_word=$2
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6490. $as_echo_n "checking for $ac_word... " >&6; }
  6491. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6492. $as_echo_n "(cached) " >&6
  6493. else
  6494. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6495. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6496. else
  6497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6498. for as_dir in $PATH
  6499. do
  6500. IFS=$as_save_IFS
  6501. test -z "$as_dir" && as_dir=.
  6502. for ac_exec_ext in '' $ac_executable_extensions; do
  6503. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6504. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6506. break 2
  6507. fi
  6508. done
  6509. done
  6510. IFS=$as_save_IFS
  6511. fi
  6512. fi
  6513. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6514. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6516. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6517. else
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6519. $as_echo "no" >&6; }
  6520. fi
  6521. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6522. MANIFEST_TOOL=":"
  6523. else
  6524. case $cross_compiling:$ac_tool_warned in
  6525. yes:)
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6528. ac_tool_warned=yes ;;
  6529. esac
  6530. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6531. fi
  6532. else
  6533. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6534. fi
  6535. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6537. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6538. if ${lt_cv_path_mainfest_tool+:} false; then :
  6539. $as_echo_n "(cached) " >&6
  6540. else
  6541. lt_cv_path_mainfest_tool=no
  6542. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6543. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6544. cat conftest.err >&5
  6545. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6546. lt_cv_path_mainfest_tool=yes
  6547. fi
  6548. rm -f conftest*
  6549. fi
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6551. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6552. if test yes != "$lt_cv_path_mainfest_tool"; then
  6553. MANIFEST_TOOL=:
  6554. fi
  6555. case $host_os in
  6556. rhapsody* | darwin*)
  6557. if test -n "$ac_tool_prefix"; then
  6558. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6559. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6561. $as_echo_n "checking for $ac_word... " >&6; }
  6562. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6563. $as_echo_n "(cached) " >&6
  6564. else
  6565. if test -n "$DSYMUTIL"; then
  6566. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6567. else
  6568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6569. for as_dir in $PATH
  6570. do
  6571. IFS=$as_save_IFS
  6572. test -z "$as_dir" && as_dir=.
  6573. for ac_exec_ext in '' $ac_executable_extensions; do
  6574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6575. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6577. break 2
  6578. fi
  6579. done
  6580. done
  6581. IFS=$as_save_IFS
  6582. fi
  6583. fi
  6584. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6585. if test -n "$DSYMUTIL"; then
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6587. $as_echo "$DSYMUTIL" >&6; }
  6588. else
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6590. $as_echo "no" >&6; }
  6591. fi
  6592. fi
  6593. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6594. ac_ct_DSYMUTIL=$DSYMUTIL
  6595. # Extract the first word of "dsymutil", so it can be a program name with args.
  6596. set dummy dsymutil; ac_word=$2
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6598. $as_echo_n "checking for $ac_word... " >&6; }
  6599. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6600. $as_echo_n "(cached) " >&6
  6601. else
  6602. if test -n "$ac_ct_DSYMUTIL"; then
  6603. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6604. else
  6605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6606. for as_dir in $PATH
  6607. do
  6608. IFS=$as_save_IFS
  6609. test -z "$as_dir" && as_dir=.
  6610. for ac_exec_ext in '' $ac_executable_extensions; do
  6611. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6612. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6614. break 2
  6615. fi
  6616. done
  6617. done
  6618. IFS=$as_save_IFS
  6619. fi
  6620. fi
  6621. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6622. if test -n "$ac_ct_DSYMUTIL"; then
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6624. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6625. else
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6627. $as_echo "no" >&6; }
  6628. fi
  6629. if test "x$ac_ct_DSYMUTIL" = x; then
  6630. DSYMUTIL=":"
  6631. else
  6632. case $cross_compiling:$ac_tool_warned in
  6633. yes:)
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6635. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6636. ac_tool_warned=yes ;;
  6637. esac
  6638. DSYMUTIL=$ac_ct_DSYMUTIL
  6639. fi
  6640. else
  6641. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6642. fi
  6643. if test -n "$ac_tool_prefix"; then
  6644. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6645. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6647. $as_echo_n "checking for $ac_word... " >&6; }
  6648. if ${ac_cv_prog_NMEDIT+:} false; then :
  6649. $as_echo_n "(cached) " >&6
  6650. else
  6651. if test -n "$NMEDIT"; then
  6652. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6653. else
  6654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6655. for as_dir in $PATH
  6656. do
  6657. IFS=$as_save_IFS
  6658. test -z "$as_dir" && as_dir=.
  6659. for ac_exec_ext in '' $ac_executable_extensions; do
  6660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6661. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6663. break 2
  6664. fi
  6665. done
  6666. done
  6667. IFS=$as_save_IFS
  6668. fi
  6669. fi
  6670. NMEDIT=$ac_cv_prog_NMEDIT
  6671. if test -n "$NMEDIT"; then
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6673. $as_echo "$NMEDIT" >&6; }
  6674. else
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6676. $as_echo "no" >&6; }
  6677. fi
  6678. fi
  6679. if test -z "$ac_cv_prog_NMEDIT"; then
  6680. ac_ct_NMEDIT=$NMEDIT
  6681. # Extract the first word of "nmedit", so it can be a program name with args.
  6682. set dummy nmedit; ac_word=$2
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6684. $as_echo_n "checking for $ac_word... " >&6; }
  6685. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6686. $as_echo_n "(cached) " >&6
  6687. else
  6688. if test -n "$ac_ct_NMEDIT"; then
  6689. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6690. else
  6691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6692. for as_dir in $PATH
  6693. do
  6694. IFS=$as_save_IFS
  6695. test -z "$as_dir" && as_dir=.
  6696. for ac_exec_ext in '' $ac_executable_extensions; do
  6697. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6698. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6700. break 2
  6701. fi
  6702. done
  6703. done
  6704. IFS=$as_save_IFS
  6705. fi
  6706. fi
  6707. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6708. if test -n "$ac_ct_NMEDIT"; then
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6710. $as_echo "$ac_ct_NMEDIT" >&6; }
  6711. else
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6713. $as_echo "no" >&6; }
  6714. fi
  6715. if test "x$ac_ct_NMEDIT" = x; then
  6716. NMEDIT=":"
  6717. else
  6718. case $cross_compiling:$ac_tool_warned in
  6719. yes:)
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6721. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6722. ac_tool_warned=yes ;;
  6723. esac
  6724. NMEDIT=$ac_ct_NMEDIT
  6725. fi
  6726. else
  6727. NMEDIT="$ac_cv_prog_NMEDIT"
  6728. fi
  6729. if test -n "$ac_tool_prefix"; then
  6730. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6731. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6733. $as_echo_n "checking for $ac_word... " >&6; }
  6734. if ${ac_cv_prog_LIPO+:} false; then :
  6735. $as_echo_n "(cached) " >&6
  6736. else
  6737. if test -n "$LIPO"; then
  6738. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6739. else
  6740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6741. for as_dir in $PATH
  6742. do
  6743. IFS=$as_save_IFS
  6744. test -z "$as_dir" && as_dir=.
  6745. for ac_exec_ext in '' $ac_executable_extensions; do
  6746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6747. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6749. break 2
  6750. fi
  6751. done
  6752. done
  6753. IFS=$as_save_IFS
  6754. fi
  6755. fi
  6756. LIPO=$ac_cv_prog_LIPO
  6757. if test -n "$LIPO"; then
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6759. $as_echo "$LIPO" >&6; }
  6760. else
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6762. $as_echo "no" >&6; }
  6763. fi
  6764. fi
  6765. if test -z "$ac_cv_prog_LIPO"; then
  6766. ac_ct_LIPO=$LIPO
  6767. # Extract the first word of "lipo", so it can be a program name with args.
  6768. set dummy lipo; ac_word=$2
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6770. $as_echo_n "checking for $ac_word... " >&6; }
  6771. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6772. $as_echo_n "(cached) " >&6
  6773. else
  6774. if test -n "$ac_ct_LIPO"; then
  6775. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6776. else
  6777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6778. for as_dir in $PATH
  6779. do
  6780. IFS=$as_save_IFS
  6781. test -z "$as_dir" && as_dir=.
  6782. for ac_exec_ext in '' $ac_executable_extensions; do
  6783. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6784. ac_cv_prog_ac_ct_LIPO="lipo"
  6785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6786. break 2
  6787. fi
  6788. done
  6789. done
  6790. IFS=$as_save_IFS
  6791. fi
  6792. fi
  6793. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6794. if test -n "$ac_ct_LIPO"; then
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6796. $as_echo "$ac_ct_LIPO" >&6; }
  6797. else
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6799. $as_echo "no" >&6; }
  6800. fi
  6801. if test "x$ac_ct_LIPO" = x; then
  6802. LIPO=":"
  6803. else
  6804. case $cross_compiling:$ac_tool_warned in
  6805. yes:)
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6807. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6808. ac_tool_warned=yes ;;
  6809. esac
  6810. LIPO=$ac_ct_LIPO
  6811. fi
  6812. else
  6813. LIPO="$ac_cv_prog_LIPO"
  6814. fi
  6815. if test -n "$ac_tool_prefix"; then
  6816. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6817. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6819. $as_echo_n "checking for $ac_word... " >&6; }
  6820. if ${ac_cv_prog_OTOOL+:} false; then :
  6821. $as_echo_n "(cached) " >&6
  6822. else
  6823. if test -n "$OTOOL"; then
  6824. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6825. else
  6826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6827. for as_dir in $PATH
  6828. do
  6829. IFS=$as_save_IFS
  6830. test -z "$as_dir" && as_dir=.
  6831. for ac_exec_ext in '' $ac_executable_extensions; do
  6832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6833. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6835. break 2
  6836. fi
  6837. done
  6838. done
  6839. IFS=$as_save_IFS
  6840. fi
  6841. fi
  6842. OTOOL=$ac_cv_prog_OTOOL
  6843. if test -n "$OTOOL"; then
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6845. $as_echo "$OTOOL" >&6; }
  6846. else
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6848. $as_echo "no" >&6; }
  6849. fi
  6850. fi
  6851. if test -z "$ac_cv_prog_OTOOL"; then
  6852. ac_ct_OTOOL=$OTOOL
  6853. # Extract the first word of "otool", so it can be a program name with args.
  6854. set dummy otool; ac_word=$2
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6856. $as_echo_n "checking for $ac_word... " >&6; }
  6857. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6858. $as_echo_n "(cached) " >&6
  6859. else
  6860. if test -n "$ac_ct_OTOOL"; then
  6861. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6862. else
  6863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6864. for as_dir in $PATH
  6865. do
  6866. IFS=$as_save_IFS
  6867. test -z "$as_dir" && as_dir=.
  6868. for ac_exec_ext in '' $ac_executable_extensions; do
  6869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6870. ac_cv_prog_ac_ct_OTOOL="otool"
  6871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6872. break 2
  6873. fi
  6874. done
  6875. done
  6876. IFS=$as_save_IFS
  6877. fi
  6878. fi
  6879. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6880. if test -n "$ac_ct_OTOOL"; then
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6882. $as_echo "$ac_ct_OTOOL" >&6; }
  6883. else
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6885. $as_echo "no" >&6; }
  6886. fi
  6887. if test "x$ac_ct_OTOOL" = x; then
  6888. OTOOL=":"
  6889. else
  6890. case $cross_compiling:$ac_tool_warned in
  6891. yes:)
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6893. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6894. ac_tool_warned=yes ;;
  6895. esac
  6896. OTOOL=$ac_ct_OTOOL
  6897. fi
  6898. else
  6899. OTOOL="$ac_cv_prog_OTOOL"
  6900. fi
  6901. if test -n "$ac_tool_prefix"; then
  6902. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6903. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6905. $as_echo_n "checking for $ac_word... " >&6; }
  6906. if ${ac_cv_prog_OTOOL64+:} false; then :
  6907. $as_echo_n "(cached) " >&6
  6908. else
  6909. if test -n "$OTOOL64"; then
  6910. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6911. else
  6912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6913. for as_dir in $PATH
  6914. do
  6915. IFS=$as_save_IFS
  6916. test -z "$as_dir" && as_dir=.
  6917. for ac_exec_ext in '' $ac_executable_extensions; do
  6918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6919. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6921. break 2
  6922. fi
  6923. done
  6924. done
  6925. IFS=$as_save_IFS
  6926. fi
  6927. fi
  6928. OTOOL64=$ac_cv_prog_OTOOL64
  6929. if test -n "$OTOOL64"; then
  6930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6931. $as_echo "$OTOOL64" >&6; }
  6932. else
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6934. $as_echo "no" >&6; }
  6935. fi
  6936. fi
  6937. if test -z "$ac_cv_prog_OTOOL64"; then
  6938. ac_ct_OTOOL64=$OTOOL64
  6939. # Extract the first word of "otool64", so it can be a program name with args.
  6940. set dummy otool64; ac_word=$2
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6942. $as_echo_n "checking for $ac_word... " >&6; }
  6943. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6944. $as_echo_n "(cached) " >&6
  6945. else
  6946. if test -n "$ac_ct_OTOOL64"; then
  6947. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6948. else
  6949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6950. for as_dir in $PATH
  6951. do
  6952. IFS=$as_save_IFS
  6953. test -z "$as_dir" && as_dir=.
  6954. for ac_exec_ext in '' $ac_executable_extensions; do
  6955. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6956. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6958. break 2
  6959. fi
  6960. done
  6961. done
  6962. IFS=$as_save_IFS
  6963. fi
  6964. fi
  6965. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6966. if test -n "$ac_ct_OTOOL64"; then
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6968. $as_echo "$ac_ct_OTOOL64" >&6; }
  6969. else
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6971. $as_echo "no" >&6; }
  6972. fi
  6973. if test "x$ac_ct_OTOOL64" = x; then
  6974. OTOOL64=":"
  6975. else
  6976. case $cross_compiling:$ac_tool_warned in
  6977. yes:)
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6979. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6980. ac_tool_warned=yes ;;
  6981. esac
  6982. OTOOL64=$ac_ct_OTOOL64
  6983. fi
  6984. else
  6985. OTOOL64="$ac_cv_prog_OTOOL64"
  6986. fi
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6988. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6989. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6990. $as_echo_n "(cached) " >&6
  6991. else
  6992. lt_cv_apple_cc_single_mod=no
  6993. if test -z "$LT_MULTI_MODULE"; then
  6994. # By default we will add the -single_module flag. You can override
  6995. # by either setting the environment variable LT_MULTI_MODULE
  6996. # non-empty at configure time, or by adding -multi_module to the
  6997. # link flags.
  6998. rm -rf libconftest.dylib*
  6999. echo "int foo(void){return 1;}" > conftest.c
  7000. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7001. -dynamiclib -Wl,-single_module conftest.c" >&5
  7002. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7003. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7004. _lt_result=$?
  7005. # If there is a non-empty error log, and "single_module"
  7006. # appears in it, assume the flag caused a linker warning
  7007. if test -s conftest.err && $GREP single_module conftest.err; then
  7008. cat conftest.err >&5
  7009. # Otherwise, if the output was created with a 0 exit code from
  7010. # the compiler, it worked.
  7011. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7012. lt_cv_apple_cc_single_mod=yes
  7013. else
  7014. cat conftest.err >&5
  7015. fi
  7016. rm -rf libconftest.dylib*
  7017. rm -f conftest.*
  7018. fi
  7019. fi
  7020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7021. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7023. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7024. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7025. $as_echo_n "(cached) " >&6
  7026. else
  7027. lt_cv_ld_exported_symbols_list=no
  7028. save_LDFLAGS=$LDFLAGS
  7029. echo "_main" > conftest.sym
  7030. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7032. /* end confdefs.h. */
  7033. int
  7034. main ()
  7035. {
  7036. ;
  7037. return 0;
  7038. }
  7039. _ACEOF
  7040. if ac_fn_c_try_link "$LINENO"; then :
  7041. lt_cv_ld_exported_symbols_list=yes
  7042. else
  7043. lt_cv_ld_exported_symbols_list=no
  7044. fi
  7045. rm -f core conftest.err conftest.$ac_objext \
  7046. conftest$ac_exeext conftest.$ac_ext
  7047. LDFLAGS=$save_LDFLAGS
  7048. fi
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7050. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7052. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7053. if ${lt_cv_ld_force_load+:} false; then :
  7054. $as_echo_n "(cached) " >&6
  7055. else
  7056. lt_cv_ld_force_load=no
  7057. cat > conftest.c << _LT_EOF
  7058. int forced_loaded() { return 2;}
  7059. _LT_EOF
  7060. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7061. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7062. echo "$AR cr libconftest.a conftest.o" >&5
  7063. $AR cr libconftest.a conftest.o 2>&5
  7064. echo "$RANLIB libconftest.a" >&5
  7065. $RANLIB libconftest.a 2>&5
  7066. cat > conftest.c << _LT_EOF
  7067. int main() { return 0;}
  7068. _LT_EOF
  7069. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7070. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7071. _lt_result=$?
  7072. if test -s conftest.err && $GREP force_load conftest.err; then
  7073. cat conftest.err >&5
  7074. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7075. lt_cv_ld_force_load=yes
  7076. else
  7077. cat conftest.err >&5
  7078. fi
  7079. rm -f conftest.err libconftest.a conftest conftest.c
  7080. rm -rf conftest.dSYM
  7081. fi
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7083. $as_echo "$lt_cv_ld_force_load" >&6; }
  7084. case $host_os in
  7085. rhapsody* | darwin1.[012])
  7086. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7087. darwin1.*)
  7088. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7089. darwin*) # darwin 5.x on
  7090. # if running on 10.5 or later, the deployment target defaults
  7091. # to the OS version, if on x86, and 10.4, the deployment
  7092. # target defaults to 10.4. Don't you love it?
  7093. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7094. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7095. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7096. 10.[012][,.]*)
  7097. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7098. 10.*)
  7099. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7100. esac
  7101. ;;
  7102. esac
  7103. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7104. _lt_dar_single_mod='$single_module'
  7105. fi
  7106. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7107. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7108. else
  7109. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7110. fi
  7111. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7112. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7113. else
  7114. _lt_dsymutil=
  7115. fi
  7116. ;;
  7117. esac
  7118. # func_munge_path_list VARIABLE PATH
  7119. # -----------------------------------
  7120. # VARIABLE is name of variable containing _space_ separated list of
  7121. # directories to be munged by the contents of PATH, which is string
  7122. # having a format:
  7123. # "DIR[:DIR]:"
  7124. # string "DIR[ DIR]" will be prepended to VARIABLE
  7125. # ":DIR[:DIR]"
  7126. # string "DIR[ DIR]" will be appended to VARIABLE
  7127. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7128. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7129. # "DIRA[ DIRA]" will be appended to VARIABLE
  7130. # "DIR[:DIR]"
  7131. # VARIABLE will be replaced by "DIR[ DIR]"
  7132. func_munge_path_list ()
  7133. {
  7134. case x$2 in
  7135. x)
  7136. ;;
  7137. *:)
  7138. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7139. ;;
  7140. x:*)
  7141. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7142. ;;
  7143. *::*)
  7144. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7145. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7146. ;;
  7147. *)
  7148. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7149. ;;
  7150. esac
  7151. }
  7152. for ac_header in dlfcn.h
  7153. do :
  7154. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7155. "
  7156. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7157. cat >>confdefs.h <<_ACEOF
  7158. #define HAVE_DLFCN_H 1
  7159. _ACEOF
  7160. fi
  7161. done
  7162. # Set options
  7163. enable_dlopen=no
  7164. # Check whether --enable-shared was given.
  7165. if test "${enable_shared+set}" = set; then :
  7166. enableval=$enable_shared; p=${PACKAGE-default}
  7167. case $enableval in
  7168. yes) enable_shared=yes ;;
  7169. no) enable_shared=no ;;
  7170. *)
  7171. enable_shared=no
  7172. # Look at the argument we got. We use all the common list separators.
  7173. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7174. for pkg in $enableval; do
  7175. IFS=$lt_save_ifs
  7176. if test "X$pkg" = "X$p"; then
  7177. enable_shared=yes
  7178. fi
  7179. done
  7180. IFS=$lt_save_ifs
  7181. ;;
  7182. esac
  7183. else
  7184. enable_shared=yes
  7185. fi
  7186. # Check whether --enable-static was given.
  7187. if test "${enable_static+set}" = set; then :
  7188. enableval=$enable_static; p=${PACKAGE-default}
  7189. case $enableval in
  7190. yes) enable_static=yes ;;
  7191. no) enable_static=no ;;
  7192. *)
  7193. enable_static=no
  7194. # Look at the argument we got. We use all the common list separators.
  7195. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7196. for pkg in $enableval; do
  7197. IFS=$lt_save_ifs
  7198. if test "X$pkg" = "X$p"; then
  7199. enable_static=yes
  7200. fi
  7201. done
  7202. IFS=$lt_save_ifs
  7203. ;;
  7204. esac
  7205. else
  7206. enable_static=yes
  7207. fi
  7208. # Check whether --with-pic was given.
  7209. if test "${with_pic+set}" = set; then :
  7210. withval=$with_pic; lt_p=${PACKAGE-default}
  7211. case $withval in
  7212. yes|no) pic_mode=$withval ;;
  7213. *)
  7214. pic_mode=default
  7215. # Look at the argument we got. We use all the common list separators.
  7216. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7217. for lt_pkg in $withval; do
  7218. IFS=$lt_save_ifs
  7219. if test "X$lt_pkg" = "X$lt_p"; then
  7220. pic_mode=yes
  7221. fi
  7222. done
  7223. IFS=$lt_save_ifs
  7224. ;;
  7225. esac
  7226. else
  7227. pic_mode=default
  7228. fi
  7229. # Check whether --enable-fast-install was given.
  7230. if test "${enable_fast_install+set}" = set; then :
  7231. enableval=$enable_fast_install; p=${PACKAGE-default}
  7232. case $enableval in
  7233. yes) enable_fast_install=yes ;;
  7234. no) enable_fast_install=no ;;
  7235. *)
  7236. enable_fast_install=no
  7237. # Look at the argument we got. We use all the common list separators.
  7238. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7239. for pkg in $enableval; do
  7240. IFS=$lt_save_ifs
  7241. if test "X$pkg" = "X$p"; then
  7242. enable_fast_install=yes
  7243. fi
  7244. done
  7245. IFS=$lt_save_ifs
  7246. ;;
  7247. esac
  7248. else
  7249. enable_fast_install=yes
  7250. fi
  7251. shared_archive_member_spec=
  7252. case $host,$enable_shared in
  7253. power*-*-aix[5-9]*,yes)
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7255. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7256. # Check whether --with-aix-soname was given.
  7257. if test "${with_aix_soname+set}" = set; then :
  7258. withval=$with_aix_soname; case $withval in
  7259. aix|svr4|both)
  7260. ;;
  7261. *)
  7262. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7263. ;;
  7264. esac
  7265. lt_cv_with_aix_soname=$with_aix_soname
  7266. else
  7267. if ${lt_cv_with_aix_soname+:} false; then :
  7268. $as_echo_n "(cached) " >&6
  7269. else
  7270. lt_cv_with_aix_soname=aix
  7271. fi
  7272. with_aix_soname=$lt_cv_with_aix_soname
  7273. fi
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7275. $as_echo "$with_aix_soname" >&6; }
  7276. if test aix != "$with_aix_soname"; then
  7277. # For the AIX way of multilib, we name the shared archive member
  7278. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7279. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7280. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7281. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7282. if test 64 = "${OBJECT_MODE-32}"; then
  7283. shared_archive_member_spec=shr_64
  7284. else
  7285. shared_archive_member_spec=shr
  7286. fi
  7287. fi
  7288. ;;
  7289. *)
  7290. with_aix_soname=aix
  7291. ;;
  7292. esac
  7293. # This can be used to rebuild libtool when needed
  7294. LIBTOOL_DEPS=$ltmain
  7295. # Always use our own libtool.
  7296. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7297. test -z "$LN_S" && LN_S="ln -s"
  7298. if test -n "${ZSH_VERSION+set}"; then
  7299. setopt NO_GLOB_SUBST
  7300. fi
  7301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7302. $as_echo_n "checking for objdir... " >&6; }
  7303. if ${lt_cv_objdir+:} false; then :
  7304. $as_echo_n "(cached) " >&6
  7305. else
  7306. rm -f .libs 2>/dev/null
  7307. mkdir .libs 2>/dev/null
  7308. if test -d .libs; then
  7309. lt_cv_objdir=.libs
  7310. else
  7311. # MS-DOS does not allow filenames that begin with a dot.
  7312. lt_cv_objdir=_libs
  7313. fi
  7314. rmdir .libs 2>/dev/null
  7315. fi
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7317. $as_echo "$lt_cv_objdir" >&6; }
  7318. objdir=$lt_cv_objdir
  7319. cat >>confdefs.h <<_ACEOF
  7320. #define LT_OBJDIR "$lt_cv_objdir/"
  7321. _ACEOF
  7322. case $host_os in
  7323. aix3*)
  7324. # AIX sometimes has problems with the GCC collect2 program. For some
  7325. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7326. # vanish in a puff of smoke.
  7327. if test set != "${COLLECT_NAMES+set}"; then
  7328. COLLECT_NAMES=
  7329. export COLLECT_NAMES
  7330. fi
  7331. ;;
  7332. esac
  7333. # Global variables:
  7334. ofile=libtool
  7335. can_build_shared=yes
  7336. # All known linkers require a '.a' archive for static linking (except MSVC,
  7337. # which needs '.lib').
  7338. libext=a
  7339. with_gnu_ld=$lt_cv_prog_gnu_ld
  7340. old_CC=$CC
  7341. old_CFLAGS=$CFLAGS
  7342. # Set sane defaults for various variables
  7343. test -z "$CC" && CC=cc
  7344. test -z "$LTCC" && LTCC=$CC
  7345. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7346. test -z "$LD" && LD=ld
  7347. test -z "$ac_objext" && ac_objext=o
  7348. func_cc_basename $compiler
  7349. cc_basename=$func_cc_basename_result
  7350. # Only perform the check for file, if the check method requires it
  7351. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7352. case $deplibs_check_method in
  7353. file_magic*)
  7354. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7356. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7357. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7358. $as_echo_n "(cached) " >&6
  7359. else
  7360. case $MAGIC_CMD in
  7361. [\\/*] | ?:[\\/]*)
  7362. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7363. ;;
  7364. *)
  7365. lt_save_MAGIC_CMD=$MAGIC_CMD
  7366. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7367. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7368. for ac_dir in $ac_dummy; do
  7369. IFS=$lt_save_ifs
  7370. test -z "$ac_dir" && ac_dir=.
  7371. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7372. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7373. if test -n "$file_magic_test_file"; then
  7374. case $deplibs_check_method in
  7375. "file_magic "*)
  7376. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7377. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7378. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7379. $EGREP "$file_magic_regex" > /dev/null; then
  7380. :
  7381. else
  7382. cat <<_LT_EOF 1>&2
  7383. *** Warning: the command libtool uses to detect shared libraries,
  7384. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7385. *** The result is that libtool may fail to recognize shared libraries
  7386. *** as such. This will affect the creation of libtool libraries that
  7387. *** depend on shared libraries, but programs linked with such libtool
  7388. *** libraries will work regardless of this problem. Nevertheless, you
  7389. *** may want to report the problem to your system manager and/or to
  7390. *** bug-libtool@gnu.org
  7391. _LT_EOF
  7392. fi ;;
  7393. esac
  7394. fi
  7395. break
  7396. fi
  7397. done
  7398. IFS=$lt_save_ifs
  7399. MAGIC_CMD=$lt_save_MAGIC_CMD
  7400. ;;
  7401. esac
  7402. fi
  7403. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7404. if test -n "$MAGIC_CMD"; then
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7406. $as_echo "$MAGIC_CMD" >&6; }
  7407. else
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7409. $as_echo "no" >&6; }
  7410. fi
  7411. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7412. if test -n "$ac_tool_prefix"; then
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7414. $as_echo_n "checking for file... " >&6; }
  7415. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7416. $as_echo_n "(cached) " >&6
  7417. else
  7418. case $MAGIC_CMD in
  7419. [\\/*] | ?:[\\/]*)
  7420. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7421. ;;
  7422. *)
  7423. lt_save_MAGIC_CMD=$MAGIC_CMD
  7424. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7425. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7426. for ac_dir in $ac_dummy; do
  7427. IFS=$lt_save_ifs
  7428. test -z "$ac_dir" && ac_dir=.
  7429. if test -f "$ac_dir/file"; then
  7430. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7431. if test -n "$file_magic_test_file"; then
  7432. case $deplibs_check_method in
  7433. "file_magic "*)
  7434. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7435. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7436. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7437. $EGREP "$file_magic_regex" > /dev/null; then
  7438. :
  7439. else
  7440. cat <<_LT_EOF 1>&2
  7441. *** Warning: the command libtool uses to detect shared libraries,
  7442. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7443. *** The result is that libtool may fail to recognize shared libraries
  7444. *** as such. This will affect the creation of libtool libraries that
  7445. *** depend on shared libraries, but programs linked with such libtool
  7446. *** libraries will work regardless of this problem. Nevertheless, you
  7447. *** may want to report the problem to your system manager and/or to
  7448. *** bug-libtool@gnu.org
  7449. _LT_EOF
  7450. fi ;;
  7451. esac
  7452. fi
  7453. break
  7454. fi
  7455. done
  7456. IFS=$lt_save_ifs
  7457. MAGIC_CMD=$lt_save_MAGIC_CMD
  7458. ;;
  7459. esac
  7460. fi
  7461. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7462. if test -n "$MAGIC_CMD"; then
  7463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7464. $as_echo "$MAGIC_CMD" >&6; }
  7465. else
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7467. $as_echo "no" >&6; }
  7468. fi
  7469. else
  7470. MAGIC_CMD=:
  7471. fi
  7472. fi
  7473. fi
  7474. ;;
  7475. esac
  7476. # Use C for the default configuration in the libtool script
  7477. lt_save_CC=$CC
  7478. ac_ext=c
  7479. ac_cpp='$CPP $CPPFLAGS'
  7480. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7481. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7482. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7483. # Source file extension for C test sources.
  7484. ac_ext=c
  7485. # Object file extension for compiled C test sources.
  7486. objext=o
  7487. objext=$objext
  7488. # Code to be used in simple compile tests
  7489. lt_simple_compile_test_code="int some_variable = 0;"
  7490. # Code to be used in simple link tests
  7491. lt_simple_link_test_code='int main(){return(0);}'
  7492. # If no C compiler was specified, use CC.
  7493. LTCC=${LTCC-"$CC"}
  7494. # If no C compiler flags were specified, use CFLAGS.
  7495. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7496. # Allow CC to be a program name with arguments.
  7497. compiler=$CC
  7498. # Save the default compiler, since it gets overwritten when the other
  7499. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7500. compiler_DEFAULT=$CC
  7501. # save warnings/boilerplate of simple test code
  7502. ac_outfile=conftest.$ac_objext
  7503. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7504. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7505. _lt_compiler_boilerplate=`cat conftest.err`
  7506. $RM conftest*
  7507. ac_outfile=conftest.$ac_objext
  7508. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7509. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7510. _lt_linker_boilerplate=`cat conftest.err`
  7511. $RM -r conftest*
  7512. ## CAVEAT EMPTOR:
  7513. ## There is no encapsulation within the following macros, do not change
  7514. ## the running order or otherwise move them around unless you know exactly
  7515. ## what you are doing...
  7516. if test -n "$compiler"; then
  7517. lt_prog_compiler_no_builtin_flag=
  7518. if test yes = "$GCC"; then
  7519. case $cc_basename in
  7520. nvcc*)
  7521. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7522. *)
  7523. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7524. esac
  7525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7526. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7527. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7528. $as_echo_n "(cached) " >&6
  7529. else
  7530. lt_cv_prog_compiler_rtti_exceptions=no
  7531. ac_outfile=conftest.$ac_objext
  7532. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7533. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7534. # Insert the option either (1) after the last *FLAGS variable, or
  7535. # (2) before a word containing "conftest.", or (3) at the end.
  7536. # Note that $ac_compile itself does not contain backslashes and begins
  7537. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7538. # The option is referenced via a variable to avoid confusing sed.
  7539. lt_compile=`echo "$ac_compile" | $SED \
  7540. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7541. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7542. -e 's:$: $lt_compiler_flag:'`
  7543. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7544. (eval "$lt_compile" 2>conftest.err)
  7545. ac_status=$?
  7546. cat conftest.err >&5
  7547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7548. if (exit $ac_status) && test -s "$ac_outfile"; then
  7549. # The compiler can only warn and ignore the option if not recognized
  7550. # So say no if there are warnings other than the usual output.
  7551. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7552. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7553. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7554. lt_cv_prog_compiler_rtti_exceptions=yes
  7555. fi
  7556. fi
  7557. $RM conftest*
  7558. fi
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7560. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7561. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7562. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7563. else
  7564. :
  7565. fi
  7566. fi
  7567. lt_prog_compiler_wl=
  7568. lt_prog_compiler_pic=
  7569. lt_prog_compiler_static=
  7570. if test yes = "$GCC"; then
  7571. lt_prog_compiler_wl='-Wl,'
  7572. lt_prog_compiler_static='-static'
  7573. case $host_os in
  7574. aix*)
  7575. # All AIX code is PIC.
  7576. if test ia64 = "$host_cpu"; then
  7577. # AIX 5 now supports IA64 processor
  7578. lt_prog_compiler_static='-Bstatic'
  7579. fi
  7580. lt_prog_compiler_pic='-fPIC'
  7581. ;;
  7582. amigaos*)
  7583. case $host_cpu in
  7584. powerpc)
  7585. # see comment about AmigaOS4 .so support
  7586. lt_prog_compiler_pic='-fPIC'
  7587. ;;
  7588. m68k)
  7589. # FIXME: we need at least 68020 code to build shared libraries, but
  7590. # adding the '-m68020' flag to GCC prevents building anything better,
  7591. # like '-m68040'.
  7592. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7593. ;;
  7594. esac
  7595. ;;
  7596. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7597. # PIC is the default for these OSes.
  7598. ;;
  7599. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7600. # This hack is so that the source file can tell whether it is being
  7601. # built for inclusion in a dll (and should export symbols for example).
  7602. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7603. # (--disable-auto-import) libraries
  7604. lt_prog_compiler_pic='-DDLL_EXPORT'
  7605. case $host_os in
  7606. os2*)
  7607. lt_prog_compiler_static='$wl-static'
  7608. ;;
  7609. esac
  7610. ;;
  7611. darwin* | rhapsody*)
  7612. # PIC is the default on this platform
  7613. # Common symbols not allowed in MH_DYLIB files
  7614. lt_prog_compiler_pic='-fno-common'
  7615. ;;
  7616. haiku*)
  7617. # PIC is the default for Haiku.
  7618. # The "-static" flag exists, but is broken.
  7619. lt_prog_compiler_static=
  7620. ;;
  7621. hpux*)
  7622. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7623. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7624. # sets the default TLS model and affects inlining.
  7625. case $host_cpu in
  7626. hppa*64*)
  7627. # +Z the default
  7628. ;;
  7629. *)
  7630. lt_prog_compiler_pic='-fPIC'
  7631. ;;
  7632. esac
  7633. ;;
  7634. interix[3-9]*)
  7635. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7636. # Instead, we relocate shared libraries at runtime.
  7637. ;;
  7638. msdosdjgpp*)
  7639. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7640. # on systems that don't support them.
  7641. lt_prog_compiler_can_build_shared=no
  7642. enable_shared=no
  7643. ;;
  7644. *nto* | *qnx*)
  7645. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7646. # it will coredump.
  7647. lt_prog_compiler_pic='-fPIC -shared'
  7648. ;;
  7649. sysv4*MP*)
  7650. if test -d /usr/nec; then
  7651. lt_prog_compiler_pic=-Kconform_pic
  7652. fi
  7653. ;;
  7654. *)
  7655. lt_prog_compiler_pic='-fPIC'
  7656. ;;
  7657. esac
  7658. case $cc_basename in
  7659. nvcc*) # Cuda Compiler Driver 2.2
  7660. lt_prog_compiler_wl='-Xlinker '
  7661. if test -n "$lt_prog_compiler_pic"; then
  7662. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7663. fi
  7664. ;;
  7665. esac
  7666. else
  7667. # PORTME Check for flag to pass linker flags through the system compiler.
  7668. case $host_os in
  7669. aix*)
  7670. lt_prog_compiler_wl='-Wl,'
  7671. if test ia64 = "$host_cpu"; then
  7672. # AIX 5 now supports IA64 processor
  7673. lt_prog_compiler_static='-Bstatic'
  7674. else
  7675. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7676. fi
  7677. ;;
  7678. darwin* | rhapsody*)
  7679. # PIC is the default on this platform
  7680. # Common symbols not allowed in MH_DYLIB files
  7681. lt_prog_compiler_pic='-fno-common'
  7682. case $cc_basename in
  7683. nagfor*)
  7684. # NAG Fortran compiler
  7685. lt_prog_compiler_wl='-Wl,-Wl,,'
  7686. lt_prog_compiler_pic='-PIC'
  7687. lt_prog_compiler_static='-Bstatic'
  7688. ;;
  7689. esac
  7690. ;;
  7691. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7692. # This hack is so that the source file can tell whether it is being
  7693. # built for inclusion in a dll (and should export symbols for example).
  7694. lt_prog_compiler_pic='-DDLL_EXPORT'
  7695. case $host_os in
  7696. os2*)
  7697. lt_prog_compiler_static='$wl-static'
  7698. ;;
  7699. esac
  7700. ;;
  7701. hpux9* | hpux10* | hpux11*)
  7702. lt_prog_compiler_wl='-Wl,'
  7703. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7704. # not for PA HP-UX.
  7705. case $host_cpu in
  7706. hppa*64*|ia64*)
  7707. # +Z the default
  7708. ;;
  7709. *)
  7710. lt_prog_compiler_pic='+Z'
  7711. ;;
  7712. esac
  7713. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7714. lt_prog_compiler_static='$wl-a ${wl}archive'
  7715. ;;
  7716. irix5* | irix6* | nonstopux*)
  7717. lt_prog_compiler_wl='-Wl,'
  7718. # PIC (with -KPIC) is the default.
  7719. lt_prog_compiler_static='-non_shared'
  7720. ;;
  7721. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7722. case $cc_basename in
  7723. # old Intel for x86_64, which still supported -KPIC.
  7724. ecc*)
  7725. lt_prog_compiler_wl='-Wl,'
  7726. lt_prog_compiler_pic='-KPIC'
  7727. lt_prog_compiler_static='-static'
  7728. ;;
  7729. # flang / f18. f95 an alias for gfortran or flang on Debian
  7730. flang* | f18* | f95*)
  7731. lt_prog_compiler_wl='-Wl,'
  7732. lt_prog_compiler_pic='-fPIC'
  7733. lt_prog_compiler_static='-static'
  7734. ;;
  7735. # icc used to be incompatible with GCC.
  7736. # ICC 10 doesn't accept -KPIC any more.
  7737. icc* | ifort*)
  7738. lt_prog_compiler_wl='-Wl,'
  7739. lt_prog_compiler_pic='-fPIC'
  7740. lt_prog_compiler_static='-static'
  7741. ;;
  7742. # Lahey Fortran 8.1.
  7743. lf95*)
  7744. lt_prog_compiler_wl='-Wl,'
  7745. lt_prog_compiler_pic='--shared'
  7746. lt_prog_compiler_static='--static'
  7747. ;;
  7748. nagfor*)
  7749. # NAG Fortran compiler
  7750. lt_prog_compiler_wl='-Wl,-Wl,,'
  7751. lt_prog_compiler_pic='-PIC'
  7752. lt_prog_compiler_static='-Bstatic'
  7753. ;;
  7754. tcc*)
  7755. # Fabrice Bellard et al's Tiny C Compiler
  7756. lt_prog_compiler_wl='-Wl,'
  7757. lt_prog_compiler_pic='-fPIC'
  7758. lt_prog_compiler_static='-static'
  7759. ;;
  7760. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7761. # Portland Group compilers (*not* the Pentium gcc compiler,
  7762. # which looks to be a dead project)
  7763. lt_prog_compiler_wl='-Wl,'
  7764. lt_prog_compiler_pic='-fpic'
  7765. lt_prog_compiler_static='-Bstatic'
  7766. ;;
  7767. ccc*)
  7768. lt_prog_compiler_wl='-Wl,'
  7769. # All Alpha code is PIC.
  7770. lt_prog_compiler_static='-non_shared'
  7771. ;;
  7772. xl* | bgxl* | bgf* | mpixl*)
  7773. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7774. lt_prog_compiler_wl='-Wl,'
  7775. lt_prog_compiler_pic='-qpic'
  7776. lt_prog_compiler_static='-qstaticlink'
  7777. ;;
  7778. *)
  7779. case `$CC -V 2>&1 | sed 5q` in
  7780. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7781. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7782. lt_prog_compiler_pic='-KPIC'
  7783. lt_prog_compiler_static='-Bstatic'
  7784. lt_prog_compiler_wl=''
  7785. ;;
  7786. *Sun\ F* | *Sun*Fortran*)
  7787. lt_prog_compiler_pic='-KPIC'
  7788. lt_prog_compiler_static='-Bstatic'
  7789. lt_prog_compiler_wl='-Qoption ld '
  7790. ;;
  7791. *Sun\ C*)
  7792. # Sun C 5.9
  7793. lt_prog_compiler_pic='-KPIC'
  7794. lt_prog_compiler_static='-Bstatic'
  7795. lt_prog_compiler_wl='-Wl,'
  7796. ;;
  7797. *Intel*\ [CF]*Compiler*)
  7798. lt_prog_compiler_wl='-Wl,'
  7799. lt_prog_compiler_pic='-fPIC'
  7800. lt_prog_compiler_static='-static'
  7801. ;;
  7802. *Portland\ Group*)
  7803. lt_prog_compiler_wl='-Wl,'
  7804. lt_prog_compiler_pic='-fpic'
  7805. lt_prog_compiler_static='-Bstatic'
  7806. ;;
  7807. esac
  7808. ;;
  7809. esac
  7810. ;;
  7811. newsos6)
  7812. lt_prog_compiler_pic='-KPIC'
  7813. lt_prog_compiler_static='-Bstatic'
  7814. ;;
  7815. *nto* | *qnx*)
  7816. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7817. # it will coredump.
  7818. lt_prog_compiler_pic='-fPIC -shared'
  7819. ;;
  7820. osf3* | osf4* | osf5*)
  7821. lt_prog_compiler_wl='-Wl,'
  7822. # All OSF/1 code is PIC.
  7823. lt_prog_compiler_static='-non_shared'
  7824. ;;
  7825. rdos*)
  7826. lt_prog_compiler_static='-non_shared'
  7827. ;;
  7828. solaris*)
  7829. lt_prog_compiler_pic='-KPIC'
  7830. lt_prog_compiler_static='-Bstatic'
  7831. case $cc_basename in
  7832. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7833. lt_prog_compiler_wl='-Qoption ld ';;
  7834. *)
  7835. lt_prog_compiler_wl='-Wl,';;
  7836. esac
  7837. ;;
  7838. sunos4*)
  7839. lt_prog_compiler_wl='-Qoption ld '
  7840. lt_prog_compiler_pic='-PIC'
  7841. lt_prog_compiler_static='-Bstatic'
  7842. ;;
  7843. sysv4 | sysv4.2uw2* | sysv4.3*)
  7844. lt_prog_compiler_wl='-Wl,'
  7845. lt_prog_compiler_pic='-KPIC'
  7846. lt_prog_compiler_static='-Bstatic'
  7847. ;;
  7848. sysv4*MP*)
  7849. if test -d /usr/nec; then
  7850. lt_prog_compiler_pic='-Kconform_pic'
  7851. lt_prog_compiler_static='-Bstatic'
  7852. fi
  7853. ;;
  7854. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7855. lt_prog_compiler_wl='-Wl,'
  7856. lt_prog_compiler_pic='-KPIC'
  7857. lt_prog_compiler_static='-Bstatic'
  7858. ;;
  7859. unicos*)
  7860. lt_prog_compiler_wl='-Wl,'
  7861. lt_prog_compiler_can_build_shared=no
  7862. ;;
  7863. uts4*)
  7864. lt_prog_compiler_pic='-pic'
  7865. lt_prog_compiler_static='-Bstatic'
  7866. ;;
  7867. *)
  7868. lt_prog_compiler_can_build_shared=no
  7869. ;;
  7870. esac
  7871. fi
  7872. case $host_os in
  7873. # For platforms that do not support PIC, -DPIC is meaningless:
  7874. *djgpp*)
  7875. lt_prog_compiler_pic=
  7876. ;;
  7877. *)
  7878. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7879. ;;
  7880. esac
  7881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7882. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7883. if ${lt_cv_prog_compiler_pic+:} false; then :
  7884. $as_echo_n "(cached) " >&6
  7885. else
  7886. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7887. fi
  7888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7889. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7890. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7891. #
  7892. # Check to make sure the PIC flag actually works.
  7893. #
  7894. if test -n "$lt_prog_compiler_pic"; then
  7895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7896. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7897. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7898. $as_echo_n "(cached) " >&6
  7899. else
  7900. lt_cv_prog_compiler_pic_works=no
  7901. ac_outfile=conftest.$ac_objext
  7902. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7903. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7904. # Insert the option either (1) after the last *FLAGS variable, or
  7905. # (2) before a word containing "conftest.", or (3) at the end.
  7906. # Note that $ac_compile itself does not contain backslashes and begins
  7907. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7908. # The option is referenced via a variable to avoid confusing sed.
  7909. lt_compile=`echo "$ac_compile" | $SED \
  7910. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7911. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7912. -e 's:$: $lt_compiler_flag:'`
  7913. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7914. (eval "$lt_compile" 2>conftest.err)
  7915. ac_status=$?
  7916. cat conftest.err >&5
  7917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7918. if (exit $ac_status) && test -s "$ac_outfile"; then
  7919. # The compiler can only warn and ignore the option if not recognized
  7920. # So say no if there are warnings other than the usual output.
  7921. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7922. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7923. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7924. lt_cv_prog_compiler_pic_works=yes
  7925. fi
  7926. fi
  7927. $RM conftest*
  7928. fi
  7929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7930. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7931. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7932. case $lt_prog_compiler_pic in
  7933. "" | " "*) ;;
  7934. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7935. esac
  7936. else
  7937. lt_prog_compiler_pic=
  7938. lt_prog_compiler_can_build_shared=no
  7939. fi
  7940. fi
  7941. #
  7942. # Check to make sure the static flag actually works.
  7943. #
  7944. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7946. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7947. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7948. $as_echo_n "(cached) " >&6
  7949. else
  7950. lt_cv_prog_compiler_static_works=no
  7951. save_LDFLAGS=$LDFLAGS
  7952. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7953. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7954. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7955. # The linker can only warn and ignore the option if not recognized
  7956. # So say no if there are warnings
  7957. if test -s conftest.err; then
  7958. # Append any errors to the config.log.
  7959. cat conftest.err 1>&5
  7960. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7961. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7962. if diff conftest.exp conftest.er2 >/dev/null; then
  7963. lt_cv_prog_compiler_static_works=yes
  7964. fi
  7965. else
  7966. lt_cv_prog_compiler_static_works=yes
  7967. fi
  7968. fi
  7969. $RM -r conftest*
  7970. LDFLAGS=$save_LDFLAGS
  7971. fi
  7972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7973. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7974. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7975. :
  7976. else
  7977. lt_prog_compiler_static=
  7978. fi
  7979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7980. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7981. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7982. $as_echo_n "(cached) " >&6
  7983. else
  7984. lt_cv_prog_compiler_c_o=no
  7985. $RM -r conftest 2>/dev/null
  7986. mkdir conftest
  7987. cd conftest
  7988. mkdir out
  7989. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7990. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7991. # Insert the option either (1) after the last *FLAGS variable, or
  7992. # (2) before a word containing "conftest.", or (3) at the end.
  7993. # Note that $ac_compile itself does not contain backslashes and begins
  7994. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7995. lt_compile=`echo "$ac_compile" | $SED \
  7996. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7997. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7998. -e 's:$: $lt_compiler_flag:'`
  7999. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8000. (eval "$lt_compile" 2>out/conftest.err)
  8001. ac_status=$?
  8002. cat out/conftest.err >&5
  8003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8004. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8005. then
  8006. # The compiler can only warn and ignore the option if not recognized
  8007. # So say no if there are warnings
  8008. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8009. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8010. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8011. lt_cv_prog_compiler_c_o=yes
  8012. fi
  8013. fi
  8014. chmod u+w . 2>&5
  8015. $RM conftest*
  8016. # SGI C++ compiler will create directory out/ii_files/ for
  8017. # template instantiation
  8018. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8019. $RM out/* && rmdir out
  8020. cd ..
  8021. $RM -r conftest
  8022. $RM conftest*
  8023. fi
  8024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8025. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8027. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8028. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8029. $as_echo_n "(cached) " >&6
  8030. else
  8031. lt_cv_prog_compiler_c_o=no
  8032. $RM -r conftest 2>/dev/null
  8033. mkdir conftest
  8034. cd conftest
  8035. mkdir out
  8036. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8037. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8038. # Insert the option either (1) after the last *FLAGS variable, or
  8039. # (2) before a word containing "conftest.", or (3) at the end.
  8040. # Note that $ac_compile itself does not contain backslashes and begins
  8041. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8042. lt_compile=`echo "$ac_compile" | $SED \
  8043. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8044. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8045. -e 's:$: $lt_compiler_flag:'`
  8046. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8047. (eval "$lt_compile" 2>out/conftest.err)
  8048. ac_status=$?
  8049. cat out/conftest.err >&5
  8050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8051. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8052. then
  8053. # The compiler can only warn and ignore the option if not recognized
  8054. # So say no if there are warnings
  8055. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8056. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8057. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8058. lt_cv_prog_compiler_c_o=yes
  8059. fi
  8060. fi
  8061. chmod u+w . 2>&5
  8062. $RM conftest*
  8063. # SGI C++ compiler will create directory out/ii_files/ for
  8064. # template instantiation
  8065. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8066. $RM out/* && rmdir out
  8067. cd ..
  8068. $RM -r conftest
  8069. $RM conftest*
  8070. fi
  8071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8072. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8073. hard_links=nottested
  8074. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8075. # do not overwrite the value of need_locks provided by the user
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8077. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8078. hard_links=yes
  8079. $RM conftest*
  8080. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8081. touch conftest.a
  8082. ln conftest.a conftest.b 2>&5 || hard_links=no
  8083. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8085. $as_echo "$hard_links" >&6; }
  8086. if test no = "$hard_links"; then
  8087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8088. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8089. need_locks=warn
  8090. fi
  8091. else
  8092. need_locks=no
  8093. fi
  8094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8095. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8096. runpath_var=
  8097. allow_undefined_flag=
  8098. always_export_symbols=no
  8099. archive_cmds=
  8100. archive_expsym_cmds=
  8101. compiler_needs_object=no
  8102. enable_shared_with_static_runtimes=no
  8103. export_dynamic_flag_spec=
  8104. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8105. hardcode_automatic=no
  8106. hardcode_direct=no
  8107. hardcode_direct_absolute=no
  8108. hardcode_libdir_flag_spec=
  8109. hardcode_libdir_separator=
  8110. hardcode_minus_L=no
  8111. hardcode_shlibpath_var=unsupported
  8112. inherit_rpath=no
  8113. link_all_deplibs=unknown
  8114. module_cmds=
  8115. module_expsym_cmds=
  8116. old_archive_from_new_cmds=
  8117. old_archive_from_expsyms_cmds=
  8118. thread_safe_flag_spec=
  8119. whole_archive_flag_spec=
  8120. # include_expsyms should be a list of space-separated symbols to be *always*
  8121. # included in the symbol list
  8122. include_expsyms=
  8123. # exclude_expsyms can be an extended regexp of symbols to exclude
  8124. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8125. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8126. # as well as any symbol that contains 'd'.
  8127. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8128. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8129. # platforms (ab)use it in PIC code, but their linkers get confused if
  8130. # the symbol is explicitly referenced. Since portable code cannot
  8131. # rely on this symbol name, it's probably fine to never include it in
  8132. # preloaded symbol tables.
  8133. # Exclude shared library initialization/finalization symbols.
  8134. extract_expsyms_cmds=
  8135. case $host_os in
  8136. cygwin* | mingw* | pw32* | cegcc*)
  8137. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8138. # When not using gcc, we currently assume that we are using
  8139. # Microsoft Visual C++.
  8140. if test yes != "$GCC"; then
  8141. with_gnu_ld=no
  8142. fi
  8143. ;;
  8144. interix*)
  8145. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8146. with_gnu_ld=yes
  8147. ;;
  8148. openbsd* | bitrig*)
  8149. with_gnu_ld=no
  8150. ;;
  8151. linux* | k*bsd*-gnu | gnu*)
  8152. link_all_deplibs=no
  8153. ;;
  8154. esac
  8155. ld_shlibs=yes
  8156. # On some targets, GNU ld is compatible enough with the native linker
  8157. # that we're better off using the native interface for both.
  8158. lt_use_gnu_ld_interface=no
  8159. if test yes = "$with_gnu_ld"; then
  8160. case $host_os in
  8161. aix*)
  8162. # The AIX port of GNU ld has always aspired to compatibility
  8163. # with the native linker. However, as the warning in the GNU ld
  8164. # block says, versions before 2.19.5* couldn't really create working
  8165. # shared libraries, regardless of the interface used.
  8166. case `$LD -v 2>&1` in
  8167. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8168. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8169. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8170. *)
  8171. lt_use_gnu_ld_interface=yes
  8172. ;;
  8173. esac
  8174. ;;
  8175. *)
  8176. lt_use_gnu_ld_interface=yes
  8177. ;;
  8178. esac
  8179. fi
  8180. if test yes = "$lt_use_gnu_ld_interface"; then
  8181. # If archive_cmds runs LD, not CC, wlarc should be empty
  8182. wlarc='$wl'
  8183. # Set some defaults for GNU ld with shared library support. These
  8184. # are reset later if shared libraries are not supported. Putting them
  8185. # here allows them to be overridden if necessary.
  8186. runpath_var=LD_RUN_PATH
  8187. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8188. export_dynamic_flag_spec='$wl--export-dynamic'
  8189. # ancient GNU ld didn't support --whole-archive et. al.
  8190. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8191. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8192. else
  8193. whole_archive_flag_spec=
  8194. fi
  8195. supports_anon_versioning=no
  8196. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8197. *GNU\ gold*) supports_anon_versioning=yes ;;
  8198. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8199. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8200. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8201. *\ 2.11.*) ;; # other 2.11 versions
  8202. *) supports_anon_versioning=yes ;;
  8203. esac
  8204. # See if GNU ld supports shared libraries.
  8205. case $host_os in
  8206. aix[3-9]*)
  8207. # On AIX/PPC, the GNU linker is very broken
  8208. if test ia64 != "$host_cpu"; then
  8209. ld_shlibs=no
  8210. cat <<_LT_EOF 1>&2
  8211. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8212. *** to be unable to reliably create shared libraries on AIX.
  8213. *** Therefore, libtool is disabling shared libraries support. If you
  8214. *** really care for shared libraries, you may want to install binutils
  8215. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8216. *** You will then need to restart the configuration process.
  8217. _LT_EOF
  8218. fi
  8219. ;;
  8220. amigaos*)
  8221. case $host_cpu in
  8222. powerpc)
  8223. # see comment about AmigaOS4 .so support
  8224. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8225. archive_expsym_cmds=''
  8226. ;;
  8227. m68k)
  8228. 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)'
  8229. hardcode_libdir_flag_spec='-L$libdir'
  8230. hardcode_minus_L=yes
  8231. ;;
  8232. esac
  8233. ;;
  8234. beos*)
  8235. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8236. allow_undefined_flag=unsupported
  8237. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8238. # support --undefined. This deserves some investigation. FIXME
  8239. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8240. else
  8241. ld_shlibs=no
  8242. fi
  8243. ;;
  8244. cygwin* | mingw* | pw32* | cegcc*)
  8245. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8246. # as there is no search path for DLLs.
  8247. hardcode_libdir_flag_spec='-L$libdir'
  8248. export_dynamic_flag_spec='$wl--export-all-symbols'
  8249. allow_undefined_flag=unsupported
  8250. always_export_symbols=no
  8251. enable_shared_with_static_runtimes=yes
  8252. 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'
  8253. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8254. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8255. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8256. # If the export-symbols file already is a .def file, use it as
  8257. # is; otherwise, prepend EXPORTS...
  8258. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8259. cp $export_symbols $output_objdir/$soname.def;
  8260. else
  8261. echo EXPORTS > $output_objdir/$soname.def;
  8262. cat $export_symbols >> $output_objdir/$soname.def;
  8263. fi~
  8264. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8265. else
  8266. ld_shlibs=no
  8267. fi
  8268. ;;
  8269. haiku*)
  8270. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8271. link_all_deplibs=yes
  8272. ;;
  8273. os2*)
  8274. hardcode_libdir_flag_spec='-L$libdir'
  8275. hardcode_minus_L=yes
  8276. allow_undefined_flag=unsupported
  8277. shrext_cmds=.dll
  8278. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8279. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8280. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8281. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8282. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8283. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8284. emximp -o $lib $output_objdir/$libname.def'
  8285. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8286. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8287. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8288. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8289. prefix_cmds="$SED"~
  8290. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8291. prefix_cmds="$prefix_cmds -e 1d";
  8292. fi~
  8293. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8294. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8295. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8296. emximp -o $lib $output_objdir/$libname.def'
  8297. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8298. enable_shared_with_static_runtimes=yes
  8299. ;;
  8300. interix[3-9]*)
  8301. hardcode_direct=no
  8302. hardcode_shlibpath_var=no
  8303. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8304. export_dynamic_flag_spec='$wl-E'
  8305. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8306. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8307. # default) and relocated if they conflict, which is a slow very memory
  8308. # consuming and fragmenting process. To avoid this, we pick a random,
  8309. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8310. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8311. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8312. 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'
  8313. ;;
  8314. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8315. tmp_diet=no
  8316. if test linux-dietlibc = "$host_os"; then
  8317. case $cc_basename in
  8318. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8319. esac
  8320. fi
  8321. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8322. && test no = "$tmp_diet"
  8323. then
  8324. tmp_addflag=' $pic_flag'
  8325. tmp_sharedflag='-shared'
  8326. case $cc_basename,$host_cpu in
  8327. pgcc*) # Portland Group C compiler
  8328. 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'
  8329. tmp_addflag=' $pic_flag'
  8330. ;;
  8331. pgf77* | pgf90* | pgf95* | pgfortran*)
  8332. # Portland Group f77 and f90 compilers
  8333. 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'
  8334. tmp_addflag=' $pic_flag -Mnomain' ;;
  8335. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8336. tmp_addflag=' -i_dynamic' ;;
  8337. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8338. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8339. ifc* | ifort*) # Intel Fortran compiler
  8340. tmp_addflag=' -nofor_main' ;;
  8341. lf95*) # Lahey Fortran 8.1
  8342. whole_archive_flag_spec=
  8343. tmp_sharedflag='--shared' ;;
  8344. nagfor*) # NAGFOR 5.3
  8345. tmp_sharedflag='-Wl,-shared' ;;
  8346. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8347. tmp_sharedflag='-qmkshrobj'
  8348. tmp_addflag= ;;
  8349. nvcc*) # Cuda Compiler Driver 2.2
  8350. 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'
  8351. compiler_needs_object=yes
  8352. ;;
  8353. esac
  8354. case `$CC -V 2>&1 | sed 5q` in
  8355. *Sun\ C*) # Sun C 5.9
  8356. 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'
  8357. compiler_needs_object=yes
  8358. tmp_sharedflag='-G' ;;
  8359. *Sun\ F*) # Sun Fortran 8.3
  8360. tmp_sharedflag='-G' ;;
  8361. esac
  8362. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8363. if test yes = "$supports_anon_versioning"; then
  8364. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8365. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8366. echo "local: *; };" >> $output_objdir/$libname.ver~
  8367. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8368. fi
  8369. case $cc_basename in
  8370. tcc*)
  8371. export_dynamic_flag_spec='-rdynamic'
  8372. ;;
  8373. xlf* | bgf* | bgxlf* | mpixlf*)
  8374. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8375. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8376. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8377. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8378. if test yes = "$supports_anon_versioning"; then
  8379. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8380. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8381. echo "local: *; };" >> $output_objdir/$libname.ver~
  8382. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8383. fi
  8384. ;;
  8385. esac
  8386. else
  8387. ld_shlibs=no
  8388. fi
  8389. ;;
  8390. netbsd* | netbsdelf*-gnu)
  8391. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8392. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8393. wlarc=
  8394. else
  8395. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8396. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8397. fi
  8398. ;;
  8399. solaris*)
  8400. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8401. ld_shlibs=no
  8402. cat <<_LT_EOF 1>&2
  8403. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8404. *** create shared libraries on Solaris systems. Therefore, libtool
  8405. *** is disabling shared libraries support. We urge you to upgrade GNU
  8406. *** binutils to release 2.9.1 or newer. Another option is to modify
  8407. *** your PATH or compiler configuration so that the native linker is
  8408. *** used, and then restart.
  8409. _LT_EOF
  8410. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8411. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8412. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8413. else
  8414. ld_shlibs=no
  8415. fi
  8416. ;;
  8417. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8418. case `$LD -v 2>&1` in
  8419. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8420. ld_shlibs=no
  8421. cat <<_LT_EOF 1>&2
  8422. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8423. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8424. *** is disabling shared libraries support. We urge you to upgrade GNU
  8425. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8426. *** your PATH or compiler configuration so that the native linker is
  8427. *** used, and then restart.
  8428. _LT_EOF
  8429. ;;
  8430. *)
  8431. # For security reasons, it is highly recommended that you always
  8432. # use absolute paths for naming shared libraries, and exclude the
  8433. # DT_RUNPATH tag from executables and libraries. But doing so
  8434. # requires that you compile everything twice, which is a pain.
  8435. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8436. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8437. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8438. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8439. else
  8440. ld_shlibs=no
  8441. fi
  8442. ;;
  8443. esac
  8444. ;;
  8445. sunos4*)
  8446. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8447. wlarc=
  8448. hardcode_direct=yes
  8449. hardcode_shlibpath_var=no
  8450. ;;
  8451. *)
  8452. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8453. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8454. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8455. else
  8456. ld_shlibs=no
  8457. fi
  8458. ;;
  8459. esac
  8460. if test no = "$ld_shlibs"; then
  8461. runpath_var=
  8462. hardcode_libdir_flag_spec=
  8463. export_dynamic_flag_spec=
  8464. whole_archive_flag_spec=
  8465. fi
  8466. else
  8467. # PORTME fill in a description of your system's linker (not GNU ld)
  8468. case $host_os in
  8469. aix3*)
  8470. allow_undefined_flag=unsupported
  8471. always_export_symbols=yes
  8472. 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'
  8473. # Note: this linker hardcodes the directories in LIBPATH if there
  8474. # are no directories specified by -L.
  8475. hardcode_minus_L=yes
  8476. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8477. # Neither direct hardcoding nor static linking is supported with a
  8478. # broken collect2.
  8479. hardcode_direct=unsupported
  8480. fi
  8481. ;;
  8482. aix[4-9]*)
  8483. if test ia64 = "$host_cpu"; then
  8484. # On IA64, the linker does run time linking by default, so we don't
  8485. # have to do anything special.
  8486. aix_use_runtimelinking=no
  8487. exp_sym_flag='-Bexport'
  8488. no_entry_flag=
  8489. else
  8490. # If we're using GNU nm, then we don't want the "-C" option.
  8491. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8492. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8493. # weak defined symbols like other global defined symbols, whereas
  8494. # GNU nm marks them as "W".
  8495. # While the 'weak' keyword is ignored in the Export File, we need
  8496. # it in the Import File for the 'aix-soname' feature, so we have
  8497. # to replace the "-B" option with "-P" for AIX nm.
  8498. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8499. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8500. else
  8501. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8502. fi
  8503. aix_use_runtimelinking=no
  8504. # Test if we are trying to use run time linking or normal
  8505. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8506. # have runtime linking enabled, and use it for executables.
  8507. # For shared libraries, we enable/disable runtime linking
  8508. # depending on the kind of the shared library created -
  8509. # when "with_aix_soname,aix_use_runtimelinking" is:
  8510. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8511. # "aix,yes" lib.so shared, rtl:yes, for executables
  8512. # lib.a static archive
  8513. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8514. # lib.a(lib.so.V) shared, rtl:no, for executables
  8515. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8516. # lib.a(lib.so.V) shared, rtl:no
  8517. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8518. # lib.a static archive
  8519. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8520. for ld_flag in $LDFLAGS; do
  8521. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8522. aix_use_runtimelinking=yes
  8523. break
  8524. fi
  8525. done
  8526. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8527. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8528. # so we don't have lib.a shared libs to link our executables.
  8529. # We have to force runtime linking in this case.
  8530. aix_use_runtimelinking=yes
  8531. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8532. fi
  8533. ;;
  8534. esac
  8535. exp_sym_flag='-bexport'
  8536. no_entry_flag='-bnoentry'
  8537. fi
  8538. # When large executables or shared objects are built, AIX ld can
  8539. # have problems creating the table of contents. If linking a library
  8540. # or program results in "error TOC overflow" add -mminimal-toc to
  8541. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8542. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8543. archive_cmds=''
  8544. hardcode_direct=yes
  8545. hardcode_direct_absolute=yes
  8546. hardcode_libdir_separator=':'
  8547. link_all_deplibs=yes
  8548. file_list_spec='$wl-f,'
  8549. case $with_aix_soname,$aix_use_runtimelinking in
  8550. aix,*) ;; # traditional, no import file
  8551. svr4,* | *,yes) # use import file
  8552. # The Import File defines what to hardcode.
  8553. hardcode_direct=no
  8554. hardcode_direct_absolute=no
  8555. ;;
  8556. esac
  8557. if test yes = "$GCC"; then
  8558. case $host_os in aix4.[012]|aix4.[012].*)
  8559. # We only want to do this on AIX 4.2 and lower, the check
  8560. # below for broken collect2 doesn't work under 4.3+
  8561. collect2name=`$CC -print-prog-name=collect2`
  8562. if test -f "$collect2name" &&
  8563. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8564. then
  8565. # We have reworked collect2
  8566. :
  8567. else
  8568. # We have old collect2
  8569. hardcode_direct=unsupported
  8570. # It fails to find uninstalled libraries when the uninstalled
  8571. # path is not listed in the libpath. Setting hardcode_minus_L
  8572. # to unsupported forces relinking
  8573. hardcode_minus_L=yes
  8574. hardcode_libdir_flag_spec='-L$libdir'
  8575. hardcode_libdir_separator=
  8576. fi
  8577. ;;
  8578. esac
  8579. shared_flag='-shared'
  8580. if test yes = "$aix_use_runtimelinking"; then
  8581. shared_flag="$shared_flag "'$wl-G'
  8582. fi
  8583. # Need to ensure runtime linking is disabled for the traditional
  8584. # shared library, or the linker may eventually find shared libraries
  8585. # /with/ Import File - we do not want to mix them.
  8586. shared_flag_aix='-shared'
  8587. shared_flag_svr4='-shared $wl-G'
  8588. else
  8589. # not using gcc
  8590. if test ia64 = "$host_cpu"; then
  8591. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8592. # chokes on -Wl,-G. The following line is correct:
  8593. shared_flag='-G'
  8594. else
  8595. if test yes = "$aix_use_runtimelinking"; then
  8596. shared_flag='$wl-G'
  8597. else
  8598. shared_flag='$wl-bM:SRE'
  8599. fi
  8600. shared_flag_aix='$wl-bM:SRE'
  8601. shared_flag_svr4='$wl-G'
  8602. fi
  8603. fi
  8604. export_dynamic_flag_spec='$wl-bexpall'
  8605. # It seems that -bexpall does not export symbols beginning with
  8606. # underscore (_), so it is better to generate a list of symbols to export.
  8607. always_export_symbols=yes
  8608. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8609. # Warning - without using the other runtime loading flags (-brtl),
  8610. # -berok will link without error, but may produce a broken library.
  8611. allow_undefined_flag='-berok'
  8612. # Determine the default libpath from the value encoded in an
  8613. # empty executable.
  8614. if test set = "${lt_cv_aix_libpath+set}"; then
  8615. aix_libpath=$lt_cv_aix_libpath
  8616. else
  8617. if ${lt_cv_aix_libpath_+:} false; then :
  8618. $as_echo_n "(cached) " >&6
  8619. else
  8620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8621. /* end confdefs.h. */
  8622. int
  8623. main ()
  8624. {
  8625. ;
  8626. return 0;
  8627. }
  8628. _ACEOF
  8629. if ac_fn_c_try_link "$LINENO"; then :
  8630. lt_aix_libpath_sed='
  8631. /Import File Strings/,/^$/ {
  8632. /^0/ {
  8633. s/^0 *\([^ ]*\) *$/\1/
  8634. p
  8635. }
  8636. }'
  8637. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8638. # Check for a 64-bit object if we didn't find anything.
  8639. if test -z "$lt_cv_aix_libpath_"; then
  8640. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8641. fi
  8642. fi
  8643. rm -f core conftest.err conftest.$ac_objext \
  8644. conftest$ac_exeext conftest.$ac_ext
  8645. if test -z "$lt_cv_aix_libpath_"; then
  8646. lt_cv_aix_libpath_=/usr/lib:/lib
  8647. fi
  8648. fi
  8649. aix_libpath=$lt_cv_aix_libpath_
  8650. fi
  8651. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8652. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8653. else
  8654. if test ia64 = "$host_cpu"; then
  8655. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8656. allow_undefined_flag="-z nodefs"
  8657. 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"
  8658. else
  8659. # Determine the default libpath from the value encoded in an
  8660. # empty executable.
  8661. if test set = "${lt_cv_aix_libpath+set}"; then
  8662. aix_libpath=$lt_cv_aix_libpath
  8663. else
  8664. if ${lt_cv_aix_libpath_+:} false; then :
  8665. $as_echo_n "(cached) " >&6
  8666. else
  8667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8668. /* end confdefs.h. */
  8669. int
  8670. main ()
  8671. {
  8672. ;
  8673. return 0;
  8674. }
  8675. _ACEOF
  8676. if ac_fn_c_try_link "$LINENO"; then :
  8677. lt_aix_libpath_sed='
  8678. /Import File Strings/,/^$/ {
  8679. /^0/ {
  8680. s/^0 *\([^ ]*\) *$/\1/
  8681. p
  8682. }
  8683. }'
  8684. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8685. # Check for a 64-bit object if we didn't find anything.
  8686. if test -z "$lt_cv_aix_libpath_"; then
  8687. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8688. fi
  8689. fi
  8690. rm -f core conftest.err conftest.$ac_objext \
  8691. conftest$ac_exeext conftest.$ac_ext
  8692. if test -z "$lt_cv_aix_libpath_"; then
  8693. lt_cv_aix_libpath_=/usr/lib:/lib
  8694. fi
  8695. fi
  8696. aix_libpath=$lt_cv_aix_libpath_
  8697. fi
  8698. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8699. # Warning - without using the other run time loading flags,
  8700. # -berok will link without error, but may produce a broken library.
  8701. no_undefined_flag=' $wl-bernotok'
  8702. allow_undefined_flag=' $wl-berok'
  8703. if test yes = "$with_gnu_ld"; then
  8704. # We only use this code for GNU lds that support --whole-archive.
  8705. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8706. else
  8707. # Exported symbols can be pulled into shared objects from archives
  8708. whole_archive_flag_spec='$convenience'
  8709. fi
  8710. archive_cmds_need_lc=yes
  8711. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8712. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8713. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8714. if test svr4 != "$with_aix_soname"; then
  8715. # This is similar to how AIX traditionally builds its shared libraries.
  8716. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8717. fi
  8718. if test aix != "$with_aix_soname"; then
  8719. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8720. else
  8721. # used by -dlpreopen to get the symbols
  8722. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8723. fi
  8724. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8725. fi
  8726. fi
  8727. ;;
  8728. amigaos*)
  8729. case $host_cpu in
  8730. powerpc)
  8731. # see comment about AmigaOS4 .so support
  8732. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8733. archive_expsym_cmds=''
  8734. ;;
  8735. m68k)
  8736. 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)'
  8737. hardcode_libdir_flag_spec='-L$libdir'
  8738. hardcode_minus_L=yes
  8739. ;;
  8740. esac
  8741. ;;
  8742. bsdi[45]*)
  8743. export_dynamic_flag_spec=-rdynamic
  8744. ;;
  8745. cygwin* | mingw* | pw32* | cegcc*)
  8746. # When not using gcc, we currently assume that we are using
  8747. # Microsoft Visual C++.
  8748. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8749. # no search path for DLLs.
  8750. case $cc_basename in
  8751. cl*)
  8752. # Native MSVC
  8753. hardcode_libdir_flag_spec=' '
  8754. allow_undefined_flag=unsupported
  8755. always_export_symbols=yes
  8756. file_list_spec='@'
  8757. # Tell ltmain to make .lib files, not .a files.
  8758. libext=lib
  8759. # Tell ltmain to make .dll files, not .so files.
  8760. shrext_cmds=.dll
  8761. # FIXME: Setting linknames here is a bad hack.
  8762. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8763. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8764. cp "$export_symbols" "$output_objdir/$soname.def";
  8765. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8766. else
  8767. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8768. fi~
  8769. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8770. linknames='
  8771. # The linker will not automatically build a static lib if we build a DLL.
  8772. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8773. enable_shared_with_static_runtimes=yes
  8774. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8775. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8776. # Don't use ranlib
  8777. old_postinstall_cmds='chmod 644 $oldlib'
  8778. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8779. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8780. case $lt_outputfile in
  8781. *.exe|*.EXE) ;;
  8782. *)
  8783. lt_outputfile=$lt_outputfile.exe
  8784. lt_tool_outputfile=$lt_tool_outputfile.exe
  8785. ;;
  8786. esac~
  8787. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8788. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8789. $RM "$lt_outputfile.manifest";
  8790. fi'
  8791. ;;
  8792. *)
  8793. # Assume MSVC wrapper
  8794. hardcode_libdir_flag_spec=' '
  8795. allow_undefined_flag=unsupported
  8796. # Tell ltmain to make .lib files, not .a files.
  8797. libext=lib
  8798. # Tell ltmain to make .dll files, not .so files.
  8799. shrext_cmds=.dll
  8800. # FIXME: Setting linknames here is a bad hack.
  8801. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8802. # The linker will automatically build a .lib file if we build a DLL.
  8803. old_archive_from_new_cmds='true'
  8804. # FIXME: Should let the user specify the lib program.
  8805. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8806. enable_shared_with_static_runtimes=yes
  8807. ;;
  8808. esac
  8809. ;;
  8810. darwin* | rhapsody*)
  8811. archive_cmds_need_lc=no
  8812. hardcode_direct=no
  8813. hardcode_automatic=yes
  8814. hardcode_shlibpath_var=unsupported
  8815. if test yes = "$lt_cv_ld_force_load"; then
  8816. 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\"`'
  8817. else
  8818. whole_archive_flag_spec=''
  8819. fi
  8820. link_all_deplibs=yes
  8821. allow_undefined_flag=$_lt_dar_allow_undefined
  8822. case $cc_basename in
  8823. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8824. *) _lt_dar_can_shared=$GCC ;;
  8825. esac
  8826. if test yes = "$_lt_dar_can_shared"; then
  8827. output_verbose_link_cmd=func_echo_all
  8828. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8829. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8830. 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"
  8831. 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"
  8832. else
  8833. ld_shlibs=no
  8834. fi
  8835. ;;
  8836. dgux*)
  8837. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8838. hardcode_libdir_flag_spec='-L$libdir'
  8839. hardcode_shlibpath_var=no
  8840. ;;
  8841. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8842. # support. Future versions do this automatically, but an explicit c++rt0.o
  8843. # does not break anything, and helps significantly (at the cost of a little
  8844. # extra space).
  8845. freebsd2.2*)
  8846. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8847. hardcode_libdir_flag_spec='-R$libdir'
  8848. hardcode_direct=yes
  8849. hardcode_shlibpath_var=no
  8850. ;;
  8851. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8852. freebsd2.*)
  8853. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8854. hardcode_direct=yes
  8855. hardcode_minus_L=yes
  8856. hardcode_shlibpath_var=no
  8857. ;;
  8858. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8859. freebsd* | dragonfly*)
  8860. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8861. hardcode_libdir_flag_spec='-R$libdir'
  8862. hardcode_direct=yes
  8863. hardcode_shlibpath_var=no
  8864. ;;
  8865. hpux9*)
  8866. if test yes = "$GCC"; then
  8867. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8868. else
  8869. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8870. fi
  8871. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8872. hardcode_libdir_separator=:
  8873. hardcode_direct=yes
  8874. # hardcode_minus_L: Not really in the search PATH,
  8875. # but as the default location of the library.
  8876. hardcode_minus_L=yes
  8877. export_dynamic_flag_spec='$wl-E'
  8878. ;;
  8879. hpux10*)
  8880. if test yes,no = "$GCC,$with_gnu_ld"; then
  8881. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8882. else
  8883. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8884. fi
  8885. if test no = "$with_gnu_ld"; then
  8886. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8887. hardcode_libdir_separator=:
  8888. hardcode_direct=yes
  8889. hardcode_direct_absolute=yes
  8890. export_dynamic_flag_spec='$wl-E'
  8891. # hardcode_minus_L: Not really in the search PATH,
  8892. # but as the default location of the library.
  8893. hardcode_minus_L=yes
  8894. fi
  8895. ;;
  8896. hpux11*)
  8897. if test yes,no = "$GCC,$with_gnu_ld"; then
  8898. case $host_cpu in
  8899. hppa*64*)
  8900. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8901. ;;
  8902. ia64*)
  8903. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8904. ;;
  8905. *)
  8906. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8907. ;;
  8908. esac
  8909. else
  8910. case $host_cpu in
  8911. hppa*64*)
  8912. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8913. ;;
  8914. ia64*)
  8915. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8916. ;;
  8917. *)
  8918. # Older versions of the 11.00 compiler do not understand -b yet
  8919. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8921. $as_echo_n "checking if $CC understands -b... " >&6; }
  8922. if ${lt_cv_prog_compiler__b+:} false; then :
  8923. $as_echo_n "(cached) " >&6
  8924. else
  8925. lt_cv_prog_compiler__b=no
  8926. save_LDFLAGS=$LDFLAGS
  8927. LDFLAGS="$LDFLAGS -b"
  8928. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8929. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8930. # The linker can only warn and ignore the option if not recognized
  8931. # So say no if there are warnings
  8932. if test -s conftest.err; then
  8933. # Append any errors to the config.log.
  8934. cat conftest.err 1>&5
  8935. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8936. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8937. if diff conftest.exp conftest.er2 >/dev/null; then
  8938. lt_cv_prog_compiler__b=yes
  8939. fi
  8940. else
  8941. lt_cv_prog_compiler__b=yes
  8942. fi
  8943. fi
  8944. $RM -r conftest*
  8945. LDFLAGS=$save_LDFLAGS
  8946. fi
  8947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8948. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8949. if test yes = "$lt_cv_prog_compiler__b"; then
  8950. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8951. else
  8952. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8953. fi
  8954. ;;
  8955. esac
  8956. fi
  8957. if test no = "$with_gnu_ld"; then
  8958. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8959. hardcode_libdir_separator=:
  8960. case $host_cpu in
  8961. hppa*64*|ia64*)
  8962. hardcode_direct=no
  8963. hardcode_shlibpath_var=no
  8964. ;;
  8965. *)
  8966. hardcode_direct=yes
  8967. hardcode_direct_absolute=yes
  8968. export_dynamic_flag_spec='$wl-E'
  8969. # hardcode_minus_L: Not really in the search PATH,
  8970. # but as the default location of the library.
  8971. hardcode_minus_L=yes
  8972. ;;
  8973. esac
  8974. fi
  8975. ;;
  8976. irix5* | irix6* | nonstopux*)
  8977. if test yes = "$GCC"; then
  8978. 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'
  8979. # Try to use the -exported_symbol ld option, if it does not
  8980. # work, assume that -exports_file does not work either and
  8981. # implicitly export all symbols.
  8982. # This should be the same for all languages, so no per-tag cache variable.
  8983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8984. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8985. if ${lt_cv_irix_exported_symbol+:} false; then :
  8986. $as_echo_n "(cached) " >&6
  8987. else
  8988. save_LDFLAGS=$LDFLAGS
  8989. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8991. /* end confdefs.h. */
  8992. int foo (void) { return 0; }
  8993. _ACEOF
  8994. if ac_fn_c_try_link "$LINENO"; then :
  8995. lt_cv_irix_exported_symbol=yes
  8996. else
  8997. lt_cv_irix_exported_symbol=no
  8998. fi
  8999. rm -f core conftest.err conftest.$ac_objext \
  9000. conftest$ac_exeext conftest.$ac_ext
  9001. LDFLAGS=$save_LDFLAGS
  9002. fi
  9003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9004. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9005. if test yes = "$lt_cv_irix_exported_symbol"; then
  9006. 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'
  9007. fi
  9008. link_all_deplibs=no
  9009. else
  9010. 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'
  9011. 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'
  9012. fi
  9013. archive_cmds_need_lc='no'
  9014. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9015. hardcode_libdir_separator=:
  9016. inherit_rpath=yes
  9017. link_all_deplibs=yes
  9018. ;;
  9019. linux*)
  9020. case $cc_basename in
  9021. tcc*)
  9022. # Fabrice Bellard et al's Tiny C Compiler
  9023. ld_shlibs=yes
  9024. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9025. ;;
  9026. esac
  9027. ;;
  9028. netbsd* | netbsdelf*-gnu)
  9029. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9030. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9031. else
  9032. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9033. fi
  9034. hardcode_libdir_flag_spec='-R$libdir'
  9035. hardcode_direct=yes
  9036. hardcode_shlibpath_var=no
  9037. ;;
  9038. newsos6)
  9039. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9040. hardcode_direct=yes
  9041. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9042. hardcode_libdir_separator=:
  9043. hardcode_shlibpath_var=no
  9044. ;;
  9045. *nto* | *qnx*)
  9046. ;;
  9047. openbsd* | bitrig*)
  9048. if test -f /usr/libexec/ld.so; then
  9049. hardcode_direct=yes
  9050. hardcode_shlibpath_var=no
  9051. hardcode_direct_absolute=yes
  9052. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9053. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9054. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9055. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9056. export_dynamic_flag_spec='$wl-E'
  9057. else
  9058. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9059. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9060. fi
  9061. else
  9062. ld_shlibs=no
  9063. fi
  9064. ;;
  9065. os2*)
  9066. hardcode_libdir_flag_spec='-L$libdir'
  9067. hardcode_minus_L=yes
  9068. allow_undefined_flag=unsupported
  9069. shrext_cmds=.dll
  9070. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9071. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9072. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9073. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9074. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9075. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9076. emximp -o $lib $output_objdir/$libname.def'
  9077. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9078. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9079. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9080. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9081. prefix_cmds="$SED"~
  9082. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9083. prefix_cmds="$prefix_cmds -e 1d";
  9084. fi~
  9085. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9086. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9087. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9088. emximp -o $lib $output_objdir/$libname.def'
  9089. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9090. enable_shared_with_static_runtimes=yes
  9091. ;;
  9092. osf3*)
  9093. if test yes = "$GCC"; then
  9094. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9095. 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'
  9096. else
  9097. allow_undefined_flag=' -expect_unresolved \*'
  9098. 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'
  9099. fi
  9100. archive_cmds_need_lc='no'
  9101. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9102. hardcode_libdir_separator=:
  9103. ;;
  9104. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9105. if test yes = "$GCC"; then
  9106. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9107. 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'
  9108. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9109. else
  9110. allow_undefined_flag=' -expect_unresolved \*'
  9111. 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'
  9112. 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~
  9113. $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'
  9114. # Both c and cxx compiler support -rpath directly
  9115. hardcode_libdir_flag_spec='-rpath $libdir'
  9116. fi
  9117. archive_cmds_need_lc='no'
  9118. hardcode_libdir_separator=:
  9119. ;;
  9120. solaris*)
  9121. no_undefined_flag=' -z defs'
  9122. if test yes = "$GCC"; then
  9123. wlarc='$wl'
  9124. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9125. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9126. $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'
  9127. else
  9128. case `$CC -V 2>&1` in
  9129. *"Compilers 5.0"*)
  9130. wlarc=''
  9131. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9132. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9133. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9134. ;;
  9135. *)
  9136. wlarc='$wl'
  9137. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9138. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9139. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9140. ;;
  9141. esac
  9142. fi
  9143. hardcode_libdir_flag_spec='-R$libdir'
  9144. hardcode_shlibpath_var=no
  9145. case $host_os in
  9146. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9147. *)
  9148. # The compiler driver will combine and reorder linker options,
  9149. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9150. # but is careful enough not to reorder.
  9151. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9152. if test yes = "$GCC"; then
  9153. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9154. else
  9155. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9156. fi
  9157. ;;
  9158. esac
  9159. link_all_deplibs=yes
  9160. ;;
  9161. sunos4*)
  9162. if test sequent = "$host_vendor"; then
  9163. # Use $CC to link under sequent, because it throws in some extra .o
  9164. # files that make .init and .fini sections work.
  9165. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9166. else
  9167. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9168. fi
  9169. hardcode_libdir_flag_spec='-L$libdir'
  9170. hardcode_direct=yes
  9171. hardcode_minus_L=yes
  9172. hardcode_shlibpath_var=no
  9173. ;;
  9174. sysv4)
  9175. case $host_vendor in
  9176. sni)
  9177. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9178. hardcode_direct=yes # is this really true???
  9179. ;;
  9180. siemens)
  9181. ## LD is ld it makes a PLAMLIB
  9182. ## CC just makes a GrossModule.
  9183. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9184. reload_cmds='$CC -r -o $output$reload_objs'
  9185. hardcode_direct=no
  9186. ;;
  9187. motorola)
  9188. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9189. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9190. ;;
  9191. esac
  9192. runpath_var='LD_RUN_PATH'
  9193. hardcode_shlibpath_var=no
  9194. ;;
  9195. sysv4.3*)
  9196. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9197. hardcode_shlibpath_var=no
  9198. export_dynamic_flag_spec='-Bexport'
  9199. ;;
  9200. sysv4*MP*)
  9201. if test -d /usr/nec; then
  9202. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9203. hardcode_shlibpath_var=no
  9204. runpath_var=LD_RUN_PATH
  9205. hardcode_runpath_var=yes
  9206. ld_shlibs=yes
  9207. fi
  9208. ;;
  9209. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9210. no_undefined_flag='$wl-z,text'
  9211. archive_cmds_need_lc=no
  9212. hardcode_shlibpath_var=no
  9213. runpath_var='LD_RUN_PATH'
  9214. if test yes = "$GCC"; then
  9215. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9216. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9217. else
  9218. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9219. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9220. fi
  9221. ;;
  9222. sysv5* | sco3.2v5* | sco5v6*)
  9223. # Note: We CANNOT use -z defs as we might desire, because we do not
  9224. # link with -lc, and that would cause any symbols used from libc to
  9225. # always be unresolved, which means just about no library would
  9226. # ever link correctly. If we're not using GNU ld we use -z text
  9227. # though, which does catch some bad symbols but isn't as heavy-handed
  9228. # as -z defs.
  9229. no_undefined_flag='$wl-z,text'
  9230. allow_undefined_flag='$wl-z,nodefs'
  9231. archive_cmds_need_lc=no
  9232. hardcode_shlibpath_var=no
  9233. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9234. hardcode_libdir_separator=':'
  9235. link_all_deplibs=yes
  9236. export_dynamic_flag_spec='$wl-Bexport'
  9237. runpath_var='LD_RUN_PATH'
  9238. if test yes = "$GCC"; then
  9239. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9240. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9241. else
  9242. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9243. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9244. fi
  9245. ;;
  9246. uts4*)
  9247. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9248. hardcode_libdir_flag_spec='-L$libdir'
  9249. hardcode_shlibpath_var=no
  9250. ;;
  9251. *)
  9252. ld_shlibs=no
  9253. ;;
  9254. esac
  9255. if test sni = "$host_vendor"; then
  9256. case $host in
  9257. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9258. export_dynamic_flag_spec='$wl-Blargedynsym'
  9259. ;;
  9260. esac
  9261. fi
  9262. fi
  9263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9264. $as_echo "$ld_shlibs" >&6; }
  9265. test no = "$ld_shlibs" && can_build_shared=no
  9266. with_gnu_ld=$with_gnu_ld
  9267. #
  9268. # Do we need to explicitly link libc?
  9269. #
  9270. case "x$archive_cmds_need_lc" in
  9271. x|xyes)
  9272. # Assume -lc should be added
  9273. archive_cmds_need_lc=yes
  9274. if test yes,yes = "$GCC,$enable_shared"; then
  9275. case $archive_cmds in
  9276. *'~'*)
  9277. # FIXME: we may have to deal with multi-command sequences.
  9278. ;;
  9279. '$CC '*)
  9280. # Test whether the compiler implicitly links with -lc since on some
  9281. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9282. # to ld, don't add -lc before -lgcc.
  9283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9284. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9285. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9286. $as_echo_n "(cached) " >&6
  9287. else
  9288. $RM conftest*
  9289. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9290. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9291. (eval $ac_compile) 2>&5
  9292. ac_status=$?
  9293. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9294. test $ac_status = 0; } 2>conftest.err; then
  9295. soname=conftest
  9296. lib=conftest
  9297. libobjs=conftest.$ac_objext
  9298. deplibs=
  9299. wl=$lt_prog_compiler_wl
  9300. pic_flag=$lt_prog_compiler_pic
  9301. compiler_flags=-v
  9302. linker_flags=-v
  9303. verstring=
  9304. output_objdir=.
  9305. libname=conftest
  9306. lt_save_allow_undefined_flag=$allow_undefined_flag
  9307. allow_undefined_flag=
  9308. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9309. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9310. ac_status=$?
  9311. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9312. test $ac_status = 0; }
  9313. then
  9314. lt_cv_archive_cmds_need_lc=no
  9315. else
  9316. lt_cv_archive_cmds_need_lc=yes
  9317. fi
  9318. allow_undefined_flag=$lt_save_allow_undefined_flag
  9319. else
  9320. cat conftest.err 1>&5
  9321. fi
  9322. $RM conftest*
  9323. fi
  9324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9325. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9326. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9327. ;;
  9328. esac
  9329. fi
  9330. ;;
  9331. esac
  9332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9333. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9334. if test yes = "$GCC"; then
  9335. case $host_os in
  9336. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9337. *) lt_awk_arg='/^libraries:/' ;;
  9338. esac
  9339. case $host_os in
  9340. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9341. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9342. esac
  9343. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9344. case $lt_search_path_spec in
  9345. *\;*)
  9346. # if the path contains ";" then we assume it to be the separator
  9347. # otherwise default to the standard path separator (i.e. ":") - it is
  9348. # assumed that no part of a normal pathname contains ";" but that should
  9349. # okay in the real world where ";" in dirpaths is itself problematic.
  9350. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9351. ;;
  9352. *)
  9353. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9354. ;;
  9355. esac
  9356. # Ok, now we have the path, separated by spaces, we can step through it
  9357. # and add multilib dir if necessary...
  9358. lt_tmp_lt_search_path_spec=
  9359. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9360. # ...but if some path component already ends with the multilib dir we assume
  9361. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9362. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9363. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9364. lt_multi_os_dir=
  9365. ;;
  9366. esac
  9367. for lt_sys_path in $lt_search_path_spec; do
  9368. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9369. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9370. elif test -n "$lt_multi_os_dir"; then
  9371. test -d "$lt_sys_path" && \
  9372. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9373. fi
  9374. done
  9375. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9376. BEGIN {RS = " "; FS = "/|\n";} {
  9377. lt_foo = "";
  9378. lt_count = 0;
  9379. for (lt_i = NF; lt_i > 0; lt_i--) {
  9380. if ($lt_i != "" && $lt_i != ".") {
  9381. if ($lt_i == "..") {
  9382. lt_count++;
  9383. } else {
  9384. if (lt_count == 0) {
  9385. lt_foo = "/" $lt_i lt_foo;
  9386. } else {
  9387. lt_count--;
  9388. }
  9389. }
  9390. }
  9391. }
  9392. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9393. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9394. }'`
  9395. # AWK program above erroneously prepends '/' to C:/dos/paths
  9396. # for these hosts.
  9397. case $host_os in
  9398. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9399. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9400. esac
  9401. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9402. else
  9403. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9404. fi
  9405. library_names_spec=
  9406. libname_spec='lib$name'
  9407. soname_spec=
  9408. shrext_cmds=.so
  9409. postinstall_cmds=
  9410. postuninstall_cmds=
  9411. finish_cmds=
  9412. finish_eval=
  9413. shlibpath_var=
  9414. shlibpath_overrides_runpath=unknown
  9415. version_type=none
  9416. dynamic_linker="$host_os ld.so"
  9417. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9418. need_lib_prefix=unknown
  9419. hardcode_into_libs=no
  9420. # when you set need_version to no, make sure it does not cause -set_version
  9421. # flags to be left without arguments
  9422. need_version=unknown
  9423. case $host_os in
  9424. aix3*)
  9425. version_type=linux # correct to gnu/linux during the next big refactor
  9426. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9427. shlibpath_var=LIBPATH
  9428. # AIX 3 has no versioning support, so we append a major version to the name.
  9429. soname_spec='$libname$release$shared_ext$major'
  9430. ;;
  9431. aix[4-9]*)
  9432. version_type=linux # correct to gnu/linux during the next big refactor
  9433. need_lib_prefix=no
  9434. need_version=no
  9435. hardcode_into_libs=yes
  9436. if test ia64 = "$host_cpu"; then
  9437. # AIX 5 supports IA64
  9438. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9439. shlibpath_var=LD_LIBRARY_PATH
  9440. else
  9441. # With GCC up to 2.95.x, collect2 would create an import file
  9442. # for dependence libraries. The import file would start with
  9443. # the line '#! .'. This would cause the generated library to
  9444. # depend on '.', always an invalid library. This was fixed in
  9445. # development snapshots of GCC prior to 3.0.
  9446. case $host_os in
  9447. aix4 | aix4.[01] | aix4.[01].*)
  9448. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9449. echo ' yes '
  9450. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9451. :
  9452. else
  9453. can_build_shared=no
  9454. fi
  9455. ;;
  9456. esac
  9457. # Using Import Files as archive members, it is possible to support
  9458. # filename-based versioning of shared library archives on AIX. While
  9459. # this would work for both with and without runtime linking, it will
  9460. # prevent static linking of such archives. So we do filename-based
  9461. # shared library versioning with .so extension only, which is used
  9462. # when both runtime linking and shared linking is enabled.
  9463. # Unfortunately, runtime linking may impact performance, so we do
  9464. # not want this to be the default eventually. Also, we use the
  9465. # versioned .so libs for executables only if there is the -brtl
  9466. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9467. # To allow for filename-based versioning support, we need to create
  9468. # libNAME.so.V as an archive file, containing:
  9469. # *) an Import File, referring to the versioned filename of the
  9470. # archive as well as the shared archive member, telling the
  9471. # bitwidth (32 or 64) of that shared object, and providing the
  9472. # list of exported symbols of that shared object, eventually
  9473. # decorated with the 'weak' keyword
  9474. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9475. # it being seen by the linker.
  9476. # At run time we better use the real file rather than another symlink,
  9477. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9478. case $with_aix_soname,$aix_use_runtimelinking in
  9479. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9480. # soname into executable. Probably we can add versioning support to
  9481. # collect2, so additional links can be useful in future.
  9482. aix,yes) # traditional libtool
  9483. dynamic_linker='AIX unversionable lib.so'
  9484. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9485. # instead of lib<name>.a to let people know that these are not
  9486. # typical AIX shared libraries.
  9487. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9488. ;;
  9489. aix,no) # traditional AIX only
  9490. dynamic_linker='AIX lib.a(lib.so.V)'
  9491. # We preserve .a as extension for shared libraries through AIX4.2
  9492. # and later when we are not doing run time linking.
  9493. library_names_spec='$libname$release.a $libname.a'
  9494. soname_spec='$libname$release$shared_ext$major'
  9495. ;;
  9496. svr4,*) # full svr4 only
  9497. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9498. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9499. # We do not specify a path in Import Files, so LIBPATH fires.
  9500. shlibpath_overrides_runpath=yes
  9501. ;;
  9502. *,yes) # both, prefer svr4
  9503. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9504. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9505. # unpreferred sharedlib libNAME.a needs extra handling
  9506. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9507. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9508. # We do not specify a path in Import Files, so LIBPATH fires.
  9509. shlibpath_overrides_runpath=yes
  9510. ;;
  9511. *,no) # both, prefer aix
  9512. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9513. library_names_spec='$libname$release.a $libname.a'
  9514. soname_spec='$libname$release$shared_ext$major'
  9515. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9516. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9517. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9518. ;;
  9519. esac
  9520. shlibpath_var=LIBPATH
  9521. fi
  9522. ;;
  9523. amigaos*)
  9524. case $host_cpu in
  9525. powerpc)
  9526. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9527. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9528. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9529. ;;
  9530. m68k)
  9531. library_names_spec='$libname.ixlibrary $libname.a'
  9532. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9533. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9534. ;;
  9535. esac
  9536. ;;
  9537. beos*)
  9538. library_names_spec='$libname$shared_ext'
  9539. dynamic_linker="$host_os ld.so"
  9540. shlibpath_var=LIBRARY_PATH
  9541. ;;
  9542. bsdi[45]*)
  9543. version_type=linux # correct to gnu/linux during the next big refactor
  9544. need_version=no
  9545. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9546. soname_spec='$libname$release$shared_ext$major'
  9547. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9548. shlibpath_var=LD_LIBRARY_PATH
  9549. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9550. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9551. # the default ld.so.conf also contains /usr/contrib/lib and
  9552. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9553. # libtool to hard-code these into programs
  9554. ;;
  9555. cygwin* | mingw* | pw32* | cegcc*)
  9556. version_type=windows
  9557. shrext_cmds=.dll
  9558. need_version=no
  9559. need_lib_prefix=no
  9560. case $GCC,$cc_basename in
  9561. yes,*)
  9562. # gcc
  9563. library_names_spec='$libname.dll.a'
  9564. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9565. postinstall_cmds='base_file=`basename \$file`~
  9566. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9567. dldir=$destdir/`dirname \$dlpath`~
  9568. test -d \$dldir || mkdir -p \$dldir~
  9569. $install_prog $dir/$dlname \$dldir/$dlname~
  9570. chmod a+x \$dldir/$dlname~
  9571. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9572. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9573. fi'
  9574. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9575. dlpath=$dir/\$dldll~
  9576. $RM \$dlpath'
  9577. shlibpath_overrides_runpath=yes
  9578. case $host_os in
  9579. cygwin*)
  9580. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9581. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9582. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9583. ;;
  9584. mingw* | cegcc*)
  9585. # MinGW DLLs use traditional 'lib' prefix
  9586. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9587. ;;
  9588. pw32*)
  9589. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9590. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9591. ;;
  9592. esac
  9593. dynamic_linker='Win32 ld.exe'
  9594. ;;
  9595. *,cl*)
  9596. # Native MSVC
  9597. libname_spec='$name'
  9598. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9599. library_names_spec='$libname.dll.lib'
  9600. case $build_os in
  9601. mingw*)
  9602. sys_lib_search_path_spec=
  9603. lt_save_ifs=$IFS
  9604. IFS=';'
  9605. for lt_path in $LIB
  9606. do
  9607. IFS=$lt_save_ifs
  9608. # Let DOS variable expansion print the short 8.3 style file name.
  9609. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9610. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9611. done
  9612. IFS=$lt_save_ifs
  9613. # Convert to MSYS style.
  9614. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9615. ;;
  9616. cygwin*)
  9617. # Convert to unix form, then to dos form, then back to unix form
  9618. # but this time dos style (no spaces!) so that the unix form looks
  9619. # like /cygdrive/c/PROGRA~1:/cygdr...
  9620. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9621. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9622. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9623. ;;
  9624. *)
  9625. sys_lib_search_path_spec=$LIB
  9626. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9627. # It is most probably a Windows format PATH.
  9628. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9629. else
  9630. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9631. fi
  9632. # FIXME: find the short name or the path components, as spaces are
  9633. # common. (e.g. "Program Files" -> "PROGRA~1")
  9634. ;;
  9635. esac
  9636. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9637. postinstall_cmds='base_file=`basename \$file`~
  9638. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9639. dldir=$destdir/`dirname \$dlpath`~
  9640. test -d \$dldir || mkdir -p \$dldir~
  9641. $install_prog $dir/$dlname \$dldir/$dlname'
  9642. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9643. dlpath=$dir/\$dldll~
  9644. $RM \$dlpath'
  9645. shlibpath_overrides_runpath=yes
  9646. dynamic_linker='Win32 link.exe'
  9647. ;;
  9648. *)
  9649. # Assume MSVC wrapper
  9650. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9651. dynamic_linker='Win32 ld.exe'
  9652. ;;
  9653. esac
  9654. # FIXME: first we should search . and the directory the executable is in
  9655. shlibpath_var=PATH
  9656. ;;
  9657. darwin* | rhapsody*)
  9658. dynamic_linker="$host_os dyld"
  9659. version_type=darwin
  9660. need_lib_prefix=no
  9661. need_version=no
  9662. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9663. soname_spec='$libname$release$major$shared_ext'
  9664. shlibpath_overrides_runpath=yes
  9665. shlibpath_var=DYLD_LIBRARY_PATH
  9666. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9667. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9668. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9669. ;;
  9670. dgux*)
  9671. version_type=linux # correct to gnu/linux during the next big refactor
  9672. need_lib_prefix=no
  9673. need_version=no
  9674. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9675. soname_spec='$libname$release$shared_ext$major'
  9676. shlibpath_var=LD_LIBRARY_PATH
  9677. ;;
  9678. freebsd* | dragonfly*)
  9679. # DragonFly does not have aout. When/if they implement a new
  9680. # versioning mechanism, adjust this.
  9681. if test -x /usr/bin/objformat; then
  9682. objformat=`/usr/bin/objformat`
  9683. else
  9684. case $host_os in
  9685. freebsd[23].*) objformat=aout ;;
  9686. *) objformat=elf ;;
  9687. esac
  9688. fi
  9689. version_type=freebsd-$objformat
  9690. case $version_type in
  9691. freebsd-elf*)
  9692. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9693. soname_spec='$libname$release$shared_ext$major'
  9694. need_version=no
  9695. need_lib_prefix=no
  9696. ;;
  9697. freebsd-*)
  9698. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9699. need_version=yes
  9700. ;;
  9701. esac
  9702. shlibpath_var=LD_LIBRARY_PATH
  9703. case $host_os in
  9704. freebsd2.*)
  9705. shlibpath_overrides_runpath=yes
  9706. ;;
  9707. freebsd3.[01]* | freebsdelf3.[01]*)
  9708. shlibpath_overrides_runpath=yes
  9709. hardcode_into_libs=yes
  9710. ;;
  9711. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9712. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9713. shlibpath_overrides_runpath=no
  9714. hardcode_into_libs=yes
  9715. ;;
  9716. *) # from 4.6 on, and DragonFly
  9717. shlibpath_overrides_runpath=yes
  9718. hardcode_into_libs=yes
  9719. ;;
  9720. esac
  9721. ;;
  9722. haiku*)
  9723. version_type=linux # correct to gnu/linux during the next big refactor
  9724. need_lib_prefix=no
  9725. need_version=no
  9726. dynamic_linker="$host_os runtime_loader"
  9727. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9728. soname_spec='$libname$release$shared_ext$major'
  9729. shlibpath_var=LIBRARY_PATH
  9730. shlibpath_overrides_runpath=no
  9731. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9732. hardcode_into_libs=yes
  9733. ;;
  9734. hpux9* | hpux10* | hpux11*)
  9735. # Give a soname corresponding to the major version so that dld.sl refuses to
  9736. # link against other versions.
  9737. version_type=sunos
  9738. need_lib_prefix=no
  9739. need_version=no
  9740. case $host_cpu in
  9741. ia64*)
  9742. shrext_cmds='.so'
  9743. hardcode_into_libs=yes
  9744. dynamic_linker="$host_os dld.so"
  9745. shlibpath_var=LD_LIBRARY_PATH
  9746. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9747. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9748. soname_spec='$libname$release$shared_ext$major'
  9749. if test 32 = "$HPUX_IA64_MODE"; then
  9750. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9751. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9752. else
  9753. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9754. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9755. fi
  9756. ;;
  9757. hppa*64*)
  9758. shrext_cmds='.sl'
  9759. hardcode_into_libs=yes
  9760. dynamic_linker="$host_os dld.sl"
  9761. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9762. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9763. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9764. soname_spec='$libname$release$shared_ext$major'
  9765. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9766. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9767. ;;
  9768. *)
  9769. shrext_cmds='.sl'
  9770. dynamic_linker="$host_os dld.sl"
  9771. shlibpath_var=SHLIB_PATH
  9772. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9773. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9774. soname_spec='$libname$release$shared_ext$major'
  9775. ;;
  9776. esac
  9777. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9778. postinstall_cmds='chmod 555 $lib'
  9779. # or fails outright, so override atomically:
  9780. install_override_mode=555
  9781. ;;
  9782. interix[3-9]*)
  9783. version_type=linux # correct to gnu/linux during the next big refactor
  9784. need_lib_prefix=no
  9785. need_version=no
  9786. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9787. soname_spec='$libname$release$shared_ext$major'
  9788. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9789. shlibpath_var=LD_LIBRARY_PATH
  9790. shlibpath_overrides_runpath=no
  9791. hardcode_into_libs=yes
  9792. ;;
  9793. irix5* | irix6* | nonstopux*)
  9794. case $host_os in
  9795. nonstopux*) version_type=nonstopux ;;
  9796. *)
  9797. if test yes = "$lt_cv_prog_gnu_ld"; then
  9798. version_type=linux # correct to gnu/linux during the next big refactor
  9799. else
  9800. version_type=irix
  9801. fi ;;
  9802. esac
  9803. need_lib_prefix=no
  9804. need_version=no
  9805. soname_spec='$libname$release$shared_ext$major'
  9806. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9807. case $host_os in
  9808. irix5* | nonstopux*)
  9809. libsuff= shlibsuff=
  9810. ;;
  9811. *)
  9812. case $LD in # libtool.m4 will add one of these switches to LD
  9813. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9814. libsuff= shlibsuff= libmagic=32-bit;;
  9815. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9816. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9817. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9818. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9819. *) libsuff= shlibsuff= libmagic=never-match;;
  9820. esac
  9821. ;;
  9822. esac
  9823. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9824. shlibpath_overrides_runpath=no
  9825. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9826. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9827. hardcode_into_libs=yes
  9828. ;;
  9829. # No shared lib support for Linux oldld, aout, or coff.
  9830. linux*oldld* | linux*aout* | linux*coff*)
  9831. dynamic_linker=no
  9832. ;;
  9833. linux*android*)
  9834. version_type=none # Android doesn't support versioned libraries.
  9835. need_lib_prefix=no
  9836. need_version=no
  9837. library_names_spec='$libname$release$shared_ext'
  9838. soname_spec='$libname$release$shared_ext'
  9839. finish_cmds=
  9840. shlibpath_var=LD_LIBRARY_PATH
  9841. shlibpath_overrides_runpath=yes
  9842. # This implies no fast_install, which is unacceptable.
  9843. # Some rework will be needed to allow for fast_install
  9844. # before this can be enabled.
  9845. hardcode_into_libs=yes
  9846. dynamic_linker='Android linker'
  9847. # Don't embed -rpath directories since the linker doesn't support them.
  9848. hardcode_libdir_flag_spec='-L$libdir'
  9849. ;;
  9850. # This must be glibc/ELF.
  9851. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9852. version_type=linux # correct to gnu/linux during the next big refactor
  9853. need_lib_prefix=no
  9854. need_version=no
  9855. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9856. soname_spec='$libname$release$shared_ext$major'
  9857. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9858. shlibpath_var=LD_LIBRARY_PATH
  9859. shlibpath_overrides_runpath=no
  9860. # Some binutils ld are patched to set DT_RUNPATH
  9861. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9862. $as_echo_n "(cached) " >&6
  9863. else
  9864. lt_cv_shlibpath_overrides_runpath=no
  9865. save_LDFLAGS=$LDFLAGS
  9866. save_libdir=$libdir
  9867. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9868. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9870. /* end confdefs.h. */
  9871. int
  9872. main ()
  9873. {
  9874. ;
  9875. return 0;
  9876. }
  9877. _ACEOF
  9878. if ac_fn_c_try_link "$LINENO"; then :
  9879. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9880. lt_cv_shlibpath_overrides_runpath=yes
  9881. fi
  9882. fi
  9883. rm -f core conftest.err conftest.$ac_objext \
  9884. conftest$ac_exeext conftest.$ac_ext
  9885. LDFLAGS=$save_LDFLAGS
  9886. libdir=$save_libdir
  9887. fi
  9888. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9889. # This implies no fast_install, which is unacceptable.
  9890. # Some rework will be needed to allow for fast_install
  9891. # before this can be enabled.
  9892. hardcode_into_libs=yes
  9893. # Ideally, we could use ldconfig to report *all* directores which are
  9894. # searched for libraries, however this is still not possible. Aside from not
  9895. # being certain /sbin/ldconfig is available, command
  9896. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9897. # even though it is searched at run-time. Try to do the best guess by
  9898. # appending ld.so.conf contents (and includes) to the search path.
  9899. if test -f /etc/ld.so.conf; then
  9900. 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' ' '`
  9901. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9902. fi
  9903. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9904. # powerpc, because MkLinux only supported shared libraries with the
  9905. # GNU dynamic linker. Since this was broken with cross compilers,
  9906. # most powerpc-linux boxes support dynamic linking these days and
  9907. # people can always --disable-shared, the test was removed, and we
  9908. # assume the GNU/Linux dynamic linker is in use.
  9909. dynamic_linker='GNU/Linux ld.so'
  9910. ;;
  9911. netbsdelf*-gnu)
  9912. version_type=linux
  9913. need_lib_prefix=no
  9914. need_version=no
  9915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9916. soname_spec='${libname}${release}${shared_ext}$major'
  9917. shlibpath_var=LD_LIBRARY_PATH
  9918. shlibpath_overrides_runpath=no
  9919. hardcode_into_libs=yes
  9920. dynamic_linker='NetBSD ld.elf_so'
  9921. ;;
  9922. netbsd*)
  9923. version_type=sunos
  9924. need_lib_prefix=no
  9925. need_version=no
  9926. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9927. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9928. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9929. dynamic_linker='NetBSD (a.out) ld.so'
  9930. else
  9931. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9932. soname_spec='$libname$release$shared_ext$major'
  9933. dynamic_linker='NetBSD ld.elf_so'
  9934. fi
  9935. shlibpath_var=LD_LIBRARY_PATH
  9936. shlibpath_overrides_runpath=yes
  9937. hardcode_into_libs=yes
  9938. ;;
  9939. newsos6)
  9940. version_type=linux # correct to gnu/linux during the next big refactor
  9941. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9942. shlibpath_var=LD_LIBRARY_PATH
  9943. shlibpath_overrides_runpath=yes
  9944. ;;
  9945. *nto* | *qnx*)
  9946. version_type=qnx
  9947. need_lib_prefix=no
  9948. need_version=no
  9949. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9950. soname_spec='$libname$release$shared_ext$major'
  9951. shlibpath_var=LD_LIBRARY_PATH
  9952. shlibpath_overrides_runpath=no
  9953. hardcode_into_libs=yes
  9954. dynamic_linker='ldqnx.so'
  9955. ;;
  9956. openbsd* | bitrig*)
  9957. version_type=sunos
  9958. sys_lib_dlsearch_path_spec=/usr/lib
  9959. need_lib_prefix=no
  9960. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9961. need_version=no
  9962. else
  9963. need_version=yes
  9964. fi
  9965. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9966. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9967. shlibpath_var=LD_LIBRARY_PATH
  9968. shlibpath_overrides_runpath=yes
  9969. ;;
  9970. os2*)
  9971. libname_spec='$name'
  9972. version_type=windows
  9973. shrext_cmds=.dll
  9974. need_version=no
  9975. need_lib_prefix=no
  9976. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9977. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9978. v=$($ECHO $release$versuffix | tr -d .-);
  9979. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9980. $ECHO $n$v`$shared_ext'
  9981. library_names_spec='${libname}_dll.$libext'
  9982. dynamic_linker='OS/2 ld.exe'
  9983. shlibpath_var=BEGINLIBPATH
  9984. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9985. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9986. postinstall_cmds='base_file=`basename \$file`~
  9987. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9988. dldir=$destdir/`dirname \$dlpath`~
  9989. test -d \$dldir || mkdir -p \$dldir~
  9990. $install_prog $dir/$dlname \$dldir/$dlname~
  9991. chmod a+x \$dldir/$dlname~
  9992. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9993. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9994. fi'
  9995. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9996. dlpath=$dir/\$dldll~
  9997. $RM \$dlpath'
  9998. ;;
  9999. osf3* | osf4* | osf5*)
  10000. version_type=osf
  10001. need_lib_prefix=no
  10002. need_version=no
  10003. soname_spec='$libname$release$shared_ext$major'
  10004. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10005. shlibpath_var=LD_LIBRARY_PATH
  10006. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10007. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10008. ;;
  10009. rdos*)
  10010. dynamic_linker=no
  10011. ;;
  10012. solaris*)
  10013. version_type=linux # correct to gnu/linux during the next big refactor
  10014. need_lib_prefix=no
  10015. need_version=no
  10016. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10017. soname_spec='$libname$release$shared_ext$major'
  10018. shlibpath_var=LD_LIBRARY_PATH
  10019. shlibpath_overrides_runpath=yes
  10020. hardcode_into_libs=yes
  10021. # ldd complains unless libraries are executable
  10022. postinstall_cmds='chmod +x $lib'
  10023. ;;
  10024. sunos4*)
  10025. version_type=sunos
  10026. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10027. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10028. shlibpath_var=LD_LIBRARY_PATH
  10029. shlibpath_overrides_runpath=yes
  10030. if test yes = "$with_gnu_ld"; then
  10031. need_lib_prefix=no
  10032. fi
  10033. need_version=yes
  10034. ;;
  10035. sysv4 | sysv4.3*)
  10036. version_type=linux # correct to gnu/linux during the next big refactor
  10037. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10038. soname_spec='$libname$release$shared_ext$major'
  10039. shlibpath_var=LD_LIBRARY_PATH
  10040. case $host_vendor in
  10041. sni)
  10042. shlibpath_overrides_runpath=no
  10043. need_lib_prefix=no
  10044. runpath_var=LD_RUN_PATH
  10045. ;;
  10046. siemens)
  10047. need_lib_prefix=no
  10048. ;;
  10049. motorola)
  10050. need_lib_prefix=no
  10051. need_version=no
  10052. shlibpath_overrides_runpath=no
  10053. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10054. ;;
  10055. esac
  10056. ;;
  10057. sysv4*MP*)
  10058. if test -d /usr/nec; then
  10059. version_type=linux # correct to gnu/linux during the next big refactor
  10060. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10061. soname_spec='$libname$shared_ext.$major'
  10062. shlibpath_var=LD_LIBRARY_PATH
  10063. fi
  10064. ;;
  10065. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10066. version_type=sco
  10067. need_lib_prefix=no
  10068. need_version=no
  10069. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10070. soname_spec='$libname$release$shared_ext$major'
  10071. shlibpath_var=LD_LIBRARY_PATH
  10072. shlibpath_overrides_runpath=yes
  10073. hardcode_into_libs=yes
  10074. if test yes = "$with_gnu_ld"; then
  10075. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10076. else
  10077. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10078. case $host_os in
  10079. sco3.2v5*)
  10080. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10081. ;;
  10082. esac
  10083. fi
  10084. sys_lib_dlsearch_path_spec='/usr/lib'
  10085. ;;
  10086. tpf*)
  10087. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10088. version_type=linux # correct to gnu/linux during the next big refactor
  10089. need_lib_prefix=no
  10090. need_version=no
  10091. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10092. shlibpath_var=LD_LIBRARY_PATH
  10093. shlibpath_overrides_runpath=no
  10094. hardcode_into_libs=yes
  10095. ;;
  10096. uts4*)
  10097. version_type=linux # correct to gnu/linux during the next big refactor
  10098. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10099. soname_spec='$libname$release$shared_ext$major'
  10100. shlibpath_var=LD_LIBRARY_PATH
  10101. ;;
  10102. *)
  10103. dynamic_linker=no
  10104. ;;
  10105. esac
  10106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10107. $as_echo "$dynamic_linker" >&6; }
  10108. test no = "$dynamic_linker" && can_build_shared=no
  10109. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10110. if test yes = "$GCC"; then
  10111. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10112. fi
  10113. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10114. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10115. fi
  10116. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10117. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10118. fi
  10119. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10120. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10121. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10122. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10123. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10124. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10126. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10127. hardcode_action=
  10128. if test -n "$hardcode_libdir_flag_spec" ||
  10129. test -n "$runpath_var" ||
  10130. test yes = "$hardcode_automatic"; then
  10131. # We can hardcode non-existent directories.
  10132. if test no != "$hardcode_direct" &&
  10133. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10134. # have to relink, otherwise we might link with an installed library
  10135. # when we should be linking with a yet-to-be-installed one
  10136. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10137. test no != "$hardcode_minus_L"; then
  10138. # Linking always hardcodes the temporary library directory.
  10139. hardcode_action=relink
  10140. else
  10141. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10142. hardcode_action=immediate
  10143. fi
  10144. else
  10145. # We cannot hardcode anything, or else we can only hardcode existing
  10146. # directories.
  10147. hardcode_action=unsupported
  10148. fi
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10150. $as_echo "$hardcode_action" >&6; }
  10151. if test relink = "$hardcode_action" ||
  10152. test yes = "$inherit_rpath"; then
  10153. # Fast installation is not supported
  10154. enable_fast_install=no
  10155. elif test yes = "$shlibpath_overrides_runpath" ||
  10156. test no = "$enable_shared"; then
  10157. # Fast installation is not necessary
  10158. enable_fast_install=needless
  10159. fi
  10160. if test yes != "$enable_dlopen"; then
  10161. enable_dlopen=unknown
  10162. enable_dlopen_self=unknown
  10163. enable_dlopen_self_static=unknown
  10164. else
  10165. lt_cv_dlopen=no
  10166. lt_cv_dlopen_libs=
  10167. case $host_os in
  10168. beos*)
  10169. lt_cv_dlopen=load_add_on
  10170. lt_cv_dlopen_libs=
  10171. lt_cv_dlopen_self=yes
  10172. ;;
  10173. mingw* | pw32* | cegcc*)
  10174. lt_cv_dlopen=LoadLibrary
  10175. lt_cv_dlopen_libs=
  10176. ;;
  10177. cygwin*)
  10178. lt_cv_dlopen=dlopen
  10179. lt_cv_dlopen_libs=
  10180. ;;
  10181. darwin*)
  10182. # if libdl is installed we need to link against it
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10184. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10185. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10186. $as_echo_n "(cached) " >&6
  10187. else
  10188. ac_check_lib_save_LIBS=$LIBS
  10189. LIBS="-ldl $LIBS"
  10190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10191. /* end confdefs.h. */
  10192. /* Override any GCC internal prototype to avoid an error.
  10193. Use char because int might match the return type of a GCC
  10194. builtin and then its argument prototype would still apply. */
  10195. #ifdef __cplusplus
  10196. extern "C"
  10197. #endif
  10198. char dlopen ();
  10199. int
  10200. main ()
  10201. {
  10202. return dlopen ();
  10203. ;
  10204. return 0;
  10205. }
  10206. _ACEOF
  10207. if ac_fn_c_try_link "$LINENO"; then :
  10208. ac_cv_lib_dl_dlopen=yes
  10209. else
  10210. ac_cv_lib_dl_dlopen=no
  10211. fi
  10212. rm -f core conftest.err conftest.$ac_objext \
  10213. conftest$ac_exeext conftest.$ac_ext
  10214. LIBS=$ac_check_lib_save_LIBS
  10215. fi
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10217. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10218. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10219. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10220. else
  10221. lt_cv_dlopen=dyld
  10222. lt_cv_dlopen_libs=
  10223. lt_cv_dlopen_self=yes
  10224. fi
  10225. ;;
  10226. tpf*)
  10227. # Don't try to run any link tests for TPF. We know it's impossible
  10228. # because TPF is a cross-compiler, and we know how we open DSOs.
  10229. lt_cv_dlopen=dlopen
  10230. lt_cv_dlopen_libs=
  10231. lt_cv_dlopen_self=no
  10232. ;;
  10233. *)
  10234. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10235. if test "x$ac_cv_func_shl_load" = xyes; then :
  10236. lt_cv_dlopen=shl_load
  10237. else
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10239. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10240. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10241. $as_echo_n "(cached) " >&6
  10242. else
  10243. ac_check_lib_save_LIBS=$LIBS
  10244. LIBS="-ldld $LIBS"
  10245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10246. /* end confdefs.h. */
  10247. /* Override any GCC internal prototype to avoid an error.
  10248. Use char because int might match the return type of a GCC
  10249. builtin and then its argument prototype would still apply. */
  10250. #ifdef __cplusplus
  10251. extern "C"
  10252. #endif
  10253. char shl_load ();
  10254. int
  10255. main ()
  10256. {
  10257. return shl_load ();
  10258. ;
  10259. return 0;
  10260. }
  10261. _ACEOF
  10262. if ac_fn_c_try_link "$LINENO"; then :
  10263. ac_cv_lib_dld_shl_load=yes
  10264. else
  10265. ac_cv_lib_dld_shl_load=no
  10266. fi
  10267. rm -f core conftest.err conftest.$ac_objext \
  10268. conftest$ac_exeext conftest.$ac_ext
  10269. LIBS=$ac_check_lib_save_LIBS
  10270. fi
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10272. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10273. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10274. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10275. else
  10276. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10277. if test "x$ac_cv_func_dlopen" = xyes; then :
  10278. lt_cv_dlopen=dlopen
  10279. else
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10281. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10282. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10283. $as_echo_n "(cached) " >&6
  10284. else
  10285. ac_check_lib_save_LIBS=$LIBS
  10286. LIBS="-ldl $LIBS"
  10287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10288. /* end confdefs.h. */
  10289. /* Override any GCC internal prototype to avoid an error.
  10290. Use char because int might match the return type of a GCC
  10291. builtin and then its argument prototype would still apply. */
  10292. #ifdef __cplusplus
  10293. extern "C"
  10294. #endif
  10295. char dlopen ();
  10296. int
  10297. main ()
  10298. {
  10299. return dlopen ();
  10300. ;
  10301. return 0;
  10302. }
  10303. _ACEOF
  10304. if ac_fn_c_try_link "$LINENO"; then :
  10305. ac_cv_lib_dl_dlopen=yes
  10306. else
  10307. ac_cv_lib_dl_dlopen=no
  10308. fi
  10309. rm -f core conftest.err conftest.$ac_objext \
  10310. conftest$ac_exeext conftest.$ac_ext
  10311. LIBS=$ac_check_lib_save_LIBS
  10312. fi
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10314. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10315. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10316. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10317. else
  10318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10319. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10320. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10321. $as_echo_n "(cached) " >&6
  10322. else
  10323. ac_check_lib_save_LIBS=$LIBS
  10324. LIBS="-lsvld $LIBS"
  10325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10326. /* end confdefs.h. */
  10327. /* Override any GCC internal prototype to avoid an error.
  10328. Use char because int might match the return type of a GCC
  10329. builtin and then its argument prototype would still apply. */
  10330. #ifdef __cplusplus
  10331. extern "C"
  10332. #endif
  10333. char dlopen ();
  10334. int
  10335. main ()
  10336. {
  10337. return dlopen ();
  10338. ;
  10339. return 0;
  10340. }
  10341. _ACEOF
  10342. if ac_fn_c_try_link "$LINENO"; then :
  10343. ac_cv_lib_svld_dlopen=yes
  10344. else
  10345. ac_cv_lib_svld_dlopen=no
  10346. fi
  10347. rm -f core conftest.err conftest.$ac_objext \
  10348. conftest$ac_exeext conftest.$ac_ext
  10349. LIBS=$ac_check_lib_save_LIBS
  10350. fi
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10352. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10353. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10354. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10355. else
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10357. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10358. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10359. $as_echo_n "(cached) " >&6
  10360. else
  10361. ac_check_lib_save_LIBS=$LIBS
  10362. LIBS="-ldld $LIBS"
  10363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10364. /* end confdefs.h. */
  10365. /* Override any GCC internal prototype to avoid an error.
  10366. Use char because int might match the return type of a GCC
  10367. builtin and then its argument prototype would still apply. */
  10368. #ifdef __cplusplus
  10369. extern "C"
  10370. #endif
  10371. char dld_link ();
  10372. int
  10373. main ()
  10374. {
  10375. return dld_link ();
  10376. ;
  10377. return 0;
  10378. }
  10379. _ACEOF
  10380. if ac_fn_c_try_link "$LINENO"; then :
  10381. ac_cv_lib_dld_dld_link=yes
  10382. else
  10383. ac_cv_lib_dld_dld_link=no
  10384. fi
  10385. rm -f core conftest.err conftest.$ac_objext \
  10386. conftest$ac_exeext conftest.$ac_ext
  10387. LIBS=$ac_check_lib_save_LIBS
  10388. fi
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10390. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10391. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10392. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10393. fi
  10394. fi
  10395. fi
  10396. fi
  10397. fi
  10398. fi
  10399. ;;
  10400. esac
  10401. if test no = "$lt_cv_dlopen"; then
  10402. enable_dlopen=no
  10403. else
  10404. enable_dlopen=yes
  10405. fi
  10406. case $lt_cv_dlopen in
  10407. dlopen)
  10408. save_CPPFLAGS=$CPPFLAGS
  10409. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10410. save_LDFLAGS=$LDFLAGS
  10411. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10412. save_LIBS=$LIBS
  10413. LIBS="$lt_cv_dlopen_libs $LIBS"
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10415. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10416. if ${lt_cv_dlopen_self+:} false; then :
  10417. $as_echo_n "(cached) " >&6
  10418. else
  10419. if test yes = "$cross_compiling"; then :
  10420. lt_cv_dlopen_self=cross
  10421. else
  10422. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10423. lt_status=$lt_dlunknown
  10424. cat > conftest.$ac_ext <<_LT_EOF
  10425. #line $LINENO "configure"
  10426. #include "confdefs.h"
  10427. #if HAVE_DLFCN_H
  10428. #include <dlfcn.h>
  10429. #endif
  10430. #include <stdio.h>
  10431. #ifdef RTLD_GLOBAL
  10432. # define LT_DLGLOBAL RTLD_GLOBAL
  10433. #else
  10434. # ifdef DL_GLOBAL
  10435. # define LT_DLGLOBAL DL_GLOBAL
  10436. # else
  10437. # define LT_DLGLOBAL 0
  10438. # endif
  10439. #endif
  10440. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10441. find out it does not work in some platform. */
  10442. #ifndef LT_DLLAZY_OR_NOW
  10443. # ifdef RTLD_LAZY
  10444. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10445. # else
  10446. # ifdef DL_LAZY
  10447. # define LT_DLLAZY_OR_NOW DL_LAZY
  10448. # else
  10449. # ifdef RTLD_NOW
  10450. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10451. # else
  10452. # ifdef DL_NOW
  10453. # define LT_DLLAZY_OR_NOW DL_NOW
  10454. # else
  10455. # define LT_DLLAZY_OR_NOW 0
  10456. # endif
  10457. # endif
  10458. # endif
  10459. # endif
  10460. #endif
  10461. /* When -fvisibility=hidden is used, assume the code has been annotated
  10462. correspondingly for the symbols needed. */
  10463. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10464. int fnord () __attribute__((visibility("default")));
  10465. #endif
  10466. int fnord () { return 42; }
  10467. int main ()
  10468. {
  10469. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10470. int status = $lt_dlunknown;
  10471. if (self)
  10472. {
  10473. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10474. else
  10475. {
  10476. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10477. else puts (dlerror ());
  10478. }
  10479. /* dlclose (self); */
  10480. }
  10481. else
  10482. puts (dlerror ());
  10483. return status;
  10484. }
  10485. _LT_EOF
  10486. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10487. (eval $ac_link) 2>&5
  10488. ac_status=$?
  10489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10490. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10491. (./conftest; exit; ) >&5 2>/dev/null
  10492. lt_status=$?
  10493. case x$lt_status in
  10494. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10495. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10496. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10497. esac
  10498. else :
  10499. # compilation failed
  10500. lt_cv_dlopen_self=no
  10501. fi
  10502. fi
  10503. rm -fr conftest*
  10504. fi
  10505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10506. $as_echo "$lt_cv_dlopen_self" >&6; }
  10507. if test yes = "$lt_cv_dlopen_self"; then
  10508. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10510. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10511. if ${lt_cv_dlopen_self_static+:} false; then :
  10512. $as_echo_n "(cached) " >&6
  10513. else
  10514. if test yes = "$cross_compiling"; then :
  10515. lt_cv_dlopen_self_static=cross
  10516. else
  10517. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10518. lt_status=$lt_dlunknown
  10519. cat > conftest.$ac_ext <<_LT_EOF
  10520. #line $LINENO "configure"
  10521. #include "confdefs.h"
  10522. #if HAVE_DLFCN_H
  10523. #include <dlfcn.h>
  10524. #endif
  10525. #include <stdio.h>
  10526. #ifdef RTLD_GLOBAL
  10527. # define LT_DLGLOBAL RTLD_GLOBAL
  10528. #else
  10529. # ifdef DL_GLOBAL
  10530. # define LT_DLGLOBAL DL_GLOBAL
  10531. # else
  10532. # define LT_DLGLOBAL 0
  10533. # endif
  10534. #endif
  10535. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10536. find out it does not work in some platform. */
  10537. #ifndef LT_DLLAZY_OR_NOW
  10538. # ifdef RTLD_LAZY
  10539. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10540. # else
  10541. # ifdef DL_LAZY
  10542. # define LT_DLLAZY_OR_NOW DL_LAZY
  10543. # else
  10544. # ifdef RTLD_NOW
  10545. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10546. # else
  10547. # ifdef DL_NOW
  10548. # define LT_DLLAZY_OR_NOW DL_NOW
  10549. # else
  10550. # define LT_DLLAZY_OR_NOW 0
  10551. # endif
  10552. # endif
  10553. # endif
  10554. # endif
  10555. #endif
  10556. /* When -fvisibility=hidden is used, assume the code has been annotated
  10557. correspondingly for the symbols needed. */
  10558. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10559. int fnord () __attribute__((visibility("default")));
  10560. #endif
  10561. int fnord () { return 42; }
  10562. int main ()
  10563. {
  10564. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10565. int status = $lt_dlunknown;
  10566. if (self)
  10567. {
  10568. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10569. else
  10570. {
  10571. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10572. else puts (dlerror ());
  10573. }
  10574. /* dlclose (self); */
  10575. }
  10576. else
  10577. puts (dlerror ());
  10578. return status;
  10579. }
  10580. _LT_EOF
  10581. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10582. (eval $ac_link) 2>&5
  10583. ac_status=$?
  10584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10585. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10586. (./conftest; exit; ) >&5 2>/dev/null
  10587. lt_status=$?
  10588. case x$lt_status in
  10589. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10590. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10591. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10592. esac
  10593. else :
  10594. # compilation failed
  10595. lt_cv_dlopen_self_static=no
  10596. fi
  10597. fi
  10598. rm -fr conftest*
  10599. fi
  10600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10601. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10602. fi
  10603. CPPFLAGS=$save_CPPFLAGS
  10604. LDFLAGS=$save_LDFLAGS
  10605. LIBS=$save_LIBS
  10606. ;;
  10607. esac
  10608. case $lt_cv_dlopen_self in
  10609. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10610. *) enable_dlopen_self=unknown ;;
  10611. esac
  10612. case $lt_cv_dlopen_self_static in
  10613. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10614. *) enable_dlopen_self_static=unknown ;;
  10615. esac
  10616. fi
  10617. striplib=
  10618. old_striplib=
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10620. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10621. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10622. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10623. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10625. $as_echo "yes" >&6; }
  10626. else
  10627. # FIXME - insert some real tests, host_os isn't really good enough
  10628. case $host_os in
  10629. darwin*)
  10630. if test -n "$STRIP"; then
  10631. striplib="$STRIP -x"
  10632. old_striplib="$STRIP -S"
  10633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10634. $as_echo "yes" >&6; }
  10635. else
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10637. $as_echo "no" >&6; }
  10638. fi
  10639. ;;
  10640. *)
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10642. $as_echo "no" >&6; }
  10643. ;;
  10644. esac
  10645. fi
  10646. # Report what library types will actually be built
  10647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10648. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10650. $as_echo "$can_build_shared" >&6; }
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10652. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10653. test no = "$can_build_shared" && enable_shared=no
  10654. # On AIX, shared libraries and static libraries use the same namespace, and
  10655. # are all built from PIC.
  10656. case $host_os in
  10657. aix3*)
  10658. test yes = "$enable_shared" && enable_static=no
  10659. if test -n "$RANLIB"; then
  10660. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10661. postinstall_cmds='$RANLIB $lib'
  10662. fi
  10663. ;;
  10664. aix[4-9]*)
  10665. if test ia64 != "$host_cpu"; then
  10666. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10667. yes,aix,yes) ;; # shared object as lib.so file only
  10668. yes,svr4,*) ;; # shared object as lib.so archive member only
  10669. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10670. esac
  10671. fi
  10672. ;;
  10673. esac
  10674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10675. $as_echo "$enable_shared" >&6; }
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10677. $as_echo_n "checking whether to build static libraries... " >&6; }
  10678. # Make sure either enable_shared or enable_static is yes.
  10679. test yes = "$enable_shared" || enable_static=yes
  10680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10681. $as_echo "$enable_static" >&6; }
  10682. fi
  10683. ac_ext=c
  10684. ac_cpp='$CPP $CPPFLAGS'
  10685. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10686. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10687. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10688. CC=$lt_save_CC
  10689. ac_config_commands="$ac_config_commands libtool"
  10690. # Only expand once:
  10691. ac_config_headers="$ac_config_headers config.h"
  10692. am__api_version='1.16'
  10693. # Find a good install program. We prefer a C program (faster),
  10694. # so one script is as good as another. But avoid the broken or
  10695. # incompatible versions:
  10696. # SysV /etc/install, /usr/sbin/install
  10697. # SunOS /usr/etc/install
  10698. # IRIX /sbin/install
  10699. # AIX /bin/install
  10700. # AmigaOS /C/install, which installs bootblocks on floppy discs
  10701. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  10702. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  10703. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  10704. # OS/2's system install, which has a completely different semantic
  10705. # ./install, which can be erroneously created by make from ./install.sh.
  10706. # Reject install programs that cannot install multiple files.
  10707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  10708. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  10709. if test -z "$INSTALL"; then
  10710. if ${ac_cv_path_install+:} false; then :
  10711. $as_echo_n "(cached) " >&6
  10712. else
  10713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10714. for as_dir in $PATH
  10715. do
  10716. IFS=$as_save_IFS
  10717. test -z "$as_dir" && as_dir=.
  10718. # Account for people who put trailing slashes in PATH elements.
  10719. case $as_dir/ in #((
  10720. ./ | .// | /[cC]/* | \
  10721. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  10722. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  10723. /usr/ucb/* ) ;;
  10724. *)
  10725. # OSF1 and SCO ODT 3.0 have their own names for install.
  10726. # Don't use installbsd from OSF since it installs stuff as root
  10727. # by default.
  10728. for ac_prog in ginstall scoinst install; do
  10729. for ac_exec_ext in '' $ac_executable_extensions; do
  10730. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  10731. if test $ac_prog = install &&
  10732. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10733. # AIX install. It has an incompatible calling convention.
  10734. :
  10735. elif test $ac_prog = install &&
  10736. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10737. # program-specific install script used by HP pwplus--don't use.
  10738. :
  10739. else
  10740. rm -rf conftest.one conftest.two conftest.dir
  10741. echo one > conftest.one
  10742. echo two > conftest.two
  10743. mkdir conftest.dir
  10744. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  10745. test -s conftest.one && test -s conftest.two &&
  10746. test -s conftest.dir/conftest.one &&
  10747. test -s conftest.dir/conftest.two
  10748. then
  10749. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  10750. break 3
  10751. fi
  10752. fi
  10753. fi
  10754. done
  10755. done
  10756. ;;
  10757. esac
  10758. done
  10759. IFS=$as_save_IFS
  10760. rm -rf conftest.one conftest.two conftest.dir
  10761. fi
  10762. if test "${ac_cv_path_install+set}" = set; then
  10763. INSTALL=$ac_cv_path_install
  10764. else
  10765. # As a last resort, use the slow shell script. Don't cache a
  10766. # value for INSTALL within a source directory, because that will
  10767. # break other packages using the cache if that directory is
  10768. # removed, or if the value is a relative name.
  10769. INSTALL=$ac_install_sh
  10770. fi
  10771. fi
  10772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  10773. $as_echo "$INSTALL" >&6; }
  10774. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  10775. # It thinks the first close brace ends the variable substitution.
  10776. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  10777. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  10778. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  10780. $as_echo_n "checking whether build environment is sane... " >&6; }
  10781. # Reject unsafe characters in $srcdir or the absolute working directory
  10782. # name. Accept space and tab only in the latter.
  10783. am_lf='
  10784. '
  10785. case `pwd` in
  10786. *[\\\"\#\$\&\'\`$am_lf]*)
  10787. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  10788. esac
  10789. case $srcdir in
  10790. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  10791. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  10792. esac
  10793. # Do 'set' in a subshell so we don't clobber the current shell's
  10794. # arguments. Must try -L first in case configure is actually a
  10795. # symlink; some systems play weird games with the mod time of symlinks
  10796. # (eg FreeBSD returns the mod time of the symlink's containing
  10797. # directory).
  10798. if (
  10799. am_has_slept=no
  10800. for am_try in 1 2; do
  10801. echo "timestamp, slept: $am_has_slept" > conftest.file
  10802. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  10803. if test "$*" = "X"; then
  10804. # -L didn't work.
  10805. set X `ls -t "$srcdir/configure" conftest.file`
  10806. fi
  10807. if test "$*" != "X $srcdir/configure conftest.file" \
  10808. && test "$*" != "X conftest.file $srcdir/configure"; then
  10809. # If neither matched, then we have a broken ls. This can happen
  10810. # if, for instance, CONFIG_SHELL is bash and it inherits a
  10811. # broken ls alias from the environment. This has actually
  10812. # happened. Such a system could not be considered "sane".
  10813. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  10814. alias in your environment" "$LINENO" 5
  10815. fi
  10816. if test "$2" = conftest.file || test $am_try -eq 2; then
  10817. break
  10818. fi
  10819. # Just in case.
  10820. sleep 1
  10821. am_has_slept=yes
  10822. done
  10823. test "$2" = conftest.file
  10824. )
  10825. then
  10826. # Ok.
  10827. :
  10828. else
  10829. as_fn_error $? "newly created file is older than distributed files!
  10830. Check your system clock" "$LINENO" 5
  10831. fi
  10832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10833. $as_echo "yes" >&6; }
  10834. # If we didn't sleep, we still need to ensure time stamps of config.status and
  10835. # generated files are strictly newer.
  10836. am_sleep_pid=
  10837. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  10838. ( sleep 1 ) &
  10839. am_sleep_pid=$!
  10840. fi
  10841. rm -f conftest.file
  10842. test "$program_prefix" != NONE &&
  10843. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  10844. # Use a double $ so make ignores it.
  10845. test "$program_suffix" != NONE &&
  10846. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  10847. # Double any \ or $.
  10848. # By default was `s,x,x', remove it if useless.
  10849. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  10850. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  10851. if test x"${MISSING+set}" != xset; then
  10852. case $am_aux_dir in
  10853. *\ * | *\ *)
  10854. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  10855. *)
  10856. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  10857. esac
  10858. fi
  10859. # Use eval to expand $SHELL
  10860. if eval "$MISSING --is-lightweight"; then
  10861. am_missing_run="$MISSING "
  10862. else
  10863. am_missing_run=
  10864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  10865. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  10866. fi
  10867. if test x"${install_sh+set}" != xset; then
  10868. case $am_aux_dir in
  10869. *\ * | *\ *)
  10870. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  10871. *)
  10872. install_sh="\${SHELL} $am_aux_dir/install-sh"
  10873. esac
  10874. fi
  10875. # Installed binaries are usually stripped using 'strip' when the user
  10876. # run "make install-strip". However 'strip' might not be the right
  10877. # tool to use in cross-compilation environments, therefore Automake
  10878. # will honor the 'STRIP' environment variable to overrule this program.
  10879. if test "$cross_compiling" != no; then
  10880. if test -n "$ac_tool_prefix"; then
  10881. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10882. set dummy ${ac_tool_prefix}strip; ac_word=$2
  10883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10884. $as_echo_n "checking for $ac_word... " >&6; }
  10885. if ${ac_cv_prog_STRIP+:} false; then :
  10886. $as_echo_n "(cached) " >&6
  10887. else
  10888. if test -n "$STRIP"; then
  10889. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10890. else
  10891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10892. for as_dir in $PATH
  10893. do
  10894. IFS=$as_save_IFS
  10895. test -z "$as_dir" && as_dir=.
  10896. for ac_exec_ext in '' $ac_executable_extensions; do
  10897. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10898. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10900. break 2
  10901. fi
  10902. done
  10903. done
  10904. IFS=$as_save_IFS
  10905. fi
  10906. fi
  10907. STRIP=$ac_cv_prog_STRIP
  10908. if test -n "$STRIP"; then
  10909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10910. $as_echo "$STRIP" >&6; }
  10911. else
  10912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10913. $as_echo "no" >&6; }
  10914. fi
  10915. fi
  10916. if test -z "$ac_cv_prog_STRIP"; then
  10917. ac_ct_STRIP=$STRIP
  10918. # Extract the first word of "strip", so it can be a program name with args.
  10919. set dummy strip; ac_word=$2
  10920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10921. $as_echo_n "checking for $ac_word... " >&6; }
  10922. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  10923. $as_echo_n "(cached) " >&6
  10924. else
  10925. if test -n "$ac_ct_STRIP"; then
  10926. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10927. else
  10928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10929. for as_dir in $PATH
  10930. do
  10931. IFS=$as_save_IFS
  10932. test -z "$as_dir" && as_dir=.
  10933. for ac_exec_ext in '' $ac_executable_extensions; do
  10934. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10935. ac_cv_prog_ac_ct_STRIP="strip"
  10936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10937. break 2
  10938. fi
  10939. done
  10940. done
  10941. IFS=$as_save_IFS
  10942. fi
  10943. fi
  10944. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10945. if test -n "$ac_ct_STRIP"; then
  10946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10947. $as_echo "$ac_ct_STRIP" >&6; }
  10948. else
  10949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10950. $as_echo "no" >&6; }
  10951. fi
  10952. if test "x$ac_ct_STRIP" = x; then
  10953. STRIP=":"
  10954. else
  10955. case $cross_compiling:$ac_tool_warned in
  10956. yes:)
  10957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10958. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10959. ac_tool_warned=yes ;;
  10960. esac
  10961. STRIP=$ac_ct_STRIP
  10962. fi
  10963. else
  10964. STRIP="$ac_cv_prog_STRIP"
  10965. fi
  10966. fi
  10967. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  10968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  10969. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  10970. if test -z "$MKDIR_P"; then
  10971. if ${ac_cv_path_mkdir+:} false; then :
  10972. $as_echo_n "(cached) " >&6
  10973. else
  10974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10975. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  10976. do
  10977. IFS=$as_save_IFS
  10978. test -z "$as_dir" && as_dir=.
  10979. for ac_prog in mkdir gmkdir; do
  10980. for ac_exec_ext in '' $ac_executable_extensions; do
  10981. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  10982. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  10983. 'mkdir (GNU coreutils) '* | \
  10984. 'mkdir (coreutils) '* | \
  10985. 'mkdir (fileutils) '4.1*)
  10986. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  10987. break 3;;
  10988. esac
  10989. done
  10990. done
  10991. done
  10992. IFS=$as_save_IFS
  10993. fi
  10994. test -d ./--version && rmdir ./--version
  10995. if test "${ac_cv_path_mkdir+set}" = set; then
  10996. MKDIR_P="$ac_cv_path_mkdir -p"
  10997. else
  10998. # As a last resort, use the slow shell script. Don't cache a
  10999. # value for MKDIR_P within a source directory, because that will
  11000. # break other packages using the cache if that directory is
  11001. # removed, or if the value is a relative name.
  11002. MKDIR_P="$ac_install_sh -d"
  11003. fi
  11004. fi
  11005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  11006. $as_echo "$MKDIR_P" >&6; }
  11007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  11008. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  11009. set x ${MAKE-make}
  11010. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  11011. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  11012. $as_echo_n "(cached) " >&6
  11013. else
  11014. cat >conftest.make <<\_ACEOF
  11015. SHELL = /bin/sh
  11016. all:
  11017. @echo '@@@%%%=$(MAKE)=@@@%%%'
  11018. _ACEOF
  11019. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  11020. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  11021. *@@@%%%=?*=@@@%%%*)
  11022. eval ac_cv_prog_make_${ac_make}_set=yes;;
  11023. *)
  11024. eval ac_cv_prog_make_${ac_make}_set=no;;
  11025. esac
  11026. rm -f conftest.make
  11027. fi
  11028. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  11029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11030. $as_echo "yes" >&6; }
  11031. SET_MAKE=
  11032. else
  11033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11034. $as_echo "no" >&6; }
  11035. SET_MAKE="MAKE=${MAKE-make}"
  11036. fi
  11037. rm -rf .tst 2>/dev/null
  11038. mkdir .tst 2>/dev/null
  11039. if test -d .tst; then
  11040. am__leading_dot=.
  11041. else
  11042. am__leading_dot=_
  11043. fi
  11044. rmdir .tst 2>/dev/null
  11045. DEPDIR="${am__leading_dot}deps"
  11046. ac_config_commands="$ac_config_commands depfiles"
  11047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  11048. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  11049. cat > confinc.mk << 'END'
  11050. am__doit:
  11051. @echo this is the am__doit target >confinc.out
  11052. .PHONY: am__doit
  11053. END
  11054. am__include="#"
  11055. am__quote=
  11056. # BSD make does it like this.
  11057. echo '.include "confinc.mk" # ignored' > confmf.BSD
  11058. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  11059. echo 'include confinc.mk # ignored' > confmf.GNU
  11060. _am_result=no
  11061. for s in GNU BSD; do
  11062. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  11063. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  11064. ac_status=$?
  11065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11066. (exit $ac_status); }
  11067. case $?:`cat confinc.out 2>/dev/null` in #(
  11068. '0:this is the am__doit target') :
  11069. case $s in #(
  11070. BSD) :
  11071. am__include='.include' am__quote='"' ;; #(
  11072. *) :
  11073. am__include='include' am__quote='' ;;
  11074. esac ;; #(
  11075. *) :
  11076. ;;
  11077. esac
  11078. if test "$am__include" != "#"; then
  11079. _am_result="yes ($s style)"
  11080. break
  11081. fi
  11082. done
  11083. rm -f confinc.* confmf.*
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  11085. $as_echo "${_am_result}" >&6; }
  11086. # Check whether --enable-dependency-tracking was given.
  11087. if test "${enable_dependency_tracking+set}" = set; then :
  11088. enableval=$enable_dependency_tracking;
  11089. fi
  11090. if test "x$enable_dependency_tracking" != xno; then
  11091. am_depcomp="$ac_aux_dir/depcomp"
  11092. AMDEPBACKSLASH='\'
  11093. am__nodep='_no'
  11094. fi
  11095. if test "x$enable_dependency_tracking" != xno; then
  11096. AMDEP_TRUE=
  11097. AMDEP_FALSE='#'
  11098. else
  11099. AMDEP_TRUE='#'
  11100. AMDEP_FALSE=
  11101. fi
  11102. # Check whether --enable-silent-rules was given.
  11103. if test "${enable_silent_rules+set}" = set; then :
  11104. enableval=$enable_silent_rules;
  11105. fi
  11106. case $enable_silent_rules in # (((
  11107. yes) AM_DEFAULT_VERBOSITY=0;;
  11108. no) AM_DEFAULT_VERBOSITY=1;;
  11109. *) AM_DEFAULT_VERBOSITY=1;;
  11110. esac
  11111. am_make=${MAKE-make}
  11112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  11113. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  11114. if ${am_cv_make_support_nested_variables+:} false; then :
  11115. $as_echo_n "(cached) " >&6
  11116. else
  11117. if $as_echo 'TRUE=$(BAR$(V))
  11118. BAR0=false
  11119. BAR1=true
  11120. V=1
  11121. am__doit:
  11122. @$(TRUE)
  11123. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  11124. am_cv_make_support_nested_variables=yes
  11125. else
  11126. am_cv_make_support_nested_variables=no
  11127. fi
  11128. fi
  11129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  11130. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  11131. if test $am_cv_make_support_nested_variables = yes; then
  11132. AM_V='$(V)'
  11133. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  11134. else
  11135. AM_V=$AM_DEFAULT_VERBOSITY
  11136. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  11137. fi
  11138. AM_BACKSLASH='\'
  11139. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  11140. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  11141. # is not polluted with repeated "-I."
  11142. am__isrc=' -I$(srcdir)'
  11143. # test to see if srcdir already configured
  11144. if test -f $srcdir/config.status; then
  11145. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  11146. fi
  11147. fi
  11148. # test whether we have cygpath
  11149. if test -z "$CYGPATH_W"; then
  11150. if (cygpath --version) >/dev/null 2>/dev/null; then
  11151. CYGPATH_W='cygpath -w'
  11152. else
  11153. CYGPATH_W=echo
  11154. fi
  11155. fi
  11156. # Define the identity of the package.
  11157. PACKAGE='klish'
  11158. VERSION='2.2.4'
  11159. cat >>confdefs.h <<_ACEOF
  11160. #define PACKAGE "$PACKAGE"
  11161. _ACEOF
  11162. cat >>confdefs.h <<_ACEOF
  11163. #define VERSION "$VERSION"
  11164. _ACEOF
  11165. # Some tools Automake needs.
  11166. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  11167. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  11168. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  11169. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  11170. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  11171. # For better backward compatibility. To be removed once Automake 1.9.x
  11172. # dies out for good. For more background, see:
  11173. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  11174. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  11175. mkdir_p='$(MKDIR_P)'
  11176. # We need awk for the "check" target (and possibly the TAP driver). The
  11177. # system "awk" is bad on some platforms.
  11178. # Always define AMTAR for backward compatibility. Yes, it's still used
  11179. # in the wild :-( We should find a proper way to deprecate it ...
  11180. AMTAR='$${TAR-tar}'
  11181. # We'll loop over all known methods to create a tar archive until one works.
  11182. _am_tools='gnutar pax cpio none'
  11183. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  11184. depcc="$CC" am_compiler_list=
  11185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11186. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11187. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  11188. $as_echo_n "(cached) " >&6
  11189. else
  11190. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11191. # We make a subdir and do the tests there. Otherwise we can end up
  11192. # making bogus files that we don't know about and never remove. For
  11193. # instance it was reported that on HP-UX the gcc test will end up
  11194. # making a dummy file named 'D' -- because '-MD' means "put the output
  11195. # in D".
  11196. rm -rf conftest.dir
  11197. mkdir conftest.dir
  11198. # Copy depcomp to subdir because otherwise we won't find it if we're
  11199. # using a relative directory.
  11200. cp "$am_depcomp" conftest.dir
  11201. cd conftest.dir
  11202. # We will build objects and dependencies in a subdirectory because
  11203. # it helps to detect inapplicable dependency modes. For instance
  11204. # both Tru64's cc and ICC support -MD to output dependencies as a
  11205. # side effect of compilation, but ICC will put the dependencies in
  11206. # the current directory while Tru64 will put them in the object
  11207. # directory.
  11208. mkdir sub
  11209. am_cv_CC_dependencies_compiler_type=none
  11210. if test "$am_compiler_list" = ""; then
  11211. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11212. fi
  11213. am__universal=false
  11214. case " $depcc " in #(
  11215. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11216. esac
  11217. for depmode in $am_compiler_list; do
  11218. # Setup a source with many dependencies, because some compilers
  11219. # like to wrap large dependency lists on column 80 (with \), and
  11220. # we should not choose a depcomp mode which is confused by this.
  11221. #
  11222. # We need to recreate these files for each test, as the compiler may
  11223. # overwrite some of them when testing with obscure command lines.
  11224. # This happens at least with the AIX C compiler.
  11225. : > sub/conftest.c
  11226. for i in 1 2 3 4 5 6; do
  11227. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11228. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11229. # Solaris 10 /bin/sh.
  11230. echo '/* dummy */' > sub/conftst$i.h
  11231. done
  11232. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11233. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11234. # mode. It turns out that the SunPro C++ compiler does not properly
  11235. # handle '-M -o', and we need to detect this. Also, some Intel
  11236. # versions had trouble with output in subdirs.
  11237. am__obj=sub/conftest.${OBJEXT-o}
  11238. am__minus_obj="-o $am__obj"
  11239. case $depmode in
  11240. gcc)
  11241. # This depmode causes a compiler race in universal mode.
  11242. test "$am__universal" = false || continue
  11243. ;;
  11244. nosideeffect)
  11245. # After this tag, mechanisms are not by side-effect, so they'll
  11246. # only be used when explicitly requested.
  11247. if test "x$enable_dependency_tracking" = xyes; then
  11248. continue
  11249. else
  11250. break
  11251. fi
  11252. ;;
  11253. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11254. # This compiler won't grok '-c -o', but also, the minuso test has
  11255. # not run yet. These depmodes are late enough in the game, and
  11256. # so weak that their functioning should not be impacted.
  11257. am__obj=conftest.${OBJEXT-o}
  11258. am__minus_obj=
  11259. ;;
  11260. none) break ;;
  11261. esac
  11262. if depmode=$depmode \
  11263. source=sub/conftest.c object=$am__obj \
  11264. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11265. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11266. >/dev/null 2>conftest.err &&
  11267. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11268. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11269. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11270. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11271. # icc doesn't choke on unknown options, it will just issue warnings
  11272. # or remarks (even with -Werror). So we grep stderr for any message
  11273. # that says an option was ignored or not supported.
  11274. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11275. # icc: Command line warning: ignoring option '-M'; no argument required
  11276. # The diagnosis changed in icc 8.0:
  11277. # icc: Command line remark: option '-MP' not supported
  11278. if (grep 'ignoring option' conftest.err ||
  11279. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11280. am_cv_CC_dependencies_compiler_type=$depmode
  11281. break
  11282. fi
  11283. fi
  11284. done
  11285. cd ..
  11286. rm -rf conftest.dir
  11287. else
  11288. am_cv_CC_dependencies_compiler_type=none
  11289. fi
  11290. fi
  11291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  11292. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  11293. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  11294. if
  11295. test "x$enable_dependency_tracking" != xno \
  11296. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  11297. am__fastdepCC_TRUE=
  11298. am__fastdepCC_FALSE='#'
  11299. else
  11300. am__fastdepCC_TRUE='#'
  11301. am__fastdepCC_FALSE=
  11302. fi
  11303. # POSIX will say in a future version that running "rm -f" with no argument
  11304. # is OK; and we want to be able to make that assumption in our Makefile
  11305. # recipes. So use an aggressive probe to check that the usage we want is
  11306. # actually supported "in the wild" to an acceptable degree.
  11307. # See automake bug#10828.
  11308. # To make any issue more visible, cause the running configure to be aborted
  11309. # by default if the 'rm' program in use doesn't match our expectations; the
  11310. # user can still override this though.
  11311. if rm -f && rm -fr && rm -rf; then : OK; else
  11312. cat >&2 <<'END'
  11313. Oops!
  11314. Your 'rm' program seems unable to run without file operands specified
  11315. on the command line, even when the '-f' option is present. This is contrary
  11316. to the behaviour of most rm programs out there, and not conforming with
  11317. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  11318. Please tell bug-automake@gnu.org about your system, including the value
  11319. of your $PATH and any error possibly output before this message. This
  11320. can help us improve future automake versions.
  11321. END
  11322. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  11323. echo 'Configuration will proceed anyway, since you have set the' >&2
  11324. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  11325. echo >&2
  11326. else
  11327. cat >&2 <<'END'
  11328. Aborting the configuration process, to ensure you take notice of the issue.
  11329. You can download and install GNU coreutils to get an 'rm' implementation
  11330. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  11331. If you want to complete the configuration process using your problematic
  11332. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  11333. to "yes", and re-run configure.
  11334. END
  11335. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  11336. fi
  11337. fi
  11338. # Dir for libc replacements
  11339. # needed to handle 64-bit architecture
  11340. # The cast to long int works around a bug in the HP C Compiler
  11341. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11342. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11343. # This bug is HP SR number 8606223364.
  11344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  11345. $as_echo_n "checking size of int... " >&6; }
  11346. if ${ac_cv_sizeof_int+:} false; then :
  11347. $as_echo_n "(cached) " >&6
  11348. else
  11349. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  11350. else
  11351. if test "$ac_cv_type_int" = yes; then
  11352. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11353. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11354. as_fn_error 77 "cannot compute sizeof (int)
  11355. See \`config.log' for more details" "$LINENO" 5; }
  11356. else
  11357. ac_cv_sizeof_int=0
  11358. fi
  11359. fi
  11360. fi
  11361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  11362. $as_echo "$ac_cv_sizeof_int" >&6; }
  11363. cat >>confdefs.h <<_ACEOF
  11364. #define SIZEOF_INT $ac_cv_sizeof_int
  11365. _ACEOF
  11366. # The cast to long int works around a bug in the HP C Compiler
  11367. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11368. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11369. # This bug is HP SR number 8606223364.
  11370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  11371. $as_echo_n "checking size of long... " >&6; }
  11372. if ${ac_cv_sizeof_long+:} false; then :
  11373. $as_echo_n "(cached) " >&6
  11374. else
  11375. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  11376. else
  11377. if test "$ac_cv_type_long" = yes; then
  11378. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11379. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11380. as_fn_error 77 "cannot compute sizeof (long)
  11381. See \`config.log' for more details" "$LINENO" 5; }
  11382. else
  11383. ac_cv_sizeof_long=0
  11384. fi
  11385. fi
  11386. fi
  11387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  11388. $as_echo "$ac_cv_sizeof_long" >&6; }
  11389. cat >>confdefs.h <<_ACEOF
  11390. #define SIZEOF_LONG $ac_cv_sizeof_long
  11391. _ACEOF
  11392. # The cast to long int works around a bug in the HP C Compiler
  11393. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11394. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11395. # This bug is HP SR number 8606223364.
  11396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  11397. $as_echo_n "checking size of size_t... " >&6; }
  11398. if ${ac_cv_sizeof_size_t+:} false; then :
  11399. $as_echo_n "(cached) " >&6
  11400. else
  11401. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  11402. else
  11403. if test "$ac_cv_type_size_t" = yes; then
  11404. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11405. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11406. as_fn_error 77 "cannot compute sizeof (size_t)
  11407. See \`config.log' for more details" "$LINENO" 5; }
  11408. else
  11409. ac_cv_sizeof_size_t=0
  11410. fi
  11411. fi
  11412. fi
  11413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  11414. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  11415. cat >>confdefs.h <<_ACEOF
  11416. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  11417. _ACEOF
  11418. #########################################
  11419. # See if linker supports version scripts
  11420. #########################################
  11421. # Check if LD supports linker scripts,
  11422. # and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
  11423. # Check whether --enable-ld-version-script was given.
  11424. if test "${enable_ld_version_script+set}" = set; then :
  11425. enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  11426. fi
  11427. if test -z "$have_ld_version_script"; then
  11428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
  11429. $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
  11430. save_LDFLAGS="$LDFLAGS"
  11431. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  11432. cat > conftest.map <<EOF
  11433. VERS_1 {
  11434. global: sym;
  11435. };
  11436. VERS_2 {
  11437. global: sym;
  11438. } VERS_1;
  11439. EOF
  11440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11441. /* end confdefs.h. */
  11442. int main() { return 0; }
  11443. _ACEOF
  11444. if ac_fn_c_try_link "$LINENO"; then :
  11445. have_ld_version_script=yes
  11446. else
  11447. have_ld_version_script=no
  11448. fi
  11449. rm -f core conftest.err conftest.$ac_objext \
  11450. conftest$ac_exeext conftest.$ac_ext
  11451. rm -f conftest.map
  11452. LDFLAGS="$save_LDFLAGS"
  11453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
  11454. $as_echo "$have_ld_version_script" >&6; }
  11455. fi
  11456. if test "$have_ld_version_script" = "yes"; then
  11457. HAVE_LD_VERSION_SCRIPT_TRUE=
  11458. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  11459. else
  11460. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  11461. HAVE_LD_VERSION_SCRIPT_FALSE=
  11462. fi
  11463. ################################
  11464. # Deal with debugging options
  11465. ################################
  11466. # Check whether --enable-debug was given.
  11467. if test "${enable_debug+set}" = set; then :
  11468. enableval=$enable_debug;
  11469. else
  11470. enable_debug=no
  11471. fi
  11472. if test x$enable_debug = xyes; then
  11473. DEBUG_TRUE=
  11474. DEBUG_FALSE='#'
  11475. else
  11476. DEBUG_TRUE='#'
  11477. DEBUG_FALSE=
  11478. fi
  11479. ################################
  11480. # Deal with legacy klish-2 features
  11481. ################################
  11482. # Check whether --enable-legacy was given.
  11483. if test "${enable_legacy+set}" = set; then :
  11484. enableval=$enable_legacy;
  11485. else
  11486. enable_legacy=no
  11487. fi
  11488. if test x$enable_legacy = xyes; then
  11489. LEGACY_TRUE=
  11490. LEGACY_FALSE='#'
  11491. else
  11492. LEGACY_TRUE='#'
  11493. LEGACY_FALSE=
  11494. fi
  11495. ################################
  11496. # Deal with NSS glibc engine
  11497. ################################
  11498. # Check whether --enable-nss was given.
  11499. if test "${enable_nss+set}" = set; then :
  11500. enableval=$enable_nss;
  11501. else
  11502. enable_nss=yes
  11503. fi
  11504. if test x$enable_nss != xyes; then
  11505. DISABLE_NSS_TRUE=
  11506. DISABLE_NSS_FALSE='#'
  11507. else
  11508. DISABLE_NSS_TRUE='#'
  11509. DISABLE_NSS_FALSE=
  11510. fi
  11511. ################################
  11512. # Check for Lua support
  11513. ################################
  11514. # Check whether --with-lua was given.
  11515. if test "${with_lua+set}" = set; then :
  11516. withval=$with_lua; use_lua=$withval
  11517. else
  11518. use_lua=no
  11519. fi
  11520. if test x$use_lua != xno; then
  11521. WITH_LUA_TRUE=
  11522. WITH_LUA_FALSE='#'
  11523. else
  11524. WITH_LUA_TRUE='#'
  11525. WITH_LUA_FALSE=
  11526. fi
  11527. if test x$use_lua != xno; then
  11528. if test x$use_lua != xyes; then
  11529. CPPFLAGS="${CPPFLAGS} -I$use_lua/include"
  11530. LDFLAGS="${LDFLAGS} -L$use_lua/lib"
  11531. fi
  11532. LUA_VERSION="5.1"
  11533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LUA_VERSION is defined" >&5
  11534. $as_echo_n "checking if LUA_VERSION is defined... " >&6; }
  11535. if test "x$LUA_VERSION" != 'x'; then :
  11536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11537. $as_echo "yes" >&6; }
  11538. else
  11539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11540. $as_echo "no" >&6; }
  11541. as_fn_error $? "cannot check Lua headers without knowing LUA_VERSION" "$LINENO" 5
  11542. fi
  11543. LUA_SHORT_VERSION=`echo "$LUA_VERSION" | sed 's|\.||'`
  11544. _ax_lua_saved_cppflags=$CPPFLAGS
  11545. CPPFLAGS="$CPPFLAGS $LUA_INCLUDE"
  11546. for ac_header in lua.h lualib.h lauxlib.h luaconf.h
  11547. do :
  11548. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11549. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11550. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11551. cat >>confdefs.h <<_ACEOF
  11552. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11553. _ACEOF
  11554. fi
  11555. done
  11556. CPPFLAGS=$_ax_lua_saved_cppflags
  11557. if test "x$LUA_INCLUDE" = 'x' &&
  11558. test "x$ac_cv_header_lua_h" != 'xyes'; then :
  11559. for _ax_include_path in /usr/include/lua$LUA_VERSION \
  11560. /usr/include/lua/$LUA_VERSION \
  11561. /usr/include/lua$LUA_SHORT_VERSION \
  11562. /usr/local/include/lua$LUA_VERSION \
  11563. /usr/local/include/lua/$LUA_VERSION \
  11564. /usr/local/include/lua$LUA_SHORT_VERSION \
  11565. ; do
  11566. test ! -d "$_ax_include_path" && continue
  11567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua headers in" >&5
  11568. $as_echo_n "checking for Lua headers in... " >&6; }
  11569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_include_path" >&5
  11570. $as_echo "$_ax_include_path" >&6; }
  11571. { ac_cv_header_lua_h=; unset ac_cv_header_lua_h;}
  11572. { ac_cv_header_lualib_h=; unset ac_cv_header_lualib_h;}
  11573. { ac_cv_header_lauxlib_h=; unset ac_cv_header_lauxlib_h;}
  11574. { ac_cv_header_luaconf_h=; unset ac_cv_header_luaconf_h;}
  11575. _ax_lua_saved_cppflags=$CPPFLAGS
  11576. CPPFLAGS="$CPPFLAGS -I$_ax_include_path"
  11577. for ac_header in lua.h lualib.h lauxlib.h luaconf.h
  11578. do :
  11579. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11580. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11581. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11582. cat >>confdefs.h <<_ACEOF
  11583. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11584. _ACEOF
  11585. fi
  11586. done
  11587. CPPFLAGS=$_ax_lua_saved_cppflags
  11588. if test "x$ac_cv_header_lua_h" = 'xyes'; then :
  11589. LUA_INCLUDE="-I$_ax_include_path"
  11590. break
  11591. fi
  11592. done
  11593. fi
  11594. if test "x$ac_cv_header_lua_h" = 'xyes'; then :
  11595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua header version" >&5
  11596. $as_echo_n "checking for Lua header version... " >&6; }
  11597. if ${ax_cv_lua_header_version+:} false; then :
  11598. $as_echo_n "(cached) " >&6
  11599. else
  11600. _ax_lua_saved_cppflags=$CPPFLAGS
  11601. CPPFLAGS="$CPPFLAGS $LUA_INCLUDE"
  11602. if test "$cross_compiling" = yes; then :
  11603. ax_cv_lua_header_version=$LUA_VERSION
  11604. else
  11605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11606. /* end confdefs.h. */
  11607. #include <lua.h>
  11608. #include <stdlib.h>
  11609. #include <stdio.h>
  11610. int main(int argc, char ** argv)
  11611. {
  11612. if(argc > 1) printf("%s", LUA_VERSION);
  11613. exit(EXIT_SUCCESS);
  11614. }
  11615. _ACEOF
  11616. if ac_fn_c_try_run "$LINENO"; then :
  11617. ax_cv_lua_header_version=`./conftest$EXEEXT p | \
  11618. sed "s|^Lua \(.*\)|\1|" | \
  11619. grep -o "^[0-9]\+\\.[0-9]\+"`
  11620. else
  11621. ax_cv_lua_header_version='unknown'
  11622. fi
  11623. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11624. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11625. fi
  11626. CPPFLAGS=$_ax_lua_saved_cppflags
  11627. fi
  11628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_header_version" >&5
  11629. $as_echo "$ax_cv_lua_header_version" >&6; }
  11630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Lua header version matches $LUA_VERSION" >&5
  11631. $as_echo_n "checking if Lua header version matches $LUA_VERSION... " >&6; }
  11632. if test "x$ax_cv_lua_header_version" = "x$LUA_VERSION"; then :
  11633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11634. $as_echo "yes" >&6; }
  11635. ax_header_version_match='yes'
  11636. else
  11637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11638. $as_echo "no" >&6; }
  11639. ax_header_version_match='no'
  11640. fi
  11641. fi
  11642. if test "x$ax_header_version_match" != 'xyes' &&
  11643. test "x$LUA_INCLUDE" != 'x'; then :
  11644. as_fn_error $? "cannot find headers for specified LUA_INCLUDE" "$LINENO" 5
  11645. fi
  11646. if test "x$ax_header_version_match" = 'xyes'; then :
  11647. else
  11648. as_fn_error $? "cannot find Lua includes" "$LINENO" 5
  11649. fi
  11650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LUA_VERSION is defined" >&5
  11651. $as_echo_n "checking if LUA_VERSION is defined... " >&6; }
  11652. if test "x$LUA_VERSION" != 'x'; then :
  11653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11654. $as_echo "yes" >&6; }
  11655. else
  11656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11657. $as_echo "no" >&6; }
  11658. as_fn_error $? "cannot check Lua libs without knowing LUA_VERSION" "$LINENO" 5
  11659. fi
  11660. if test "x$LUA_LIB" != 'x'; then :
  11661. _ax_lua_saved_libs=$LIBS
  11662. LIBS="$LIBS $LUA_LIB"
  11663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_load" >&5
  11664. $as_echo_n "checking for library containing lua_load... " >&6; }
  11665. if ${ac_cv_search_lua_load+:} false; then :
  11666. $as_echo_n "(cached) " >&6
  11667. else
  11668. ac_func_search_save_LIBS=$LIBS
  11669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11670. /* end confdefs.h. */
  11671. /* Override any GCC internal prototype to avoid an error.
  11672. Use char because int might match the return type of a GCC
  11673. builtin and then its argument prototype would still apply. */
  11674. #ifdef __cplusplus
  11675. extern "C"
  11676. #endif
  11677. char lua_load ();
  11678. int
  11679. main ()
  11680. {
  11681. return lua_load ();
  11682. ;
  11683. return 0;
  11684. }
  11685. _ACEOF
  11686. for ac_lib in '' ; do
  11687. if test -z "$ac_lib"; then
  11688. ac_res="none required"
  11689. else
  11690. ac_res=-l$ac_lib
  11691. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11692. fi
  11693. if ac_fn_c_try_link "$LINENO"; then :
  11694. ac_cv_search_lua_load=$ac_res
  11695. fi
  11696. rm -f core conftest.err conftest.$ac_objext \
  11697. conftest$ac_exeext
  11698. if ${ac_cv_search_lua_load+:} false; then :
  11699. break
  11700. fi
  11701. done
  11702. if ${ac_cv_search_lua_load+:} false; then :
  11703. else
  11704. ac_cv_search_lua_load=no
  11705. fi
  11706. rm conftest.$ac_ext
  11707. LIBS=$ac_func_search_save_LIBS
  11708. fi
  11709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_load" >&5
  11710. $as_echo "$ac_cv_search_lua_load" >&6; }
  11711. ac_res=$ac_cv_search_lua_load
  11712. if test "$ac_res" != no; then :
  11713. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11714. _ax_found_lua_libs='yes'
  11715. else
  11716. _ax_found_lua_libs='no'
  11717. fi
  11718. LIBS=$_ax_lua_saved_libs
  11719. if test "x$_ax_found_lua_libs" != 'xyes'; then :
  11720. as_fn_error $? "cannot find libs for specified LUA_LIB" "$LINENO" 5
  11721. fi
  11722. else
  11723. _ax_lua_extra_libs=''
  11724. _ax_lua_saved_libs=$LIBS
  11725. LIBS="$LIBS $LUA_LIB"
  11726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exp" >&5
  11727. $as_echo_n "checking for library containing exp... " >&6; }
  11728. if ${ac_cv_search_exp+:} false; then :
  11729. $as_echo_n "(cached) " >&6
  11730. else
  11731. ac_func_search_save_LIBS=$LIBS
  11732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11733. /* end confdefs.h. */
  11734. /* Override any GCC internal prototype to avoid an error.
  11735. Use char because int might match the return type of a GCC
  11736. builtin and then its argument prototype would still apply. */
  11737. #ifdef __cplusplus
  11738. extern "C"
  11739. #endif
  11740. char exp ();
  11741. int
  11742. main ()
  11743. {
  11744. return exp ();
  11745. ;
  11746. return 0;
  11747. }
  11748. _ACEOF
  11749. for ac_lib in '' m; do
  11750. if test -z "$ac_lib"; then
  11751. ac_res="none required"
  11752. else
  11753. ac_res=-l$ac_lib
  11754. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11755. fi
  11756. if ac_fn_c_try_link "$LINENO"; then :
  11757. ac_cv_search_exp=$ac_res
  11758. fi
  11759. rm -f core conftest.err conftest.$ac_objext \
  11760. conftest$ac_exeext
  11761. if ${ac_cv_search_exp+:} false; then :
  11762. break
  11763. fi
  11764. done
  11765. if ${ac_cv_search_exp+:} false; then :
  11766. else
  11767. ac_cv_search_exp=no
  11768. fi
  11769. rm conftest.$ac_ext
  11770. LIBS=$ac_func_search_save_LIBS
  11771. fi
  11772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exp" >&5
  11773. $as_echo "$ac_cv_search_exp" >&6; }
  11774. ac_res=$ac_cv_search_exp
  11775. if test "$ac_res" != no; then :
  11776. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11777. fi
  11778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  11779. $as_echo_n "checking for library containing dlopen... " >&6; }
  11780. if ${ac_cv_search_dlopen+:} false; then :
  11781. $as_echo_n "(cached) " >&6
  11782. else
  11783. ac_func_search_save_LIBS=$LIBS
  11784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11785. /* end confdefs.h. */
  11786. /* Override any GCC internal prototype to avoid an error.
  11787. Use char because int might match the return type of a GCC
  11788. builtin and then its argument prototype would still apply. */
  11789. #ifdef __cplusplus
  11790. extern "C"
  11791. #endif
  11792. char dlopen ();
  11793. int
  11794. main ()
  11795. {
  11796. return dlopen ();
  11797. ;
  11798. return 0;
  11799. }
  11800. _ACEOF
  11801. for ac_lib in '' dl; do
  11802. if test -z "$ac_lib"; then
  11803. ac_res="none required"
  11804. else
  11805. ac_res=-l$ac_lib
  11806. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11807. fi
  11808. if ac_fn_c_try_link "$LINENO"; then :
  11809. ac_cv_search_dlopen=$ac_res
  11810. fi
  11811. rm -f core conftest.err conftest.$ac_objext \
  11812. conftest$ac_exeext
  11813. if ${ac_cv_search_dlopen+:} false; then :
  11814. break
  11815. fi
  11816. done
  11817. if ${ac_cv_search_dlopen+:} false; then :
  11818. else
  11819. ac_cv_search_dlopen=no
  11820. fi
  11821. rm conftest.$ac_ext
  11822. LIBS=$ac_func_search_save_LIBS
  11823. fi
  11824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  11825. $as_echo "$ac_cv_search_dlopen" >&6; }
  11826. ac_res=$ac_cv_search_dlopen
  11827. if test "$ac_res" != no; then :
  11828. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11829. fi
  11830. LIBS=$_ax_lua_saved_libs
  11831. if test "x$ac_cv_search_exp" != 'xno' &&
  11832. test "x$ac_cv_search_exp" != 'xnone required'; then :
  11833. _ax_lua_extra_libs="$_ax_lua_extra_libs $ac_cv_search_exp"
  11834. fi
  11835. if test "x$ac_cv_search_dlopen" != 'xno' &&
  11836. test "x$ac_cv_search_dlopen" != 'xnone required'; then :
  11837. _ax_lua_extra_libs="$_ax_lua_extra_libs $ac_cv_search_dlopen"
  11838. fi
  11839. _ax_lua_saved_libs=$LIBS
  11840. LIBS="$LIBS $LUA_LIB"
  11841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_load" >&5
  11842. $as_echo_n "checking for library containing lua_load... " >&6; }
  11843. if ${ac_cv_search_lua_load+:} false; then :
  11844. $as_echo_n "(cached) " >&6
  11845. else
  11846. ac_func_search_save_LIBS=$LIBS
  11847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11848. /* end confdefs.h. */
  11849. /* Override any GCC internal prototype to avoid an error.
  11850. Use char because int might match the return type of a GCC
  11851. builtin and then its argument prototype would still apply. */
  11852. #ifdef __cplusplus
  11853. extern "C"
  11854. #endif
  11855. char lua_load ();
  11856. int
  11857. main ()
  11858. {
  11859. return lua_load ();
  11860. ;
  11861. return 0;
  11862. }
  11863. _ACEOF
  11864. for ac_lib in '' lua$LUA_VERSION lua$LUA_SHORT_VERSION lua; do
  11865. if test -z "$ac_lib"; then
  11866. ac_res="none required"
  11867. else
  11868. ac_res=-l$ac_lib
  11869. LIBS="-l$ac_lib $_ax_lua_extra_libs $ac_func_search_save_LIBS"
  11870. fi
  11871. if ac_fn_c_try_link "$LINENO"; then :
  11872. ac_cv_search_lua_load=$ac_res
  11873. fi
  11874. rm -f core conftest.err conftest.$ac_objext \
  11875. conftest$ac_exeext
  11876. if ${ac_cv_search_lua_load+:} false; then :
  11877. break
  11878. fi
  11879. done
  11880. if ${ac_cv_search_lua_load+:} false; then :
  11881. else
  11882. ac_cv_search_lua_load=no
  11883. fi
  11884. rm conftest.$ac_ext
  11885. LIBS=$ac_func_search_save_LIBS
  11886. fi
  11887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_load" >&5
  11888. $as_echo "$ac_cv_search_lua_load" >&6; }
  11889. ac_res=$ac_cv_search_lua_load
  11890. if test "$ac_res" != no; then :
  11891. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11892. _ax_found_lua_libs='yes'
  11893. else
  11894. _ax_found_lua_libs='no'
  11895. fi
  11896. LIBS=$_ax_lua_saved_libs
  11897. if test "x$ac_cv_search_lua_load" != 'xno' &&
  11898. test "x$ac_cv_search_lua_load" != 'xnone required'; then :
  11899. LUA_LIB="$ac_cv_search_lua_load $_ax_lua_extra_libs"
  11900. fi
  11901. fi
  11902. if test "x$_ax_found_lua_libs" = 'xyes'; then :
  11903. else
  11904. as_fn_error $? "cannot find Lua libs" "$LINENO" 5
  11905. fi
  11906. fi
  11907. ################################
  11908. # Check for the roxml library
  11909. ################################
  11910. # Check whether --with-libroxml was given.
  11911. if test "${with_libroxml+set}" = set; then :
  11912. withval=$with_libroxml; use_roxml=$withval
  11913. else
  11914. use_roxml=no
  11915. fi
  11916. # Check whether --with-libexpat was given.
  11917. if test "${with_libexpat+set}" = set; then :
  11918. withval=$with_libexpat; use_expat=$withval
  11919. else
  11920. use_expat=no
  11921. fi
  11922. # Check whether --with-libxml2 was given.
  11923. if test "${with_libxml2+set}" = set; then :
  11924. withval=$with_libxml2; use_libxml2=$withval
  11925. else
  11926. use_libxml2=no
  11927. fi
  11928. # select the default xml backend
  11929. sel_xml_backends=""
  11930. xml_backend=""
  11931. found_xml_backend=""
  11932. count_xml_backends=0
  11933. if test "x$use_libxml2" != "xno"; then
  11934. sel_xml_backends="$sel_xml_backends libxml2"
  11935. xml_backend="libxml2"
  11936. count_xml_backends=$((count_xml_backends + 1))
  11937. fi
  11938. if test "x$use_roxml" != "xno"; then
  11939. sel_xml_backends="$sel_xml_backends roxml"
  11940. xml_backend="roxml"
  11941. count_xml_backends=$((count_xml_backends + 1))
  11942. fi
  11943. if test "x$use_expat" != "xno"; then
  11944. sel_xml_backends="$sel_xml_backends expat"
  11945. xml_backend="expat"
  11946. count_xml_backends=$((count_xml_backends + 1))
  11947. fi
  11948. if test $count_xml_backends -gt 1; then
  11949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Multiple XML backend has been selected ($sel_xml_backends). I choose $xml_backend" >&5
  11950. $as_echo "$as_me: WARNING: Multiple XML backend has been selected ($sel_xml_backends). I choose $xml_backend" >&2;}
  11951. fi
  11952. if test "x$xml_backend" = "x"; then
  11953. xml_backend="auto"
  11954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No XML backend has been selected: auto check" >&5
  11955. $as_echo "$as_me: WARNING: No XML backend has been selected: auto check" >&2;}
  11956. fi
  11957. case x$xml_backend in
  11958. xroxml)
  11959. use_libxml2="no"
  11960. use_expat="no"
  11961. ;;
  11962. xlibxml2)
  11963. use_roxml="no"
  11964. use_expat="no"
  11965. ;;
  11966. xexpat)
  11967. use_libxml2="no"
  11968. use_roxml="no"
  11969. ;;
  11970. esac
  11971. XML_LDFLAGS=""
  11972. XML_CFLAGS=""
  11973. XML_LIBS=""
  11974. if test "$xml_backend" = "expat" -o "$xml_backend" = "auto"; then
  11975. if test "$xml_backend" = "auto"; then
  11976. # on auto select, we try to detect the library
  11977. use_expat="yes"
  11978. fi
  11979. case x$use_expat in
  11980. xyes)
  11981. # we choose to NOT rely on pkg-config on this one. Instead, we
  11982. # check for the library and the header file - that should be
  11983. # enough.
  11984. ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "/* force include check */
  11985. "
  11986. if test "x$ac_cv_header_expat_h" = xyes; then :
  11987. expat_h_found=yes
  11988. else
  11989. expat_h_found=no
  11990. fi
  11991. if test "x$expat_h_found" != "xyes"; then
  11992. ac_fn_c_check_header_compile "$LINENO" "bsdxml.h" "ac_cv_header_bsdxml_h" "/* force include check */
  11993. "
  11994. if test "x$ac_cv_header_bsdxml_h" = xyes; then :
  11995. expat_h_found=yes
  11996. else
  11997. expat_h_found=no
  11998. fi
  11999. if test "x$expat_h_found" != "xyes"; then
  12000. if test "$xml_backend" = "auto"; then
  12001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find <expat.h> header file" >&5
  12002. $as_echo "$as_me: WARNING: cannot find <expat.h> header file" >&2;}
  12003. else
  12004. as_fn_error $? "cannot find <expat.h> header file" "$LINENO" 5
  12005. fi
  12006. fi
  12007. fi
  12008. XML_CFLAGS=""
  12009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  12010. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  12011. if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
  12012. $as_echo_n "(cached) " >&6
  12013. else
  12014. ac_check_lib_save_LIBS=$LIBS
  12015. LIBS="-lexpat $LIBS"
  12016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12017. /* end confdefs.h. */
  12018. /* Override any GCC internal prototype to avoid an error.
  12019. Use char because int might match the return type of a GCC
  12020. builtin and then its argument prototype would still apply. */
  12021. #ifdef __cplusplus
  12022. extern "C"
  12023. #endif
  12024. char XML_ParserCreate ();
  12025. int
  12026. main ()
  12027. {
  12028. return XML_ParserCreate ();
  12029. ;
  12030. return 0;
  12031. }
  12032. _ACEOF
  12033. if ac_fn_c_try_link "$LINENO"; then :
  12034. ac_cv_lib_expat_XML_ParserCreate=yes
  12035. else
  12036. ac_cv_lib_expat_XML_ParserCreate=no
  12037. fi
  12038. rm -f core conftest.err conftest.$ac_objext \
  12039. conftest$ac_exeext conftest.$ac_ext
  12040. LIBS=$ac_check_lib_save_LIBS
  12041. fi
  12042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  12043. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  12044. if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
  12045. expat_lib_found=yes
  12046. else
  12047. expat_lib_found=no
  12048. fi
  12049. if test "x$expat_lib_found" != "xyes"; then
  12050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lbsdxml" >&5
  12051. $as_echo_n "checking for XML_ParserCreate in -lbsdxml... " >&6; }
  12052. if ${ac_cv_lib_bsdxml_XML_ParserCreate+:} false; then :
  12053. $as_echo_n "(cached) " >&6
  12054. else
  12055. ac_check_lib_save_LIBS=$LIBS
  12056. LIBS="-lbsdxml $LIBS"
  12057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12058. /* end confdefs.h. */
  12059. /* Override any GCC internal prototype to avoid an error.
  12060. Use char because int might match the return type of a GCC
  12061. builtin and then its argument prototype would still apply. */
  12062. #ifdef __cplusplus
  12063. extern "C"
  12064. #endif
  12065. char XML_ParserCreate ();
  12066. int
  12067. main ()
  12068. {
  12069. return XML_ParserCreate ();
  12070. ;
  12071. return 0;
  12072. }
  12073. _ACEOF
  12074. if ac_fn_c_try_link "$LINENO"; then :
  12075. ac_cv_lib_bsdxml_XML_ParserCreate=yes
  12076. else
  12077. ac_cv_lib_bsdxml_XML_ParserCreate=no
  12078. fi
  12079. rm -f core conftest.err conftest.$ac_objext \
  12080. conftest$ac_exeext conftest.$ac_ext
  12081. LIBS=$ac_check_lib_save_LIBS
  12082. fi
  12083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsdxml_XML_ParserCreate" >&5
  12084. $as_echo "$ac_cv_lib_bsdxml_XML_ParserCreate" >&6; }
  12085. if test "x$ac_cv_lib_bsdxml_XML_ParserCreate" = xyes; then :
  12086. expat_lib_found=yes
  12087. else
  12088. expat_lib_found=no
  12089. fi
  12090. if test "x$expat_lib_found" != "xno"; then
  12091. XML_LIBS="-lbsdxml"
  12092. $as_echo "#define HAVE_LIB_BSDXML /**/" >>confdefs.h
  12093. else
  12094. if test "$xml_backend" = "auto"; then
  12095. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find expat library" >&5
  12096. $as_echo "$as_me: WARNING: cannot find expat library" >&2;}
  12097. else
  12098. as_fn_error $? "cannot find expat library" "$LINENO" 5
  12099. fi
  12100. fi
  12101. else
  12102. XML_LIBS="-lexpat"
  12103. fi
  12104. XML_LDFLAGS=""
  12105. $as_echo "#define HAVE_LIB_EXPAT /**/" >>confdefs.h
  12106. xml_backend="found"
  12107. found_xml_backend="expat"
  12108. ;;
  12109. *)
  12110. # this is probably broken. We consider that the user supplied path is
  12111. # a non-standard path. But we're not going to check anything.
  12112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-expat=DIR is probably broken, just trying" >&5
  12113. $as_echo "$as_me: WARNING: --with-expat=DIR is probably broken, just trying" >&2;}
  12114. XML_LDFLAGS="-L${use_expat}/lib"
  12115. XML_CFLAGS="-I${use_expat}/include"
  12116. XML_LIBS="-lexpat"
  12117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expat support" >&5
  12118. $as_echo_n "checking for expat support... " >&6; }
  12119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12120. $as_echo "yes" >&6; }
  12121. { $as_echo "$as_me:${as_lineno-$LINENO}: headers for expat hopefully in ${use_expat}/include" >&5
  12122. $as_echo "$as_me: headers for expat hopefully in ${use_expat}/include" >&6;}
  12123. { $as_echo "$as_me:${as_lineno-$LINENO}: library expat hopefully in ${use_expat}/lib" >&5
  12124. $as_echo "$as_me: library expat hopefully in ${use_expat}/lib" >&6;}
  12125. $as_echo "#define HAVE_LIB_EXPAT /**/" >>confdefs.h
  12126. xml_backend="found"
  12127. found_xml_backend="expat"
  12128. ;;
  12129. esac
  12130. else
  12131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat support" >&5
  12132. $as_echo_n "checking for libexpat support... " >&6; }
  12133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12134. $as_echo "no" >&6; }
  12135. fi
  12136. if test "$xml_backend" = "roxml" -o "$xml_backend" = "auto"; then
  12137. if test "$xml_backend" = "auto"; then
  12138. # on auto select, we try to detect the library
  12139. use_roxml="yes"
  12140. fi
  12141. case x$use_roxml in
  12142. xyes)
  12143. # we choose to NOT rely on pkg-config on this one. We may do it as
  12144. # libroxml provides a .pc file but some environment (both cross-compile
  12145. # or native environment) may lack this support. The good thing is that
  12146. # it doesn't add much complexity to the configure.ac file (and we
  12147. # may move these tests to another m4 file later).
  12148. # the header is installed in the standard path
  12149. ac_fn_c_check_header_compile "$LINENO" "roxml.h" "ac_cv_header_roxml_h" "/* force include check */
  12150. "
  12151. if test "x$ac_cv_header_roxml_h" = xyes; then :
  12152. roxml_h_found=yes
  12153. else
  12154. roxml_h_found=no
  12155. fi
  12156. if test "x$roxml_h_found" != "xyes"; then
  12157. if test "$xml_backend" = "auto"; then
  12158. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find <roxml.h> header file" >&5
  12159. $as_echo "$as_me: WARNING: cannot find <roxml.h> header file" >&2;}
  12160. else
  12161. as_fn_error $? "cannot find <roxml.h> header file" "$LINENO" 5
  12162. fi
  12163. fi
  12164. XML_CFLAGS=""
  12165. # the library is installed in the standard path
  12166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roxml_load_doc in -lroxml" >&5
  12167. $as_echo_n "checking for roxml_load_doc in -lroxml... " >&6; }
  12168. if ${ac_cv_lib_roxml_roxml_load_doc+:} false; then :
  12169. $as_echo_n "(cached) " >&6
  12170. else
  12171. ac_check_lib_save_LIBS=$LIBS
  12172. LIBS="-lroxml $LIBS"
  12173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12174. /* end confdefs.h. */
  12175. /* Override any GCC internal prototype to avoid an error.
  12176. Use char because int might match the return type of a GCC
  12177. builtin and then its argument prototype would still apply. */
  12178. #ifdef __cplusplus
  12179. extern "C"
  12180. #endif
  12181. char roxml_load_doc ();
  12182. int
  12183. main ()
  12184. {
  12185. return roxml_load_doc ();
  12186. ;
  12187. return 0;
  12188. }
  12189. _ACEOF
  12190. if ac_fn_c_try_link "$LINENO"; then :
  12191. ac_cv_lib_roxml_roxml_load_doc=yes
  12192. else
  12193. ac_cv_lib_roxml_roxml_load_doc=no
  12194. fi
  12195. rm -f core conftest.err conftest.$ac_objext \
  12196. conftest$ac_exeext conftest.$ac_ext
  12197. LIBS=$ac_check_lib_save_LIBS
  12198. fi
  12199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roxml_roxml_load_doc" >&5
  12200. $as_echo "$ac_cv_lib_roxml_roxml_load_doc" >&6; }
  12201. if test "x$ac_cv_lib_roxml_roxml_load_doc" = xyes; then :
  12202. roxml_lib_found=yes
  12203. else
  12204. roxml_lib_found=no
  12205. fi
  12206. if test "x$roxml_lib_found" != "xyes"; then
  12207. if test "$xml_backend" = "auto"; then
  12208. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find roxml library" >&5
  12209. $as_echo "$as_me: WARNING: cannot find roxml library" >&2;}
  12210. else
  12211. as_fn_error $? "cannot find roxml library" "$LINENO" 5
  12212. fi
  12213. fi
  12214. XML_LDFLAGS=""
  12215. XML_LIBS="-lroxml"
  12216. $as_echo "#define HAVE_LIB_ROXML /**/" >>confdefs.h
  12217. xml_backend="found"
  12218. found_xml_backend="roxml"
  12219. ;;
  12220. *)
  12221. # first, we check if we're not looking for an alternate include
  12222. # directory -for example, if the user feeds the script with the
  12223. # option --with-roxml=/usr/local
  12224. # NOTE: we search for include/roxml.h and inc/roxml.h to defeat
  12225. # the caching algorithm of the configure script. If someone knows
  12226. # a better way, please do not hesitate
  12227. roxml_CFLAGS="$CFLAGS"
  12228. CFLAGS="$CFLAGS -I${use_roxml}"
  12229. ac_fn_c_check_header_compile "$LINENO" "include/roxml.h" "ac_cv_header_include_roxml_h" "/* force include check */
  12230. "
  12231. if test "x$ac_cv_header_include_roxml_h" = xyes; then :
  12232. roxml_h_found=yes
  12233. else
  12234. roxml_h_found=no
  12235. fi
  12236. if test "x$roxml_h_found" = "xno"; then
  12237. # the directory might be a source directory, so check
  12238. # if the include file is to be found here
  12239. ac_fn_c_check_header_compile "$LINENO" "inc/roxml.h" "ac_cv_header_inc_roxml_h" "/* force include check */
  12240. "
  12241. if test "x$ac_cv_header_inc_roxml_h" = xyes; then :
  12242. roxml_h_found=yes
  12243. else
  12244. roxml_h_found=no
  12245. fi
  12246. if test "x$roxml_h_found" = "xno"; then
  12247. if test "$xml_backend" = "auto"; then
  12248. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find <roxml.h> header file" >&5
  12249. $as_echo "$as_me: WARNING: cannot find <roxml.h> header file" >&2;}
  12250. else
  12251. as_fn_error $? "cannot find <roxml.h> header file" "$LINENO" 5
  12252. fi
  12253. fi
  12254. XML_CFLAGS="-I${use_roxml}/inc"
  12255. { $as_echo "$as_me:${as_lineno-$LINENO}: header file <roxml.h> found in ${use_roxml}/inc" >&5
  12256. $as_echo "$as_me: header file <roxml.h> found in ${use_roxml}/inc" >&6;}
  12257. else
  12258. XML_CFLAGS="-I${use_roxml}/include"
  12259. { $as_echo "$as_me:${as_lineno-$LINENO}: header file <roxml.h> found in ${use_roxml}/include" >&5
  12260. $as_echo "$as_me: header file <roxml.h> found in ${use_roxml}/include" >&6;}
  12261. fi
  12262. CFLAGS="$roxml_CFLAGS"
  12263. # we're doing both previous checks, but we are trying to find a library
  12264. # now, so the check themselves are a bit different
  12265. # NOTE: we search for roxml_load_doc and roxml_close to defeat
  12266. # the caching algorithm of the configure script. If someone knows
  12267. # a better way, please do not hesitate.
  12268. roxml_LDFLAGS="$LDFLAGS"
  12269. LDFLAGS="$LDFLAGS -L${use_roxml}/lib"
  12270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roxml_load_doc in -lroxml" >&5
  12271. $as_echo_n "checking for roxml_load_doc in -lroxml... " >&6; }
  12272. if ${ac_cv_lib_roxml_roxml_load_doc+:} false; then :
  12273. $as_echo_n "(cached) " >&6
  12274. else
  12275. ac_check_lib_save_LIBS=$LIBS
  12276. LIBS="-lroxml $LIBS"
  12277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12278. /* end confdefs.h. */
  12279. /* Override any GCC internal prototype to avoid an error.
  12280. Use char because int might match the return type of a GCC
  12281. builtin and then its argument prototype would still apply. */
  12282. #ifdef __cplusplus
  12283. extern "C"
  12284. #endif
  12285. char roxml_load_doc ();
  12286. int
  12287. main ()
  12288. {
  12289. return roxml_load_doc ();
  12290. ;
  12291. return 0;
  12292. }
  12293. _ACEOF
  12294. if ac_fn_c_try_link "$LINENO"; then :
  12295. ac_cv_lib_roxml_roxml_load_doc=yes
  12296. else
  12297. ac_cv_lib_roxml_roxml_load_doc=no
  12298. fi
  12299. rm -f core conftest.err conftest.$ac_objext \
  12300. conftest$ac_exeext conftest.$ac_ext
  12301. LIBS=$ac_check_lib_save_LIBS
  12302. fi
  12303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roxml_roxml_load_doc" >&5
  12304. $as_echo "$ac_cv_lib_roxml_roxml_load_doc" >&6; }
  12305. if test "x$ac_cv_lib_roxml_roxml_load_doc" = xyes; then :
  12306. roxml_lib_found=yes
  12307. else
  12308. roxml_lib_found=no
  12309. fi
  12310. LDFLAGS=$roxml_LDFLAGS
  12311. if test "x$roxml_lib_found" = "xno"; then
  12312. LDFLAGS="$LDFLAGS -L${use_roxml}"
  12313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roxml_close in -lroxml" >&5
  12314. $as_echo_n "checking for roxml_close in -lroxml... " >&6; }
  12315. if ${ac_cv_lib_roxml_roxml_close+:} false; then :
  12316. $as_echo_n "(cached) " >&6
  12317. else
  12318. ac_check_lib_save_LIBS=$LIBS
  12319. LIBS="-lroxml $LIBS"
  12320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12321. /* end confdefs.h. */
  12322. /* Override any GCC internal prototype to avoid an error.
  12323. Use char because int might match the return type of a GCC
  12324. builtin and then its argument prototype would still apply. */
  12325. #ifdef __cplusplus
  12326. extern "C"
  12327. #endif
  12328. char roxml_close ();
  12329. int
  12330. main ()
  12331. {
  12332. return roxml_close ();
  12333. ;
  12334. return 0;
  12335. }
  12336. _ACEOF
  12337. if ac_fn_c_try_link "$LINENO"; then :
  12338. ac_cv_lib_roxml_roxml_close=yes
  12339. else
  12340. ac_cv_lib_roxml_roxml_close=no
  12341. fi
  12342. rm -f core conftest.err conftest.$ac_objext \
  12343. conftest$ac_exeext conftest.$ac_ext
  12344. LIBS=$ac_check_lib_save_LIBS
  12345. fi
  12346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roxml_roxml_close" >&5
  12347. $as_echo "$ac_cv_lib_roxml_roxml_close" >&6; }
  12348. if test "x$ac_cv_lib_roxml_roxml_close" = xyes; then :
  12349. roxml_lib_found=yes
  12350. else
  12351. roxml_lib_found=no
  12352. fi
  12353. LDFLAGS=$roxml_LDFLAGS
  12354. if test "x$roxml_lib_found" = "xno"; then
  12355. if test "$xml_backend" = "auto"; then
  12356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find roxml library" >&5
  12357. $as_echo "$as_me: WARNING: cannot find roxml library" >&2;}
  12358. else
  12359. as_fn_error $? "cannot find roxml library" "$LINENO" 5
  12360. fi
  12361. fi
  12362. XML_LDFLAGS="-L${use_roxml}"
  12363. XML_LIBS="-lroxml"
  12364. { $as_echo "$as_me:${as_lineno-$LINENO}: library libroxml found in ${use_roxml}" >&5
  12365. $as_echo "$as_me: library libroxml found in ${use_roxml}" >&6;}
  12366. else
  12367. XML_LDFLAGS="-L${use_roxml}/lib"
  12368. XML_LIBS="-lroxml"
  12369. { $as_echo "$as_me:${as_lineno-$LINENO}: library libroxml found in ${use_roxml}/lib" >&5
  12370. $as_echo "$as_me: library libroxml found in ${use_roxml}/lib" >&6;}
  12371. fi
  12372. $as_echo "#define HAVE_LIB_ROXML /**/" >>confdefs.h
  12373. xml_backend="found"
  12374. found_xml_backend="roxml"
  12375. ;;
  12376. esac
  12377. else
  12378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libroxml support" >&5
  12379. $as_echo_n "checking for libroxml support... " >&6; }
  12380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12381. $as_echo "no" >&6; }
  12382. fi
  12383. if test "$xml_backend" = "libxml2" -o "$xml_backend" = "auto"; then
  12384. if test "$xml_backend" = "auto"; then
  12385. # on auto select, we try to detect the library
  12386. use_libxml2="yes"
  12387. fi
  12388. case x$use_libxml2 in
  12389. xyes)
  12390. # I would love to avoid using pkg-config (which may not be available on
  12391. # some compilation environment) but doing so really add a lot of
  12392. # complexity to the system, as the headers don't lie in a standard
  12393. # directory (they lie in a subdirectory of a standard include directory;
  12394. # not the same thing for configure scripts).
  12395. XML_CFLAGS="`pkg-config libxml-2.0 --cflags`"
  12396. XML_LDFLAGS="`pkg-config libxml-2.0 --libs-only-L`"
  12397. XML_LIBS="`pkg-config libxml-2.0 --libs-only-l`"
  12398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDoc in -lxml2" >&5
  12399. $as_echo_n "checking for xmlNewDoc in -lxml2... " >&6; }
  12400. if ${ac_cv_lib_xml2_xmlNewDoc+:} false; then :
  12401. $as_echo_n "(cached) " >&6
  12402. else
  12403. ac_check_lib_save_LIBS=$LIBS
  12404. LIBS="-lxml2 $LIBS"
  12405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12406. /* end confdefs.h. */
  12407. /* Override any GCC internal prototype to avoid an error.
  12408. Use char because int might match the return type of a GCC
  12409. builtin and then its argument prototype would still apply. */
  12410. #ifdef __cplusplus
  12411. extern "C"
  12412. #endif
  12413. char xmlNewDoc ();
  12414. int
  12415. main ()
  12416. {
  12417. return xmlNewDoc ();
  12418. ;
  12419. return 0;
  12420. }
  12421. _ACEOF
  12422. if ac_fn_c_try_link "$LINENO"; then :
  12423. ac_cv_lib_xml2_xmlNewDoc=yes
  12424. else
  12425. ac_cv_lib_xml2_xmlNewDoc=no
  12426. fi
  12427. rm -f core conftest.err conftest.$ac_objext \
  12428. conftest$ac_exeext conftest.$ac_ext
  12429. LIBS=$ac_check_lib_save_LIBS
  12430. fi
  12431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDoc" >&5
  12432. $as_echo "$ac_cv_lib_xml2_xmlNewDoc" >&6; }
  12433. if test "x$ac_cv_lib_xml2_xmlNewDoc" = xyes; then :
  12434. libxml2_lib_found=yes
  12435. else
  12436. libxml2_lib_found=no
  12437. fi
  12438. if test "x$libxml2_lib_found" != "xyes"; then
  12439. if test "$xml_backend" = "auto"; then
  12440. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find libxml2 library" >&5
  12441. $as_echo "$as_me: WARNING: cannot find libxml2 library" >&2;}
  12442. else
  12443. as_fn_error $? "cannot find libxml2 library" "$LINENO" 5
  12444. fi
  12445. fi
  12446. # the header file is installed in a subdirectory of one of the standard
  12447. # include directory. This might prove to be a problem if the cross-
  12448. # compile environment is not complete enough (i.e. if it misses
  12449. # pkg-config, or if pkg-config returns wrong values). In most cases, the
  12450. # environment is likely to be OK so we will never hit any issue.
  12451. xml2_CFLAGS="$CFLAGS"
  12452. CFLAGS="$CFLAGS $XML_CFLAGS"
  12453. ac_fn_c_check_header_compile "$LINENO" "libxml/tree.h" "ac_cv_header_libxml_tree_h" "/* force include check */
  12454. "
  12455. if test "x$ac_cv_header_libxml_tree_h" = xyes; then :
  12456. libxml2_h_found=yes
  12457. else
  12458. libxml2_h_found=no
  12459. fi
  12460. CFLAGS="$xml2_CFLAGS"
  12461. if test "x$libxml2_h_found" != "xyes"; then
  12462. if test "$xml_backend" = "auto"; then
  12463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find libxml2 headers" >&5
  12464. $as_echo "$as_me: WARNING: cannot find libxml2 headers" >&2;}
  12465. else
  12466. as_fn_error $? "cannot find libxml2 headers" "$LINENO" 5
  12467. fi
  12468. fi
  12469. $as_echo "#define HAVE_LIB_LIBXML2 /**/" >>confdefs.h
  12470. xml_backend="found"
  12471. found_xml_backend="libxml2"
  12472. ;;
  12473. *)
  12474. # this is probably broken. We consider that the user supplied path is
  12475. # a non-standard path. But we're not going to check anything.
  12476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libxml2=DIR is probably broken, just trying" >&5
  12477. $as_echo "$as_me: WARNING: --with-libxml2=DIR is probably broken, just trying" >&2;}
  12478. XML_LDFLAGS="-L${use_libxml2}/lib"
  12479. XML_CFLAGS="-I${use_libxml2}/include/libxml2"
  12480. XML_LIBS="-lxml2"
  12481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 support" >&5
  12482. $as_echo_n "checking for libxml2 support... " >&6; }
  12483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12484. $as_echo "yes" >&6; }
  12485. { $as_echo "$as_me:${as_lineno-$LINENO}: headers for libxml2 hopefully in ${use_libxml2}/include/libxml2" >&5
  12486. $as_echo "$as_me: headers for libxml2 hopefully in ${use_libxml2}/include/libxml2" >&6;}
  12487. { $as_echo "$as_me:${as_lineno-$LINENO}: library libxml2 hopefully in ${use_libxml2}/lib" >&5
  12488. $as_echo "$as_me: library libxml2 hopefully in ${use_libxml2}/lib" >&6;}
  12489. $as_echo "#define HAVE_LIB_LIBXML2 /**/" >>confdefs.h
  12490. xml_backend="found"
  12491. found_xml_backend="libxml2"
  12492. ;;
  12493. esac
  12494. else
  12495. # not selected? We print a small message
  12496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 support" >&5
  12497. $as_echo_n "checking for libxml2 support... " >&6; }
  12498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12499. $as_echo "no" >&6; }
  12500. fi
  12501. if test "$xml_backend" != "found"; then
  12502. as_fn_error $? "Failed to find a suitable XML backend" "$LINENO" 5
  12503. fi
  12504. if test $count_xml_backends -eq 0; then
  12505. { $as_echo "$as_me:${as_lineno-$LINENO}: I found a suitable XML backend: $found_xml_backend" >&5
  12506. $as_echo "$as_me: I found a suitable XML backend: $found_xml_backend" >&6;}
  12507. fi
  12508. # LIBXSLT
  12509. # Check whether --with-libxslt was given.
  12510. if test "${with_libxslt+set}" = set; then :
  12511. withval=$with_libxslt; use_libxslt=$withval
  12512. else
  12513. use_libxslt=no
  12514. fi
  12515. if test "x$use_libxslt" != "xno" -a "$found_xml_backend" != "libxml2"; then
  12516. as_fn_error $? "The libxml2 is necessary for libxslt" "$LINENO" 5
  12517. fi
  12518. ################################
  12519. # Check for the libxslt transform engine
  12520. ################################
  12521. if test x$use_libxslt != xno; then
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltApplyStylesheet in -lxslt" >&5
  12523. $as_echo_n "checking for xsltApplyStylesheet in -lxslt... " >&6; }
  12524. if ${ac_cv_lib_xslt_xsltApplyStylesheet+:} false; then :
  12525. $as_echo_n "(cached) " >&6
  12526. else
  12527. ac_check_lib_save_LIBS=$LIBS
  12528. LIBS="-lxslt $LIBS"
  12529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12530. /* end confdefs.h. */
  12531. /* Override any GCC internal prototype to avoid an error.
  12532. Use char because int might match the return type of a GCC
  12533. builtin and then its argument prototype would still apply. */
  12534. #ifdef __cplusplus
  12535. extern "C"
  12536. #endif
  12537. char xsltApplyStylesheet ();
  12538. int
  12539. main ()
  12540. {
  12541. return xsltApplyStylesheet ();
  12542. ;
  12543. return 0;
  12544. }
  12545. _ACEOF
  12546. if ac_fn_c_try_link "$LINENO"; then :
  12547. ac_cv_lib_xslt_xsltApplyStylesheet=yes
  12548. else
  12549. ac_cv_lib_xslt_xsltApplyStylesheet=no
  12550. fi
  12551. rm -f core conftest.err conftest.$ac_objext \
  12552. conftest$ac_exeext conftest.$ac_ext
  12553. LIBS=$ac_check_lib_save_LIBS
  12554. fi
  12555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltApplyStylesheet" >&5
  12556. $as_echo "$ac_cv_lib_xslt_xsltApplyStylesheet" >&6; }
  12557. if test "x$ac_cv_lib_xslt_xsltApplyStylesheet" = xyes; then :
  12558. libxslt_lib_found=yes
  12559. else
  12560. libxslt_lib_found=no
  12561. fi
  12562. if test "x$libxslt_lib_found" != "xyes"; then
  12563. as_fn_error $? "Can't find an XSLT library" "$LINENO" 5
  12564. fi
  12565. XSLT_CFLAGS="`pkg-config libxslt --cflags 2>/dev/null`"
  12566. XSLT_LDFLAGS="`pkg-config libxslt --libs-only-L 2>/dev/null`"
  12567. XSLT_LIBS="`pkg-config libxslt --libs-only-l 2>/dev/null`"
  12568. if test "x${XSLT_LIBS}" = "x"; then
  12569. XSLT_LIBS="-lxslt"
  12570. fi
  12571. XML_CFLAGS="${XML_CFLAGS} ${XSLT_CFLAGS}"
  12572. XML_LDFLAGS="${XML_LDFLAGS} ${XSLT_LDFLAGS}"
  12573. XML_LIBS="${XML_LIBS} ${XSLT_LIBS}"
  12574. $as_echo "#define HAVE_LIB_LIBXSLT /**/" >>confdefs.h
  12575. fi
  12576. ################################
  12577. # Common XML related subst
  12578. ################################
  12579. ################################
  12580. # Search for network functions (like connect())
  12581. ################################
  12582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  12583. $as_echo_n "checking for library containing socket... " >&6; }
  12584. if ${ac_cv_search_socket+:} false; then :
  12585. $as_echo_n "(cached) " >&6
  12586. else
  12587. ac_func_search_save_LIBS=$LIBS
  12588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12589. /* end confdefs.h. */
  12590. /* Override any GCC internal prototype to avoid an error.
  12591. Use char because int might match the return type of a GCC
  12592. builtin and then its argument prototype would still apply. */
  12593. #ifdef __cplusplus
  12594. extern "C"
  12595. #endif
  12596. char socket ();
  12597. int
  12598. main ()
  12599. {
  12600. return socket ();
  12601. ;
  12602. return 0;
  12603. }
  12604. _ACEOF
  12605. for ac_lib in '' socket; do
  12606. if test -z "$ac_lib"; then
  12607. ac_res="none required"
  12608. else
  12609. ac_res=-l$ac_lib
  12610. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12611. fi
  12612. if ac_fn_c_try_link "$LINENO"; then :
  12613. ac_cv_search_socket=$ac_res
  12614. fi
  12615. rm -f core conftest.err conftest.$ac_objext \
  12616. conftest$ac_exeext
  12617. if ${ac_cv_search_socket+:} false; then :
  12618. break
  12619. fi
  12620. done
  12621. if ${ac_cv_search_socket+:} false; then :
  12622. else
  12623. ac_cv_search_socket=no
  12624. fi
  12625. rm conftest.$ac_ext
  12626. LIBS=$ac_func_search_save_LIBS
  12627. fi
  12628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  12629. $as_echo "$ac_cv_search_socket" >&6; }
  12630. ac_res=$ac_cv_search_socket
  12631. if test "$ac_res" != no; then :
  12632. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12633. fi
  12634. ################################
  12635. # Check for regex.h
  12636. ################################
  12637. for ac_header in regex.h
  12638. do :
  12639. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  12640. if test "x$ac_cv_header_regex_h" = xyes; then :
  12641. cat >>confdefs.h <<_ACEOF
  12642. #define HAVE_REGEX_H 1
  12643. _ACEOF
  12644. else
  12645. as_fn_error $? "regex.h not found: regular expressions are not supported" "$LINENO" 5
  12646. fi
  12647. done
  12648. ################################
  12649. # Internal getopt()
  12650. ################################
  12651. # Check whether --with-internal-getopt was given.
  12652. if test "${with_internal_getopt+set}" = set; then :
  12653. withval=$with_internal_getopt;
  12654. else
  12655. with_internal_getopt=no
  12656. fi
  12657. if test x$with_internal_getopt != xno; then
  12658. $as_echo "#define WITH_INTERNAL_GETOPT 1" >>confdefs.h
  12659. case " $LIBOBJS " in
  12660. *" getopt.$ac_objext "* ) ;;
  12661. *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
  12662. ;;
  12663. esac
  12664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use internal implementation of getopt() and getopt_long()" >&5
  12665. $as_echo "$as_me: WARNING: Use internal implementation of getopt() and getopt_long()" >&2;}
  12666. else
  12667. for ac_header in getopt.h
  12668. do :
  12669. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  12670. if test "x$ac_cv_header_getopt_h" = xyes; then :
  12671. cat >>confdefs.h <<_ACEOF
  12672. #define HAVE_GETOPT_H 1
  12673. _ACEOF
  12674. found_getopt_h=yes
  12675. else
  12676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  12677. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  12678. fi
  12679. done
  12680. fi
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long()" >&5
  12682. $as_echo_n "checking for getopt_long()... " >&6; }
  12683. if test x$with_internal_getopt = xyes -o x$found_getopt_h = xyes; then
  12684. $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  12685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12686. $as_echo "yes" >&6; }
  12687. else
  12688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12689. $as_echo "no" >&6; }
  12690. fi
  12691. ################################
  12692. # Check for locale.h
  12693. ################################
  12694. for ac_header in locale.h
  12695. do :
  12696. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  12697. if test "x$ac_cv_header_locale_h" = xyes; then :
  12698. cat >>confdefs.h <<_ACEOF
  12699. #define HAVE_LOCALE_H 1
  12700. _ACEOF
  12701. else
  12702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  12703. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  12704. fi
  12705. done
  12706. ################################
  12707. # Check for CODESET within nl_langinfo
  12708. ################################
  12709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  12710. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  12711. if ${am_cv_langinfo_codeset+:} false; then :
  12712. $as_echo_n "(cached) " >&6
  12713. else
  12714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12715. /* end confdefs.h. */
  12716. #include <langinfo.h>
  12717. int
  12718. main ()
  12719. {
  12720. char* cs = nl_langinfo(CODESET); return !cs;
  12721. ;
  12722. return 0;
  12723. }
  12724. _ACEOF
  12725. if ac_fn_c_try_link "$LINENO"; then :
  12726. am_cv_langinfo_codeset=yes
  12727. else
  12728. am_cv_langinfo_codeset=no
  12729. fi
  12730. rm -f core conftest.err conftest.$ac_objext \
  12731. conftest$ac_exeext conftest.$ac_ext
  12732. fi
  12733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  12734. $as_echo "$am_cv_langinfo_codeset" >&6; }
  12735. if test $am_cv_langinfo_codeset = yes; then
  12736. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  12737. fi
  12738. ################################
  12739. # Check for pwd.h and grp.h
  12740. ################################
  12741. for ac_header in pwd.h
  12742. do :
  12743. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  12744. if test "x$ac_cv_header_pwd_h" = xyes; then :
  12745. cat >>confdefs.h <<_ACEOF
  12746. #define HAVE_PWD_H 1
  12747. _ACEOF
  12748. else
  12749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  12750. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  12751. fi
  12752. done
  12753. for ac_header in grp.h
  12754. do :
  12755. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  12756. if test "x$ac_cv_header_grp_h" = xyes; then :
  12757. cat >>confdefs.h <<_ACEOF
  12758. #define HAVE_GRP_H 1
  12759. _ACEOF
  12760. else
  12761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  12762. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  12763. fi
  12764. done
  12765. ################################
  12766. # Check for chroot
  12767. ################################
  12768. for ac_func in chroot
  12769. do :
  12770. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  12771. if test "x$ac_cv_func_chroot" = xyes; then :
  12772. cat >>confdefs.h <<_ACEOF
  12773. #define HAVE_CHROOT 1
  12774. _ACEOF
  12775. else
  12776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  12777. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  12778. fi
  12779. done
  12780. ################################
  12781. # Check for dlopen
  12782. ################################
  12783. CLISH_PLUGIN_BUILTIN_LIST=
  12784. CLISH_PLUGIN_BUILTIN_DEFS=
  12785. CLISH_PLUGIN_BUILTIN_LIBS=
  12786. for ac_header in dlfcn.h
  12787. do :
  12788. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  12789. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  12790. cat >>confdefs.h <<_ACEOF
  12791. #define HAVE_DLFCN_H 1
  12792. _ACEOF
  12793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  12794. $as_echo_n "checking for library containing dlopen... " >&6; }
  12795. if ${ac_cv_search_dlopen+:} false; then :
  12796. $as_echo_n "(cached) " >&6
  12797. else
  12798. ac_func_search_save_LIBS=$LIBS
  12799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12800. /* end confdefs.h. */
  12801. /* Override any GCC internal prototype to avoid an error.
  12802. Use char because int might match the return type of a GCC
  12803. builtin and then its argument prototype would still apply. */
  12804. #ifdef __cplusplus
  12805. extern "C"
  12806. #endif
  12807. char dlopen ();
  12808. int
  12809. main ()
  12810. {
  12811. return dlopen ();
  12812. ;
  12813. return 0;
  12814. }
  12815. _ACEOF
  12816. for ac_lib in '' dl dld; do
  12817. if test -z "$ac_lib"; then
  12818. ac_res="none required"
  12819. else
  12820. ac_res=-l$ac_lib
  12821. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12822. fi
  12823. if ac_fn_c_try_link "$LINENO"; then :
  12824. ac_cv_search_dlopen=$ac_res
  12825. fi
  12826. rm -f core conftest.err conftest.$ac_objext \
  12827. conftest$ac_exeext
  12828. if ${ac_cv_search_dlopen+:} false; then :
  12829. break
  12830. fi
  12831. done
  12832. if ${ac_cv_search_dlopen+:} false; then :
  12833. else
  12834. ac_cv_search_dlopen=no
  12835. fi
  12836. rm conftest.$ac_ext
  12837. LIBS=$ac_func_search_save_LIBS
  12838. fi
  12839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  12840. $as_echo "$ac_cv_search_dlopen" >&6; }
  12841. ac_res=$ac_cv_search_dlopen
  12842. if test "$ac_res" != no; then :
  12843. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12844. else
  12845. as_fn_error $? "unable to find the dlopen() function" "$LINENO" 5
  12846. fi
  12847. else
  12848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlfcn.h not found: the dl operations is not supported" >&5
  12849. $as_echo "$as_me: WARNING: dlfcn.h not found: the dl operations is not supported" >&2;}
  12850. CLISH_PLUGIN_BUILTIN_LIBS="$CLISH_PLUGIN_BUILTIN_LIBS clish_plugin_clish.la"
  12851. CLISH_PLUGIN_BUILTIN_DEFS="$CLISH_PLUGIN_BUILTIN_DEFS CLISH_PLUGIN_INIT(clish);"
  12852. CLISH_PLUGIN_BUILTIN_LIST="$CLISH_PLUGIN_BUILTIN_LIST { \"clish\", clish_plugin_clish_init },"
  12853. if test x$use_lua != xno; then
  12854. CLISH_PLUGIN_BUILTIN_LIBS="$CLISH_PLUGIN_BUILTIN_LIBS clish_plugin_lua.la"
  12855. CLISH_PLUGIN_BUILTIN_DEFS="$CLISH_PLUGIN_BUILTIN_DEFS CLISH_PLUGIN_INIT(lua);"
  12856. CLISH_PLUGIN_BUILTIN_LIST="$CLISH_PLUGIN_BUILTIN_LIST { \"lua\", clish_plugin_lua_init },"
  12857. fi
  12858. fi
  12859. done
  12860. ac_config_files="$ac_config_files clish/plugin_builtin.c"
  12861. ac_config_files="$ac_config_files Makefile"
  12862. cat >confcache <<\_ACEOF
  12863. # This file is a shell script that caches the results of configure
  12864. # tests run on this system so they can be shared between configure
  12865. # scripts and configure runs, see configure's option --config-cache.
  12866. # It is not useful on other systems. If it contains results you don't
  12867. # want to keep, you may remove or edit it.
  12868. #
  12869. # config.status only pays attention to the cache file if you give it
  12870. # the --recheck option to rerun configure.
  12871. #
  12872. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12873. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12874. # following values.
  12875. _ACEOF
  12876. # The following way of writing the cache mishandles newlines in values,
  12877. # but we know of no workaround that is simple, portable, and efficient.
  12878. # So, we kill variables containing newlines.
  12879. # Ultrix sh set writes to stderr and can't be redirected directly,
  12880. # and sets the high bit in the cache file unless we assign to the vars.
  12881. (
  12882. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12883. eval ac_val=\$$ac_var
  12884. case $ac_val in #(
  12885. *${as_nl}*)
  12886. case $ac_var in #(
  12887. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12888. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12889. esac
  12890. case $ac_var in #(
  12891. _ | IFS | as_nl) ;; #(
  12892. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12893. *) { eval $ac_var=; unset $ac_var;} ;;
  12894. esac ;;
  12895. esac
  12896. done
  12897. (set) 2>&1 |
  12898. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12899. *${as_nl}ac_space=\ *)
  12900. # `set' does not quote correctly, so add quotes: double-quote
  12901. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12902. sed -n \
  12903. "s/'/'\\\\''/g;
  12904. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12905. ;; #(
  12906. *)
  12907. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12908. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12909. ;;
  12910. esac |
  12911. sort
  12912. ) |
  12913. sed '
  12914. /^ac_cv_env_/b end
  12915. t clear
  12916. :clear
  12917. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12918. t end
  12919. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12920. :end' >>confcache
  12921. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12922. if test -w "$cache_file"; then
  12923. if test "x$cache_file" != "x/dev/null"; then
  12924. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12925. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12926. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12927. cat confcache >"$cache_file"
  12928. else
  12929. case $cache_file in #(
  12930. */* | ?:*)
  12931. mv -f confcache "$cache_file"$$ &&
  12932. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12933. *)
  12934. mv -f confcache "$cache_file" ;;
  12935. esac
  12936. fi
  12937. fi
  12938. else
  12939. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12940. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12941. fi
  12942. fi
  12943. rm -f confcache
  12944. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12945. # Let make expand exec_prefix.
  12946. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12947. DEFS=-DHAVE_CONFIG_H
  12948. ac_libobjs=
  12949. ac_ltlibobjs=
  12950. U=
  12951. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12952. # 1. Remove the extension, and $U if already installed.
  12953. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12954. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12955. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12956. # will be set to the directory where LIBOBJS objects are built.
  12957. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12958. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12959. done
  12960. LIBOBJS=$ac_libobjs
  12961. LTLIBOBJS=$ac_ltlibobjs
  12962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12963. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12964. if test -n "$am_sleep_pid"; then
  12965. # Hide warnings about reused PIDs.
  12966. wait $am_sleep_pid 2>/dev/null
  12967. fi
  12968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12969. $as_echo "done" >&6; }
  12970. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12971. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12972. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12973. fi
  12974. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12975. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12976. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12977. fi
  12978. if test -n "$EXEEXT"; then
  12979. am__EXEEXT_TRUE=
  12980. am__EXEEXT_FALSE='#'
  12981. else
  12982. am__EXEEXT_TRUE='#'
  12983. am__EXEEXT_FALSE=
  12984. fi
  12985. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  12986. as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  12987. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12988. fi
  12989. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  12990. as_fn_error $? "conditional \"DEBUG\" was never defined.
  12991. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12992. fi
  12993. if test -z "${LEGACY_TRUE}" && test -z "${LEGACY_FALSE}"; then
  12994. as_fn_error $? "conditional \"LEGACY\" was never defined.
  12995. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12996. fi
  12997. if test -z "${DISABLE_NSS_TRUE}" && test -z "${DISABLE_NSS_FALSE}"; then
  12998. as_fn_error $? "conditional \"DISABLE_NSS\" was never defined.
  12999. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13000. fi
  13001. if test -z "${WITH_LUA_TRUE}" && test -z "${WITH_LUA_FALSE}"; then
  13002. as_fn_error $? "conditional \"WITH_LUA\" was never defined.
  13003. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13004. fi
  13005. : "${CONFIG_STATUS=./config.status}"
  13006. ac_write_fail=0
  13007. ac_clean_files_save=$ac_clean_files
  13008. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13009. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13010. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13011. as_write_fail=0
  13012. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13013. #! $SHELL
  13014. # Generated by $as_me.
  13015. # Run this file to recreate the current configuration.
  13016. # Compiler output produced by configure, useful for debugging
  13017. # configure, is in config.log if it exists.
  13018. debug=false
  13019. ac_cs_recheck=false
  13020. ac_cs_silent=false
  13021. SHELL=\${CONFIG_SHELL-$SHELL}
  13022. export SHELL
  13023. _ASEOF
  13024. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13025. ## -------------------- ##
  13026. ## M4sh Initialization. ##
  13027. ## -------------------- ##
  13028. # Be more Bourne compatible
  13029. DUALCASE=1; export DUALCASE # for MKS sh
  13030. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13031. emulate sh
  13032. NULLCMD=:
  13033. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13034. # is contrary to our usage. Disable this feature.
  13035. alias -g '${1+"$@"}'='"$@"'
  13036. setopt NO_GLOB_SUBST
  13037. else
  13038. case `(set -o) 2>/dev/null` in #(
  13039. *posix*) :
  13040. set -o posix ;; #(
  13041. *) :
  13042. ;;
  13043. esac
  13044. fi
  13045. as_nl='
  13046. '
  13047. export as_nl
  13048. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13049. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13050. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13051. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13052. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13053. # but without wasting forks for bash or zsh.
  13054. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13055. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13056. as_echo='print -r --'
  13057. as_echo_n='print -rn --'
  13058. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13059. as_echo='printf %s\n'
  13060. as_echo_n='printf %s'
  13061. else
  13062. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13063. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13064. as_echo_n='/usr/ucb/echo -n'
  13065. else
  13066. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13067. as_echo_n_body='eval
  13068. arg=$1;
  13069. case $arg in #(
  13070. *"$as_nl"*)
  13071. expr "X$arg" : "X\\(.*\\)$as_nl";
  13072. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13073. esac;
  13074. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13075. '
  13076. export as_echo_n_body
  13077. as_echo_n='sh -c $as_echo_n_body as_echo'
  13078. fi
  13079. export as_echo_body
  13080. as_echo='sh -c $as_echo_body as_echo'
  13081. fi
  13082. # The user is always right.
  13083. if test "${PATH_SEPARATOR+set}" != set; then
  13084. PATH_SEPARATOR=:
  13085. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13086. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13087. PATH_SEPARATOR=';'
  13088. }
  13089. fi
  13090. # IFS
  13091. # We need space, tab and new line, in precisely that order. Quoting is
  13092. # there to prevent editors from complaining about space-tab.
  13093. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13094. # splitting by setting IFS to empty value.)
  13095. IFS=" "" $as_nl"
  13096. # Find who we are. Look in the path if we contain no directory separator.
  13097. as_myself=
  13098. case $0 in #((
  13099. *[\\/]* ) as_myself=$0 ;;
  13100. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13101. for as_dir in $PATH
  13102. do
  13103. IFS=$as_save_IFS
  13104. test -z "$as_dir" && as_dir=.
  13105. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13106. done
  13107. IFS=$as_save_IFS
  13108. ;;
  13109. esac
  13110. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13111. # in which case we are not to be found in the path.
  13112. if test "x$as_myself" = x; then
  13113. as_myself=$0
  13114. fi
  13115. if test ! -f "$as_myself"; then
  13116. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13117. exit 1
  13118. fi
  13119. # Unset variables that we do not need and which cause bugs (e.g. in
  13120. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13121. # suppresses any "Segmentation fault" message there. '((' could
  13122. # trigger a bug in pdksh 5.2.14.
  13123. for as_var in BASH_ENV ENV MAIL MAILPATH
  13124. do eval test x\${$as_var+set} = xset \
  13125. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13126. done
  13127. PS1='$ '
  13128. PS2='> '
  13129. PS4='+ '
  13130. # NLS nuisances.
  13131. LC_ALL=C
  13132. export LC_ALL
  13133. LANGUAGE=C
  13134. export LANGUAGE
  13135. # CDPATH.
  13136. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13137. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13138. # ----------------------------------------
  13139. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13140. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13141. # script with STATUS, using 1 if that was 0.
  13142. as_fn_error ()
  13143. {
  13144. as_status=$1; test $as_status -eq 0 && as_status=1
  13145. if test "$4"; then
  13146. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13147. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13148. fi
  13149. $as_echo "$as_me: error: $2" >&2
  13150. as_fn_exit $as_status
  13151. } # as_fn_error
  13152. # as_fn_set_status STATUS
  13153. # -----------------------
  13154. # Set $? to STATUS, without forking.
  13155. as_fn_set_status ()
  13156. {
  13157. return $1
  13158. } # as_fn_set_status
  13159. # as_fn_exit STATUS
  13160. # -----------------
  13161. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13162. as_fn_exit ()
  13163. {
  13164. set +e
  13165. as_fn_set_status $1
  13166. exit $1
  13167. } # as_fn_exit
  13168. # as_fn_unset VAR
  13169. # ---------------
  13170. # Portably unset VAR.
  13171. as_fn_unset ()
  13172. {
  13173. { eval $1=; unset $1;}
  13174. }
  13175. as_unset=as_fn_unset
  13176. # as_fn_append VAR VALUE
  13177. # ----------------------
  13178. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13179. # advantage of any shell optimizations that allow amortized linear growth over
  13180. # repeated appends, instead of the typical quadratic growth present in naive
  13181. # implementations.
  13182. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13183. eval 'as_fn_append ()
  13184. {
  13185. eval $1+=\$2
  13186. }'
  13187. else
  13188. as_fn_append ()
  13189. {
  13190. eval $1=\$$1\$2
  13191. }
  13192. fi # as_fn_append
  13193. # as_fn_arith ARG...
  13194. # ------------------
  13195. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13196. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13197. # must be portable across $(()) and expr.
  13198. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13199. eval 'as_fn_arith ()
  13200. {
  13201. as_val=$(( $* ))
  13202. }'
  13203. else
  13204. as_fn_arith ()
  13205. {
  13206. as_val=`expr "$@" || test $? -eq 1`
  13207. }
  13208. fi # as_fn_arith
  13209. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13210. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13211. as_expr=expr
  13212. else
  13213. as_expr=false
  13214. fi
  13215. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13216. as_basename=basename
  13217. else
  13218. as_basename=false
  13219. fi
  13220. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13221. as_dirname=dirname
  13222. else
  13223. as_dirname=false
  13224. fi
  13225. as_me=`$as_basename -- "$0" ||
  13226. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13227. X"$0" : 'X\(//\)$' \| \
  13228. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13229. $as_echo X/"$0" |
  13230. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13231. s//\1/
  13232. q
  13233. }
  13234. /^X\/\(\/\/\)$/{
  13235. s//\1/
  13236. q
  13237. }
  13238. /^X\/\(\/\).*/{
  13239. s//\1/
  13240. q
  13241. }
  13242. s/.*/./; q'`
  13243. # Avoid depending upon Character Ranges.
  13244. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13245. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13246. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13247. as_cr_digits='0123456789'
  13248. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13249. ECHO_C= ECHO_N= ECHO_T=
  13250. case `echo -n x` in #(((((
  13251. -n*)
  13252. case `echo 'xy\c'` in
  13253. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13254. xy) ECHO_C='\c';;
  13255. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13256. ECHO_T=' ';;
  13257. esac;;
  13258. *)
  13259. ECHO_N='-n';;
  13260. esac
  13261. rm -f conf$$ conf$$.exe conf$$.file
  13262. if test -d conf$$.dir; then
  13263. rm -f conf$$.dir/conf$$.file
  13264. else
  13265. rm -f conf$$.dir
  13266. mkdir conf$$.dir 2>/dev/null
  13267. fi
  13268. if (echo >conf$$.file) 2>/dev/null; then
  13269. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13270. as_ln_s='ln -s'
  13271. # ... but there are two gotchas:
  13272. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13273. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13274. # In both cases, we have to default to `cp -pR'.
  13275. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13276. as_ln_s='cp -pR'
  13277. elif ln conf$$.file conf$$ 2>/dev/null; then
  13278. as_ln_s=ln
  13279. else
  13280. as_ln_s='cp -pR'
  13281. fi
  13282. else
  13283. as_ln_s='cp -pR'
  13284. fi
  13285. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13286. rmdir conf$$.dir 2>/dev/null
  13287. # as_fn_mkdir_p
  13288. # -------------
  13289. # Create "$as_dir" as a directory, including parents if necessary.
  13290. as_fn_mkdir_p ()
  13291. {
  13292. case $as_dir in #(
  13293. -*) as_dir=./$as_dir;;
  13294. esac
  13295. test -d "$as_dir" || eval $as_mkdir_p || {
  13296. as_dirs=
  13297. while :; do
  13298. case $as_dir in #(
  13299. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13300. *) as_qdir=$as_dir;;
  13301. esac
  13302. as_dirs="'$as_qdir' $as_dirs"
  13303. as_dir=`$as_dirname -- "$as_dir" ||
  13304. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13305. X"$as_dir" : 'X\(//\)[^/]' \| \
  13306. X"$as_dir" : 'X\(//\)$' \| \
  13307. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13308. $as_echo X"$as_dir" |
  13309. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13310. s//\1/
  13311. q
  13312. }
  13313. /^X\(\/\/\)[^/].*/{
  13314. s//\1/
  13315. q
  13316. }
  13317. /^X\(\/\/\)$/{
  13318. s//\1/
  13319. q
  13320. }
  13321. /^X\(\/\).*/{
  13322. s//\1/
  13323. q
  13324. }
  13325. s/.*/./; q'`
  13326. test -d "$as_dir" && break
  13327. done
  13328. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13329. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13330. } # as_fn_mkdir_p
  13331. if mkdir -p . 2>/dev/null; then
  13332. as_mkdir_p='mkdir -p "$as_dir"'
  13333. else
  13334. test -d ./-p && rmdir ./-p
  13335. as_mkdir_p=false
  13336. fi
  13337. # as_fn_executable_p FILE
  13338. # -----------------------
  13339. # Test if FILE is an executable regular file.
  13340. as_fn_executable_p ()
  13341. {
  13342. test -f "$1" && test -x "$1"
  13343. } # as_fn_executable_p
  13344. as_test_x='test -x'
  13345. as_executable_p=as_fn_executable_p
  13346. # Sed expression to map a string onto a valid CPP name.
  13347. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13348. # Sed expression to map a string onto a valid variable name.
  13349. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13350. exec 6>&1
  13351. ## ----------------------------------- ##
  13352. ## Main body of $CONFIG_STATUS script. ##
  13353. ## ----------------------------------- ##
  13354. _ASEOF
  13355. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13356. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13357. # Save the log message, to keep $0 and so on meaningful, and to
  13358. # report actual input values of CONFIG_FILES etc. instead of their
  13359. # values after options handling.
  13360. ac_log="
  13361. This file was extended by klish $as_me 2.2.4, which was
  13362. generated by GNU Autoconf 2.69. Invocation command line was
  13363. CONFIG_FILES = $CONFIG_FILES
  13364. CONFIG_HEADERS = $CONFIG_HEADERS
  13365. CONFIG_LINKS = $CONFIG_LINKS
  13366. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13367. $ $0 $@
  13368. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13369. "
  13370. _ACEOF
  13371. case $ac_config_files in *"
  13372. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13373. esac
  13374. case $ac_config_headers in *"
  13375. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13376. esac
  13377. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13378. # Files that config.status was made for.
  13379. config_files="$ac_config_files"
  13380. config_headers="$ac_config_headers"
  13381. config_commands="$ac_config_commands"
  13382. _ACEOF
  13383. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13384. ac_cs_usage="\
  13385. \`$as_me' instantiates files and other configuration actions
  13386. from templates according to the current configuration. Unless the files
  13387. and actions are specified as TAGs, all are instantiated by default.
  13388. Usage: $0 [OPTION]... [TAG]...
  13389. -h, --help print this help, then exit
  13390. -V, --version print version number and configuration settings, then exit
  13391. --config print configuration, then exit
  13392. -q, --quiet, --silent
  13393. do not print progress messages
  13394. -d, --debug don't remove temporary files
  13395. --recheck update $as_me by reconfiguring in the same conditions
  13396. --file=FILE[:TEMPLATE]
  13397. instantiate the configuration file FILE
  13398. --header=FILE[:TEMPLATE]
  13399. instantiate the configuration header FILE
  13400. Configuration files:
  13401. $config_files
  13402. Configuration headers:
  13403. $config_headers
  13404. Configuration commands:
  13405. $config_commands
  13406. Report bugs to <serj.kalichev at gmail dot com>."
  13407. _ACEOF
  13408. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13409. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13410. ac_cs_version="\\
  13411. klish config.status 2.2.4
  13412. configured by $0, generated by GNU Autoconf 2.69,
  13413. with options \\"\$ac_cs_config\\"
  13414. Copyright (C) 2012 Free Software Foundation, Inc.
  13415. This config.status script is free software; the Free Software Foundation
  13416. gives unlimited permission to copy, distribute and modify it."
  13417. ac_pwd='$ac_pwd'
  13418. srcdir='$srcdir'
  13419. INSTALL='$INSTALL'
  13420. MKDIR_P='$MKDIR_P'
  13421. AWK='$AWK'
  13422. test -n "\$AWK" || AWK=awk
  13423. _ACEOF
  13424. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13425. # The default lists apply if the user does not specify any file.
  13426. ac_need_defaults=:
  13427. while test $# != 0
  13428. do
  13429. case $1 in
  13430. --*=?*)
  13431. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13432. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13433. ac_shift=:
  13434. ;;
  13435. --*=)
  13436. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13437. ac_optarg=
  13438. ac_shift=:
  13439. ;;
  13440. *)
  13441. ac_option=$1
  13442. ac_optarg=$2
  13443. ac_shift=shift
  13444. ;;
  13445. esac
  13446. case $ac_option in
  13447. # Handling of the options.
  13448. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13449. ac_cs_recheck=: ;;
  13450. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13451. $as_echo "$ac_cs_version"; exit ;;
  13452. --config | --confi | --conf | --con | --co | --c )
  13453. $as_echo "$ac_cs_config"; exit ;;
  13454. --debug | --debu | --deb | --de | --d | -d )
  13455. debug=: ;;
  13456. --file | --fil | --fi | --f )
  13457. $ac_shift
  13458. case $ac_optarg in
  13459. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13460. '') as_fn_error $? "missing file argument" ;;
  13461. esac
  13462. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13463. ac_need_defaults=false;;
  13464. --header | --heade | --head | --hea )
  13465. $ac_shift
  13466. case $ac_optarg in
  13467. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13468. esac
  13469. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13470. ac_need_defaults=false;;
  13471. --he | --h)
  13472. # Conflict between --help and --header
  13473. as_fn_error $? "ambiguous option: \`$1'
  13474. Try \`$0 --help' for more information.";;
  13475. --help | --hel | -h )
  13476. $as_echo "$ac_cs_usage"; exit ;;
  13477. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13478. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13479. ac_cs_silent=: ;;
  13480. # This is an error.
  13481. -*) as_fn_error $? "unrecognized option: \`$1'
  13482. Try \`$0 --help' for more information." ;;
  13483. *) as_fn_append ac_config_targets " $1"
  13484. ac_need_defaults=false ;;
  13485. esac
  13486. shift
  13487. done
  13488. ac_configure_extra_args=
  13489. if $ac_cs_silent; then
  13490. exec 6>/dev/null
  13491. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13492. fi
  13493. _ACEOF
  13494. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13495. if \$ac_cs_recheck; then
  13496. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13497. shift
  13498. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13499. CONFIG_SHELL='$SHELL'
  13500. export CONFIG_SHELL
  13501. exec "\$@"
  13502. fi
  13503. _ACEOF
  13504. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13505. exec 5>>config.log
  13506. {
  13507. echo
  13508. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13509. ## Running $as_me. ##
  13510. _ASBOX
  13511. $as_echo "$ac_log"
  13512. } >&5
  13513. _ACEOF
  13514. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13515. #
  13516. # INIT-COMMANDS
  13517. #
  13518. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13519. # if CDPATH is set.
  13520. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13521. sed_quote_subst='$sed_quote_subst'
  13522. double_quote_subst='$double_quote_subst'
  13523. delay_variable_subst='$delay_variable_subst'
  13524. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  13525. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13526. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13527. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13528. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13529. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13530. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13531. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13532. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13533. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  13534. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13535. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13536. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13537. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13538. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13539. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13540. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13541. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13542. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13543. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13544. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13545. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13546. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13547. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13548. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13549. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13550. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13551. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13552. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13553. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13554. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13555. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13556. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13557. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13558. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13559. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13560. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13561. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13562. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13563. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13564. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13565. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13566. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13567. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13568. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13569. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13570. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13571. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13572. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13573. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13574. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13575. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13576. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13577. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13578. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13579. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13580. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13581. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  13582. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13583. 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"`'
  13584. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  13585. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13586. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13587. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  13588. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13589. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13590. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13591. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13592. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13593. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13594. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13595. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13596. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13597. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13598. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13599. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13600. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13601. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13602. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13603. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13604. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13605. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13606. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13607. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13608. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13609. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13610. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13611. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13612. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13613. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13614. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13615. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13616. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13617. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13618. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13619. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13620. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13621. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13622. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13623. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13624. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13625. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13626. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13627. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13628. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13629. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13630. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13631. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13632. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13633. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13634. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13635. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13636. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13637. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13638. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13639. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13640. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13641. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13642. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13643. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13644. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13645. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13646. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13647. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13648. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13649. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13650. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13651. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13652. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  13653. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  13654. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13655. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13656. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13657. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13658. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13659. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13660. LTCC='$LTCC'
  13661. LTCFLAGS='$LTCFLAGS'
  13662. compiler='$compiler_DEFAULT'
  13663. # A function that is used when there is no print builtin or printf.
  13664. func_fallback_echo ()
  13665. {
  13666. eval 'cat <<_LTECHO_EOF
  13667. \$1
  13668. _LTECHO_EOF'
  13669. }
  13670. # Quote evaled strings.
  13671. for var in AS \
  13672. DLLTOOL \
  13673. OBJDUMP \
  13674. SHELL \
  13675. ECHO \
  13676. PATH_SEPARATOR \
  13677. SED \
  13678. GREP \
  13679. EGREP \
  13680. FGREP \
  13681. LD \
  13682. NM \
  13683. LN_S \
  13684. lt_SP2NL \
  13685. lt_NL2SP \
  13686. reload_flag \
  13687. deplibs_check_method \
  13688. file_magic_cmd \
  13689. file_magic_glob \
  13690. want_nocaseglob \
  13691. sharedlib_from_linklib_cmd \
  13692. AR \
  13693. AR_FLAGS \
  13694. archiver_list_spec \
  13695. STRIP \
  13696. RANLIB \
  13697. CC \
  13698. CFLAGS \
  13699. compiler \
  13700. lt_cv_sys_global_symbol_pipe \
  13701. lt_cv_sys_global_symbol_to_cdecl \
  13702. lt_cv_sys_global_symbol_to_import \
  13703. lt_cv_sys_global_symbol_to_c_name_address \
  13704. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13705. lt_cv_nm_interface \
  13706. nm_file_list_spec \
  13707. lt_cv_truncate_bin \
  13708. lt_prog_compiler_no_builtin_flag \
  13709. lt_prog_compiler_pic \
  13710. lt_prog_compiler_wl \
  13711. lt_prog_compiler_static \
  13712. lt_cv_prog_compiler_c_o \
  13713. need_locks \
  13714. MANIFEST_TOOL \
  13715. DSYMUTIL \
  13716. NMEDIT \
  13717. LIPO \
  13718. OTOOL \
  13719. OTOOL64 \
  13720. shrext_cmds \
  13721. export_dynamic_flag_spec \
  13722. whole_archive_flag_spec \
  13723. compiler_needs_object \
  13724. with_gnu_ld \
  13725. allow_undefined_flag \
  13726. no_undefined_flag \
  13727. hardcode_libdir_flag_spec \
  13728. hardcode_libdir_separator \
  13729. exclude_expsyms \
  13730. include_expsyms \
  13731. file_list_spec \
  13732. variables_saved_for_relink \
  13733. libname_spec \
  13734. library_names_spec \
  13735. soname_spec \
  13736. install_override_mode \
  13737. finish_eval \
  13738. old_striplib \
  13739. striplib; do
  13740. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13741. *[\\\\\\\`\\"\\\$]*)
  13742. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13743. ;;
  13744. *)
  13745. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13746. ;;
  13747. esac
  13748. done
  13749. # Double-quote double-evaled strings.
  13750. for var in reload_cmds \
  13751. old_postinstall_cmds \
  13752. old_postuninstall_cmds \
  13753. old_archive_cmds \
  13754. extract_expsyms_cmds \
  13755. old_archive_from_new_cmds \
  13756. old_archive_from_expsyms_cmds \
  13757. archive_cmds \
  13758. archive_expsym_cmds \
  13759. module_cmds \
  13760. module_expsym_cmds \
  13761. export_symbols_cmds \
  13762. prelink_cmds \
  13763. postlink_cmds \
  13764. postinstall_cmds \
  13765. postuninstall_cmds \
  13766. finish_cmds \
  13767. sys_lib_search_path_spec \
  13768. configure_time_dlsearch_path \
  13769. configure_time_lt_sys_library_path; do
  13770. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13771. *[\\\\\\\`\\"\\\$]*)
  13772. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13773. ;;
  13774. *)
  13775. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13776. ;;
  13777. esac
  13778. done
  13779. ac_aux_dir='$ac_aux_dir'
  13780. # See if we are running on zsh, and set the options that allow our
  13781. # commands through without removal of \ escapes INIT.
  13782. if test -n "\${ZSH_VERSION+set}"; then
  13783. setopt NO_GLOB_SUBST
  13784. fi
  13785. PACKAGE='$PACKAGE'
  13786. VERSION='$VERSION'
  13787. RM='$RM'
  13788. ofile='$ofile'
  13789. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  13790. _ACEOF
  13791. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13792. # Handling of arguments.
  13793. for ac_config_target in $ac_config_targets
  13794. do
  13795. case $ac_config_target in
  13796. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13797. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13798. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13799. "clish/plugin_builtin.c") CONFIG_FILES="$CONFIG_FILES clish/plugin_builtin.c" ;;
  13800. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13801. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13802. esac
  13803. done
  13804. # If the user did not use the arguments to specify the items to instantiate,
  13805. # then the envvar interface is used. Set only those that are not.
  13806. # We use the long form for the default assignment because of an extremely
  13807. # bizarre bug on SunOS 4.1.3.
  13808. if $ac_need_defaults; then
  13809. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13810. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13811. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13812. fi
  13813. # Have a temporary directory for convenience. Make it in the build tree
  13814. # simply because there is no reason against having it here, and in addition,
  13815. # creating and moving files from /tmp can sometimes cause problems.
  13816. # Hook for its removal unless debugging.
  13817. # Note that there is a small window in which the directory will not be cleaned:
  13818. # after its creation but before its name has been assigned to `$tmp'.
  13819. $debug ||
  13820. {
  13821. tmp= ac_tmp=
  13822. trap 'exit_status=$?
  13823. : "${ac_tmp:=$tmp}"
  13824. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13825. ' 0
  13826. trap 'as_fn_exit 1' 1 2 13 15
  13827. }
  13828. # Create a (secure) tmp directory for tmp files.
  13829. {
  13830. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13831. test -d "$tmp"
  13832. } ||
  13833. {
  13834. tmp=./conf$$-$RANDOM
  13835. (umask 077 && mkdir "$tmp")
  13836. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13837. ac_tmp=$tmp
  13838. # Set up the scripts for CONFIG_FILES section.
  13839. # No need to generate them if there are no CONFIG_FILES.
  13840. # This happens for instance with `./config.status config.h'.
  13841. if test -n "$CONFIG_FILES"; then
  13842. ac_cr=`echo X | tr X '\015'`
  13843. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13844. # But we know of no other shell where ac_cr would be empty at this
  13845. # point, so we can use a bashism as a fallback.
  13846. if test "x$ac_cr" = x; then
  13847. eval ac_cr=\$\'\\r\'
  13848. fi
  13849. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13850. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13851. ac_cs_awk_cr='\\r'
  13852. else
  13853. ac_cs_awk_cr=$ac_cr
  13854. fi
  13855. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13856. _ACEOF
  13857. {
  13858. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13859. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13860. echo "_ACEOF"
  13861. } >conf$$subs.sh ||
  13862. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13863. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13864. ac_delim='%!_!# '
  13865. for ac_last_try in false false false false false :; do
  13866. . ./conf$$subs.sh ||
  13867. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13868. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13869. if test $ac_delim_n = $ac_delim_num; then
  13870. break
  13871. elif $ac_last_try; then
  13872. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13873. else
  13874. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13875. fi
  13876. done
  13877. rm -f conf$$subs.sh
  13878. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13879. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13880. _ACEOF
  13881. sed -n '
  13882. h
  13883. s/^/S["/; s/!.*/"]=/
  13884. p
  13885. g
  13886. s/^[^!]*!//
  13887. :repl
  13888. t repl
  13889. s/'"$ac_delim"'$//
  13890. t delim
  13891. :nl
  13892. h
  13893. s/\(.\{148\}\)..*/\1/
  13894. t more1
  13895. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13896. p
  13897. n
  13898. b repl
  13899. :more1
  13900. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13901. p
  13902. g
  13903. s/.\{148\}//
  13904. t nl
  13905. :delim
  13906. h
  13907. s/\(.\{148\}\)..*/\1/
  13908. t more2
  13909. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13910. p
  13911. b
  13912. :more2
  13913. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13914. p
  13915. g
  13916. s/.\{148\}//
  13917. t delim
  13918. ' <conf$$subs.awk | sed '
  13919. /^[^""]/{
  13920. N
  13921. s/\n//
  13922. }
  13923. ' >>$CONFIG_STATUS || ac_write_fail=1
  13924. rm -f conf$$subs.awk
  13925. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13926. _ACAWK
  13927. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13928. for (key in S) S_is_set[key] = 1
  13929. FS = ""
  13930. }
  13931. {
  13932. line = $ 0
  13933. nfields = split(line, field, "@")
  13934. substed = 0
  13935. len = length(field[1])
  13936. for (i = 2; i < nfields; i++) {
  13937. key = field[i]
  13938. keylen = length(key)
  13939. if (S_is_set[key]) {
  13940. value = S[key]
  13941. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13942. len += length(value) + length(field[++i])
  13943. substed = 1
  13944. } else
  13945. len += 1 + keylen
  13946. }
  13947. print line
  13948. }
  13949. _ACAWK
  13950. _ACEOF
  13951. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13952. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13953. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13954. else
  13955. cat
  13956. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13957. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13958. _ACEOF
  13959. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13960. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13961. # trailing colons and then remove the whole line if VPATH becomes empty
  13962. # (actually we leave an empty line to preserve line numbers).
  13963. if test "x$srcdir" = x.; then
  13964. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13965. h
  13966. s///
  13967. s/^/:/
  13968. s/[ ]*$/:/
  13969. s/:\$(srcdir):/:/g
  13970. s/:\${srcdir}:/:/g
  13971. s/:@srcdir@:/:/g
  13972. s/^:*//
  13973. s/:*$//
  13974. x
  13975. s/\(=[ ]*\).*/\1/
  13976. G
  13977. s/\n//
  13978. s/^[^=]*=[ ]*$//
  13979. }'
  13980. fi
  13981. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13982. fi # test -n "$CONFIG_FILES"
  13983. # Set up the scripts for CONFIG_HEADERS section.
  13984. # No need to generate them if there are no CONFIG_HEADERS.
  13985. # This happens for instance with `./config.status Makefile'.
  13986. if test -n "$CONFIG_HEADERS"; then
  13987. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13988. BEGIN {
  13989. _ACEOF
  13990. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13991. # here-document in config.status, that substitutes the proper values into
  13992. # config.h.in to produce config.h.
  13993. # Create a delimiter string that does not exist in confdefs.h, to ease
  13994. # handling of long lines.
  13995. ac_delim='%!_!# '
  13996. for ac_last_try in false false :; do
  13997. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13998. if test -z "$ac_tt"; then
  13999. break
  14000. elif $ac_last_try; then
  14001. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14002. else
  14003. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14004. fi
  14005. done
  14006. # For the awk script, D is an array of macro values keyed by name,
  14007. # likewise P contains macro parameters if any. Preserve backslash
  14008. # newline sequences.
  14009. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14010. sed -n '
  14011. s/.\{148\}/&'"$ac_delim"'/g
  14012. t rset
  14013. :rset
  14014. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14015. t def
  14016. d
  14017. :def
  14018. s/\\$//
  14019. t bsnl
  14020. s/["\\]/\\&/g
  14021. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14022. D["\1"]=" \3"/p
  14023. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14024. d
  14025. :bsnl
  14026. s/["\\]/\\&/g
  14027. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14028. D["\1"]=" \3\\\\\\n"\\/p
  14029. t cont
  14030. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14031. t cont
  14032. d
  14033. :cont
  14034. n
  14035. s/.\{148\}/&'"$ac_delim"'/g
  14036. t clear
  14037. :clear
  14038. s/\\$//
  14039. t bsnlc
  14040. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14041. d
  14042. :bsnlc
  14043. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14044. b cont
  14045. ' <confdefs.h | sed '
  14046. s/'"$ac_delim"'/"\\\
  14047. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14048. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14049. for (key in D) D_is_set[key] = 1
  14050. FS = ""
  14051. }
  14052. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14053. line = \$ 0
  14054. split(line, arg, " ")
  14055. if (arg[1] == "#") {
  14056. defundef = arg[2]
  14057. mac1 = arg[3]
  14058. } else {
  14059. defundef = substr(arg[1], 2)
  14060. mac1 = arg[2]
  14061. }
  14062. split(mac1, mac2, "(") #)
  14063. macro = mac2[1]
  14064. prefix = substr(line, 1, index(line, defundef) - 1)
  14065. if (D_is_set[macro]) {
  14066. # Preserve the white space surrounding the "#".
  14067. print prefix "define", macro P[macro] D[macro]
  14068. next
  14069. } else {
  14070. # Replace #undef with comments. This is necessary, for example,
  14071. # in the case of _POSIX_SOURCE, which is predefined and required
  14072. # on some systems where configure will not decide to define it.
  14073. if (defundef == "undef") {
  14074. print "/*", prefix defundef, macro, "*/"
  14075. next
  14076. }
  14077. }
  14078. }
  14079. { print }
  14080. _ACAWK
  14081. _ACEOF
  14082. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14083. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14084. fi # test -n "$CONFIG_HEADERS"
  14085. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14086. shift
  14087. for ac_tag
  14088. do
  14089. case $ac_tag in
  14090. :[FHLC]) ac_mode=$ac_tag; continue;;
  14091. esac
  14092. case $ac_mode$ac_tag in
  14093. :[FHL]*:*);;
  14094. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14095. :[FH]-) ac_tag=-:-;;
  14096. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14097. esac
  14098. ac_save_IFS=$IFS
  14099. IFS=:
  14100. set x $ac_tag
  14101. IFS=$ac_save_IFS
  14102. shift
  14103. ac_file=$1
  14104. shift
  14105. case $ac_mode in
  14106. :L) ac_source=$1;;
  14107. :[FH])
  14108. ac_file_inputs=
  14109. for ac_f
  14110. do
  14111. case $ac_f in
  14112. -) ac_f="$ac_tmp/stdin";;
  14113. *) # Look for the file first in the build tree, then in the source tree
  14114. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14115. # because $ac_f cannot contain `:'.
  14116. test -f "$ac_f" ||
  14117. case $ac_f in
  14118. [\\/$]*) false;;
  14119. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14120. esac ||
  14121. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14122. esac
  14123. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14124. as_fn_append ac_file_inputs " '$ac_f'"
  14125. done
  14126. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14127. # use $as_me), people would be surprised to read:
  14128. # /* config.h. Generated by config.status. */
  14129. configure_input='Generated from '`
  14130. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14131. `' by configure.'
  14132. if test x"$ac_file" != x-; then
  14133. configure_input="$ac_file. $configure_input"
  14134. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14135. $as_echo "$as_me: creating $ac_file" >&6;}
  14136. fi
  14137. # Neutralize special characters interpreted by sed in replacement strings.
  14138. case $configure_input in #(
  14139. *\&* | *\|* | *\\* )
  14140. ac_sed_conf_input=`$as_echo "$configure_input" |
  14141. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14142. *) ac_sed_conf_input=$configure_input;;
  14143. esac
  14144. case $ac_tag in
  14145. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14146. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14147. esac
  14148. ;;
  14149. esac
  14150. ac_dir=`$as_dirname -- "$ac_file" ||
  14151. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14152. X"$ac_file" : 'X\(//\)[^/]' \| \
  14153. X"$ac_file" : 'X\(//\)$' \| \
  14154. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14155. $as_echo X"$ac_file" |
  14156. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14157. s//\1/
  14158. q
  14159. }
  14160. /^X\(\/\/\)[^/].*/{
  14161. s//\1/
  14162. q
  14163. }
  14164. /^X\(\/\/\)$/{
  14165. s//\1/
  14166. q
  14167. }
  14168. /^X\(\/\).*/{
  14169. s//\1/
  14170. q
  14171. }
  14172. s/.*/./; q'`
  14173. as_dir="$ac_dir"; as_fn_mkdir_p
  14174. ac_builddir=.
  14175. case "$ac_dir" in
  14176. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14177. *)
  14178. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14179. # A ".." for each directory in $ac_dir_suffix.
  14180. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14181. case $ac_top_builddir_sub in
  14182. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14183. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14184. esac ;;
  14185. esac
  14186. ac_abs_top_builddir=$ac_pwd
  14187. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14188. # for backward compatibility:
  14189. ac_top_builddir=$ac_top_build_prefix
  14190. case $srcdir in
  14191. .) # We are building in place.
  14192. ac_srcdir=.
  14193. ac_top_srcdir=$ac_top_builddir_sub
  14194. ac_abs_top_srcdir=$ac_pwd ;;
  14195. [\\/]* | ?:[\\/]* ) # Absolute name.
  14196. ac_srcdir=$srcdir$ac_dir_suffix;
  14197. ac_top_srcdir=$srcdir
  14198. ac_abs_top_srcdir=$srcdir ;;
  14199. *) # Relative name.
  14200. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14201. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14202. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14203. esac
  14204. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14205. case $ac_mode in
  14206. :F)
  14207. #
  14208. # CONFIG_FILE
  14209. #
  14210. case $INSTALL in
  14211. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14212. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14213. esac
  14214. ac_MKDIR_P=$MKDIR_P
  14215. case $MKDIR_P in
  14216. [\\/$]* | ?:[\\/]* ) ;;
  14217. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14218. esac
  14219. _ACEOF
  14220. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14221. # If the template does not know about datarootdir, expand it.
  14222. # FIXME: This hack should be removed a few years after 2.60.
  14223. ac_datarootdir_hack=; ac_datarootdir_seen=
  14224. ac_sed_dataroot='
  14225. /datarootdir/ {
  14226. p
  14227. q
  14228. }
  14229. /@datadir@/p
  14230. /@docdir@/p
  14231. /@infodir@/p
  14232. /@localedir@/p
  14233. /@mandir@/p'
  14234. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14235. *datarootdir*) ac_datarootdir_seen=yes;;
  14236. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14238. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14239. _ACEOF
  14240. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14241. ac_datarootdir_hack='
  14242. s&@datadir@&$datadir&g
  14243. s&@docdir@&$docdir&g
  14244. s&@infodir@&$infodir&g
  14245. s&@localedir@&$localedir&g
  14246. s&@mandir@&$mandir&g
  14247. s&\\\${datarootdir}&$datarootdir&g' ;;
  14248. esac
  14249. _ACEOF
  14250. # Neutralize VPATH when `$srcdir' = `.'.
  14251. # Shell code in configure.ac might set extrasub.
  14252. # FIXME: do we really want to maintain this feature?
  14253. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14254. ac_sed_extra="$ac_vpsub
  14255. $extrasub
  14256. _ACEOF
  14257. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14258. :t
  14259. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14260. s|@configure_input@|$ac_sed_conf_input|;t t
  14261. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14262. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14263. s&@srcdir@&$ac_srcdir&;t t
  14264. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14265. s&@top_srcdir@&$ac_top_srcdir&;t t
  14266. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14267. s&@builddir@&$ac_builddir&;t t
  14268. s&@abs_builddir@&$ac_abs_builddir&;t t
  14269. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14270. s&@INSTALL@&$ac_INSTALL&;t t
  14271. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14272. $ac_datarootdir_hack
  14273. "
  14274. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14275. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14276. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14277. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14278. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14279. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14281. which seems to be undefined. Please make sure it is defined" >&5
  14282. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14283. which seems to be undefined. Please make sure it is defined" >&2;}
  14284. rm -f "$ac_tmp/stdin"
  14285. case $ac_file in
  14286. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14287. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14288. esac \
  14289. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14290. ;;
  14291. :H)
  14292. #
  14293. # CONFIG_HEADER
  14294. #
  14295. if test x"$ac_file" != x-; then
  14296. {
  14297. $as_echo "/* $configure_input */" \
  14298. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14299. } >"$ac_tmp/config.h" \
  14300. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14301. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14302. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14303. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14304. else
  14305. rm -f "$ac_file"
  14306. mv "$ac_tmp/config.h" "$ac_file" \
  14307. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14308. fi
  14309. else
  14310. $as_echo "/* $configure_input */" \
  14311. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14312. || as_fn_error $? "could not create -" "$LINENO" 5
  14313. fi
  14314. # Compute "$ac_file"'s index in $config_headers.
  14315. _am_arg="$ac_file"
  14316. _am_stamp_count=1
  14317. for _am_header in $config_headers :; do
  14318. case $_am_header in
  14319. $_am_arg | $_am_arg:* )
  14320. break ;;
  14321. * )
  14322. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14323. esac
  14324. done
  14325. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14326. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14327. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14328. X"$_am_arg" : 'X\(//\)$' \| \
  14329. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14330. $as_echo X"$_am_arg" |
  14331. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14332. s//\1/
  14333. q
  14334. }
  14335. /^X\(\/\/\)[^/].*/{
  14336. s//\1/
  14337. q
  14338. }
  14339. /^X\(\/\/\)$/{
  14340. s//\1/
  14341. q
  14342. }
  14343. /^X\(\/\).*/{
  14344. s//\1/
  14345. q
  14346. }
  14347. s/.*/./; q'`/stamp-h$_am_stamp_count
  14348. ;;
  14349. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14350. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14351. ;;
  14352. esac
  14353. case $ac_file$ac_mode in
  14354. "libtool":C)
  14355. # See if we are running on zsh, and set the options that allow our
  14356. # commands through without removal of \ escapes.
  14357. if test -n "${ZSH_VERSION+set}"; then
  14358. setopt NO_GLOB_SUBST
  14359. fi
  14360. cfgfile=${ofile}T
  14361. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14362. $RM "$cfgfile"
  14363. cat <<_LT_EOF >> "$cfgfile"
  14364. #! $SHELL
  14365. # Generated automatically by $as_me ($PACKAGE) $VERSION
  14366. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14367. # Provide generalized library-building support services.
  14368. # Written by Gordon Matzigkeit, 1996
  14369. # Copyright (C) 2014 Free Software Foundation, Inc.
  14370. # This is free software; see the source for copying conditions. There is NO
  14371. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14372. # GNU Libtool is free software; you can redistribute it and/or modify
  14373. # it under the terms of the GNU General Public License as published by
  14374. # the Free Software Foundation; either version 2 of of the License, or
  14375. # (at your option) any later version.
  14376. #
  14377. # As a special exception to the GNU General Public License, if you
  14378. # distribute this file as part of a program or library that is built
  14379. # using GNU Libtool, you may include this file under the same
  14380. # distribution terms that you use for the rest of that program.
  14381. #
  14382. # GNU Libtool is distributed in the hope that it will be useful, but
  14383. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14384. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14385. # GNU General Public License for more details.
  14386. #
  14387. # You should have received a copy of the GNU General Public License
  14388. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14389. # The names of the tagged configurations supported by this script.
  14390. available_tags=''
  14391. # Configured defaults for sys_lib_dlsearch_path munging.
  14392. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  14393. # ### BEGIN LIBTOOL CONFIG
  14394. # Assembler program.
  14395. AS=$lt_AS
  14396. # DLL creation program.
  14397. DLLTOOL=$lt_DLLTOOL
  14398. # Object dumper program.
  14399. OBJDUMP=$lt_OBJDUMP
  14400. # Which release of libtool.m4 was used?
  14401. macro_version=$macro_version
  14402. macro_revision=$macro_revision
  14403. # Whether or not to build shared libraries.
  14404. build_libtool_libs=$enable_shared
  14405. # Whether or not to build static libraries.
  14406. build_old_libs=$enable_static
  14407. # What type of objects to build.
  14408. pic_mode=$pic_mode
  14409. # Whether or not to optimize for fast installation.
  14410. fast_install=$enable_fast_install
  14411. # Shared archive member basename,for filename based shared library versioning on AIX.
  14412. shared_archive_member_spec=$shared_archive_member_spec
  14413. # Shell to use when invoking shell scripts.
  14414. SHELL=$lt_SHELL
  14415. # An echo program that protects backslashes.
  14416. ECHO=$lt_ECHO
  14417. # The PATH separator for the build system.
  14418. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14419. # The host system.
  14420. host_alias=$host_alias
  14421. host=$host
  14422. host_os=$host_os
  14423. # The build system.
  14424. build_alias=$build_alias
  14425. build=$build
  14426. build_os=$build_os
  14427. # A sed program that does not truncate output.
  14428. SED=$lt_SED
  14429. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14430. Xsed="\$SED -e 1s/^X//"
  14431. # A grep program that handles long lines.
  14432. GREP=$lt_GREP
  14433. # An ERE matcher.
  14434. EGREP=$lt_EGREP
  14435. # A literal string matcher.
  14436. FGREP=$lt_FGREP
  14437. # A BSD- or MS-compatible name lister.
  14438. NM=$lt_NM
  14439. # Whether we need soft or hard links.
  14440. LN_S=$lt_LN_S
  14441. # What is the maximum length of a command?
  14442. max_cmd_len=$max_cmd_len
  14443. # Object file suffix (normally "o").
  14444. objext=$ac_objext
  14445. # Executable file suffix (normally "").
  14446. exeext=$exeext
  14447. # whether the shell understands "unset".
  14448. lt_unset=$lt_unset
  14449. # turn spaces into newlines.
  14450. SP2NL=$lt_lt_SP2NL
  14451. # turn newlines into spaces.
  14452. NL2SP=$lt_lt_NL2SP
  14453. # convert \$build file names to \$host format.
  14454. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14455. # convert \$build files to toolchain format.
  14456. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14457. # Method to check whether dependent libraries are shared objects.
  14458. deplibs_check_method=$lt_deplibs_check_method
  14459. # Command to use when deplibs_check_method = "file_magic".
  14460. file_magic_cmd=$lt_file_magic_cmd
  14461. # How to find potential files when deplibs_check_method = "file_magic".
  14462. file_magic_glob=$lt_file_magic_glob
  14463. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14464. want_nocaseglob=$lt_want_nocaseglob
  14465. # Command to associate shared and link libraries.
  14466. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14467. # The archiver.
  14468. AR=$lt_AR
  14469. # Flags to create an archive.
  14470. AR_FLAGS=$lt_AR_FLAGS
  14471. # How to feed a file listing to the archiver.
  14472. archiver_list_spec=$lt_archiver_list_spec
  14473. # A symbol stripping program.
  14474. STRIP=$lt_STRIP
  14475. # Commands used to install an old-style archive.
  14476. RANLIB=$lt_RANLIB
  14477. old_postinstall_cmds=$lt_old_postinstall_cmds
  14478. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14479. # Whether to use a lock for old archive extraction.
  14480. lock_old_archive_extraction=$lock_old_archive_extraction
  14481. # A C compiler.
  14482. LTCC=$lt_CC
  14483. # LTCC compiler flags.
  14484. LTCFLAGS=$lt_CFLAGS
  14485. # Take the output of nm and produce a listing of raw symbols and C names.
  14486. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14487. # Transform the output of nm in a proper C declaration.
  14488. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14489. # Transform the output of nm into a list of symbols to manually relocate.
  14490. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  14491. # Transform the output of nm in a C name address pair.
  14492. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14493. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14494. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14495. # The name lister interface.
  14496. nm_interface=$lt_lt_cv_nm_interface
  14497. # Specify filename containing input files for \$NM.
  14498. nm_file_list_spec=$lt_nm_file_list_spec
  14499. # The root where to search for dependent libraries,and where our libraries should be installed.
  14500. lt_sysroot=$lt_sysroot
  14501. # Command to truncate a binary pipe.
  14502. lt_truncate_bin=$lt_lt_cv_truncate_bin
  14503. # The name of the directory that contains temporary libtool files.
  14504. objdir=$objdir
  14505. # Used to examine libraries when file_magic_cmd begins with "file".
  14506. MAGIC_CMD=$MAGIC_CMD
  14507. # Must we lock files when doing compilation?
  14508. need_locks=$lt_need_locks
  14509. # Manifest tool.
  14510. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  14511. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14512. DSYMUTIL=$lt_DSYMUTIL
  14513. # Tool to change global to local symbols on Mac OS X.
  14514. NMEDIT=$lt_NMEDIT
  14515. # Tool to manipulate fat objects and archives on Mac OS X.
  14516. LIPO=$lt_LIPO
  14517. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14518. OTOOL=$lt_OTOOL
  14519. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14520. OTOOL64=$lt_OTOOL64
  14521. # Old archive suffix (normally "a").
  14522. libext=$libext
  14523. # Shared library suffix (normally ".so").
  14524. shrext_cmds=$lt_shrext_cmds
  14525. # The commands to extract the exported symbol list from a shared archive.
  14526. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14527. # Variables whose values should be saved in libtool wrapper scripts and
  14528. # restored at link time.
  14529. variables_saved_for_relink=$lt_variables_saved_for_relink
  14530. # Do we need the "lib" prefix for modules?
  14531. need_lib_prefix=$need_lib_prefix
  14532. # Do we need a version for libraries?
  14533. need_version=$need_version
  14534. # Library versioning type.
  14535. version_type=$version_type
  14536. # Shared library runtime path variable.
  14537. runpath_var=$runpath_var
  14538. # Shared library path variable.
  14539. shlibpath_var=$shlibpath_var
  14540. # Is shlibpath searched before the hard-coded library search path?
  14541. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14542. # Format of library name prefix.
  14543. libname_spec=$lt_libname_spec
  14544. # List of archive names. First name is the real one, the rest are links.
  14545. # The last name is the one that the linker finds with -lNAME
  14546. library_names_spec=$lt_library_names_spec
  14547. # The coded name of the library, if different from the real name.
  14548. soname_spec=$lt_soname_spec
  14549. # Permission mode override for installation of shared libraries.
  14550. install_override_mode=$lt_install_override_mode
  14551. # Command to use after installation of a shared archive.
  14552. postinstall_cmds=$lt_postinstall_cmds
  14553. # Command to use after uninstallation of a shared archive.
  14554. postuninstall_cmds=$lt_postuninstall_cmds
  14555. # Commands used to finish a libtool library installation in a directory.
  14556. finish_cmds=$lt_finish_cmds
  14557. # As "finish_cmds", except a single script fragment to be evaled but
  14558. # not shown.
  14559. finish_eval=$lt_finish_eval
  14560. # Whether we should hardcode library paths into libraries.
  14561. hardcode_into_libs=$hardcode_into_libs
  14562. # Compile-time system search path for libraries.
  14563. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14564. # Detected run-time system search path for libraries.
  14565. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  14566. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  14567. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  14568. # Whether dlopen is supported.
  14569. dlopen_support=$enable_dlopen
  14570. # Whether dlopen of programs is supported.
  14571. dlopen_self=$enable_dlopen_self
  14572. # Whether dlopen of statically linked programs is supported.
  14573. dlopen_self_static=$enable_dlopen_self_static
  14574. # Commands to strip libraries.
  14575. old_striplib=$lt_old_striplib
  14576. striplib=$lt_striplib
  14577. # The linker used to build libraries.
  14578. LD=$lt_LD
  14579. # How to create reloadable object files.
  14580. reload_flag=$lt_reload_flag
  14581. reload_cmds=$lt_reload_cmds
  14582. # Commands used to build an old-style archive.
  14583. old_archive_cmds=$lt_old_archive_cmds
  14584. # A language specific compiler.
  14585. CC=$lt_compiler
  14586. # Is the compiler the GNU compiler?
  14587. with_gcc=$GCC
  14588. # Compiler flag to turn off builtin functions.
  14589. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14590. # Additional compiler flags for building library objects.
  14591. pic_flag=$lt_lt_prog_compiler_pic
  14592. # How to pass a linker flag through the compiler.
  14593. wl=$lt_lt_prog_compiler_wl
  14594. # Compiler flag to prevent dynamic linking.
  14595. link_static_flag=$lt_lt_prog_compiler_static
  14596. # Does compiler simultaneously support -c and -o options?
  14597. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14598. # Whether or not to add -lc for building shared libraries.
  14599. build_libtool_need_lc=$archive_cmds_need_lc
  14600. # Whether or not to disallow shared libs when runtime libs are static.
  14601. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14602. # Compiler flag to allow reflexive dlopens.
  14603. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14604. # Compiler flag to generate shared objects directly from archives.
  14605. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14606. # Whether the compiler copes with passing no objects directly.
  14607. compiler_needs_object=$lt_compiler_needs_object
  14608. # Create an old-style archive from a shared archive.
  14609. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14610. # Create a temporary old-style archive to link instead of a shared archive.
  14611. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14612. # Commands used to build a shared archive.
  14613. archive_cmds=$lt_archive_cmds
  14614. archive_expsym_cmds=$lt_archive_expsym_cmds
  14615. # Commands used to build a loadable module if different from building
  14616. # a shared archive.
  14617. module_cmds=$lt_module_cmds
  14618. module_expsym_cmds=$lt_module_expsym_cmds
  14619. # Whether we are building with GNU ld or not.
  14620. with_gnu_ld=$lt_with_gnu_ld
  14621. # Flag that allows shared libraries with undefined symbols to be built.
  14622. allow_undefined_flag=$lt_allow_undefined_flag
  14623. # Flag that enforces no undefined symbols.
  14624. no_undefined_flag=$lt_no_undefined_flag
  14625. # Flag to hardcode \$libdir into a binary during linking.
  14626. # This must work even if \$libdir does not exist
  14627. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14628. # Whether we need a single "-rpath" flag with a separated argument.
  14629. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14630. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14631. # DIR into the resulting binary.
  14632. hardcode_direct=$hardcode_direct
  14633. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14634. # DIR into the resulting binary and the resulting library dependency is
  14635. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  14636. # library is relocated.
  14637. hardcode_direct_absolute=$hardcode_direct_absolute
  14638. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14639. # into the resulting binary.
  14640. hardcode_minus_L=$hardcode_minus_L
  14641. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14642. # into the resulting binary.
  14643. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14644. # Set to "yes" if building a shared library automatically hardcodes DIR
  14645. # into the library and all subsequent libraries and executables linked
  14646. # against it.
  14647. hardcode_automatic=$hardcode_automatic
  14648. # Set to yes if linker adds runtime paths of dependent libraries
  14649. # to runtime path list.
  14650. inherit_rpath=$inherit_rpath
  14651. # Whether libtool must link a program against all its dependency libraries.
  14652. link_all_deplibs=$link_all_deplibs
  14653. # Set to "yes" if exported symbols are required.
  14654. always_export_symbols=$always_export_symbols
  14655. # The commands to list exported symbols.
  14656. export_symbols_cmds=$lt_export_symbols_cmds
  14657. # Symbols that should not be listed in the preloaded symbols.
  14658. exclude_expsyms=$lt_exclude_expsyms
  14659. # Symbols that must always be exported.
  14660. include_expsyms=$lt_include_expsyms
  14661. # Commands necessary for linking programs (against libraries) with templates.
  14662. prelink_cmds=$lt_prelink_cmds
  14663. # Commands necessary for finishing linking programs.
  14664. postlink_cmds=$lt_postlink_cmds
  14665. # Specify filename containing input files.
  14666. file_list_spec=$lt_file_list_spec
  14667. # How to hardcode a shared library path into an executable.
  14668. hardcode_action=$hardcode_action
  14669. # ### END LIBTOOL CONFIG
  14670. _LT_EOF
  14671. cat <<'_LT_EOF' >> "$cfgfile"
  14672. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  14673. # func_munge_path_list VARIABLE PATH
  14674. # -----------------------------------
  14675. # VARIABLE is name of variable containing _space_ separated list of
  14676. # directories to be munged by the contents of PATH, which is string
  14677. # having a format:
  14678. # "DIR[:DIR]:"
  14679. # string "DIR[ DIR]" will be prepended to VARIABLE
  14680. # ":DIR[:DIR]"
  14681. # string "DIR[ DIR]" will be appended to VARIABLE
  14682. # "DIRP[:DIRP]::[DIRA:]DIRA"
  14683. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  14684. # "DIRA[ DIRA]" will be appended to VARIABLE
  14685. # "DIR[:DIR]"
  14686. # VARIABLE will be replaced by "DIR[ DIR]"
  14687. func_munge_path_list ()
  14688. {
  14689. case x$2 in
  14690. x)
  14691. ;;
  14692. *:)
  14693. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  14694. ;;
  14695. x:*)
  14696. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  14697. ;;
  14698. *::*)
  14699. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  14700. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  14701. ;;
  14702. *)
  14703. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  14704. ;;
  14705. esac
  14706. }
  14707. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  14708. func_cc_basename ()
  14709. {
  14710. for cc_temp in $*""; do
  14711. case $cc_temp in
  14712. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14713. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14714. \-*) ;;
  14715. *) break;;
  14716. esac
  14717. done
  14718. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  14719. }
  14720. # ### END FUNCTIONS SHARED WITH CONFIGURE
  14721. _LT_EOF
  14722. case $host_os in
  14723. aix3*)
  14724. cat <<\_LT_EOF >> "$cfgfile"
  14725. # AIX sometimes has problems with the GCC collect2 program. For some
  14726. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14727. # vanish in a puff of smoke.
  14728. if test set != "${COLLECT_NAMES+set}"; then
  14729. COLLECT_NAMES=
  14730. export COLLECT_NAMES
  14731. fi
  14732. _LT_EOF
  14733. ;;
  14734. esac
  14735. ltmain=$ac_aux_dir/ltmain.sh
  14736. # We use sed instead of cat because bash on DJGPP gets confused if
  14737. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14738. # text mode, it properly converts lines to CR/LF. This bash problem
  14739. # is reportedly fixed, but why not run on old versions too?
  14740. sed '$q' "$ltmain" >> "$cfgfile" \
  14741. || (rm -f "$cfgfile"; exit 1)
  14742. mv -f "$cfgfile" "$ofile" ||
  14743. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14744. chmod +x "$ofile"
  14745. ;;
  14746. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14747. # Older Autoconf quotes --file arguments for eval, but not when files
  14748. # are listed without --file. Let's play safe and only enable the eval
  14749. # if we detect the quoting.
  14750. # TODO: see whether this extra hack can be removed once we start
  14751. # requiring Autoconf 2.70 or later.
  14752. case $CONFIG_FILES in #(
  14753. *\'*) :
  14754. eval set x "$CONFIG_FILES" ;; #(
  14755. *) :
  14756. set x $CONFIG_FILES ;; #(
  14757. *) :
  14758. ;;
  14759. esac
  14760. shift
  14761. # Used to flag and report bootstrapping failures.
  14762. am_rc=0
  14763. for am_mf
  14764. do
  14765. # Strip MF so we end up with the name of the file.
  14766. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  14767. # Check whether this is an Automake generated Makefile which includes
  14768. # dependency-tracking related rules and includes.
  14769. # Grep'ing the whole file directly is not great: AIX grep has a line
  14770. # limit of 2048, but all sed's we know have understand at least 4000.
  14771. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  14772. || continue
  14773. am_dirpart=`$as_dirname -- "$am_mf" ||
  14774. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14775. X"$am_mf" : 'X\(//\)[^/]' \| \
  14776. X"$am_mf" : 'X\(//\)$' \| \
  14777. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14778. $as_echo X"$am_mf" |
  14779. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14780. s//\1/
  14781. q
  14782. }
  14783. /^X\(\/\/\)[^/].*/{
  14784. s//\1/
  14785. q
  14786. }
  14787. /^X\(\/\/\)$/{
  14788. s//\1/
  14789. q
  14790. }
  14791. /^X\(\/\).*/{
  14792. s//\1/
  14793. q
  14794. }
  14795. s/.*/./; q'`
  14796. am_filepart=`$as_basename -- "$am_mf" ||
  14797. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  14798. X"$am_mf" : 'X\(//\)$' \| \
  14799. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14800. $as_echo X/"$am_mf" |
  14801. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14802. s//\1/
  14803. q
  14804. }
  14805. /^X\/\(\/\/\)$/{
  14806. s//\1/
  14807. q
  14808. }
  14809. /^X\/\(\/\).*/{
  14810. s//\1/
  14811. q
  14812. }
  14813. s/.*/./; q'`
  14814. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  14815. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14816. | $MAKE -f - am--depfiles" >&5
  14817. (cd "$am_dirpart" \
  14818. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14819. | $MAKE -f - am--depfiles) >&5 2>&5
  14820. ac_status=$?
  14821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14822. (exit $ac_status); } || am_rc=$?
  14823. done
  14824. if test $am_rc -ne 0; then
  14825. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14826. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14827. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  14828. for automatic dependency tracking. Try re-running configure with the
  14829. '--disable-dependency-tracking' option to at least be able to build
  14830. the package (albeit without support for automatic dependency tracking).
  14831. See \`config.log' for more details" "$LINENO" 5; }
  14832. fi
  14833. { am_dirpart=; unset am_dirpart;}
  14834. { am_filepart=; unset am_filepart;}
  14835. { am_mf=; unset am_mf;}
  14836. { am_rc=; unset am_rc;}
  14837. rm -f conftest-deps.mk
  14838. }
  14839. ;;
  14840. esac
  14841. done # for ac_tag
  14842. as_fn_exit 0
  14843. _ACEOF
  14844. ac_clean_files=$ac_clean_files_save
  14845. test $ac_write_fail = 0 ||
  14846. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14847. # configure is writing to config.log, and then calls config.status.
  14848. # config.status does its own redirection, appending to config.log.
  14849. # Unfortunately, on DOS this fails, as config.log is still kept open
  14850. # by configure, so config.status won't be able to write to it; its
  14851. # output is simply discarded. So we exec the FD to /dev/null,
  14852. # effectively closing config.log, so it can be properly (re)opened and
  14853. # appended to by config.status. When coming back to configure, we
  14854. # need to make the FD available again.
  14855. if test "$no_create" != yes; then
  14856. ac_cs_success=:
  14857. ac_config_status_args=
  14858. test "$silent" = yes &&
  14859. ac_config_status_args="$ac_config_status_args --quiet"
  14860. exec 5>/dev/null
  14861. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14862. exec 5>>config.log
  14863. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14864. # would make configure fail if this is the last instruction.
  14865. $ac_cs_success || as_fn_exit 1
  14866. fi
  14867. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14869. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14870. fi