configure 534 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for nutconf 2.0.10.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8. # 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. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error ERROR [LINENO LOG_FD]
  332. # ---------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with status $?, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$?; test $as_status -eq 0 && as_status=1
  339. if test "$3"; then
  340. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  342. fi
  343. $as_echo "$as_me: error: $1" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. # Check that we are running under the correct shell.
  486. SHELL=${CONFIG_SHELL-/bin/sh}
  487. case X$lt_ECHO in
  488. X*--fallback-echo)
  489. # Remove one level of quotation (which was required for Make).
  490. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  491. ;;
  492. esac
  493. ECHO=${lt_ECHO-echo}
  494. if test "X$1" = X--no-reexec; then
  495. # Discard the --no-reexec flag, and continue.
  496. shift
  497. elif test "X$1" = X--fallback-echo; then
  498. # Avoid inline document here, it may be left over
  499. :
  500. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  501. # Yippee, $ECHO works!
  502. :
  503. else
  504. # Restart under the correct shell.
  505. exec $SHELL "$0" --no-reexec ${1+"$@"}
  506. fi
  507. if test "X$1" = X--fallback-echo; then
  508. # used as fallback echo
  509. shift
  510. cat <<_LT_EOF
  511. $*
  512. _LT_EOF
  513. exit 0
  514. fi
  515. # The HP-UX ksh and POSIX shell print the target directory to stdout
  516. # if CDPATH is set.
  517. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  518. if test -z "$lt_ECHO"; then
  519. if test "X${echo_test_string+set}" != Xset; then
  520. # find a string as large as possible, as long as the shell can cope with it
  521. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  522. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  523. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  524. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  525. then
  526. break
  527. fi
  528. done
  529. fi
  530. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  531. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  532. test "X$echo_testing_string" = "X$echo_test_string"; then
  533. :
  534. else
  535. # The Solaris, AIX, and Digital Unix default echo programs unquote
  536. # backslashes. This makes it impossible to quote backslashes using
  537. # echo "$something" | sed 's/\\/\\\\/g'
  538. #
  539. # So, first we look for a working echo in the user's PATH.
  540. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  541. for dir in $PATH /usr/ucb; do
  542. IFS="$lt_save_ifs"
  543. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  544. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  545. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  546. test "X$echo_testing_string" = "X$echo_test_string"; then
  547. ECHO="$dir/echo"
  548. break
  549. fi
  550. done
  551. IFS="$lt_save_ifs"
  552. if test "X$ECHO" = Xecho; then
  553. # We didn't find a better echo, so look for alternatives.
  554. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. # This shell has a builtin print -r that does the trick.
  558. ECHO='print -r'
  559. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  560. test "X$CONFIG_SHELL" != X/bin/ksh; then
  561. # If we have ksh, try running configure again with it.
  562. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  563. export ORIGINAL_CONFIG_SHELL
  564. CONFIG_SHELL=/bin/ksh
  565. export CONFIG_SHELL
  566. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  567. else
  568. # Try using printf.
  569. ECHO='printf %s\n'
  570. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  571. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  572. test "X$echo_testing_string" = "X$echo_test_string"; then
  573. # Cool, printf works
  574. :
  575. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  580. export CONFIG_SHELL
  581. SHELL="$CONFIG_SHELL"
  582. export SHELL
  583. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  584. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  585. test "X$echo_testing_string" = 'X\t' &&
  586. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  587. test "X$echo_testing_string" = "X$echo_test_string"; then
  588. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  589. else
  590. # maybe with a smaller string...
  591. prev=:
  592. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  593. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  594. then
  595. break
  596. fi
  597. prev="$cmd"
  598. done
  599. if test "$prev" != 'sed 50q "$0"'; then
  600. echo_test_string=`eval $prev`
  601. export echo_test_string
  602. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  603. else
  604. # Oops. We lost completely, so just stick with echo.
  605. ECHO=echo
  606. fi
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. # Copy echo and quote the copy suitably for passing to libtool from
  613. # the Makefile, instead of quoting the original, which is used later.
  614. lt_ECHO=$ECHO
  615. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  616. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  617. fi
  618. test -n "$DJDIR" || exec 7<&0 </dev/null
  619. exec 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME='nutconf'
  637. PACKAGE_TARNAME='nutconf'
  638. PACKAGE_VERSION='2.0.10'
  639. PACKAGE_STRING='nutconf 2.0.10'
  640. PACKAGE_BUGREPORT=''
  641. PACKAGE_URL=''
  642. # Factoring default headers for most tests.
  643. ac_includes_default="\
  644. #include <stdio.h>
  645. #ifdef HAVE_SYS_TYPES_H
  646. # include <sys/types.h>
  647. #endif
  648. #ifdef HAVE_SYS_STAT_H
  649. # include <sys/stat.h>
  650. #endif
  651. #ifdef STDC_HEADERS
  652. # include <stdlib.h>
  653. # include <stddef.h>
  654. #else
  655. # ifdef HAVE_STDLIB_H
  656. # include <stdlib.h>
  657. # endif
  658. #endif
  659. #ifdef HAVE_STRING_H
  660. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  661. # include <memory.h>
  662. # endif
  663. # include <string.h>
  664. #endif
  665. #ifdef HAVE_STRINGS_H
  666. # include <strings.h>
  667. #endif
  668. #ifdef HAVE_INTTYPES_H
  669. # include <inttypes.h>
  670. #endif
  671. #ifdef HAVE_STDINT_H
  672. # include <stdint.h>
  673. #endif
  674. #ifdef HAVE_UNISTD_H
  675. # include <unistd.h>
  676. #endif"
  677. ac_subst_vars='am__EXEEXT_FALSE
  678. am__EXEEXT_TRUE
  679. LTLIBOBJS
  680. LIBOBJS
  681. BUILD_NUTCONF_GUI_FALSE
  682. BUILD_NUTCONF_GUI_TRUE
  683. NUTCONF_LIBS
  684. NUTCONF_CFLAGS
  685. PKG_CONFIG
  686. CXXCPP
  687. OTOOL64
  688. OTOOL
  689. LIPO
  690. NMEDIT
  691. DSYMUTIL
  692. lt_ECHO
  693. RANLIB
  694. AR
  695. OBJDUMP
  696. LN_S
  697. NM
  698. ac_ct_DUMPBIN
  699. DUMPBIN
  700. LD
  701. FGREP
  702. EGREP
  703. GREP
  704. SED
  705. host_os
  706. host_vendor
  707. host_cpu
  708. host
  709. build_os
  710. build_vendor
  711. build_cpu
  712. build
  713. LIBTOOL
  714. am__fastdepCXX_FALSE
  715. am__fastdepCXX_TRUE
  716. CXXDEPMODE
  717. ac_ct_CXX
  718. CXXFLAGS
  719. CXX
  720. CPP
  721. WX_LIBS
  722. WX_CXXFLAGS
  723. WX_CPPFLAGS
  724. am__fastdepCC_FALSE
  725. am__fastdepCC_TRUE
  726. CCDEPMODE
  727. AMDEPBACKSLASH
  728. AMDEP_FALSE
  729. AMDEP_TRUE
  730. am__quote
  731. am__include
  732. DEPDIR
  733. OBJEXT
  734. EXEEXT
  735. ac_ct_CC
  736. CPPFLAGS
  737. LDFLAGS
  738. CFLAGS
  739. CC
  740. MAINT
  741. MAINTAINER_MODE_FALSE
  742. MAINTAINER_MODE_TRUE
  743. am__untar
  744. am__tar
  745. AMTAR
  746. am__leading_dot
  747. SET_MAKE
  748. AWK
  749. mkdir_p
  750. MKDIR_P
  751. INSTALL_STRIP_PROGRAM
  752. STRIP
  753. install_sh
  754. MAKEINFO
  755. AUTOHEADER
  756. AUTOMAKE
  757. AUTOCONF
  758. ACLOCAL
  759. VERSION
  760. PACKAGE
  761. CYGPATH_W
  762. am__isrc
  763. INSTALL_DATA
  764. INSTALL_SCRIPT
  765. INSTALL_PROGRAM
  766. AM_BACKSLASH
  767. AM_DEFAULT_VERBOSITY
  768. target_alias
  769. host_alias
  770. build_alias
  771. LIBS
  772. ECHO_T
  773. ECHO_N
  774. ECHO_C
  775. DEFS
  776. mandir
  777. localedir
  778. libdir
  779. psdir
  780. pdfdir
  781. dvidir
  782. htmldir
  783. infodir
  784. docdir
  785. oldincludedir
  786. includedir
  787. localstatedir
  788. sharedstatedir
  789. sysconfdir
  790. datadir
  791. datarootdir
  792. libexecdir
  793. sbindir
  794. bindir
  795. program_transform_name
  796. prefix
  797. exec_prefix
  798. PACKAGE_URL
  799. PACKAGE_BUGREPORT
  800. PACKAGE_STRING
  801. PACKAGE_VERSION
  802. PACKAGE_TARNAME
  803. PACKAGE_NAME
  804. PATH_SEPARATOR
  805. SHELL'
  806. ac_subst_files=''
  807. ac_user_opts='
  808. enable_option_checking
  809. enable_silent_rules
  810. enable_maintainer_mode
  811. enable_dependency_tracking
  812. enable_nutconf_gui
  813. with_wx_config
  814. enable_shared
  815. enable_static
  816. with_pic
  817. enable_fast_install
  818. with_gnu_ld
  819. enable_libtool_lock
  820. '
  821. ac_precious_vars='build_alias
  822. host_alias
  823. target_alias
  824. CC
  825. CFLAGS
  826. LDFLAGS
  827. LIBS
  828. CPPFLAGS
  829. CPP
  830. CXX
  831. CXXFLAGS
  832. CCC
  833. CXXCPP
  834. PKG_CONFIG
  835. NUTCONF_CFLAGS
  836. NUTCONF_LIBS'
  837. # Initialize some variables set by options.
  838. ac_init_help=
  839. ac_init_version=false
  840. ac_unrecognized_opts=
  841. ac_unrecognized_sep=
  842. # The variables have the same names as the options, with
  843. # dashes changed to underlines.
  844. cache_file=/dev/null
  845. exec_prefix=NONE
  846. no_create=
  847. no_recursion=
  848. prefix=NONE
  849. program_prefix=NONE
  850. program_suffix=NONE
  851. program_transform_name=s,x,x,
  852. silent=
  853. site=
  854. srcdir=
  855. verbose=
  856. x_includes=NONE
  857. x_libraries=NONE
  858. # Installation directory options.
  859. # These are left unexpanded so users can "make install exec_prefix=/foo"
  860. # and all the variables that are supposed to be based on exec_prefix
  861. # by default will actually change.
  862. # Use braces instead of parens because sh, perl, etc. also accept them.
  863. # (The list follows the same order as the GNU Coding Standards.)
  864. bindir='${exec_prefix}/bin'
  865. sbindir='${exec_prefix}/sbin'
  866. libexecdir='${exec_prefix}/libexec'
  867. datarootdir='${prefix}/share'
  868. datadir='${datarootdir}'
  869. sysconfdir='${prefix}/etc'
  870. sharedstatedir='${prefix}/com'
  871. localstatedir='${prefix}/var'
  872. includedir='${prefix}/include'
  873. oldincludedir='/usr/include'
  874. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  875. infodir='${datarootdir}/info'
  876. htmldir='${docdir}'
  877. dvidir='${docdir}'
  878. pdfdir='${docdir}'
  879. psdir='${docdir}'
  880. libdir='${exec_prefix}/lib'
  881. localedir='${datarootdir}/locale'
  882. mandir='${datarootdir}/man'
  883. ac_prev=
  884. ac_dashdash=
  885. for ac_option
  886. do
  887. # If the previous option needs an argument, assign it.
  888. if test -n "$ac_prev"; then
  889. eval $ac_prev=\$ac_option
  890. ac_prev=
  891. continue
  892. fi
  893. case $ac_option in
  894. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  895. *) ac_optarg=yes ;;
  896. esac
  897. # Accept the important Cygnus configure options, so we can diagnose typos.
  898. case $ac_dashdash$ac_option in
  899. --)
  900. ac_dashdash=yes ;;
  901. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  902. ac_prev=bindir ;;
  903. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  904. bindir=$ac_optarg ;;
  905. -build | --build | --buil | --bui | --bu)
  906. ac_prev=build_alias ;;
  907. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  908. build_alias=$ac_optarg ;;
  909. -cache-file | --cache-file | --cache-fil | --cache-fi \
  910. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  911. ac_prev=cache_file ;;
  912. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  913. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  914. cache_file=$ac_optarg ;;
  915. --config-cache | -C)
  916. cache_file=config.cache ;;
  917. -datadir | --datadir | --datadi | --datad)
  918. ac_prev=datadir ;;
  919. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  920. datadir=$ac_optarg ;;
  921. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  922. | --dataroo | --dataro | --datar)
  923. ac_prev=datarootdir ;;
  924. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  925. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  926. datarootdir=$ac_optarg ;;
  927. -disable-* | --disable-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. as_fn_error "invalid feature name: $ac_useropt"
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "enable_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval enable_$ac_useropt=no ;;
  942. -docdir | --docdir | --docdi | --doc | --do)
  943. ac_prev=docdir ;;
  944. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  945. docdir=$ac_optarg ;;
  946. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  947. ac_prev=dvidir ;;
  948. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  949. dvidir=$ac_optarg ;;
  950. -enable-* | --enable-*)
  951. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  952. # Reject names that are not valid shell variable names.
  953. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  954. as_fn_error "invalid feature name: $ac_useropt"
  955. ac_useropt_orig=$ac_useropt
  956. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  957. case $ac_user_opts in
  958. *"
  959. "enable_$ac_useropt"
  960. "*) ;;
  961. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  962. ac_unrecognized_sep=', ';;
  963. esac
  964. eval enable_$ac_useropt=\$ac_optarg ;;
  965. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  966. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  967. | --exec | --exe | --ex)
  968. ac_prev=exec_prefix ;;
  969. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  970. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  971. | --exec=* | --exe=* | --ex=*)
  972. exec_prefix=$ac_optarg ;;
  973. -gas | --gas | --ga | --g)
  974. # Obsolete; use --with-gas.
  975. with_gas=yes ;;
  976. -help | --help | --hel | --he | -h)
  977. ac_init_help=long ;;
  978. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  979. ac_init_help=recursive ;;
  980. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  981. ac_init_help=short ;;
  982. -host | --host | --hos | --ho)
  983. ac_prev=host_alias ;;
  984. -host=* | --host=* | --hos=* | --ho=*)
  985. host_alias=$ac_optarg ;;
  986. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  987. ac_prev=htmldir ;;
  988. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  989. | --ht=*)
  990. htmldir=$ac_optarg ;;
  991. -includedir | --includedir | --includedi | --included | --include \
  992. | --includ | --inclu | --incl | --inc)
  993. ac_prev=includedir ;;
  994. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  995. | --includ=* | --inclu=* | --incl=* | --inc=*)
  996. includedir=$ac_optarg ;;
  997. -infodir | --infodir | --infodi | --infod | --info | --inf)
  998. ac_prev=infodir ;;
  999. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1000. infodir=$ac_optarg ;;
  1001. -libdir | --libdir | --libdi | --libd)
  1002. ac_prev=libdir ;;
  1003. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1004. libdir=$ac_optarg ;;
  1005. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1006. | --libexe | --libex | --libe)
  1007. ac_prev=libexecdir ;;
  1008. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1009. | --libexe=* | --libex=* | --libe=*)
  1010. libexecdir=$ac_optarg ;;
  1011. -localedir | --localedir | --localedi | --localed | --locale)
  1012. ac_prev=localedir ;;
  1013. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1014. localedir=$ac_optarg ;;
  1015. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1016. | --localstate | --localstat | --localsta | --localst | --locals)
  1017. ac_prev=localstatedir ;;
  1018. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1019. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1020. localstatedir=$ac_optarg ;;
  1021. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1022. ac_prev=mandir ;;
  1023. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1024. mandir=$ac_optarg ;;
  1025. -nfp | --nfp | --nf)
  1026. # Obsolete; use --without-fp.
  1027. with_fp=no ;;
  1028. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1029. | --no-cr | --no-c | -n)
  1030. no_create=yes ;;
  1031. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1032. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1033. no_recursion=yes ;;
  1034. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1035. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1036. | --oldin | --oldi | --old | --ol | --o)
  1037. ac_prev=oldincludedir ;;
  1038. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1039. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1040. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1041. oldincludedir=$ac_optarg ;;
  1042. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1043. ac_prev=prefix ;;
  1044. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1045. prefix=$ac_optarg ;;
  1046. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1047. | --program-pre | --program-pr | --program-p)
  1048. ac_prev=program_prefix ;;
  1049. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1050. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1051. program_prefix=$ac_optarg ;;
  1052. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1053. | --program-suf | --program-su | --program-s)
  1054. ac_prev=program_suffix ;;
  1055. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1056. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1057. program_suffix=$ac_optarg ;;
  1058. -program-transform-name | --program-transform-name \
  1059. | --program-transform-nam | --program-transform-na \
  1060. | --program-transform-n | --program-transform- \
  1061. | --program-transform | --program-transfor \
  1062. | --program-transfo | --program-transf \
  1063. | --program-trans | --program-tran \
  1064. | --progr-tra | --program-tr | --program-t)
  1065. ac_prev=program_transform_name ;;
  1066. -program-transform-name=* | --program-transform-name=* \
  1067. | --program-transform-nam=* | --program-transform-na=* \
  1068. | --program-transform-n=* | --program-transform-=* \
  1069. | --program-transform=* | --program-transfor=* \
  1070. | --program-transfo=* | --program-transf=* \
  1071. | --program-trans=* | --program-tran=* \
  1072. | --progr-tra=* | --program-tr=* | --program-t=*)
  1073. program_transform_name=$ac_optarg ;;
  1074. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1075. ac_prev=pdfdir ;;
  1076. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1077. pdfdir=$ac_optarg ;;
  1078. -psdir | --psdir | --psdi | --psd | --ps)
  1079. ac_prev=psdir ;;
  1080. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1081. psdir=$ac_optarg ;;
  1082. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1083. | -silent | --silent | --silen | --sile | --sil)
  1084. silent=yes ;;
  1085. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1086. ac_prev=sbindir ;;
  1087. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1088. | --sbi=* | --sb=*)
  1089. sbindir=$ac_optarg ;;
  1090. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1091. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1092. | --sharedst | --shareds | --shared | --share | --shar \
  1093. | --sha | --sh)
  1094. ac_prev=sharedstatedir ;;
  1095. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1096. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1097. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1098. | --sha=* | --sh=*)
  1099. sharedstatedir=$ac_optarg ;;
  1100. -site | --site | --sit)
  1101. ac_prev=site ;;
  1102. -site=* | --site=* | --sit=*)
  1103. site=$ac_optarg ;;
  1104. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1105. ac_prev=srcdir ;;
  1106. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1107. srcdir=$ac_optarg ;;
  1108. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1109. | --syscon | --sysco | --sysc | --sys | --sy)
  1110. ac_prev=sysconfdir ;;
  1111. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1112. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1113. sysconfdir=$ac_optarg ;;
  1114. -target | --target | --targe | --targ | --tar | --ta | --t)
  1115. ac_prev=target_alias ;;
  1116. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1117. target_alias=$ac_optarg ;;
  1118. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1119. verbose=yes ;;
  1120. -version | --version | --versio | --versi | --vers | -V)
  1121. ac_init_version=: ;;
  1122. -with-* | --with-*)
  1123. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1124. # Reject names that are not valid shell variable names.
  1125. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1126. as_fn_error "invalid package name: $ac_useropt"
  1127. ac_useropt_orig=$ac_useropt
  1128. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1129. case $ac_user_opts in
  1130. *"
  1131. "with_$ac_useropt"
  1132. "*) ;;
  1133. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1134. ac_unrecognized_sep=', ';;
  1135. esac
  1136. eval with_$ac_useropt=\$ac_optarg ;;
  1137. -without-* | --without-*)
  1138. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1139. # Reject names that are not valid shell variable names.
  1140. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1141. as_fn_error "invalid package name: $ac_useropt"
  1142. ac_useropt_orig=$ac_useropt
  1143. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1144. case $ac_user_opts in
  1145. *"
  1146. "with_$ac_useropt"
  1147. "*) ;;
  1148. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1149. ac_unrecognized_sep=', ';;
  1150. esac
  1151. eval with_$ac_useropt=no ;;
  1152. --x)
  1153. # Obsolete; use --with-x.
  1154. with_x=yes ;;
  1155. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1156. | --x-incl | --x-inc | --x-in | --x-i)
  1157. ac_prev=x_includes ;;
  1158. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1159. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1160. x_includes=$ac_optarg ;;
  1161. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1162. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1163. ac_prev=x_libraries ;;
  1164. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1165. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1166. x_libraries=$ac_optarg ;;
  1167. -*) as_fn_error "unrecognized option: \`$ac_option'
  1168. Try \`$0 --help' for more information."
  1169. ;;
  1170. *=*)
  1171. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1172. # Reject names that are not valid shell variable names.
  1173. case $ac_envvar in #(
  1174. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1175. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1176. esac
  1177. eval $ac_envvar=\$ac_optarg
  1178. export $ac_envvar ;;
  1179. *)
  1180. # FIXME: should be removed in autoconf 3.0.
  1181. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1182. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1183. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1184. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1185. ;;
  1186. esac
  1187. done
  1188. if test -n "$ac_prev"; then
  1189. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1190. as_fn_error "missing argument to $ac_option"
  1191. fi
  1192. if test -n "$ac_unrecognized_opts"; then
  1193. case $enable_option_checking in
  1194. no) ;;
  1195. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1196. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1197. esac
  1198. fi
  1199. # Check all directory arguments for consistency.
  1200. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1201. datadir sysconfdir sharedstatedir localstatedir includedir \
  1202. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1203. libdir localedir mandir
  1204. do
  1205. eval ac_val=\$$ac_var
  1206. # Remove trailing slashes.
  1207. case $ac_val in
  1208. */ )
  1209. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1210. eval $ac_var=\$ac_val;;
  1211. esac
  1212. # Be sure to have absolute directory names.
  1213. case $ac_val in
  1214. [\\/$]* | ?:[\\/]* ) continue;;
  1215. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1216. esac
  1217. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1218. done
  1219. # There might be people who depend on the old broken behavior: `$host'
  1220. # used to hold the argument of --host etc.
  1221. # FIXME: To remove some day.
  1222. build=$build_alias
  1223. host=$host_alias
  1224. target=$target_alias
  1225. # FIXME: To remove some day.
  1226. if test "x$host_alias" != x; then
  1227. if test "x$build_alias" = x; then
  1228. cross_compiling=maybe
  1229. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1230. If a cross compiler is detected then cross compile mode will be used." >&2
  1231. elif test "x$build_alias" != "x$host_alias"; then
  1232. cross_compiling=yes
  1233. fi
  1234. fi
  1235. ac_tool_prefix=
  1236. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1237. test "$silent" = yes && exec 6>/dev/null
  1238. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1239. ac_ls_di=`ls -di .` &&
  1240. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1241. as_fn_error "working directory cannot be determined"
  1242. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1243. as_fn_error "pwd does not report name of working directory"
  1244. # Find the source files, if location was not specified.
  1245. if test -z "$srcdir"; then
  1246. ac_srcdir_defaulted=yes
  1247. # Try the directory containing this script, then the parent directory.
  1248. ac_confdir=`$as_dirname -- "$as_myself" ||
  1249. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1250. X"$as_myself" : 'X\(//\)[^/]' \| \
  1251. X"$as_myself" : 'X\(//\)$' \| \
  1252. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1253. $as_echo X"$as_myself" |
  1254. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1255. s//\1/
  1256. q
  1257. }
  1258. /^X\(\/\/\)[^/].*/{
  1259. s//\1/
  1260. q
  1261. }
  1262. /^X\(\/\/\)$/{
  1263. s//\1/
  1264. q
  1265. }
  1266. /^X\(\/\).*/{
  1267. s//\1/
  1268. q
  1269. }
  1270. s/.*/./; q'`
  1271. srcdir=$ac_confdir
  1272. if test ! -r "$srcdir/$ac_unique_file"; then
  1273. srcdir=..
  1274. fi
  1275. else
  1276. ac_srcdir_defaulted=no
  1277. fi
  1278. if test ! -r "$srcdir/$ac_unique_file"; then
  1279. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1280. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1281. fi
  1282. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1283. ac_abs_confdir=`(
  1284. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1285. pwd)`
  1286. # When building in place, set srcdir=.
  1287. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1288. srcdir=.
  1289. fi
  1290. # Remove unnecessary trailing slashes from srcdir.
  1291. # Double slashes in file names in object file debugging info
  1292. # mess up M-x gdb in Emacs.
  1293. case $srcdir in
  1294. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1295. esac
  1296. for ac_var in $ac_precious_vars; do
  1297. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1298. eval ac_env_${ac_var}_value=\$${ac_var}
  1299. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1300. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1301. done
  1302. #
  1303. # Report the --help message.
  1304. #
  1305. if test "$ac_init_help" = "long"; then
  1306. # Omit some internal or obsolete options to make the list less imposing.
  1307. # This message is too long to be a string in the A/UX 3.1 sh.
  1308. cat <<_ACEOF
  1309. \`configure' configures nutconf 2.0.10 to adapt to many kinds of systems.
  1310. Usage: $0 [OPTION]... [VAR=VALUE]...
  1311. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1312. VAR=VALUE. See below for descriptions of some of the useful variables.
  1313. Defaults for the options are specified in brackets.
  1314. Configuration:
  1315. -h, --help display this help and exit
  1316. --help=short display options specific to this package
  1317. --help=recursive display the short help of all the included packages
  1318. -V, --version display version information and exit
  1319. -q, --quiet, --silent do not print \`checking...' messages
  1320. --cache-file=FILE cache test results in FILE [disabled]
  1321. -C, --config-cache alias for \`--cache-file=config.cache'
  1322. -n, --no-create do not create output files
  1323. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1324. Installation directories:
  1325. --prefix=PREFIX install architecture-independent files in PREFIX
  1326. [$ac_default_prefix]
  1327. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1328. [PREFIX]
  1329. By default, \`make install' will install all the files in
  1330. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1331. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1332. for instance \`--prefix=\$HOME'.
  1333. For better control, use the options below.
  1334. Fine tuning of the installation directories:
  1335. --bindir=DIR user executables [EPREFIX/bin]
  1336. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1337. --libexecdir=DIR program executables [EPREFIX/libexec]
  1338. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1339. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1340. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1341. --libdir=DIR object code libraries [EPREFIX/lib]
  1342. --includedir=DIR C header files [PREFIX/include]
  1343. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1344. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1345. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1346. --infodir=DIR info documentation [DATAROOTDIR/info]
  1347. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1348. --mandir=DIR man documentation [DATAROOTDIR/man]
  1349. --docdir=DIR documentation root [DATAROOTDIR/doc/nutconf]
  1350. --htmldir=DIR html documentation [DOCDIR]
  1351. --dvidir=DIR dvi documentation [DOCDIR]
  1352. --pdfdir=DIR pdf documentation [DOCDIR]
  1353. --psdir=DIR ps documentation [DOCDIR]
  1354. _ACEOF
  1355. cat <<\_ACEOF
  1356. Program names:
  1357. --program-prefix=PREFIX prepend PREFIX to installed program names
  1358. --program-suffix=SUFFIX append SUFFIX to installed program names
  1359. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1360. System types:
  1361. --build=BUILD configure for building on BUILD [guessed]
  1362. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1363. _ACEOF
  1364. fi
  1365. if test -n "$ac_init_help"; then
  1366. case $ac_init_help in
  1367. short | recursive ) echo "Configuration of nutconf 2.0.10:";;
  1368. esac
  1369. cat <<\_ACEOF
  1370. Optional Features:
  1371. --disable-option-checking ignore unrecognized --enable/--with options
  1372. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1373. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1374. --enable-silent-rules less verbose build output (undo: `make V=1')
  1375. --disable-silent-rules verbose build output (undo: `make V=0')
  1376. --enable-maintainer-mode enable make rules and dependencies not useful
  1377. (and sometimes confusing) to the casual installer
  1378. --disable-dependency-tracking speeds up one-time build
  1379. --enable-dependency-tracking do not reject slow dependency extractors
  1380. --disable-nutconf-gui disable GUI configuration tool build
  1381. --enable-shared[=PKGS] build shared libraries [default=yes]
  1382. --enable-static[=PKGS] build static libraries [default=yes]
  1383. --enable-fast-install[=PKGS]
  1384. optimize for fast installation [default=yes]
  1385. --disable-libtool-lock avoid locking (might break parallel builds)
  1386. Optional Packages:
  1387. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1388. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1389. --with-wx-config=FILE
  1390. Use the given path to wx-config when determining
  1391. wxWidgets configuration; defaults to "wx-config"
  1392. --with-pic try to use only PIC/non-PIC objects [default=use
  1393. both]
  1394. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1395. Some influential environment variables:
  1396. CC C compiler command
  1397. CFLAGS C compiler flags
  1398. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1399. nonstandard directory <lib dir>
  1400. LIBS libraries to pass to the linker, e.g. -l<library>
  1401. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1402. you have headers in a nonstandard directory <include dir>
  1403. CPP C preprocessor
  1404. CXX C++ compiler command
  1405. CXXFLAGS C++ compiler flags
  1406. CXXCPP C++ preprocessor
  1407. PKG_CONFIG path to pkg-config utility
  1408. NUTCONF_CFLAGS
  1409. C compiler flags for NUTCONF, overriding pkg-config
  1410. NUTCONF_LIBS
  1411. linker flags for NUTCONF, overriding pkg-config
  1412. Use these variables to override the choices made by `configure' or to help
  1413. it to find libraries and programs with nonstandard names/locations.
  1414. Report bugs to the package provider.
  1415. _ACEOF
  1416. ac_status=$?
  1417. fi
  1418. if test "$ac_init_help" = "recursive"; then
  1419. # If there are subdirs, report their specific --help.
  1420. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1421. test -d "$ac_dir" ||
  1422. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1423. continue
  1424. ac_builddir=.
  1425. case "$ac_dir" in
  1426. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1427. *)
  1428. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1429. # A ".." for each directory in $ac_dir_suffix.
  1430. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1431. case $ac_top_builddir_sub in
  1432. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1433. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1434. esac ;;
  1435. esac
  1436. ac_abs_top_builddir=$ac_pwd
  1437. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1438. # for backward compatibility:
  1439. ac_top_builddir=$ac_top_build_prefix
  1440. case $srcdir in
  1441. .) # We are building in place.
  1442. ac_srcdir=.
  1443. ac_top_srcdir=$ac_top_builddir_sub
  1444. ac_abs_top_srcdir=$ac_pwd ;;
  1445. [\\/]* | ?:[\\/]* ) # Absolute name.
  1446. ac_srcdir=$srcdir$ac_dir_suffix;
  1447. ac_top_srcdir=$srcdir
  1448. ac_abs_top_srcdir=$srcdir ;;
  1449. *) # Relative name.
  1450. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1451. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1452. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1453. esac
  1454. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1455. cd "$ac_dir" || { ac_status=$?; continue; }
  1456. # Check for guested configure.
  1457. if test -f "$ac_srcdir/configure.gnu"; then
  1458. echo &&
  1459. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1460. elif test -f "$ac_srcdir/configure"; then
  1461. echo &&
  1462. $SHELL "$ac_srcdir/configure" --help=recursive
  1463. else
  1464. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1465. fi || ac_status=$?
  1466. cd "$ac_pwd" || { ac_status=$?; break; }
  1467. done
  1468. fi
  1469. test -n "$ac_init_help" && exit $ac_status
  1470. if $ac_init_version; then
  1471. cat <<\_ACEOF
  1472. nutconf configure 2.0.10
  1473. generated by GNU Autoconf 2.65
  1474. Copyright (C) 2009 Free Software Foundation, Inc.
  1475. This configure script is free software; the Free Software Foundation
  1476. gives unlimited permission to copy, distribute and modify it.
  1477. _ACEOF
  1478. exit
  1479. fi
  1480. ## ------------------------ ##
  1481. ## Autoconf initialization. ##
  1482. ## ------------------------ ##
  1483. # ac_fn_c_try_compile LINENO
  1484. # --------------------------
  1485. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1486. ac_fn_c_try_compile ()
  1487. {
  1488. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1489. rm -f conftest.$ac_objext
  1490. if { { ac_try="$ac_compile"
  1491. case "(($ac_try" in
  1492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1493. *) ac_try_echo=$ac_try;;
  1494. esac
  1495. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1496. $as_echo "$ac_try_echo"; } >&5
  1497. (eval "$ac_compile") 2>conftest.err
  1498. ac_status=$?
  1499. if test -s conftest.err; then
  1500. grep -v '^ *+' conftest.err >conftest.er1
  1501. cat conftest.er1 >&5
  1502. mv -f conftest.er1 conftest.err
  1503. fi
  1504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1505. test $ac_status = 0; } && {
  1506. test -z "$ac_c_werror_flag" ||
  1507. test ! -s conftest.err
  1508. } && test -s conftest.$ac_objext; then :
  1509. ac_retval=0
  1510. else
  1511. $as_echo "$as_me: failed program was:" >&5
  1512. sed 's/^/| /' conftest.$ac_ext >&5
  1513. ac_retval=1
  1514. fi
  1515. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1516. as_fn_set_status $ac_retval
  1517. } # ac_fn_c_try_compile
  1518. # ac_fn_c_try_cpp LINENO
  1519. # ----------------------
  1520. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1521. ac_fn_c_try_cpp ()
  1522. {
  1523. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1524. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1525. case "(($ac_try" in
  1526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1527. *) ac_try_echo=$ac_try;;
  1528. esac
  1529. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1530. $as_echo "$ac_try_echo"; } >&5
  1531. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1532. ac_status=$?
  1533. if test -s conftest.err; then
  1534. grep -v '^ *+' conftest.err >conftest.er1
  1535. cat conftest.er1 >&5
  1536. mv -f conftest.er1 conftest.err
  1537. fi
  1538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1539. test $ac_status = 0; } >/dev/null && {
  1540. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1541. test ! -s conftest.err
  1542. }; then :
  1543. ac_retval=0
  1544. else
  1545. $as_echo "$as_me: failed program was:" >&5
  1546. sed 's/^/| /' conftest.$ac_ext >&5
  1547. ac_retval=1
  1548. fi
  1549. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1550. as_fn_set_status $ac_retval
  1551. } # ac_fn_c_try_cpp
  1552. # ac_fn_cxx_try_compile LINENO
  1553. # ----------------------------
  1554. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1555. ac_fn_cxx_try_compile ()
  1556. {
  1557. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1558. rm -f conftest.$ac_objext
  1559. if { { ac_try="$ac_compile"
  1560. case "(($ac_try" in
  1561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1562. *) ac_try_echo=$ac_try;;
  1563. esac
  1564. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1565. $as_echo "$ac_try_echo"; } >&5
  1566. (eval "$ac_compile") 2>conftest.err
  1567. ac_status=$?
  1568. if test -s conftest.err; then
  1569. grep -v '^ *+' conftest.err >conftest.er1
  1570. cat conftest.er1 >&5
  1571. mv -f conftest.er1 conftest.err
  1572. fi
  1573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1574. test $ac_status = 0; } && {
  1575. test -z "$ac_cxx_werror_flag" ||
  1576. test ! -s conftest.err
  1577. } && test -s conftest.$ac_objext; then :
  1578. ac_retval=0
  1579. else
  1580. $as_echo "$as_me: failed program was:" >&5
  1581. sed 's/^/| /' conftest.$ac_ext >&5
  1582. ac_retval=1
  1583. fi
  1584. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1585. as_fn_set_status $ac_retval
  1586. } # ac_fn_cxx_try_compile
  1587. # ac_fn_c_try_link LINENO
  1588. # -----------------------
  1589. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1590. ac_fn_c_try_link ()
  1591. {
  1592. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1593. rm -f conftest.$ac_objext conftest$ac_exeext
  1594. if { { ac_try="$ac_link"
  1595. case "(($ac_try" in
  1596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1597. *) ac_try_echo=$ac_try;;
  1598. esac
  1599. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1600. $as_echo "$ac_try_echo"; } >&5
  1601. (eval "$ac_link") 2>conftest.err
  1602. ac_status=$?
  1603. if test -s conftest.err; then
  1604. grep -v '^ *+' conftest.err >conftest.er1
  1605. cat conftest.er1 >&5
  1606. mv -f conftest.er1 conftest.err
  1607. fi
  1608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1609. test $ac_status = 0; } && {
  1610. test -z "$ac_c_werror_flag" ||
  1611. test ! -s conftest.err
  1612. } && test -s conftest$ac_exeext && {
  1613. test "$cross_compiling" = yes ||
  1614. $as_test_x conftest$ac_exeext
  1615. }; then :
  1616. ac_retval=0
  1617. else
  1618. $as_echo "$as_me: failed program was:" >&5
  1619. sed 's/^/| /' conftest.$ac_ext >&5
  1620. ac_retval=1
  1621. fi
  1622. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1623. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1624. # interfere with the next link command; also delete a directory that is
  1625. # left behind by Apple's compiler. We do this before executing the actions.
  1626. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1627. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1628. as_fn_set_status $ac_retval
  1629. } # ac_fn_c_try_link
  1630. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1631. # -------------------------------------------------------
  1632. # Tests whether HEADER exists and can be compiled using the include files in
  1633. # INCLUDES, setting the cache variable VAR accordingly.
  1634. ac_fn_c_check_header_compile ()
  1635. {
  1636. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1638. $as_echo_n "checking for $2... " >&6; }
  1639. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1640. $as_echo_n "(cached) " >&6
  1641. else
  1642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1643. /* end confdefs.h. */
  1644. $4
  1645. #include <$2>
  1646. _ACEOF
  1647. if ac_fn_c_try_compile "$LINENO"; then :
  1648. eval "$3=yes"
  1649. else
  1650. eval "$3=no"
  1651. fi
  1652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1653. fi
  1654. eval ac_res=\$$3
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1656. $as_echo "$ac_res" >&6; }
  1657. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1658. } # ac_fn_c_check_header_compile
  1659. # ac_fn_c_try_run LINENO
  1660. # ----------------------
  1661. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1662. # that executables *can* be run.
  1663. ac_fn_c_try_run ()
  1664. {
  1665. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1666. if { { ac_try="$ac_link"
  1667. case "(($ac_try" in
  1668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1669. *) ac_try_echo=$ac_try;;
  1670. esac
  1671. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1672. $as_echo "$ac_try_echo"; } >&5
  1673. (eval "$ac_link") 2>&5
  1674. ac_status=$?
  1675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1676. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1677. { { case "(($ac_try" in
  1678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1679. *) ac_try_echo=$ac_try;;
  1680. esac
  1681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1682. $as_echo "$ac_try_echo"; } >&5
  1683. (eval "$ac_try") 2>&5
  1684. ac_status=$?
  1685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1686. test $ac_status = 0; }; }; then :
  1687. ac_retval=0
  1688. else
  1689. $as_echo "$as_me: program exited with status $ac_status" >&5
  1690. $as_echo "$as_me: failed program was:" >&5
  1691. sed 's/^/| /' conftest.$ac_ext >&5
  1692. ac_retval=$ac_status
  1693. fi
  1694. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1695. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1696. as_fn_set_status $ac_retval
  1697. } # ac_fn_c_try_run
  1698. # ac_fn_c_check_func LINENO FUNC VAR
  1699. # ----------------------------------
  1700. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1701. ac_fn_c_check_func ()
  1702. {
  1703. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1705. $as_echo_n "checking for $2... " >&6; }
  1706. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1707. $as_echo_n "(cached) " >&6
  1708. else
  1709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1710. /* end confdefs.h. */
  1711. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1712. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1713. #define $2 innocuous_$2
  1714. /* System header to define __stub macros and hopefully few prototypes,
  1715. which can conflict with char $2 (); below.
  1716. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1717. <limits.h> exists even on freestanding compilers. */
  1718. #ifdef __STDC__
  1719. # include <limits.h>
  1720. #else
  1721. # include <assert.h>
  1722. #endif
  1723. #undef $2
  1724. /* Override any GCC internal prototype to avoid an error.
  1725. Use char because int might match the return type of a GCC
  1726. builtin and then its argument prototype would still apply. */
  1727. #ifdef __cplusplus
  1728. extern "C"
  1729. #endif
  1730. char $2 ();
  1731. /* The GNU C library defines this for functions which it implements
  1732. to always fail with ENOSYS. Some functions are actually named
  1733. something starting with __ and the normal name is an alias. */
  1734. #if defined __stub_$2 || defined __stub___$2
  1735. choke me
  1736. #endif
  1737. int
  1738. main ()
  1739. {
  1740. return $2 ();
  1741. ;
  1742. return 0;
  1743. }
  1744. _ACEOF
  1745. if ac_fn_c_try_link "$LINENO"; then :
  1746. eval "$3=yes"
  1747. else
  1748. eval "$3=no"
  1749. fi
  1750. rm -f core conftest.err conftest.$ac_objext \
  1751. conftest$ac_exeext conftest.$ac_ext
  1752. fi
  1753. eval ac_res=\$$3
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1755. $as_echo "$ac_res" >&6; }
  1756. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1757. } # ac_fn_c_check_func
  1758. # ac_fn_cxx_try_cpp LINENO
  1759. # ------------------------
  1760. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1761. ac_fn_cxx_try_cpp ()
  1762. {
  1763. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1764. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1765. case "(($ac_try" in
  1766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1767. *) ac_try_echo=$ac_try;;
  1768. esac
  1769. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1770. $as_echo "$ac_try_echo"; } >&5
  1771. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1772. ac_status=$?
  1773. if test -s conftest.err; then
  1774. grep -v '^ *+' conftest.err >conftest.er1
  1775. cat conftest.er1 >&5
  1776. mv -f conftest.er1 conftest.err
  1777. fi
  1778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1779. test $ac_status = 0; } >/dev/null && {
  1780. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1781. test ! -s conftest.err
  1782. }; then :
  1783. ac_retval=0
  1784. else
  1785. $as_echo "$as_me: failed program was:" >&5
  1786. sed 's/^/| /' conftest.$ac_ext >&5
  1787. ac_retval=1
  1788. fi
  1789. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1790. as_fn_set_status $ac_retval
  1791. } # ac_fn_cxx_try_cpp
  1792. # ac_fn_cxx_try_link LINENO
  1793. # -------------------------
  1794. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1795. ac_fn_cxx_try_link ()
  1796. {
  1797. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1798. rm -f conftest.$ac_objext conftest$ac_exeext
  1799. if { { ac_try="$ac_link"
  1800. case "(($ac_try" in
  1801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1802. *) ac_try_echo=$ac_try;;
  1803. esac
  1804. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1805. $as_echo "$ac_try_echo"; } >&5
  1806. (eval "$ac_link") 2>conftest.err
  1807. ac_status=$?
  1808. if test -s conftest.err; then
  1809. grep -v '^ *+' conftest.err >conftest.er1
  1810. cat conftest.er1 >&5
  1811. mv -f conftest.er1 conftest.err
  1812. fi
  1813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1814. test $ac_status = 0; } && {
  1815. test -z "$ac_cxx_werror_flag" ||
  1816. test ! -s conftest.err
  1817. } && test -s conftest$ac_exeext && {
  1818. test "$cross_compiling" = yes ||
  1819. $as_test_x conftest$ac_exeext
  1820. }; then :
  1821. ac_retval=0
  1822. else
  1823. $as_echo "$as_me: failed program was:" >&5
  1824. sed 's/^/| /' conftest.$ac_ext >&5
  1825. ac_retval=1
  1826. fi
  1827. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1828. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1829. # interfere with the next link command; also delete a directory that is
  1830. # left behind by Apple's compiler. We do this before executing the actions.
  1831. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1832. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1833. as_fn_set_status $ac_retval
  1834. } # ac_fn_cxx_try_link
  1835. cat >config.log <<_ACEOF
  1836. This file contains any messages produced by compilers while
  1837. running configure, to aid debugging if configure makes a mistake.
  1838. It was created by nutconf $as_me 2.0.10, which was
  1839. generated by GNU Autoconf 2.65. Invocation command line was
  1840. $ $0 $@
  1841. _ACEOF
  1842. exec 5>>config.log
  1843. {
  1844. cat <<_ASUNAME
  1845. ## --------- ##
  1846. ## Platform. ##
  1847. ## --------- ##
  1848. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1849. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1850. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1851. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1852. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1853. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1854. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1855. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1856. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1857. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1858. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1859. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1860. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1861. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1862. _ASUNAME
  1863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1864. for as_dir in $PATH
  1865. do
  1866. IFS=$as_save_IFS
  1867. test -z "$as_dir" && as_dir=.
  1868. $as_echo "PATH: $as_dir"
  1869. done
  1870. IFS=$as_save_IFS
  1871. } >&5
  1872. cat >&5 <<_ACEOF
  1873. ## ----------- ##
  1874. ## Core tests. ##
  1875. ## ----------- ##
  1876. _ACEOF
  1877. # Keep a trace of the command line.
  1878. # Strip out --no-create and --no-recursion so they do not pile up.
  1879. # Strip out --silent because we don't want to record it for future runs.
  1880. # Also quote any args containing shell meta-characters.
  1881. # Make two passes to allow for proper duplicate-argument suppression.
  1882. ac_configure_args=
  1883. ac_configure_args0=
  1884. ac_configure_args1=
  1885. ac_must_keep_next=false
  1886. for ac_pass in 1 2
  1887. do
  1888. for ac_arg
  1889. do
  1890. case $ac_arg in
  1891. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1892. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1893. | -silent | --silent | --silen | --sile | --sil)
  1894. continue ;;
  1895. *\'*)
  1896. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1897. esac
  1898. case $ac_pass in
  1899. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1900. 2)
  1901. as_fn_append ac_configure_args1 " '$ac_arg'"
  1902. if test $ac_must_keep_next = true; then
  1903. ac_must_keep_next=false # Got value, back to normal.
  1904. else
  1905. case $ac_arg in
  1906. *=* | --config-cache | -C | -disable-* | --disable-* \
  1907. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1908. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1909. | -with-* | --with-* | -without-* | --without-* | --x)
  1910. case "$ac_configure_args0 " in
  1911. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1912. esac
  1913. ;;
  1914. -* ) ac_must_keep_next=true ;;
  1915. esac
  1916. fi
  1917. as_fn_append ac_configure_args " '$ac_arg'"
  1918. ;;
  1919. esac
  1920. done
  1921. done
  1922. { ac_configure_args0=; unset ac_configure_args0;}
  1923. { ac_configure_args1=; unset ac_configure_args1;}
  1924. # When interrupted or exit'd, cleanup temporary files, and complete
  1925. # config.log. We remove comments because anyway the quotes in there
  1926. # would cause problems or look ugly.
  1927. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1928. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1929. trap 'exit_status=$?
  1930. # Save into config.log some information that might help in debugging.
  1931. {
  1932. echo
  1933. cat <<\_ASBOX
  1934. ## ---------------- ##
  1935. ## Cache variables. ##
  1936. ## ---------------- ##
  1937. _ASBOX
  1938. echo
  1939. # The following way of writing the cache mishandles newlines in values,
  1940. (
  1941. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1942. eval ac_val=\$$ac_var
  1943. case $ac_val in #(
  1944. *${as_nl}*)
  1945. case $ac_var in #(
  1946. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1947. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1948. esac
  1949. case $ac_var in #(
  1950. _ | IFS | as_nl) ;; #(
  1951. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1952. *) { eval $ac_var=; unset $ac_var;} ;;
  1953. esac ;;
  1954. esac
  1955. done
  1956. (set) 2>&1 |
  1957. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1958. *${as_nl}ac_space=\ *)
  1959. sed -n \
  1960. "s/'\''/'\''\\\\'\'''\''/g;
  1961. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1962. ;; #(
  1963. *)
  1964. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1965. ;;
  1966. esac |
  1967. sort
  1968. )
  1969. echo
  1970. cat <<\_ASBOX
  1971. ## ----------------- ##
  1972. ## Output variables. ##
  1973. ## ----------------- ##
  1974. _ASBOX
  1975. echo
  1976. for ac_var in $ac_subst_vars
  1977. do
  1978. eval ac_val=\$$ac_var
  1979. case $ac_val in
  1980. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1981. esac
  1982. $as_echo "$ac_var='\''$ac_val'\''"
  1983. done | sort
  1984. echo
  1985. if test -n "$ac_subst_files"; then
  1986. cat <<\_ASBOX
  1987. ## ------------------- ##
  1988. ## File substitutions. ##
  1989. ## ------------------- ##
  1990. _ASBOX
  1991. echo
  1992. for ac_var in $ac_subst_files
  1993. do
  1994. eval ac_val=\$$ac_var
  1995. case $ac_val in
  1996. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1997. esac
  1998. $as_echo "$ac_var='\''$ac_val'\''"
  1999. done | sort
  2000. echo
  2001. fi
  2002. if test -s confdefs.h; then
  2003. cat <<\_ASBOX
  2004. ## ----------- ##
  2005. ## confdefs.h. ##
  2006. ## ----------- ##
  2007. _ASBOX
  2008. echo
  2009. cat confdefs.h
  2010. echo
  2011. fi
  2012. test "$ac_signal" != 0 &&
  2013. $as_echo "$as_me: caught signal $ac_signal"
  2014. $as_echo "$as_me: exit $exit_status"
  2015. } >&5
  2016. rm -f core *.core core.conftest.* &&
  2017. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2018. exit $exit_status
  2019. ' 0
  2020. for ac_signal in 1 2 13 15; do
  2021. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2022. done
  2023. ac_signal=0
  2024. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2025. rm -f -r conftest* confdefs.h
  2026. $as_echo "/* confdefs.h */" > confdefs.h
  2027. # Predefined preprocessor variables.
  2028. cat >>confdefs.h <<_ACEOF
  2029. #define PACKAGE_NAME "$PACKAGE_NAME"
  2030. _ACEOF
  2031. cat >>confdefs.h <<_ACEOF
  2032. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2033. _ACEOF
  2034. cat >>confdefs.h <<_ACEOF
  2035. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2036. _ACEOF
  2037. cat >>confdefs.h <<_ACEOF
  2038. #define PACKAGE_STRING "$PACKAGE_STRING"
  2039. _ACEOF
  2040. cat >>confdefs.h <<_ACEOF
  2041. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2042. _ACEOF
  2043. cat >>confdefs.h <<_ACEOF
  2044. #define PACKAGE_URL "$PACKAGE_URL"
  2045. _ACEOF
  2046. # Let the site file select an alternate cache file if it wants to.
  2047. # Prefer an explicitly selected file to automatically selected ones.
  2048. ac_site_file1=NONE
  2049. ac_site_file2=NONE
  2050. if test -n "$CONFIG_SITE"; then
  2051. ac_site_file1=$CONFIG_SITE
  2052. elif test "x$prefix" != xNONE; then
  2053. ac_site_file1=$prefix/share/config.site
  2054. ac_site_file2=$prefix/etc/config.site
  2055. else
  2056. ac_site_file1=$ac_default_prefix/share/config.site
  2057. ac_site_file2=$ac_default_prefix/etc/config.site
  2058. fi
  2059. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2060. do
  2061. test "x$ac_site_file" = xNONE && continue
  2062. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2064. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2065. sed 's/^/| /' "$ac_site_file" >&5
  2066. . "$ac_site_file"
  2067. fi
  2068. done
  2069. if test -r "$cache_file"; then
  2070. # Some versions of bash will fail to source /dev/null (special files
  2071. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2072. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2074. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2075. case $cache_file in
  2076. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2077. *) . "./$cache_file";;
  2078. esac
  2079. fi
  2080. else
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2082. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2083. >$cache_file
  2084. fi
  2085. # Check that the precious variables saved in the cache have kept the same
  2086. # value.
  2087. ac_cache_corrupted=false
  2088. for ac_var in $ac_precious_vars; do
  2089. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2090. eval ac_new_set=\$ac_env_${ac_var}_set
  2091. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2092. eval ac_new_val=\$ac_env_${ac_var}_value
  2093. case $ac_old_set,$ac_new_set in
  2094. set,)
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2096. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2097. ac_cache_corrupted=: ;;
  2098. ,set)
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2100. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2101. ac_cache_corrupted=: ;;
  2102. ,);;
  2103. *)
  2104. if test "x$ac_old_val" != "x$ac_new_val"; then
  2105. # differences in whitespace do not lead to failure.
  2106. ac_old_val_w=`echo x $ac_old_val`
  2107. ac_new_val_w=`echo x $ac_new_val`
  2108. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2110. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2111. ac_cache_corrupted=:
  2112. else
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2114. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2115. eval $ac_var=\$ac_old_val
  2116. fi
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2118. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2120. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2121. fi;;
  2122. esac
  2123. # Pass precious variables to config.status.
  2124. if test "$ac_new_set" = set; then
  2125. case $ac_new_val in
  2126. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2127. *) ac_arg=$ac_var=$ac_new_val ;;
  2128. esac
  2129. case " $ac_configure_args " in
  2130. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2131. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2132. esac
  2133. fi
  2134. done
  2135. if $ac_cache_corrupted; then
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2137. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2139. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2140. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2141. fi
  2142. ## -------------------- ##
  2143. ## Main body of script. ##
  2144. ## -------------------- ##
  2145. ac_ext=c
  2146. ac_cpp='$CPP $CPPFLAGS'
  2147. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2148. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2149. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2150. # Check whether --enable-silent-rules was given.
  2151. if test "${enable_silent_rules+set}" = set; then :
  2152. enableval=$enable_silent_rules;
  2153. fi
  2154. case $enable_silent_rules in
  2155. yes) AM_DEFAULT_VERBOSITY=0;;
  2156. no) AM_DEFAULT_VERBOSITY=1;;
  2157. *) AM_DEFAULT_VERBOSITY=0;;
  2158. esac
  2159. AM_BACKSLASH='\'
  2160. am__api_version='1.11'
  2161. ac_aux_dir=
  2162. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2163. for ac_t in install-sh install.sh shtool; do
  2164. if test -f "$ac_dir/$ac_t"; then
  2165. ac_aux_dir=$ac_dir
  2166. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2167. break 2
  2168. fi
  2169. done
  2170. done
  2171. if test -z "$ac_aux_dir"; then
  2172. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2173. fi
  2174. # These three variables are undocumented and unsupported,
  2175. # and are intended to be withdrawn in a future Autoconf release.
  2176. # They can cause serious problems if a builder's source tree is in a directory
  2177. # whose full name contains unusual characters.
  2178. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2179. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2180. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2181. # Find a good install program. We prefer a C program (faster),
  2182. # so one script is as good as another. But avoid the broken or
  2183. # incompatible versions:
  2184. # SysV /etc/install, /usr/sbin/install
  2185. # SunOS /usr/etc/install
  2186. # IRIX /sbin/install
  2187. # AIX /bin/install
  2188. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2189. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2190. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2191. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2192. # OS/2's system install, which has a completely different semantic
  2193. # ./install, which can be erroneously created by make from ./install.sh.
  2194. # Reject install programs that cannot install multiple files.
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2196. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2197. if test -z "$INSTALL"; then
  2198. if test "${ac_cv_path_install+set}" = set; then :
  2199. $as_echo_n "(cached) " >&6
  2200. else
  2201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2202. for as_dir in $PATH
  2203. do
  2204. IFS=$as_save_IFS
  2205. test -z "$as_dir" && as_dir=.
  2206. # Account for people who put trailing slashes in PATH elements.
  2207. case $as_dir/ in #((
  2208. ./ | .// | /[cC]/* | \
  2209. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2210. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2211. /usr/ucb/* ) ;;
  2212. *)
  2213. # OSF1 and SCO ODT 3.0 have their own names for install.
  2214. # Don't use installbsd from OSF since it installs stuff as root
  2215. # by default.
  2216. for ac_prog in ginstall scoinst install; do
  2217. for ac_exec_ext in '' $ac_executable_extensions; do
  2218. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2219. if test $ac_prog = install &&
  2220. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2221. # AIX install. It has an incompatible calling convention.
  2222. :
  2223. elif test $ac_prog = install &&
  2224. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2225. # program-specific install script used by HP pwplus--don't use.
  2226. :
  2227. else
  2228. rm -rf conftest.one conftest.two conftest.dir
  2229. echo one > conftest.one
  2230. echo two > conftest.two
  2231. mkdir conftest.dir
  2232. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2233. test -s conftest.one && test -s conftest.two &&
  2234. test -s conftest.dir/conftest.one &&
  2235. test -s conftest.dir/conftest.two
  2236. then
  2237. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2238. break 3
  2239. fi
  2240. fi
  2241. fi
  2242. done
  2243. done
  2244. ;;
  2245. esac
  2246. done
  2247. IFS=$as_save_IFS
  2248. rm -rf conftest.one conftest.two conftest.dir
  2249. fi
  2250. if test "${ac_cv_path_install+set}" = set; then
  2251. INSTALL=$ac_cv_path_install
  2252. else
  2253. # As a last resort, use the slow shell script. Don't cache a
  2254. # value for INSTALL within a source directory, because that will
  2255. # break other packages using the cache if that directory is
  2256. # removed, or if the value is a relative name.
  2257. INSTALL=$ac_install_sh
  2258. fi
  2259. fi
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2261. $as_echo "$INSTALL" >&6; }
  2262. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2263. # It thinks the first close brace ends the variable substitution.
  2264. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2265. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2266. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2268. $as_echo_n "checking whether build environment is sane... " >&6; }
  2269. # Just in case
  2270. sleep 1
  2271. echo timestamp > conftest.file
  2272. # Reject unsafe characters in $srcdir or the absolute working directory
  2273. # name. Accept space and tab only in the latter.
  2274. am_lf='
  2275. '
  2276. case `pwd` in
  2277. *[\\\"\#\$\&\'\`$am_lf]*)
  2278. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2279. esac
  2280. case $srcdir in
  2281. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2282. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2283. esac
  2284. # Do `set' in a subshell so we don't clobber the current shell's
  2285. # arguments. Must try -L first in case configure is actually a
  2286. # symlink; some systems play weird games with the mod time of symlinks
  2287. # (eg FreeBSD returns the mod time of the symlink's containing
  2288. # directory).
  2289. if (
  2290. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2291. if test "$*" = "X"; then
  2292. # -L didn't work.
  2293. set X `ls -t "$srcdir/configure" conftest.file`
  2294. fi
  2295. rm -f conftest.file
  2296. if test "$*" != "X $srcdir/configure conftest.file" \
  2297. && test "$*" != "X conftest.file $srcdir/configure"; then
  2298. # If neither matched, then we have a broken ls. This can happen
  2299. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2300. # broken ls alias from the environment. This has actually
  2301. # happened. Such a system could not be considered "sane".
  2302. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2303. alias in your environment" "$LINENO" 5
  2304. fi
  2305. test "$2" = conftest.file
  2306. )
  2307. then
  2308. # Ok.
  2309. :
  2310. else
  2311. as_fn_error "newly created file is older than distributed files!
  2312. Check your system clock" "$LINENO" 5
  2313. fi
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2315. $as_echo "yes" >&6; }
  2316. test "$program_prefix" != NONE &&
  2317. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2318. # Use a double $ so make ignores it.
  2319. test "$program_suffix" != NONE &&
  2320. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2321. # Double any \ or $.
  2322. # By default was `s,x,x', remove it if useless.
  2323. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2324. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2325. # expand $ac_aux_dir to an absolute path
  2326. am_aux_dir=`cd $ac_aux_dir && pwd`
  2327. if test x"${MISSING+set}" != xset; then
  2328. case $am_aux_dir in
  2329. *\ * | *\ *)
  2330. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2331. *)
  2332. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2333. esac
  2334. fi
  2335. # Use eval to expand $SHELL
  2336. if eval "$MISSING --run true"; then
  2337. am_missing_run="$MISSING --run "
  2338. else
  2339. am_missing_run=
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2341. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2342. fi
  2343. if test x"${install_sh}" != xset; then
  2344. case $am_aux_dir in
  2345. *\ * | *\ *)
  2346. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2347. *)
  2348. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2349. esac
  2350. fi
  2351. # Installed binaries are usually stripped using `strip' when the user
  2352. # run `make install-strip'. However `strip' might not be the right
  2353. # tool to use in cross-compilation environments, therefore Automake
  2354. # will honor the `STRIP' environment variable to overrule this program.
  2355. if test "$cross_compiling" != no; then
  2356. if test -n "$ac_tool_prefix"; then
  2357. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2358. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2360. $as_echo_n "checking for $ac_word... " >&6; }
  2361. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2362. $as_echo_n "(cached) " >&6
  2363. else
  2364. if test -n "$STRIP"; then
  2365. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2366. else
  2367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2368. for as_dir in $PATH
  2369. do
  2370. IFS=$as_save_IFS
  2371. test -z "$as_dir" && as_dir=.
  2372. for ac_exec_ext in '' $ac_executable_extensions; do
  2373. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2374. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2375. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2376. break 2
  2377. fi
  2378. done
  2379. done
  2380. IFS=$as_save_IFS
  2381. fi
  2382. fi
  2383. STRIP=$ac_cv_prog_STRIP
  2384. if test -n "$STRIP"; then
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2386. $as_echo "$STRIP" >&6; }
  2387. else
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2389. $as_echo "no" >&6; }
  2390. fi
  2391. fi
  2392. if test -z "$ac_cv_prog_STRIP"; then
  2393. ac_ct_STRIP=$STRIP
  2394. # Extract the first word of "strip", so it can be a program name with args.
  2395. set dummy strip; ac_word=$2
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2397. $as_echo_n "checking for $ac_word... " >&6; }
  2398. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2399. $as_echo_n "(cached) " >&6
  2400. else
  2401. if test -n "$ac_ct_STRIP"; then
  2402. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2403. else
  2404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2405. for as_dir in $PATH
  2406. do
  2407. IFS=$as_save_IFS
  2408. test -z "$as_dir" && as_dir=.
  2409. for ac_exec_ext in '' $ac_executable_extensions; do
  2410. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2411. ac_cv_prog_ac_ct_STRIP="strip"
  2412. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2413. break 2
  2414. fi
  2415. done
  2416. done
  2417. IFS=$as_save_IFS
  2418. fi
  2419. fi
  2420. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2421. if test -n "$ac_ct_STRIP"; then
  2422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2423. $as_echo "$ac_ct_STRIP" >&6; }
  2424. else
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2426. $as_echo "no" >&6; }
  2427. fi
  2428. if test "x$ac_ct_STRIP" = x; then
  2429. STRIP=":"
  2430. else
  2431. case $cross_compiling:$ac_tool_warned in
  2432. yes:)
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2434. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2435. ac_tool_warned=yes ;;
  2436. esac
  2437. STRIP=$ac_ct_STRIP
  2438. fi
  2439. else
  2440. STRIP="$ac_cv_prog_STRIP"
  2441. fi
  2442. fi
  2443. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2445. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2446. if test -z "$MKDIR_P"; then
  2447. if test "${ac_cv_path_mkdir+set}" = set; then :
  2448. $as_echo_n "(cached) " >&6
  2449. else
  2450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2451. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2452. do
  2453. IFS=$as_save_IFS
  2454. test -z "$as_dir" && as_dir=.
  2455. for ac_prog in mkdir gmkdir; do
  2456. for ac_exec_ext in '' $ac_executable_extensions; do
  2457. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2458. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2459. 'mkdir (GNU coreutils) '* | \
  2460. 'mkdir (coreutils) '* | \
  2461. 'mkdir (fileutils) '4.1*)
  2462. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2463. break 3;;
  2464. esac
  2465. done
  2466. done
  2467. done
  2468. IFS=$as_save_IFS
  2469. fi
  2470. test -d ./--version && rmdir ./--version
  2471. if test "${ac_cv_path_mkdir+set}" = set; then
  2472. MKDIR_P="$ac_cv_path_mkdir -p"
  2473. else
  2474. # As a last resort, use the slow shell script. Don't cache a
  2475. # value for MKDIR_P within a source directory, because that will
  2476. # break other packages using the cache if that directory is
  2477. # removed, or if the value is a relative name.
  2478. MKDIR_P="$ac_install_sh -d"
  2479. fi
  2480. fi
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2482. $as_echo "$MKDIR_P" >&6; }
  2483. mkdir_p="$MKDIR_P"
  2484. case $mkdir_p in
  2485. [\\/$]* | ?:[\\/]*) ;;
  2486. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2487. esac
  2488. for ac_prog in gawk mawk nawk awk
  2489. do
  2490. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2491. set dummy $ac_prog; ac_word=$2
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2493. $as_echo_n "checking for $ac_word... " >&6; }
  2494. if test "${ac_cv_prog_AWK+set}" = set; then :
  2495. $as_echo_n "(cached) " >&6
  2496. else
  2497. if test -n "$AWK"; then
  2498. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2499. else
  2500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2501. for as_dir in $PATH
  2502. do
  2503. IFS=$as_save_IFS
  2504. test -z "$as_dir" && as_dir=.
  2505. for ac_exec_ext in '' $ac_executable_extensions; do
  2506. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2507. ac_cv_prog_AWK="$ac_prog"
  2508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2509. break 2
  2510. fi
  2511. done
  2512. done
  2513. IFS=$as_save_IFS
  2514. fi
  2515. fi
  2516. AWK=$ac_cv_prog_AWK
  2517. if test -n "$AWK"; then
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2519. $as_echo "$AWK" >&6; }
  2520. else
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2522. $as_echo "no" >&6; }
  2523. fi
  2524. test -n "$AWK" && break
  2525. done
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2527. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2528. set x ${MAKE-make}
  2529. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2530. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2531. $as_echo_n "(cached) " >&6
  2532. else
  2533. cat >conftest.make <<\_ACEOF
  2534. SHELL = /bin/sh
  2535. all:
  2536. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2537. _ACEOF
  2538. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2539. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2540. *@@@%%%=?*=@@@%%%*)
  2541. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2542. *)
  2543. eval ac_cv_prog_make_${ac_make}_set=no;;
  2544. esac
  2545. rm -f conftest.make
  2546. fi
  2547. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2549. $as_echo "yes" >&6; }
  2550. SET_MAKE=
  2551. else
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2553. $as_echo "no" >&6; }
  2554. SET_MAKE="MAKE=${MAKE-make}"
  2555. fi
  2556. rm -rf .tst 2>/dev/null
  2557. mkdir .tst 2>/dev/null
  2558. if test -d .tst; then
  2559. am__leading_dot=.
  2560. else
  2561. am__leading_dot=_
  2562. fi
  2563. rmdir .tst 2>/dev/null
  2564. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2565. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2566. # is not polluted with repeated "-I."
  2567. am__isrc=' -I$(srcdir)'
  2568. # test to see if srcdir already configured
  2569. if test -f $srcdir/config.status; then
  2570. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2571. fi
  2572. fi
  2573. # test whether we have cygpath
  2574. if test -z "$CYGPATH_W"; then
  2575. if (cygpath --version) >/dev/null 2>/dev/null; then
  2576. CYGPATH_W='cygpath -w'
  2577. else
  2578. CYGPATH_W=echo
  2579. fi
  2580. fi
  2581. # Define the identity of the package.
  2582. PACKAGE=nutconf
  2583. VERSION=2.0.10
  2584. cat >>confdefs.h <<_ACEOF
  2585. #define PACKAGE "$PACKAGE"
  2586. _ACEOF
  2587. cat >>confdefs.h <<_ACEOF
  2588. #define VERSION "$VERSION"
  2589. _ACEOF
  2590. # Some tools Automake needs.
  2591. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2592. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2593. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2594. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2595. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2596. # We need awk for the "check" target. The system "awk" is bad on
  2597. # some platforms.
  2598. # Always define AMTAR for backward compatibility.
  2599. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2600. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2601. ac_config_headers="$ac_config_headers config.h"
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2603. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2604. # Check whether --enable-maintainer-mode was given.
  2605. if test "${enable_maintainer_mode+set}" = set; then :
  2606. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2607. else
  2608. USE_MAINTAINER_MODE=no
  2609. fi
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2611. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2612. if test $USE_MAINTAINER_MODE = yes; then
  2613. MAINTAINER_MODE_TRUE=
  2614. MAINTAINER_MODE_FALSE='#'
  2615. else
  2616. MAINTAINER_MODE_TRUE='#'
  2617. MAINTAINER_MODE_FALSE=
  2618. fi
  2619. MAINT=$MAINTAINER_MODE_TRUE
  2620. #AC_PROG_CC
  2621. DEPDIR="${am__leading_dot}deps"
  2622. ac_config_commands="$ac_config_commands depfiles"
  2623. am_make=${MAKE-make}
  2624. cat > confinc << 'END'
  2625. am__doit:
  2626. @echo this is the am__doit target
  2627. .PHONY: am__doit
  2628. END
  2629. # If we don't find an include directive, just comment out the code.
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2631. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2632. am__include="#"
  2633. am__quote=
  2634. _am_result=none
  2635. # First try GNU make style include.
  2636. echo "include confinc" > confmf
  2637. # Ignore all kinds of additional output from `make'.
  2638. case `$am_make -s -f confmf 2> /dev/null` in #(
  2639. *the\ am__doit\ target*)
  2640. am__include=include
  2641. am__quote=
  2642. _am_result=GNU
  2643. ;;
  2644. esac
  2645. # Now try BSD make style include.
  2646. if test "$am__include" = "#"; then
  2647. echo '.include "confinc"' > confmf
  2648. case `$am_make -s -f confmf 2> /dev/null` in #(
  2649. *the\ am__doit\ target*)
  2650. am__include=.include
  2651. am__quote="\""
  2652. _am_result=BSD
  2653. ;;
  2654. esac
  2655. fi
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2657. $as_echo "$_am_result" >&6; }
  2658. rm -f confinc confmf
  2659. # Check whether --enable-dependency-tracking was given.
  2660. if test "${enable_dependency_tracking+set}" = set; then :
  2661. enableval=$enable_dependency_tracking;
  2662. fi
  2663. if test "x$enable_dependency_tracking" != xno; then
  2664. am_depcomp="$ac_aux_dir/depcomp"
  2665. AMDEPBACKSLASH='\'
  2666. fi
  2667. if test "x$enable_dependency_tracking" != xno; then
  2668. AMDEP_TRUE=
  2669. AMDEP_FALSE='#'
  2670. else
  2671. AMDEP_TRUE='#'
  2672. AMDEP_FALSE=
  2673. fi
  2674. ac_ext=c
  2675. ac_cpp='$CPP $CPPFLAGS'
  2676. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2677. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2678. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2679. if test -n "$ac_tool_prefix"; then
  2680. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2681. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2683. $as_echo_n "checking for $ac_word... " >&6; }
  2684. if test "${ac_cv_prog_CC+set}" = set; then :
  2685. $as_echo_n "(cached) " >&6
  2686. else
  2687. if test -n "$CC"; then
  2688. ac_cv_prog_CC="$CC" # Let the user override the test.
  2689. else
  2690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2691. for as_dir in $PATH
  2692. do
  2693. IFS=$as_save_IFS
  2694. test -z "$as_dir" && as_dir=.
  2695. for ac_exec_ext in '' $ac_executable_extensions; do
  2696. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2697. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2698. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2699. break 2
  2700. fi
  2701. done
  2702. done
  2703. IFS=$as_save_IFS
  2704. fi
  2705. fi
  2706. CC=$ac_cv_prog_CC
  2707. if test -n "$CC"; then
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2709. $as_echo "$CC" >&6; }
  2710. else
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2712. $as_echo "no" >&6; }
  2713. fi
  2714. fi
  2715. if test -z "$ac_cv_prog_CC"; then
  2716. ac_ct_CC=$CC
  2717. # Extract the first word of "gcc", so it can be a program name with args.
  2718. set dummy gcc; ac_word=$2
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2720. $as_echo_n "checking for $ac_word... " >&6; }
  2721. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2722. $as_echo_n "(cached) " >&6
  2723. else
  2724. if test -n "$ac_ct_CC"; then
  2725. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2726. else
  2727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2728. for as_dir in $PATH
  2729. do
  2730. IFS=$as_save_IFS
  2731. test -z "$as_dir" && as_dir=.
  2732. for ac_exec_ext in '' $ac_executable_extensions; do
  2733. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2734. ac_cv_prog_ac_ct_CC="gcc"
  2735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2736. break 2
  2737. fi
  2738. done
  2739. done
  2740. IFS=$as_save_IFS
  2741. fi
  2742. fi
  2743. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2744. if test -n "$ac_ct_CC"; then
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2746. $as_echo "$ac_ct_CC" >&6; }
  2747. else
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2749. $as_echo "no" >&6; }
  2750. fi
  2751. if test "x$ac_ct_CC" = x; then
  2752. CC=""
  2753. else
  2754. case $cross_compiling:$ac_tool_warned in
  2755. yes:)
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2757. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2758. ac_tool_warned=yes ;;
  2759. esac
  2760. CC=$ac_ct_CC
  2761. fi
  2762. else
  2763. CC="$ac_cv_prog_CC"
  2764. fi
  2765. if test -z "$CC"; then
  2766. if test -n "$ac_tool_prefix"; then
  2767. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2768. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2770. $as_echo_n "checking for $ac_word... " >&6; }
  2771. if test "${ac_cv_prog_CC+set}" = set; then :
  2772. $as_echo_n "(cached) " >&6
  2773. else
  2774. if test -n "$CC"; then
  2775. ac_cv_prog_CC="$CC" # Let the user override the test.
  2776. else
  2777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2778. for as_dir in $PATH
  2779. do
  2780. IFS=$as_save_IFS
  2781. test -z "$as_dir" && as_dir=.
  2782. for ac_exec_ext in '' $ac_executable_extensions; do
  2783. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2784. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2786. break 2
  2787. fi
  2788. done
  2789. done
  2790. IFS=$as_save_IFS
  2791. fi
  2792. fi
  2793. CC=$ac_cv_prog_CC
  2794. if test -n "$CC"; then
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2796. $as_echo "$CC" >&6; }
  2797. else
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2799. $as_echo "no" >&6; }
  2800. fi
  2801. fi
  2802. fi
  2803. if test -z "$CC"; then
  2804. # Extract the first word of "cc", so it can be a program name with args.
  2805. set dummy cc; ac_word=$2
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2807. $as_echo_n "checking for $ac_word... " >&6; }
  2808. if test "${ac_cv_prog_CC+set}" = set; then :
  2809. $as_echo_n "(cached) " >&6
  2810. else
  2811. if test -n "$CC"; then
  2812. ac_cv_prog_CC="$CC" # Let the user override the test.
  2813. else
  2814. ac_prog_rejected=no
  2815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2816. for as_dir in $PATH
  2817. do
  2818. IFS=$as_save_IFS
  2819. test -z "$as_dir" && as_dir=.
  2820. for ac_exec_ext in '' $ac_executable_extensions; do
  2821. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2822. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2823. ac_prog_rejected=yes
  2824. continue
  2825. fi
  2826. ac_cv_prog_CC="cc"
  2827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2828. break 2
  2829. fi
  2830. done
  2831. done
  2832. IFS=$as_save_IFS
  2833. if test $ac_prog_rejected = yes; then
  2834. # We found a bogon in the path, so make sure we never use it.
  2835. set dummy $ac_cv_prog_CC
  2836. shift
  2837. if test $# != 0; then
  2838. # We chose a different compiler from the bogus one.
  2839. # However, it has the same basename, so the bogon will be chosen
  2840. # first if we set CC to just the basename; use the full file name.
  2841. shift
  2842. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2843. fi
  2844. fi
  2845. fi
  2846. fi
  2847. CC=$ac_cv_prog_CC
  2848. if test -n "$CC"; then
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2850. $as_echo "$CC" >&6; }
  2851. else
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2853. $as_echo "no" >&6; }
  2854. fi
  2855. fi
  2856. if test -z "$CC"; then
  2857. if test -n "$ac_tool_prefix"; then
  2858. for ac_prog in cl.exe
  2859. do
  2860. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2861. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2863. $as_echo_n "checking for $ac_word... " >&6; }
  2864. if test "${ac_cv_prog_CC+set}" = set; then :
  2865. $as_echo_n "(cached) " >&6
  2866. else
  2867. if test -n "$CC"; then
  2868. ac_cv_prog_CC="$CC" # Let the user override the test.
  2869. else
  2870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2871. for as_dir in $PATH
  2872. do
  2873. IFS=$as_save_IFS
  2874. test -z "$as_dir" && as_dir=.
  2875. for ac_exec_ext in '' $ac_executable_extensions; do
  2876. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2877. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2879. break 2
  2880. fi
  2881. done
  2882. done
  2883. IFS=$as_save_IFS
  2884. fi
  2885. fi
  2886. CC=$ac_cv_prog_CC
  2887. if test -n "$CC"; then
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2889. $as_echo "$CC" >&6; }
  2890. else
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2892. $as_echo "no" >&6; }
  2893. fi
  2894. test -n "$CC" && break
  2895. done
  2896. fi
  2897. if test -z "$CC"; then
  2898. ac_ct_CC=$CC
  2899. for ac_prog in cl.exe
  2900. do
  2901. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2902. set dummy $ac_prog; ac_word=$2
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2904. $as_echo_n "checking for $ac_word... " >&6; }
  2905. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2906. $as_echo_n "(cached) " >&6
  2907. else
  2908. if test -n "$ac_ct_CC"; then
  2909. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2910. else
  2911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2912. for as_dir in $PATH
  2913. do
  2914. IFS=$as_save_IFS
  2915. test -z "$as_dir" && as_dir=.
  2916. for ac_exec_ext in '' $ac_executable_extensions; do
  2917. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2918. ac_cv_prog_ac_ct_CC="$ac_prog"
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2920. break 2
  2921. fi
  2922. done
  2923. done
  2924. IFS=$as_save_IFS
  2925. fi
  2926. fi
  2927. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2928. if test -n "$ac_ct_CC"; then
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2930. $as_echo "$ac_ct_CC" >&6; }
  2931. else
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2933. $as_echo "no" >&6; }
  2934. fi
  2935. test -n "$ac_ct_CC" && break
  2936. done
  2937. if test "x$ac_ct_CC" = x; then
  2938. CC=""
  2939. else
  2940. case $cross_compiling:$ac_tool_warned in
  2941. yes:)
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2944. ac_tool_warned=yes ;;
  2945. esac
  2946. CC=$ac_ct_CC
  2947. fi
  2948. fi
  2949. fi
  2950. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2951. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2952. as_fn_error "no acceptable C compiler found in \$PATH
  2953. See \`config.log' for more details." "$LINENO" 5; }
  2954. # Provide some information about the compiler.
  2955. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2956. set X $ac_compile
  2957. ac_compiler=$2
  2958. for ac_option in --version -v -V -qversion; do
  2959. { { ac_try="$ac_compiler $ac_option >&5"
  2960. case "(($ac_try" in
  2961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2962. *) ac_try_echo=$ac_try;;
  2963. esac
  2964. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2965. $as_echo "$ac_try_echo"; } >&5
  2966. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2967. ac_status=$?
  2968. if test -s conftest.err; then
  2969. sed '10a\
  2970. ... rest of stderr output deleted ...
  2971. 10q' conftest.err >conftest.er1
  2972. cat conftest.er1 >&5
  2973. fi
  2974. rm -f conftest.er1 conftest.err
  2975. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2976. test $ac_status = 0; }
  2977. done
  2978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2979. /* end confdefs.h. */
  2980. int
  2981. main ()
  2982. {
  2983. ;
  2984. return 0;
  2985. }
  2986. _ACEOF
  2987. ac_clean_files_save=$ac_clean_files
  2988. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2989. # Try to create an executable without -o first, disregard a.out.
  2990. # It will help us diagnose broken compilers, and finding out an intuition
  2991. # of exeext.
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2993. $as_echo_n "checking whether the C compiler works... " >&6; }
  2994. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2995. # The possible output files:
  2996. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2997. ac_rmfiles=
  2998. for ac_file in $ac_files
  2999. do
  3000. case $ac_file in
  3001. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3002. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3003. esac
  3004. done
  3005. rm -f $ac_rmfiles
  3006. if { { ac_try="$ac_link_default"
  3007. case "(($ac_try" in
  3008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3009. *) ac_try_echo=$ac_try;;
  3010. esac
  3011. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3012. $as_echo "$ac_try_echo"; } >&5
  3013. (eval "$ac_link_default") 2>&5
  3014. ac_status=$?
  3015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3016. test $ac_status = 0; }; then :
  3017. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3018. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3019. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3020. # so that the user can short-circuit this test for compilers unknown to
  3021. # Autoconf.
  3022. for ac_file in $ac_files ''
  3023. do
  3024. test -f "$ac_file" || continue
  3025. case $ac_file in
  3026. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3027. ;;
  3028. [ab].out )
  3029. # We found the default executable, but exeext='' is most
  3030. # certainly right.
  3031. break;;
  3032. *.* )
  3033. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3034. then :; else
  3035. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3036. fi
  3037. # We set ac_cv_exeext here because the later test for it is not
  3038. # safe: cross compilers may not add the suffix if given an `-o'
  3039. # argument, so we may need to know it at that point already.
  3040. # Even if this section looks crufty: it has the advantage of
  3041. # actually working.
  3042. break;;
  3043. * )
  3044. break;;
  3045. esac
  3046. done
  3047. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3048. else
  3049. ac_file=''
  3050. fi
  3051. if test -z "$ac_file"; then :
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3053. $as_echo "no" >&6; }
  3054. $as_echo "$as_me: failed program was:" >&5
  3055. sed 's/^/| /' conftest.$ac_ext >&5
  3056. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3057. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3058. { as_fn_set_status 77
  3059. as_fn_error "C compiler cannot create executables
  3060. See \`config.log' for more details." "$LINENO" 5; }; }
  3061. else
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3063. $as_echo "yes" >&6; }
  3064. fi
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3066. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3068. $as_echo "$ac_file" >&6; }
  3069. ac_exeext=$ac_cv_exeext
  3070. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3071. ac_clean_files=$ac_clean_files_save
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3073. $as_echo_n "checking for suffix of executables... " >&6; }
  3074. if { { ac_try="$ac_link"
  3075. case "(($ac_try" in
  3076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3077. *) ac_try_echo=$ac_try;;
  3078. esac
  3079. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3080. $as_echo "$ac_try_echo"; } >&5
  3081. (eval "$ac_link") 2>&5
  3082. ac_status=$?
  3083. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3084. test $ac_status = 0; }; then :
  3085. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3086. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3087. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3088. # `rm'.
  3089. for ac_file in conftest.exe conftest conftest.*; do
  3090. test -f "$ac_file" || continue
  3091. case $ac_file in
  3092. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3093. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3094. break;;
  3095. * ) break;;
  3096. esac
  3097. done
  3098. else
  3099. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3100. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3101. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3102. See \`config.log' for more details." "$LINENO" 5; }
  3103. fi
  3104. rm -f conftest conftest$ac_cv_exeext
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3106. $as_echo "$ac_cv_exeext" >&6; }
  3107. rm -f conftest.$ac_ext
  3108. EXEEXT=$ac_cv_exeext
  3109. ac_exeext=$EXEEXT
  3110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3111. /* end confdefs.h. */
  3112. #include <stdio.h>
  3113. int
  3114. main ()
  3115. {
  3116. FILE *f = fopen ("conftest.out", "w");
  3117. return ferror (f) || fclose (f) != 0;
  3118. ;
  3119. return 0;
  3120. }
  3121. _ACEOF
  3122. ac_clean_files="$ac_clean_files conftest.out"
  3123. # Check that the compiler produces executables we can run. If not, either
  3124. # the compiler is broken, or we cross compile.
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3126. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3127. if test "$cross_compiling" != yes; then
  3128. { { ac_try="$ac_link"
  3129. case "(($ac_try" in
  3130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3131. *) ac_try_echo=$ac_try;;
  3132. esac
  3133. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3134. $as_echo "$ac_try_echo"; } >&5
  3135. (eval "$ac_link") 2>&5
  3136. ac_status=$?
  3137. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3138. test $ac_status = 0; }
  3139. if { ac_try='./conftest$ac_cv_exeext'
  3140. { { case "(($ac_try" in
  3141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3142. *) ac_try_echo=$ac_try;;
  3143. esac
  3144. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3145. $as_echo "$ac_try_echo"; } >&5
  3146. (eval "$ac_try") 2>&5
  3147. ac_status=$?
  3148. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3149. test $ac_status = 0; }; }; then
  3150. cross_compiling=no
  3151. else
  3152. if test "$cross_compiling" = maybe; then
  3153. cross_compiling=yes
  3154. else
  3155. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3156. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3157. as_fn_error "cannot run C compiled programs.
  3158. If you meant to cross compile, use \`--host'.
  3159. See \`config.log' for more details." "$LINENO" 5; }
  3160. fi
  3161. fi
  3162. fi
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3164. $as_echo "$cross_compiling" >&6; }
  3165. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3166. ac_clean_files=$ac_clean_files_save
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3168. $as_echo_n "checking for suffix of object files... " >&6; }
  3169. if test "${ac_cv_objext+set}" = set; then :
  3170. $as_echo_n "(cached) " >&6
  3171. else
  3172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3173. /* end confdefs.h. */
  3174. int
  3175. main ()
  3176. {
  3177. ;
  3178. return 0;
  3179. }
  3180. _ACEOF
  3181. rm -f conftest.o conftest.obj
  3182. if { { ac_try="$ac_compile"
  3183. case "(($ac_try" in
  3184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3185. *) ac_try_echo=$ac_try;;
  3186. esac
  3187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3188. $as_echo "$ac_try_echo"; } >&5
  3189. (eval "$ac_compile") 2>&5
  3190. ac_status=$?
  3191. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3192. test $ac_status = 0; }; then :
  3193. for ac_file in conftest.o conftest.obj conftest.*; do
  3194. test -f "$ac_file" || continue;
  3195. case $ac_file in
  3196. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3197. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3198. break;;
  3199. esac
  3200. done
  3201. else
  3202. $as_echo "$as_me: failed program was:" >&5
  3203. sed 's/^/| /' conftest.$ac_ext >&5
  3204. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3205. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3206. as_fn_error "cannot compute suffix of object files: cannot compile
  3207. See \`config.log' for more details." "$LINENO" 5; }
  3208. fi
  3209. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3210. fi
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3212. $as_echo "$ac_cv_objext" >&6; }
  3213. OBJEXT=$ac_cv_objext
  3214. ac_objext=$OBJEXT
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3216. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3217. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3218. $as_echo_n "(cached) " >&6
  3219. else
  3220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3221. /* end confdefs.h. */
  3222. int
  3223. main ()
  3224. {
  3225. #ifndef __GNUC__
  3226. choke me
  3227. #endif
  3228. ;
  3229. return 0;
  3230. }
  3231. _ACEOF
  3232. if ac_fn_c_try_compile "$LINENO"; then :
  3233. ac_compiler_gnu=yes
  3234. else
  3235. ac_compiler_gnu=no
  3236. fi
  3237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3238. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3239. fi
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3241. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3242. if test $ac_compiler_gnu = yes; then
  3243. GCC=yes
  3244. else
  3245. GCC=
  3246. fi
  3247. ac_test_CFLAGS=${CFLAGS+set}
  3248. ac_save_CFLAGS=$CFLAGS
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3250. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3251. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. ac_save_c_werror_flag=$ac_c_werror_flag
  3255. ac_c_werror_flag=yes
  3256. ac_cv_prog_cc_g=no
  3257. CFLAGS="-g"
  3258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3259. /* end confdefs.h. */
  3260. int
  3261. main ()
  3262. {
  3263. ;
  3264. return 0;
  3265. }
  3266. _ACEOF
  3267. if ac_fn_c_try_compile "$LINENO"; then :
  3268. ac_cv_prog_cc_g=yes
  3269. else
  3270. CFLAGS=""
  3271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3272. /* end confdefs.h. */
  3273. int
  3274. main ()
  3275. {
  3276. ;
  3277. return 0;
  3278. }
  3279. _ACEOF
  3280. if ac_fn_c_try_compile "$LINENO"; then :
  3281. else
  3282. ac_c_werror_flag=$ac_save_c_werror_flag
  3283. CFLAGS="-g"
  3284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3285. /* end confdefs.h. */
  3286. int
  3287. main ()
  3288. {
  3289. ;
  3290. return 0;
  3291. }
  3292. _ACEOF
  3293. if ac_fn_c_try_compile "$LINENO"; then :
  3294. ac_cv_prog_cc_g=yes
  3295. fi
  3296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3297. fi
  3298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3299. fi
  3300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3301. ac_c_werror_flag=$ac_save_c_werror_flag
  3302. fi
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3304. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3305. if test "$ac_test_CFLAGS" = set; then
  3306. CFLAGS=$ac_save_CFLAGS
  3307. elif test $ac_cv_prog_cc_g = yes; then
  3308. if test "$GCC" = yes; then
  3309. CFLAGS="-g -O2"
  3310. else
  3311. CFLAGS="-g"
  3312. fi
  3313. else
  3314. if test "$GCC" = yes; then
  3315. CFLAGS="-O2"
  3316. else
  3317. CFLAGS=
  3318. fi
  3319. fi
  3320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3321. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3322. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3323. $as_echo_n "(cached) " >&6
  3324. else
  3325. ac_cv_prog_cc_c89=no
  3326. ac_save_CC=$CC
  3327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3328. /* end confdefs.h. */
  3329. #include <stdarg.h>
  3330. #include <stdio.h>
  3331. #include <sys/types.h>
  3332. #include <sys/stat.h>
  3333. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3334. struct buf { int x; };
  3335. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3336. static char *e (p, i)
  3337. char **p;
  3338. int i;
  3339. {
  3340. return p[i];
  3341. }
  3342. static char *f (char * (*g) (char **, int), char **p, ...)
  3343. {
  3344. char *s;
  3345. va_list v;
  3346. va_start (v,p);
  3347. s = g (p, va_arg (v,int));
  3348. va_end (v);
  3349. return s;
  3350. }
  3351. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3352. function prototypes and stuff, but not '\xHH' hex character constants.
  3353. These don't provoke an error unfortunately, instead are silently treated
  3354. as 'x'. The following induces an error, until -std is added to get
  3355. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3356. array size at least. It's necessary to write '\x00'==0 to get something
  3357. that's true only with -std. */
  3358. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3359. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3360. inside strings and character constants. */
  3361. #define FOO(x) 'x'
  3362. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3363. int test (int i, double x);
  3364. struct s1 {int (*f) (int a);};
  3365. struct s2 {int (*f) (double a);};
  3366. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3367. int argc;
  3368. char **argv;
  3369. int
  3370. main ()
  3371. {
  3372. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3373. ;
  3374. return 0;
  3375. }
  3376. _ACEOF
  3377. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3378. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3379. do
  3380. CC="$ac_save_CC $ac_arg"
  3381. if ac_fn_c_try_compile "$LINENO"; then :
  3382. ac_cv_prog_cc_c89=$ac_arg
  3383. fi
  3384. rm -f core conftest.err conftest.$ac_objext
  3385. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3386. done
  3387. rm -f conftest.$ac_ext
  3388. CC=$ac_save_CC
  3389. fi
  3390. # AC_CACHE_VAL
  3391. case "x$ac_cv_prog_cc_c89" in
  3392. x)
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3394. $as_echo "none needed" >&6; } ;;
  3395. xno)
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3397. $as_echo "unsupported" >&6; } ;;
  3398. *)
  3399. CC="$CC $ac_cv_prog_cc_c89"
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3401. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3402. esac
  3403. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3404. fi
  3405. ac_ext=c
  3406. ac_cpp='$CPP $CPPFLAGS'
  3407. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3408. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3409. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3410. depcc="$CC" am_compiler_list=
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3412. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3413. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3414. $as_echo_n "(cached) " >&6
  3415. else
  3416. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3417. # We make a subdir and do the tests there. Otherwise we can end up
  3418. # making bogus files that we don't know about and never remove. For
  3419. # instance it was reported that on HP-UX the gcc test will end up
  3420. # making a dummy file named `D' -- because `-MD' means `put the output
  3421. # in D'.
  3422. mkdir conftest.dir
  3423. # Copy depcomp to subdir because otherwise we won't find it if we're
  3424. # using a relative directory.
  3425. cp "$am_depcomp" conftest.dir
  3426. cd conftest.dir
  3427. # We will build objects and dependencies in a subdirectory because
  3428. # it helps to detect inapplicable dependency modes. For instance
  3429. # both Tru64's cc and ICC support -MD to output dependencies as a
  3430. # side effect of compilation, but ICC will put the dependencies in
  3431. # the current directory while Tru64 will put them in the object
  3432. # directory.
  3433. mkdir sub
  3434. am_cv_CC_dependencies_compiler_type=none
  3435. if test "$am_compiler_list" = ""; then
  3436. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3437. fi
  3438. am__universal=false
  3439. case " $depcc " in #(
  3440. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3441. esac
  3442. for depmode in $am_compiler_list; do
  3443. # Setup a source with many dependencies, because some compilers
  3444. # like to wrap large dependency lists on column 80 (with \), and
  3445. # we should not choose a depcomp mode which is confused by this.
  3446. #
  3447. # We need to recreate these files for each test, as the compiler may
  3448. # overwrite some of them when testing with obscure command lines.
  3449. # This happens at least with the AIX C compiler.
  3450. : > sub/conftest.c
  3451. for i in 1 2 3 4 5 6; do
  3452. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3453. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3454. # Solaris 8's {/usr,}/bin/sh.
  3455. touch sub/conftst$i.h
  3456. done
  3457. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3458. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3459. # mode. It turns out that the SunPro C++ compiler does not properly
  3460. # handle `-M -o', and we need to detect this. Also, some Intel
  3461. # versions had trouble with output in subdirs
  3462. am__obj=sub/conftest.${OBJEXT-o}
  3463. am__minus_obj="-o $am__obj"
  3464. case $depmode in
  3465. gcc)
  3466. # This depmode causes a compiler race in universal mode.
  3467. test "$am__universal" = false || continue
  3468. ;;
  3469. nosideeffect)
  3470. # after this tag, mechanisms are not by side-effect, so they'll
  3471. # only be used when explicitly requested
  3472. if test "x$enable_dependency_tracking" = xyes; then
  3473. continue
  3474. else
  3475. break
  3476. fi
  3477. ;;
  3478. msvisualcpp | msvcmsys)
  3479. # This compiler won't grok `-c -o', but also, the minuso test has
  3480. # not run yet. These depmodes are late enough in the game, and
  3481. # so weak that their functioning should not be impacted.
  3482. am__obj=conftest.${OBJEXT-o}
  3483. am__minus_obj=
  3484. ;;
  3485. none) break ;;
  3486. esac
  3487. if depmode=$depmode \
  3488. source=sub/conftest.c object=$am__obj \
  3489. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3490. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3491. >/dev/null 2>conftest.err &&
  3492. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3493. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3494. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3495. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3496. # icc doesn't choke on unknown options, it will just issue warnings
  3497. # or remarks (even with -Werror). So we grep stderr for any message
  3498. # that says an option was ignored or not supported.
  3499. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3500. # icc: Command line warning: ignoring option '-M'; no argument required
  3501. # The diagnosis changed in icc 8.0:
  3502. # icc: Command line remark: option '-MP' not supported
  3503. if (grep 'ignoring option' conftest.err ||
  3504. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3505. am_cv_CC_dependencies_compiler_type=$depmode
  3506. break
  3507. fi
  3508. fi
  3509. done
  3510. cd ..
  3511. rm -rf conftest.dir
  3512. else
  3513. am_cv_CC_dependencies_compiler_type=none
  3514. fi
  3515. fi
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3517. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3518. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3519. if
  3520. test "x$enable_dependency_tracking" != xno \
  3521. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3522. am__fastdepCC_TRUE=
  3523. am__fastdepCC_FALSE='#'
  3524. else
  3525. am__fastdepCC_TRUE='#'
  3526. am__fastdepCC_FALSE=
  3527. fi
  3528. if test "x$CC" != xcc; then
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  3530. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3531. else
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  3533. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3534. fi
  3535. set dummy $CC; ac_cc=`$as_echo "$2" |
  3536. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3537. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  3538. $as_echo_n "(cached) " >&6
  3539. else
  3540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3541. /* end confdefs.h. */
  3542. int
  3543. main ()
  3544. {
  3545. ;
  3546. return 0;
  3547. }
  3548. _ACEOF
  3549. # Make sure it works both with $CC and with simple cc.
  3550. # We do the test twice because some compilers refuse to overwrite an
  3551. # existing .o file with -o, though they will create one.
  3552. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3553. rm -f conftest2.*
  3554. if { { case "(($ac_try" in
  3555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3556. *) ac_try_echo=$ac_try;;
  3557. esac
  3558. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3559. $as_echo "$ac_try_echo"; } >&5
  3560. (eval "$ac_try") 2>&5
  3561. ac_status=$?
  3562. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3563. test $ac_status = 0; } &&
  3564. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3566. *) ac_try_echo=$ac_try;;
  3567. esac
  3568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3569. $as_echo "$ac_try_echo"; } >&5
  3570. (eval "$ac_try") 2>&5
  3571. ac_status=$?
  3572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3573. test $ac_status = 0; };
  3574. then
  3575. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3576. if test "x$CC" != xcc; then
  3577. # Test first that cc exists at all.
  3578. if { ac_try='cc -c conftest.$ac_ext >&5'
  3579. { { case "(($ac_try" in
  3580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3581. *) ac_try_echo=$ac_try;;
  3582. esac
  3583. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3584. $as_echo "$ac_try_echo"; } >&5
  3585. (eval "$ac_try") 2>&5
  3586. ac_status=$?
  3587. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3588. test $ac_status = 0; }; }; then
  3589. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3590. rm -f conftest2.*
  3591. if { { case "(($ac_try" in
  3592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3593. *) ac_try_echo=$ac_try;;
  3594. esac
  3595. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3596. $as_echo "$ac_try_echo"; } >&5
  3597. (eval "$ac_try") 2>&5
  3598. ac_status=$?
  3599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3600. test $ac_status = 0; } &&
  3601. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3603. *) ac_try_echo=$ac_try;;
  3604. esac
  3605. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3606. $as_echo "$ac_try_echo"; } >&5
  3607. (eval "$ac_try") 2>&5
  3608. ac_status=$?
  3609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3610. test $ac_status = 0; };
  3611. then
  3612. # cc works too.
  3613. :
  3614. else
  3615. # cc exists but doesn't like -o.
  3616. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3617. fi
  3618. fi
  3619. fi
  3620. else
  3621. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3622. fi
  3623. rm -f core conftest*
  3624. fi
  3625. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3627. $as_echo "yes" >&6; }
  3628. else
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3630. $as_echo "no" >&6; }
  3631. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  3632. fi
  3633. # FIXME: we rely on the cache variable name because
  3634. # there is no other way.
  3635. set dummy $CC
  3636. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3637. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  3638. if test "$am_t" != yes; then
  3639. # Losing compiler, so override with the script.
  3640. # FIXME: It is wrong to rewrite CC.
  3641. # But if we don't then we get into trouble of one sort or another.
  3642. # A longer-term fix would be to have automake use am__CC in this case,
  3643. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3644. CC="$am_aux_dir/compile $CC"
  3645. fi
  3646. # Commandline arguments ###################################################################################
  3647. # Check whether --enable-nutconf-gui was given.
  3648. if test "${enable_nutconf_gui+set}" = set; then :
  3649. enableval=$enable_nutconf_gui;
  3650. else
  3651. enable_nutconf_gui=yes
  3652. fi
  3653. REQWX="2.9.1"
  3654. nutconf_gui_ok=no
  3655. if test x$enable_nutconf_gui = xyes; then
  3656. WXCONFIG=wx-config
  3657. # Check whether --with-wx-config was given.
  3658. if test "${with_wx_config+set}" = set; then :
  3659. withval=$with_wx_config;
  3660. if test "$withval" != "yes" -a "$withval" != ""; then
  3661. WXCONFIG=$withval
  3662. fi
  3663. fi
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking wxWidgets version" >&5
  3665. $as_echo_n "checking wxWidgets version... " >&6; }
  3666. if wxversion=`$WXCONFIG --version`; then
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxversion" >&5
  3668. $as_echo "$wxversion" >&6; }
  3669. nutconf_gui_ok=yes
  3670. else
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  3672. $as_echo "not found" >&6; }
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxWidgets is required. Try --with-wx-config." >&5
  3674. $as_echo "$as_me: WARNING: wxWidgets is required. Try --with-wx-config." >&2;}
  3675. nutconf_gui_ok=no
  3676. fi
  3677. if test `expr "$wxversion" \< "$REQWX"` = 1 ; then
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Install wxWidget Version > 2.9 or configure with --disable-nutconf-gui" >&5
  3679. $as_echo "Install wxWidget Version > 2.9 or configure with --disable-nutconf-gui" >&6; }
  3680. as_fn_error "*** wxWidgets \"$REQWX\" or later is required." "$LINENO" 5
  3681. nutconf_gui_ok=no
  3682. fi
  3683. WX_CPPFLAGS="`$WXCONFIG --cppflags`"
  3684. WX_CXXFLAGS="`$WXCONFIG --cxxflags`"
  3685. WX_LIBS="`$WXCONFIG --libs`"
  3686. fi
  3687. ac_ext=c
  3688. ac_cpp='$CPP $CPPFLAGS'
  3689. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3690. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3691. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3693. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3694. # On Suns, sometimes $CPP names a directory.
  3695. if test -n "$CPP" && test -d "$CPP"; then
  3696. CPP=
  3697. fi
  3698. if test -z "$CPP"; then
  3699. if test "${ac_cv_prog_CPP+set}" = set; then :
  3700. $as_echo_n "(cached) " >&6
  3701. else
  3702. # Double quotes because CPP needs to be expanded
  3703. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3704. do
  3705. ac_preproc_ok=false
  3706. for ac_c_preproc_warn_flag in '' yes
  3707. do
  3708. # Use a header file that comes with gcc, so configuring glibc
  3709. # with a fresh cross-compiler works.
  3710. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3711. # <limits.h> exists even on freestanding compilers.
  3712. # On the NeXT, cc -E runs the code through the compiler's parser,
  3713. # not just through cpp. "Syntax error" is here to catch this case.
  3714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3715. /* end confdefs.h. */
  3716. #ifdef __STDC__
  3717. # include <limits.h>
  3718. #else
  3719. # include <assert.h>
  3720. #endif
  3721. Syntax error
  3722. _ACEOF
  3723. if ac_fn_c_try_cpp "$LINENO"; then :
  3724. else
  3725. # Broken: fails on valid input.
  3726. continue
  3727. fi
  3728. rm -f conftest.err conftest.$ac_ext
  3729. # OK, works on sane cases. Now check whether nonexistent headers
  3730. # can be detected and how.
  3731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3732. /* end confdefs.h. */
  3733. #include <ac_nonexistent.h>
  3734. _ACEOF
  3735. if ac_fn_c_try_cpp "$LINENO"; then :
  3736. # Broken: success on invalid input.
  3737. continue
  3738. else
  3739. # Passes both tests.
  3740. ac_preproc_ok=:
  3741. break
  3742. fi
  3743. rm -f conftest.err conftest.$ac_ext
  3744. done
  3745. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3746. rm -f conftest.err conftest.$ac_ext
  3747. if $ac_preproc_ok; then :
  3748. break
  3749. fi
  3750. done
  3751. ac_cv_prog_CPP=$CPP
  3752. fi
  3753. CPP=$ac_cv_prog_CPP
  3754. else
  3755. ac_cv_prog_CPP=$CPP
  3756. fi
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3758. $as_echo "$CPP" >&6; }
  3759. ac_preproc_ok=false
  3760. for ac_c_preproc_warn_flag in '' yes
  3761. do
  3762. # Use a header file that comes with gcc, so configuring glibc
  3763. # with a fresh cross-compiler works.
  3764. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3765. # <limits.h> exists even on freestanding compilers.
  3766. # On the NeXT, cc -E runs the code through the compiler's parser,
  3767. # not just through cpp. "Syntax error" is here to catch this case.
  3768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3769. /* end confdefs.h. */
  3770. #ifdef __STDC__
  3771. # include <limits.h>
  3772. #else
  3773. # include <assert.h>
  3774. #endif
  3775. Syntax error
  3776. _ACEOF
  3777. if ac_fn_c_try_cpp "$LINENO"; then :
  3778. else
  3779. # Broken: fails on valid input.
  3780. continue
  3781. fi
  3782. rm -f conftest.err conftest.$ac_ext
  3783. # OK, works on sane cases. Now check whether nonexistent headers
  3784. # can be detected and how.
  3785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3786. /* end confdefs.h. */
  3787. #include <ac_nonexistent.h>
  3788. _ACEOF
  3789. if ac_fn_c_try_cpp "$LINENO"; then :
  3790. # Broken: success on invalid input.
  3791. continue
  3792. else
  3793. # Passes both tests.
  3794. ac_preproc_ok=:
  3795. break
  3796. fi
  3797. rm -f conftest.err conftest.$ac_ext
  3798. done
  3799. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3800. rm -f conftest.err conftest.$ac_ext
  3801. if $ac_preproc_ok; then :
  3802. else
  3803. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3804. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3805. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3806. See \`config.log' for more details." "$LINENO" 5; }
  3807. fi
  3808. ac_ext=c
  3809. ac_cpp='$CPP $CPPFLAGS'
  3810. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3811. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3812. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3813. ac_ext=cpp
  3814. ac_cpp='$CXXCPP $CPPFLAGS'
  3815. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3816. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3817. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3818. if test -z "$CXX"; then
  3819. if test -n "$CCC"; then
  3820. CXX=$CCC
  3821. else
  3822. if test -n "$ac_tool_prefix"; then
  3823. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3824. do
  3825. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3826. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3828. $as_echo_n "checking for $ac_word... " >&6; }
  3829. if test "${ac_cv_prog_CXX+set}" = set; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. if test -n "$CXX"; then
  3833. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3834. else
  3835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3836. for as_dir in $PATH
  3837. do
  3838. IFS=$as_save_IFS
  3839. test -z "$as_dir" && as_dir=.
  3840. for ac_exec_ext in '' $ac_executable_extensions; do
  3841. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3842. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3844. break 2
  3845. fi
  3846. done
  3847. done
  3848. IFS=$as_save_IFS
  3849. fi
  3850. fi
  3851. CXX=$ac_cv_prog_CXX
  3852. if test -n "$CXX"; then
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3854. $as_echo "$CXX" >&6; }
  3855. else
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3857. $as_echo "no" >&6; }
  3858. fi
  3859. test -n "$CXX" && break
  3860. done
  3861. fi
  3862. if test -z "$CXX"; then
  3863. ac_ct_CXX=$CXX
  3864. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3865. do
  3866. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3867. set dummy $ac_prog; ac_word=$2
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3869. $as_echo_n "checking for $ac_word... " >&6; }
  3870. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3871. $as_echo_n "(cached) " >&6
  3872. else
  3873. if test -n "$ac_ct_CXX"; then
  3874. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3875. else
  3876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3877. for as_dir in $PATH
  3878. do
  3879. IFS=$as_save_IFS
  3880. test -z "$as_dir" && as_dir=.
  3881. for ac_exec_ext in '' $ac_executable_extensions; do
  3882. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3883. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3885. break 2
  3886. fi
  3887. done
  3888. done
  3889. IFS=$as_save_IFS
  3890. fi
  3891. fi
  3892. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3893. if test -n "$ac_ct_CXX"; then
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3895. $as_echo "$ac_ct_CXX" >&6; }
  3896. else
  3897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3898. $as_echo "no" >&6; }
  3899. fi
  3900. test -n "$ac_ct_CXX" && break
  3901. done
  3902. if test "x$ac_ct_CXX" = x; then
  3903. CXX="g++"
  3904. else
  3905. case $cross_compiling:$ac_tool_warned in
  3906. yes:)
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3908. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3909. ac_tool_warned=yes ;;
  3910. esac
  3911. CXX=$ac_ct_CXX
  3912. fi
  3913. fi
  3914. fi
  3915. fi
  3916. # Provide some information about the compiler.
  3917. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3918. set X $ac_compile
  3919. ac_compiler=$2
  3920. for ac_option in --version -v -V -qversion; do
  3921. { { ac_try="$ac_compiler $ac_option >&5"
  3922. case "(($ac_try" in
  3923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3924. *) ac_try_echo=$ac_try;;
  3925. esac
  3926. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3927. $as_echo "$ac_try_echo"; } >&5
  3928. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3929. ac_status=$?
  3930. if test -s conftest.err; then
  3931. sed '10a\
  3932. ... rest of stderr output deleted ...
  3933. 10q' conftest.err >conftest.er1
  3934. cat conftest.er1 >&5
  3935. fi
  3936. rm -f conftest.er1 conftest.err
  3937. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3938. test $ac_status = 0; }
  3939. done
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3941. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3942. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3943. $as_echo_n "(cached) " >&6
  3944. else
  3945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3946. /* end confdefs.h. */
  3947. int
  3948. main ()
  3949. {
  3950. #ifndef __GNUC__
  3951. choke me
  3952. #endif
  3953. ;
  3954. return 0;
  3955. }
  3956. _ACEOF
  3957. if ac_fn_cxx_try_compile "$LINENO"; then :
  3958. ac_compiler_gnu=yes
  3959. else
  3960. ac_compiler_gnu=no
  3961. fi
  3962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3963. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3964. fi
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3966. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3967. if test $ac_compiler_gnu = yes; then
  3968. GXX=yes
  3969. else
  3970. GXX=
  3971. fi
  3972. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3973. ac_save_CXXFLAGS=$CXXFLAGS
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3975. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3976. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3977. $as_echo_n "(cached) " >&6
  3978. else
  3979. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3980. ac_cxx_werror_flag=yes
  3981. ac_cv_prog_cxx_g=no
  3982. CXXFLAGS="-g"
  3983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3984. /* end confdefs.h. */
  3985. int
  3986. main ()
  3987. {
  3988. ;
  3989. return 0;
  3990. }
  3991. _ACEOF
  3992. if ac_fn_cxx_try_compile "$LINENO"; then :
  3993. ac_cv_prog_cxx_g=yes
  3994. else
  3995. CXXFLAGS=""
  3996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3997. /* end confdefs.h. */
  3998. int
  3999. main ()
  4000. {
  4001. ;
  4002. return 0;
  4003. }
  4004. _ACEOF
  4005. if ac_fn_cxx_try_compile "$LINENO"; then :
  4006. else
  4007. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4008. CXXFLAGS="-g"
  4009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4010. /* end confdefs.h. */
  4011. int
  4012. main ()
  4013. {
  4014. ;
  4015. return 0;
  4016. }
  4017. _ACEOF
  4018. if ac_fn_cxx_try_compile "$LINENO"; then :
  4019. ac_cv_prog_cxx_g=yes
  4020. fi
  4021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4022. fi
  4023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4024. fi
  4025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4026. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4027. fi
  4028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4029. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4030. if test "$ac_test_CXXFLAGS" = set; then
  4031. CXXFLAGS=$ac_save_CXXFLAGS
  4032. elif test $ac_cv_prog_cxx_g = yes; then
  4033. if test "$GXX" = yes; then
  4034. CXXFLAGS="-g -O2"
  4035. else
  4036. CXXFLAGS="-g"
  4037. fi
  4038. else
  4039. if test "$GXX" = yes; then
  4040. CXXFLAGS="-O2"
  4041. else
  4042. CXXFLAGS=
  4043. fi
  4044. fi
  4045. ac_ext=c
  4046. ac_cpp='$CPP $CPPFLAGS'
  4047. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4048. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4049. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4050. depcc="$CXX" am_compiler_list=
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4052. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4053. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  4054. $as_echo_n "(cached) " >&6
  4055. else
  4056. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4057. # We make a subdir and do the tests there. Otherwise we can end up
  4058. # making bogus files that we don't know about and never remove. For
  4059. # instance it was reported that on HP-UX the gcc test will end up
  4060. # making a dummy file named `D' -- because `-MD' means `put the output
  4061. # in D'.
  4062. mkdir conftest.dir
  4063. # Copy depcomp to subdir because otherwise we won't find it if we're
  4064. # using a relative directory.
  4065. cp "$am_depcomp" conftest.dir
  4066. cd conftest.dir
  4067. # We will build objects and dependencies in a subdirectory because
  4068. # it helps to detect inapplicable dependency modes. For instance
  4069. # both Tru64's cc and ICC support -MD to output dependencies as a
  4070. # side effect of compilation, but ICC will put the dependencies in
  4071. # the current directory while Tru64 will put them in the object
  4072. # directory.
  4073. mkdir sub
  4074. am_cv_CXX_dependencies_compiler_type=none
  4075. if test "$am_compiler_list" = ""; then
  4076. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4077. fi
  4078. am__universal=false
  4079. case " $depcc " in #(
  4080. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4081. esac
  4082. for depmode in $am_compiler_list; do
  4083. # Setup a source with many dependencies, because some compilers
  4084. # like to wrap large dependency lists on column 80 (with \), and
  4085. # we should not choose a depcomp mode which is confused by this.
  4086. #
  4087. # We need to recreate these files for each test, as the compiler may
  4088. # overwrite some of them when testing with obscure command lines.
  4089. # This happens at least with the AIX C compiler.
  4090. : > sub/conftest.c
  4091. for i in 1 2 3 4 5 6; do
  4092. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4093. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4094. # Solaris 8's {/usr,}/bin/sh.
  4095. touch sub/conftst$i.h
  4096. done
  4097. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4098. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4099. # mode. It turns out that the SunPro C++ compiler does not properly
  4100. # handle `-M -o', and we need to detect this. Also, some Intel
  4101. # versions had trouble with output in subdirs
  4102. am__obj=sub/conftest.${OBJEXT-o}
  4103. am__minus_obj="-o $am__obj"
  4104. case $depmode in
  4105. gcc)
  4106. # This depmode causes a compiler race in universal mode.
  4107. test "$am__universal" = false || continue
  4108. ;;
  4109. nosideeffect)
  4110. # after this tag, mechanisms are not by side-effect, so they'll
  4111. # only be used when explicitly requested
  4112. if test "x$enable_dependency_tracking" = xyes; then
  4113. continue
  4114. else
  4115. break
  4116. fi
  4117. ;;
  4118. msvisualcpp | msvcmsys)
  4119. # This compiler won't grok `-c -o', but also, the minuso test has
  4120. # not run yet. These depmodes are late enough in the game, and
  4121. # so weak that their functioning should not be impacted.
  4122. am__obj=conftest.${OBJEXT-o}
  4123. am__minus_obj=
  4124. ;;
  4125. none) break ;;
  4126. esac
  4127. if depmode=$depmode \
  4128. source=sub/conftest.c object=$am__obj \
  4129. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4130. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4131. >/dev/null 2>conftest.err &&
  4132. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4133. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4134. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4135. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4136. # icc doesn't choke on unknown options, it will just issue warnings
  4137. # or remarks (even with -Werror). So we grep stderr for any message
  4138. # that says an option was ignored or not supported.
  4139. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4140. # icc: Command line warning: ignoring option '-M'; no argument required
  4141. # The diagnosis changed in icc 8.0:
  4142. # icc: Command line remark: option '-MP' not supported
  4143. if (grep 'ignoring option' conftest.err ||
  4144. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4145. am_cv_CXX_dependencies_compiler_type=$depmode
  4146. break
  4147. fi
  4148. fi
  4149. done
  4150. cd ..
  4151. rm -rf conftest.dir
  4152. else
  4153. am_cv_CXX_dependencies_compiler_type=none
  4154. fi
  4155. fi
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4157. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4158. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4159. if
  4160. test "x$enable_dependency_tracking" != xno \
  4161. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4162. am__fastdepCXX_TRUE=
  4163. am__fastdepCXX_FALSE='#'
  4164. else
  4165. am__fastdepCXX_TRUE='#'
  4166. am__fastdepCXX_FALSE=
  4167. fi
  4168. case `pwd` in
  4169. *\ * | *\ *)
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4171. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4172. esac
  4173. macro_version='2.2.6b'
  4174. macro_revision='1.3017'
  4175. ltmain="$ac_aux_dir/ltmain.sh"
  4176. # Make sure we can run config.sub.
  4177. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4178. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4180. $as_echo_n "checking build system type... " >&6; }
  4181. if test "${ac_cv_build+set}" = set; then :
  4182. $as_echo_n "(cached) " >&6
  4183. else
  4184. ac_build_alias=$build_alias
  4185. test "x$ac_build_alias" = x &&
  4186. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4187. test "x$ac_build_alias" = x &&
  4188. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  4189. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4190. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4191. fi
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4193. $as_echo "$ac_cv_build" >&6; }
  4194. case $ac_cv_build in
  4195. *-*-*) ;;
  4196. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  4197. esac
  4198. build=$ac_cv_build
  4199. ac_save_IFS=$IFS; IFS='-'
  4200. set x $ac_cv_build
  4201. shift
  4202. build_cpu=$1
  4203. build_vendor=$2
  4204. shift; shift
  4205. # Remember, the first character of IFS is used to create $*,
  4206. # except with old shells:
  4207. build_os=$*
  4208. IFS=$ac_save_IFS
  4209. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4211. $as_echo_n "checking host system type... " >&6; }
  4212. if test "${ac_cv_host+set}" = set; then :
  4213. $as_echo_n "(cached) " >&6
  4214. else
  4215. if test "x$host_alias" = x; then
  4216. ac_cv_host=$ac_cv_build
  4217. else
  4218. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4219. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4220. fi
  4221. fi
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4223. $as_echo "$ac_cv_host" >&6; }
  4224. case $ac_cv_host in
  4225. *-*-*) ;;
  4226. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  4227. esac
  4228. host=$ac_cv_host
  4229. ac_save_IFS=$IFS; IFS='-'
  4230. set x $ac_cv_host
  4231. shift
  4232. host_cpu=$1
  4233. host_vendor=$2
  4234. shift; shift
  4235. # Remember, the first character of IFS is used to create $*,
  4236. # except with old shells:
  4237. host_os=$*
  4238. IFS=$ac_save_IFS
  4239. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4241. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4242. if test "${ac_cv_path_SED+set}" = set; then :
  4243. $as_echo_n "(cached) " >&6
  4244. else
  4245. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4246. for ac_i in 1 2 3 4 5 6 7; do
  4247. ac_script="$ac_script$as_nl$ac_script"
  4248. done
  4249. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4250. { ac_script=; unset ac_script;}
  4251. if test -z "$SED"; then
  4252. ac_path_SED_found=false
  4253. # Loop through the user's path and test for each of PROGNAME-LIST
  4254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4255. for as_dir in $PATH
  4256. do
  4257. IFS=$as_save_IFS
  4258. test -z "$as_dir" && as_dir=.
  4259. for ac_prog in sed gsed; do
  4260. for ac_exec_ext in '' $ac_executable_extensions; do
  4261. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4262. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4263. # Check for GNU ac_path_SED and select it if it is found.
  4264. # Check for GNU $ac_path_SED
  4265. case `"$ac_path_SED" --version 2>&1` in
  4266. *GNU*)
  4267. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4268. *)
  4269. ac_count=0
  4270. $as_echo_n 0123456789 >"conftest.in"
  4271. while :
  4272. do
  4273. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4274. mv "conftest.tmp" "conftest.in"
  4275. cp "conftest.in" "conftest.nl"
  4276. $as_echo '' >> "conftest.nl"
  4277. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4278. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4279. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4280. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4281. # Best one so far, save it but keep looking for a better one
  4282. ac_cv_path_SED="$ac_path_SED"
  4283. ac_path_SED_max=$ac_count
  4284. fi
  4285. # 10*(2^10) chars as input seems more than enough
  4286. test $ac_count -gt 10 && break
  4287. done
  4288. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4289. esac
  4290. $ac_path_SED_found && break 3
  4291. done
  4292. done
  4293. done
  4294. IFS=$as_save_IFS
  4295. if test -z "$ac_cv_path_SED"; then
  4296. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4297. fi
  4298. else
  4299. ac_cv_path_SED=$SED
  4300. fi
  4301. fi
  4302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4303. $as_echo "$ac_cv_path_SED" >&6; }
  4304. SED="$ac_cv_path_SED"
  4305. rm -f conftest.sed
  4306. test -z "$SED" && SED=sed
  4307. Xsed="$SED -e 1s/^X//"
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4309. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4310. if test "${ac_cv_path_GREP+set}" = set; then :
  4311. $as_echo_n "(cached) " >&6
  4312. else
  4313. if test -z "$GREP"; then
  4314. ac_path_GREP_found=false
  4315. # Loop through the user's path and test for each of PROGNAME-LIST
  4316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4317. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4318. do
  4319. IFS=$as_save_IFS
  4320. test -z "$as_dir" && as_dir=.
  4321. for ac_prog in grep ggrep; do
  4322. for ac_exec_ext in '' $ac_executable_extensions; do
  4323. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4324. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4325. # Check for GNU ac_path_GREP and select it if it is found.
  4326. # Check for GNU $ac_path_GREP
  4327. case `"$ac_path_GREP" --version 2>&1` in
  4328. *GNU*)
  4329. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4330. *)
  4331. ac_count=0
  4332. $as_echo_n 0123456789 >"conftest.in"
  4333. while :
  4334. do
  4335. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4336. mv "conftest.tmp" "conftest.in"
  4337. cp "conftest.in" "conftest.nl"
  4338. $as_echo 'GREP' >> "conftest.nl"
  4339. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4340. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4341. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4342. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4343. # Best one so far, save it but keep looking for a better one
  4344. ac_cv_path_GREP="$ac_path_GREP"
  4345. ac_path_GREP_max=$ac_count
  4346. fi
  4347. # 10*(2^10) chars as input seems more than enough
  4348. test $ac_count -gt 10 && break
  4349. done
  4350. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4351. esac
  4352. $ac_path_GREP_found && break 3
  4353. done
  4354. done
  4355. done
  4356. IFS=$as_save_IFS
  4357. if test -z "$ac_cv_path_GREP"; then
  4358. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4359. fi
  4360. else
  4361. ac_cv_path_GREP=$GREP
  4362. fi
  4363. fi
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4365. $as_echo "$ac_cv_path_GREP" >&6; }
  4366. GREP="$ac_cv_path_GREP"
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4368. $as_echo_n "checking for egrep... " >&6; }
  4369. if test "${ac_cv_path_EGREP+set}" = set; then :
  4370. $as_echo_n "(cached) " >&6
  4371. else
  4372. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4373. then ac_cv_path_EGREP="$GREP -E"
  4374. else
  4375. if test -z "$EGREP"; then
  4376. ac_path_EGREP_found=false
  4377. # Loop through the user's path and test for each of PROGNAME-LIST
  4378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4379. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4380. do
  4381. IFS=$as_save_IFS
  4382. test -z "$as_dir" && as_dir=.
  4383. for ac_prog in egrep; do
  4384. for ac_exec_ext in '' $ac_executable_extensions; do
  4385. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4386. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4387. # Check for GNU ac_path_EGREP and select it if it is found.
  4388. # Check for GNU $ac_path_EGREP
  4389. case `"$ac_path_EGREP" --version 2>&1` in
  4390. *GNU*)
  4391. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4392. *)
  4393. ac_count=0
  4394. $as_echo_n 0123456789 >"conftest.in"
  4395. while :
  4396. do
  4397. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4398. mv "conftest.tmp" "conftest.in"
  4399. cp "conftest.in" "conftest.nl"
  4400. $as_echo 'EGREP' >> "conftest.nl"
  4401. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4402. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4403. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4404. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4405. # Best one so far, save it but keep looking for a better one
  4406. ac_cv_path_EGREP="$ac_path_EGREP"
  4407. ac_path_EGREP_max=$ac_count
  4408. fi
  4409. # 10*(2^10) chars as input seems more than enough
  4410. test $ac_count -gt 10 && break
  4411. done
  4412. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4413. esac
  4414. $ac_path_EGREP_found && break 3
  4415. done
  4416. done
  4417. done
  4418. IFS=$as_save_IFS
  4419. if test -z "$ac_cv_path_EGREP"; then
  4420. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4421. fi
  4422. else
  4423. ac_cv_path_EGREP=$EGREP
  4424. fi
  4425. fi
  4426. fi
  4427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4428. $as_echo "$ac_cv_path_EGREP" >&6; }
  4429. EGREP="$ac_cv_path_EGREP"
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4431. $as_echo_n "checking for fgrep... " >&6; }
  4432. if test "${ac_cv_path_FGREP+set}" = set; then :
  4433. $as_echo_n "(cached) " >&6
  4434. else
  4435. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4436. then ac_cv_path_FGREP="$GREP -F"
  4437. else
  4438. if test -z "$FGREP"; then
  4439. ac_path_FGREP_found=false
  4440. # Loop through the user's path and test for each of PROGNAME-LIST
  4441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4442. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4443. do
  4444. IFS=$as_save_IFS
  4445. test -z "$as_dir" && as_dir=.
  4446. for ac_prog in fgrep; do
  4447. for ac_exec_ext in '' $ac_executable_extensions; do
  4448. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4449. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4450. # Check for GNU ac_path_FGREP and select it if it is found.
  4451. # Check for GNU $ac_path_FGREP
  4452. case `"$ac_path_FGREP" --version 2>&1` in
  4453. *GNU*)
  4454. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4455. *)
  4456. ac_count=0
  4457. $as_echo_n 0123456789 >"conftest.in"
  4458. while :
  4459. do
  4460. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4461. mv "conftest.tmp" "conftest.in"
  4462. cp "conftest.in" "conftest.nl"
  4463. $as_echo 'FGREP' >> "conftest.nl"
  4464. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4465. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4466. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4467. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4468. # Best one so far, save it but keep looking for a better one
  4469. ac_cv_path_FGREP="$ac_path_FGREP"
  4470. ac_path_FGREP_max=$ac_count
  4471. fi
  4472. # 10*(2^10) chars as input seems more than enough
  4473. test $ac_count -gt 10 && break
  4474. done
  4475. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4476. esac
  4477. $ac_path_FGREP_found && break 3
  4478. done
  4479. done
  4480. done
  4481. IFS=$as_save_IFS
  4482. if test -z "$ac_cv_path_FGREP"; then
  4483. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4484. fi
  4485. else
  4486. ac_cv_path_FGREP=$FGREP
  4487. fi
  4488. fi
  4489. fi
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4491. $as_echo "$ac_cv_path_FGREP" >&6; }
  4492. FGREP="$ac_cv_path_FGREP"
  4493. test -z "$GREP" && GREP=grep
  4494. # Check whether --with-gnu-ld was given.
  4495. if test "${with_gnu_ld+set}" = set; then :
  4496. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4497. else
  4498. with_gnu_ld=no
  4499. fi
  4500. ac_prog=ld
  4501. if test "$GCC" = yes; then
  4502. # Check if gcc -print-prog-name=ld gives a path.
  4503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4504. $as_echo_n "checking for ld used by $CC... " >&6; }
  4505. case $host in
  4506. *-*-mingw*)
  4507. # gcc leaves a trailing carriage return which upsets mingw
  4508. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4509. *)
  4510. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4511. esac
  4512. case $ac_prog in
  4513. # Accept absolute paths.
  4514. [\\/]* | ?:[\\/]*)
  4515. re_direlt='/[^/][^/]*/\.\./'
  4516. # Canonicalize the pathname of ld
  4517. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4518. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4519. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4520. done
  4521. test -z "$LD" && LD="$ac_prog"
  4522. ;;
  4523. "")
  4524. # If it fails, then pretend we aren't using GCC.
  4525. ac_prog=ld
  4526. ;;
  4527. *)
  4528. # If it is relative, then search for the first ld in PATH.
  4529. with_gnu_ld=unknown
  4530. ;;
  4531. esac
  4532. elif test "$with_gnu_ld" = yes; then
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4534. $as_echo_n "checking for GNU ld... " >&6; }
  4535. else
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4537. $as_echo_n "checking for non-GNU ld... " >&6; }
  4538. fi
  4539. if test "${lt_cv_path_LD+set}" = set; then :
  4540. $as_echo_n "(cached) " >&6
  4541. else
  4542. if test -z "$LD"; then
  4543. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4544. for ac_dir in $PATH; do
  4545. IFS="$lt_save_ifs"
  4546. test -z "$ac_dir" && ac_dir=.
  4547. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4548. lt_cv_path_LD="$ac_dir/$ac_prog"
  4549. # Check to see if the program is GNU ld. I'd rather use --version,
  4550. # but apparently some variants of GNU ld only accept -v.
  4551. # Break only if it was the GNU/non-GNU ld that we prefer.
  4552. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4553. *GNU* | *'with BFD'*)
  4554. test "$with_gnu_ld" != no && break
  4555. ;;
  4556. *)
  4557. test "$with_gnu_ld" != yes && break
  4558. ;;
  4559. esac
  4560. fi
  4561. done
  4562. IFS="$lt_save_ifs"
  4563. else
  4564. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4565. fi
  4566. fi
  4567. LD="$lt_cv_path_LD"
  4568. if test -n "$LD"; then
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4570. $as_echo "$LD" >&6; }
  4571. else
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4573. $as_echo "no" >&6; }
  4574. fi
  4575. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4577. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4578. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4582. case `$LD -v 2>&1 </dev/null` in
  4583. *GNU* | *'with BFD'*)
  4584. lt_cv_prog_gnu_ld=yes
  4585. ;;
  4586. *)
  4587. lt_cv_prog_gnu_ld=no
  4588. ;;
  4589. esac
  4590. fi
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4592. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4593. with_gnu_ld=$lt_cv_prog_gnu_ld
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4595. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4596. if test "${lt_cv_path_NM+set}" = set; then :
  4597. $as_echo_n "(cached) " >&6
  4598. else
  4599. if test -n "$NM"; then
  4600. # Let the user override the test.
  4601. lt_cv_path_NM="$NM"
  4602. else
  4603. lt_nm_to_check="${ac_tool_prefix}nm"
  4604. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4605. lt_nm_to_check="$lt_nm_to_check nm"
  4606. fi
  4607. for lt_tmp_nm in $lt_nm_to_check; do
  4608. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4609. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4610. IFS="$lt_save_ifs"
  4611. test -z "$ac_dir" && ac_dir=.
  4612. tmp_nm="$ac_dir/$lt_tmp_nm"
  4613. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4614. # Check to see if the nm accepts a BSD-compat flag.
  4615. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4616. # nm: unknown option "B" ignored
  4617. # Tru64's nm complains that /dev/null is an invalid object file
  4618. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4619. */dev/null* | *'Invalid file or object type'*)
  4620. lt_cv_path_NM="$tmp_nm -B"
  4621. break
  4622. ;;
  4623. *)
  4624. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4625. */dev/null*)
  4626. lt_cv_path_NM="$tmp_nm -p"
  4627. break
  4628. ;;
  4629. *)
  4630. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4631. continue # so that we can try to find one that supports BSD flags
  4632. ;;
  4633. esac
  4634. ;;
  4635. esac
  4636. fi
  4637. done
  4638. IFS="$lt_save_ifs"
  4639. done
  4640. : ${lt_cv_path_NM=no}
  4641. fi
  4642. fi
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4644. $as_echo "$lt_cv_path_NM" >&6; }
  4645. if test "$lt_cv_path_NM" != "no"; then
  4646. NM="$lt_cv_path_NM"
  4647. else
  4648. # Didn't find any BSD compatible name lister, look for dumpbin.
  4649. if test -n "$ac_tool_prefix"; then
  4650. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4651. do
  4652. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4653. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4655. $as_echo_n "checking for $ac_word... " >&6; }
  4656. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4657. $as_echo_n "(cached) " >&6
  4658. else
  4659. if test -n "$DUMPBIN"; then
  4660. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4661. else
  4662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4663. for as_dir in $PATH
  4664. do
  4665. IFS=$as_save_IFS
  4666. test -z "$as_dir" && as_dir=.
  4667. for ac_exec_ext in '' $ac_executable_extensions; do
  4668. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4669. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4670. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4671. break 2
  4672. fi
  4673. done
  4674. done
  4675. IFS=$as_save_IFS
  4676. fi
  4677. fi
  4678. DUMPBIN=$ac_cv_prog_DUMPBIN
  4679. if test -n "$DUMPBIN"; then
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4681. $as_echo "$DUMPBIN" >&6; }
  4682. else
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4684. $as_echo "no" >&6; }
  4685. fi
  4686. test -n "$DUMPBIN" && break
  4687. done
  4688. fi
  4689. if test -z "$DUMPBIN"; then
  4690. ac_ct_DUMPBIN=$DUMPBIN
  4691. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4692. do
  4693. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4694. set dummy $ac_prog; ac_word=$2
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4696. $as_echo_n "checking for $ac_word... " >&6; }
  4697. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4698. $as_echo_n "(cached) " >&6
  4699. else
  4700. if test -n "$ac_ct_DUMPBIN"; then
  4701. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4702. else
  4703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4704. for as_dir in $PATH
  4705. do
  4706. IFS=$as_save_IFS
  4707. test -z "$as_dir" && as_dir=.
  4708. for ac_exec_ext in '' $ac_executable_extensions; do
  4709. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4710. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4712. break 2
  4713. fi
  4714. done
  4715. done
  4716. IFS=$as_save_IFS
  4717. fi
  4718. fi
  4719. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4720. if test -n "$ac_ct_DUMPBIN"; then
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4722. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4723. else
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4725. $as_echo "no" >&6; }
  4726. fi
  4727. test -n "$ac_ct_DUMPBIN" && break
  4728. done
  4729. if test "x$ac_ct_DUMPBIN" = x; then
  4730. DUMPBIN=":"
  4731. else
  4732. case $cross_compiling:$ac_tool_warned in
  4733. yes:)
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4735. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4736. ac_tool_warned=yes ;;
  4737. esac
  4738. DUMPBIN=$ac_ct_DUMPBIN
  4739. fi
  4740. fi
  4741. if test "$DUMPBIN" != ":"; then
  4742. NM="$DUMPBIN"
  4743. fi
  4744. fi
  4745. test -z "$NM" && NM=nm
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4747. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4748. if test "${lt_cv_nm_interface+set}" = set; then :
  4749. $as_echo_n "(cached) " >&6
  4750. else
  4751. lt_cv_nm_interface="BSD nm"
  4752. echo "int some_variable = 0;" > conftest.$ac_ext
  4753. (eval echo "\"\$as_me:5280: $ac_compile\"" >&5)
  4754. (eval "$ac_compile" 2>conftest.err)
  4755. cat conftest.err >&5
  4756. (eval echo "\"\$as_me:5283: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4757. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4758. cat conftest.err >&5
  4759. (eval echo "\"\$as_me:5286: output\"" >&5)
  4760. cat conftest.out >&5
  4761. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4762. lt_cv_nm_interface="MS dumpbin"
  4763. fi
  4764. rm -f conftest*
  4765. fi
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4767. $as_echo "$lt_cv_nm_interface" >&6; }
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4769. $as_echo_n "checking whether ln -s works... " >&6; }
  4770. LN_S=$as_ln_s
  4771. if test "$LN_S" = "ln -s"; then
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4773. $as_echo "yes" >&6; }
  4774. else
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4776. $as_echo "no, using $LN_S" >&6; }
  4777. fi
  4778. # find the maximum length of command line arguments
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4780. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4781. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4782. $as_echo_n "(cached) " >&6
  4783. else
  4784. i=0
  4785. teststring="ABCD"
  4786. case $build_os in
  4787. msdosdjgpp*)
  4788. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4789. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4790. # during glob expansion). Even if it were fixed, the result of this
  4791. # check would be larger than it should be.
  4792. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4793. ;;
  4794. gnu*)
  4795. # Under GNU Hurd, this test is not required because there is
  4796. # no limit to the length of command line arguments.
  4797. # Libtool will interpret -1 as no limit whatsoever
  4798. lt_cv_sys_max_cmd_len=-1;
  4799. ;;
  4800. cygwin* | mingw* | cegcc*)
  4801. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4802. # about 5 minutes as the teststring grows exponentially.
  4803. # Worse, since 9x/ME are not pre-emptively multitasking,
  4804. # you end up with a "frozen" computer, even though with patience
  4805. # the test eventually succeeds (with a max line length of 256k).
  4806. # Instead, let's just punt: use the minimum linelength reported by
  4807. # all of the supported platforms: 8192 (on NT/2K/XP).
  4808. lt_cv_sys_max_cmd_len=8192;
  4809. ;;
  4810. amigaos*)
  4811. # On AmigaOS with pdksh, this test takes hours, literally.
  4812. # So we just punt and use a minimum line length of 8192.
  4813. lt_cv_sys_max_cmd_len=8192;
  4814. ;;
  4815. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4816. # This has been around since 386BSD, at least. Likely further.
  4817. if test -x /sbin/sysctl; then
  4818. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4819. elif test -x /usr/sbin/sysctl; then
  4820. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4821. else
  4822. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4823. fi
  4824. # And add a safety zone
  4825. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4826. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4827. ;;
  4828. interix*)
  4829. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4830. lt_cv_sys_max_cmd_len=196608
  4831. ;;
  4832. osf*)
  4833. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4834. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4835. # nice to cause kernel panics so lets avoid the loop below.
  4836. # First set a reasonable default.
  4837. lt_cv_sys_max_cmd_len=16384
  4838. #
  4839. if test -x /sbin/sysconfig; then
  4840. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4841. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4842. esac
  4843. fi
  4844. ;;
  4845. sco3.2v5*)
  4846. lt_cv_sys_max_cmd_len=102400
  4847. ;;
  4848. sysv5* | sco5v6* | sysv4.2uw2*)
  4849. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4850. if test -n "$kargmax"; then
  4851. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4852. else
  4853. lt_cv_sys_max_cmd_len=32768
  4854. fi
  4855. ;;
  4856. *)
  4857. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4858. if test -n "$lt_cv_sys_max_cmd_len"; then
  4859. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4860. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4861. else
  4862. # Make teststring a little bigger before we do anything with it.
  4863. # a 1K string should be a reasonable start.
  4864. for i in 1 2 3 4 5 6 7 8 ; do
  4865. teststring=$teststring$teststring
  4866. done
  4867. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4868. # If test is not a shell built-in, we'll probably end up computing a
  4869. # maximum length that is only half of the actual maximum length, but
  4870. # we can't tell.
  4871. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4872. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4873. test $i != 17 # 1/2 MB should be enough
  4874. do
  4875. i=`expr $i + 1`
  4876. teststring=$teststring$teststring
  4877. done
  4878. # Only check the string length outside the loop.
  4879. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4880. teststring=
  4881. # Add a significant safety factor because C++ compilers can tack on
  4882. # massive amounts of additional arguments before passing them to the
  4883. # linker. It appears as though 1/2 is a usable value.
  4884. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4885. fi
  4886. ;;
  4887. esac
  4888. fi
  4889. if test -n $lt_cv_sys_max_cmd_len ; then
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4891. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4892. else
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4894. $as_echo "none" >&6; }
  4895. fi
  4896. max_cmd_len=$lt_cv_sys_max_cmd_len
  4897. : ${CP="cp -f"}
  4898. : ${MV="mv -f"}
  4899. : ${RM="rm -f"}
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4901. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4902. # Try some XSI features
  4903. xsi_shell=no
  4904. ( _lt_dummy="a/b/c"
  4905. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4906. = c,a/b,, \
  4907. && eval 'test $(( 1 + 1 )) -eq 2 \
  4908. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4909. && xsi_shell=yes
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4911. $as_echo "$xsi_shell" >&6; }
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4913. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4914. lt_shell_append=no
  4915. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4916. >/dev/null 2>&1 \
  4917. && lt_shell_append=yes
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4919. $as_echo "$lt_shell_append" >&6; }
  4920. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4921. lt_unset=unset
  4922. else
  4923. lt_unset=false
  4924. fi
  4925. # test EBCDIC or ASCII
  4926. case `echo X|tr X '\101'` in
  4927. A) # ASCII based system
  4928. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4929. lt_SP2NL='tr \040 \012'
  4930. lt_NL2SP='tr \015\012 \040\040'
  4931. ;;
  4932. *) # EBCDIC based system
  4933. lt_SP2NL='tr \100 \n'
  4934. lt_NL2SP='tr \r\n \100\100'
  4935. ;;
  4936. esac
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4938. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4939. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4940. $as_echo_n "(cached) " >&6
  4941. else
  4942. lt_cv_ld_reload_flag='-r'
  4943. fi
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4945. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4946. reload_flag=$lt_cv_ld_reload_flag
  4947. case $reload_flag in
  4948. "" | " "*) ;;
  4949. *) reload_flag=" $reload_flag" ;;
  4950. esac
  4951. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4952. case $host_os in
  4953. darwin*)
  4954. if test "$GCC" = yes; then
  4955. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4956. else
  4957. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4958. fi
  4959. ;;
  4960. esac
  4961. if test -n "$ac_tool_prefix"; then
  4962. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4963. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4965. $as_echo_n "checking for $ac_word... " >&6; }
  4966. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4967. $as_echo_n "(cached) " >&6
  4968. else
  4969. if test -n "$OBJDUMP"; then
  4970. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4971. else
  4972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4973. for as_dir in $PATH
  4974. do
  4975. IFS=$as_save_IFS
  4976. test -z "$as_dir" && as_dir=.
  4977. for ac_exec_ext in '' $ac_executable_extensions; do
  4978. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4979. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4981. break 2
  4982. fi
  4983. done
  4984. done
  4985. IFS=$as_save_IFS
  4986. fi
  4987. fi
  4988. OBJDUMP=$ac_cv_prog_OBJDUMP
  4989. if test -n "$OBJDUMP"; then
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4991. $as_echo "$OBJDUMP" >&6; }
  4992. else
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4994. $as_echo "no" >&6; }
  4995. fi
  4996. fi
  4997. if test -z "$ac_cv_prog_OBJDUMP"; then
  4998. ac_ct_OBJDUMP=$OBJDUMP
  4999. # Extract the first word of "objdump", so it can be a program name with args.
  5000. set dummy objdump; ac_word=$2
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5002. $as_echo_n "checking for $ac_word... " >&6; }
  5003. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5004. $as_echo_n "(cached) " >&6
  5005. else
  5006. if test -n "$ac_ct_OBJDUMP"; then
  5007. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5008. else
  5009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5010. for as_dir in $PATH
  5011. do
  5012. IFS=$as_save_IFS
  5013. test -z "$as_dir" && as_dir=.
  5014. for ac_exec_ext in '' $ac_executable_extensions; do
  5015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5016. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5018. break 2
  5019. fi
  5020. done
  5021. done
  5022. IFS=$as_save_IFS
  5023. fi
  5024. fi
  5025. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5026. if test -n "$ac_ct_OBJDUMP"; then
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5028. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5029. else
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5031. $as_echo "no" >&6; }
  5032. fi
  5033. if test "x$ac_ct_OBJDUMP" = x; then
  5034. OBJDUMP="false"
  5035. else
  5036. case $cross_compiling:$ac_tool_warned in
  5037. yes:)
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5039. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5040. ac_tool_warned=yes ;;
  5041. esac
  5042. OBJDUMP=$ac_ct_OBJDUMP
  5043. fi
  5044. else
  5045. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5046. fi
  5047. test -z "$OBJDUMP" && OBJDUMP=objdump
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5049. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5050. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5051. $as_echo_n "(cached) " >&6
  5052. else
  5053. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5054. lt_cv_file_magic_test_file=
  5055. lt_cv_deplibs_check_method='unknown'
  5056. # Need to set the preceding variable on all platforms that support
  5057. # interlibrary dependencies.
  5058. # 'none' -- dependencies not supported.
  5059. # `unknown' -- same as none, but documents that we really don't know.
  5060. # 'pass_all' -- all dependencies passed with no checks.
  5061. # 'test_compile' -- check by making test program.
  5062. # 'file_magic [[regex]]' -- check by looking for files in library path
  5063. # which responds to the $file_magic_cmd with a given extended regex.
  5064. # If you have `file' or equivalent on your system and you're not sure
  5065. # whether `pass_all' will *always* work, you probably want this one.
  5066. case $host_os in
  5067. aix[4-9]*)
  5068. lt_cv_deplibs_check_method=pass_all
  5069. ;;
  5070. beos*)
  5071. lt_cv_deplibs_check_method=pass_all
  5072. ;;
  5073. bsdi[45]*)
  5074. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5075. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5076. lt_cv_file_magic_test_file=/shlib/libc.so
  5077. ;;
  5078. cygwin*)
  5079. # func_win32_libid is a shell function defined in ltmain.sh
  5080. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5081. lt_cv_file_magic_cmd='func_win32_libid'
  5082. ;;
  5083. mingw* | pw32*)
  5084. # Base MSYS/MinGW do not provide the 'file' command needed by
  5085. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5086. # unless we find 'file', for example because we are cross-compiling.
  5087. if ( file / ) >/dev/null 2>&1; then
  5088. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5089. lt_cv_file_magic_cmd='func_win32_libid'
  5090. else
  5091. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5092. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5093. fi
  5094. ;;
  5095. cegcc)
  5096. # use the weaker test based on 'objdump'. See mingw*.
  5097. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5098. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5099. ;;
  5100. darwin* | rhapsody*)
  5101. lt_cv_deplibs_check_method=pass_all
  5102. ;;
  5103. freebsd* | dragonfly*)
  5104. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5105. case $host_cpu in
  5106. i*86 )
  5107. # Not sure whether the presence of OpenBSD here was a mistake.
  5108. # Let's accept both of them until this is cleared up.
  5109. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5110. lt_cv_file_magic_cmd=/usr/bin/file
  5111. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5112. ;;
  5113. esac
  5114. else
  5115. lt_cv_deplibs_check_method=pass_all
  5116. fi
  5117. ;;
  5118. gnu*)
  5119. lt_cv_deplibs_check_method=pass_all
  5120. ;;
  5121. hpux10.20* | hpux11*)
  5122. lt_cv_file_magic_cmd=/usr/bin/file
  5123. case $host_cpu in
  5124. ia64*)
  5125. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5126. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5127. ;;
  5128. hppa*64*)
  5129. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5130. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5131. ;;
  5132. *)
  5133. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5134. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5135. ;;
  5136. esac
  5137. ;;
  5138. interix[3-9]*)
  5139. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5140. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5141. ;;
  5142. irix5* | irix6* | nonstopux*)
  5143. case $LD in
  5144. *-32|*"-32 ") libmagic=32-bit;;
  5145. *-n32|*"-n32 ") libmagic=N32;;
  5146. *-64|*"-64 ") libmagic=64-bit;;
  5147. *) libmagic=never-match;;
  5148. esac
  5149. lt_cv_deplibs_check_method=pass_all
  5150. ;;
  5151. # This must be Linux ELF.
  5152. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5153. lt_cv_deplibs_check_method=pass_all
  5154. ;;
  5155. netbsd* | netbsdelf*-gnu)
  5156. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5157. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5158. else
  5159. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5160. fi
  5161. ;;
  5162. newos6*)
  5163. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5164. lt_cv_file_magic_cmd=/usr/bin/file
  5165. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5166. ;;
  5167. *nto* | *qnx*)
  5168. lt_cv_deplibs_check_method=pass_all
  5169. ;;
  5170. openbsd*)
  5171. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5172. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5173. else
  5174. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5175. fi
  5176. ;;
  5177. osf3* | osf4* | osf5*)
  5178. lt_cv_deplibs_check_method=pass_all
  5179. ;;
  5180. rdos*)
  5181. lt_cv_deplibs_check_method=pass_all
  5182. ;;
  5183. solaris*)
  5184. lt_cv_deplibs_check_method=pass_all
  5185. ;;
  5186. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5187. lt_cv_deplibs_check_method=pass_all
  5188. ;;
  5189. sysv4 | sysv4.3*)
  5190. case $host_vendor in
  5191. motorola)
  5192. 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]'
  5193. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5194. ;;
  5195. ncr)
  5196. lt_cv_deplibs_check_method=pass_all
  5197. ;;
  5198. sequent)
  5199. lt_cv_file_magic_cmd='/bin/file'
  5200. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5201. ;;
  5202. sni)
  5203. lt_cv_file_magic_cmd='/bin/file'
  5204. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5205. lt_cv_file_magic_test_file=/lib/libc.so
  5206. ;;
  5207. siemens)
  5208. lt_cv_deplibs_check_method=pass_all
  5209. ;;
  5210. pc)
  5211. lt_cv_deplibs_check_method=pass_all
  5212. ;;
  5213. esac
  5214. ;;
  5215. tpf*)
  5216. lt_cv_deplibs_check_method=pass_all
  5217. ;;
  5218. esac
  5219. fi
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5221. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5222. file_magic_cmd=$lt_cv_file_magic_cmd
  5223. deplibs_check_method=$lt_cv_deplibs_check_method
  5224. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5225. if test -n "$ac_tool_prefix"; then
  5226. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5227. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5229. $as_echo_n "checking for $ac_word... " >&6; }
  5230. if test "${ac_cv_prog_AR+set}" = set; then :
  5231. $as_echo_n "(cached) " >&6
  5232. else
  5233. if test -n "$AR"; then
  5234. ac_cv_prog_AR="$AR" # Let the user override the test.
  5235. else
  5236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5237. for as_dir in $PATH
  5238. do
  5239. IFS=$as_save_IFS
  5240. test -z "$as_dir" && as_dir=.
  5241. for ac_exec_ext in '' $ac_executable_extensions; do
  5242. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5243. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5244. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5245. break 2
  5246. fi
  5247. done
  5248. done
  5249. IFS=$as_save_IFS
  5250. fi
  5251. fi
  5252. AR=$ac_cv_prog_AR
  5253. if test -n "$AR"; then
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5255. $as_echo "$AR" >&6; }
  5256. else
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5258. $as_echo "no" >&6; }
  5259. fi
  5260. fi
  5261. if test -z "$ac_cv_prog_AR"; then
  5262. ac_ct_AR=$AR
  5263. # Extract the first word of "ar", so it can be a program name with args.
  5264. set dummy ar; ac_word=$2
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5266. $as_echo_n "checking for $ac_word... " >&6; }
  5267. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5268. $as_echo_n "(cached) " >&6
  5269. else
  5270. if test -n "$ac_ct_AR"; then
  5271. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5272. else
  5273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5274. for as_dir in $PATH
  5275. do
  5276. IFS=$as_save_IFS
  5277. test -z "$as_dir" && as_dir=.
  5278. for ac_exec_ext in '' $ac_executable_extensions; do
  5279. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5280. ac_cv_prog_ac_ct_AR="ar"
  5281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5282. break 2
  5283. fi
  5284. done
  5285. done
  5286. IFS=$as_save_IFS
  5287. fi
  5288. fi
  5289. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5290. if test -n "$ac_ct_AR"; then
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5292. $as_echo "$ac_ct_AR" >&6; }
  5293. else
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5295. $as_echo "no" >&6; }
  5296. fi
  5297. if test "x$ac_ct_AR" = x; then
  5298. AR="false"
  5299. else
  5300. case $cross_compiling:$ac_tool_warned in
  5301. yes:)
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5303. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5304. ac_tool_warned=yes ;;
  5305. esac
  5306. AR=$ac_ct_AR
  5307. fi
  5308. else
  5309. AR="$ac_cv_prog_AR"
  5310. fi
  5311. test -z "$AR" && AR=ar
  5312. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5313. if test -n "$ac_tool_prefix"; then
  5314. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5315. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5317. $as_echo_n "checking for $ac_word... " >&6; }
  5318. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5319. $as_echo_n "(cached) " >&6
  5320. else
  5321. if test -n "$STRIP"; then
  5322. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5323. else
  5324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5325. for as_dir in $PATH
  5326. do
  5327. IFS=$as_save_IFS
  5328. test -z "$as_dir" && as_dir=.
  5329. for ac_exec_ext in '' $ac_executable_extensions; do
  5330. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5331. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5332. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5333. break 2
  5334. fi
  5335. done
  5336. done
  5337. IFS=$as_save_IFS
  5338. fi
  5339. fi
  5340. STRIP=$ac_cv_prog_STRIP
  5341. if test -n "$STRIP"; then
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5343. $as_echo "$STRIP" >&6; }
  5344. else
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5346. $as_echo "no" >&6; }
  5347. fi
  5348. fi
  5349. if test -z "$ac_cv_prog_STRIP"; then
  5350. ac_ct_STRIP=$STRIP
  5351. # Extract the first word of "strip", so it can be a program name with args.
  5352. set dummy strip; ac_word=$2
  5353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5354. $as_echo_n "checking for $ac_word... " >&6; }
  5355. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5356. $as_echo_n "(cached) " >&6
  5357. else
  5358. if test -n "$ac_ct_STRIP"; then
  5359. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5360. else
  5361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5362. for as_dir in $PATH
  5363. do
  5364. IFS=$as_save_IFS
  5365. test -z "$as_dir" && as_dir=.
  5366. for ac_exec_ext in '' $ac_executable_extensions; do
  5367. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5368. ac_cv_prog_ac_ct_STRIP="strip"
  5369. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5370. break 2
  5371. fi
  5372. done
  5373. done
  5374. IFS=$as_save_IFS
  5375. fi
  5376. fi
  5377. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5378. if test -n "$ac_ct_STRIP"; then
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5380. $as_echo "$ac_ct_STRIP" >&6; }
  5381. else
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5383. $as_echo "no" >&6; }
  5384. fi
  5385. if test "x$ac_ct_STRIP" = x; then
  5386. STRIP=":"
  5387. else
  5388. case $cross_compiling:$ac_tool_warned in
  5389. yes:)
  5390. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5391. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5392. ac_tool_warned=yes ;;
  5393. esac
  5394. STRIP=$ac_ct_STRIP
  5395. fi
  5396. else
  5397. STRIP="$ac_cv_prog_STRIP"
  5398. fi
  5399. test -z "$STRIP" && STRIP=:
  5400. if test -n "$ac_tool_prefix"; then
  5401. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5402. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5404. $as_echo_n "checking for $ac_word... " >&6; }
  5405. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5406. $as_echo_n "(cached) " >&6
  5407. else
  5408. if test -n "$RANLIB"; then
  5409. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5410. else
  5411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5412. for as_dir in $PATH
  5413. do
  5414. IFS=$as_save_IFS
  5415. test -z "$as_dir" && as_dir=.
  5416. for ac_exec_ext in '' $ac_executable_extensions; do
  5417. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5418. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5420. break 2
  5421. fi
  5422. done
  5423. done
  5424. IFS=$as_save_IFS
  5425. fi
  5426. fi
  5427. RANLIB=$ac_cv_prog_RANLIB
  5428. if test -n "$RANLIB"; then
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5430. $as_echo "$RANLIB" >&6; }
  5431. else
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5433. $as_echo "no" >&6; }
  5434. fi
  5435. fi
  5436. if test -z "$ac_cv_prog_RANLIB"; then
  5437. ac_ct_RANLIB=$RANLIB
  5438. # Extract the first word of "ranlib", so it can be a program name with args.
  5439. set dummy ranlib; ac_word=$2
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5441. $as_echo_n "checking for $ac_word... " >&6; }
  5442. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5443. $as_echo_n "(cached) " >&6
  5444. else
  5445. if test -n "$ac_ct_RANLIB"; then
  5446. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5447. else
  5448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5449. for as_dir in $PATH
  5450. do
  5451. IFS=$as_save_IFS
  5452. test -z "$as_dir" && as_dir=.
  5453. for ac_exec_ext in '' $ac_executable_extensions; do
  5454. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5455. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5456. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5457. break 2
  5458. fi
  5459. done
  5460. done
  5461. IFS=$as_save_IFS
  5462. fi
  5463. fi
  5464. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5465. if test -n "$ac_ct_RANLIB"; then
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5467. $as_echo "$ac_ct_RANLIB" >&6; }
  5468. else
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5470. $as_echo "no" >&6; }
  5471. fi
  5472. if test "x$ac_ct_RANLIB" = x; then
  5473. RANLIB=":"
  5474. else
  5475. case $cross_compiling:$ac_tool_warned in
  5476. yes:)
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5478. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5479. ac_tool_warned=yes ;;
  5480. esac
  5481. RANLIB=$ac_ct_RANLIB
  5482. fi
  5483. else
  5484. RANLIB="$ac_cv_prog_RANLIB"
  5485. fi
  5486. test -z "$RANLIB" && RANLIB=:
  5487. # Determine commands to create old-style static archives.
  5488. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5489. old_postinstall_cmds='chmod 644 $oldlib'
  5490. old_postuninstall_cmds=
  5491. if test -n "$RANLIB"; then
  5492. case $host_os in
  5493. openbsd*)
  5494. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5495. ;;
  5496. *)
  5497. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5498. ;;
  5499. esac
  5500. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5501. fi
  5502. # If no C compiler was specified, use CC.
  5503. LTCC=${LTCC-"$CC"}
  5504. # If no C compiler flags were specified, use CFLAGS.
  5505. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5506. # Allow CC to be a program name with arguments.
  5507. compiler=$CC
  5508. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5510. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5511. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5512. $as_echo_n "(cached) " >&6
  5513. else
  5514. # These are sane defaults that work on at least a few old systems.
  5515. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5516. # Character class describing NM global symbol codes.
  5517. symcode='[BCDEGRST]'
  5518. # Regexp to match symbols that can be accessed directly from C.
  5519. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5520. # Define system-specific variables.
  5521. case $host_os in
  5522. aix*)
  5523. symcode='[BCDT]'
  5524. ;;
  5525. cygwin* | mingw* | pw32* | cegcc*)
  5526. symcode='[ABCDGISTW]'
  5527. ;;
  5528. hpux*)
  5529. if test "$host_cpu" = ia64; then
  5530. symcode='[ABCDEGRST]'
  5531. fi
  5532. ;;
  5533. irix* | nonstopux*)
  5534. symcode='[BCDEGRST]'
  5535. ;;
  5536. osf*)
  5537. symcode='[BCDEGQRST]'
  5538. ;;
  5539. solaris*)
  5540. symcode='[BDRT]'
  5541. ;;
  5542. sco3.2v5*)
  5543. symcode='[DT]'
  5544. ;;
  5545. sysv4.2uw2*)
  5546. symcode='[DT]'
  5547. ;;
  5548. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5549. symcode='[ABDT]'
  5550. ;;
  5551. sysv4)
  5552. symcode='[DFNSTU]'
  5553. ;;
  5554. esac
  5555. # If we're using GNU nm, then use its standard symbol codes.
  5556. case `$NM -V 2>&1` in
  5557. *GNU* | *'with BFD'*)
  5558. symcode='[ABCDGIRSTW]' ;;
  5559. esac
  5560. # Transform an extracted symbol line into a proper C declaration.
  5561. # Some systems (esp. on ia64) link data and code symbols differently,
  5562. # so use this general approach.
  5563. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5564. # Transform an extracted symbol line into symbol name and symbol address
  5565. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5566. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5567. # Handle CRLF in mingw tool chain
  5568. opt_cr=
  5569. case $build_os in
  5570. mingw*)
  5571. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5572. ;;
  5573. esac
  5574. # Try without a prefix underscore, then with it.
  5575. for ac_symprfx in "" "_"; do
  5576. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5577. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5578. # Write the raw and C identifiers.
  5579. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5580. # Fake it for dumpbin and say T for any non-static function
  5581. # and D for any global variable.
  5582. # Also find C++ and __fastcall symbols from MSVC++,
  5583. # which start with @ or ?.
  5584. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5585. " {last_section=section; section=\$ 3};"\
  5586. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5587. " \$ 0!~/External *\|/{next};"\
  5588. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5589. " {if(hide[section]) next};"\
  5590. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5591. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5592. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5593. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5594. " ' prfx=^$ac_symprfx"
  5595. else
  5596. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5597. fi
  5598. # Check to see that the pipe works correctly.
  5599. pipe_works=no
  5600. rm -f conftest*
  5601. cat > conftest.$ac_ext <<_LT_EOF
  5602. #ifdef __cplusplus
  5603. extern "C" {
  5604. #endif
  5605. char nm_test_var;
  5606. void nm_test_func(void);
  5607. void nm_test_func(void){}
  5608. #ifdef __cplusplus
  5609. }
  5610. #endif
  5611. int main(){nm_test_var='a';nm_test_func();return(0);}
  5612. _LT_EOF
  5613. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5614. (eval $ac_compile) 2>&5
  5615. ac_status=$?
  5616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5617. test $ac_status = 0; }; then
  5618. # Now try to grab the symbols.
  5619. nlist=conftest.nm
  5620. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5621. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5622. ac_status=$?
  5623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5624. test $ac_status = 0; } && test -s "$nlist"; then
  5625. # Try sorting and uniquifying the output.
  5626. if sort "$nlist" | uniq > "$nlist"T; then
  5627. mv -f "$nlist"T "$nlist"
  5628. else
  5629. rm -f "$nlist"T
  5630. fi
  5631. # Make sure that we snagged all the symbols we need.
  5632. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5633. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5634. cat <<_LT_EOF > conftest.$ac_ext
  5635. #ifdef __cplusplus
  5636. extern "C" {
  5637. #endif
  5638. _LT_EOF
  5639. # Now generate the symbol file.
  5640. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5641. cat <<_LT_EOF >> conftest.$ac_ext
  5642. /* The mapping between symbol names and symbols. */
  5643. const struct {
  5644. const char *name;
  5645. void *address;
  5646. }
  5647. lt__PROGRAM__LTX_preloaded_symbols[] =
  5648. {
  5649. { "@PROGRAM@", (void *) 0 },
  5650. _LT_EOF
  5651. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5652. cat <<\_LT_EOF >> conftest.$ac_ext
  5653. {0, (void *) 0}
  5654. };
  5655. /* This works around a problem in FreeBSD linker */
  5656. #ifdef FREEBSD_WORKAROUND
  5657. static const void *lt_preloaded_setup() {
  5658. return lt__PROGRAM__LTX_preloaded_symbols;
  5659. }
  5660. #endif
  5661. #ifdef __cplusplus
  5662. }
  5663. #endif
  5664. _LT_EOF
  5665. # Now try linking the two files.
  5666. mv conftest.$ac_objext conftstm.$ac_objext
  5667. lt_save_LIBS="$LIBS"
  5668. lt_save_CFLAGS="$CFLAGS"
  5669. LIBS="conftstm.$ac_objext"
  5670. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5671. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5672. (eval $ac_link) 2>&5
  5673. ac_status=$?
  5674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5675. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5676. pipe_works=yes
  5677. fi
  5678. LIBS="$lt_save_LIBS"
  5679. CFLAGS="$lt_save_CFLAGS"
  5680. else
  5681. echo "cannot find nm_test_func in $nlist" >&5
  5682. fi
  5683. else
  5684. echo "cannot find nm_test_var in $nlist" >&5
  5685. fi
  5686. else
  5687. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5688. fi
  5689. else
  5690. echo "$progname: failed program was:" >&5
  5691. cat conftest.$ac_ext >&5
  5692. fi
  5693. rm -rf conftest* conftst*
  5694. # Do not use the global_symbol_pipe unless it works.
  5695. if test "$pipe_works" = yes; then
  5696. break
  5697. else
  5698. lt_cv_sys_global_symbol_pipe=
  5699. fi
  5700. done
  5701. fi
  5702. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5703. lt_cv_sys_global_symbol_to_cdecl=
  5704. fi
  5705. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5707. $as_echo "failed" >&6; }
  5708. else
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5710. $as_echo "ok" >&6; }
  5711. fi
  5712. # Check whether --enable-libtool-lock was given.
  5713. if test "${enable_libtool_lock+set}" = set; then :
  5714. enableval=$enable_libtool_lock;
  5715. fi
  5716. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5717. # Some flags need to be propagated to the compiler or linker for good
  5718. # libtool support.
  5719. case $host in
  5720. ia64-*-hpux*)
  5721. # Find out which ABI we are using.
  5722. echo 'int i;' > conftest.$ac_ext
  5723. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5724. (eval $ac_compile) 2>&5
  5725. ac_status=$?
  5726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5727. test $ac_status = 0; }; then
  5728. case `/usr/bin/file conftest.$ac_objext` in
  5729. *ELF-32*)
  5730. HPUX_IA64_MODE="32"
  5731. ;;
  5732. *ELF-64*)
  5733. HPUX_IA64_MODE="64"
  5734. ;;
  5735. esac
  5736. fi
  5737. rm -rf conftest*
  5738. ;;
  5739. *-*-irix6*)
  5740. # Find out which ABI we are using.
  5741. echo '#line 6492 "configure"' > conftest.$ac_ext
  5742. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5743. (eval $ac_compile) 2>&5
  5744. ac_status=$?
  5745. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5746. test $ac_status = 0; }; then
  5747. if test "$lt_cv_prog_gnu_ld" = yes; then
  5748. case `/usr/bin/file conftest.$ac_objext` in
  5749. *32-bit*)
  5750. LD="${LD-ld} -melf32bsmip"
  5751. ;;
  5752. *N32*)
  5753. LD="${LD-ld} -melf32bmipn32"
  5754. ;;
  5755. *64-bit*)
  5756. LD="${LD-ld} -melf64bmip"
  5757. ;;
  5758. esac
  5759. else
  5760. case `/usr/bin/file conftest.$ac_objext` in
  5761. *32-bit*)
  5762. LD="${LD-ld} -32"
  5763. ;;
  5764. *N32*)
  5765. LD="${LD-ld} -n32"
  5766. ;;
  5767. *64-bit*)
  5768. LD="${LD-ld} -64"
  5769. ;;
  5770. esac
  5771. fi
  5772. fi
  5773. rm -rf conftest*
  5774. ;;
  5775. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5776. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5777. # Find out which ABI we are using.
  5778. echo 'int i;' > conftest.$ac_ext
  5779. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5780. (eval $ac_compile) 2>&5
  5781. ac_status=$?
  5782. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5783. test $ac_status = 0; }; then
  5784. case `/usr/bin/file conftest.o` in
  5785. *32-bit*)
  5786. case $host in
  5787. x86_64-*kfreebsd*-gnu)
  5788. LD="${LD-ld} -m elf_i386_fbsd"
  5789. ;;
  5790. x86_64-*linux*)
  5791. LD="${LD-ld} -m elf_i386"
  5792. ;;
  5793. ppc64-*linux*|powerpc64-*linux*)
  5794. LD="${LD-ld} -m elf32ppclinux"
  5795. ;;
  5796. s390x-*linux*)
  5797. LD="${LD-ld} -m elf_s390"
  5798. ;;
  5799. sparc64-*linux*)
  5800. LD="${LD-ld} -m elf32_sparc"
  5801. ;;
  5802. esac
  5803. ;;
  5804. *64-bit*)
  5805. case $host in
  5806. x86_64-*kfreebsd*-gnu)
  5807. LD="${LD-ld} -m elf_x86_64_fbsd"
  5808. ;;
  5809. x86_64-*linux*)
  5810. LD="${LD-ld} -m elf_x86_64"
  5811. ;;
  5812. ppc*-*linux*|powerpc*-*linux*)
  5813. LD="${LD-ld} -m elf64ppc"
  5814. ;;
  5815. s390*-*linux*|s390*-*tpf*)
  5816. LD="${LD-ld} -m elf64_s390"
  5817. ;;
  5818. sparc*-*linux*)
  5819. LD="${LD-ld} -m elf64_sparc"
  5820. ;;
  5821. esac
  5822. ;;
  5823. esac
  5824. fi
  5825. rm -rf conftest*
  5826. ;;
  5827. *-*-sco3.2v5*)
  5828. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5829. SAVE_CFLAGS="$CFLAGS"
  5830. CFLAGS="$CFLAGS -belf"
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5832. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5833. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5834. $as_echo_n "(cached) " >&6
  5835. else
  5836. ac_ext=c
  5837. ac_cpp='$CPP $CPPFLAGS'
  5838. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5839. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5840. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5842. /* end confdefs.h. */
  5843. int
  5844. main ()
  5845. {
  5846. ;
  5847. return 0;
  5848. }
  5849. _ACEOF
  5850. if ac_fn_c_try_link "$LINENO"; then :
  5851. lt_cv_cc_needs_belf=yes
  5852. else
  5853. lt_cv_cc_needs_belf=no
  5854. fi
  5855. rm -f core conftest.err conftest.$ac_objext \
  5856. conftest$ac_exeext conftest.$ac_ext
  5857. ac_ext=c
  5858. ac_cpp='$CPP $CPPFLAGS'
  5859. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5860. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5861. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5862. fi
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5864. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5865. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5866. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5867. CFLAGS="$SAVE_CFLAGS"
  5868. fi
  5869. ;;
  5870. sparc*-*solaris*)
  5871. # Find out which ABI we are using.
  5872. echo 'int i;' > conftest.$ac_ext
  5873. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5874. (eval $ac_compile) 2>&5
  5875. ac_status=$?
  5876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5877. test $ac_status = 0; }; then
  5878. case `/usr/bin/file conftest.o` in
  5879. *64-bit*)
  5880. case $lt_cv_prog_gnu_ld in
  5881. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5882. *)
  5883. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5884. LD="${LD-ld} -64"
  5885. fi
  5886. ;;
  5887. esac
  5888. ;;
  5889. esac
  5890. fi
  5891. rm -rf conftest*
  5892. ;;
  5893. esac
  5894. need_locks="$enable_libtool_lock"
  5895. case $host_os in
  5896. rhapsody* | darwin*)
  5897. if test -n "$ac_tool_prefix"; then
  5898. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5899. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5901. $as_echo_n "checking for $ac_word... " >&6; }
  5902. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5903. $as_echo_n "(cached) " >&6
  5904. else
  5905. if test -n "$DSYMUTIL"; then
  5906. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5907. else
  5908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5909. for as_dir in $PATH
  5910. do
  5911. IFS=$as_save_IFS
  5912. test -z "$as_dir" && as_dir=.
  5913. for ac_exec_ext in '' $ac_executable_extensions; do
  5914. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5915. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5917. break 2
  5918. fi
  5919. done
  5920. done
  5921. IFS=$as_save_IFS
  5922. fi
  5923. fi
  5924. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5925. if test -n "$DSYMUTIL"; then
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5927. $as_echo "$DSYMUTIL" >&6; }
  5928. else
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5930. $as_echo "no" >&6; }
  5931. fi
  5932. fi
  5933. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5934. ac_ct_DSYMUTIL=$DSYMUTIL
  5935. # Extract the first word of "dsymutil", so it can be a program name with args.
  5936. set dummy dsymutil; ac_word=$2
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5938. $as_echo_n "checking for $ac_word... " >&6; }
  5939. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5940. $as_echo_n "(cached) " >&6
  5941. else
  5942. if test -n "$ac_ct_DSYMUTIL"; then
  5943. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5944. else
  5945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5946. for as_dir in $PATH
  5947. do
  5948. IFS=$as_save_IFS
  5949. test -z "$as_dir" && as_dir=.
  5950. for ac_exec_ext in '' $ac_executable_extensions; do
  5951. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5952. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5954. break 2
  5955. fi
  5956. done
  5957. done
  5958. IFS=$as_save_IFS
  5959. fi
  5960. fi
  5961. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5962. if test -n "$ac_ct_DSYMUTIL"; then
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5964. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5965. else
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5967. $as_echo "no" >&6; }
  5968. fi
  5969. if test "x$ac_ct_DSYMUTIL" = x; then
  5970. DSYMUTIL=":"
  5971. else
  5972. case $cross_compiling:$ac_tool_warned in
  5973. yes:)
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5975. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5976. ac_tool_warned=yes ;;
  5977. esac
  5978. DSYMUTIL=$ac_ct_DSYMUTIL
  5979. fi
  5980. else
  5981. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5982. fi
  5983. if test -n "$ac_tool_prefix"; then
  5984. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5985. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5987. $as_echo_n "checking for $ac_word... " >&6; }
  5988. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5989. $as_echo_n "(cached) " >&6
  5990. else
  5991. if test -n "$NMEDIT"; then
  5992. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5993. else
  5994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5995. for as_dir in $PATH
  5996. do
  5997. IFS=$as_save_IFS
  5998. test -z "$as_dir" && as_dir=.
  5999. for ac_exec_ext in '' $ac_executable_extensions; do
  6000. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6001. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6003. break 2
  6004. fi
  6005. done
  6006. done
  6007. IFS=$as_save_IFS
  6008. fi
  6009. fi
  6010. NMEDIT=$ac_cv_prog_NMEDIT
  6011. if test -n "$NMEDIT"; then
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6013. $as_echo "$NMEDIT" >&6; }
  6014. else
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6016. $as_echo "no" >&6; }
  6017. fi
  6018. fi
  6019. if test -z "$ac_cv_prog_NMEDIT"; then
  6020. ac_ct_NMEDIT=$NMEDIT
  6021. # Extract the first word of "nmedit", so it can be a program name with args.
  6022. set dummy nmedit; ac_word=$2
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6024. $as_echo_n "checking for $ac_word... " >&6; }
  6025. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6026. $as_echo_n "(cached) " >&6
  6027. else
  6028. if test -n "$ac_ct_NMEDIT"; then
  6029. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6030. else
  6031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6032. for as_dir in $PATH
  6033. do
  6034. IFS=$as_save_IFS
  6035. test -z "$as_dir" && as_dir=.
  6036. for ac_exec_ext in '' $ac_executable_extensions; do
  6037. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6038. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6040. break 2
  6041. fi
  6042. done
  6043. done
  6044. IFS=$as_save_IFS
  6045. fi
  6046. fi
  6047. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6048. if test -n "$ac_ct_NMEDIT"; then
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6050. $as_echo "$ac_ct_NMEDIT" >&6; }
  6051. else
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6053. $as_echo "no" >&6; }
  6054. fi
  6055. if test "x$ac_ct_NMEDIT" = x; then
  6056. NMEDIT=":"
  6057. else
  6058. case $cross_compiling:$ac_tool_warned in
  6059. yes:)
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6061. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6062. ac_tool_warned=yes ;;
  6063. esac
  6064. NMEDIT=$ac_ct_NMEDIT
  6065. fi
  6066. else
  6067. NMEDIT="$ac_cv_prog_NMEDIT"
  6068. fi
  6069. if test -n "$ac_tool_prefix"; then
  6070. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6071. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6073. $as_echo_n "checking for $ac_word... " >&6; }
  6074. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6075. $as_echo_n "(cached) " >&6
  6076. else
  6077. if test -n "$LIPO"; then
  6078. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6079. else
  6080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6081. for as_dir in $PATH
  6082. do
  6083. IFS=$as_save_IFS
  6084. test -z "$as_dir" && as_dir=.
  6085. for ac_exec_ext in '' $ac_executable_extensions; do
  6086. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6087. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6089. break 2
  6090. fi
  6091. done
  6092. done
  6093. IFS=$as_save_IFS
  6094. fi
  6095. fi
  6096. LIPO=$ac_cv_prog_LIPO
  6097. if test -n "$LIPO"; then
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6099. $as_echo "$LIPO" >&6; }
  6100. else
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6102. $as_echo "no" >&6; }
  6103. fi
  6104. fi
  6105. if test -z "$ac_cv_prog_LIPO"; then
  6106. ac_ct_LIPO=$LIPO
  6107. # Extract the first word of "lipo", so it can be a program name with args.
  6108. set dummy lipo; ac_word=$2
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6110. $as_echo_n "checking for $ac_word... " >&6; }
  6111. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6112. $as_echo_n "(cached) " >&6
  6113. else
  6114. if test -n "$ac_ct_LIPO"; then
  6115. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6116. else
  6117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6118. for as_dir in $PATH
  6119. do
  6120. IFS=$as_save_IFS
  6121. test -z "$as_dir" && as_dir=.
  6122. for ac_exec_ext in '' $ac_executable_extensions; do
  6123. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6124. ac_cv_prog_ac_ct_LIPO="lipo"
  6125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6126. break 2
  6127. fi
  6128. done
  6129. done
  6130. IFS=$as_save_IFS
  6131. fi
  6132. fi
  6133. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6134. if test -n "$ac_ct_LIPO"; then
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6136. $as_echo "$ac_ct_LIPO" >&6; }
  6137. else
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6139. $as_echo "no" >&6; }
  6140. fi
  6141. if test "x$ac_ct_LIPO" = x; then
  6142. LIPO=":"
  6143. else
  6144. case $cross_compiling:$ac_tool_warned in
  6145. yes:)
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6147. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6148. ac_tool_warned=yes ;;
  6149. esac
  6150. LIPO=$ac_ct_LIPO
  6151. fi
  6152. else
  6153. LIPO="$ac_cv_prog_LIPO"
  6154. fi
  6155. if test -n "$ac_tool_prefix"; then
  6156. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6157. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6159. $as_echo_n "checking for $ac_word... " >&6; }
  6160. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. if test -n "$OTOOL"; then
  6164. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6165. else
  6166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6167. for as_dir in $PATH
  6168. do
  6169. IFS=$as_save_IFS
  6170. test -z "$as_dir" && as_dir=.
  6171. for ac_exec_ext in '' $ac_executable_extensions; do
  6172. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6173. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6175. break 2
  6176. fi
  6177. done
  6178. done
  6179. IFS=$as_save_IFS
  6180. fi
  6181. fi
  6182. OTOOL=$ac_cv_prog_OTOOL
  6183. if test -n "$OTOOL"; then
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6185. $as_echo "$OTOOL" >&6; }
  6186. else
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6188. $as_echo "no" >&6; }
  6189. fi
  6190. fi
  6191. if test -z "$ac_cv_prog_OTOOL"; then
  6192. ac_ct_OTOOL=$OTOOL
  6193. # Extract the first word of "otool", so it can be a program name with args.
  6194. set dummy otool; ac_word=$2
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6196. $as_echo_n "checking for $ac_word... " >&6; }
  6197. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6198. $as_echo_n "(cached) " >&6
  6199. else
  6200. if test -n "$ac_ct_OTOOL"; then
  6201. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6202. else
  6203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6204. for as_dir in $PATH
  6205. do
  6206. IFS=$as_save_IFS
  6207. test -z "$as_dir" && as_dir=.
  6208. for ac_exec_ext in '' $ac_executable_extensions; do
  6209. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6210. ac_cv_prog_ac_ct_OTOOL="otool"
  6211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6212. break 2
  6213. fi
  6214. done
  6215. done
  6216. IFS=$as_save_IFS
  6217. fi
  6218. fi
  6219. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6220. if test -n "$ac_ct_OTOOL"; then
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6222. $as_echo "$ac_ct_OTOOL" >&6; }
  6223. else
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6225. $as_echo "no" >&6; }
  6226. fi
  6227. if test "x$ac_ct_OTOOL" = x; then
  6228. OTOOL=":"
  6229. else
  6230. case $cross_compiling:$ac_tool_warned in
  6231. yes:)
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6233. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6234. ac_tool_warned=yes ;;
  6235. esac
  6236. OTOOL=$ac_ct_OTOOL
  6237. fi
  6238. else
  6239. OTOOL="$ac_cv_prog_OTOOL"
  6240. fi
  6241. if test -n "$ac_tool_prefix"; then
  6242. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6243. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6245. $as_echo_n "checking for $ac_word... " >&6; }
  6246. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6247. $as_echo_n "(cached) " >&6
  6248. else
  6249. if test -n "$OTOOL64"; then
  6250. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6251. else
  6252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6253. for as_dir in $PATH
  6254. do
  6255. IFS=$as_save_IFS
  6256. test -z "$as_dir" && as_dir=.
  6257. for ac_exec_ext in '' $ac_executable_extensions; do
  6258. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6259. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6261. break 2
  6262. fi
  6263. done
  6264. done
  6265. IFS=$as_save_IFS
  6266. fi
  6267. fi
  6268. OTOOL64=$ac_cv_prog_OTOOL64
  6269. if test -n "$OTOOL64"; then
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6271. $as_echo "$OTOOL64" >&6; }
  6272. else
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6274. $as_echo "no" >&6; }
  6275. fi
  6276. fi
  6277. if test -z "$ac_cv_prog_OTOOL64"; then
  6278. ac_ct_OTOOL64=$OTOOL64
  6279. # Extract the first word of "otool64", so it can be a program name with args.
  6280. set dummy otool64; ac_word=$2
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6282. $as_echo_n "checking for $ac_word... " >&6; }
  6283. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6284. $as_echo_n "(cached) " >&6
  6285. else
  6286. if test -n "$ac_ct_OTOOL64"; then
  6287. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6288. else
  6289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6290. for as_dir in $PATH
  6291. do
  6292. IFS=$as_save_IFS
  6293. test -z "$as_dir" && as_dir=.
  6294. for ac_exec_ext in '' $ac_executable_extensions; do
  6295. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6296. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6297. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6298. break 2
  6299. fi
  6300. done
  6301. done
  6302. IFS=$as_save_IFS
  6303. fi
  6304. fi
  6305. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6306. if test -n "$ac_ct_OTOOL64"; then
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6308. $as_echo "$ac_ct_OTOOL64" >&6; }
  6309. else
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6311. $as_echo "no" >&6; }
  6312. fi
  6313. if test "x$ac_ct_OTOOL64" = x; then
  6314. OTOOL64=":"
  6315. else
  6316. case $cross_compiling:$ac_tool_warned in
  6317. yes:)
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6319. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6320. ac_tool_warned=yes ;;
  6321. esac
  6322. OTOOL64=$ac_ct_OTOOL64
  6323. fi
  6324. else
  6325. OTOOL64="$ac_cv_prog_OTOOL64"
  6326. fi
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6328. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6329. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6330. $as_echo_n "(cached) " >&6
  6331. else
  6332. lt_cv_apple_cc_single_mod=no
  6333. if test -z "${LT_MULTI_MODULE}"; then
  6334. # By default we will add the -single_module flag. You can override
  6335. # by either setting the environment variable LT_MULTI_MODULE
  6336. # non-empty at configure time, or by adding -multi_module to the
  6337. # link flags.
  6338. rm -rf libconftest.dylib*
  6339. echo "int foo(void){return 1;}" > conftest.c
  6340. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6341. -dynamiclib -Wl,-single_module conftest.c" >&5
  6342. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6343. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6344. _lt_result=$?
  6345. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6346. lt_cv_apple_cc_single_mod=yes
  6347. else
  6348. cat conftest.err >&5
  6349. fi
  6350. rm -rf libconftest.dylib*
  6351. rm -f conftest.*
  6352. fi
  6353. fi
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6355. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6357. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6358. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6359. $as_echo_n "(cached) " >&6
  6360. else
  6361. lt_cv_ld_exported_symbols_list=no
  6362. save_LDFLAGS=$LDFLAGS
  6363. echo "_main" > conftest.sym
  6364. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6366. /* end confdefs.h. */
  6367. int
  6368. main ()
  6369. {
  6370. ;
  6371. return 0;
  6372. }
  6373. _ACEOF
  6374. if ac_fn_c_try_link "$LINENO"; then :
  6375. lt_cv_ld_exported_symbols_list=yes
  6376. else
  6377. lt_cv_ld_exported_symbols_list=no
  6378. fi
  6379. rm -f core conftest.err conftest.$ac_objext \
  6380. conftest$ac_exeext conftest.$ac_ext
  6381. LDFLAGS="$save_LDFLAGS"
  6382. fi
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6384. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6385. case $host_os in
  6386. rhapsody* | darwin1.[012])
  6387. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6388. darwin1.*)
  6389. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6390. darwin*) # darwin 5.x on
  6391. # if running on 10.5 or later, the deployment target defaults
  6392. # to the OS version, if on x86, and 10.4, the deployment
  6393. # target defaults to 10.4. Don't you love it?
  6394. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6395. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6396. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6397. 10.[012]*)
  6398. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6399. 10.*)
  6400. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6401. esac
  6402. ;;
  6403. esac
  6404. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6405. _lt_dar_single_mod='$single_module'
  6406. fi
  6407. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6408. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6409. else
  6410. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6411. fi
  6412. if test "$DSYMUTIL" != ":"; then
  6413. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6414. else
  6415. _lt_dsymutil=
  6416. fi
  6417. ;;
  6418. esac
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6420. $as_echo_n "checking for ANSI C header files... " >&6; }
  6421. if test "${ac_cv_header_stdc+set}" = set; then :
  6422. $as_echo_n "(cached) " >&6
  6423. else
  6424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6425. /* end confdefs.h. */
  6426. #include <stdlib.h>
  6427. #include <stdarg.h>
  6428. #include <string.h>
  6429. #include <float.h>
  6430. int
  6431. main ()
  6432. {
  6433. ;
  6434. return 0;
  6435. }
  6436. _ACEOF
  6437. if ac_fn_c_try_compile "$LINENO"; then :
  6438. ac_cv_header_stdc=yes
  6439. else
  6440. ac_cv_header_stdc=no
  6441. fi
  6442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6443. if test $ac_cv_header_stdc = yes; then
  6444. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6446. /* end confdefs.h. */
  6447. #include <string.h>
  6448. _ACEOF
  6449. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6450. $EGREP "memchr" >/dev/null 2>&1; then :
  6451. else
  6452. ac_cv_header_stdc=no
  6453. fi
  6454. rm -f conftest*
  6455. fi
  6456. if test $ac_cv_header_stdc = yes; then
  6457. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6459. /* end confdefs.h. */
  6460. #include <stdlib.h>
  6461. _ACEOF
  6462. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6463. $EGREP "free" >/dev/null 2>&1; then :
  6464. else
  6465. ac_cv_header_stdc=no
  6466. fi
  6467. rm -f conftest*
  6468. fi
  6469. if test $ac_cv_header_stdc = yes; then
  6470. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6471. if test "$cross_compiling" = yes; then :
  6472. :
  6473. else
  6474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6475. /* end confdefs.h. */
  6476. #include <ctype.h>
  6477. #include <stdlib.h>
  6478. #if ((' ' & 0x0FF) == 0x020)
  6479. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6480. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6481. #else
  6482. # define ISLOWER(c) \
  6483. (('a' <= (c) && (c) <= 'i') \
  6484. || ('j' <= (c) && (c) <= 'r') \
  6485. || ('s' <= (c) && (c) <= 'z'))
  6486. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6487. #endif
  6488. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6489. int
  6490. main ()
  6491. {
  6492. int i;
  6493. for (i = 0; i < 256; i++)
  6494. if (XOR (islower (i), ISLOWER (i))
  6495. || toupper (i) != TOUPPER (i))
  6496. return 2;
  6497. return 0;
  6498. }
  6499. _ACEOF
  6500. if ac_fn_c_try_run "$LINENO"; then :
  6501. else
  6502. ac_cv_header_stdc=no
  6503. fi
  6504. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6505. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6506. fi
  6507. fi
  6508. fi
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6510. $as_echo "$ac_cv_header_stdc" >&6; }
  6511. if test $ac_cv_header_stdc = yes; then
  6512. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6513. fi
  6514. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6515. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6516. inttypes.h stdint.h unistd.h
  6517. do :
  6518. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6519. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6520. "
  6521. eval as_val=\$$as_ac_Header
  6522. if test "x$as_val" = x""yes; then :
  6523. cat >>confdefs.h <<_ACEOF
  6524. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6525. _ACEOF
  6526. fi
  6527. done
  6528. for ac_header in dlfcn.h
  6529. do :
  6530. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6531. "
  6532. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6533. cat >>confdefs.h <<_ACEOF
  6534. #define HAVE_DLFCN_H 1
  6535. _ACEOF
  6536. fi
  6537. done
  6538. ac_ext=cpp
  6539. ac_cpp='$CXXCPP $CPPFLAGS'
  6540. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6541. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6542. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6543. if test -z "$CXX"; then
  6544. if test -n "$CCC"; then
  6545. CXX=$CCC
  6546. else
  6547. if test -n "$ac_tool_prefix"; then
  6548. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6549. do
  6550. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6551. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6553. $as_echo_n "checking for $ac_word... " >&6; }
  6554. if test "${ac_cv_prog_CXX+set}" = set; then :
  6555. $as_echo_n "(cached) " >&6
  6556. else
  6557. if test -n "$CXX"; then
  6558. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6559. else
  6560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6561. for as_dir in $PATH
  6562. do
  6563. IFS=$as_save_IFS
  6564. test -z "$as_dir" && as_dir=.
  6565. for ac_exec_ext in '' $ac_executable_extensions; do
  6566. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6567. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6569. break 2
  6570. fi
  6571. done
  6572. done
  6573. IFS=$as_save_IFS
  6574. fi
  6575. fi
  6576. CXX=$ac_cv_prog_CXX
  6577. if test -n "$CXX"; then
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6579. $as_echo "$CXX" >&6; }
  6580. else
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6582. $as_echo "no" >&6; }
  6583. fi
  6584. test -n "$CXX" && break
  6585. done
  6586. fi
  6587. if test -z "$CXX"; then
  6588. ac_ct_CXX=$CXX
  6589. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6590. do
  6591. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6592. set dummy $ac_prog; ac_word=$2
  6593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6594. $as_echo_n "checking for $ac_word... " >&6; }
  6595. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6596. $as_echo_n "(cached) " >&6
  6597. else
  6598. if test -n "$ac_ct_CXX"; then
  6599. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6600. else
  6601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6602. for as_dir in $PATH
  6603. do
  6604. IFS=$as_save_IFS
  6605. test -z "$as_dir" && as_dir=.
  6606. for ac_exec_ext in '' $ac_executable_extensions; do
  6607. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6608. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6610. break 2
  6611. fi
  6612. done
  6613. done
  6614. IFS=$as_save_IFS
  6615. fi
  6616. fi
  6617. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6618. if test -n "$ac_ct_CXX"; then
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6620. $as_echo "$ac_ct_CXX" >&6; }
  6621. else
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6623. $as_echo "no" >&6; }
  6624. fi
  6625. test -n "$ac_ct_CXX" && break
  6626. done
  6627. if test "x$ac_ct_CXX" = x; then
  6628. CXX="g++"
  6629. else
  6630. case $cross_compiling:$ac_tool_warned in
  6631. yes:)
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6633. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6634. ac_tool_warned=yes ;;
  6635. esac
  6636. CXX=$ac_ct_CXX
  6637. fi
  6638. fi
  6639. fi
  6640. fi
  6641. # Provide some information about the compiler.
  6642. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6643. set X $ac_compile
  6644. ac_compiler=$2
  6645. for ac_option in --version -v -V -qversion; do
  6646. { { ac_try="$ac_compiler $ac_option >&5"
  6647. case "(($ac_try" in
  6648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6649. *) ac_try_echo=$ac_try;;
  6650. esac
  6651. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6652. $as_echo "$ac_try_echo"; } >&5
  6653. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6654. ac_status=$?
  6655. if test -s conftest.err; then
  6656. sed '10a\
  6657. ... rest of stderr output deleted ...
  6658. 10q' conftest.err >conftest.er1
  6659. cat conftest.er1 >&5
  6660. fi
  6661. rm -f conftest.er1 conftest.err
  6662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6663. test $ac_status = 0; }
  6664. done
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6666. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6667. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6668. $as_echo_n "(cached) " >&6
  6669. else
  6670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6671. /* end confdefs.h. */
  6672. int
  6673. main ()
  6674. {
  6675. #ifndef __GNUC__
  6676. choke me
  6677. #endif
  6678. ;
  6679. return 0;
  6680. }
  6681. _ACEOF
  6682. if ac_fn_cxx_try_compile "$LINENO"; then :
  6683. ac_compiler_gnu=yes
  6684. else
  6685. ac_compiler_gnu=no
  6686. fi
  6687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6688. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6689. fi
  6690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6691. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6692. if test $ac_compiler_gnu = yes; then
  6693. GXX=yes
  6694. else
  6695. GXX=
  6696. fi
  6697. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6698. ac_save_CXXFLAGS=$CXXFLAGS
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6700. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6701. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6702. $as_echo_n "(cached) " >&6
  6703. else
  6704. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6705. ac_cxx_werror_flag=yes
  6706. ac_cv_prog_cxx_g=no
  6707. CXXFLAGS="-g"
  6708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6709. /* end confdefs.h. */
  6710. int
  6711. main ()
  6712. {
  6713. ;
  6714. return 0;
  6715. }
  6716. _ACEOF
  6717. if ac_fn_cxx_try_compile "$LINENO"; then :
  6718. ac_cv_prog_cxx_g=yes
  6719. else
  6720. CXXFLAGS=""
  6721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6722. /* end confdefs.h. */
  6723. int
  6724. main ()
  6725. {
  6726. ;
  6727. return 0;
  6728. }
  6729. _ACEOF
  6730. if ac_fn_cxx_try_compile "$LINENO"; then :
  6731. else
  6732. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6733. CXXFLAGS="-g"
  6734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6735. /* end confdefs.h. */
  6736. int
  6737. main ()
  6738. {
  6739. ;
  6740. return 0;
  6741. }
  6742. _ACEOF
  6743. if ac_fn_cxx_try_compile "$LINENO"; then :
  6744. ac_cv_prog_cxx_g=yes
  6745. fi
  6746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6747. fi
  6748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6749. fi
  6750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6751. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6752. fi
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6754. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6755. if test "$ac_test_CXXFLAGS" = set; then
  6756. CXXFLAGS=$ac_save_CXXFLAGS
  6757. elif test $ac_cv_prog_cxx_g = yes; then
  6758. if test "$GXX" = yes; then
  6759. CXXFLAGS="-g -O2"
  6760. else
  6761. CXXFLAGS="-g"
  6762. fi
  6763. else
  6764. if test "$GXX" = yes; then
  6765. CXXFLAGS="-O2"
  6766. else
  6767. CXXFLAGS=
  6768. fi
  6769. fi
  6770. ac_ext=c
  6771. ac_cpp='$CPP $CPPFLAGS'
  6772. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6773. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6774. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6775. depcc="$CXX" am_compiler_list=
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6777. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6778. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  6779. $as_echo_n "(cached) " >&6
  6780. else
  6781. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6782. # We make a subdir and do the tests there. Otherwise we can end up
  6783. # making bogus files that we don't know about and never remove. For
  6784. # instance it was reported that on HP-UX the gcc test will end up
  6785. # making a dummy file named `D' -- because `-MD' means `put the output
  6786. # in D'.
  6787. mkdir conftest.dir
  6788. # Copy depcomp to subdir because otherwise we won't find it if we're
  6789. # using a relative directory.
  6790. cp "$am_depcomp" conftest.dir
  6791. cd conftest.dir
  6792. # We will build objects and dependencies in a subdirectory because
  6793. # it helps to detect inapplicable dependency modes. For instance
  6794. # both Tru64's cc and ICC support -MD to output dependencies as a
  6795. # side effect of compilation, but ICC will put the dependencies in
  6796. # the current directory while Tru64 will put them in the object
  6797. # directory.
  6798. mkdir sub
  6799. am_cv_CXX_dependencies_compiler_type=none
  6800. if test "$am_compiler_list" = ""; then
  6801. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6802. fi
  6803. am__universal=false
  6804. case " $depcc " in #(
  6805. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6806. esac
  6807. for depmode in $am_compiler_list; do
  6808. # Setup a source with many dependencies, because some compilers
  6809. # like to wrap large dependency lists on column 80 (with \), and
  6810. # we should not choose a depcomp mode which is confused by this.
  6811. #
  6812. # We need to recreate these files for each test, as the compiler may
  6813. # overwrite some of them when testing with obscure command lines.
  6814. # This happens at least with the AIX C compiler.
  6815. : > sub/conftest.c
  6816. for i in 1 2 3 4 5 6; do
  6817. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6818. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6819. # Solaris 8's {/usr,}/bin/sh.
  6820. touch sub/conftst$i.h
  6821. done
  6822. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6823. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6824. # mode. It turns out that the SunPro C++ compiler does not properly
  6825. # handle `-M -o', and we need to detect this. Also, some Intel
  6826. # versions had trouble with output in subdirs
  6827. am__obj=sub/conftest.${OBJEXT-o}
  6828. am__minus_obj="-o $am__obj"
  6829. case $depmode in
  6830. gcc)
  6831. # This depmode causes a compiler race in universal mode.
  6832. test "$am__universal" = false || continue
  6833. ;;
  6834. nosideeffect)
  6835. # after this tag, mechanisms are not by side-effect, so they'll
  6836. # only be used when explicitly requested
  6837. if test "x$enable_dependency_tracking" = xyes; then
  6838. continue
  6839. else
  6840. break
  6841. fi
  6842. ;;
  6843. msvisualcpp | msvcmsys)
  6844. # This compiler won't grok `-c -o', but also, the minuso test has
  6845. # not run yet. These depmodes are late enough in the game, and
  6846. # so weak that their functioning should not be impacted.
  6847. am__obj=conftest.${OBJEXT-o}
  6848. am__minus_obj=
  6849. ;;
  6850. none) break ;;
  6851. esac
  6852. if depmode=$depmode \
  6853. source=sub/conftest.c object=$am__obj \
  6854. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6855. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6856. >/dev/null 2>conftest.err &&
  6857. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6858. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6859. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6860. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6861. # icc doesn't choke on unknown options, it will just issue warnings
  6862. # or remarks (even with -Werror). So we grep stderr for any message
  6863. # that says an option was ignored or not supported.
  6864. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6865. # icc: Command line warning: ignoring option '-M'; no argument required
  6866. # The diagnosis changed in icc 8.0:
  6867. # icc: Command line remark: option '-MP' not supported
  6868. if (grep 'ignoring option' conftest.err ||
  6869. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6870. am_cv_CXX_dependencies_compiler_type=$depmode
  6871. break
  6872. fi
  6873. fi
  6874. done
  6875. cd ..
  6876. rm -rf conftest.dir
  6877. else
  6878. am_cv_CXX_dependencies_compiler_type=none
  6879. fi
  6880. fi
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6882. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6883. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6884. if
  6885. test "x$enable_dependency_tracking" != xno \
  6886. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6887. am__fastdepCXX_TRUE=
  6888. am__fastdepCXX_FALSE='#'
  6889. else
  6890. am__fastdepCXX_TRUE='#'
  6891. am__fastdepCXX_FALSE=
  6892. fi
  6893. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6894. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6895. (test "X$CXX" != "Xg++"))) ; then
  6896. ac_ext=cpp
  6897. ac_cpp='$CXXCPP $CPPFLAGS'
  6898. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6899. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6900. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6902. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6903. if test -z "$CXXCPP"; then
  6904. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6905. $as_echo_n "(cached) " >&6
  6906. else
  6907. # Double quotes because CXXCPP needs to be expanded
  6908. for CXXCPP in "$CXX -E" "/lib/cpp"
  6909. do
  6910. ac_preproc_ok=false
  6911. for ac_cxx_preproc_warn_flag in '' yes
  6912. do
  6913. # Use a header file that comes with gcc, so configuring glibc
  6914. # with a fresh cross-compiler works.
  6915. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6916. # <limits.h> exists even on freestanding compilers.
  6917. # On the NeXT, cc -E runs the code through the compiler's parser,
  6918. # not just through cpp. "Syntax error" is here to catch this case.
  6919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6920. /* end confdefs.h. */
  6921. #ifdef __STDC__
  6922. # include <limits.h>
  6923. #else
  6924. # include <assert.h>
  6925. #endif
  6926. Syntax error
  6927. _ACEOF
  6928. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6929. else
  6930. # Broken: fails on valid input.
  6931. continue
  6932. fi
  6933. rm -f conftest.err conftest.$ac_ext
  6934. # OK, works on sane cases. Now check whether nonexistent headers
  6935. # can be detected and how.
  6936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6937. /* end confdefs.h. */
  6938. #include <ac_nonexistent.h>
  6939. _ACEOF
  6940. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6941. # Broken: success on invalid input.
  6942. continue
  6943. else
  6944. # Passes both tests.
  6945. ac_preproc_ok=:
  6946. break
  6947. fi
  6948. rm -f conftest.err conftest.$ac_ext
  6949. done
  6950. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6951. rm -f conftest.err conftest.$ac_ext
  6952. if $ac_preproc_ok; then :
  6953. break
  6954. fi
  6955. done
  6956. ac_cv_prog_CXXCPP=$CXXCPP
  6957. fi
  6958. CXXCPP=$ac_cv_prog_CXXCPP
  6959. else
  6960. ac_cv_prog_CXXCPP=$CXXCPP
  6961. fi
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  6963. $as_echo "$CXXCPP" >&6; }
  6964. ac_preproc_ok=false
  6965. for ac_cxx_preproc_warn_flag in '' yes
  6966. do
  6967. # Use a header file that comes with gcc, so configuring glibc
  6968. # with a fresh cross-compiler works.
  6969. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6970. # <limits.h> exists even on freestanding compilers.
  6971. # On the NeXT, cc -E runs the code through the compiler's parser,
  6972. # not just through cpp. "Syntax error" is here to catch this case.
  6973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6974. /* end confdefs.h. */
  6975. #ifdef __STDC__
  6976. # include <limits.h>
  6977. #else
  6978. # include <assert.h>
  6979. #endif
  6980. Syntax error
  6981. _ACEOF
  6982. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6983. else
  6984. # Broken: fails on valid input.
  6985. continue
  6986. fi
  6987. rm -f conftest.err conftest.$ac_ext
  6988. # OK, works on sane cases. Now check whether nonexistent headers
  6989. # can be detected and how.
  6990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6991. /* end confdefs.h. */
  6992. #include <ac_nonexistent.h>
  6993. _ACEOF
  6994. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6995. # Broken: success on invalid input.
  6996. continue
  6997. else
  6998. # Passes both tests.
  6999. ac_preproc_ok=:
  7000. break
  7001. fi
  7002. rm -f conftest.err conftest.$ac_ext
  7003. done
  7004. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7005. rm -f conftest.err conftest.$ac_ext
  7006. if $ac_preproc_ok; then :
  7007. else
  7008. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7009. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7010. _lt_caught_CXX_error=yes; }
  7011. fi
  7012. ac_ext=c
  7013. ac_cpp='$CPP $CPPFLAGS'
  7014. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7015. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7016. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7017. else
  7018. _lt_caught_CXX_error=yes
  7019. fi
  7020. # Set options
  7021. enable_dlopen=no
  7022. enable_win32_dll=no
  7023. # Check whether --enable-shared was given.
  7024. if test "${enable_shared+set}" = set; then :
  7025. enableval=$enable_shared; p=${PACKAGE-default}
  7026. case $enableval in
  7027. yes) enable_shared=yes ;;
  7028. no) enable_shared=no ;;
  7029. *)
  7030. enable_shared=no
  7031. # Look at the argument we got. We use all the common list separators.
  7032. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7033. for pkg in $enableval; do
  7034. IFS="$lt_save_ifs"
  7035. if test "X$pkg" = "X$p"; then
  7036. enable_shared=yes
  7037. fi
  7038. done
  7039. IFS="$lt_save_ifs"
  7040. ;;
  7041. esac
  7042. else
  7043. enable_shared=yes
  7044. fi
  7045. # Check whether --enable-static was given.
  7046. if test "${enable_static+set}" = set; then :
  7047. enableval=$enable_static; p=${PACKAGE-default}
  7048. case $enableval in
  7049. yes) enable_static=yes ;;
  7050. no) enable_static=no ;;
  7051. *)
  7052. enable_static=no
  7053. # Look at the argument we got. We use all the common list separators.
  7054. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7055. for pkg in $enableval; do
  7056. IFS="$lt_save_ifs"
  7057. if test "X$pkg" = "X$p"; then
  7058. enable_static=yes
  7059. fi
  7060. done
  7061. IFS="$lt_save_ifs"
  7062. ;;
  7063. esac
  7064. else
  7065. enable_static=yes
  7066. fi
  7067. # Check whether --with-pic was given.
  7068. if test "${with_pic+set}" = set; then :
  7069. withval=$with_pic; pic_mode="$withval"
  7070. else
  7071. pic_mode=default
  7072. fi
  7073. test -z "$pic_mode" && pic_mode=default
  7074. # Check whether --enable-fast-install was given.
  7075. if test "${enable_fast_install+set}" = set; then :
  7076. enableval=$enable_fast_install; p=${PACKAGE-default}
  7077. case $enableval in
  7078. yes) enable_fast_install=yes ;;
  7079. no) enable_fast_install=no ;;
  7080. *)
  7081. enable_fast_install=no
  7082. # Look at the argument we got. We use all the common list separators.
  7083. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7084. for pkg in $enableval; do
  7085. IFS="$lt_save_ifs"
  7086. if test "X$pkg" = "X$p"; then
  7087. enable_fast_install=yes
  7088. fi
  7089. done
  7090. IFS="$lt_save_ifs"
  7091. ;;
  7092. esac
  7093. else
  7094. enable_fast_install=yes
  7095. fi
  7096. # This can be used to rebuild libtool when needed
  7097. LIBTOOL_DEPS="$ltmain"
  7098. # Always use our own libtool.
  7099. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7100. test -z "$LN_S" && LN_S="ln -s"
  7101. if test -n "${ZSH_VERSION+set}" ; then
  7102. setopt NO_GLOB_SUBST
  7103. fi
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7105. $as_echo_n "checking for objdir... " >&6; }
  7106. if test "${lt_cv_objdir+set}" = set; then :
  7107. $as_echo_n "(cached) " >&6
  7108. else
  7109. rm -f .libs 2>/dev/null
  7110. mkdir .libs 2>/dev/null
  7111. if test -d .libs; then
  7112. lt_cv_objdir=.libs
  7113. else
  7114. # MS-DOS does not allow filenames that begin with a dot.
  7115. lt_cv_objdir=_libs
  7116. fi
  7117. rmdir .libs 2>/dev/null
  7118. fi
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7120. $as_echo "$lt_cv_objdir" >&6; }
  7121. objdir=$lt_cv_objdir
  7122. cat >>confdefs.h <<_ACEOF
  7123. #define LT_OBJDIR "$lt_cv_objdir/"
  7124. _ACEOF
  7125. case $host_os in
  7126. aix3*)
  7127. # AIX sometimes has problems with the GCC collect2 program. For some
  7128. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7129. # vanish in a puff of smoke.
  7130. if test "X${COLLECT_NAMES+set}" != Xset; then
  7131. COLLECT_NAMES=
  7132. export COLLECT_NAMES
  7133. fi
  7134. ;;
  7135. esac
  7136. # Sed substitution that helps us do robust quoting. It backslashifies
  7137. # metacharacters that are still active within double-quoted strings.
  7138. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7139. # Same as above, but do not quote variable references.
  7140. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7141. # Sed substitution to delay expansion of an escaped shell variable in a
  7142. # double_quote_subst'ed string.
  7143. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7144. # Sed substitution to delay expansion of an escaped single quote.
  7145. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7146. # Sed substitution to avoid accidental globbing in evaled expressions
  7147. no_glob_subst='s/\*/\\\*/g'
  7148. # Global variables:
  7149. ofile=libtool
  7150. can_build_shared=yes
  7151. # All known linkers require a `.a' archive for static linking (except MSVC,
  7152. # which needs '.lib').
  7153. libext=a
  7154. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7155. old_CC="$CC"
  7156. old_CFLAGS="$CFLAGS"
  7157. # Set sane defaults for various variables
  7158. test -z "$CC" && CC=cc
  7159. test -z "$LTCC" && LTCC=$CC
  7160. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7161. test -z "$LD" && LD=ld
  7162. test -z "$ac_objext" && ac_objext=o
  7163. for cc_temp in $compiler""; do
  7164. case $cc_temp in
  7165. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7166. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7167. \-*) ;;
  7168. *) break;;
  7169. esac
  7170. done
  7171. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7172. # Only perform the check for file, if the check method requires it
  7173. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7174. case $deplibs_check_method in
  7175. file_magic*)
  7176. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7178. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7179. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7180. $as_echo_n "(cached) " >&6
  7181. else
  7182. case $MAGIC_CMD in
  7183. [\\/*] | ?:[\\/]*)
  7184. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7185. ;;
  7186. *)
  7187. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7188. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7189. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7190. for ac_dir in $ac_dummy; do
  7191. IFS="$lt_save_ifs"
  7192. test -z "$ac_dir" && ac_dir=.
  7193. if test -f $ac_dir/${ac_tool_prefix}file; then
  7194. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7195. if test -n "$file_magic_test_file"; then
  7196. case $deplibs_check_method in
  7197. "file_magic "*)
  7198. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7199. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7200. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7201. $EGREP "$file_magic_regex" > /dev/null; then
  7202. :
  7203. else
  7204. cat <<_LT_EOF 1>&2
  7205. *** Warning: the command libtool uses to detect shared libraries,
  7206. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7207. *** The result is that libtool may fail to recognize shared libraries
  7208. *** as such. This will affect the creation of libtool libraries that
  7209. *** depend on shared libraries, but programs linked with such libtool
  7210. *** libraries will work regardless of this problem. Nevertheless, you
  7211. *** may want to report the problem to your system manager and/or to
  7212. *** bug-libtool@gnu.org
  7213. _LT_EOF
  7214. fi ;;
  7215. esac
  7216. fi
  7217. break
  7218. fi
  7219. done
  7220. IFS="$lt_save_ifs"
  7221. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7222. ;;
  7223. esac
  7224. fi
  7225. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7226. if test -n "$MAGIC_CMD"; then
  7227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7228. $as_echo "$MAGIC_CMD" >&6; }
  7229. else
  7230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7231. $as_echo "no" >&6; }
  7232. fi
  7233. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7234. if test -n "$ac_tool_prefix"; then
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7236. $as_echo_n "checking for file... " >&6; }
  7237. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7238. $as_echo_n "(cached) " >&6
  7239. else
  7240. case $MAGIC_CMD in
  7241. [\\/*] | ?:[\\/]*)
  7242. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7243. ;;
  7244. *)
  7245. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7246. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7247. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7248. for ac_dir in $ac_dummy; do
  7249. IFS="$lt_save_ifs"
  7250. test -z "$ac_dir" && ac_dir=.
  7251. if test -f $ac_dir/file; then
  7252. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7253. if test -n "$file_magic_test_file"; then
  7254. case $deplibs_check_method in
  7255. "file_magic "*)
  7256. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7257. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7258. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7259. $EGREP "$file_magic_regex" > /dev/null; then
  7260. :
  7261. else
  7262. cat <<_LT_EOF 1>&2
  7263. *** Warning: the command libtool uses to detect shared libraries,
  7264. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7265. *** The result is that libtool may fail to recognize shared libraries
  7266. *** as such. This will affect the creation of libtool libraries that
  7267. *** depend on shared libraries, but programs linked with such libtool
  7268. *** libraries will work regardless of this problem. Nevertheless, you
  7269. *** may want to report the problem to your system manager and/or to
  7270. *** bug-libtool@gnu.org
  7271. _LT_EOF
  7272. fi ;;
  7273. esac
  7274. fi
  7275. break
  7276. fi
  7277. done
  7278. IFS="$lt_save_ifs"
  7279. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7280. ;;
  7281. esac
  7282. fi
  7283. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7284. if test -n "$MAGIC_CMD"; then
  7285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7286. $as_echo "$MAGIC_CMD" >&6; }
  7287. else
  7288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7289. $as_echo "no" >&6; }
  7290. fi
  7291. else
  7292. MAGIC_CMD=:
  7293. fi
  7294. fi
  7295. fi
  7296. ;;
  7297. esac
  7298. # Use C for the default configuration in the libtool script
  7299. lt_save_CC="$CC"
  7300. ac_ext=c
  7301. ac_cpp='$CPP $CPPFLAGS'
  7302. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7303. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7304. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7305. # Source file extension for C test sources.
  7306. ac_ext=c
  7307. # Object file extension for compiled C test sources.
  7308. objext=o
  7309. objext=$objext
  7310. # Code to be used in simple compile tests
  7311. lt_simple_compile_test_code="int some_variable = 0;"
  7312. # Code to be used in simple link tests
  7313. lt_simple_link_test_code='int main(){return(0);}'
  7314. # If no C compiler was specified, use CC.
  7315. LTCC=${LTCC-"$CC"}
  7316. # If no C compiler flags were specified, use CFLAGS.
  7317. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7318. # Allow CC to be a program name with arguments.
  7319. compiler=$CC
  7320. # Save the default compiler, since it gets overwritten when the other
  7321. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7322. compiler_DEFAULT=$CC
  7323. # save warnings/boilerplate of simple test code
  7324. ac_outfile=conftest.$ac_objext
  7325. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7326. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7327. _lt_compiler_boilerplate=`cat conftest.err`
  7328. $RM conftest*
  7329. ac_outfile=conftest.$ac_objext
  7330. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7331. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7332. _lt_linker_boilerplate=`cat conftest.err`
  7333. $RM -r conftest*
  7334. if test -n "$compiler"; then
  7335. lt_prog_compiler_no_builtin_flag=
  7336. if test "$GCC" = yes; then
  7337. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7339. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7340. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7341. $as_echo_n "(cached) " >&6
  7342. else
  7343. lt_cv_prog_compiler_rtti_exceptions=no
  7344. ac_outfile=conftest.$ac_objext
  7345. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7346. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7347. # Insert the option either (1) after the last *FLAGS variable, or
  7348. # (2) before a word containing "conftest.", or (3) at the end.
  7349. # Note that $ac_compile itself does not contain backslashes and begins
  7350. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7351. # The option is referenced via a variable to avoid confusing sed.
  7352. lt_compile=`echo "$ac_compile" | $SED \
  7353. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7354. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7355. -e 's:$: $lt_compiler_flag:'`
  7356. (eval echo "\"\$as_me:8408: $lt_compile\"" >&5)
  7357. (eval "$lt_compile" 2>conftest.err)
  7358. ac_status=$?
  7359. cat conftest.err >&5
  7360. echo "$as_me:8412: \$? = $ac_status" >&5
  7361. if (exit $ac_status) && test -s "$ac_outfile"; then
  7362. # The compiler can only warn and ignore the option if not recognized
  7363. # So say no if there are warnings other than the usual output.
  7364. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7365. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7366. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7367. lt_cv_prog_compiler_rtti_exceptions=yes
  7368. fi
  7369. fi
  7370. $RM conftest*
  7371. fi
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7373. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7374. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7375. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7376. else
  7377. :
  7378. fi
  7379. fi
  7380. lt_prog_compiler_wl=
  7381. lt_prog_compiler_pic=
  7382. lt_prog_compiler_static=
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7384. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7385. if test "$GCC" = yes; then
  7386. lt_prog_compiler_wl='-Wl,'
  7387. lt_prog_compiler_static='-static'
  7388. case $host_os in
  7389. aix*)
  7390. # All AIX code is PIC.
  7391. if test "$host_cpu" = ia64; then
  7392. # AIX 5 now supports IA64 processor
  7393. lt_prog_compiler_static='-Bstatic'
  7394. fi
  7395. ;;
  7396. amigaos*)
  7397. case $host_cpu in
  7398. powerpc)
  7399. # see comment about AmigaOS4 .so support
  7400. lt_prog_compiler_pic='-fPIC'
  7401. ;;
  7402. m68k)
  7403. # FIXME: we need at least 68020 code to build shared libraries, but
  7404. # adding the `-m68020' flag to GCC prevents building anything better,
  7405. # like `-m68040'.
  7406. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7407. ;;
  7408. esac
  7409. ;;
  7410. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7411. # PIC is the default for these OSes.
  7412. ;;
  7413. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7414. # This hack is so that the source file can tell whether it is being
  7415. # built for inclusion in a dll (and should export symbols for example).
  7416. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7417. # (--disable-auto-import) libraries
  7418. lt_prog_compiler_pic='-DDLL_EXPORT'
  7419. ;;
  7420. darwin* | rhapsody*)
  7421. # PIC is the default on this platform
  7422. # Common symbols not allowed in MH_DYLIB files
  7423. lt_prog_compiler_pic='-fno-common'
  7424. ;;
  7425. hpux*)
  7426. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7427. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7428. # sets the default TLS model and affects inlining.
  7429. case $host_cpu in
  7430. hppa*64*)
  7431. # +Z the default
  7432. ;;
  7433. *)
  7434. lt_prog_compiler_pic='-fPIC'
  7435. ;;
  7436. esac
  7437. ;;
  7438. interix[3-9]*)
  7439. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7440. # Instead, we relocate shared libraries at runtime.
  7441. ;;
  7442. msdosdjgpp*)
  7443. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7444. # on systems that don't support them.
  7445. lt_prog_compiler_can_build_shared=no
  7446. enable_shared=no
  7447. ;;
  7448. *nto* | *qnx*)
  7449. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7450. # it will coredump.
  7451. lt_prog_compiler_pic='-fPIC -shared'
  7452. ;;
  7453. sysv4*MP*)
  7454. if test -d /usr/nec; then
  7455. lt_prog_compiler_pic=-Kconform_pic
  7456. fi
  7457. ;;
  7458. *)
  7459. lt_prog_compiler_pic='-fPIC'
  7460. ;;
  7461. esac
  7462. else
  7463. # PORTME Check for flag to pass linker flags through the system compiler.
  7464. case $host_os in
  7465. aix*)
  7466. lt_prog_compiler_wl='-Wl,'
  7467. if test "$host_cpu" = ia64; then
  7468. # AIX 5 now supports IA64 processor
  7469. lt_prog_compiler_static='-Bstatic'
  7470. else
  7471. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7472. fi
  7473. ;;
  7474. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7475. # This hack is so that the source file can tell whether it is being
  7476. # built for inclusion in a dll (and should export symbols for example).
  7477. lt_prog_compiler_pic='-DDLL_EXPORT'
  7478. ;;
  7479. hpux9* | hpux10* | hpux11*)
  7480. lt_prog_compiler_wl='-Wl,'
  7481. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7482. # not for PA HP-UX.
  7483. case $host_cpu in
  7484. hppa*64*|ia64*)
  7485. # +Z the default
  7486. ;;
  7487. *)
  7488. lt_prog_compiler_pic='+Z'
  7489. ;;
  7490. esac
  7491. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7492. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7493. ;;
  7494. irix5* | irix6* | nonstopux*)
  7495. lt_prog_compiler_wl='-Wl,'
  7496. # PIC (with -KPIC) is the default.
  7497. lt_prog_compiler_static='-non_shared'
  7498. ;;
  7499. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7500. case $cc_basename in
  7501. # old Intel for x86_64 which still supported -KPIC.
  7502. ecc*)
  7503. lt_prog_compiler_wl='-Wl,'
  7504. lt_prog_compiler_pic='-KPIC'
  7505. lt_prog_compiler_static='-static'
  7506. ;;
  7507. # icc used to be incompatible with GCC.
  7508. # ICC 10 doesn't accept -KPIC any more.
  7509. icc* | ifort*)
  7510. lt_prog_compiler_wl='-Wl,'
  7511. lt_prog_compiler_pic='-fPIC'
  7512. lt_prog_compiler_static='-static'
  7513. ;;
  7514. # Lahey Fortran 8.1.
  7515. lf95*)
  7516. lt_prog_compiler_wl='-Wl,'
  7517. lt_prog_compiler_pic='--shared'
  7518. lt_prog_compiler_static='--static'
  7519. ;;
  7520. pgcc* | pgf77* | pgf90* | pgf95*)
  7521. # Portland Group compilers (*not* the Pentium gcc compiler,
  7522. # which looks to be a dead project)
  7523. lt_prog_compiler_wl='-Wl,'
  7524. lt_prog_compiler_pic='-fpic'
  7525. lt_prog_compiler_static='-Bstatic'
  7526. ;;
  7527. ccc*)
  7528. lt_prog_compiler_wl='-Wl,'
  7529. # All Alpha code is PIC.
  7530. lt_prog_compiler_static='-non_shared'
  7531. ;;
  7532. xl*)
  7533. # IBM XL C 8.0/Fortran 10.1 on PPC
  7534. lt_prog_compiler_wl='-Wl,'
  7535. lt_prog_compiler_pic='-qpic'
  7536. lt_prog_compiler_static='-qstaticlink'
  7537. ;;
  7538. *)
  7539. case `$CC -V 2>&1 | sed 5q` in
  7540. *Sun\ C*)
  7541. # Sun C 5.9
  7542. lt_prog_compiler_pic='-KPIC'
  7543. lt_prog_compiler_static='-Bstatic'
  7544. lt_prog_compiler_wl='-Wl,'
  7545. ;;
  7546. *Sun\ F*)
  7547. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7548. lt_prog_compiler_pic='-KPIC'
  7549. lt_prog_compiler_static='-Bstatic'
  7550. lt_prog_compiler_wl=''
  7551. ;;
  7552. esac
  7553. ;;
  7554. esac
  7555. ;;
  7556. newsos6)
  7557. lt_prog_compiler_pic='-KPIC'
  7558. lt_prog_compiler_static='-Bstatic'
  7559. ;;
  7560. *nto* | *qnx*)
  7561. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7562. # it will coredump.
  7563. lt_prog_compiler_pic='-fPIC -shared'
  7564. ;;
  7565. osf3* | osf4* | osf5*)
  7566. lt_prog_compiler_wl='-Wl,'
  7567. # All OSF/1 code is PIC.
  7568. lt_prog_compiler_static='-non_shared'
  7569. ;;
  7570. rdos*)
  7571. lt_prog_compiler_static='-non_shared'
  7572. ;;
  7573. solaris*)
  7574. lt_prog_compiler_pic='-KPIC'
  7575. lt_prog_compiler_static='-Bstatic'
  7576. case $cc_basename in
  7577. f77* | f90* | f95*)
  7578. lt_prog_compiler_wl='-Qoption ld ';;
  7579. *)
  7580. lt_prog_compiler_wl='-Wl,';;
  7581. esac
  7582. ;;
  7583. sunos4*)
  7584. lt_prog_compiler_wl='-Qoption ld '
  7585. lt_prog_compiler_pic='-PIC'
  7586. lt_prog_compiler_static='-Bstatic'
  7587. ;;
  7588. sysv4 | sysv4.2uw2* | sysv4.3*)
  7589. lt_prog_compiler_wl='-Wl,'
  7590. lt_prog_compiler_pic='-KPIC'
  7591. lt_prog_compiler_static='-Bstatic'
  7592. ;;
  7593. sysv4*MP*)
  7594. if test -d /usr/nec ;then
  7595. lt_prog_compiler_pic='-Kconform_pic'
  7596. lt_prog_compiler_static='-Bstatic'
  7597. fi
  7598. ;;
  7599. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7600. lt_prog_compiler_wl='-Wl,'
  7601. lt_prog_compiler_pic='-KPIC'
  7602. lt_prog_compiler_static='-Bstatic'
  7603. ;;
  7604. unicos*)
  7605. lt_prog_compiler_wl='-Wl,'
  7606. lt_prog_compiler_can_build_shared=no
  7607. ;;
  7608. uts4*)
  7609. lt_prog_compiler_pic='-pic'
  7610. lt_prog_compiler_static='-Bstatic'
  7611. ;;
  7612. *)
  7613. lt_prog_compiler_can_build_shared=no
  7614. ;;
  7615. esac
  7616. fi
  7617. case $host_os in
  7618. # For platforms which do not support PIC, -DPIC is meaningless:
  7619. *djgpp*)
  7620. lt_prog_compiler_pic=
  7621. ;;
  7622. *)
  7623. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7624. ;;
  7625. esac
  7626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7627. $as_echo "$lt_prog_compiler_pic" >&6; }
  7628. #
  7629. # Check to make sure the PIC flag actually works.
  7630. #
  7631. if test -n "$lt_prog_compiler_pic"; then
  7632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7633. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7634. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7635. $as_echo_n "(cached) " >&6
  7636. else
  7637. lt_cv_prog_compiler_pic_works=no
  7638. ac_outfile=conftest.$ac_objext
  7639. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7640. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7641. # Insert the option either (1) after the last *FLAGS variable, or
  7642. # (2) before a word containing "conftest.", or (3) at the end.
  7643. # Note that $ac_compile itself does not contain backslashes and begins
  7644. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7645. # The option is referenced via a variable to avoid confusing sed.
  7646. lt_compile=`echo "$ac_compile" | $SED \
  7647. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7648. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7649. -e 's:$: $lt_compiler_flag:'`
  7650. (eval echo "\"\$as_me:8747: $lt_compile\"" >&5)
  7651. (eval "$lt_compile" 2>conftest.err)
  7652. ac_status=$?
  7653. cat conftest.err >&5
  7654. echo "$as_me:8751: \$? = $ac_status" >&5
  7655. if (exit $ac_status) && test -s "$ac_outfile"; then
  7656. # The compiler can only warn and ignore the option if not recognized
  7657. # So say no if there are warnings other than the usual output.
  7658. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7659. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7660. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7661. lt_cv_prog_compiler_pic_works=yes
  7662. fi
  7663. fi
  7664. $RM conftest*
  7665. fi
  7666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7667. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7668. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7669. case $lt_prog_compiler_pic in
  7670. "" | " "*) ;;
  7671. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7672. esac
  7673. else
  7674. lt_prog_compiler_pic=
  7675. lt_prog_compiler_can_build_shared=no
  7676. fi
  7677. fi
  7678. #
  7679. # Check to make sure the static flag actually works.
  7680. #
  7681. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7683. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7684. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7685. $as_echo_n "(cached) " >&6
  7686. else
  7687. lt_cv_prog_compiler_static_works=no
  7688. save_LDFLAGS="$LDFLAGS"
  7689. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7690. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7691. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7692. # The linker can only warn and ignore the option if not recognized
  7693. # So say no if there are warnings
  7694. if test -s conftest.err; then
  7695. # Append any errors to the config.log.
  7696. cat conftest.err 1>&5
  7697. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7698. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7699. if diff conftest.exp conftest.er2 >/dev/null; then
  7700. lt_cv_prog_compiler_static_works=yes
  7701. fi
  7702. else
  7703. lt_cv_prog_compiler_static_works=yes
  7704. fi
  7705. fi
  7706. $RM -r conftest*
  7707. LDFLAGS="$save_LDFLAGS"
  7708. fi
  7709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7710. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7711. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7712. :
  7713. else
  7714. lt_prog_compiler_static=
  7715. fi
  7716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7717. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7718. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7719. $as_echo_n "(cached) " >&6
  7720. else
  7721. lt_cv_prog_compiler_c_o=no
  7722. $RM -r conftest 2>/dev/null
  7723. mkdir conftest
  7724. cd conftest
  7725. mkdir out
  7726. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7727. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7728. # Insert the option either (1) after the last *FLAGS variable, or
  7729. # (2) before a word containing "conftest.", or (3) at the end.
  7730. # Note that $ac_compile itself does not contain backslashes and begins
  7731. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7732. lt_compile=`echo "$ac_compile" | $SED \
  7733. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7734. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7735. -e 's:$: $lt_compiler_flag:'`
  7736. (eval echo "\"\$as_me:8852: $lt_compile\"" >&5)
  7737. (eval "$lt_compile" 2>out/conftest.err)
  7738. ac_status=$?
  7739. cat out/conftest.err >&5
  7740. echo "$as_me:8856: \$? = $ac_status" >&5
  7741. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7742. then
  7743. # The compiler can only warn and ignore the option if not recognized
  7744. # So say no if there are warnings
  7745. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7746. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7747. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7748. lt_cv_prog_compiler_c_o=yes
  7749. fi
  7750. fi
  7751. chmod u+w . 2>&5
  7752. $RM conftest*
  7753. # SGI C++ compiler will create directory out/ii_files/ for
  7754. # template instantiation
  7755. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7756. $RM out/* && rmdir out
  7757. cd ..
  7758. $RM -r conftest
  7759. $RM conftest*
  7760. fi
  7761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7762. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7764. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7765. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7766. $as_echo_n "(cached) " >&6
  7767. else
  7768. lt_cv_prog_compiler_c_o=no
  7769. $RM -r conftest 2>/dev/null
  7770. mkdir conftest
  7771. cd conftest
  7772. mkdir out
  7773. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7774. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7775. # Insert the option either (1) after the last *FLAGS variable, or
  7776. # (2) before a word containing "conftest.", or (3) at the end.
  7777. # Note that $ac_compile itself does not contain backslashes and begins
  7778. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7779. lt_compile=`echo "$ac_compile" | $SED \
  7780. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7781. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7782. -e 's:$: $lt_compiler_flag:'`
  7783. (eval echo "\"\$as_me:8907: $lt_compile\"" >&5)
  7784. (eval "$lt_compile" 2>out/conftest.err)
  7785. ac_status=$?
  7786. cat out/conftest.err >&5
  7787. echo "$as_me:8911: \$? = $ac_status" >&5
  7788. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7789. then
  7790. # The compiler can only warn and ignore the option if not recognized
  7791. # So say no if there are warnings
  7792. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7793. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7794. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7795. lt_cv_prog_compiler_c_o=yes
  7796. fi
  7797. fi
  7798. chmod u+w . 2>&5
  7799. $RM conftest*
  7800. # SGI C++ compiler will create directory out/ii_files/ for
  7801. # template instantiation
  7802. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7803. $RM out/* && rmdir out
  7804. cd ..
  7805. $RM -r conftest
  7806. $RM conftest*
  7807. fi
  7808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7809. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7810. hard_links="nottested"
  7811. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7812. # do not overwrite the value of need_locks provided by the user
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7814. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7815. hard_links=yes
  7816. $RM conftest*
  7817. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7818. touch conftest.a
  7819. ln conftest.a conftest.b 2>&5 || hard_links=no
  7820. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7822. $as_echo "$hard_links" >&6; }
  7823. if test "$hard_links" = no; then
  7824. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7825. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7826. need_locks=warn
  7827. fi
  7828. else
  7829. need_locks=no
  7830. fi
  7831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7832. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7833. runpath_var=
  7834. allow_undefined_flag=
  7835. always_export_symbols=no
  7836. archive_cmds=
  7837. archive_expsym_cmds=
  7838. compiler_needs_object=no
  7839. enable_shared_with_static_runtimes=no
  7840. export_dynamic_flag_spec=
  7841. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7842. hardcode_automatic=no
  7843. hardcode_direct=no
  7844. hardcode_direct_absolute=no
  7845. hardcode_libdir_flag_spec=
  7846. hardcode_libdir_flag_spec_ld=
  7847. hardcode_libdir_separator=
  7848. hardcode_minus_L=no
  7849. hardcode_shlibpath_var=unsupported
  7850. inherit_rpath=no
  7851. link_all_deplibs=unknown
  7852. module_cmds=
  7853. module_expsym_cmds=
  7854. old_archive_from_new_cmds=
  7855. old_archive_from_expsyms_cmds=
  7856. thread_safe_flag_spec=
  7857. whole_archive_flag_spec=
  7858. # include_expsyms should be a list of space-separated symbols to be *always*
  7859. # included in the symbol list
  7860. include_expsyms=
  7861. # exclude_expsyms can be an extended regexp of symbols to exclude
  7862. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7863. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7864. # as well as any symbol that contains `d'.
  7865. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7866. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7867. # platforms (ab)use it in PIC code, but their linkers get confused if
  7868. # the symbol is explicitly referenced. Since portable code cannot
  7869. # rely on this symbol name, it's probably fine to never include it in
  7870. # preloaded symbol tables.
  7871. # Exclude shared library initialization/finalization symbols.
  7872. extract_expsyms_cmds=
  7873. case $host_os in
  7874. cygwin* | mingw* | pw32* | cegcc*)
  7875. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7876. # When not using gcc, we currently assume that we are using
  7877. # Microsoft Visual C++.
  7878. if test "$GCC" != yes; then
  7879. with_gnu_ld=no
  7880. fi
  7881. ;;
  7882. interix*)
  7883. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7884. with_gnu_ld=yes
  7885. ;;
  7886. openbsd*)
  7887. with_gnu_ld=no
  7888. ;;
  7889. linux* | k*bsd*-gnu)
  7890. link_all_deplibs=no
  7891. ;;
  7892. esac
  7893. ld_shlibs=yes
  7894. if test "$with_gnu_ld" = yes; then
  7895. # If archive_cmds runs LD, not CC, wlarc should be empty
  7896. wlarc='${wl}'
  7897. # Set some defaults for GNU ld with shared library support. These
  7898. # are reset later if shared libraries are not supported. Putting them
  7899. # here allows them to be overridden if necessary.
  7900. runpath_var=LD_RUN_PATH
  7901. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7902. export_dynamic_flag_spec='${wl}--export-dynamic'
  7903. # ancient GNU ld didn't support --whole-archive et. al.
  7904. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7905. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7906. else
  7907. whole_archive_flag_spec=
  7908. fi
  7909. supports_anon_versioning=no
  7910. case `$LD -v 2>&1` in
  7911. *GNU\ gold*) supports_anon_versioning=yes ;;
  7912. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7913. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7914. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7915. *\ 2.11.*) ;; # other 2.11 versions
  7916. *) supports_anon_versioning=yes ;;
  7917. esac
  7918. # See if GNU ld supports shared libraries.
  7919. case $host_os in
  7920. aix[3-9]*)
  7921. # On AIX/PPC, the GNU linker is very broken
  7922. if test "$host_cpu" != ia64; then
  7923. ld_shlibs=no
  7924. cat <<_LT_EOF 1>&2
  7925. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7926. *** to be unable to reliably create shared libraries on AIX.
  7927. *** Therefore, libtool is disabling shared libraries support. If you
  7928. *** really care for shared libraries, you may want to modify your PATH
  7929. *** so that a non-GNU linker is found, and then restart.
  7930. _LT_EOF
  7931. fi
  7932. ;;
  7933. amigaos*)
  7934. case $host_cpu in
  7935. powerpc)
  7936. # see comment about AmigaOS4 .so support
  7937. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7938. archive_expsym_cmds=''
  7939. ;;
  7940. m68k)
  7941. 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)'
  7942. hardcode_libdir_flag_spec='-L$libdir'
  7943. hardcode_minus_L=yes
  7944. ;;
  7945. esac
  7946. ;;
  7947. beos*)
  7948. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7949. allow_undefined_flag=unsupported
  7950. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7951. # support --undefined. This deserves some investigation. FIXME
  7952. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7953. else
  7954. ld_shlibs=no
  7955. fi
  7956. ;;
  7957. cygwin* | mingw* | pw32* | cegcc*)
  7958. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7959. # as there is no search path for DLLs.
  7960. hardcode_libdir_flag_spec='-L$libdir'
  7961. allow_undefined_flag=unsupported
  7962. always_export_symbols=no
  7963. enable_shared_with_static_runtimes=yes
  7964. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7965. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7966. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7967. # If the export-symbols file already is a .def file (1st line
  7968. # is EXPORTS), use it as is; otherwise, prepend...
  7969. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7970. cp $export_symbols $output_objdir/$soname.def;
  7971. else
  7972. echo EXPORTS > $output_objdir/$soname.def;
  7973. cat $export_symbols >> $output_objdir/$soname.def;
  7974. fi~
  7975. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7976. else
  7977. ld_shlibs=no
  7978. fi
  7979. ;;
  7980. interix[3-9]*)
  7981. hardcode_direct=no
  7982. hardcode_shlibpath_var=no
  7983. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7984. export_dynamic_flag_spec='${wl}-E'
  7985. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7986. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7987. # default) and relocated if they conflict, which is a slow very memory
  7988. # consuming and fragmenting process. To avoid this, we pick a random,
  7989. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7990. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7991. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7992. 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'
  7993. ;;
  7994. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7995. tmp_diet=no
  7996. if test "$host_os" = linux-dietlibc; then
  7997. case $cc_basename in
  7998. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7999. esac
  8000. fi
  8001. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8002. && test "$tmp_diet" = no
  8003. then
  8004. tmp_addflag=
  8005. tmp_sharedflag='-shared'
  8006. case $cc_basename,$host_cpu in
  8007. pgcc*) # Portland Group C compiler
  8008. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8009. tmp_addflag=' $pic_flag'
  8010. ;;
  8011. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8012. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8013. tmp_addflag=' $pic_flag -Mnomain' ;;
  8014. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8015. tmp_addflag=' -i_dynamic' ;;
  8016. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8017. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8018. ifc* | ifort*) # Intel Fortran compiler
  8019. tmp_addflag=' -nofor_main' ;;
  8020. lf95*) # Lahey Fortran 8.1
  8021. whole_archive_flag_spec=
  8022. tmp_sharedflag='--shared' ;;
  8023. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8024. tmp_sharedflag='-qmkshrobj'
  8025. tmp_addflag= ;;
  8026. esac
  8027. case `$CC -V 2>&1 | sed 5q` in
  8028. *Sun\ C*) # Sun C 5.9
  8029. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8030. compiler_needs_object=yes
  8031. tmp_sharedflag='-G' ;;
  8032. *Sun\ F*) # Sun Fortran 8.3
  8033. tmp_sharedflag='-G' ;;
  8034. esac
  8035. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8036. if test "x$supports_anon_versioning" = xyes; then
  8037. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8038. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8039. echo "local: *; };" >> $output_objdir/$libname.ver~
  8040. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8041. fi
  8042. case $cc_basename in
  8043. xlf*)
  8044. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8045. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8046. hardcode_libdir_flag_spec=
  8047. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8048. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8049. if test "x$supports_anon_versioning" = xyes; then
  8050. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8051. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8052. echo "local: *; };" >> $output_objdir/$libname.ver~
  8053. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8054. fi
  8055. ;;
  8056. esac
  8057. else
  8058. ld_shlibs=no
  8059. fi
  8060. ;;
  8061. netbsd* | netbsdelf*-gnu)
  8062. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8063. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8064. wlarc=
  8065. else
  8066. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8067. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8068. fi
  8069. ;;
  8070. solaris*)
  8071. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8072. ld_shlibs=no
  8073. cat <<_LT_EOF 1>&2
  8074. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8075. *** create shared libraries on Solaris systems. Therefore, libtool
  8076. *** is disabling shared libraries support. We urge you to upgrade GNU
  8077. *** binutils to release 2.9.1 or newer. Another option is to modify
  8078. *** your PATH or compiler configuration so that the native linker is
  8079. *** used, and then restart.
  8080. _LT_EOF
  8081. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8082. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8083. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8084. else
  8085. ld_shlibs=no
  8086. fi
  8087. ;;
  8088. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8089. case `$LD -v 2>&1` in
  8090. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8091. ld_shlibs=no
  8092. cat <<_LT_EOF 1>&2
  8093. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8094. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8095. *** is disabling shared libraries support. We urge you to upgrade GNU
  8096. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8097. *** your PATH or compiler configuration so that the native linker is
  8098. *** used, and then restart.
  8099. _LT_EOF
  8100. ;;
  8101. *)
  8102. # For security reasons, it is highly recommended that you always
  8103. # use absolute paths for naming shared libraries, and exclude the
  8104. # DT_RUNPATH tag from executables and libraries. But doing so
  8105. # requires that you compile everything twice, which is a pain.
  8106. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8107. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8108. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8109. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8110. else
  8111. ld_shlibs=no
  8112. fi
  8113. ;;
  8114. esac
  8115. ;;
  8116. sunos4*)
  8117. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8118. wlarc=
  8119. hardcode_direct=yes
  8120. hardcode_shlibpath_var=no
  8121. ;;
  8122. *)
  8123. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8124. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8125. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8126. else
  8127. ld_shlibs=no
  8128. fi
  8129. ;;
  8130. esac
  8131. if test "$ld_shlibs" = no; then
  8132. runpath_var=
  8133. hardcode_libdir_flag_spec=
  8134. export_dynamic_flag_spec=
  8135. whole_archive_flag_spec=
  8136. fi
  8137. else
  8138. # PORTME fill in a description of your system's linker (not GNU ld)
  8139. case $host_os in
  8140. aix3*)
  8141. allow_undefined_flag=unsupported
  8142. always_export_symbols=yes
  8143. 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'
  8144. # Note: this linker hardcodes the directories in LIBPATH if there
  8145. # are no directories specified by -L.
  8146. hardcode_minus_L=yes
  8147. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8148. # Neither direct hardcoding nor static linking is supported with a
  8149. # broken collect2.
  8150. hardcode_direct=unsupported
  8151. fi
  8152. ;;
  8153. aix[4-9]*)
  8154. if test "$host_cpu" = ia64; then
  8155. # On IA64, the linker does run time linking by default, so we don't
  8156. # have to do anything special.
  8157. aix_use_runtimelinking=no
  8158. exp_sym_flag='-Bexport'
  8159. no_entry_flag=""
  8160. else
  8161. # If we're using GNU nm, then we don't want the "-C" option.
  8162. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8163. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8164. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8165. else
  8166. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8167. fi
  8168. aix_use_runtimelinking=no
  8169. # Test if we are trying to use run time linking or normal
  8170. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8171. # need to do runtime linking.
  8172. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8173. for ld_flag in $LDFLAGS; do
  8174. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8175. aix_use_runtimelinking=yes
  8176. break
  8177. fi
  8178. done
  8179. ;;
  8180. esac
  8181. exp_sym_flag='-bexport'
  8182. no_entry_flag='-bnoentry'
  8183. fi
  8184. # When large executables or shared objects are built, AIX ld can
  8185. # have problems creating the table of contents. If linking a library
  8186. # or program results in "error TOC overflow" add -mminimal-toc to
  8187. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8188. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8189. archive_cmds=''
  8190. hardcode_direct=yes
  8191. hardcode_direct_absolute=yes
  8192. hardcode_libdir_separator=':'
  8193. link_all_deplibs=yes
  8194. file_list_spec='${wl}-f,'
  8195. if test "$GCC" = yes; then
  8196. case $host_os in aix4.[012]|aix4.[012].*)
  8197. # We only want to do this on AIX 4.2 and lower, the check
  8198. # below for broken collect2 doesn't work under 4.3+
  8199. collect2name=`${CC} -print-prog-name=collect2`
  8200. if test -f "$collect2name" &&
  8201. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8202. then
  8203. # We have reworked collect2
  8204. :
  8205. else
  8206. # We have old collect2
  8207. hardcode_direct=unsupported
  8208. # It fails to find uninstalled libraries when the uninstalled
  8209. # path is not listed in the libpath. Setting hardcode_minus_L
  8210. # to unsupported forces relinking
  8211. hardcode_minus_L=yes
  8212. hardcode_libdir_flag_spec='-L$libdir'
  8213. hardcode_libdir_separator=
  8214. fi
  8215. ;;
  8216. esac
  8217. shared_flag='-shared'
  8218. if test "$aix_use_runtimelinking" = yes; then
  8219. shared_flag="$shared_flag "'${wl}-G'
  8220. fi
  8221. link_all_deplibs=no
  8222. else
  8223. # not using gcc
  8224. if test "$host_cpu" = ia64; then
  8225. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8226. # chokes on -Wl,-G. The following line is correct:
  8227. shared_flag='-G'
  8228. else
  8229. if test "$aix_use_runtimelinking" = yes; then
  8230. shared_flag='${wl}-G'
  8231. else
  8232. shared_flag='${wl}-bM:SRE'
  8233. fi
  8234. fi
  8235. fi
  8236. export_dynamic_flag_spec='${wl}-bexpall'
  8237. # It seems that -bexpall does not export symbols beginning with
  8238. # underscore (_), so it is better to generate a list of symbols to export.
  8239. always_export_symbols=yes
  8240. if test "$aix_use_runtimelinking" = yes; then
  8241. # Warning - without using the other runtime loading flags (-brtl),
  8242. # -berok will link without error, but may produce a broken library.
  8243. allow_undefined_flag='-berok'
  8244. # Determine the default libpath from the value encoded in an
  8245. # empty executable.
  8246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8247. /* end confdefs.h. */
  8248. int
  8249. main ()
  8250. {
  8251. ;
  8252. return 0;
  8253. }
  8254. _ACEOF
  8255. if ac_fn_c_try_link "$LINENO"; then :
  8256. lt_aix_libpath_sed='
  8257. /Import File Strings/,/^$/ {
  8258. /^0/ {
  8259. s/^0 *\(.*\)$/\1/
  8260. p
  8261. }
  8262. }'
  8263. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8264. # Check for a 64-bit object if we didn't find anything.
  8265. if test -z "$aix_libpath"; then
  8266. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8267. fi
  8268. fi
  8269. rm -f core conftest.err conftest.$ac_objext \
  8270. conftest$ac_exeext conftest.$ac_ext
  8271. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8272. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8273. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8274. else
  8275. if test "$host_cpu" = ia64; then
  8276. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8277. allow_undefined_flag="-z nodefs"
  8278. 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"
  8279. else
  8280. # Determine the default libpath from the value encoded in an
  8281. # empty executable.
  8282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8283. /* end confdefs.h. */
  8284. int
  8285. main ()
  8286. {
  8287. ;
  8288. return 0;
  8289. }
  8290. _ACEOF
  8291. if ac_fn_c_try_link "$LINENO"; then :
  8292. lt_aix_libpath_sed='
  8293. /Import File Strings/,/^$/ {
  8294. /^0/ {
  8295. s/^0 *\(.*\)$/\1/
  8296. p
  8297. }
  8298. }'
  8299. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8300. # Check for a 64-bit object if we didn't find anything.
  8301. if test -z "$aix_libpath"; then
  8302. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8303. fi
  8304. fi
  8305. rm -f core conftest.err conftest.$ac_objext \
  8306. conftest$ac_exeext conftest.$ac_ext
  8307. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8308. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8309. # Warning - without using the other run time loading flags,
  8310. # -berok will link without error, but may produce a broken library.
  8311. no_undefined_flag=' ${wl}-bernotok'
  8312. allow_undefined_flag=' ${wl}-berok'
  8313. # Exported symbols can be pulled into shared objects from archives
  8314. whole_archive_flag_spec='$convenience'
  8315. archive_cmds_need_lc=yes
  8316. # This is similar to how AIX traditionally builds its shared libraries.
  8317. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8318. fi
  8319. fi
  8320. ;;
  8321. amigaos*)
  8322. case $host_cpu in
  8323. powerpc)
  8324. # see comment about AmigaOS4 .so support
  8325. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8326. archive_expsym_cmds=''
  8327. ;;
  8328. m68k)
  8329. 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)'
  8330. hardcode_libdir_flag_spec='-L$libdir'
  8331. hardcode_minus_L=yes
  8332. ;;
  8333. esac
  8334. ;;
  8335. bsdi[45]*)
  8336. export_dynamic_flag_spec=-rdynamic
  8337. ;;
  8338. cygwin* | mingw* | pw32* | cegcc*)
  8339. # When not using gcc, we currently assume that we are using
  8340. # Microsoft Visual C++.
  8341. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8342. # no search path for DLLs.
  8343. hardcode_libdir_flag_spec=' '
  8344. allow_undefined_flag=unsupported
  8345. # Tell ltmain to make .lib files, not .a files.
  8346. libext=lib
  8347. # Tell ltmain to make .dll files, not .so files.
  8348. shrext_cmds=".dll"
  8349. # FIXME: Setting linknames here is a bad hack.
  8350. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8351. # The linker will automatically build a .lib file if we build a DLL.
  8352. old_archive_from_new_cmds='true'
  8353. # FIXME: Should let the user specify the lib program.
  8354. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8355. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8356. enable_shared_with_static_runtimes=yes
  8357. ;;
  8358. darwin* | rhapsody*)
  8359. archive_cmds_need_lc=no
  8360. hardcode_direct=no
  8361. hardcode_automatic=yes
  8362. hardcode_shlibpath_var=unsupported
  8363. whole_archive_flag_spec=''
  8364. link_all_deplibs=yes
  8365. allow_undefined_flag="$_lt_dar_allow_undefined"
  8366. case $cc_basename in
  8367. ifort*) _lt_dar_can_shared=yes ;;
  8368. *) _lt_dar_can_shared=$GCC ;;
  8369. esac
  8370. if test "$_lt_dar_can_shared" = "yes"; then
  8371. output_verbose_link_cmd=echo
  8372. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8373. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8374. 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}"
  8375. 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}"
  8376. else
  8377. ld_shlibs=no
  8378. fi
  8379. ;;
  8380. dgux*)
  8381. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8382. hardcode_libdir_flag_spec='-L$libdir'
  8383. hardcode_shlibpath_var=no
  8384. ;;
  8385. freebsd1*)
  8386. ld_shlibs=no
  8387. ;;
  8388. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8389. # support. Future versions do this automatically, but an explicit c++rt0.o
  8390. # does not break anything, and helps significantly (at the cost of a little
  8391. # extra space).
  8392. freebsd2.2*)
  8393. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8394. hardcode_libdir_flag_spec='-R$libdir'
  8395. hardcode_direct=yes
  8396. hardcode_shlibpath_var=no
  8397. ;;
  8398. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8399. freebsd2*)
  8400. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8401. hardcode_direct=yes
  8402. hardcode_minus_L=yes
  8403. hardcode_shlibpath_var=no
  8404. ;;
  8405. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8406. freebsd* | dragonfly*)
  8407. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8408. hardcode_libdir_flag_spec='-R$libdir'
  8409. hardcode_direct=yes
  8410. hardcode_shlibpath_var=no
  8411. ;;
  8412. hpux9*)
  8413. if test "$GCC" = yes; then
  8414. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8415. else
  8416. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8417. fi
  8418. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8419. hardcode_libdir_separator=:
  8420. hardcode_direct=yes
  8421. # hardcode_minus_L: Not really in the search PATH,
  8422. # but as the default location of the library.
  8423. hardcode_minus_L=yes
  8424. export_dynamic_flag_spec='${wl}-E'
  8425. ;;
  8426. hpux10*)
  8427. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8428. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8429. else
  8430. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8431. fi
  8432. if test "$with_gnu_ld" = no; then
  8433. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8434. hardcode_libdir_flag_spec_ld='+b $libdir'
  8435. hardcode_libdir_separator=:
  8436. hardcode_direct=yes
  8437. hardcode_direct_absolute=yes
  8438. export_dynamic_flag_spec='${wl}-E'
  8439. # hardcode_minus_L: Not really in the search PATH,
  8440. # but as the default location of the library.
  8441. hardcode_minus_L=yes
  8442. fi
  8443. ;;
  8444. hpux11*)
  8445. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8446. case $host_cpu in
  8447. hppa*64*)
  8448. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8449. ;;
  8450. ia64*)
  8451. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8452. ;;
  8453. *)
  8454. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8455. ;;
  8456. esac
  8457. else
  8458. case $host_cpu in
  8459. hppa*64*)
  8460. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8461. ;;
  8462. ia64*)
  8463. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8464. ;;
  8465. *)
  8466. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8467. ;;
  8468. esac
  8469. fi
  8470. if test "$with_gnu_ld" = no; then
  8471. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8472. hardcode_libdir_separator=:
  8473. case $host_cpu in
  8474. hppa*64*|ia64*)
  8475. hardcode_direct=no
  8476. hardcode_shlibpath_var=no
  8477. ;;
  8478. *)
  8479. hardcode_direct=yes
  8480. hardcode_direct_absolute=yes
  8481. export_dynamic_flag_spec='${wl}-E'
  8482. # hardcode_minus_L: Not really in the search PATH,
  8483. # but as the default location of the library.
  8484. hardcode_minus_L=yes
  8485. ;;
  8486. esac
  8487. fi
  8488. ;;
  8489. irix5* | irix6* | nonstopux*)
  8490. if test "$GCC" = yes; then
  8491. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8492. # Try to use the -exported_symbol ld option, if it does not
  8493. # work, assume that -exports_file does not work either and
  8494. # implicitly export all symbols.
  8495. save_LDFLAGS="$LDFLAGS"
  8496. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8498. /* end confdefs.h. */
  8499. int foo(void) {}
  8500. _ACEOF
  8501. if ac_fn_c_try_link "$LINENO"; then :
  8502. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8503. fi
  8504. rm -f core conftest.err conftest.$ac_objext \
  8505. conftest$ac_exeext conftest.$ac_ext
  8506. LDFLAGS="$save_LDFLAGS"
  8507. else
  8508. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8509. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8510. fi
  8511. archive_cmds_need_lc='no'
  8512. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8513. hardcode_libdir_separator=:
  8514. inherit_rpath=yes
  8515. link_all_deplibs=yes
  8516. ;;
  8517. netbsd* | netbsdelf*-gnu)
  8518. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8519. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8520. else
  8521. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8522. fi
  8523. hardcode_libdir_flag_spec='-R$libdir'
  8524. hardcode_direct=yes
  8525. hardcode_shlibpath_var=no
  8526. ;;
  8527. newsos6)
  8528. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8529. hardcode_direct=yes
  8530. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8531. hardcode_libdir_separator=:
  8532. hardcode_shlibpath_var=no
  8533. ;;
  8534. *nto* | *qnx*)
  8535. ;;
  8536. openbsd*)
  8537. if test -f /usr/libexec/ld.so; then
  8538. hardcode_direct=yes
  8539. hardcode_shlibpath_var=no
  8540. hardcode_direct_absolute=yes
  8541. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8542. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8543. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8544. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8545. export_dynamic_flag_spec='${wl}-E'
  8546. else
  8547. case $host_os in
  8548. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8549. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8550. hardcode_libdir_flag_spec='-R$libdir'
  8551. ;;
  8552. *)
  8553. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8554. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8555. ;;
  8556. esac
  8557. fi
  8558. else
  8559. ld_shlibs=no
  8560. fi
  8561. ;;
  8562. os2*)
  8563. hardcode_libdir_flag_spec='-L$libdir'
  8564. hardcode_minus_L=yes
  8565. allow_undefined_flag=unsupported
  8566. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8567. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8568. ;;
  8569. osf3*)
  8570. if test "$GCC" = yes; then
  8571. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8572. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8573. else
  8574. allow_undefined_flag=' -expect_unresolved \*'
  8575. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8576. fi
  8577. archive_cmds_need_lc='no'
  8578. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8579. hardcode_libdir_separator=:
  8580. ;;
  8581. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8582. if test "$GCC" = yes; then
  8583. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8584. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8585. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8586. else
  8587. allow_undefined_flag=' -expect_unresolved \*'
  8588. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8589. 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~
  8590. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8591. # Both c and cxx compiler support -rpath directly
  8592. hardcode_libdir_flag_spec='-rpath $libdir'
  8593. fi
  8594. archive_cmds_need_lc='no'
  8595. hardcode_libdir_separator=:
  8596. ;;
  8597. solaris*)
  8598. no_undefined_flag=' -z defs'
  8599. if test "$GCC" = yes; then
  8600. wlarc='${wl}'
  8601. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8602. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8603. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8604. else
  8605. case `$CC -V 2>&1` in
  8606. *"Compilers 5.0"*)
  8607. wlarc=''
  8608. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8609. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8610. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8611. ;;
  8612. *)
  8613. wlarc='${wl}'
  8614. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8615. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8616. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8617. ;;
  8618. esac
  8619. fi
  8620. hardcode_libdir_flag_spec='-R$libdir'
  8621. hardcode_shlibpath_var=no
  8622. case $host_os in
  8623. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8624. *)
  8625. # The compiler driver will combine and reorder linker options,
  8626. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8627. # but is careful enough not to reorder.
  8628. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8629. if test "$GCC" = yes; then
  8630. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8631. else
  8632. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8633. fi
  8634. ;;
  8635. esac
  8636. link_all_deplibs=yes
  8637. ;;
  8638. sunos4*)
  8639. if test "x$host_vendor" = xsequent; then
  8640. # Use $CC to link under sequent, because it throws in some extra .o
  8641. # files that make .init and .fini sections work.
  8642. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8643. else
  8644. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8645. fi
  8646. hardcode_libdir_flag_spec='-L$libdir'
  8647. hardcode_direct=yes
  8648. hardcode_minus_L=yes
  8649. hardcode_shlibpath_var=no
  8650. ;;
  8651. sysv4)
  8652. case $host_vendor in
  8653. sni)
  8654. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8655. hardcode_direct=yes # is this really true???
  8656. ;;
  8657. siemens)
  8658. ## LD is ld it makes a PLAMLIB
  8659. ## CC just makes a GrossModule.
  8660. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8661. reload_cmds='$CC -r -o $output$reload_objs'
  8662. hardcode_direct=no
  8663. ;;
  8664. motorola)
  8665. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8666. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8667. ;;
  8668. esac
  8669. runpath_var='LD_RUN_PATH'
  8670. hardcode_shlibpath_var=no
  8671. ;;
  8672. sysv4.3*)
  8673. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8674. hardcode_shlibpath_var=no
  8675. export_dynamic_flag_spec='-Bexport'
  8676. ;;
  8677. sysv4*MP*)
  8678. if test -d /usr/nec; then
  8679. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8680. hardcode_shlibpath_var=no
  8681. runpath_var=LD_RUN_PATH
  8682. hardcode_runpath_var=yes
  8683. ld_shlibs=yes
  8684. fi
  8685. ;;
  8686. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8687. no_undefined_flag='${wl}-z,text'
  8688. archive_cmds_need_lc=no
  8689. hardcode_shlibpath_var=no
  8690. runpath_var='LD_RUN_PATH'
  8691. if test "$GCC" = yes; then
  8692. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8693. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8694. else
  8695. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8696. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8697. fi
  8698. ;;
  8699. sysv5* | sco3.2v5* | sco5v6*)
  8700. # Note: We can NOT use -z defs as we might desire, because we do not
  8701. # link with -lc, and that would cause any symbols used from libc to
  8702. # always be unresolved, which means just about no library would
  8703. # ever link correctly. If we're not using GNU ld we use -z text
  8704. # though, which does catch some bad symbols but isn't as heavy-handed
  8705. # as -z defs.
  8706. no_undefined_flag='${wl}-z,text'
  8707. allow_undefined_flag='${wl}-z,nodefs'
  8708. archive_cmds_need_lc=no
  8709. hardcode_shlibpath_var=no
  8710. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8711. hardcode_libdir_separator=':'
  8712. link_all_deplibs=yes
  8713. export_dynamic_flag_spec='${wl}-Bexport'
  8714. runpath_var='LD_RUN_PATH'
  8715. if test "$GCC" = yes; then
  8716. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8717. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8718. else
  8719. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8720. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8721. fi
  8722. ;;
  8723. uts4*)
  8724. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8725. hardcode_libdir_flag_spec='-L$libdir'
  8726. hardcode_shlibpath_var=no
  8727. ;;
  8728. *)
  8729. ld_shlibs=no
  8730. ;;
  8731. esac
  8732. if test x$host_vendor = xsni; then
  8733. case $host in
  8734. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8735. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8736. ;;
  8737. esac
  8738. fi
  8739. fi
  8740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8741. $as_echo "$ld_shlibs" >&6; }
  8742. test "$ld_shlibs" = no && can_build_shared=no
  8743. with_gnu_ld=$with_gnu_ld
  8744. #
  8745. # Do we need to explicitly link libc?
  8746. #
  8747. case "x$archive_cmds_need_lc" in
  8748. x|xyes)
  8749. # Assume -lc should be added
  8750. archive_cmds_need_lc=yes
  8751. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8752. case $archive_cmds in
  8753. *'~'*)
  8754. # FIXME: we may have to deal with multi-command sequences.
  8755. ;;
  8756. '$CC '*)
  8757. # Test whether the compiler implicitly links with -lc since on some
  8758. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8759. # to ld, don't add -lc before -lgcc.
  8760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8761. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8762. $RM conftest*
  8763. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8764. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8765. (eval $ac_compile) 2>&5
  8766. ac_status=$?
  8767. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8768. test $ac_status = 0; } 2>conftest.err; then
  8769. soname=conftest
  8770. lib=conftest
  8771. libobjs=conftest.$ac_objext
  8772. deplibs=
  8773. wl=$lt_prog_compiler_wl
  8774. pic_flag=$lt_prog_compiler_pic
  8775. compiler_flags=-v
  8776. linker_flags=-v
  8777. verstring=
  8778. output_objdir=.
  8779. libname=conftest
  8780. lt_save_allow_undefined_flag=$allow_undefined_flag
  8781. allow_undefined_flag=
  8782. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8783. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8784. ac_status=$?
  8785. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8786. test $ac_status = 0; }
  8787. then
  8788. archive_cmds_need_lc=no
  8789. else
  8790. archive_cmds_need_lc=yes
  8791. fi
  8792. allow_undefined_flag=$lt_save_allow_undefined_flag
  8793. else
  8794. cat conftest.err 1>&5
  8795. fi
  8796. $RM conftest*
  8797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8798. $as_echo "$archive_cmds_need_lc" >&6; }
  8799. ;;
  8800. esac
  8801. fi
  8802. ;;
  8803. esac
  8804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8805. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8806. if test "$GCC" = yes; then
  8807. case $host_os in
  8808. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8809. *) lt_awk_arg="/^libraries:/" ;;
  8810. esac
  8811. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8812. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8813. # if the path contains ";" then we assume it to be the separator
  8814. # otherwise default to the standard path separator (i.e. ":") - it is
  8815. # assumed that no part of a normal pathname contains ";" but that should
  8816. # okay in the real world where ";" in dirpaths is itself problematic.
  8817. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8818. else
  8819. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8820. fi
  8821. # Ok, now we have the path, separated by spaces, we can step through it
  8822. # and add multilib dir if necessary.
  8823. lt_tmp_lt_search_path_spec=
  8824. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8825. for lt_sys_path in $lt_search_path_spec; do
  8826. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8827. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8828. else
  8829. test -d "$lt_sys_path" && \
  8830. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8831. fi
  8832. done
  8833. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8834. BEGIN {RS=" "; FS="/|\n";} {
  8835. lt_foo="";
  8836. lt_count=0;
  8837. for (lt_i = NF; lt_i > 0; lt_i--) {
  8838. if ($lt_i != "" && $lt_i != ".") {
  8839. if ($lt_i == "..") {
  8840. lt_count++;
  8841. } else {
  8842. if (lt_count == 0) {
  8843. lt_foo="/" $lt_i lt_foo;
  8844. } else {
  8845. lt_count--;
  8846. }
  8847. }
  8848. }
  8849. }
  8850. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8851. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8852. }'`
  8853. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8854. else
  8855. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8856. fi
  8857. library_names_spec=
  8858. libname_spec='lib$name'
  8859. soname_spec=
  8860. shrext_cmds=".so"
  8861. postinstall_cmds=
  8862. postuninstall_cmds=
  8863. finish_cmds=
  8864. finish_eval=
  8865. shlibpath_var=
  8866. shlibpath_overrides_runpath=unknown
  8867. version_type=none
  8868. dynamic_linker="$host_os ld.so"
  8869. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8870. need_lib_prefix=unknown
  8871. hardcode_into_libs=no
  8872. # when you set need_version to no, make sure it does not cause -set_version
  8873. # flags to be left without arguments
  8874. need_version=unknown
  8875. case $host_os in
  8876. aix3*)
  8877. version_type=linux
  8878. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8879. shlibpath_var=LIBPATH
  8880. # AIX 3 has no versioning support, so we append a major version to the name.
  8881. soname_spec='${libname}${release}${shared_ext}$major'
  8882. ;;
  8883. aix[4-9]*)
  8884. version_type=linux
  8885. need_lib_prefix=no
  8886. need_version=no
  8887. hardcode_into_libs=yes
  8888. if test "$host_cpu" = ia64; then
  8889. # AIX 5 supports IA64
  8890. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8891. shlibpath_var=LD_LIBRARY_PATH
  8892. else
  8893. # With GCC up to 2.95.x, collect2 would create an import file
  8894. # for dependence libraries. The import file would start with
  8895. # the line `#! .'. This would cause the generated library to
  8896. # depend on `.', always an invalid library. This was fixed in
  8897. # development snapshots of GCC prior to 3.0.
  8898. case $host_os in
  8899. aix4 | aix4.[01] | aix4.[01].*)
  8900. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8901. echo ' yes '
  8902. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8903. :
  8904. else
  8905. can_build_shared=no
  8906. fi
  8907. ;;
  8908. esac
  8909. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8910. # soname into executable. Probably we can add versioning support to
  8911. # collect2, so additional links can be useful in future.
  8912. if test "$aix_use_runtimelinking" = yes; then
  8913. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8914. # instead of lib<name>.a to let people know that these are not
  8915. # typical AIX shared libraries.
  8916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8917. else
  8918. # We preserve .a as extension for shared libraries through AIX4.2
  8919. # and later when we are not doing run time linking.
  8920. library_names_spec='${libname}${release}.a $libname.a'
  8921. soname_spec='${libname}${release}${shared_ext}$major'
  8922. fi
  8923. shlibpath_var=LIBPATH
  8924. fi
  8925. ;;
  8926. amigaos*)
  8927. case $host_cpu in
  8928. powerpc)
  8929. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8930. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8932. ;;
  8933. m68k)
  8934. library_names_spec='$libname.ixlibrary $libname.a'
  8935. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8936. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8937. ;;
  8938. esac
  8939. ;;
  8940. beos*)
  8941. library_names_spec='${libname}${shared_ext}'
  8942. dynamic_linker="$host_os ld.so"
  8943. shlibpath_var=LIBRARY_PATH
  8944. ;;
  8945. bsdi[45]*)
  8946. version_type=linux
  8947. need_version=no
  8948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8949. soname_spec='${libname}${release}${shared_ext}$major'
  8950. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8951. shlibpath_var=LD_LIBRARY_PATH
  8952. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8953. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8954. # the default ld.so.conf also contains /usr/contrib/lib and
  8955. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8956. # libtool to hard-code these into programs
  8957. ;;
  8958. cygwin* | mingw* | pw32* | cegcc*)
  8959. version_type=windows
  8960. shrext_cmds=".dll"
  8961. need_version=no
  8962. need_lib_prefix=no
  8963. case $GCC,$host_os in
  8964. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8965. library_names_spec='$libname.dll.a'
  8966. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8967. postinstall_cmds='base_file=`basename \${file}`~
  8968. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8969. dldir=$destdir/`dirname \$dlpath`~
  8970. test -d \$dldir || mkdir -p \$dldir~
  8971. $install_prog $dir/$dlname \$dldir/$dlname~
  8972. chmod a+x \$dldir/$dlname~
  8973. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8974. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8975. fi'
  8976. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8977. dlpath=$dir/\$dldll~
  8978. $RM \$dlpath'
  8979. shlibpath_overrides_runpath=yes
  8980. case $host_os in
  8981. cygwin*)
  8982. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8983. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8984. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8985. ;;
  8986. mingw* | cegcc*)
  8987. # MinGW DLLs use traditional 'lib' prefix
  8988. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8989. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8990. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8991. # It is most probably a Windows format PATH printed by
  8992. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8993. # path with ; separators, and with drive letters. We can handle the
  8994. # drive letters (cygwin fileutils understands them), so leave them,
  8995. # especially as we might pass files found there to a mingw objdump,
  8996. # which wouldn't understand a cygwinified path. Ahh.
  8997. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8998. else
  8999. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9000. fi
  9001. ;;
  9002. pw32*)
  9003. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9004. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9005. ;;
  9006. esac
  9007. ;;
  9008. *)
  9009. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9010. ;;
  9011. esac
  9012. dynamic_linker='Win32 ld.exe'
  9013. # FIXME: first we should search . and the directory the executable is in
  9014. shlibpath_var=PATH
  9015. ;;
  9016. darwin* | rhapsody*)
  9017. dynamic_linker="$host_os dyld"
  9018. version_type=darwin
  9019. need_lib_prefix=no
  9020. need_version=no
  9021. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9022. soname_spec='${libname}${release}${major}$shared_ext'
  9023. shlibpath_overrides_runpath=yes
  9024. shlibpath_var=DYLD_LIBRARY_PATH
  9025. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9026. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9027. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9028. ;;
  9029. dgux*)
  9030. version_type=linux
  9031. need_lib_prefix=no
  9032. need_version=no
  9033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9034. soname_spec='${libname}${release}${shared_ext}$major'
  9035. shlibpath_var=LD_LIBRARY_PATH
  9036. ;;
  9037. freebsd1*)
  9038. dynamic_linker=no
  9039. ;;
  9040. freebsd* | dragonfly*)
  9041. # DragonFly does not have aout. When/if they implement a new
  9042. # versioning mechanism, adjust this.
  9043. if test -x /usr/bin/objformat; then
  9044. objformat=`/usr/bin/objformat`
  9045. else
  9046. case $host_os in
  9047. freebsd[123]*) objformat=aout ;;
  9048. *) objformat=elf ;;
  9049. esac
  9050. fi
  9051. version_type=freebsd-$objformat
  9052. case $version_type in
  9053. freebsd-elf*)
  9054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9055. need_version=no
  9056. need_lib_prefix=no
  9057. ;;
  9058. freebsd-*)
  9059. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9060. need_version=yes
  9061. ;;
  9062. esac
  9063. shlibpath_var=LD_LIBRARY_PATH
  9064. case $host_os in
  9065. freebsd2*)
  9066. shlibpath_overrides_runpath=yes
  9067. ;;
  9068. freebsd3.[01]* | freebsdelf3.[01]*)
  9069. shlibpath_overrides_runpath=yes
  9070. hardcode_into_libs=yes
  9071. ;;
  9072. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9073. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9074. shlibpath_overrides_runpath=no
  9075. hardcode_into_libs=yes
  9076. ;;
  9077. *) # from 4.6 on, and DragonFly
  9078. shlibpath_overrides_runpath=yes
  9079. hardcode_into_libs=yes
  9080. ;;
  9081. esac
  9082. ;;
  9083. gnu*)
  9084. version_type=linux
  9085. need_lib_prefix=no
  9086. need_version=no
  9087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9088. soname_spec='${libname}${release}${shared_ext}$major'
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. hardcode_into_libs=yes
  9091. ;;
  9092. hpux9* | hpux10* | hpux11*)
  9093. # Give a soname corresponding to the major version so that dld.sl refuses to
  9094. # link against other versions.
  9095. version_type=sunos
  9096. need_lib_prefix=no
  9097. need_version=no
  9098. case $host_cpu in
  9099. ia64*)
  9100. shrext_cmds='.so'
  9101. hardcode_into_libs=yes
  9102. dynamic_linker="$host_os dld.so"
  9103. shlibpath_var=LD_LIBRARY_PATH
  9104. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9105. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9106. soname_spec='${libname}${release}${shared_ext}$major'
  9107. if test "X$HPUX_IA64_MODE" = X32; then
  9108. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9109. else
  9110. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9111. fi
  9112. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9113. ;;
  9114. hppa*64*)
  9115. shrext_cmds='.sl'
  9116. hardcode_into_libs=yes
  9117. dynamic_linker="$host_os dld.sl"
  9118. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9119. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9121. soname_spec='${libname}${release}${shared_ext}$major'
  9122. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9123. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9124. ;;
  9125. *)
  9126. shrext_cmds='.sl'
  9127. dynamic_linker="$host_os dld.sl"
  9128. shlibpath_var=SHLIB_PATH
  9129. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9131. soname_spec='${libname}${release}${shared_ext}$major'
  9132. ;;
  9133. esac
  9134. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9135. postinstall_cmds='chmod 555 $lib'
  9136. ;;
  9137. interix[3-9]*)
  9138. version_type=linux
  9139. need_lib_prefix=no
  9140. need_version=no
  9141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9142. soname_spec='${libname}${release}${shared_ext}$major'
  9143. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9144. shlibpath_var=LD_LIBRARY_PATH
  9145. shlibpath_overrides_runpath=no
  9146. hardcode_into_libs=yes
  9147. ;;
  9148. irix5* | irix6* | nonstopux*)
  9149. case $host_os in
  9150. nonstopux*) version_type=nonstopux ;;
  9151. *)
  9152. if test "$lt_cv_prog_gnu_ld" = yes; then
  9153. version_type=linux
  9154. else
  9155. version_type=irix
  9156. fi ;;
  9157. esac
  9158. need_lib_prefix=no
  9159. need_version=no
  9160. soname_spec='${libname}${release}${shared_ext}$major'
  9161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9162. case $host_os in
  9163. irix5* | nonstopux*)
  9164. libsuff= shlibsuff=
  9165. ;;
  9166. *)
  9167. case $LD in # libtool.m4 will add one of these switches to LD
  9168. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9169. libsuff= shlibsuff= libmagic=32-bit;;
  9170. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9171. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9172. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9173. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9174. *) libsuff= shlibsuff= libmagic=never-match;;
  9175. esac
  9176. ;;
  9177. esac
  9178. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9179. shlibpath_overrides_runpath=no
  9180. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9181. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9182. hardcode_into_libs=yes
  9183. ;;
  9184. # No shared lib support for Linux oldld, aout, or coff.
  9185. linux*oldld* | linux*aout* | linux*coff*)
  9186. dynamic_linker=no
  9187. ;;
  9188. # This must be Linux ELF.
  9189. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9190. version_type=linux
  9191. need_lib_prefix=no
  9192. need_version=no
  9193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9194. soname_spec='${libname}${release}${shared_ext}$major'
  9195. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9196. shlibpath_var=LD_LIBRARY_PATH
  9197. shlibpath_overrides_runpath=no
  9198. # Some binutils ld are patched to set DT_RUNPATH
  9199. save_LDFLAGS=$LDFLAGS
  9200. save_libdir=$libdir
  9201. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9202. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9204. /* end confdefs.h. */
  9205. int
  9206. main ()
  9207. {
  9208. ;
  9209. return 0;
  9210. }
  9211. _ACEOF
  9212. if ac_fn_c_try_link "$LINENO"; then :
  9213. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9214. shlibpath_overrides_runpath=yes
  9215. fi
  9216. fi
  9217. rm -f core conftest.err conftest.$ac_objext \
  9218. conftest$ac_exeext conftest.$ac_ext
  9219. LDFLAGS=$save_LDFLAGS
  9220. libdir=$save_libdir
  9221. # This implies no fast_install, which is unacceptable.
  9222. # Some rework will be needed to allow for fast_install
  9223. # before this can be enabled.
  9224. hardcode_into_libs=yes
  9225. # Append ld.so.conf contents to the search path
  9226. if test -f /etc/ld.so.conf; then
  9227. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  9228. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9229. fi
  9230. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9231. # powerpc, because MkLinux only supported shared libraries with the
  9232. # GNU dynamic linker. Since this was broken with cross compilers,
  9233. # most powerpc-linux boxes support dynamic linking these days and
  9234. # people can always --disable-shared, the test was removed, and we
  9235. # assume the GNU/Linux dynamic linker is in use.
  9236. dynamic_linker='GNU/Linux ld.so'
  9237. ;;
  9238. netbsdelf*-gnu)
  9239. version_type=linux
  9240. need_lib_prefix=no
  9241. need_version=no
  9242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9243. soname_spec='${libname}${release}${shared_ext}$major'
  9244. shlibpath_var=LD_LIBRARY_PATH
  9245. shlibpath_overrides_runpath=no
  9246. hardcode_into_libs=yes
  9247. dynamic_linker='NetBSD ld.elf_so'
  9248. ;;
  9249. netbsd*)
  9250. version_type=sunos
  9251. need_lib_prefix=no
  9252. need_version=no
  9253. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9255. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9256. dynamic_linker='NetBSD (a.out) ld.so'
  9257. else
  9258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9259. soname_spec='${libname}${release}${shared_ext}$major'
  9260. dynamic_linker='NetBSD ld.elf_so'
  9261. fi
  9262. shlibpath_var=LD_LIBRARY_PATH
  9263. shlibpath_overrides_runpath=yes
  9264. hardcode_into_libs=yes
  9265. ;;
  9266. newsos6)
  9267. version_type=linux
  9268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9269. shlibpath_var=LD_LIBRARY_PATH
  9270. shlibpath_overrides_runpath=yes
  9271. ;;
  9272. *nto* | *qnx*)
  9273. version_type=qnx
  9274. need_lib_prefix=no
  9275. need_version=no
  9276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9277. soname_spec='${libname}${release}${shared_ext}$major'
  9278. shlibpath_var=LD_LIBRARY_PATH
  9279. shlibpath_overrides_runpath=no
  9280. hardcode_into_libs=yes
  9281. dynamic_linker='ldqnx.so'
  9282. ;;
  9283. openbsd*)
  9284. version_type=sunos
  9285. sys_lib_dlsearch_path_spec="/usr/lib"
  9286. need_lib_prefix=no
  9287. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9288. case $host_os in
  9289. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9290. *) need_version=no ;;
  9291. esac
  9292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9293. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9294. shlibpath_var=LD_LIBRARY_PATH
  9295. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9296. case $host_os in
  9297. openbsd2.[89] | openbsd2.[89].*)
  9298. shlibpath_overrides_runpath=no
  9299. ;;
  9300. *)
  9301. shlibpath_overrides_runpath=yes
  9302. ;;
  9303. esac
  9304. else
  9305. shlibpath_overrides_runpath=yes
  9306. fi
  9307. ;;
  9308. os2*)
  9309. libname_spec='$name'
  9310. shrext_cmds=".dll"
  9311. need_lib_prefix=no
  9312. library_names_spec='$libname${shared_ext} $libname.a'
  9313. dynamic_linker='OS/2 ld.exe'
  9314. shlibpath_var=LIBPATH
  9315. ;;
  9316. osf3* | osf4* | osf5*)
  9317. version_type=osf
  9318. need_lib_prefix=no
  9319. need_version=no
  9320. soname_spec='${libname}${release}${shared_ext}$major'
  9321. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9322. shlibpath_var=LD_LIBRARY_PATH
  9323. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9324. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9325. ;;
  9326. rdos*)
  9327. dynamic_linker=no
  9328. ;;
  9329. solaris*)
  9330. version_type=linux
  9331. need_lib_prefix=no
  9332. need_version=no
  9333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9334. soname_spec='${libname}${release}${shared_ext}$major'
  9335. shlibpath_var=LD_LIBRARY_PATH
  9336. shlibpath_overrides_runpath=yes
  9337. hardcode_into_libs=yes
  9338. # ldd complains unless libraries are executable
  9339. postinstall_cmds='chmod +x $lib'
  9340. ;;
  9341. sunos4*)
  9342. version_type=sunos
  9343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9344. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9345. shlibpath_var=LD_LIBRARY_PATH
  9346. shlibpath_overrides_runpath=yes
  9347. if test "$with_gnu_ld" = yes; then
  9348. need_lib_prefix=no
  9349. fi
  9350. need_version=yes
  9351. ;;
  9352. sysv4 | sysv4.3*)
  9353. version_type=linux
  9354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9355. soname_spec='${libname}${release}${shared_ext}$major'
  9356. shlibpath_var=LD_LIBRARY_PATH
  9357. case $host_vendor in
  9358. sni)
  9359. shlibpath_overrides_runpath=no
  9360. need_lib_prefix=no
  9361. runpath_var=LD_RUN_PATH
  9362. ;;
  9363. siemens)
  9364. need_lib_prefix=no
  9365. ;;
  9366. motorola)
  9367. need_lib_prefix=no
  9368. need_version=no
  9369. shlibpath_overrides_runpath=no
  9370. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9371. ;;
  9372. esac
  9373. ;;
  9374. sysv4*MP*)
  9375. if test -d /usr/nec ;then
  9376. version_type=linux
  9377. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9378. soname_spec='$libname${shared_ext}.$major'
  9379. shlibpath_var=LD_LIBRARY_PATH
  9380. fi
  9381. ;;
  9382. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9383. version_type=freebsd-elf
  9384. need_lib_prefix=no
  9385. need_version=no
  9386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9387. soname_spec='${libname}${release}${shared_ext}$major'
  9388. shlibpath_var=LD_LIBRARY_PATH
  9389. shlibpath_overrides_runpath=yes
  9390. hardcode_into_libs=yes
  9391. if test "$with_gnu_ld" = yes; then
  9392. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9393. else
  9394. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9395. case $host_os in
  9396. sco3.2v5*)
  9397. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9398. ;;
  9399. esac
  9400. fi
  9401. sys_lib_dlsearch_path_spec='/usr/lib'
  9402. ;;
  9403. tpf*)
  9404. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9405. version_type=linux
  9406. need_lib_prefix=no
  9407. need_version=no
  9408. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9409. shlibpath_var=LD_LIBRARY_PATH
  9410. shlibpath_overrides_runpath=no
  9411. hardcode_into_libs=yes
  9412. ;;
  9413. uts4*)
  9414. version_type=linux
  9415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9416. soname_spec='${libname}${release}${shared_ext}$major'
  9417. shlibpath_var=LD_LIBRARY_PATH
  9418. ;;
  9419. *)
  9420. dynamic_linker=no
  9421. ;;
  9422. esac
  9423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9424. $as_echo "$dynamic_linker" >&6; }
  9425. test "$dynamic_linker" = no && can_build_shared=no
  9426. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9427. if test "$GCC" = yes; then
  9428. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9429. fi
  9430. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9431. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9432. fi
  9433. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9434. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9435. fi
  9436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9437. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9438. hardcode_action=
  9439. if test -n "$hardcode_libdir_flag_spec" ||
  9440. test -n "$runpath_var" ||
  9441. test "X$hardcode_automatic" = "Xyes" ; then
  9442. # We can hardcode non-existent directories.
  9443. if test "$hardcode_direct" != no &&
  9444. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9445. # have to relink, otherwise we might link with an installed library
  9446. # when we should be linking with a yet-to-be-installed one
  9447. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9448. test "$hardcode_minus_L" != no; then
  9449. # Linking always hardcodes the temporary library directory.
  9450. hardcode_action=relink
  9451. else
  9452. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9453. hardcode_action=immediate
  9454. fi
  9455. else
  9456. # We cannot hardcode anything, or else we can only hardcode existing
  9457. # directories.
  9458. hardcode_action=unsupported
  9459. fi
  9460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9461. $as_echo "$hardcode_action" >&6; }
  9462. if test "$hardcode_action" = relink ||
  9463. test "$inherit_rpath" = yes; then
  9464. # Fast installation is not supported
  9465. enable_fast_install=no
  9466. elif test "$shlibpath_overrides_runpath" = yes ||
  9467. test "$enable_shared" = no; then
  9468. # Fast installation is not necessary
  9469. enable_fast_install=needless
  9470. fi
  9471. if test "x$enable_dlopen" != xyes; then
  9472. enable_dlopen=unknown
  9473. enable_dlopen_self=unknown
  9474. enable_dlopen_self_static=unknown
  9475. else
  9476. lt_cv_dlopen=no
  9477. lt_cv_dlopen_libs=
  9478. case $host_os in
  9479. beos*)
  9480. lt_cv_dlopen="load_add_on"
  9481. lt_cv_dlopen_libs=
  9482. lt_cv_dlopen_self=yes
  9483. ;;
  9484. mingw* | pw32* | cegcc*)
  9485. lt_cv_dlopen="LoadLibrary"
  9486. lt_cv_dlopen_libs=
  9487. ;;
  9488. cygwin*)
  9489. lt_cv_dlopen="dlopen"
  9490. lt_cv_dlopen_libs=
  9491. ;;
  9492. darwin*)
  9493. # if libdl is installed we need to link against it
  9494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9495. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9496. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9497. $as_echo_n "(cached) " >&6
  9498. else
  9499. ac_check_lib_save_LIBS=$LIBS
  9500. LIBS="-ldl $LIBS"
  9501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9502. /* end confdefs.h. */
  9503. /* Override any GCC internal prototype to avoid an error.
  9504. Use char because int might match the return type of a GCC
  9505. builtin and then its argument prototype would still apply. */
  9506. #ifdef __cplusplus
  9507. extern "C"
  9508. #endif
  9509. char dlopen ();
  9510. int
  9511. main ()
  9512. {
  9513. return dlopen ();
  9514. ;
  9515. return 0;
  9516. }
  9517. _ACEOF
  9518. if ac_fn_c_try_link "$LINENO"; then :
  9519. ac_cv_lib_dl_dlopen=yes
  9520. else
  9521. ac_cv_lib_dl_dlopen=no
  9522. fi
  9523. rm -f core conftest.err conftest.$ac_objext \
  9524. conftest$ac_exeext conftest.$ac_ext
  9525. LIBS=$ac_check_lib_save_LIBS
  9526. fi
  9527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9528. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9529. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9530. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9531. else
  9532. lt_cv_dlopen="dyld"
  9533. lt_cv_dlopen_libs=
  9534. lt_cv_dlopen_self=yes
  9535. fi
  9536. ;;
  9537. *)
  9538. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9539. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9540. lt_cv_dlopen="shl_load"
  9541. else
  9542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9543. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9544. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9545. $as_echo_n "(cached) " >&6
  9546. else
  9547. ac_check_lib_save_LIBS=$LIBS
  9548. LIBS="-ldld $LIBS"
  9549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9550. /* end confdefs.h. */
  9551. /* Override any GCC internal prototype to avoid an error.
  9552. Use char because int might match the return type of a GCC
  9553. builtin and then its argument prototype would still apply. */
  9554. #ifdef __cplusplus
  9555. extern "C"
  9556. #endif
  9557. char shl_load ();
  9558. int
  9559. main ()
  9560. {
  9561. return shl_load ();
  9562. ;
  9563. return 0;
  9564. }
  9565. _ACEOF
  9566. if ac_fn_c_try_link "$LINENO"; then :
  9567. ac_cv_lib_dld_shl_load=yes
  9568. else
  9569. ac_cv_lib_dld_shl_load=no
  9570. fi
  9571. rm -f core conftest.err conftest.$ac_objext \
  9572. conftest$ac_exeext conftest.$ac_ext
  9573. LIBS=$ac_check_lib_save_LIBS
  9574. fi
  9575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9576. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9577. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9578. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9579. else
  9580. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9581. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9582. lt_cv_dlopen="dlopen"
  9583. else
  9584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9585. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9586. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9587. $as_echo_n "(cached) " >&6
  9588. else
  9589. ac_check_lib_save_LIBS=$LIBS
  9590. LIBS="-ldl $LIBS"
  9591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9592. /* end confdefs.h. */
  9593. /* Override any GCC internal prototype to avoid an error.
  9594. Use char because int might match the return type of a GCC
  9595. builtin and then its argument prototype would still apply. */
  9596. #ifdef __cplusplus
  9597. extern "C"
  9598. #endif
  9599. char dlopen ();
  9600. int
  9601. main ()
  9602. {
  9603. return dlopen ();
  9604. ;
  9605. return 0;
  9606. }
  9607. _ACEOF
  9608. if ac_fn_c_try_link "$LINENO"; then :
  9609. ac_cv_lib_dl_dlopen=yes
  9610. else
  9611. ac_cv_lib_dl_dlopen=no
  9612. fi
  9613. rm -f core conftest.err conftest.$ac_objext \
  9614. conftest$ac_exeext conftest.$ac_ext
  9615. LIBS=$ac_check_lib_save_LIBS
  9616. fi
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9618. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9619. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9620. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9621. else
  9622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9623. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9624. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9625. $as_echo_n "(cached) " >&6
  9626. else
  9627. ac_check_lib_save_LIBS=$LIBS
  9628. LIBS="-lsvld $LIBS"
  9629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9630. /* end confdefs.h. */
  9631. /* Override any GCC internal prototype to avoid an error.
  9632. Use char because int might match the return type of a GCC
  9633. builtin and then its argument prototype would still apply. */
  9634. #ifdef __cplusplus
  9635. extern "C"
  9636. #endif
  9637. char dlopen ();
  9638. int
  9639. main ()
  9640. {
  9641. return dlopen ();
  9642. ;
  9643. return 0;
  9644. }
  9645. _ACEOF
  9646. if ac_fn_c_try_link "$LINENO"; then :
  9647. ac_cv_lib_svld_dlopen=yes
  9648. else
  9649. ac_cv_lib_svld_dlopen=no
  9650. fi
  9651. rm -f core conftest.err conftest.$ac_objext \
  9652. conftest$ac_exeext conftest.$ac_ext
  9653. LIBS=$ac_check_lib_save_LIBS
  9654. fi
  9655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9656. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9657. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9658. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9659. else
  9660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9661. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9662. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9663. $as_echo_n "(cached) " >&6
  9664. else
  9665. ac_check_lib_save_LIBS=$LIBS
  9666. LIBS="-ldld $LIBS"
  9667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9668. /* end confdefs.h. */
  9669. /* Override any GCC internal prototype to avoid an error.
  9670. Use char because int might match the return type of a GCC
  9671. builtin and then its argument prototype would still apply. */
  9672. #ifdef __cplusplus
  9673. extern "C"
  9674. #endif
  9675. char dld_link ();
  9676. int
  9677. main ()
  9678. {
  9679. return dld_link ();
  9680. ;
  9681. return 0;
  9682. }
  9683. _ACEOF
  9684. if ac_fn_c_try_link "$LINENO"; then :
  9685. ac_cv_lib_dld_dld_link=yes
  9686. else
  9687. ac_cv_lib_dld_dld_link=no
  9688. fi
  9689. rm -f core conftest.err conftest.$ac_objext \
  9690. conftest$ac_exeext conftest.$ac_ext
  9691. LIBS=$ac_check_lib_save_LIBS
  9692. fi
  9693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9694. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9695. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9696. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9697. fi
  9698. fi
  9699. fi
  9700. fi
  9701. fi
  9702. fi
  9703. ;;
  9704. esac
  9705. if test "x$lt_cv_dlopen" != xno; then
  9706. enable_dlopen=yes
  9707. else
  9708. enable_dlopen=no
  9709. fi
  9710. case $lt_cv_dlopen in
  9711. dlopen)
  9712. save_CPPFLAGS="$CPPFLAGS"
  9713. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9714. save_LDFLAGS="$LDFLAGS"
  9715. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9716. save_LIBS="$LIBS"
  9717. LIBS="$lt_cv_dlopen_libs $LIBS"
  9718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9719. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9720. if test "${lt_cv_dlopen_self+set}" = set; then :
  9721. $as_echo_n "(cached) " >&6
  9722. else
  9723. if test "$cross_compiling" = yes; then :
  9724. lt_cv_dlopen_self=cross
  9725. else
  9726. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9727. lt_status=$lt_dlunknown
  9728. cat > conftest.$ac_ext <<_LT_EOF
  9729. #line 11291 "configure"
  9730. #include "confdefs.h"
  9731. #if HAVE_DLFCN_H
  9732. #include <dlfcn.h>
  9733. #endif
  9734. #include <stdio.h>
  9735. #ifdef RTLD_GLOBAL
  9736. # define LT_DLGLOBAL RTLD_GLOBAL
  9737. #else
  9738. # ifdef DL_GLOBAL
  9739. # define LT_DLGLOBAL DL_GLOBAL
  9740. # else
  9741. # define LT_DLGLOBAL 0
  9742. # endif
  9743. #endif
  9744. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9745. find out it does not work in some platform. */
  9746. #ifndef LT_DLLAZY_OR_NOW
  9747. # ifdef RTLD_LAZY
  9748. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9749. # else
  9750. # ifdef DL_LAZY
  9751. # define LT_DLLAZY_OR_NOW DL_LAZY
  9752. # else
  9753. # ifdef RTLD_NOW
  9754. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9755. # else
  9756. # ifdef DL_NOW
  9757. # define LT_DLLAZY_OR_NOW DL_NOW
  9758. # else
  9759. # define LT_DLLAZY_OR_NOW 0
  9760. # endif
  9761. # endif
  9762. # endif
  9763. # endif
  9764. #endif
  9765. void fnord() { int i=42;}
  9766. int main ()
  9767. {
  9768. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9769. int status = $lt_dlunknown;
  9770. if (self)
  9771. {
  9772. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9773. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9774. /* dlclose (self); */
  9775. }
  9776. else
  9777. puts (dlerror ());
  9778. return status;
  9779. }
  9780. _LT_EOF
  9781. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9782. (eval $ac_link) 2>&5
  9783. ac_status=$?
  9784. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9785. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9786. (./conftest; exit; ) >&5 2>/dev/null
  9787. lt_status=$?
  9788. case x$lt_status in
  9789. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9790. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9791. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9792. esac
  9793. else :
  9794. # compilation failed
  9795. lt_cv_dlopen_self=no
  9796. fi
  9797. fi
  9798. rm -fr conftest*
  9799. fi
  9800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9801. $as_echo "$lt_cv_dlopen_self" >&6; }
  9802. if test "x$lt_cv_dlopen_self" = xyes; then
  9803. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9805. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9806. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9807. $as_echo_n "(cached) " >&6
  9808. else
  9809. if test "$cross_compiling" = yes; then :
  9810. lt_cv_dlopen_self_static=cross
  9811. else
  9812. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9813. lt_status=$lt_dlunknown
  9814. cat > conftest.$ac_ext <<_LT_EOF
  9815. #line 11387 "configure"
  9816. #include "confdefs.h"
  9817. #if HAVE_DLFCN_H
  9818. #include <dlfcn.h>
  9819. #endif
  9820. #include <stdio.h>
  9821. #ifdef RTLD_GLOBAL
  9822. # define LT_DLGLOBAL RTLD_GLOBAL
  9823. #else
  9824. # ifdef DL_GLOBAL
  9825. # define LT_DLGLOBAL DL_GLOBAL
  9826. # else
  9827. # define LT_DLGLOBAL 0
  9828. # endif
  9829. #endif
  9830. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9831. find out it does not work in some platform. */
  9832. #ifndef LT_DLLAZY_OR_NOW
  9833. # ifdef RTLD_LAZY
  9834. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9835. # else
  9836. # ifdef DL_LAZY
  9837. # define LT_DLLAZY_OR_NOW DL_LAZY
  9838. # else
  9839. # ifdef RTLD_NOW
  9840. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9841. # else
  9842. # ifdef DL_NOW
  9843. # define LT_DLLAZY_OR_NOW DL_NOW
  9844. # else
  9845. # define LT_DLLAZY_OR_NOW 0
  9846. # endif
  9847. # endif
  9848. # endif
  9849. # endif
  9850. #endif
  9851. void fnord() { int i=42;}
  9852. int main ()
  9853. {
  9854. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9855. int status = $lt_dlunknown;
  9856. if (self)
  9857. {
  9858. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9859. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9860. /* dlclose (self); */
  9861. }
  9862. else
  9863. puts (dlerror ());
  9864. return status;
  9865. }
  9866. _LT_EOF
  9867. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9868. (eval $ac_link) 2>&5
  9869. ac_status=$?
  9870. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9871. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9872. (./conftest; exit; ) >&5 2>/dev/null
  9873. lt_status=$?
  9874. case x$lt_status in
  9875. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9876. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9877. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9878. esac
  9879. else :
  9880. # compilation failed
  9881. lt_cv_dlopen_self_static=no
  9882. fi
  9883. fi
  9884. rm -fr conftest*
  9885. fi
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9887. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9888. fi
  9889. CPPFLAGS="$save_CPPFLAGS"
  9890. LDFLAGS="$save_LDFLAGS"
  9891. LIBS="$save_LIBS"
  9892. ;;
  9893. esac
  9894. case $lt_cv_dlopen_self in
  9895. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9896. *) enable_dlopen_self=unknown ;;
  9897. esac
  9898. case $lt_cv_dlopen_self_static in
  9899. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9900. *) enable_dlopen_self_static=unknown ;;
  9901. esac
  9902. fi
  9903. striplib=
  9904. old_striplib=
  9905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9906. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9907. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9908. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9909. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9911. $as_echo "yes" >&6; }
  9912. else
  9913. # FIXME - insert some real tests, host_os isn't really good enough
  9914. case $host_os in
  9915. darwin*)
  9916. if test -n "$STRIP" ; then
  9917. striplib="$STRIP -x"
  9918. old_striplib="$STRIP -S"
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9920. $as_echo "yes" >&6; }
  9921. else
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9923. $as_echo "no" >&6; }
  9924. fi
  9925. ;;
  9926. *)
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9928. $as_echo "no" >&6; }
  9929. ;;
  9930. esac
  9931. fi
  9932. # Report which library types will actually be built
  9933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9934. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9936. $as_echo "$can_build_shared" >&6; }
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9938. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9939. test "$can_build_shared" = "no" && enable_shared=no
  9940. # On AIX, shared libraries and static libraries use the same namespace, and
  9941. # are all built from PIC.
  9942. case $host_os in
  9943. aix3*)
  9944. test "$enable_shared" = yes && enable_static=no
  9945. if test -n "$RANLIB"; then
  9946. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9947. postinstall_cmds='$RANLIB $lib'
  9948. fi
  9949. ;;
  9950. aix[4-9]*)
  9951. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9952. test "$enable_shared" = yes && enable_static=no
  9953. fi
  9954. ;;
  9955. esac
  9956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9957. $as_echo "$enable_shared" >&6; }
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9959. $as_echo_n "checking whether to build static libraries... " >&6; }
  9960. # Make sure either enable_shared or enable_static is yes.
  9961. test "$enable_shared" = yes || enable_static=yes
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9963. $as_echo "$enable_static" >&6; }
  9964. fi
  9965. ac_ext=c
  9966. ac_cpp='$CPP $CPPFLAGS'
  9967. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9968. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9969. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9970. CC="$lt_save_CC"
  9971. ac_ext=cpp
  9972. ac_cpp='$CXXCPP $CPPFLAGS'
  9973. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9974. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9975. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9976. archive_cmds_need_lc_CXX=no
  9977. allow_undefined_flag_CXX=
  9978. always_export_symbols_CXX=no
  9979. archive_expsym_cmds_CXX=
  9980. compiler_needs_object_CXX=no
  9981. export_dynamic_flag_spec_CXX=
  9982. hardcode_direct_CXX=no
  9983. hardcode_direct_absolute_CXX=no
  9984. hardcode_libdir_flag_spec_CXX=
  9985. hardcode_libdir_flag_spec_ld_CXX=
  9986. hardcode_libdir_separator_CXX=
  9987. hardcode_minus_L_CXX=no
  9988. hardcode_shlibpath_var_CXX=unsupported
  9989. hardcode_automatic_CXX=no
  9990. inherit_rpath_CXX=no
  9991. module_cmds_CXX=
  9992. module_expsym_cmds_CXX=
  9993. link_all_deplibs_CXX=unknown
  9994. old_archive_cmds_CXX=$old_archive_cmds
  9995. no_undefined_flag_CXX=
  9996. whole_archive_flag_spec_CXX=
  9997. enable_shared_with_static_runtimes_CXX=no
  9998. # Source file extension for C++ test sources.
  9999. ac_ext=cpp
  10000. # Object file extension for compiled C++ test sources.
  10001. objext=o
  10002. objext_CXX=$objext
  10003. # No sense in running all these tests if we already determined that
  10004. # the CXX compiler isn't working. Some variables (like enable_shared)
  10005. # are currently assumed to apply to all compilers on this platform,
  10006. # and will be corrupted by setting them based on a non-working compiler.
  10007. if test "$_lt_caught_CXX_error" != yes; then
  10008. # Code to be used in simple compile tests
  10009. lt_simple_compile_test_code="int some_variable = 0;"
  10010. # Code to be used in simple link tests
  10011. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10012. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10013. # If no C compiler was specified, use CC.
  10014. LTCC=${LTCC-"$CC"}
  10015. # If no C compiler flags were specified, use CFLAGS.
  10016. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10017. # Allow CC to be a program name with arguments.
  10018. compiler=$CC
  10019. # save warnings/boilerplate of simple test code
  10020. ac_outfile=conftest.$ac_objext
  10021. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10022. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10023. _lt_compiler_boilerplate=`cat conftest.err`
  10024. $RM conftest*
  10025. ac_outfile=conftest.$ac_objext
  10026. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10027. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10028. _lt_linker_boilerplate=`cat conftest.err`
  10029. $RM -r conftest*
  10030. # Allow CC to be a program name with arguments.
  10031. lt_save_CC=$CC
  10032. lt_save_LD=$LD
  10033. lt_save_GCC=$GCC
  10034. GCC=$GXX
  10035. lt_save_with_gnu_ld=$with_gnu_ld
  10036. lt_save_path_LD=$lt_cv_path_LD
  10037. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10038. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10039. else
  10040. $as_unset lt_cv_prog_gnu_ld
  10041. fi
  10042. if test -n "${lt_cv_path_LDCXX+set}"; then
  10043. lt_cv_path_LD=$lt_cv_path_LDCXX
  10044. else
  10045. $as_unset lt_cv_path_LD
  10046. fi
  10047. test -z "${LDCXX+set}" || LD=$LDCXX
  10048. CC=${CXX-"c++"}
  10049. compiler=$CC
  10050. compiler_CXX=$CC
  10051. for cc_temp in $compiler""; do
  10052. case $cc_temp in
  10053. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10054. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10055. \-*) ;;
  10056. *) break;;
  10057. esac
  10058. done
  10059. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10060. if test -n "$compiler"; then
  10061. # We don't want -fno-exception when compiling C++ code, so set the
  10062. # no_builtin_flag separately
  10063. if test "$GXX" = yes; then
  10064. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10065. else
  10066. lt_prog_compiler_no_builtin_flag_CXX=
  10067. fi
  10068. if test "$GXX" = yes; then
  10069. # Set up default GNU C++ configuration
  10070. # Check whether --with-gnu-ld was given.
  10071. if test "${with_gnu_ld+set}" = set; then :
  10072. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10073. else
  10074. with_gnu_ld=no
  10075. fi
  10076. ac_prog=ld
  10077. if test "$GCC" = yes; then
  10078. # Check if gcc -print-prog-name=ld gives a path.
  10079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10080. $as_echo_n "checking for ld used by $CC... " >&6; }
  10081. case $host in
  10082. *-*-mingw*)
  10083. # gcc leaves a trailing carriage return which upsets mingw
  10084. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10085. *)
  10086. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10087. esac
  10088. case $ac_prog in
  10089. # Accept absolute paths.
  10090. [\\/]* | ?:[\\/]*)
  10091. re_direlt='/[^/][^/]*/\.\./'
  10092. # Canonicalize the pathname of ld
  10093. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10094. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10095. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10096. done
  10097. test -z "$LD" && LD="$ac_prog"
  10098. ;;
  10099. "")
  10100. # If it fails, then pretend we aren't using GCC.
  10101. ac_prog=ld
  10102. ;;
  10103. *)
  10104. # If it is relative, then search for the first ld in PATH.
  10105. with_gnu_ld=unknown
  10106. ;;
  10107. esac
  10108. elif test "$with_gnu_ld" = yes; then
  10109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10110. $as_echo_n "checking for GNU ld... " >&6; }
  10111. else
  10112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10113. $as_echo_n "checking for non-GNU ld... " >&6; }
  10114. fi
  10115. if test "${lt_cv_path_LD+set}" = set; then :
  10116. $as_echo_n "(cached) " >&6
  10117. else
  10118. if test -z "$LD"; then
  10119. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10120. for ac_dir in $PATH; do
  10121. IFS="$lt_save_ifs"
  10122. test -z "$ac_dir" && ac_dir=.
  10123. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10124. lt_cv_path_LD="$ac_dir/$ac_prog"
  10125. # Check to see if the program is GNU ld. I'd rather use --version,
  10126. # but apparently some variants of GNU ld only accept -v.
  10127. # Break only if it was the GNU/non-GNU ld that we prefer.
  10128. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10129. *GNU* | *'with BFD'*)
  10130. test "$with_gnu_ld" != no && break
  10131. ;;
  10132. *)
  10133. test "$with_gnu_ld" != yes && break
  10134. ;;
  10135. esac
  10136. fi
  10137. done
  10138. IFS="$lt_save_ifs"
  10139. else
  10140. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10141. fi
  10142. fi
  10143. LD="$lt_cv_path_LD"
  10144. if test -n "$LD"; then
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10146. $as_echo "$LD" >&6; }
  10147. else
  10148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10149. $as_echo "no" >&6; }
  10150. fi
  10151. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10153. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10154. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10155. $as_echo_n "(cached) " >&6
  10156. else
  10157. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10158. case `$LD -v 2>&1 </dev/null` in
  10159. *GNU* | *'with BFD'*)
  10160. lt_cv_prog_gnu_ld=yes
  10161. ;;
  10162. *)
  10163. lt_cv_prog_gnu_ld=no
  10164. ;;
  10165. esac
  10166. fi
  10167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10168. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10169. with_gnu_ld=$lt_cv_prog_gnu_ld
  10170. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10171. # archiving commands below assume that GNU ld is being used.
  10172. if test "$with_gnu_ld" = yes; then
  10173. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10174. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10175. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10176. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10177. # If archive_cmds runs LD, not CC, wlarc should be empty
  10178. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10179. # investigate it a little bit more. (MM)
  10180. wlarc='${wl}'
  10181. # ancient GNU ld didn't support --whole-archive et. al.
  10182. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10183. $GREP 'no-whole-archive' > /dev/null; then
  10184. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10185. else
  10186. whole_archive_flag_spec_CXX=
  10187. fi
  10188. else
  10189. with_gnu_ld=no
  10190. wlarc=
  10191. # A generic and very simple default shared library creation
  10192. # command for GNU C++ for the case where it uses the native
  10193. # linker, instead of GNU ld. If possible, this setting should
  10194. # overridden to take advantage of the native linker features on
  10195. # the platform it is being used on.
  10196. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10197. fi
  10198. # Commands to make compiler produce verbose output that lists
  10199. # what "hidden" libraries, object files and flags are used when
  10200. # linking a shared library.
  10201. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10202. else
  10203. GXX=no
  10204. with_gnu_ld=no
  10205. wlarc=
  10206. fi
  10207. # PORTME: fill in a description of your system's C++ link characteristics
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10209. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10210. ld_shlibs_CXX=yes
  10211. case $host_os in
  10212. aix3*)
  10213. # FIXME: insert proper C++ library support
  10214. ld_shlibs_CXX=no
  10215. ;;
  10216. aix[4-9]*)
  10217. if test "$host_cpu" = ia64; then
  10218. # On IA64, the linker does run time linking by default, so we don't
  10219. # have to do anything special.
  10220. aix_use_runtimelinking=no
  10221. exp_sym_flag='-Bexport'
  10222. no_entry_flag=""
  10223. else
  10224. aix_use_runtimelinking=no
  10225. # Test if we are trying to use run time linking or normal
  10226. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10227. # need to do runtime linking.
  10228. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10229. for ld_flag in $LDFLAGS; do
  10230. case $ld_flag in
  10231. *-brtl*)
  10232. aix_use_runtimelinking=yes
  10233. break
  10234. ;;
  10235. esac
  10236. done
  10237. ;;
  10238. esac
  10239. exp_sym_flag='-bexport'
  10240. no_entry_flag='-bnoentry'
  10241. fi
  10242. # When large executables or shared objects are built, AIX ld can
  10243. # have problems creating the table of contents. If linking a library
  10244. # or program results in "error TOC overflow" add -mminimal-toc to
  10245. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10246. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10247. archive_cmds_CXX=''
  10248. hardcode_direct_CXX=yes
  10249. hardcode_direct_absolute_CXX=yes
  10250. hardcode_libdir_separator_CXX=':'
  10251. link_all_deplibs_CXX=yes
  10252. file_list_spec_CXX='${wl}-f,'
  10253. if test "$GXX" = yes; then
  10254. case $host_os in aix4.[012]|aix4.[012].*)
  10255. # We only want to do this on AIX 4.2 and lower, the check
  10256. # below for broken collect2 doesn't work under 4.3+
  10257. collect2name=`${CC} -print-prog-name=collect2`
  10258. if test -f "$collect2name" &&
  10259. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10260. then
  10261. # We have reworked collect2
  10262. :
  10263. else
  10264. # We have old collect2
  10265. hardcode_direct_CXX=unsupported
  10266. # It fails to find uninstalled libraries when the uninstalled
  10267. # path is not listed in the libpath. Setting hardcode_minus_L
  10268. # to unsupported forces relinking
  10269. hardcode_minus_L_CXX=yes
  10270. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10271. hardcode_libdir_separator_CXX=
  10272. fi
  10273. esac
  10274. shared_flag='-shared'
  10275. if test "$aix_use_runtimelinking" = yes; then
  10276. shared_flag="$shared_flag "'${wl}-G'
  10277. fi
  10278. else
  10279. # not using gcc
  10280. if test "$host_cpu" = ia64; then
  10281. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10282. # chokes on -Wl,-G. The following line is correct:
  10283. shared_flag='-G'
  10284. else
  10285. if test "$aix_use_runtimelinking" = yes; then
  10286. shared_flag='${wl}-G'
  10287. else
  10288. shared_flag='${wl}-bM:SRE'
  10289. fi
  10290. fi
  10291. fi
  10292. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10293. # It seems that -bexpall does not export symbols beginning with
  10294. # underscore (_), so it is better to generate a list of symbols to
  10295. # export.
  10296. always_export_symbols_CXX=yes
  10297. if test "$aix_use_runtimelinking" = yes; then
  10298. # Warning - without using the other runtime loading flags (-brtl),
  10299. # -berok will link without error, but may produce a broken library.
  10300. allow_undefined_flag_CXX='-berok'
  10301. # Determine the default libpath from the value encoded in an empty
  10302. # executable.
  10303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10304. /* end confdefs.h. */
  10305. int
  10306. main ()
  10307. {
  10308. ;
  10309. return 0;
  10310. }
  10311. _ACEOF
  10312. if ac_fn_cxx_try_link "$LINENO"; then :
  10313. lt_aix_libpath_sed='
  10314. /Import File Strings/,/^$/ {
  10315. /^0/ {
  10316. s/^0 *\(.*\)$/\1/
  10317. p
  10318. }
  10319. }'
  10320. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10321. # Check for a 64-bit object if we didn't find anything.
  10322. if test -z "$aix_libpath"; then
  10323. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10324. fi
  10325. fi
  10326. rm -f core conftest.err conftest.$ac_objext \
  10327. conftest$ac_exeext conftest.$ac_ext
  10328. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10329. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10330. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10331. else
  10332. if test "$host_cpu" = ia64; then
  10333. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10334. allow_undefined_flag_CXX="-z nodefs"
  10335. archive_expsym_cmds_CXX="\$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"
  10336. else
  10337. # Determine the default libpath from the value encoded in an
  10338. # empty executable.
  10339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10340. /* end confdefs.h. */
  10341. int
  10342. main ()
  10343. {
  10344. ;
  10345. return 0;
  10346. }
  10347. _ACEOF
  10348. if ac_fn_cxx_try_link "$LINENO"; then :
  10349. lt_aix_libpath_sed='
  10350. /Import File Strings/,/^$/ {
  10351. /^0/ {
  10352. s/^0 *\(.*\)$/\1/
  10353. p
  10354. }
  10355. }'
  10356. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10357. # Check for a 64-bit object if we didn't find anything.
  10358. if test -z "$aix_libpath"; then
  10359. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10360. fi
  10361. fi
  10362. rm -f core conftest.err conftest.$ac_objext \
  10363. conftest$ac_exeext conftest.$ac_ext
  10364. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10365. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10366. # Warning - without using the other run time loading flags,
  10367. # -berok will link without error, but may produce a broken library.
  10368. no_undefined_flag_CXX=' ${wl}-bernotok'
  10369. allow_undefined_flag_CXX=' ${wl}-berok'
  10370. # Exported symbols can be pulled into shared objects from archives
  10371. whole_archive_flag_spec_CXX='$convenience'
  10372. archive_cmds_need_lc_CXX=yes
  10373. # This is similar to how AIX traditionally builds its shared
  10374. # libraries.
  10375. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10376. fi
  10377. fi
  10378. ;;
  10379. beos*)
  10380. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10381. allow_undefined_flag_CXX=unsupported
  10382. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10383. # support --undefined. This deserves some investigation. FIXME
  10384. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10385. else
  10386. ld_shlibs_CXX=no
  10387. fi
  10388. ;;
  10389. chorus*)
  10390. case $cc_basename in
  10391. *)
  10392. # FIXME: insert proper C++ library support
  10393. ld_shlibs_CXX=no
  10394. ;;
  10395. esac
  10396. ;;
  10397. cygwin* | mingw* | pw32* | cegcc*)
  10398. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10399. # as there is no search path for DLLs.
  10400. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10401. allow_undefined_flag_CXX=unsupported
  10402. always_export_symbols_CXX=no
  10403. enable_shared_with_static_runtimes_CXX=yes
  10404. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10405. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10406. # If the export-symbols file already is a .def file (1st line
  10407. # is EXPORTS), use it as is; otherwise, prepend...
  10408. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10409. cp $export_symbols $output_objdir/$soname.def;
  10410. else
  10411. echo EXPORTS > $output_objdir/$soname.def;
  10412. cat $export_symbols >> $output_objdir/$soname.def;
  10413. fi~
  10414. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10415. else
  10416. ld_shlibs_CXX=no
  10417. fi
  10418. ;;
  10419. darwin* | rhapsody*)
  10420. archive_cmds_need_lc_CXX=no
  10421. hardcode_direct_CXX=no
  10422. hardcode_automatic_CXX=yes
  10423. hardcode_shlibpath_var_CXX=unsupported
  10424. whole_archive_flag_spec_CXX=''
  10425. link_all_deplibs_CXX=yes
  10426. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10427. case $cc_basename in
  10428. ifort*) _lt_dar_can_shared=yes ;;
  10429. *) _lt_dar_can_shared=$GCC ;;
  10430. esac
  10431. if test "$_lt_dar_can_shared" = "yes"; then
  10432. output_verbose_link_cmd=echo
  10433. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10434. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10435. archive_expsym_cmds_CXX="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}"
  10436. module_expsym_cmds_CXX="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}"
  10437. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10438. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  10439. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  10440. fi
  10441. else
  10442. ld_shlibs_CXX=no
  10443. fi
  10444. ;;
  10445. dgux*)
  10446. case $cc_basename in
  10447. ec++*)
  10448. # FIXME: insert proper C++ library support
  10449. ld_shlibs_CXX=no
  10450. ;;
  10451. ghcx*)
  10452. # Green Hills C++ Compiler
  10453. # FIXME: insert proper C++ library support
  10454. ld_shlibs_CXX=no
  10455. ;;
  10456. *)
  10457. # FIXME: insert proper C++ library support
  10458. ld_shlibs_CXX=no
  10459. ;;
  10460. esac
  10461. ;;
  10462. freebsd[12]*)
  10463. # C++ shared libraries reported to be fairly broken before
  10464. # switch to ELF
  10465. ld_shlibs_CXX=no
  10466. ;;
  10467. freebsd-elf*)
  10468. archive_cmds_need_lc_CXX=no
  10469. ;;
  10470. freebsd* | dragonfly*)
  10471. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10472. # conventions
  10473. ld_shlibs_CXX=yes
  10474. ;;
  10475. gnu*)
  10476. ;;
  10477. hpux9*)
  10478. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10479. hardcode_libdir_separator_CXX=:
  10480. export_dynamic_flag_spec_CXX='${wl}-E'
  10481. hardcode_direct_CXX=yes
  10482. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10483. # but as the default
  10484. # location of the library.
  10485. case $cc_basename in
  10486. CC*)
  10487. # FIXME: insert proper C++ library support
  10488. ld_shlibs_CXX=no
  10489. ;;
  10490. aCC*)
  10491. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10492. # Commands to make compiler produce verbose output that lists
  10493. # what "hidden" libraries, object files and flags are used when
  10494. # linking a shared library.
  10495. #
  10496. # There doesn't appear to be a way to prevent this compiler from
  10497. # explicitly linking system object files so we need to strip them
  10498. # from the output so that they don't get included in the library
  10499. # dependencies.
  10500. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10501. ;;
  10502. *)
  10503. if test "$GXX" = yes; then
  10504. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10505. else
  10506. # FIXME: insert proper C++ library support
  10507. ld_shlibs_CXX=no
  10508. fi
  10509. ;;
  10510. esac
  10511. ;;
  10512. hpux10*|hpux11*)
  10513. if test $with_gnu_ld = no; then
  10514. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10515. hardcode_libdir_separator_CXX=:
  10516. case $host_cpu in
  10517. hppa*64*|ia64*)
  10518. ;;
  10519. *)
  10520. export_dynamic_flag_spec_CXX='${wl}-E'
  10521. ;;
  10522. esac
  10523. fi
  10524. case $host_cpu in
  10525. hppa*64*|ia64*)
  10526. hardcode_direct_CXX=no
  10527. hardcode_shlibpath_var_CXX=no
  10528. ;;
  10529. *)
  10530. hardcode_direct_CXX=yes
  10531. hardcode_direct_absolute_CXX=yes
  10532. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10533. # but as the default
  10534. # location of the library.
  10535. ;;
  10536. esac
  10537. case $cc_basename in
  10538. CC*)
  10539. # FIXME: insert proper C++ library support
  10540. ld_shlibs_CXX=no
  10541. ;;
  10542. aCC*)
  10543. case $host_cpu in
  10544. hppa*64*)
  10545. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10546. ;;
  10547. ia64*)
  10548. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10549. ;;
  10550. *)
  10551. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10552. ;;
  10553. esac
  10554. # Commands to make compiler produce verbose output that lists
  10555. # what "hidden" libraries, object files and flags are used when
  10556. # linking a shared library.
  10557. #
  10558. # There doesn't appear to be a way to prevent this compiler from
  10559. # explicitly linking system object files so we need to strip them
  10560. # from the output so that they don't get included in the library
  10561. # dependencies.
  10562. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10563. ;;
  10564. *)
  10565. if test "$GXX" = yes; then
  10566. if test $with_gnu_ld = no; then
  10567. case $host_cpu in
  10568. hppa*64*)
  10569. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10570. ;;
  10571. ia64*)
  10572. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10573. ;;
  10574. *)
  10575. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10576. ;;
  10577. esac
  10578. fi
  10579. else
  10580. # FIXME: insert proper C++ library support
  10581. ld_shlibs_CXX=no
  10582. fi
  10583. ;;
  10584. esac
  10585. ;;
  10586. interix[3-9]*)
  10587. hardcode_direct_CXX=no
  10588. hardcode_shlibpath_var_CXX=no
  10589. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10590. export_dynamic_flag_spec_CXX='${wl}-E'
  10591. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10592. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10593. # default) and relocated if they conflict, which is a slow very memory
  10594. # consuming and fragmenting process. To avoid this, we pick a random,
  10595. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10596. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10597. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10598. archive_expsym_cmds_CXX='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'
  10599. ;;
  10600. irix5* | irix6*)
  10601. case $cc_basename in
  10602. CC*)
  10603. # SGI C++
  10604. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10605. # Archives containing C++ object files must be created using
  10606. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10607. # necessary to make sure instantiated templates are included
  10608. # in the archive.
  10609. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10610. ;;
  10611. *)
  10612. if test "$GXX" = yes; then
  10613. if test "$with_gnu_ld" = no; then
  10614. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10615. else
  10616. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10617. fi
  10618. fi
  10619. link_all_deplibs_CXX=yes
  10620. ;;
  10621. esac
  10622. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10623. hardcode_libdir_separator_CXX=:
  10624. inherit_rpath_CXX=yes
  10625. ;;
  10626. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10627. case $cc_basename in
  10628. KCC*)
  10629. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10630. # KCC will only create a shared library if the output file
  10631. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10632. # to its proper name (with version) after linking.
  10633. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10634. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10635. # Commands to make compiler produce verbose output that lists
  10636. # what "hidden" libraries, object files and flags are used when
  10637. # linking a shared library.
  10638. #
  10639. # There doesn't appear to be a way to prevent this compiler from
  10640. # explicitly linking system object files so we need to strip them
  10641. # from the output so that they don't get included in the library
  10642. # dependencies.
  10643. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10644. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10645. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10646. # Archives containing C++ object files must be created using
  10647. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10648. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10649. ;;
  10650. icpc* | ecpc* )
  10651. # Intel C++
  10652. with_gnu_ld=yes
  10653. # version 8.0 and above of icpc choke on multiply defined symbols
  10654. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10655. # earlier do not add the objects themselves.
  10656. case `$CC -V 2>&1` in
  10657. *"Version 7."*)
  10658. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10659. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10660. ;;
  10661. *) # Version 8.0 or newer
  10662. tmp_idyn=
  10663. case $host_cpu in
  10664. ia64*) tmp_idyn=' -i_dynamic';;
  10665. esac
  10666. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10667. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10668. ;;
  10669. esac
  10670. archive_cmds_need_lc_CXX=no
  10671. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10672. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10673. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10674. ;;
  10675. pgCC* | pgcpp*)
  10676. # Portland Group C++ compiler
  10677. case `$CC -V` in
  10678. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10679. prelink_cmds_CXX='tpldir=Template.dir~
  10680. rm -rf $tpldir~
  10681. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10682. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10683. old_archive_cmds_CXX='tpldir=Template.dir~
  10684. rm -rf $tpldir~
  10685. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10686. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10687. $RANLIB $oldlib'
  10688. archive_cmds_CXX='tpldir=Template.dir~
  10689. rm -rf $tpldir~
  10690. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10691. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10692. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10693. rm -rf $tpldir~
  10694. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10695. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10696. ;;
  10697. *) # Version 6 will use weak symbols
  10698. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10699. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10700. ;;
  10701. esac
  10702. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10703. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10704. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10705. ;;
  10706. cxx*)
  10707. # Compaq C++
  10708. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10709. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  10710. runpath_var=LD_RUN_PATH
  10711. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10712. hardcode_libdir_separator_CXX=:
  10713. # Commands to make compiler produce verbose output that lists
  10714. # what "hidden" libraries, object files and flags are used when
  10715. # linking a shared library.
  10716. #
  10717. # There doesn't appear to be a way to prevent this compiler from
  10718. # explicitly linking system object files so we need to strip them
  10719. # from the output so that they don't get included in the library
  10720. # dependencies.
  10721. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10722. ;;
  10723. xl*)
  10724. # IBM XL 8.0 on PPC, with GNU ld
  10725. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10726. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10727. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10728. if test "x$supports_anon_versioning" = xyes; then
  10729. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10730. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10731. echo "local: *; };" >> $output_objdir/$libname.ver~
  10732. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10733. fi
  10734. ;;
  10735. *)
  10736. case `$CC -V 2>&1 | sed 5q` in
  10737. *Sun\ C*)
  10738. # Sun C++ 5.9
  10739. no_undefined_flag_CXX=' -zdefs'
  10740. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10741. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  10742. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10743. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10744. compiler_needs_object_CXX=yes
  10745. # Not sure whether something based on
  10746. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10747. # would be better.
  10748. output_verbose_link_cmd='echo'
  10749. # Archives containing C++ object files must be created using
  10750. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10751. # necessary to make sure instantiated templates are included
  10752. # in the archive.
  10753. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10754. ;;
  10755. esac
  10756. ;;
  10757. esac
  10758. ;;
  10759. lynxos*)
  10760. # FIXME: insert proper C++ library support
  10761. ld_shlibs_CXX=no
  10762. ;;
  10763. m88k*)
  10764. # FIXME: insert proper C++ library support
  10765. ld_shlibs_CXX=no
  10766. ;;
  10767. mvs*)
  10768. case $cc_basename in
  10769. cxx*)
  10770. # FIXME: insert proper C++ library support
  10771. ld_shlibs_CXX=no
  10772. ;;
  10773. *)
  10774. # FIXME: insert proper C++ library support
  10775. ld_shlibs_CXX=no
  10776. ;;
  10777. esac
  10778. ;;
  10779. netbsd*)
  10780. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10781. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10782. wlarc=
  10783. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10784. hardcode_direct_CXX=yes
  10785. hardcode_shlibpath_var_CXX=no
  10786. fi
  10787. # Workaround some broken pre-1.5 toolchains
  10788. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10789. ;;
  10790. *nto* | *qnx*)
  10791. ld_shlibs_CXX=yes
  10792. ;;
  10793. openbsd2*)
  10794. # C++ shared libraries are fairly broken
  10795. ld_shlibs_CXX=no
  10796. ;;
  10797. openbsd*)
  10798. if test -f /usr/libexec/ld.so; then
  10799. hardcode_direct_CXX=yes
  10800. hardcode_shlibpath_var_CXX=no
  10801. hardcode_direct_absolute_CXX=yes
  10802. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10803. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10804. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10805. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10806. export_dynamic_flag_spec_CXX='${wl}-E'
  10807. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10808. fi
  10809. output_verbose_link_cmd=echo
  10810. else
  10811. ld_shlibs_CXX=no
  10812. fi
  10813. ;;
  10814. osf3* | osf4* | osf5*)
  10815. case $cc_basename in
  10816. KCC*)
  10817. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10818. # KCC will only create a shared library if the output file
  10819. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10820. # to its proper name (with version) after linking.
  10821. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10822. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10823. hardcode_libdir_separator_CXX=:
  10824. # Archives containing C++ object files must be created using
  10825. # the KAI C++ compiler.
  10826. case $host in
  10827. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10828. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10829. esac
  10830. ;;
  10831. RCC*)
  10832. # Rational C++ 2.4.1
  10833. # FIXME: insert proper C++ library support
  10834. ld_shlibs_CXX=no
  10835. ;;
  10836. cxx*)
  10837. case $host in
  10838. osf3*)
  10839. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10840. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10841. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10842. ;;
  10843. *)
  10844. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10845. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10846. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10847. echo "-hidden">> $lib.exp~
  10848. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10849. $RM $lib.exp'
  10850. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10851. ;;
  10852. esac
  10853. hardcode_libdir_separator_CXX=:
  10854. # Commands to make compiler produce verbose output that lists
  10855. # what "hidden" libraries, object files and flags are used when
  10856. # linking a shared library.
  10857. #
  10858. # There doesn't appear to be a way to prevent this compiler from
  10859. # explicitly linking system object files so we need to strip them
  10860. # from the output so that they don't get included in the library
  10861. # dependencies.
  10862. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10863. ;;
  10864. *)
  10865. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10866. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10867. case $host in
  10868. osf3*)
  10869. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10870. ;;
  10871. *)
  10872. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10873. ;;
  10874. esac
  10875. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10876. hardcode_libdir_separator_CXX=:
  10877. # Commands to make compiler produce verbose output that lists
  10878. # what "hidden" libraries, object files and flags are used when
  10879. # linking a shared library.
  10880. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10881. else
  10882. # FIXME: insert proper C++ library support
  10883. ld_shlibs_CXX=no
  10884. fi
  10885. ;;
  10886. esac
  10887. ;;
  10888. psos*)
  10889. # FIXME: insert proper C++ library support
  10890. ld_shlibs_CXX=no
  10891. ;;
  10892. sunos4*)
  10893. case $cc_basename in
  10894. CC*)
  10895. # Sun C++ 4.x
  10896. # FIXME: insert proper C++ library support
  10897. ld_shlibs_CXX=no
  10898. ;;
  10899. lcc*)
  10900. # Lucid
  10901. # FIXME: insert proper C++ library support
  10902. ld_shlibs_CXX=no
  10903. ;;
  10904. *)
  10905. # FIXME: insert proper C++ library support
  10906. ld_shlibs_CXX=no
  10907. ;;
  10908. esac
  10909. ;;
  10910. solaris*)
  10911. case $cc_basename in
  10912. CC*)
  10913. # Sun C++ 4.2, 5.x and Centerline C++
  10914. archive_cmds_need_lc_CXX=yes
  10915. no_undefined_flag_CXX=' -zdefs'
  10916. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10917. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10918. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10919. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10920. hardcode_shlibpath_var_CXX=no
  10921. case $host_os in
  10922. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10923. *)
  10924. # The compiler driver will combine and reorder linker options,
  10925. # but understands `-z linker_flag'.
  10926. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10927. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10928. ;;
  10929. esac
  10930. link_all_deplibs_CXX=yes
  10931. output_verbose_link_cmd='echo'
  10932. # Archives containing C++ object files must be created using
  10933. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10934. # necessary to make sure instantiated templates are included
  10935. # in the archive.
  10936. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10937. ;;
  10938. gcx*)
  10939. # Green Hills C++ Compiler
  10940. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10941. # The C++ compiler must be used to create the archive.
  10942. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10943. ;;
  10944. *)
  10945. # GNU C++ compiler with Solaris linker
  10946. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10947. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10948. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10949. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10950. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10951. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10952. # Commands to make compiler produce verbose output that lists
  10953. # what "hidden" libraries, object files and flags are used when
  10954. # linking a shared library.
  10955. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10956. else
  10957. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10958. # platform.
  10959. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10960. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10961. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10962. # Commands to make compiler produce verbose output that lists
  10963. # what "hidden" libraries, object files and flags are used when
  10964. # linking a shared library.
  10965. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10966. fi
  10967. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10968. case $host_os in
  10969. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10970. *)
  10971. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10972. ;;
  10973. esac
  10974. fi
  10975. ;;
  10976. esac
  10977. ;;
  10978. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10979. no_undefined_flag_CXX='${wl}-z,text'
  10980. archive_cmds_need_lc_CXX=no
  10981. hardcode_shlibpath_var_CXX=no
  10982. runpath_var='LD_RUN_PATH'
  10983. case $cc_basename in
  10984. CC*)
  10985. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10986. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10987. ;;
  10988. *)
  10989. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10990. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10991. ;;
  10992. esac
  10993. ;;
  10994. sysv5* | sco3.2v5* | sco5v6*)
  10995. # Note: We can NOT use -z defs as we might desire, because we do not
  10996. # link with -lc, and that would cause any symbols used from libc to
  10997. # always be unresolved, which means just about no library would
  10998. # ever link correctly. If we're not using GNU ld we use -z text
  10999. # though, which does catch some bad symbols but isn't as heavy-handed
  11000. # as -z defs.
  11001. no_undefined_flag_CXX='${wl}-z,text'
  11002. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11003. archive_cmds_need_lc_CXX=no
  11004. hardcode_shlibpath_var_CXX=no
  11005. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11006. hardcode_libdir_separator_CXX=':'
  11007. link_all_deplibs_CXX=yes
  11008. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11009. runpath_var='LD_RUN_PATH'
  11010. case $cc_basename in
  11011. CC*)
  11012. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11013. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11014. ;;
  11015. *)
  11016. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11017. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11018. ;;
  11019. esac
  11020. ;;
  11021. tandem*)
  11022. case $cc_basename in
  11023. NCC*)
  11024. # NonStop-UX NCC 3.20
  11025. # FIXME: insert proper C++ library support
  11026. ld_shlibs_CXX=no
  11027. ;;
  11028. *)
  11029. # FIXME: insert proper C++ library support
  11030. ld_shlibs_CXX=no
  11031. ;;
  11032. esac
  11033. ;;
  11034. vxworks*)
  11035. # FIXME: insert proper C++ library support
  11036. ld_shlibs_CXX=no
  11037. ;;
  11038. *)
  11039. # FIXME: insert proper C++ library support
  11040. ld_shlibs_CXX=no
  11041. ;;
  11042. esac
  11043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11044. $as_echo "$ld_shlibs_CXX" >&6; }
  11045. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11046. GCC_CXX="$GXX"
  11047. LD_CXX="$LD"
  11048. ## CAVEAT EMPTOR:
  11049. ## There is no encapsulation within the following macros, do not change
  11050. ## the running order or otherwise move them around unless you know exactly
  11051. ## what you are doing...
  11052. # Dependencies to place before and after the object being linked:
  11053. predep_objects_CXX=
  11054. postdep_objects_CXX=
  11055. predeps_CXX=
  11056. postdeps_CXX=
  11057. compiler_lib_search_path_CXX=
  11058. cat > conftest.$ac_ext <<_LT_EOF
  11059. class Foo
  11060. {
  11061. public:
  11062. Foo (void) { a = 0; }
  11063. private:
  11064. int a;
  11065. };
  11066. _LT_EOF
  11067. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11068. (eval $ac_compile) 2>&5
  11069. ac_status=$?
  11070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11071. test $ac_status = 0; }; then
  11072. # Parse the compiler output and extract the necessary
  11073. # objects, libraries and library flags.
  11074. # Sentinel used to keep track of whether or not we are before
  11075. # the conftest object file.
  11076. pre_test_object_deps_done=no
  11077. for p in `eval "$output_verbose_link_cmd"`; do
  11078. case $p in
  11079. -L* | -R* | -l*)
  11080. # Some compilers place space between "-{L,R}" and the path.
  11081. # Remove the space.
  11082. if test $p = "-L" ||
  11083. test $p = "-R"; then
  11084. prev=$p
  11085. continue
  11086. else
  11087. prev=
  11088. fi
  11089. if test "$pre_test_object_deps_done" = no; then
  11090. case $p in
  11091. -L* | -R*)
  11092. # Internal compiler library paths should come after those
  11093. # provided the user. The postdeps already come after the
  11094. # user supplied libs so there is no need to process them.
  11095. if test -z "$compiler_lib_search_path_CXX"; then
  11096. compiler_lib_search_path_CXX="${prev}${p}"
  11097. else
  11098. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11099. fi
  11100. ;;
  11101. # The "-l" case would never come before the object being
  11102. # linked, so don't bother handling this case.
  11103. esac
  11104. else
  11105. if test -z "$postdeps_CXX"; then
  11106. postdeps_CXX="${prev}${p}"
  11107. else
  11108. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11109. fi
  11110. fi
  11111. ;;
  11112. *.$objext)
  11113. # This assumes that the test object file only shows up
  11114. # once in the compiler output.
  11115. if test "$p" = "conftest.$objext"; then
  11116. pre_test_object_deps_done=yes
  11117. continue
  11118. fi
  11119. if test "$pre_test_object_deps_done" = no; then
  11120. if test -z "$predep_objects_CXX"; then
  11121. predep_objects_CXX="$p"
  11122. else
  11123. predep_objects_CXX="$predep_objects_CXX $p"
  11124. fi
  11125. else
  11126. if test -z "$postdep_objects_CXX"; then
  11127. postdep_objects_CXX="$p"
  11128. else
  11129. postdep_objects_CXX="$postdep_objects_CXX $p"
  11130. fi
  11131. fi
  11132. ;;
  11133. *) ;; # Ignore the rest.
  11134. esac
  11135. done
  11136. # Clean up.
  11137. rm -f a.out a.exe
  11138. else
  11139. echo "libtool.m4: error: problem compiling CXX test program"
  11140. fi
  11141. $RM -f confest.$objext
  11142. # PORTME: override above test on systems where it is broken
  11143. case $host_os in
  11144. interix[3-9]*)
  11145. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11146. # hack all around it, let's just trust "g++" to DTRT.
  11147. predep_objects_CXX=
  11148. postdep_objects_CXX=
  11149. postdeps_CXX=
  11150. ;;
  11151. linux*)
  11152. case `$CC -V 2>&1 | sed 5q` in
  11153. *Sun\ C*)
  11154. # Sun C++ 5.9
  11155. # The more standards-conforming stlport4 library is
  11156. # incompatible with the Cstd library. Avoid specifying
  11157. # it if it's in CXXFLAGS. Ignore libCrun as
  11158. # -library=stlport4 depends on it.
  11159. case " $CXX $CXXFLAGS " in
  11160. *" -library=stlport4 "*)
  11161. solaris_use_stlport4=yes
  11162. ;;
  11163. esac
  11164. if test "$solaris_use_stlport4" != yes; then
  11165. postdeps_CXX='-library=Cstd -library=Crun'
  11166. fi
  11167. ;;
  11168. esac
  11169. ;;
  11170. solaris*)
  11171. case $cc_basename in
  11172. CC*)
  11173. # The more standards-conforming stlport4 library is
  11174. # incompatible with the Cstd library. Avoid specifying
  11175. # it if it's in CXXFLAGS. Ignore libCrun as
  11176. # -library=stlport4 depends on it.
  11177. case " $CXX $CXXFLAGS " in
  11178. *" -library=stlport4 "*)
  11179. solaris_use_stlport4=yes
  11180. ;;
  11181. esac
  11182. # Adding this requires a known-good setup of shared libraries for
  11183. # Sun compiler versions before 5.6, else PIC objects from an old
  11184. # archive will be linked into the output, leading to subtle bugs.
  11185. if test "$solaris_use_stlport4" != yes; then
  11186. postdeps_CXX='-library=Cstd -library=Crun'
  11187. fi
  11188. ;;
  11189. esac
  11190. ;;
  11191. esac
  11192. case " $postdeps_CXX " in
  11193. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11194. esac
  11195. compiler_lib_search_dirs_CXX=
  11196. if test -n "${compiler_lib_search_path_CXX}"; then
  11197. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11198. fi
  11199. lt_prog_compiler_wl_CXX=
  11200. lt_prog_compiler_pic_CXX=
  11201. lt_prog_compiler_static_CXX=
  11202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11203. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11204. # C++ specific cases for pic, static, wl, etc.
  11205. if test "$GXX" = yes; then
  11206. lt_prog_compiler_wl_CXX='-Wl,'
  11207. lt_prog_compiler_static_CXX='-static'
  11208. case $host_os in
  11209. aix*)
  11210. # All AIX code is PIC.
  11211. if test "$host_cpu" = ia64; then
  11212. # AIX 5 now supports IA64 processor
  11213. lt_prog_compiler_static_CXX='-Bstatic'
  11214. fi
  11215. ;;
  11216. amigaos*)
  11217. case $host_cpu in
  11218. powerpc)
  11219. # see comment about AmigaOS4 .so support
  11220. lt_prog_compiler_pic_CXX='-fPIC'
  11221. ;;
  11222. m68k)
  11223. # FIXME: we need at least 68020 code to build shared libraries, but
  11224. # adding the `-m68020' flag to GCC prevents building anything better,
  11225. # like `-m68040'.
  11226. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11227. ;;
  11228. esac
  11229. ;;
  11230. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11231. # PIC is the default for these OSes.
  11232. ;;
  11233. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11234. # This hack is so that the source file can tell whether it is being
  11235. # built for inclusion in a dll (and should export symbols for example).
  11236. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11237. # (--disable-auto-import) libraries
  11238. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11239. ;;
  11240. darwin* | rhapsody*)
  11241. # PIC is the default on this platform
  11242. # Common symbols not allowed in MH_DYLIB files
  11243. lt_prog_compiler_pic_CXX='-fno-common'
  11244. ;;
  11245. *djgpp*)
  11246. # DJGPP does not support shared libraries at all
  11247. lt_prog_compiler_pic_CXX=
  11248. ;;
  11249. interix[3-9]*)
  11250. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11251. # Instead, we relocate shared libraries at runtime.
  11252. ;;
  11253. sysv4*MP*)
  11254. if test -d /usr/nec; then
  11255. lt_prog_compiler_pic_CXX=-Kconform_pic
  11256. fi
  11257. ;;
  11258. hpux*)
  11259. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11260. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11261. # sets the default TLS model and affects inlining.
  11262. case $host_cpu in
  11263. hppa*64*)
  11264. ;;
  11265. *)
  11266. lt_prog_compiler_pic_CXX='-fPIC'
  11267. ;;
  11268. esac
  11269. ;;
  11270. *qnx* | *nto*)
  11271. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11272. # it will coredump.
  11273. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11274. ;;
  11275. *)
  11276. lt_prog_compiler_pic_CXX='-fPIC'
  11277. ;;
  11278. esac
  11279. else
  11280. case $host_os in
  11281. aix[4-9]*)
  11282. # All AIX code is PIC.
  11283. if test "$host_cpu" = ia64; then
  11284. # AIX 5 now supports IA64 processor
  11285. lt_prog_compiler_static_CXX='-Bstatic'
  11286. else
  11287. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11288. fi
  11289. ;;
  11290. chorus*)
  11291. case $cc_basename in
  11292. cxch68*)
  11293. # Green Hills C++ Compiler
  11294. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  11295. ;;
  11296. esac
  11297. ;;
  11298. dgux*)
  11299. case $cc_basename in
  11300. ec++*)
  11301. lt_prog_compiler_pic_CXX='-KPIC'
  11302. ;;
  11303. ghcx*)
  11304. # Green Hills C++ Compiler
  11305. lt_prog_compiler_pic_CXX='-pic'
  11306. ;;
  11307. *)
  11308. ;;
  11309. esac
  11310. ;;
  11311. freebsd* | dragonfly*)
  11312. # FreeBSD uses GNU C++
  11313. ;;
  11314. hpux9* | hpux10* | hpux11*)
  11315. case $cc_basename in
  11316. CC*)
  11317. lt_prog_compiler_wl_CXX='-Wl,'
  11318. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11319. if test "$host_cpu" != ia64; then
  11320. lt_prog_compiler_pic_CXX='+Z'
  11321. fi
  11322. ;;
  11323. aCC*)
  11324. lt_prog_compiler_wl_CXX='-Wl,'
  11325. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11326. case $host_cpu in
  11327. hppa*64*|ia64*)
  11328. # +Z the default
  11329. ;;
  11330. *)
  11331. lt_prog_compiler_pic_CXX='+Z'
  11332. ;;
  11333. esac
  11334. ;;
  11335. *)
  11336. ;;
  11337. esac
  11338. ;;
  11339. interix*)
  11340. # This is c89, which is MS Visual C++ (no shared libs)
  11341. # Anyone wants to do a port?
  11342. ;;
  11343. irix5* | irix6* | nonstopux*)
  11344. case $cc_basename in
  11345. CC*)
  11346. lt_prog_compiler_wl_CXX='-Wl,'
  11347. lt_prog_compiler_static_CXX='-non_shared'
  11348. # CC pic flag -KPIC is the default.
  11349. ;;
  11350. *)
  11351. ;;
  11352. esac
  11353. ;;
  11354. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11355. case $cc_basename in
  11356. KCC*)
  11357. # KAI C++ Compiler
  11358. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11359. lt_prog_compiler_pic_CXX='-fPIC'
  11360. ;;
  11361. ecpc* )
  11362. # old Intel C++ for x86_64 which still supported -KPIC.
  11363. lt_prog_compiler_wl_CXX='-Wl,'
  11364. lt_prog_compiler_pic_CXX='-KPIC'
  11365. lt_prog_compiler_static_CXX='-static'
  11366. ;;
  11367. icpc* )
  11368. # Intel C++, used to be incompatible with GCC.
  11369. # ICC 10 doesn't accept -KPIC any more.
  11370. lt_prog_compiler_wl_CXX='-Wl,'
  11371. lt_prog_compiler_pic_CXX='-fPIC'
  11372. lt_prog_compiler_static_CXX='-static'
  11373. ;;
  11374. pgCC* | pgcpp*)
  11375. # Portland Group C++ compiler
  11376. lt_prog_compiler_wl_CXX='-Wl,'
  11377. lt_prog_compiler_pic_CXX='-fpic'
  11378. lt_prog_compiler_static_CXX='-Bstatic'
  11379. ;;
  11380. cxx*)
  11381. # Compaq C++
  11382. # Make sure the PIC flag is empty. It appears that all Alpha
  11383. # Linux and Compaq Tru64 Unix objects are PIC.
  11384. lt_prog_compiler_pic_CXX=
  11385. lt_prog_compiler_static_CXX='-non_shared'
  11386. ;;
  11387. xlc* | xlC*)
  11388. # IBM XL 8.0 on PPC
  11389. lt_prog_compiler_wl_CXX='-Wl,'
  11390. lt_prog_compiler_pic_CXX='-qpic'
  11391. lt_prog_compiler_static_CXX='-qstaticlink'
  11392. ;;
  11393. *)
  11394. case `$CC -V 2>&1 | sed 5q` in
  11395. *Sun\ C*)
  11396. # Sun C++ 5.9
  11397. lt_prog_compiler_pic_CXX='-KPIC'
  11398. lt_prog_compiler_static_CXX='-Bstatic'
  11399. lt_prog_compiler_wl_CXX='-Qoption ld '
  11400. ;;
  11401. esac
  11402. ;;
  11403. esac
  11404. ;;
  11405. lynxos*)
  11406. ;;
  11407. m88k*)
  11408. ;;
  11409. mvs*)
  11410. case $cc_basename in
  11411. cxx*)
  11412. lt_prog_compiler_pic_CXX='-W c,exportall'
  11413. ;;
  11414. *)
  11415. ;;
  11416. esac
  11417. ;;
  11418. netbsd* | netbsdelf*-gnu)
  11419. ;;
  11420. *qnx* | *nto*)
  11421. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11422. # it will coredump.
  11423. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11424. ;;
  11425. osf3* | osf4* | osf5*)
  11426. case $cc_basename in
  11427. KCC*)
  11428. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11429. ;;
  11430. RCC*)
  11431. # Rational C++ 2.4.1
  11432. lt_prog_compiler_pic_CXX='-pic'
  11433. ;;
  11434. cxx*)
  11435. # Digital/Compaq C++
  11436. lt_prog_compiler_wl_CXX='-Wl,'
  11437. # Make sure the PIC flag is empty. It appears that all Alpha
  11438. # Linux and Compaq Tru64 Unix objects are PIC.
  11439. lt_prog_compiler_pic_CXX=
  11440. lt_prog_compiler_static_CXX='-non_shared'
  11441. ;;
  11442. *)
  11443. ;;
  11444. esac
  11445. ;;
  11446. psos*)
  11447. ;;
  11448. solaris*)
  11449. case $cc_basename in
  11450. CC*)
  11451. # Sun C++ 4.2, 5.x and Centerline C++
  11452. lt_prog_compiler_pic_CXX='-KPIC'
  11453. lt_prog_compiler_static_CXX='-Bstatic'
  11454. lt_prog_compiler_wl_CXX='-Qoption ld '
  11455. ;;
  11456. gcx*)
  11457. # Green Hills C++ Compiler
  11458. lt_prog_compiler_pic_CXX='-PIC'
  11459. ;;
  11460. *)
  11461. ;;
  11462. esac
  11463. ;;
  11464. sunos4*)
  11465. case $cc_basename in
  11466. CC*)
  11467. # Sun C++ 4.x
  11468. lt_prog_compiler_pic_CXX='-pic'
  11469. lt_prog_compiler_static_CXX='-Bstatic'
  11470. ;;
  11471. lcc*)
  11472. # Lucid
  11473. lt_prog_compiler_pic_CXX='-pic'
  11474. ;;
  11475. *)
  11476. ;;
  11477. esac
  11478. ;;
  11479. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11480. case $cc_basename in
  11481. CC*)
  11482. lt_prog_compiler_wl_CXX='-Wl,'
  11483. lt_prog_compiler_pic_CXX='-KPIC'
  11484. lt_prog_compiler_static_CXX='-Bstatic'
  11485. ;;
  11486. esac
  11487. ;;
  11488. tandem*)
  11489. case $cc_basename in
  11490. NCC*)
  11491. # NonStop-UX NCC 3.20
  11492. lt_prog_compiler_pic_CXX='-KPIC'
  11493. ;;
  11494. *)
  11495. ;;
  11496. esac
  11497. ;;
  11498. vxworks*)
  11499. ;;
  11500. *)
  11501. lt_prog_compiler_can_build_shared_CXX=no
  11502. ;;
  11503. esac
  11504. fi
  11505. case $host_os in
  11506. # For platforms which do not support PIC, -DPIC is meaningless:
  11507. *djgpp*)
  11508. lt_prog_compiler_pic_CXX=
  11509. ;;
  11510. *)
  11511. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11512. ;;
  11513. esac
  11514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11515. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11516. #
  11517. # Check to make sure the PIC flag actually works.
  11518. #
  11519. if test -n "$lt_prog_compiler_pic_CXX"; then
  11520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11521. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11522. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11523. $as_echo_n "(cached) " >&6
  11524. else
  11525. lt_cv_prog_compiler_pic_works_CXX=no
  11526. ac_outfile=conftest.$ac_objext
  11527. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11528. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11529. # Insert the option either (1) after the last *FLAGS variable, or
  11530. # (2) before a word containing "conftest.", or (3) at the end.
  11531. # Note that $ac_compile itself does not contain backslashes and begins
  11532. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11533. # The option is referenced via a variable to avoid confusing sed.
  11534. lt_compile=`echo "$ac_compile" | $SED \
  11535. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11536. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11537. -e 's:$: $lt_compiler_flag:'`
  11538. (eval echo "\"\$as_me:13343: $lt_compile\"" >&5)
  11539. (eval "$lt_compile" 2>conftest.err)
  11540. ac_status=$?
  11541. cat conftest.err >&5
  11542. echo "$as_me:13347: \$? = $ac_status" >&5
  11543. if (exit $ac_status) && test -s "$ac_outfile"; then
  11544. # The compiler can only warn and ignore the option if not recognized
  11545. # So say no if there are warnings other than the usual output.
  11546. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11547. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11548. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11549. lt_cv_prog_compiler_pic_works_CXX=yes
  11550. fi
  11551. fi
  11552. $RM conftest*
  11553. fi
  11554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11555. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11556. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11557. case $lt_prog_compiler_pic_CXX in
  11558. "" | " "*) ;;
  11559. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11560. esac
  11561. else
  11562. lt_prog_compiler_pic_CXX=
  11563. lt_prog_compiler_can_build_shared_CXX=no
  11564. fi
  11565. fi
  11566. #
  11567. # Check to make sure the static flag actually works.
  11568. #
  11569. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11571. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11572. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11573. $as_echo_n "(cached) " >&6
  11574. else
  11575. lt_cv_prog_compiler_static_works_CXX=no
  11576. save_LDFLAGS="$LDFLAGS"
  11577. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11578. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11579. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11580. # The linker can only warn and ignore the option if not recognized
  11581. # So say no if there are warnings
  11582. if test -s conftest.err; then
  11583. # Append any errors to the config.log.
  11584. cat conftest.err 1>&5
  11585. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11586. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11587. if diff conftest.exp conftest.er2 >/dev/null; then
  11588. lt_cv_prog_compiler_static_works_CXX=yes
  11589. fi
  11590. else
  11591. lt_cv_prog_compiler_static_works_CXX=yes
  11592. fi
  11593. fi
  11594. $RM -r conftest*
  11595. LDFLAGS="$save_LDFLAGS"
  11596. fi
  11597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11598. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11599. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11600. :
  11601. else
  11602. lt_prog_compiler_static_CXX=
  11603. fi
  11604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11605. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11606. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11607. $as_echo_n "(cached) " >&6
  11608. else
  11609. lt_cv_prog_compiler_c_o_CXX=no
  11610. $RM -r conftest 2>/dev/null
  11611. mkdir conftest
  11612. cd conftest
  11613. mkdir out
  11614. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11615. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11616. # Insert the option either (1) after the last *FLAGS variable, or
  11617. # (2) before a word containing "conftest.", or (3) at the end.
  11618. # Note that $ac_compile itself does not contain backslashes and begins
  11619. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11620. lt_compile=`echo "$ac_compile" | $SED \
  11621. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11622. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11623. -e 's:$: $lt_compiler_flag:'`
  11624. (eval echo "\"\$as_me:13442: $lt_compile\"" >&5)
  11625. (eval "$lt_compile" 2>out/conftest.err)
  11626. ac_status=$?
  11627. cat out/conftest.err >&5
  11628. echo "$as_me:13446: \$? = $ac_status" >&5
  11629. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11630. then
  11631. # The compiler can only warn and ignore the option if not recognized
  11632. # So say no if there are warnings
  11633. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11634. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11635. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11636. lt_cv_prog_compiler_c_o_CXX=yes
  11637. fi
  11638. fi
  11639. chmod u+w . 2>&5
  11640. $RM conftest*
  11641. # SGI C++ compiler will create directory out/ii_files/ for
  11642. # template instantiation
  11643. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11644. $RM out/* && rmdir out
  11645. cd ..
  11646. $RM -r conftest
  11647. $RM conftest*
  11648. fi
  11649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11650. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11652. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11653. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11654. $as_echo_n "(cached) " >&6
  11655. else
  11656. lt_cv_prog_compiler_c_o_CXX=no
  11657. $RM -r conftest 2>/dev/null
  11658. mkdir conftest
  11659. cd conftest
  11660. mkdir out
  11661. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11662. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11663. # Insert the option either (1) after the last *FLAGS variable, or
  11664. # (2) before a word containing "conftest.", or (3) at the end.
  11665. # Note that $ac_compile itself does not contain backslashes and begins
  11666. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11667. lt_compile=`echo "$ac_compile" | $SED \
  11668. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11669. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11670. -e 's:$: $lt_compiler_flag:'`
  11671. (eval echo "\"\$as_me:13494: $lt_compile\"" >&5)
  11672. (eval "$lt_compile" 2>out/conftest.err)
  11673. ac_status=$?
  11674. cat out/conftest.err >&5
  11675. echo "$as_me:13498: \$? = $ac_status" >&5
  11676. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11677. then
  11678. # The compiler can only warn and ignore the option if not recognized
  11679. # So say no if there are warnings
  11680. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11681. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11682. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11683. lt_cv_prog_compiler_c_o_CXX=yes
  11684. fi
  11685. fi
  11686. chmod u+w . 2>&5
  11687. $RM conftest*
  11688. # SGI C++ compiler will create directory out/ii_files/ for
  11689. # template instantiation
  11690. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11691. $RM out/* && rmdir out
  11692. cd ..
  11693. $RM -r conftest
  11694. $RM conftest*
  11695. fi
  11696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11697. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11698. hard_links="nottested"
  11699. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11700. # do not overwrite the value of need_locks provided by the user
  11701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11702. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11703. hard_links=yes
  11704. $RM conftest*
  11705. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11706. touch conftest.a
  11707. ln conftest.a conftest.b 2>&5 || hard_links=no
  11708. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11710. $as_echo "$hard_links" >&6; }
  11711. if test "$hard_links" = no; then
  11712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11713. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11714. need_locks=warn
  11715. fi
  11716. else
  11717. need_locks=no
  11718. fi
  11719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11720. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11721. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11722. case $host_os in
  11723. aix[4-9]*)
  11724. # If we're using GNU nm, then we don't want the "-C" option.
  11725. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11726. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11727. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11728. else
  11729. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11730. fi
  11731. ;;
  11732. pw32*)
  11733. export_symbols_cmds_CXX="$ltdll_cmds"
  11734. ;;
  11735. cygwin* | mingw* | cegcc*)
  11736. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11737. ;;
  11738. linux* | k*bsd*-gnu)
  11739. link_all_deplibs_CXX=no
  11740. ;;
  11741. *)
  11742. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11743. ;;
  11744. esac
  11745. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11747. $as_echo "$ld_shlibs_CXX" >&6; }
  11748. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11749. with_gnu_ld_CXX=$with_gnu_ld
  11750. #
  11751. # Do we need to explicitly link libc?
  11752. #
  11753. case "x$archive_cmds_need_lc_CXX" in
  11754. x|xyes)
  11755. # Assume -lc should be added
  11756. archive_cmds_need_lc_CXX=yes
  11757. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11758. case $archive_cmds_CXX in
  11759. *'~'*)
  11760. # FIXME: we may have to deal with multi-command sequences.
  11761. ;;
  11762. '$CC '*)
  11763. # Test whether the compiler implicitly links with -lc since on some
  11764. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11765. # to ld, don't add -lc before -lgcc.
  11766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11767. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11768. $RM conftest*
  11769. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11770. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11771. (eval $ac_compile) 2>&5
  11772. ac_status=$?
  11773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11774. test $ac_status = 0; } 2>conftest.err; then
  11775. soname=conftest
  11776. lib=conftest
  11777. libobjs=conftest.$ac_objext
  11778. deplibs=
  11779. wl=$lt_prog_compiler_wl_CXX
  11780. pic_flag=$lt_prog_compiler_pic_CXX
  11781. compiler_flags=-v
  11782. linker_flags=-v
  11783. verstring=
  11784. output_objdir=.
  11785. libname=conftest
  11786. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11787. allow_undefined_flag_CXX=
  11788. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11789. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11790. ac_status=$?
  11791. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11792. test $ac_status = 0; }
  11793. then
  11794. archive_cmds_need_lc_CXX=no
  11795. else
  11796. archive_cmds_need_lc_CXX=yes
  11797. fi
  11798. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11799. else
  11800. cat conftest.err 1>&5
  11801. fi
  11802. $RM conftest*
  11803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11804. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11805. ;;
  11806. esac
  11807. fi
  11808. ;;
  11809. esac
  11810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11811. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11812. library_names_spec=
  11813. libname_spec='lib$name'
  11814. soname_spec=
  11815. shrext_cmds=".so"
  11816. postinstall_cmds=
  11817. postuninstall_cmds=
  11818. finish_cmds=
  11819. finish_eval=
  11820. shlibpath_var=
  11821. shlibpath_overrides_runpath=unknown
  11822. version_type=none
  11823. dynamic_linker="$host_os ld.so"
  11824. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11825. need_lib_prefix=unknown
  11826. hardcode_into_libs=no
  11827. # when you set need_version to no, make sure it does not cause -set_version
  11828. # flags to be left without arguments
  11829. need_version=unknown
  11830. case $host_os in
  11831. aix3*)
  11832. version_type=linux
  11833. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11834. shlibpath_var=LIBPATH
  11835. # AIX 3 has no versioning support, so we append a major version to the name.
  11836. soname_spec='${libname}${release}${shared_ext}$major'
  11837. ;;
  11838. aix[4-9]*)
  11839. version_type=linux
  11840. need_lib_prefix=no
  11841. need_version=no
  11842. hardcode_into_libs=yes
  11843. if test "$host_cpu" = ia64; then
  11844. # AIX 5 supports IA64
  11845. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11846. shlibpath_var=LD_LIBRARY_PATH
  11847. else
  11848. # With GCC up to 2.95.x, collect2 would create an import file
  11849. # for dependence libraries. The import file would start with
  11850. # the line `#! .'. This would cause the generated library to
  11851. # depend on `.', always an invalid library. This was fixed in
  11852. # development snapshots of GCC prior to 3.0.
  11853. case $host_os in
  11854. aix4 | aix4.[01] | aix4.[01].*)
  11855. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11856. echo ' yes '
  11857. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11858. :
  11859. else
  11860. can_build_shared=no
  11861. fi
  11862. ;;
  11863. esac
  11864. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11865. # soname into executable. Probably we can add versioning support to
  11866. # collect2, so additional links can be useful in future.
  11867. if test "$aix_use_runtimelinking" = yes; then
  11868. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11869. # instead of lib<name>.a to let people know that these are not
  11870. # typical AIX shared libraries.
  11871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11872. else
  11873. # We preserve .a as extension for shared libraries through AIX4.2
  11874. # and later when we are not doing run time linking.
  11875. library_names_spec='${libname}${release}.a $libname.a'
  11876. soname_spec='${libname}${release}${shared_ext}$major'
  11877. fi
  11878. shlibpath_var=LIBPATH
  11879. fi
  11880. ;;
  11881. amigaos*)
  11882. case $host_cpu in
  11883. powerpc)
  11884. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11885. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11887. ;;
  11888. m68k)
  11889. library_names_spec='$libname.ixlibrary $libname.a'
  11890. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11891. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11892. ;;
  11893. esac
  11894. ;;
  11895. beos*)
  11896. library_names_spec='${libname}${shared_ext}'
  11897. dynamic_linker="$host_os ld.so"
  11898. shlibpath_var=LIBRARY_PATH
  11899. ;;
  11900. bsdi[45]*)
  11901. version_type=linux
  11902. need_version=no
  11903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11904. soname_spec='${libname}${release}${shared_ext}$major'
  11905. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11906. shlibpath_var=LD_LIBRARY_PATH
  11907. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11908. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11909. # the default ld.so.conf also contains /usr/contrib/lib and
  11910. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11911. # libtool to hard-code these into programs
  11912. ;;
  11913. cygwin* | mingw* | pw32* | cegcc*)
  11914. version_type=windows
  11915. shrext_cmds=".dll"
  11916. need_version=no
  11917. need_lib_prefix=no
  11918. case $GCC,$host_os in
  11919. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11920. library_names_spec='$libname.dll.a'
  11921. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11922. postinstall_cmds='base_file=`basename \${file}`~
  11923. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11924. dldir=$destdir/`dirname \$dlpath`~
  11925. test -d \$dldir || mkdir -p \$dldir~
  11926. $install_prog $dir/$dlname \$dldir/$dlname~
  11927. chmod a+x \$dldir/$dlname~
  11928. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11929. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11930. fi'
  11931. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11932. dlpath=$dir/\$dldll~
  11933. $RM \$dlpath'
  11934. shlibpath_overrides_runpath=yes
  11935. case $host_os in
  11936. cygwin*)
  11937. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11938. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11939. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11940. ;;
  11941. mingw* | cegcc*)
  11942. # MinGW DLLs use traditional 'lib' prefix
  11943. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11944. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11945. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11946. # It is most probably a Windows format PATH printed by
  11947. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11948. # path with ; separators, and with drive letters. We can handle the
  11949. # drive letters (cygwin fileutils understands them), so leave them,
  11950. # especially as we might pass files found there to a mingw objdump,
  11951. # which wouldn't understand a cygwinified path. Ahh.
  11952. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11953. else
  11954. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11955. fi
  11956. ;;
  11957. pw32*)
  11958. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11959. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11960. ;;
  11961. esac
  11962. ;;
  11963. *)
  11964. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11965. ;;
  11966. esac
  11967. dynamic_linker='Win32 ld.exe'
  11968. # FIXME: first we should search . and the directory the executable is in
  11969. shlibpath_var=PATH
  11970. ;;
  11971. darwin* | rhapsody*)
  11972. dynamic_linker="$host_os dyld"
  11973. version_type=darwin
  11974. need_lib_prefix=no
  11975. need_version=no
  11976. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11977. soname_spec='${libname}${release}${major}$shared_ext'
  11978. shlibpath_overrides_runpath=yes
  11979. shlibpath_var=DYLD_LIBRARY_PATH
  11980. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11981. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11982. ;;
  11983. dgux*)
  11984. version_type=linux
  11985. need_lib_prefix=no
  11986. need_version=no
  11987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11988. soname_spec='${libname}${release}${shared_ext}$major'
  11989. shlibpath_var=LD_LIBRARY_PATH
  11990. ;;
  11991. freebsd1*)
  11992. dynamic_linker=no
  11993. ;;
  11994. freebsd* | dragonfly*)
  11995. # DragonFly does not have aout. When/if they implement a new
  11996. # versioning mechanism, adjust this.
  11997. if test -x /usr/bin/objformat; then
  11998. objformat=`/usr/bin/objformat`
  11999. else
  12000. case $host_os in
  12001. freebsd[123]*) objformat=aout ;;
  12002. *) objformat=elf ;;
  12003. esac
  12004. fi
  12005. version_type=freebsd-$objformat
  12006. case $version_type in
  12007. freebsd-elf*)
  12008. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12009. need_version=no
  12010. need_lib_prefix=no
  12011. ;;
  12012. freebsd-*)
  12013. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12014. need_version=yes
  12015. ;;
  12016. esac
  12017. shlibpath_var=LD_LIBRARY_PATH
  12018. case $host_os in
  12019. freebsd2*)
  12020. shlibpath_overrides_runpath=yes
  12021. ;;
  12022. freebsd3.[01]* | freebsdelf3.[01]*)
  12023. shlibpath_overrides_runpath=yes
  12024. hardcode_into_libs=yes
  12025. ;;
  12026. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12027. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12028. shlibpath_overrides_runpath=no
  12029. hardcode_into_libs=yes
  12030. ;;
  12031. *) # from 4.6 on, and DragonFly
  12032. shlibpath_overrides_runpath=yes
  12033. hardcode_into_libs=yes
  12034. ;;
  12035. esac
  12036. ;;
  12037. gnu*)
  12038. version_type=linux
  12039. need_lib_prefix=no
  12040. need_version=no
  12041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12042. soname_spec='${libname}${release}${shared_ext}$major'
  12043. shlibpath_var=LD_LIBRARY_PATH
  12044. hardcode_into_libs=yes
  12045. ;;
  12046. hpux9* | hpux10* | hpux11*)
  12047. # Give a soname corresponding to the major version so that dld.sl refuses to
  12048. # link against other versions.
  12049. version_type=sunos
  12050. need_lib_prefix=no
  12051. need_version=no
  12052. case $host_cpu in
  12053. ia64*)
  12054. shrext_cmds='.so'
  12055. hardcode_into_libs=yes
  12056. dynamic_linker="$host_os dld.so"
  12057. shlibpath_var=LD_LIBRARY_PATH
  12058. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12060. soname_spec='${libname}${release}${shared_ext}$major'
  12061. if test "X$HPUX_IA64_MODE" = X32; then
  12062. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12063. else
  12064. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12065. fi
  12066. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12067. ;;
  12068. hppa*64*)
  12069. shrext_cmds='.sl'
  12070. hardcode_into_libs=yes
  12071. dynamic_linker="$host_os dld.sl"
  12072. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12073. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12075. soname_spec='${libname}${release}${shared_ext}$major'
  12076. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12077. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12078. ;;
  12079. *)
  12080. shrext_cmds='.sl'
  12081. dynamic_linker="$host_os dld.sl"
  12082. shlibpath_var=SHLIB_PATH
  12083. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12085. soname_spec='${libname}${release}${shared_ext}$major'
  12086. ;;
  12087. esac
  12088. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12089. postinstall_cmds='chmod 555 $lib'
  12090. ;;
  12091. interix[3-9]*)
  12092. version_type=linux
  12093. need_lib_prefix=no
  12094. need_version=no
  12095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12096. soname_spec='${libname}${release}${shared_ext}$major'
  12097. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12098. shlibpath_var=LD_LIBRARY_PATH
  12099. shlibpath_overrides_runpath=no
  12100. hardcode_into_libs=yes
  12101. ;;
  12102. irix5* | irix6* | nonstopux*)
  12103. case $host_os in
  12104. nonstopux*) version_type=nonstopux ;;
  12105. *)
  12106. if test "$lt_cv_prog_gnu_ld" = yes; then
  12107. version_type=linux
  12108. else
  12109. version_type=irix
  12110. fi ;;
  12111. esac
  12112. need_lib_prefix=no
  12113. need_version=no
  12114. soname_spec='${libname}${release}${shared_ext}$major'
  12115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12116. case $host_os in
  12117. irix5* | nonstopux*)
  12118. libsuff= shlibsuff=
  12119. ;;
  12120. *)
  12121. case $LD in # libtool.m4 will add one of these switches to LD
  12122. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12123. libsuff= shlibsuff= libmagic=32-bit;;
  12124. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12125. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12126. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12127. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12128. *) libsuff= shlibsuff= libmagic=never-match;;
  12129. esac
  12130. ;;
  12131. esac
  12132. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12133. shlibpath_overrides_runpath=no
  12134. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12135. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12136. hardcode_into_libs=yes
  12137. ;;
  12138. # No shared lib support for Linux oldld, aout, or coff.
  12139. linux*oldld* | linux*aout* | linux*coff*)
  12140. dynamic_linker=no
  12141. ;;
  12142. # This must be Linux ELF.
  12143. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12144. version_type=linux
  12145. need_lib_prefix=no
  12146. need_version=no
  12147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12148. soname_spec='${libname}${release}${shared_ext}$major'
  12149. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12150. shlibpath_var=LD_LIBRARY_PATH
  12151. shlibpath_overrides_runpath=no
  12152. # Some binutils ld are patched to set DT_RUNPATH
  12153. save_LDFLAGS=$LDFLAGS
  12154. save_libdir=$libdir
  12155. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12156. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12158. /* end confdefs.h. */
  12159. int
  12160. main ()
  12161. {
  12162. ;
  12163. return 0;
  12164. }
  12165. _ACEOF
  12166. if ac_fn_cxx_try_link "$LINENO"; then :
  12167. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12168. shlibpath_overrides_runpath=yes
  12169. fi
  12170. fi
  12171. rm -f core conftest.err conftest.$ac_objext \
  12172. conftest$ac_exeext conftest.$ac_ext
  12173. LDFLAGS=$save_LDFLAGS
  12174. libdir=$save_libdir
  12175. # This implies no fast_install, which is unacceptable.
  12176. # Some rework will be needed to allow for fast_install
  12177. # before this can be enabled.
  12178. hardcode_into_libs=yes
  12179. # Append ld.so.conf contents to the search path
  12180. if test -f /etc/ld.so.conf; then
  12181. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  12182. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12183. fi
  12184. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12185. # powerpc, because MkLinux only supported shared libraries with the
  12186. # GNU dynamic linker. Since this was broken with cross compilers,
  12187. # most powerpc-linux boxes support dynamic linking these days and
  12188. # people can always --disable-shared, the test was removed, and we
  12189. # assume the GNU/Linux dynamic linker is in use.
  12190. dynamic_linker='GNU/Linux ld.so'
  12191. ;;
  12192. netbsdelf*-gnu)
  12193. version_type=linux
  12194. need_lib_prefix=no
  12195. need_version=no
  12196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12197. soname_spec='${libname}${release}${shared_ext}$major'
  12198. shlibpath_var=LD_LIBRARY_PATH
  12199. shlibpath_overrides_runpath=no
  12200. hardcode_into_libs=yes
  12201. dynamic_linker='NetBSD ld.elf_so'
  12202. ;;
  12203. netbsd*)
  12204. version_type=sunos
  12205. need_lib_prefix=no
  12206. need_version=no
  12207. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12209. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12210. dynamic_linker='NetBSD (a.out) ld.so'
  12211. else
  12212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12213. soname_spec='${libname}${release}${shared_ext}$major'
  12214. dynamic_linker='NetBSD ld.elf_so'
  12215. fi
  12216. shlibpath_var=LD_LIBRARY_PATH
  12217. shlibpath_overrides_runpath=yes
  12218. hardcode_into_libs=yes
  12219. ;;
  12220. newsos6)
  12221. version_type=linux
  12222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12223. shlibpath_var=LD_LIBRARY_PATH
  12224. shlibpath_overrides_runpath=yes
  12225. ;;
  12226. *nto* | *qnx*)
  12227. version_type=qnx
  12228. need_lib_prefix=no
  12229. need_version=no
  12230. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12231. soname_spec='${libname}${release}${shared_ext}$major'
  12232. shlibpath_var=LD_LIBRARY_PATH
  12233. shlibpath_overrides_runpath=no
  12234. hardcode_into_libs=yes
  12235. dynamic_linker='ldqnx.so'
  12236. ;;
  12237. openbsd*)
  12238. version_type=sunos
  12239. sys_lib_dlsearch_path_spec="/usr/lib"
  12240. need_lib_prefix=no
  12241. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12242. case $host_os in
  12243. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12244. *) need_version=no ;;
  12245. esac
  12246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12247. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12248. shlibpath_var=LD_LIBRARY_PATH
  12249. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12250. case $host_os in
  12251. openbsd2.[89] | openbsd2.[89].*)
  12252. shlibpath_overrides_runpath=no
  12253. ;;
  12254. *)
  12255. shlibpath_overrides_runpath=yes
  12256. ;;
  12257. esac
  12258. else
  12259. shlibpath_overrides_runpath=yes
  12260. fi
  12261. ;;
  12262. os2*)
  12263. libname_spec='$name'
  12264. shrext_cmds=".dll"
  12265. need_lib_prefix=no
  12266. library_names_spec='$libname${shared_ext} $libname.a'
  12267. dynamic_linker='OS/2 ld.exe'
  12268. shlibpath_var=LIBPATH
  12269. ;;
  12270. osf3* | osf4* | osf5*)
  12271. version_type=osf
  12272. need_lib_prefix=no
  12273. need_version=no
  12274. soname_spec='${libname}${release}${shared_ext}$major'
  12275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12276. shlibpath_var=LD_LIBRARY_PATH
  12277. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12278. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12279. ;;
  12280. rdos*)
  12281. dynamic_linker=no
  12282. ;;
  12283. solaris*)
  12284. version_type=linux
  12285. need_lib_prefix=no
  12286. need_version=no
  12287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12288. soname_spec='${libname}${release}${shared_ext}$major'
  12289. shlibpath_var=LD_LIBRARY_PATH
  12290. shlibpath_overrides_runpath=yes
  12291. hardcode_into_libs=yes
  12292. # ldd complains unless libraries are executable
  12293. postinstall_cmds='chmod +x $lib'
  12294. ;;
  12295. sunos4*)
  12296. version_type=sunos
  12297. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12298. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12299. shlibpath_var=LD_LIBRARY_PATH
  12300. shlibpath_overrides_runpath=yes
  12301. if test "$with_gnu_ld" = yes; then
  12302. need_lib_prefix=no
  12303. fi
  12304. need_version=yes
  12305. ;;
  12306. sysv4 | sysv4.3*)
  12307. version_type=linux
  12308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12309. soname_spec='${libname}${release}${shared_ext}$major'
  12310. shlibpath_var=LD_LIBRARY_PATH
  12311. case $host_vendor in
  12312. sni)
  12313. shlibpath_overrides_runpath=no
  12314. need_lib_prefix=no
  12315. runpath_var=LD_RUN_PATH
  12316. ;;
  12317. siemens)
  12318. need_lib_prefix=no
  12319. ;;
  12320. motorola)
  12321. need_lib_prefix=no
  12322. need_version=no
  12323. shlibpath_overrides_runpath=no
  12324. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12325. ;;
  12326. esac
  12327. ;;
  12328. sysv4*MP*)
  12329. if test -d /usr/nec ;then
  12330. version_type=linux
  12331. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12332. soname_spec='$libname${shared_ext}.$major'
  12333. shlibpath_var=LD_LIBRARY_PATH
  12334. fi
  12335. ;;
  12336. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12337. version_type=freebsd-elf
  12338. need_lib_prefix=no
  12339. need_version=no
  12340. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12341. soname_spec='${libname}${release}${shared_ext}$major'
  12342. shlibpath_var=LD_LIBRARY_PATH
  12343. shlibpath_overrides_runpath=yes
  12344. hardcode_into_libs=yes
  12345. if test "$with_gnu_ld" = yes; then
  12346. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12347. else
  12348. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12349. case $host_os in
  12350. sco3.2v5*)
  12351. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12352. ;;
  12353. esac
  12354. fi
  12355. sys_lib_dlsearch_path_spec='/usr/lib'
  12356. ;;
  12357. tpf*)
  12358. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12359. version_type=linux
  12360. need_lib_prefix=no
  12361. need_version=no
  12362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12363. shlibpath_var=LD_LIBRARY_PATH
  12364. shlibpath_overrides_runpath=no
  12365. hardcode_into_libs=yes
  12366. ;;
  12367. uts4*)
  12368. version_type=linux
  12369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12370. soname_spec='${libname}${release}${shared_ext}$major'
  12371. shlibpath_var=LD_LIBRARY_PATH
  12372. ;;
  12373. *)
  12374. dynamic_linker=no
  12375. ;;
  12376. esac
  12377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12378. $as_echo "$dynamic_linker" >&6; }
  12379. test "$dynamic_linker" = no && can_build_shared=no
  12380. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12381. if test "$GCC" = yes; then
  12382. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12383. fi
  12384. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12385. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12386. fi
  12387. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12388. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12389. fi
  12390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12391. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12392. hardcode_action_CXX=
  12393. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12394. test -n "$runpath_var_CXX" ||
  12395. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12396. # We can hardcode non-existent directories.
  12397. if test "$hardcode_direct_CXX" != no &&
  12398. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12399. # have to relink, otherwise we might link with an installed library
  12400. # when we should be linking with a yet-to-be-installed one
  12401. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12402. test "$hardcode_minus_L_CXX" != no; then
  12403. # Linking always hardcodes the temporary library directory.
  12404. hardcode_action_CXX=relink
  12405. else
  12406. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12407. hardcode_action_CXX=immediate
  12408. fi
  12409. else
  12410. # We cannot hardcode anything, or else we can only hardcode existing
  12411. # directories.
  12412. hardcode_action_CXX=unsupported
  12413. fi
  12414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12415. $as_echo "$hardcode_action_CXX" >&6; }
  12416. if test "$hardcode_action_CXX" = relink ||
  12417. test "$inherit_rpath_CXX" = yes; then
  12418. # Fast installation is not supported
  12419. enable_fast_install=no
  12420. elif test "$shlibpath_overrides_runpath" = yes ||
  12421. test "$enable_shared" = no; then
  12422. # Fast installation is not necessary
  12423. enable_fast_install=needless
  12424. fi
  12425. fi # test -n "$compiler"
  12426. CC=$lt_save_CC
  12427. LDCXX=$LD
  12428. LD=$lt_save_LD
  12429. GCC=$lt_save_GCC
  12430. with_gnu_ld=$lt_save_with_gnu_ld
  12431. lt_cv_path_LDCXX=$lt_cv_path_LD
  12432. lt_cv_path_LD=$lt_save_path_LD
  12433. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12434. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12435. fi # test "$_lt_caught_CXX_error" != yes
  12436. ac_ext=c
  12437. ac_cpp='$CPP $CPPFLAGS'
  12438. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12439. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12440. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12441. ac_config_commands="$ac_config_commands libtool"
  12442. # Only expand once:
  12443. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  12444. if test -n "$ac_tool_prefix"; then
  12445. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  12446. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  12447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12448. $as_echo_n "checking for $ac_word... " >&6; }
  12449. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  12450. $as_echo_n "(cached) " >&6
  12451. else
  12452. case $PKG_CONFIG in
  12453. [\\/]* | ?:[\\/]*)
  12454. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12455. ;;
  12456. *)
  12457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12458. for as_dir in $PATH
  12459. do
  12460. IFS=$as_save_IFS
  12461. test -z "$as_dir" && as_dir=.
  12462. for ac_exec_ext in '' $ac_executable_extensions; do
  12463. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12464. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12465. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12466. break 2
  12467. fi
  12468. done
  12469. done
  12470. IFS=$as_save_IFS
  12471. ;;
  12472. esac
  12473. fi
  12474. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12475. if test -n "$PKG_CONFIG"; then
  12476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12477. $as_echo "$PKG_CONFIG" >&6; }
  12478. else
  12479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12480. $as_echo "no" >&6; }
  12481. fi
  12482. fi
  12483. if test -z "$ac_cv_path_PKG_CONFIG"; then
  12484. ac_pt_PKG_CONFIG=$PKG_CONFIG
  12485. # Extract the first word of "pkg-config", so it can be a program name with args.
  12486. set dummy pkg-config; ac_word=$2
  12487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12488. $as_echo_n "checking for $ac_word... " >&6; }
  12489. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  12490. $as_echo_n "(cached) " >&6
  12491. else
  12492. case $ac_pt_PKG_CONFIG in
  12493. [\\/]* | ?:[\\/]*)
  12494. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  12495. ;;
  12496. *)
  12497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12498. for as_dir in $PATH
  12499. do
  12500. IFS=$as_save_IFS
  12501. test -z "$as_dir" && as_dir=.
  12502. for ac_exec_ext in '' $ac_executable_extensions; do
  12503. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12504. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12506. break 2
  12507. fi
  12508. done
  12509. done
  12510. IFS=$as_save_IFS
  12511. ;;
  12512. esac
  12513. fi
  12514. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  12515. if test -n "$ac_pt_PKG_CONFIG"; then
  12516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  12517. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  12518. else
  12519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12520. $as_echo "no" >&6; }
  12521. fi
  12522. if test "x$ac_pt_PKG_CONFIG" = x; then
  12523. PKG_CONFIG=""
  12524. else
  12525. case $cross_compiling:$ac_tool_warned in
  12526. yes:)
  12527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12528. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12529. ac_tool_warned=yes ;;
  12530. esac
  12531. PKG_CONFIG=$ac_pt_PKG_CONFIG
  12532. fi
  12533. else
  12534. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12535. fi
  12536. fi
  12537. if test -n "$PKG_CONFIG"; then
  12538. _pkg_min_version=0.9.0
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  12540. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  12541. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  12542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12543. $as_echo "yes" >&6; }
  12544. else
  12545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12546. $as_echo "no" >&6; }
  12547. PKG_CONFIG=""
  12548. fi
  12549. fi
  12550. pkg_failed=no
  12551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NUTCONF" >&5
  12552. $as_echo_n "checking for NUTCONF... " >&6; }
  12553. if test -n "$PKG_CONFIG"; then
  12554. if test -n "$NUTCONF_CFLAGS"; then
  12555. pkg_cv_NUTCONF_CFLAGS="$NUTCONF_CFLAGS"
  12556. else
  12557. if test -n "$PKG_CONFIG" && \
  12558. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
  12559. ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
  12560. ac_status=$?
  12561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12562. test $ac_status = 0; }; then
  12563. pkg_cv_NUTCONF_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
  12564. else
  12565. pkg_failed=yes
  12566. fi
  12567. fi
  12568. else
  12569. pkg_failed=untried
  12570. fi
  12571. if test -n "$PKG_CONFIG"; then
  12572. if test -n "$NUTCONF_LIBS"; then
  12573. pkg_cv_NUTCONF_LIBS="$NUTCONF_LIBS"
  12574. else
  12575. if test -n "$PKG_CONFIG" && \
  12576. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
  12577. ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
  12578. ac_status=$?
  12579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12580. test $ac_status = 0; }; then
  12581. pkg_cv_NUTCONF_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
  12582. else
  12583. pkg_failed=yes
  12584. fi
  12585. fi
  12586. else
  12587. pkg_failed=untried
  12588. fi
  12589. if test $pkg_failed = yes; then
  12590. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12591. _pkg_short_errors_supported=yes
  12592. else
  12593. _pkg_short_errors_supported=no
  12594. fi
  12595. if test $_pkg_short_errors_supported = yes; then
  12596. NUTCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1"`
  12597. else
  12598. NUTCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1"`
  12599. fi
  12600. # Put the nasty error message in config.log where it belongs
  12601. echo "$NUTCONF_PKG_ERRORS" >&5
  12602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12603. $as_echo "no" >&6; }
  12604. pkg_failed=no
  12605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NUTCONF" >&5
  12606. $as_echo_n "checking for NUTCONF... " >&6; }
  12607. if test -n "$PKG_CONFIG"; then
  12608. if test -n "$NUTCONF_CFLAGS"; then
  12609. pkg_cv_NUTCONF_CFLAGS="$NUTCONF_CFLAGS"
  12610. else
  12611. if test -n "$PKG_CONFIG" && \
  12612. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
  12613. ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
  12614. ac_status=$?
  12615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12616. test $ac_status = 0; }; then
  12617. pkg_cv_NUTCONF_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
  12618. else
  12619. pkg_failed=yes
  12620. fi
  12621. fi
  12622. else
  12623. pkg_failed=untried
  12624. fi
  12625. if test -n "$PKG_CONFIG"; then
  12626. if test -n "$NUTCONF_LIBS"; then
  12627. pkg_cv_NUTCONF_LIBS="$NUTCONF_LIBS"
  12628. else
  12629. if test -n "$PKG_CONFIG" && \
  12630. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
  12631. ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
  12632. ac_status=$?
  12633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12634. test $ac_status = 0; }; then
  12635. pkg_cv_NUTCONF_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
  12636. else
  12637. pkg_failed=yes
  12638. fi
  12639. fi
  12640. else
  12641. pkg_failed=untried
  12642. fi
  12643. if test $pkg_failed = yes; then
  12644. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12645. _pkg_short_errors_supported=yes
  12646. else
  12647. _pkg_short_errors_supported=no
  12648. fi
  12649. if test $_pkg_short_errors_supported = yes; then
  12650. NUTCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1"`
  12651. else
  12652. NUTCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1"`
  12653. fi
  12654. # Put the nasty error message in config.log where it belongs
  12655. echo "$NUTCONF_PKG_ERRORS" >&5
  12656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12657. $as_echo "no" >&6; }
  12658. pkg_failed=no
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NUTCONF" >&5
  12660. $as_echo_n "checking for NUTCONF... " >&6; }
  12661. if test -n "$PKG_CONFIG"; then
  12662. if test -n "$NUTCONF_CFLAGS"; then
  12663. pkg_cv_NUTCONF_CFLAGS="$NUTCONF_CFLAGS"
  12664. else
  12665. if test -n "$PKG_CONFIG" && \
  12666. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
  12667. ($PKG_CONFIG --exists --print-errors "lua") 2>&5
  12668. ac_status=$?
  12669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12670. test $ac_status = 0; }; then
  12671. pkg_cv_NUTCONF_CFLAGS=`$PKG_CONFIG --cflags "lua" 2>/dev/null`
  12672. else
  12673. pkg_failed=yes
  12674. fi
  12675. fi
  12676. else
  12677. pkg_failed=untried
  12678. fi
  12679. if test -n "$PKG_CONFIG"; then
  12680. if test -n "$NUTCONF_LIBS"; then
  12681. pkg_cv_NUTCONF_LIBS="$NUTCONF_LIBS"
  12682. else
  12683. if test -n "$PKG_CONFIG" && \
  12684. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
  12685. ($PKG_CONFIG --exists --print-errors "lua") 2>&5
  12686. ac_status=$?
  12687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12688. test $ac_status = 0; }; then
  12689. pkg_cv_NUTCONF_LIBS=`$PKG_CONFIG --libs "lua" 2>/dev/null`
  12690. else
  12691. pkg_failed=yes
  12692. fi
  12693. fi
  12694. else
  12695. pkg_failed=untried
  12696. fi
  12697. if test $pkg_failed = yes; then
  12698. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12699. _pkg_short_errors_supported=yes
  12700. else
  12701. _pkg_short_errors_supported=no
  12702. fi
  12703. if test $_pkg_short_errors_supported = yes; then
  12704. NUTCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua"`
  12705. else
  12706. NUTCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua"`
  12707. fi
  12708. # Put the nasty error message in config.log where it belongs
  12709. echo "$NUTCONF_PKG_ERRORS" >&5
  12710. as_fn_error "Package requirements (lua) were not met:
  12711. $NUTCONF_PKG_ERRORS
  12712. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  12713. installed software in a non-standard prefix.
  12714. Alternatively, you may set the environment variables NUTCONF_CFLAGS
  12715. and NUTCONF_LIBS to avoid the need to call pkg-config.
  12716. See the pkg-config man page for more details.
  12717. " "$LINENO" 5
  12718. elif test $pkg_failed = untried; then
  12719. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12720. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12721. as_fn_error "The pkg-config script could not be found or is too old. Make sure it
  12722. is in your PATH or set the PKG_CONFIG environment variable to the full
  12723. path to pkg-config.
  12724. Alternatively, you may set the environment variables NUTCONF_CFLAGS
  12725. and NUTCONF_LIBS to avoid the need to call pkg-config.
  12726. See the pkg-config man page for more details.
  12727. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  12728. See \`config.log' for more details." "$LINENO" 5; }
  12729. else
  12730. NUTCONF_CFLAGS=$pkg_cv_NUTCONF_CFLAGS
  12731. NUTCONF_LIBS=$pkg_cv_NUTCONF_LIBS
  12732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12733. $as_echo "yes" >&6; }
  12734. :
  12735. fi
  12736. elif test $pkg_failed = untried; then
  12737. pkg_failed=no
  12738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NUTCONF" >&5
  12739. $as_echo_n "checking for NUTCONF... " >&6; }
  12740. if test -n "$PKG_CONFIG"; then
  12741. if test -n "$NUTCONF_CFLAGS"; then
  12742. pkg_cv_NUTCONF_CFLAGS="$NUTCONF_CFLAGS"
  12743. else
  12744. if test -n "$PKG_CONFIG" && \
  12745. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
  12746. ($PKG_CONFIG --exists --print-errors "lua") 2>&5
  12747. ac_status=$?
  12748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12749. test $ac_status = 0; }; then
  12750. pkg_cv_NUTCONF_CFLAGS=`$PKG_CONFIG --cflags "lua" 2>/dev/null`
  12751. else
  12752. pkg_failed=yes
  12753. fi
  12754. fi
  12755. else
  12756. pkg_failed=untried
  12757. fi
  12758. if test -n "$PKG_CONFIG"; then
  12759. if test -n "$NUTCONF_LIBS"; then
  12760. pkg_cv_NUTCONF_LIBS="$NUTCONF_LIBS"
  12761. else
  12762. if test -n "$PKG_CONFIG" && \
  12763. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
  12764. ($PKG_CONFIG --exists --print-errors "lua") 2>&5
  12765. ac_status=$?
  12766. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12767. test $ac_status = 0; }; then
  12768. pkg_cv_NUTCONF_LIBS=`$PKG_CONFIG --libs "lua" 2>/dev/null`
  12769. else
  12770. pkg_failed=yes
  12771. fi
  12772. fi
  12773. else
  12774. pkg_failed=untried
  12775. fi
  12776. if test $pkg_failed = yes; then
  12777. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12778. _pkg_short_errors_supported=yes
  12779. else
  12780. _pkg_short_errors_supported=no
  12781. fi
  12782. if test $_pkg_short_errors_supported = yes; then
  12783. NUTCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua"`
  12784. else
  12785. NUTCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua"`
  12786. fi
  12787. # Put the nasty error message in config.log where it belongs
  12788. echo "$NUTCONF_PKG_ERRORS" >&5
  12789. as_fn_error "Package requirements (lua) were not met:
  12790. $NUTCONF_PKG_ERRORS
  12791. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  12792. installed software in a non-standard prefix.
  12793. Alternatively, you may set the environment variables NUTCONF_CFLAGS
  12794. and NUTCONF_LIBS to avoid the need to call pkg-config.
  12795. See the pkg-config man page for more details.
  12796. " "$LINENO" 5
  12797. elif test $pkg_failed = untried; then
  12798. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12799. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12800. as_fn_error "The pkg-config script could not be found or is too old. Make sure it
  12801. is in your PATH or set the PKG_CONFIG environment variable to the full
  12802. path to pkg-config.
  12803. Alternatively, you may set the environment variables NUTCONF_CFLAGS
  12804. and NUTCONF_LIBS to avoid the need to call pkg-config.
  12805. See the pkg-config man page for more details.
  12806. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  12807. See \`config.log' for more details." "$LINENO" 5; }
  12808. else
  12809. NUTCONF_CFLAGS=$pkg_cv_NUTCONF_CFLAGS
  12810. NUTCONF_LIBS=$pkg_cv_NUTCONF_LIBS
  12811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12812. $as_echo "yes" >&6; }
  12813. :
  12814. fi
  12815. else
  12816. NUTCONF_CFLAGS=$pkg_cv_NUTCONF_CFLAGS
  12817. NUTCONF_LIBS=$pkg_cv_NUTCONF_LIBS
  12818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12819. $as_echo "yes" >&6; }
  12820. :
  12821. fi
  12822. elif test $pkg_failed = untried; then
  12823. pkg_failed=no
  12824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NUTCONF" >&5
  12825. $as_echo_n "checking for NUTCONF... " >&6; }
  12826. if test -n "$PKG_CONFIG"; then
  12827. if test -n "$NUTCONF_CFLAGS"; then
  12828. pkg_cv_NUTCONF_CFLAGS="$NUTCONF_CFLAGS"
  12829. else
  12830. if test -n "$PKG_CONFIG" && \
  12831. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
  12832. ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
  12833. ac_status=$?
  12834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12835. test $ac_status = 0; }; then
  12836. pkg_cv_NUTCONF_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
  12837. else
  12838. pkg_failed=yes
  12839. fi
  12840. fi
  12841. else
  12842. pkg_failed=untried
  12843. fi
  12844. if test -n "$PKG_CONFIG"; then
  12845. if test -n "$NUTCONF_LIBS"; then
  12846. pkg_cv_NUTCONF_LIBS="$NUTCONF_LIBS"
  12847. else
  12848. if test -n "$PKG_CONFIG" && \
  12849. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
  12850. ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
  12851. ac_status=$?
  12852. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12853. test $ac_status = 0; }; then
  12854. pkg_cv_NUTCONF_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
  12855. else
  12856. pkg_failed=yes
  12857. fi
  12858. fi
  12859. else
  12860. pkg_failed=untried
  12861. fi
  12862. if test $pkg_failed = yes; then
  12863. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12864. _pkg_short_errors_supported=yes
  12865. else
  12866. _pkg_short_errors_supported=no
  12867. fi
  12868. if test $_pkg_short_errors_supported = yes; then
  12869. NUTCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1"`
  12870. else
  12871. NUTCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1"`
  12872. fi
  12873. # Put the nasty error message in config.log where it belongs
  12874. echo "$NUTCONF_PKG_ERRORS" >&5
  12875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12876. $as_echo "no" >&6; }
  12877. pkg_failed=no
  12878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NUTCONF" >&5
  12879. $as_echo_n "checking for NUTCONF... " >&6; }
  12880. if test -n "$PKG_CONFIG"; then
  12881. if test -n "$NUTCONF_CFLAGS"; then
  12882. pkg_cv_NUTCONF_CFLAGS="$NUTCONF_CFLAGS"
  12883. else
  12884. if test -n "$PKG_CONFIG" && \
  12885. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
  12886. ($PKG_CONFIG --exists --print-errors "lua") 2>&5
  12887. ac_status=$?
  12888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12889. test $ac_status = 0; }; then
  12890. pkg_cv_NUTCONF_CFLAGS=`$PKG_CONFIG --cflags "lua" 2>/dev/null`
  12891. else
  12892. pkg_failed=yes
  12893. fi
  12894. fi
  12895. else
  12896. pkg_failed=untried
  12897. fi
  12898. if test -n "$PKG_CONFIG"; then
  12899. if test -n "$NUTCONF_LIBS"; then
  12900. pkg_cv_NUTCONF_LIBS="$NUTCONF_LIBS"
  12901. else
  12902. if test -n "$PKG_CONFIG" && \
  12903. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
  12904. ($PKG_CONFIG --exists --print-errors "lua") 2>&5
  12905. ac_status=$?
  12906. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12907. test $ac_status = 0; }; then
  12908. pkg_cv_NUTCONF_LIBS=`$PKG_CONFIG --libs "lua" 2>/dev/null`
  12909. else
  12910. pkg_failed=yes
  12911. fi
  12912. fi
  12913. else
  12914. pkg_failed=untried
  12915. fi
  12916. if test $pkg_failed = yes; then
  12917. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12918. _pkg_short_errors_supported=yes
  12919. else
  12920. _pkg_short_errors_supported=no
  12921. fi
  12922. if test $_pkg_short_errors_supported = yes; then
  12923. NUTCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua"`
  12924. else
  12925. NUTCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua"`
  12926. fi
  12927. # Put the nasty error message in config.log where it belongs
  12928. echo "$NUTCONF_PKG_ERRORS" >&5
  12929. as_fn_error "Package requirements (lua) were not met:
  12930. $NUTCONF_PKG_ERRORS
  12931. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  12932. installed software in a non-standard prefix.
  12933. Alternatively, you may set the environment variables NUTCONF_CFLAGS
  12934. and NUTCONF_LIBS to avoid the need to call pkg-config.
  12935. See the pkg-config man page for more details.
  12936. " "$LINENO" 5
  12937. elif test $pkg_failed = untried; then
  12938. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12939. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12940. as_fn_error "The pkg-config script could not be found or is too old. Make sure it
  12941. is in your PATH or set the PKG_CONFIG environment variable to the full
  12942. path to pkg-config.
  12943. Alternatively, you may set the environment variables NUTCONF_CFLAGS
  12944. and NUTCONF_LIBS to avoid the need to call pkg-config.
  12945. See the pkg-config man page for more details.
  12946. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  12947. See \`config.log' for more details." "$LINENO" 5; }
  12948. else
  12949. NUTCONF_CFLAGS=$pkg_cv_NUTCONF_CFLAGS
  12950. NUTCONF_LIBS=$pkg_cv_NUTCONF_LIBS
  12951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12952. $as_echo "yes" >&6; }
  12953. :
  12954. fi
  12955. elif test $pkg_failed = untried; then
  12956. pkg_failed=no
  12957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NUTCONF" >&5
  12958. $as_echo_n "checking for NUTCONF... " >&6; }
  12959. if test -n "$PKG_CONFIG"; then
  12960. if test -n "$NUTCONF_CFLAGS"; then
  12961. pkg_cv_NUTCONF_CFLAGS="$NUTCONF_CFLAGS"
  12962. else
  12963. if test -n "$PKG_CONFIG" && \
  12964. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
  12965. ($PKG_CONFIG --exists --print-errors "lua") 2>&5
  12966. ac_status=$?
  12967. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12968. test $ac_status = 0; }; then
  12969. pkg_cv_NUTCONF_CFLAGS=`$PKG_CONFIG --cflags "lua" 2>/dev/null`
  12970. else
  12971. pkg_failed=yes
  12972. fi
  12973. fi
  12974. else
  12975. pkg_failed=untried
  12976. fi
  12977. if test -n "$PKG_CONFIG"; then
  12978. if test -n "$NUTCONF_LIBS"; then
  12979. pkg_cv_NUTCONF_LIBS="$NUTCONF_LIBS"
  12980. else
  12981. if test -n "$PKG_CONFIG" && \
  12982. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
  12983. ($PKG_CONFIG --exists --print-errors "lua") 2>&5
  12984. ac_status=$?
  12985. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12986. test $ac_status = 0; }; then
  12987. pkg_cv_NUTCONF_LIBS=`$PKG_CONFIG --libs "lua" 2>/dev/null`
  12988. else
  12989. pkg_failed=yes
  12990. fi
  12991. fi
  12992. else
  12993. pkg_failed=untried
  12994. fi
  12995. if test $pkg_failed = yes; then
  12996. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12997. _pkg_short_errors_supported=yes
  12998. else
  12999. _pkg_short_errors_supported=no
  13000. fi
  13001. if test $_pkg_short_errors_supported = yes; then
  13002. NUTCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua"`
  13003. else
  13004. NUTCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua"`
  13005. fi
  13006. # Put the nasty error message in config.log where it belongs
  13007. echo "$NUTCONF_PKG_ERRORS" >&5
  13008. as_fn_error "Package requirements (lua) were not met:
  13009. $NUTCONF_PKG_ERRORS
  13010. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13011. installed software in a non-standard prefix.
  13012. Alternatively, you may set the environment variables NUTCONF_CFLAGS
  13013. and NUTCONF_LIBS to avoid the need to call pkg-config.
  13014. See the pkg-config man page for more details.
  13015. " "$LINENO" 5
  13016. elif test $pkg_failed = untried; then
  13017. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13018. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13019. as_fn_error "The pkg-config script could not be found or is too old. Make sure it
  13020. is in your PATH or set the PKG_CONFIG environment variable to the full
  13021. path to pkg-config.
  13022. Alternatively, you may set the environment variables NUTCONF_CFLAGS
  13023. and NUTCONF_LIBS to avoid the need to call pkg-config.
  13024. See the pkg-config man page for more details.
  13025. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13026. See \`config.log' for more details." "$LINENO" 5; }
  13027. else
  13028. NUTCONF_CFLAGS=$pkg_cv_NUTCONF_CFLAGS
  13029. NUTCONF_LIBS=$pkg_cv_NUTCONF_LIBS
  13030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13031. $as_echo "yes" >&6; }
  13032. :
  13033. fi
  13034. else
  13035. NUTCONF_CFLAGS=$pkg_cv_NUTCONF_CFLAGS
  13036. NUTCONF_LIBS=$pkg_cv_NUTCONF_LIBS
  13037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13038. $as_echo "yes" >&6; }
  13039. :
  13040. fi
  13041. else
  13042. NUTCONF_CFLAGS=$pkg_cv_NUTCONF_CFLAGS
  13043. NUTCONF_LIBS=$pkg_cv_NUTCONF_LIBS
  13044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13045. $as_echo "yes" >&6; }
  13046. :
  13047. fi
  13048. if test x$nutconf_gui_ok = xyes; then
  13049. { $as_echo "$as_me:${as_lineno-$LINENO}: nutconfgui is enabled" >&5
  13050. $as_echo "$as_me: nutconfgui is enabled" >&6;}
  13051. else
  13052. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nutconfgui won't be build" >&5
  13053. $as_echo "$as_me: WARNING: nutconfgui won't be build" >&2;}
  13054. fi
  13055. if test x$nutconf_gui_ok = xyes; then
  13056. BUILD_NUTCONF_GUI_TRUE=
  13057. BUILD_NUTCONF_GUI_FALSE='#'
  13058. else
  13059. BUILD_NUTCONF_GUI_TRUE='#'
  13060. BUILD_NUTCONF_GUI_FALSE=
  13061. fi
  13062. ac_config_files="$ac_config_files Makefile src/Makefile"
  13063. cat >confcache <<\_ACEOF
  13064. # This file is a shell script that caches the results of configure
  13065. # tests run on this system so they can be shared between configure
  13066. # scripts and configure runs, see configure's option --config-cache.
  13067. # It is not useful on other systems. If it contains results you don't
  13068. # want to keep, you may remove or edit it.
  13069. #
  13070. # config.status only pays attention to the cache file if you give it
  13071. # the --recheck option to rerun configure.
  13072. #
  13073. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13074. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13075. # following values.
  13076. _ACEOF
  13077. # The following way of writing the cache mishandles newlines in values,
  13078. # but we know of no workaround that is simple, portable, and efficient.
  13079. # So, we kill variables containing newlines.
  13080. # Ultrix sh set writes to stderr and can't be redirected directly,
  13081. # and sets the high bit in the cache file unless we assign to the vars.
  13082. (
  13083. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13084. eval ac_val=\$$ac_var
  13085. case $ac_val in #(
  13086. *${as_nl}*)
  13087. case $ac_var in #(
  13088. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13089. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13090. esac
  13091. case $ac_var in #(
  13092. _ | IFS | as_nl) ;; #(
  13093. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13094. *) { eval $ac_var=; unset $ac_var;} ;;
  13095. esac ;;
  13096. esac
  13097. done
  13098. (set) 2>&1 |
  13099. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13100. *${as_nl}ac_space=\ *)
  13101. # `set' does not quote correctly, so add quotes: double-quote
  13102. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13103. sed -n \
  13104. "s/'/'\\\\''/g;
  13105. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13106. ;; #(
  13107. *)
  13108. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13109. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13110. ;;
  13111. esac |
  13112. sort
  13113. ) |
  13114. sed '
  13115. /^ac_cv_env_/b end
  13116. t clear
  13117. :clear
  13118. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13119. t end
  13120. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13121. :end' >>confcache
  13122. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13123. if test -w "$cache_file"; then
  13124. test "x$cache_file" != "x/dev/null" &&
  13125. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13126. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13127. cat confcache >$cache_file
  13128. else
  13129. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13130. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13131. fi
  13132. fi
  13133. rm -f confcache
  13134. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13135. # Let make expand exec_prefix.
  13136. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13137. DEFS=-DHAVE_CONFIG_H
  13138. ac_libobjs=
  13139. ac_ltlibobjs=
  13140. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13141. # 1. Remove the extension, and $U if already installed.
  13142. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13143. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13144. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13145. # will be set to the directory where LIBOBJS objects are built.
  13146. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13147. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13148. done
  13149. LIBOBJS=$ac_libobjs
  13150. LTLIBOBJS=$ac_ltlibobjs
  13151. if test -n "$EXEEXT"; then
  13152. am__EXEEXT_TRUE=
  13153. am__EXEEXT_FALSE='#'
  13154. else
  13155. am__EXEEXT_TRUE='#'
  13156. am__EXEEXT_FALSE=
  13157. fi
  13158. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13159. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  13160. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13161. fi
  13162. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13163. as_fn_error "conditional \"AMDEP\" was never defined.
  13164. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13165. fi
  13166. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13167. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13168. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13169. fi
  13170. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13171. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13172. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13173. fi
  13174. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13175. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13176. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13177. fi
  13178. if test -z "${BUILD_NUTCONF_GUI_TRUE}" && test -z "${BUILD_NUTCONF_GUI_FALSE}"; then
  13179. as_fn_error "conditional \"BUILD_NUTCONF_GUI\" was never defined.
  13180. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13181. fi
  13182. : ${CONFIG_STATUS=./config.status}
  13183. ac_write_fail=0
  13184. ac_clean_files_save=$ac_clean_files
  13185. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13186. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13187. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13188. as_write_fail=0
  13189. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13190. #! $SHELL
  13191. # Generated by $as_me.
  13192. # Run this file to recreate the current configuration.
  13193. # Compiler output produced by configure, useful for debugging
  13194. # configure, is in config.log if it exists.
  13195. debug=false
  13196. ac_cs_recheck=false
  13197. ac_cs_silent=false
  13198. SHELL=\${CONFIG_SHELL-$SHELL}
  13199. export SHELL
  13200. _ASEOF
  13201. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13202. ## -------------------- ##
  13203. ## M4sh Initialization. ##
  13204. ## -------------------- ##
  13205. # Be more Bourne compatible
  13206. DUALCASE=1; export DUALCASE # for MKS sh
  13207. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13208. emulate sh
  13209. NULLCMD=:
  13210. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13211. # is contrary to our usage. Disable this feature.
  13212. alias -g '${1+"$@"}'='"$@"'
  13213. setopt NO_GLOB_SUBST
  13214. else
  13215. case `(set -o) 2>/dev/null` in #(
  13216. *posix*) :
  13217. set -o posix ;; #(
  13218. *) :
  13219. ;;
  13220. esac
  13221. fi
  13222. as_nl='
  13223. '
  13224. export as_nl
  13225. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13226. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13227. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13228. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13229. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13230. # but without wasting forks for bash or zsh.
  13231. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13232. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13233. as_echo='print -r --'
  13234. as_echo_n='print -rn --'
  13235. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13236. as_echo='printf %s\n'
  13237. as_echo_n='printf %s'
  13238. else
  13239. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13240. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13241. as_echo_n='/usr/ucb/echo -n'
  13242. else
  13243. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13244. as_echo_n_body='eval
  13245. arg=$1;
  13246. case $arg in #(
  13247. *"$as_nl"*)
  13248. expr "X$arg" : "X\\(.*\\)$as_nl";
  13249. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13250. esac;
  13251. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13252. '
  13253. export as_echo_n_body
  13254. as_echo_n='sh -c $as_echo_n_body as_echo'
  13255. fi
  13256. export as_echo_body
  13257. as_echo='sh -c $as_echo_body as_echo'
  13258. fi
  13259. # The user is always right.
  13260. if test "${PATH_SEPARATOR+set}" != set; then
  13261. PATH_SEPARATOR=:
  13262. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13263. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13264. PATH_SEPARATOR=';'
  13265. }
  13266. fi
  13267. # IFS
  13268. # We need space, tab and new line, in precisely that order. Quoting is
  13269. # there to prevent editors from complaining about space-tab.
  13270. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13271. # splitting by setting IFS to empty value.)
  13272. IFS=" "" $as_nl"
  13273. # Find who we are. Look in the path if we contain no directory separator.
  13274. case $0 in #((
  13275. *[\\/]* ) as_myself=$0 ;;
  13276. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13277. for as_dir in $PATH
  13278. do
  13279. IFS=$as_save_IFS
  13280. test -z "$as_dir" && as_dir=.
  13281. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13282. done
  13283. IFS=$as_save_IFS
  13284. ;;
  13285. esac
  13286. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13287. # in which case we are not to be found in the path.
  13288. if test "x$as_myself" = x; then
  13289. as_myself=$0
  13290. fi
  13291. if test ! -f "$as_myself"; then
  13292. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13293. exit 1
  13294. fi
  13295. # Unset variables that we do not need and which cause bugs (e.g. in
  13296. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13297. # suppresses any "Segmentation fault" message there. '((' could
  13298. # trigger a bug in pdksh 5.2.14.
  13299. for as_var in BASH_ENV ENV MAIL MAILPATH
  13300. do eval test x\${$as_var+set} = xset \
  13301. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13302. done
  13303. PS1='$ '
  13304. PS2='> '
  13305. PS4='+ '
  13306. # NLS nuisances.
  13307. LC_ALL=C
  13308. export LC_ALL
  13309. LANGUAGE=C
  13310. export LANGUAGE
  13311. # CDPATH.
  13312. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13313. # as_fn_error ERROR [LINENO LOG_FD]
  13314. # ---------------------------------
  13315. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13316. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13317. # script with status $?, using 1 if that was 0.
  13318. as_fn_error ()
  13319. {
  13320. as_status=$?; test $as_status -eq 0 && as_status=1
  13321. if test "$3"; then
  13322. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13323. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13324. fi
  13325. $as_echo "$as_me: error: $1" >&2
  13326. as_fn_exit $as_status
  13327. } # as_fn_error
  13328. # as_fn_set_status STATUS
  13329. # -----------------------
  13330. # Set $? to STATUS, without forking.
  13331. as_fn_set_status ()
  13332. {
  13333. return $1
  13334. } # as_fn_set_status
  13335. # as_fn_exit STATUS
  13336. # -----------------
  13337. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13338. as_fn_exit ()
  13339. {
  13340. set +e
  13341. as_fn_set_status $1
  13342. exit $1
  13343. } # as_fn_exit
  13344. # as_fn_unset VAR
  13345. # ---------------
  13346. # Portably unset VAR.
  13347. as_fn_unset ()
  13348. {
  13349. { eval $1=; unset $1;}
  13350. }
  13351. as_unset=as_fn_unset
  13352. # as_fn_append VAR VALUE
  13353. # ----------------------
  13354. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13355. # advantage of any shell optimizations that allow amortized linear growth over
  13356. # repeated appends, instead of the typical quadratic growth present in naive
  13357. # implementations.
  13358. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13359. eval 'as_fn_append ()
  13360. {
  13361. eval $1+=\$2
  13362. }'
  13363. else
  13364. as_fn_append ()
  13365. {
  13366. eval $1=\$$1\$2
  13367. }
  13368. fi # as_fn_append
  13369. # as_fn_arith ARG...
  13370. # ------------------
  13371. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13372. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13373. # must be portable across $(()) and expr.
  13374. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13375. eval 'as_fn_arith ()
  13376. {
  13377. as_val=$(( $* ))
  13378. }'
  13379. else
  13380. as_fn_arith ()
  13381. {
  13382. as_val=`expr "$@" || test $? -eq 1`
  13383. }
  13384. fi # as_fn_arith
  13385. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13386. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13387. as_expr=expr
  13388. else
  13389. as_expr=false
  13390. fi
  13391. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13392. as_basename=basename
  13393. else
  13394. as_basename=false
  13395. fi
  13396. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13397. as_dirname=dirname
  13398. else
  13399. as_dirname=false
  13400. fi
  13401. as_me=`$as_basename -- "$0" ||
  13402. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13403. X"$0" : 'X\(//\)$' \| \
  13404. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13405. $as_echo X/"$0" |
  13406. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13407. s//\1/
  13408. q
  13409. }
  13410. /^X\/\(\/\/\)$/{
  13411. s//\1/
  13412. q
  13413. }
  13414. /^X\/\(\/\).*/{
  13415. s//\1/
  13416. q
  13417. }
  13418. s/.*/./; q'`
  13419. # Avoid depending upon Character Ranges.
  13420. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13421. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13422. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13423. as_cr_digits='0123456789'
  13424. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13425. ECHO_C= ECHO_N= ECHO_T=
  13426. case `echo -n x` in #(((((
  13427. -n*)
  13428. case `echo 'xy\c'` in
  13429. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13430. xy) ECHO_C='\c';;
  13431. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13432. ECHO_T=' ';;
  13433. esac;;
  13434. *)
  13435. ECHO_N='-n';;
  13436. esac
  13437. rm -f conf$$ conf$$.exe conf$$.file
  13438. if test -d conf$$.dir; then
  13439. rm -f conf$$.dir/conf$$.file
  13440. else
  13441. rm -f conf$$.dir
  13442. mkdir conf$$.dir 2>/dev/null
  13443. fi
  13444. if (echo >conf$$.file) 2>/dev/null; then
  13445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13446. as_ln_s='ln -s'
  13447. # ... but there are two gotchas:
  13448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13450. # In both cases, we have to default to `cp -p'.
  13451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13452. as_ln_s='cp -p'
  13453. elif ln conf$$.file conf$$ 2>/dev/null; then
  13454. as_ln_s=ln
  13455. else
  13456. as_ln_s='cp -p'
  13457. fi
  13458. else
  13459. as_ln_s='cp -p'
  13460. fi
  13461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13462. rmdir conf$$.dir 2>/dev/null
  13463. # as_fn_mkdir_p
  13464. # -------------
  13465. # Create "$as_dir" as a directory, including parents if necessary.
  13466. as_fn_mkdir_p ()
  13467. {
  13468. case $as_dir in #(
  13469. -*) as_dir=./$as_dir;;
  13470. esac
  13471. test -d "$as_dir" || eval $as_mkdir_p || {
  13472. as_dirs=
  13473. while :; do
  13474. case $as_dir in #(
  13475. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13476. *) as_qdir=$as_dir;;
  13477. esac
  13478. as_dirs="'$as_qdir' $as_dirs"
  13479. as_dir=`$as_dirname -- "$as_dir" ||
  13480. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13481. X"$as_dir" : 'X\(//\)[^/]' \| \
  13482. X"$as_dir" : 'X\(//\)$' \| \
  13483. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13484. $as_echo X"$as_dir" |
  13485. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13486. s//\1/
  13487. q
  13488. }
  13489. /^X\(\/\/\)[^/].*/{
  13490. s//\1/
  13491. q
  13492. }
  13493. /^X\(\/\/\)$/{
  13494. s//\1/
  13495. q
  13496. }
  13497. /^X\(\/\).*/{
  13498. s//\1/
  13499. q
  13500. }
  13501. s/.*/./; q'`
  13502. test -d "$as_dir" && break
  13503. done
  13504. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13505. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13506. } # as_fn_mkdir_p
  13507. if mkdir -p . 2>/dev/null; then
  13508. as_mkdir_p='mkdir -p "$as_dir"'
  13509. else
  13510. test -d ./-p && rmdir ./-p
  13511. as_mkdir_p=false
  13512. fi
  13513. if test -x / >/dev/null 2>&1; then
  13514. as_test_x='test -x'
  13515. else
  13516. if ls -dL / >/dev/null 2>&1; then
  13517. as_ls_L_option=L
  13518. else
  13519. as_ls_L_option=
  13520. fi
  13521. as_test_x='
  13522. eval sh -c '\''
  13523. if test -d "$1"; then
  13524. test -d "$1/.";
  13525. else
  13526. case $1 in #(
  13527. -*)set "./$1";;
  13528. esac;
  13529. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13530. ???[sx]*):;;*)false;;esac;fi
  13531. '\'' sh
  13532. '
  13533. fi
  13534. as_executable_p=$as_test_x
  13535. # Sed expression to map a string onto a valid CPP name.
  13536. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13537. # Sed expression to map a string onto a valid variable name.
  13538. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13539. exec 6>&1
  13540. ## ----------------------------------- ##
  13541. ## Main body of $CONFIG_STATUS script. ##
  13542. ## ----------------------------------- ##
  13543. _ASEOF
  13544. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13545. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13546. # Save the log message, to keep $0 and so on meaningful, and to
  13547. # report actual input values of CONFIG_FILES etc. instead of their
  13548. # values after options handling.
  13549. ac_log="
  13550. This file was extended by nutconf $as_me 2.0.10, which was
  13551. generated by GNU Autoconf 2.65. Invocation command line was
  13552. CONFIG_FILES = $CONFIG_FILES
  13553. CONFIG_HEADERS = $CONFIG_HEADERS
  13554. CONFIG_LINKS = $CONFIG_LINKS
  13555. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13556. $ $0 $@
  13557. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13558. "
  13559. _ACEOF
  13560. case $ac_config_files in *"
  13561. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13562. esac
  13563. case $ac_config_headers in *"
  13564. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13565. esac
  13566. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13567. # Files that config.status was made for.
  13568. config_files="$ac_config_files"
  13569. config_headers="$ac_config_headers"
  13570. config_commands="$ac_config_commands"
  13571. _ACEOF
  13572. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13573. ac_cs_usage="\
  13574. \`$as_me' instantiates files and other configuration actions
  13575. from templates according to the current configuration. Unless the files
  13576. and actions are specified as TAGs, all are instantiated by default.
  13577. Usage: $0 [OPTION]... [TAG]...
  13578. -h, --help print this help, then exit
  13579. -V, --version print version number and configuration settings, then exit
  13580. --config print configuration, then exit
  13581. -q, --quiet, --silent
  13582. do not print progress messages
  13583. -d, --debug don't remove temporary files
  13584. --recheck update $as_me by reconfiguring in the same conditions
  13585. --file=FILE[:TEMPLATE]
  13586. instantiate the configuration file FILE
  13587. --header=FILE[:TEMPLATE]
  13588. instantiate the configuration header FILE
  13589. Configuration files:
  13590. $config_files
  13591. Configuration headers:
  13592. $config_headers
  13593. Configuration commands:
  13594. $config_commands
  13595. Report bugs to the package provider."
  13596. _ACEOF
  13597. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13598. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13599. ac_cs_version="\\
  13600. nutconf config.status 2.0.10
  13601. configured by $0, generated by GNU Autoconf 2.65,
  13602. with options \\"\$ac_cs_config\\"
  13603. Copyright (C) 2009 Free Software Foundation, Inc.
  13604. This config.status script is free software; the Free Software Foundation
  13605. gives unlimited permission to copy, distribute and modify it."
  13606. ac_pwd='$ac_pwd'
  13607. srcdir='$srcdir'
  13608. INSTALL='$INSTALL'
  13609. MKDIR_P='$MKDIR_P'
  13610. AWK='$AWK'
  13611. test -n "\$AWK" || AWK=awk
  13612. _ACEOF
  13613. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13614. # The default lists apply if the user does not specify any file.
  13615. ac_need_defaults=:
  13616. while test $# != 0
  13617. do
  13618. case $1 in
  13619. --*=*)
  13620. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13621. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13622. ac_shift=:
  13623. ;;
  13624. *)
  13625. ac_option=$1
  13626. ac_optarg=$2
  13627. ac_shift=shift
  13628. ;;
  13629. esac
  13630. case $ac_option in
  13631. # Handling of the options.
  13632. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13633. ac_cs_recheck=: ;;
  13634. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13635. $as_echo "$ac_cs_version"; exit ;;
  13636. --config | --confi | --conf | --con | --co | --c )
  13637. $as_echo "$ac_cs_config"; exit ;;
  13638. --debug | --debu | --deb | --de | --d | -d )
  13639. debug=: ;;
  13640. --file | --fil | --fi | --f )
  13641. $ac_shift
  13642. case $ac_optarg in
  13643. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13644. esac
  13645. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13646. ac_need_defaults=false;;
  13647. --header | --heade | --head | --hea )
  13648. $ac_shift
  13649. case $ac_optarg in
  13650. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13651. esac
  13652. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13653. ac_need_defaults=false;;
  13654. --he | --h)
  13655. # Conflict between --help and --header
  13656. as_fn_error "ambiguous option: \`$1'
  13657. Try \`$0 --help' for more information.";;
  13658. --help | --hel | -h )
  13659. $as_echo "$ac_cs_usage"; exit ;;
  13660. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13661. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13662. ac_cs_silent=: ;;
  13663. # This is an error.
  13664. -*) as_fn_error "unrecognized option: \`$1'
  13665. Try \`$0 --help' for more information." ;;
  13666. *) as_fn_append ac_config_targets " $1"
  13667. ac_need_defaults=false ;;
  13668. esac
  13669. shift
  13670. done
  13671. ac_configure_extra_args=
  13672. if $ac_cs_silent; then
  13673. exec 6>/dev/null
  13674. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13675. fi
  13676. _ACEOF
  13677. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13678. if \$ac_cs_recheck; then
  13679. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13680. shift
  13681. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13682. CONFIG_SHELL='$SHELL'
  13683. export CONFIG_SHELL
  13684. exec "\$@"
  13685. fi
  13686. _ACEOF
  13687. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13688. exec 5>>config.log
  13689. {
  13690. echo
  13691. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13692. ## Running $as_me. ##
  13693. _ASBOX
  13694. $as_echo "$ac_log"
  13695. } >&5
  13696. _ACEOF
  13697. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13698. #
  13699. # INIT-COMMANDS
  13700. #
  13701. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13702. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13703. # if CDPATH is set.
  13704. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13705. sed_quote_subst='$sed_quote_subst'
  13706. double_quote_subst='$double_quote_subst'
  13707. delay_variable_subst='$delay_variable_subst'
  13708. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  13709. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  13710. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  13711. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  13712. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  13713. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  13714. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13715. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  13716. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  13717. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13718. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  13719. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  13720. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  13721. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  13722. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  13723. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13724. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13725. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  13726. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  13727. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  13728. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  13729. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  13730. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  13731. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  13732. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  13733. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  13734. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13735. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13736. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  13737. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  13738. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  13739. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  13740. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13741. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  13742. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  13743. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13744. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13745. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13746. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  13747. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13748. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  13749. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  13750. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  13751. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  13752. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  13753. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13754. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  13755. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  13756. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  13757. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  13758. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13759. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  13760. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  13761. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  13762. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  13763. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  13764. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  13765. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  13766. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  13767. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13768. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  13769. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  13770. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13771. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13772. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  13773. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  13774. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13775. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13776. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  13777. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13778. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13779. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13780. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13781. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13782. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13783. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13784. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13785. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13786. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13787. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13788. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  13789. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  13790. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  13791. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  13792. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13793. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  13794. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  13795. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  13796. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  13797. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  13798. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13799. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13800. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13801. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13802. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13803. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  13804. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13805. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  13806. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  13807. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13808. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13809. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  13810. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13811. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13812. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13813. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13814. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13815. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13816. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  13817. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  13818. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13819. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13820. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  13821. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  13822. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  13823. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  13824. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13825. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13826. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  13827. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13828. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13829. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  13830. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  13831. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  13832. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13833. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13834. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13835. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13836. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13837. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13838. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13839. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13840. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13841. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13842. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13843. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13844. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13845. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13846. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13847. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13848. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13849. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13850. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13851. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13852. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13853. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13854. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13855. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13856. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13857. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13858. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13859. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13860. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13861. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13862. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13863. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13864. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13865. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13866. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13867. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13868. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13869. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13870. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13871. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13872. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13873. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13874. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13875. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13876. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13877. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13878. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13879. LTCC='$LTCC'
  13880. LTCFLAGS='$LTCFLAGS'
  13881. compiler='$compiler_DEFAULT'
  13882. # Quote evaled strings.
  13883. for var in SED \
  13884. GREP \
  13885. EGREP \
  13886. FGREP \
  13887. LD \
  13888. NM \
  13889. LN_S \
  13890. lt_SP2NL \
  13891. lt_NL2SP \
  13892. reload_flag \
  13893. OBJDUMP \
  13894. deplibs_check_method \
  13895. file_magic_cmd \
  13896. AR \
  13897. AR_FLAGS \
  13898. STRIP \
  13899. RANLIB \
  13900. CC \
  13901. CFLAGS \
  13902. compiler \
  13903. lt_cv_sys_global_symbol_pipe \
  13904. lt_cv_sys_global_symbol_to_cdecl \
  13905. lt_cv_sys_global_symbol_to_c_name_address \
  13906. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13907. SHELL \
  13908. ECHO \
  13909. lt_prog_compiler_no_builtin_flag \
  13910. lt_prog_compiler_wl \
  13911. lt_prog_compiler_pic \
  13912. lt_prog_compiler_static \
  13913. lt_cv_prog_compiler_c_o \
  13914. need_locks \
  13915. DSYMUTIL \
  13916. NMEDIT \
  13917. LIPO \
  13918. OTOOL \
  13919. OTOOL64 \
  13920. shrext_cmds \
  13921. export_dynamic_flag_spec \
  13922. whole_archive_flag_spec \
  13923. compiler_needs_object \
  13924. with_gnu_ld \
  13925. allow_undefined_flag \
  13926. no_undefined_flag \
  13927. hardcode_libdir_flag_spec \
  13928. hardcode_libdir_flag_spec_ld \
  13929. hardcode_libdir_separator \
  13930. fix_srcfile_path \
  13931. exclude_expsyms \
  13932. include_expsyms \
  13933. file_list_spec \
  13934. variables_saved_for_relink \
  13935. libname_spec \
  13936. library_names_spec \
  13937. soname_spec \
  13938. finish_eval \
  13939. old_striplib \
  13940. striplib \
  13941. compiler_lib_search_dirs \
  13942. predep_objects \
  13943. postdep_objects \
  13944. predeps \
  13945. postdeps \
  13946. compiler_lib_search_path \
  13947. LD_CXX \
  13948. compiler_CXX \
  13949. lt_prog_compiler_no_builtin_flag_CXX \
  13950. lt_prog_compiler_wl_CXX \
  13951. lt_prog_compiler_pic_CXX \
  13952. lt_prog_compiler_static_CXX \
  13953. lt_cv_prog_compiler_c_o_CXX \
  13954. export_dynamic_flag_spec_CXX \
  13955. whole_archive_flag_spec_CXX \
  13956. compiler_needs_object_CXX \
  13957. with_gnu_ld_CXX \
  13958. allow_undefined_flag_CXX \
  13959. no_undefined_flag_CXX \
  13960. hardcode_libdir_flag_spec_CXX \
  13961. hardcode_libdir_flag_spec_ld_CXX \
  13962. hardcode_libdir_separator_CXX \
  13963. fix_srcfile_path_CXX \
  13964. exclude_expsyms_CXX \
  13965. include_expsyms_CXX \
  13966. file_list_spec_CXX \
  13967. compiler_lib_search_dirs_CXX \
  13968. predep_objects_CXX \
  13969. postdep_objects_CXX \
  13970. predeps_CXX \
  13971. postdeps_CXX \
  13972. compiler_lib_search_path_CXX; do
  13973. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13974. *[\\\\\\\`\\"\\\$]*)
  13975. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13976. ;;
  13977. *)
  13978. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13979. ;;
  13980. esac
  13981. done
  13982. # Double-quote double-evaled strings.
  13983. for var in reload_cmds \
  13984. old_postinstall_cmds \
  13985. old_postuninstall_cmds \
  13986. old_archive_cmds \
  13987. extract_expsyms_cmds \
  13988. old_archive_from_new_cmds \
  13989. old_archive_from_expsyms_cmds \
  13990. archive_cmds \
  13991. archive_expsym_cmds \
  13992. module_cmds \
  13993. module_expsym_cmds \
  13994. export_symbols_cmds \
  13995. prelink_cmds \
  13996. postinstall_cmds \
  13997. postuninstall_cmds \
  13998. finish_cmds \
  13999. sys_lib_search_path_spec \
  14000. sys_lib_dlsearch_path_spec \
  14001. old_archive_cmds_CXX \
  14002. old_archive_from_new_cmds_CXX \
  14003. old_archive_from_expsyms_cmds_CXX \
  14004. archive_cmds_CXX \
  14005. archive_expsym_cmds_CXX \
  14006. module_cmds_CXX \
  14007. module_expsym_cmds_CXX \
  14008. export_symbols_cmds_CXX \
  14009. prelink_cmds_CXX; do
  14010. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14011. *[\\\\\\\`\\"\\\$]*)
  14012. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14013. ;;
  14014. *)
  14015. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14016. ;;
  14017. esac
  14018. done
  14019. # Fix-up fallback echo if it was mangled by the above quoting rules.
  14020. case \$lt_ECHO in
  14021. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  14022. ;;
  14023. esac
  14024. ac_aux_dir='$ac_aux_dir'
  14025. xsi_shell='$xsi_shell'
  14026. lt_shell_append='$lt_shell_append'
  14027. # See if we are running on zsh, and set the options which allow our
  14028. # commands through without removal of \ escapes INIT.
  14029. if test -n "\${ZSH_VERSION+set}" ; then
  14030. setopt NO_GLOB_SUBST
  14031. fi
  14032. PACKAGE='$PACKAGE'
  14033. VERSION='$VERSION'
  14034. TIMESTAMP='$TIMESTAMP'
  14035. RM='$RM'
  14036. ofile='$ofile'
  14037. _ACEOF
  14038. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14039. # Handling of arguments.
  14040. for ac_config_target in $ac_config_targets
  14041. do
  14042. case $ac_config_target in
  14043. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14044. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14045. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14046. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14047. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14048. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14049. esac
  14050. done
  14051. # If the user did not use the arguments to specify the items to instantiate,
  14052. # then the envvar interface is used. Set only those that are not.
  14053. # We use the long form for the default assignment because of an extremely
  14054. # bizarre bug on SunOS 4.1.3.
  14055. if $ac_need_defaults; then
  14056. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14057. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14058. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14059. fi
  14060. # Have a temporary directory for convenience. Make it in the build tree
  14061. # simply because there is no reason against having it here, and in addition,
  14062. # creating and moving files from /tmp can sometimes cause problems.
  14063. # Hook for its removal unless debugging.
  14064. # Note that there is a small window in which the directory will not be cleaned:
  14065. # after its creation but before its name has been assigned to `$tmp'.
  14066. $debug ||
  14067. {
  14068. tmp=
  14069. trap 'exit_status=$?
  14070. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14071. ' 0
  14072. trap 'as_fn_exit 1' 1 2 13 15
  14073. }
  14074. # Create a (secure) tmp directory for tmp files.
  14075. {
  14076. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14077. test -n "$tmp" && test -d "$tmp"
  14078. } ||
  14079. {
  14080. tmp=./conf$$-$RANDOM
  14081. (umask 077 && mkdir "$tmp")
  14082. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14083. # Set up the scripts for CONFIG_FILES section.
  14084. # No need to generate them if there are no CONFIG_FILES.
  14085. # This happens for instance with `./config.status config.h'.
  14086. if test -n "$CONFIG_FILES"; then
  14087. ac_cr=`echo X | tr X '\015'`
  14088. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14089. # But we know of no other shell where ac_cr would be empty at this
  14090. # point, so we can use a bashism as a fallback.
  14091. if test "x$ac_cr" = x; then
  14092. eval ac_cr=\$\'\\r\'
  14093. fi
  14094. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14095. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14096. ac_cs_awk_cr='\r'
  14097. else
  14098. ac_cs_awk_cr=$ac_cr
  14099. fi
  14100. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14101. _ACEOF
  14102. {
  14103. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14104. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14105. echo "_ACEOF"
  14106. } >conf$$subs.sh ||
  14107. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14108. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14109. ac_delim='%!_!# '
  14110. for ac_last_try in false false false false false :; do
  14111. . ./conf$$subs.sh ||
  14112. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14113. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14114. if test $ac_delim_n = $ac_delim_num; then
  14115. break
  14116. elif $ac_last_try; then
  14117. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14118. else
  14119. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14120. fi
  14121. done
  14122. rm -f conf$$subs.sh
  14123. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14124. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14125. _ACEOF
  14126. sed -n '
  14127. h
  14128. s/^/S["/; s/!.*/"]=/
  14129. p
  14130. g
  14131. s/^[^!]*!//
  14132. :repl
  14133. t repl
  14134. s/'"$ac_delim"'$//
  14135. t delim
  14136. :nl
  14137. h
  14138. s/\(.\{148\}\)..*/\1/
  14139. t more1
  14140. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14141. p
  14142. n
  14143. b repl
  14144. :more1
  14145. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14146. p
  14147. g
  14148. s/.\{148\}//
  14149. t nl
  14150. :delim
  14151. h
  14152. s/\(.\{148\}\)..*/\1/
  14153. t more2
  14154. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14155. p
  14156. b
  14157. :more2
  14158. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14159. p
  14160. g
  14161. s/.\{148\}//
  14162. t delim
  14163. ' <conf$$subs.awk | sed '
  14164. /^[^""]/{
  14165. N
  14166. s/\n//
  14167. }
  14168. ' >>$CONFIG_STATUS || ac_write_fail=1
  14169. rm -f conf$$subs.awk
  14170. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14171. _ACAWK
  14172. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14173. for (key in S) S_is_set[key] = 1
  14174. FS = ""
  14175. }
  14176. {
  14177. line = $ 0
  14178. nfields = split(line, field, "@")
  14179. substed = 0
  14180. len = length(field[1])
  14181. for (i = 2; i < nfields; i++) {
  14182. key = field[i]
  14183. keylen = length(key)
  14184. if (S_is_set[key]) {
  14185. value = S[key]
  14186. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14187. len += length(value) + length(field[++i])
  14188. substed = 1
  14189. } else
  14190. len += 1 + keylen
  14191. }
  14192. print line
  14193. }
  14194. _ACAWK
  14195. _ACEOF
  14196. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14197. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14198. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14199. else
  14200. cat
  14201. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14202. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14203. _ACEOF
  14204. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14205. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14206. # trailing colons and then remove the whole line if VPATH becomes empty
  14207. # (actually we leave an empty line to preserve line numbers).
  14208. if test "x$srcdir" = x.; then
  14209. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14210. s/:*\$(srcdir):*/:/
  14211. s/:*\${srcdir}:*/:/
  14212. s/:*@srcdir@:*/:/
  14213. s/^\([^=]*=[ ]*\):*/\1/
  14214. s/:*$//
  14215. s/^[^=]*=[ ]*$//
  14216. }'
  14217. fi
  14218. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14219. fi # test -n "$CONFIG_FILES"
  14220. # Set up the scripts for CONFIG_HEADERS section.
  14221. # No need to generate them if there are no CONFIG_HEADERS.
  14222. # This happens for instance with `./config.status Makefile'.
  14223. if test -n "$CONFIG_HEADERS"; then
  14224. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14225. BEGIN {
  14226. _ACEOF
  14227. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14228. # here-document in config.status, that substitutes the proper values into
  14229. # config.h.in to produce config.h.
  14230. # Create a delimiter string that does not exist in confdefs.h, to ease
  14231. # handling of long lines.
  14232. ac_delim='%!_!# '
  14233. for ac_last_try in false false :; do
  14234. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14235. if test -z "$ac_t"; then
  14236. break
  14237. elif $ac_last_try; then
  14238. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14239. else
  14240. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14241. fi
  14242. done
  14243. # For the awk script, D is an array of macro values keyed by name,
  14244. # likewise P contains macro parameters if any. Preserve backslash
  14245. # newline sequences.
  14246. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14247. sed -n '
  14248. s/.\{148\}/&'"$ac_delim"'/g
  14249. t rset
  14250. :rset
  14251. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14252. t def
  14253. d
  14254. :def
  14255. s/\\$//
  14256. t bsnl
  14257. s/["\\]/\\&/g
  14258. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14259. D["\1"]=" \3"/p
  14260. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14261. d
  14262. :bsnl
  14263. s/["\\]/\\&/g
  14264. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14265. D["\1"]=" \3\\\\\\n"\\/p
  14266. t cont
  14267. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14268. t cont
  14269. d
  14270. :cont
  14271. n
  14272. s/.\{148\}/&'"$ac_delim"'/g
  14273. t clear
  14274. :clear
  14275. s/\\$//
  14276. t bsnlc
  14277. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14278. d
  14279. :bsnlc
  14280. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14281. b cont
  14282. ' <confdefs.h | sed '
  14283. s/'"$ac_delim"'/"\\\
  14284. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14285. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14286. for (key in D) D_is_set[key] = 1
  14287. FS = ""
  14288. }
  14289. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14290. line = \$ 0
  14291. split(line, arg, " ")
  14292. if (arg[1] == "#") {
  14293. defundef = arg[2]
  14294. mac1 = arg[3]
  14295. } else {
  14296. defundef = substr(arg[1], 2)
  14297. mac1 = arg[2]
  14298. }
  14299. split(mac1, mac2, "(") #)
  14300. macro = mac2[1]
  14301. prefix = substr(line, 1, index(line, defundef) - 1)
  14302. if (D_is_set[macro]) {
  14303. # Preserve the white space surrounding the "#".
  14304. print prefix "define", macro P[macro] D[macro]
  14305. next
  14306. } else {
  14307. # Replace #undef with comments. This is necessary, for example,
  14308. # in the case of _POSIX_SOURCE, which is predefined and required
  14309. # on some systems where configure will not decide to define it.
  14310. if (defundef == "undef") {
  14311. print "/*", prefix defundef, macro, "*/"
  14312. next
  14313. }
  14314. }
  14315. }
  14316. { print }
  14317. _ACAWK
  14318. _ACEOF
  14319. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14320. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14321. fi # test -n "$CONFIG_HEADERS"
  14322. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14323. shift
  14324. for ac_tag
  14325. do
  14326. case $ac_tag in
  14327. :[FHLC]) ac_mode=$ac_tag; continue;;
  14328. esac
  14329. case $ac_mode$ac_tag in
  14330. :[FHL]*:*);;
  14331. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14332. :[FH]-) ac_tag=-:-;;
  14333. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14334. esac
  14335. ac_save_IFS=$IFS
  14336. IFS=:
  14337. set x $ac_tag
  14338. IFS=$ac_save_IFS
  14339. shift
  14340. ac_file=$1
  14341. shift
  14342. case $ac_mode in
  14343. :L) ac_source=$1;;
  14344. :[FH])
  14345. ac_file_inputs=
  14346. for ac_f
  14347. do
  14348. case $ac_f in
  14349. -) ac_f="$tmp/stdin";;
  14350. *) # Look for the file first in the build tree, then in the source tree
  14351. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14352. # because $ac_f cannot contain `:'.
  14353. test -f "$ac_f" ||
  14354. case $ac_f in
  14355. [\\/$]*) false;;
  14356. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14357. esac ||
  14358. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14359. esac
  14360. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14361. as_fn_append ac_file_inputs " '$ac_f'"
  14362. done
  14363. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14364. # use $as_me), people would be surprised to read:
  14365. # /* config.h. Generated by config.status. */
  14366. configure_input='Generated from '`
  14367. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14368. `' by configure.'
  14369. if test x"$ac_file" != x-; then
  14370. configure_input="$ac_file. $configure_input"
  14371. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14372. $as_echo "$as_me: creating $ac_file" >&6;}
  14373. fi
  14374. # Neutralize special characters interpreted by sed in replacement strings.
  14375. case $configure_input in #(
  14376. *\&* | *\|* | *\\* )
  14377. ac_sed_conf_input=`$as_echo "$configure_input" |
  14378. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14379. *) ac_sed_conf_input=$configure_input;;
  14380. esac
  14381. case $ac_tag in
  14382. *:-:* | *:-) cat >"$tmp/stdin" \
  14383. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14384. esac
  14385. ;;
  14386. esac
  14387. ac_dir=`$as_dirname -- "$ac_file" ||
  14388. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14389. X"$ac_file" : 'X\(//\)[^/]' \| \
  14390. X"$ac_file" : 'X\(//\)$' \| \
  14391. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14392. $as_echo X"$ac_file" |
  14393. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14394. s//\1/
  14395. q
  14396. }
  14397. /^X\(\/\/\)[^/].*/{
  14398. s//\1/
  14399. q
  14400. }
  14401. /^X\(\/\/\)$/{
  14402. s//\1/
  14403. q
  14404. }
  14405. /^X\(\/\).*/{
  14406. s//\1/
  14407. q
  14408. }
  14409. s/.*/./; q'`
  14410. as_dir="$ac_dir"; as_fn_mkdir_p
  14411. ac_builddir=.
  14412. case "$ac_dir" in
  14413. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14414. *)
  14415. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14416. # A ".." for each directory in $ac_dir_suffix.
  14417. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14418. case $ac_top_builddir_sub in
  14419. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14420. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14421. esac ;;
  14422. esac
  14423. ac_abs_top_builddir=$ac_pwd
  14424. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14425. # for backward compatibility:
  14426. ac_top_builddir=$ac_top_build_prefix
  14427. case $srcdir in
  14428. .) # We are building in place.
  14429. ac_srcdir=.
  14430. ac_top_srcdir=$ac_top_builddir_sub
  14431. ac_abs_top_srcdir=$ac_pwd ;;
  14432. [\\/]* | ?:[\\/]* ) # Absolute name.
  14433. ac_srcdir=$srcdir$ac_dir_suffix;
  14434. ac_top_srcdir=$srcdir
  14435. ac_abs_top_srcdir=$srcdir ;;
  14436. *) # Relative name.
  14437. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14438. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14439. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14440. esac
  14441. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14442. case $ac_mode in
  14443. :F)
  14444. #
  14445. # CONFIG_FILE
  14446. #
  14447. case $INSTALL in
  14448. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14449. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14450. esac
  14451. ac_MKDIR_P=$MKDIR_P
  14452. case $MKDIR_P in
  14453. [\\/$]* | ?:[\\/]* ) ;;
  14454. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14455. esac
  14456. _ACEOF
  14457. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14458. # If the template does not know about datarootdir, expand it.
  14459. # FIXME: This hack should be removed a few years after 2.60.
  14460. ac_datarootdir_hack=; ac_datarootdir_seen=
  14461. ac_sed_dataroot='
  14462. /datarootdir/ {
  14463. p
  14464. q
  14465. }
  14466. /@datadir@/p
  14467. /@docdir@/p
  14468. /@infodir@/p
  14469. /@localedir@/p
  14470. /@mandir@/p'
  14471. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14472. *datarootdir*) ac_datarootdir_seen=yes;;
  14473. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14475. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14476. _ACEOF
  14477. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14478. ac_datarootdir_hack='
  14479. s&@datadir@&$datadir&g
  14480. s&@docdir@&$docdir&g
  14481. s&@infodir@&$infodir&g
  14482. s&@localedir@&$localedir&g
  14483. s&@mandir@&$mandir&g
  14484. s&\\\${datarootdir}&$datarootdir&g' ;;
  14485. esac
  14486. _ACEOF
  14487. # Neutralize VPATH when `$srcdir' = `.'.
  14488. # Shell code in configure.ac might set extrasub.
  14489. # FIXME: do we really want to maintain this feature?
  14490. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14491. ac_sed_extra="$ac_vpsub
  14492. $extrasub
  14493. _ACEOF
  14494. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14495. :t
  14496. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14497. s|@configure_input@|$ac_sed_conf_input|;t t
  14498. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14499. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14500. s&@srcdir@&$ac_srcdir&;t t
  14501. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14502. s&@top_srcdir@&$ac_top_srcdir&;t t
  14503. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14504. s&@builddir@&$ac_builddir&;t t
  14505. s&@abs_builddir@&$ac_abs_builddir&;t t
  14506. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14507. s&@INSTALL@&$ac_INSTALL&;t t
  14508. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14509. $ac_datarootdir_hack
  14510. "
  14511. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14512. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14513. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14514. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14515. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14517. which seems to be undefined. Please make sure it is defined." >&5
  14518. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14519. which seems to be undefined. Please make sure it is defined." >&2;}
  14520. rm -f "$tmp/stdin"
  14521. case $ac_file in
  14522. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14523. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14524. esac \
  14525. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14526. ;;
  14527. :H)
  14528. #
  14529. # CONFIG_HEADER
  14530. #
  14531. if test x"$ac_file" != x-; then
  14532. {
  14533. $as_echo "/* $configure_input */" \
  14534. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14535. } >"$tmp/config.h" \
  14536. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14537. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14538. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14539. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14540. else
  14541. rm -f "$ac_file"
  14542. mv "$tmp/config.h" "$ac_file" \
  14543. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14544. fi
  14545. else
  14546. $as_echo "/* $configure_input */" \
  14547. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14548. || as_fn_error "could not create -" "$LINENO" 5
  14549. fi
  14550. # Compute "$ac_file"'s index in $config_headers.
  14551. _am_arg="$ac_file"
  14552. _am_stamp_count=1
  14553. for _am_header in $config_headers :; do
  14554. case $_am_header in
  14555. $_am_arg | $_am_arg:* )
  14556. break ;;
  14557. * )
  14558. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14559. esac
  14560. done
  14561. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14562. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14563. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14564. X"$_am_arg" : 'X\(//\)$' \| \
  14565. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14566. $as_echo X"$_am_arg" |
  14567. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14568. s//\1/
  14569. q
  14570. }
  14571. /^X\(\/\/\)[^/].*/{
  14572. s//\1/
  14573. q
  14574. }
  14575. /^X\(\/\/\)$/{
  14576. s//\1/
  14577. q
  14578. }
  14579. /^X\(\/\).*/{
  14580. s//\1/
  14581. q
  14582. }
  14583. s/.*/./; q'`/stamp-h$_am_stamp_count
  14584. ;;
  14585. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14586. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14587. ;;
  14588. esac
  14589. case $ac_file$ac_mode in
  14590. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14591. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14592. # are listed without --file. Let's play safe and only enable the eval
  14593. # if we detect the quoting.
  14594. case $CONFIG_FILES in
  14595. *\'*) eval set x "$CONFIG_FILES" ;;
  14596. *) set x $CONFIG_FILES ;;
  14597. esac
  14598. shift
  14599. for mf
  14600. do
  14601. # Strip MF so we end up with the name of the file.
  14602. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14603. # Check whether this is an Automake generated Makefile or not.
  14604. # We used to match only the files named `Makefile.in', but
  14605. # some people rename them; so instead we look at the file content.
  14606. # Grep'ing the first line is not enough: some people post-process
  14607. # each Makefile.in and add a new line on top of each file to say so.
  14608. # Grep'ing the whole file is not good either: AIX grep has a line
  14609. # limit of 2048, but all sed's we know have understand at least 4000.
  14610. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14611. dirpart=`$as_dirname -- "$mf" ||
  14612. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14613. X"$mf" : 'X\(//\)[^/]' \| \
  14614. X"$mf" : 'X\(//\)$' \| \
  14615. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14616. $as_echo X"$mf" |
  14617. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14618. s//\1/
  14619. q
  14620. }
  14621. /^X\(\/\/\)[^/].*/{
  14622. s//\1/
  14623. q
  14624. }
  14625. /^X\(\/\/\)$/{
  14626. s//\1/
  14627. q
  14628. }
  14629. /^X\(\/\).*/{
  14630. s//\1/
  14631. q
  14632. }
  14633. s/.*/./; q'`
  14634. else
  14635. continue
  14636. fi
  14637. # Extract the definition of DEPDIR, am__include, and am__quote
  14638. # from the Makefile without running `make'.
  14639. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14640. test -z "$DEPDIR" && continue
  14641. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14642. test -z "am__include" && continue
  14643. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14644. # When using ansi2knr, U may be empty or an underscore; expand it
  14645. U=`sed -n 's/^U = //p' < "$mf"`
  14646. # Find all dependency output files, they are included files with
  14647. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14648. # simplest approach to changing $(DEPDIR) to its actual value in the
  14649. # expansion.
  14650. for file in `sed -n "
  14651. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14652. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14653. # Make sure the directory exists.
  14654. test -f "$dirpart/$file" && continue
  14655. fdir=`$as_dirname -- "$file" ||
  14656. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14657. X"$file" : 'X\(//\)[^/]' \| \
  14658. X"$file" : 'X\(//\)$' \| \
  14659. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14660. $as_echo X"$file" |
  14661. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14662. s//\1/
  14663. q
  14664. }
  14665. /^X\(\/\/\)[^/].*/{
  14666. s//\1/
  14667. q
  14668. }
  14669. /^X\(\/\/\)$/{
  14670. s//\1/
  14671. q
  14672. }
  14673. /^X\(\/\).*/{
  14674. s//\1/
  14675. q
  14676. }
  14677. s/.*/./; q'`
  14678. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14679. # echo "creating $dirpart/$file"
  14680. echo '# dummy' > "$dirpart/$file"
  14681. done
  14682. done
  14683. }
  14684. ;;
  14685. "libtool":C)
  14686. # See if we are running on zsh, and set the options which allow our
  14687. # commands through without removal of \ escapes.
  14688. if test -n "${ZSH_VERSION+set}" ; then
  14689. setopt NO_GLOB_SUBST
  14690. fi
  14691. cfgfile="${ofile}T"
  14692. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14693. $RM "$cfgfile"
  14694. cat <<_LT_EOF >> "$cfgfile"
  14695. #! $SHELL
  14696. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14697. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14698. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14699. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14700. #
  14701. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14702. # 2006, 2007, 2008 Free Software Foundation, Inc.
  14703. # Written by Gordon Matzigkeit, 1996
  14704. #
  14705. # This file is part of GNU Libtool.
  14706. #
  14707. # GNU Libtool is free software; you can redistribute it and/or
  14708. # modify it under the terms of the GNU General Public License as
  14709. # published by the Free Software Foundation; either version 2 of
  14710. # the License, or (at your option) any later version.
  14711. #
  14712. # As a special exception to the GNU General Public License,
  14713. # if you distribute this file as part of a program or library that
  14714. # is built using GNU Libtool, you may include this file under the
  14715. # same distribution terms that you use for the rest of that program.
  14716. #
  14717. # GNU Libtool is distributed in the hope that it will be useful,
  14718. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14719. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14720. # GNU General Public License for more details.
  14721. #
  14722. # You should have received a copy of the GNU General Public License
  14723. # along with GNU Libtool; see the file COPYING. If not, a copy
  14724. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14725. # obtained by writing to the Free Software Foundation, Inc.,
  14726. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14727. # The names of the tagged configurations supported by this script.
  14728. available_tags="CXX "
  14729. # ### BEGIN LIBTOOL CONFIG
  14730. # Which release of libtool.m4 was used?
  14731. macro_version=$macro_version
  14732. macro_revision=$macro_revision
  14733. # Whether or not to build shared libraries.
  14734. build_libtool_libs=$enable_shared
  14735. # Whether or not to build static libraries.
  14736. build_old_libs=$enable_static
  14737. # What type of objects to build.
  14738. pic_mode=$pic_mode
  14739. # Whether or not to optimize for fast installation.
  14740. fast_install=$enable_fast_install
  14741. # The host system.
  14742. host_alias=$host_alias
  14743. host=$host
  14744. host_os=$host_os
  14745. # The build system.
  14746. build_alias=$build_alias
  14747. build=$build
  14748. build_os=$build_os
  14749. # A sed program that does not truncate output.
  14750. SED=$lt_SED
  14751. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14752. Xsed="\$SED -e 1s/^X//"
  14753. # A grep program that handles long lines.
  14754. GREP=$lt_GREP
  14755. # An ERE matcher.
  14756. EGREP=$lt_EGREP
  14757. # A literal string matcher.
  14758. FGREP=$lt_FGREP
  14759. # A BSD- or MS-compatible name lister.
  14760. NM=$lt_NM
  14761. # Whether we need soft or hard links.
  14762. LN_S=$lt_LN_S
  14763. # What is the maximum length of a command?
  14764. max_cmd_len=$max_cmd_len
  14765. # Object file suffix (normally "o").
  14766. objext=$ac_objext
  14767. # Executable file suffix (normally "").
  14768. exeext=$exeext
  14769. # whether the shell understands "unset".
  14770. lt_unset=$lt_unset
  14771. # turn spaces into newlines.
  14772. SP2NL=$lt_lt_SP2NL
  14773. # turn newlines into spaces.
  14774. NL2SP=$lt_lt_NL2SP
  14775. # How to create reloadable object files.
  14776. reload_flag=$lt_reload_flag
  14777. reload_cmds=$lt_reload_cmds
  14778. # An object symbol dumper.
  14779. OBJDUMP=$lt_OBJDUMP
  14780. # Method to check whether dependent libraries are shared objects.
  14781. deplibs_check_method=$lt_deplibs_check_method
  14782. # Command to use when deplibs_check_method == "file_magic".
  14783. file_magic_cmd=$lt_file_magic_cmd
  14784. # The archiver.
  14785. AR=$lt_AR
  14786. AR_FLAGS=$lt_AR_FLAGS
  14787. # A symbol stripping program.
  14788. STRIP=$lt_STRIP
  14789. # Commands used to install an old-style archive.
  14790. RANLIB=$lt_RANLIB
  14791. old_postinstall_cmds=$lt_old_postinstall_cmds
  14792. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14793. # A C compiler.
  14794. LTCC=$lt_CC
  14795. # LTCC compiler flags.
  14796. LTCFLAGS=$lt_CFLAGS
  14797. # Take the output of nm and produce a listing of raw symbols and C names.
  14798. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14799. # Transform the output of nm in a proper C declaration.
  14800. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14801. # Transform the output of nm in a C name address pair.
  14802. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14803. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14804. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14805. # The name of the directory that contains temporary libtool files.
  14806. objdir=$objdir
  14807. # Shell to use when invoking shell scripts.
  14808. SHELL=$lt_SHELL
  14809. # An echo program that does not interpret backslashes.
  14810. ECHO=$lt_ECHO
  14811. # Used to examine libraries when file_magic_cmd begins with "file".
  14812. MAGIC_CMD=$MAGIC_CMD
  14813. # Must we lock files when doing compilation?
  14814. need_locks=$lt_need_locks
  14815. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14816. DSYMUTIL=$lt_DSYMUTIL
  14817. # Tool to change global to local symbols on Mac OS X.
  14818. NMEDIT=$lt_NMEDIT
  14819. # Tool to manipulate fat objects and archives on Mac OS X.
  14820. LIPO=$lt_LIPO
  14821. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14822. OTOOL=$lt_OTOOL
  14823. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14824. OTOOL64=$lt_OTOOL64
  14825. # Old archive suffix (normally "a").
  14826. libext=$libext
  14827. # Shared library suffix (normally ".so").
  14828. shrext_cmds=$lt_shrext_cmds
  14829. # The commands to extract the exported symbol list from a shared archive.
  14830. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14831. # Variables whose values should be saved in libtool wrapper scripts and
  14832. # restored at link time.
  14833. variables_saved_for_relink=$lt_variables_saved_for_relink
  14834. # Do we need the "lib" prefix for modules?
  14835. need_lib_prefix=$need_lib_prefix
  14836. # Do we need a version for libraries?
  14837. need_version=$need_version
  14838. # Library versioning type.
  14839. version_type=$version_type
  14840. # Shared library runtime path variable.
  14841. runpath_var=$runpath_var
  14842. # Shared library path variable.
  14843. shlibpath_var=$shlibpath_var
  14844. # Is shlibpath searched before the hard-coded library search path?
  14845. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14846. # Format of library name prefix.
  14847. libname_spec=$lt_libname_spec
  14848. # List of archive names. First name is the real one, the rest are links.
  14849. # The last name is the one that the linker finds with -lNAME
  14850. library_names_spec=$lt_library_names_spec
  14851. # The coded name of the library, if different from the real name.
  14852. soname_spec=$lt_soname_spec
  14853. # Command to use after installation of a shared archive.
  14854. postinstall_cmds=$lt_postinstall_cmds
  14855. # Command to use after uninstallation of a shared archive.
  14856. postuninstall_cmds=$lt_postuninstall_cmds
  14857. # Commands used to finish a libtool library installation in a directory.
  14858. finish_cmds=$lt_finish_cmds
  14859. # As "finish_cmds", except a single script fragment to be evaled but
  14860. # not shown.
  14861. finish_eval=$lt_finish_eval
  14862. # Whether we should hardcode library paths into libraries.
  14863. hardcode_into_libs=$hardcode_into_libs
  14864. # Compile-time system search path for libraries.
  14865. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14866. # Run-time system search path for libraries.
  14867. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14868. # Whether dlopen is supported.
  14869. dlopen_support=$enable_dlopen
  14870. # Whether dlopen of programs is supported.
  14871. dlopen_self=$enable_dlopen_self
  14872. # Whether dlopen of statically linked programs is supported.
  14873. dlopen_self_static=$enable_dlopen_self_static
  14874. # Commands to strip libraries.
  14875. old_striplib=$lt_old_striplib
  14876. striplib=$lt_striplib
  14877. # The linker used to build libraries.
  14878. LD=$lt_LD
  14879. # Commands used to build an old-style archive.
  14880. old_archive_cmds=$lt_old_archive_cmds
  14881. # A language specific compiler.
  14882. CC=$lt_compiler
  14883. # Is the compiler the GNU compiler?
  14884. with_gcc=$GCC
  14885. # Compiler flag to turn off builtin functions.
  14886. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14887. # How to pass a linker flag through the compiler.
  14888. wl=$lt_lt_prog_compiler_wl
  14889. # Additional compiler flags for building library objects.
  14890. pic_flag=$lt_lt_prog_compiler_pic
  14891. # Compiler flag to prevent dynamic linking.
  14892. link_static_flag=$lt_lt_prog_compiler_static
  14893. # Does compiler simultaneously support -c and -o options?
  14894. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14895. # Whether or not to add -lc for building shared libraries.
  14896. build_libtool_need_lc=$archive_cmds_need_lc
  14897. # Whether or not to disallow shared libs when runtime libs are static.
  14898. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14899. # Compiler flag to allow reflexive dlopens.
  14900. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14901. # Compiler flag to generate shared objects directly from archives.
  14902. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14903. # Whether the compiler copes with passing no objects directly.
  14904. compiler_needs_object=$lt_compiler_needs_object
  14905. # Create an old-style archive from a shared archive.
  14906. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14907. # Create a temporary old-style archive to link instead of a shared archive.
  14908. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14909. # Commands used to build a shared archive.
  14910. archive_cmds=$lt_archive_cmds
  14911. archive_expsym_cmds=$lt_archive_expsym_cmds
  14912. # Commands used to build a loadable module if different from building
  14913. # a shared archive.
  14914. module_cmds=$lt_module_cmds
  14915. module_expsym_cmds=$lt_module_expsym_cmds
  14916. # Whether we are building with GNU ld or not.
  14917. with_gnu_ld=$lt_with_gnu_ld
  14918. # Flag that allows shared libraries with undefined symbols to be built.
  14919. allow_undefined_flag=$lt_allow_undefined_flag
  14920. # Flag that enforces no undefined symbols.
  14921. no_undefined_flag=$lt_no_undefined_flag
  14922. # Flag to hardcode \$libdir into a binary during linking.
  14923. # This must work even if \$libdir does not exist
  14924. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14925. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14926. # during linking. This must work even if \$libdir does not exist.
  14927. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14928. # Whether we need a single "-rpath" flag with a separated argument.
  14929. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14930. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14931. # DIR into the resulting binary.
  14932. hardcode_direct=$hardcode_direct
  14933. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14934. # DIR into the resulting binary and the resulting library dependency is
  14935. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14936. # library is relocated.
  14937. hardcode_direct_absolute=$hardcode_direct_absolute
  14938. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14939. # into the resulting binary.
  14940. hardcode_minus_L=$hardcode_minus_L
  14941. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14942. # into the resulting binary.
  14943. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14944. # Set to "yes" if building a shared library automatically hardcodes DIR
  14945. # into the library and all subsequent libraries and executables linked
  14946. # against it.
  14947. hardcode_automatic=$hardcode_automatic
  14948. # Set to yes if linker adds runtime paths of dependent libraries
  14949. # to runtime path list.
  14950. inherit_rpath=$inherit_rpath
  14951. # Whether libtool must link a program against all its dependency libraries.
  14952. link_all_deplibs=$link_all_deplibs
  14953. # Fix the shell variable \$srcfile for the compiler.
  14954. fix_srcfile_path=$lt_fix_srcfile_path
  14955. # Set to "yes" if exported symbols are required.
  14956. always_export_symbols=$always_export_symbols
  14957. # The commands to list exported symbols.
  14958. export_symbols_cmds=$lt_export_symbols_cmds
  14959. # Symbols that should not be listed in the preloaded symbols.
  14960. exclude_expsyms=$lt_exclude_expsyms
  14961. # Symbols that must always be exported.
  14962. include_expsyms=$lt_include_expsyms
  14963. # Commands necessary for linking programs (against libraries) with templates.
  14964. prelink_cmds=$lt_prelink_cmds
  14965. # Specify filename containing input files.
  14966. file_list_spec=$lt_file_list_spec
  14967. # How to hardcode a shared library path into an executable.
  14968. hardcode_action=$hardcode_action
  14969. # The directories searched by this compiler when creating a shared library.
  14970. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  14971. # Dependencies to place before and after the objects being linked to
  14972. # create a shared library.
  14973. predep_objects=$lt_predep_objects
  14974. postdep_objects=$lt_postdep_objects
  14975. predeps=$lt_predeps
  14976. postdeps=$lt_postdeps
  14977. # The library search path used internally by the compiler when linking
  14978. # a shared library.
  14979. compiler_lib_search_path=$lt_compiler_lib_search_path
  14980. # ### END LIBTOOL CONFIG
  14981. _LT_EOF
  14982. case $host_os in
  14983. aix3*)
  14984. cat <<\_LT_EOF >> "$cfgfile"
  14985. # AIX sometimes has problems with the GCC collect2 program. For some
  14986. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14987. # vanish in a puff of smoke.
  14988. if test "X${COLLECT_NAMES+set}" != Xset; then
  14989. COLLECT_NAMES=
  14990. export COLLECT_NAMES
  14991. fi
  14992. _LT_EOF
  14993. ;;
  14994. esac
  14995. ltmain="$ac_aux_dir/ltmain.sh"
  14996. # We use sed instead of cat because bash on DJGPP gets confused if
  14997. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14998. # text mode, it properly converts lines to CR/LF. This bash problem
  14999. # is reportedly fixed, but why not run on old versions too?
  15000. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15001. || (rm -f "$cfgfile"; exit 1)
  15002. case $xsi_shell in
  15003. yes)
  15004. cat << \_LT_EOF >> "$cfgfile"
  15005. # func_dirname file append nondir_replacement
  15006. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15007. # otherwise set result to NONDIR_REPLACEMENT.
  15008. func_dirname ()
  15009. {
  15010. case ${1} in
  15011. */*) func_dirname_result="${1%/*}${2}" ;;
  15012. * ) func_dirname_result="${3}" ;;
  15013. esac
  15014. }
  15015. # func_basename file
  15016. func_basename ()
  15017. {
  15018. func_basename_result="${1##*/}"
  15019. }
  15020. # func_dirname_and_basename file append nondir_replacement
  15021. # perform func_basename and func_dirname in a single function
  15022. # call:
  15023. # dirname: Compute the dirname of FILE. If nonempty,
  15024. # add APPEND to the result, otherwise set result
  15025. # to NONDIR_REPLACEMENT.
  15026. # value returned in "$func_dirname_result"
  15027. # basename: Compute filename of FILE.
  15028. # value retuned in "$func_basename_result"
  15029. # Implementation must be kept synchronized with func_dirname
  15030. # and func_basename. For efficiency, we do not delegate to
  15031. # those functions but instead duplicate the functionality here.
  15032. func_dirname_and_basename ()
  15033. {
  15034. case ${1} in
  15035. */*) func_dirname_result="${1%/*}${2}" ;;
  15036. * ) func_dirname_result="${3}" ;;
  15037. esac
  15038. func_basename_result="${1##*/}"
  15039. }
  15040. # func_stripname prefix suffix name
  15041. # strip PREFIX and SUFFIX off of NAME.
  15042. # PREFIX and SUFFIX must not contain globbing or regex special
  15043. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15044. # dot (in which case that matches only a dot).
  15045. func_stripname ()
  15046. {
  15047. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15048. # positional parameters, so assign one to ordinary parameter first.
  15049. func_stripname_result=${3}
  15050. func_stripname_result=${func_stripname_result#"${1}"}
  15051. func_stripname_result=${func_stripname_result%"${2}"}
  15052. }
  15053. # func_opt_split
  15054. func_opt_split ()
  15055. {
  15056. func_opt_split_opt=${1%%=*}
  15057. func_opt_split_arg=${1#*=}
  15058. }
  15059. # func_lo2o object
  15060. func_lo2o ()
  15061. {
  15062. case ${1} in
  15063. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15064. *) func_lo2o_result=${1} ;;
  15065. esac
  15066. }
  15067. # func_xform libobj-or-source
  15068. func_xform ()
  15069. {
  15070. func_xform_result=${1%.*}.lo
  15071. }
  15072. # func_arith arithmetic-term...
  15073. func_arith ()
  15074. {
  15075. func_arith_result=$(( $* ))
  15076. }
  15077. # func_len string
  15078. # STRING may not start with a hyphen.
  15079. func_len ()
  15080. {
  15081. func_len_result=${#1}
  15082. }
  15083. _LT_EOF
  15084. ;;
  15085. *) # Bourne compatible functions.
  15086. cat << \_LT_EOF >> "$cfgfile"
  15087. # func_dirname file append nondir_replacement
  15088. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15089. # otherwise set result to NONDIR_REPLACEMENT.
  15090. func_dirname ()
  15091. {
  15092. # Extract subdirectory from the argument.
  15093. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  15094. if test "X$func_dirname_result" = "X${1}"; then
  15095. func_dirname_result="${3}"
  15096. else
  15097. func_dirname_result="$func_dirname_result${2}"
  15098. fi
  15099. }
  15100. # func_basename file
  15101. func_basename ()
  15102. {
  15103. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  15104. }
  15105. # func_stripname prefix suffix name
  15106. # strip PREFIX and SUFFIX off of NAME.
  15107. # PREFIX and SUFFIX must not contain globbing or regex special
  15108. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15109. # dot (in which case that matches only a dot).
  15110. # func_strip_suffix prefix name
  15111. func_stripname ()
  15112. {
  15113. case ${2} in
  15114. .*) func_stripname_result=`$ECHO "X${3}" \
  15115. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  15116. *) func_stripname_result=`$ECHO "X${3}" \
  15117. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  15118. esac
  15119. }
  15120. # sed scripts:
  15121. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15122. my_sed_long_arg='1s/^-[^=]*=//'
  15123. # func_opt_split
  15124. func_opt_split ()
  15125. {
  15126. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  15127. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  15128. }
  15129. # func_lo2o object
  15130. func_lo2o ()
  15131. {
  15132. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  15133. }
  15134. # func_xform libobj-or-source
  15135. func_xform ()
  15136. {
  15137. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  15138. }
  15139. # func_arith arithmetic-term...
  15140. func_arith ()
  15141. {
  15142. func_arith_result=`expr "$@"`
  15143. }
  15144. # func_len string
  15145. # STRING may not start with a hyphen.
  15146. func_len ()
  15147. {
  15148. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15149. }
  15150. _LT_EOF
  15151. esac
  15152. case $lt_shell_append in
  15153. yes)
  15154. cat << \_LT_EOF >> "$cfgfile"
  15155. # func_append var value
  15156. # Append VALUE to the end of shell variable VAR.
  15157. func_append ()
  15158. {
  15159. eval "$1+=\$2"
  15160. }
  15161. _LT_EOF
  15162. ;;
  15163. *)
  15164. cat << \_LT_EOF >> "$cfgfile"
  15165. # func_append var value
  15166. # Append VALUE to the end of shell variable VAR.
  15167. func_append ()
  15168. {
  15169. eval "$1=\$$1\$2"
  15170. }
  15171. _LT_EOF
  15172. ;;
  15173. esac
  15174. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15175. || (rm -f "$cfgfile"; exit 1)
  15176. mv -f "$cfgfile" "$ofile" ||
  15177. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15178. chmod +x "$ofile"
  15179. cat <<_LT_EOF >> "$ofile"
  15180. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15181. # The linker used to build libraries.
  15182. LD=$lt_LD_CXX
  15183. # Commands used to build an old-style archive.
  15184. old_archive_cmds=$lt_old_archive_cmds_CXX
  15185. # A language specific compiler.
  15186. CC=$lt_compiler_CXX
  15187. # Is the compiler the GNU compiler?
  15188. with_gcc=$GCC_CXX
  15189. # Compiler flag to turn off builtin functions.
  15190. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15191. # How to pass a linker flag through the compiler.
  15192. wl=$lt_lt_prog_compiler_wl_CXX
  15193. # Additional compiler flags for building library objects.
  15194. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15195. # Compiler flag to prevent dynamic linking.
  15196. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15197. # Does compiler simultaneously support -c and -o options?
  15198. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15199. # Whether or not to add -lc for building shared libraries.
  15200. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15201. # Whether or not to disallow shared libs when runtime libs are static.
  15202. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15203. # Compiler flag to allow reflexive dlopens.
  15204. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15205. # Compiler flag to generate shared objects directly from archives.
  15206. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15207. # Whether the compiler copes with passing no objects directly.
  15208. compiler_needs_object=$lt_compiler_needs_object_CXX
  15209. # Create an old-style archive from a shared archive.
  15210. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15211. # Create a temporary old-style archive to link instead of a shared archive.
  15212. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15213. # Commands used to build a shared archive.
  15214. archive_cmds=$lt_archive_cmds_CXX
  15215. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15216. # Commands used to build a loadable module if different from building
  15217. # a shared archive.
  15218. module_cmds=$lt_module_cmds_CXX
  15219. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15220. # Whether we are building with GNU ld or not.
  15221. with_gnu_ld=$lt_with_gnu_ld_CXX
  15222. # Flag that allows shared libraries with undefined symbols to be built.
  15223. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15224. # Flag that enforces no undefined symbols.
  15225. no_undefined_flag=$lt_no_undefined_flag_CXX
  15226. # Flag to hardcode \$libdir into a binary during linking.
  15227. # This must work even if \$libdir does not exist
  15228. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15229. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15230. # during linking. This must work even if \$libdir does not exist.
  15231. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15232. # Whether we need a single "-rpath" flag with a separated argument.
  15233. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15234. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15235. # DIR into the resulting binary.
  15236. hardcode_direct=$hardcode_direct_CXX
  15237. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15238. # DIR into the resulting binary and the resulting library dependency is
  15239. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15240. # library is relocated.
  15241. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15242. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15243. # into the resulting binary.
  15244. hardcode_minus_L=$hardcode_minus_L_CXX
  15245. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15246. # into the resulting binary.
  15247. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15248. # Set to "yes" if building a shared library automatically hardcodes DIR
  15249. # into the library and all subsequent libraries and executables linked
  15250. # against it.
  15251. hardcode_automatic=$hardcode_automatic_CXX
  15252. # Set to yes if linker adds runtime paths of dependent libraries
  15253. # to runtime path list.
  15254. inherit_rpath=$inherit_rpath_CXX
  15255. # Whether libtool must link a program against all its dependency libraries.
  15256. link_all_deplibs=$link_all_deplibs_CXX
  15257. # Fix the shell variable \$srcfile for the compiler.
  15258. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  15259. # Set to "yes" if exported symbols are required.
  15260. always_export_symbols=$always_export_symbols_CXX
  15261. # The commands to list exported symbols.
  15262. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15263. # Symbols that should not be listed in the preloaded symbols.
  15264. exclude_expsyms=$lt_exclude_expsyms_CXX
  15265. # Symbols that must always be exported.
  15266. include_expsyms=$lt_include_expsyms_CXX
  15267. # Commands necessary for linking programs (against libraries) with templates.
  15268. prelink_cmds=$lt_prelink_cmds_CXX
  15269. # Specify filename containing input files.
  15270. file_list_spec=$lt_file_list_spec_CXX
  15271. # How to hardcode a shared library path into an executable.
  15272. hardcode_action=$hardcode_action_CXX
  15273. # The directories searched by this compiler when creating a shared library.
  15274. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15275. # Dependencies to place before and after the objects being linked to
  15276. # create a shared library.
  15277. predep_objects=$lt_predep_objects_CXX
  15278. postdep_objects=$lt_postdep_objects_CXX
  15279. predeps=$lt_predeps_CXX
  15280. postdeps=$lt_postdeps_CXX
  15281. # The library search path used internally by the compiler when linking
  15282. # a shared library.
  15283. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15284. # ### END LIBTOOL TAG CONFIG: CXX
  15285. _LT_EOF
  15286. ;;
  15287. esac
  15288. done # for ac_tag
  15289. as_fn_exit 0
  15290. _ACEOF
  15291. ac_clean_files=$ac_clean_files_save
  15292. test $ac_write_fail = 0 ||
  15293. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15294. # configure is writing to config.log, and then calls config.status.
  15295. # config.status does its own redirection, appending to config.log.
  15296. # Unfortunately, on DOS this fails, as config.log is still kept open
  15297. # by configure, so config.status won't be able to write to it; its
  15298. # output is simply discarded. So we exec the FD to /dev/null,
  15299. # effectively closing config.log, so it can be properly (re)opened and
  15300. # appended to by config.status. When coming back to configure, we
  15301. # need to make the FD available again.
  15302. if test "$no_create" != yes; then
  15303. ac_cs_success=:
  15304. ac_config_status_args=
  15305. test "$silent" = yes &&
  15306. ac_config_status_args="$ac_config_status_args --quiet"
  15307. exec 5>/dev/null
  15308. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15309. exec 5>>config.log
  15310. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15311. # would make configure fail if this is the last instruction.
  15312. $ac_cs_success || as_fn_exit $?
  15313. fi
  15314. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15316. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15317. fi