configure 514 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for qnutdisc 3.0.
  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='qnutdisc'
  637. PACKAGE_TARNAME='qnutdisc'
  638. PACKAGE_VERSION='3.0'
  639. PACKAGE_STRING='qnutdisc 3.0'
  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. QNUTDISC_LIBS
  682. QNUTDISC_CFLAGS
  683. PKG_CONFIG
  684. CXXCPP
  685. CPP
  686. OTOOL64
  687. OTOOL
  688. LIPO
  689. NMEDIT
  690. DSYMUTIL
  691. lt_ECHO
  692. RANLIB
  693. AR
  694. OBJDUMP
  695. LN_S
  696. NM
  697. ac_ct_DUMPBIN
  698. DUMPBIN
  699. LD
  700. FGREP
  701. EGREP
  702. GREP
  703. SED
  704. am__fastdepCC_FALSE
  705. am__fastdepCC_TRUE
  706. CCDEPMODE
  707. ac_ct_CC
  708. CFLAGS
  709. CC
  710. host_os
  711. host_vendor
  712. host_cpu
  713. host
  714. build_os
  715. build_vendor
  716. build_cpu
  717. build
  718. LIBTOOL
  719. UIC
  720. am__fastdepCXX_FALSE
  721. am__fastdepCXX_TRUE
  722. CXXDEPMODE
  723. AMDEPBACKSLASH
  724. AMDEP_FALSE
  725. AMDEP_TRUE
  726. am__quote
  727. am__include
  728. DEPDIR
  729. OBJEXT
  730. EXEEXT
  731. ac_ct_CXX
  732. CPPFLAGS
  733. LDFLAGS
  734. CXXFLAGS
  735. CXX
  736. MAINT
  737. MAINTAINER_MODE_FALSE
  738. MAINTAINER_MODE_TRUE
  739. am__untar
  740. am__tar
  741. AMTAR
  742. am__leading_dot
  743. SET_MAKE
  744. AWK
  745. mkdir_p
  746. MKDIR_P
  747. INSTALL_STRIP_PROGRAM
  748. STRIP
  749. install_sh
  750. MAKEINFO
  751. AUTOHEADER
  752. AUTOMAKE
  753. AUTOCONF
  754. ACLOCAL
  755. VERSION
  756. PACKAGE
  757. CYGPATH_W
  758. am__isrc
  759. INSTALL_DATA
  760. INSTALL_SCRIPT
  761. INSTALL_PROGRAM
  762. AM_BACKSLASH
  763. AM_DEFAULT_VERBOSITY
  764. target_alias
  765. host_alias
  766. build_alias
  767. LIBS
  768. ECHO_T
  769. ECHO_N
  770. ECHO_C
  771. DEFS
  772. mandir
  773. localedir
  774. libdir
  775. psdir
  776. pdfdir
  777. dvidir
  778. htmldir
  779. infodir
  780. docdir
  781. oldincludedir
  782. includedir
  783. localstatedir
  784. sharedstatedir
  785. sysconfdir
  786. datadir
  787. datarootdir
  788. libexecdir
  789. sbindir
  790. bindir
  791. program_transform_name
  792. prefix
  793. exec_prefix
  794. PACKAGE_URL
  795. PACKAGE_BUGREPORT
  796. PACKAGE_STRING
  797. PACKAGE_VERSION
  798. PACKAGE_TARNAME
  799. PACKAGE_NAME
  800. PATH_SEPARATOR
  801. SHELL'
  802. ac_subst_files=''
  803. ac_user_opts='
  804. enable_option_checking
  805. enable_silent_rules
  806. enable_maintainer_mode
  807. enable_dependency_tracking
  808. enable_shared
  809. enable_static
  810. with_pic
  811. enable_fast_install
  812. with_gnu_ld
  813. enable_libtool_lock
  814. '
  815. ac_precious_vars='build_alias
  816. host_alias
  817. target_alias
  818. CXX
  819. CXXFLAGS
  820. LDFLAGS
  821. LIBS
  822. CPPFLAGS
  823. CCC
  824. CC
  825. CFLAGS
  826. CPP
  827. CXXCPP
  828. PKG_CONFIG
  829. QNUTDISC_CFLAGS
  830. QNUTDISC_LIBS'
  831. # Initialize some variables set by options.
  832. ac_init_help=
  833. ac_init_version=false
  834. ac_unrecognized_opts=
  835. ac_unrecognized_sep=
  836. # The variables have the same names as the options, with
  837. # dashes changed to underlines.
  838. cache_file=/dev/null
  839. exec_prefix=NONE
  840. no_create=
  841. no_recursion=
  842. prefix=NONE
  843. program_prefix=NONE
  844. program_suffix=NONE
  845. program_transform_name=s,x,x,
  846. silent=
  847. site=
  848. srcdir=
  849. verbose=
  850. x_includes=NONE
  851. x_libraries=NONE
  852. # Installation directory options.
  853. # These are left unexpanded so users can "make install exec_prefix=/foo"
  854. # and all the variables that are supposed to be based on exec_prefix
  855. # by default will actually change.
  856. # Use braces instead of parens because sh, perl, etc. also accept them.
  857. # (The list follows the same order as the GNU Coding Standards.)
  858. bindir='${exec_prefix}/bin'
  859. sbindir='${exec_prefix}/sbin'
  860. libexecdir='${exec_prefix}/libexec'
  861. datarootdir='${prefix}/share'
  862. datadir='${datarootdir}'
  863. sysconfdir='${prefix}/etc'
  864. sharedstatedir='${prefix}/com'
  865. localstatedir='${prefix}/var'
  866. includedir='${prefix}/include'
  867. oldincludedir='/usr/include'
  868. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  869. infodir='${datarootdir}/info'
  870. htmldir='${docdir}'
  871. dvidir='${docdir}'
  872. pdfdir='${docdir}'
  873. psdir='${docdir}'
  874. libdir='${exec_prefix}/lib'
  875. localedir='${datarootdir}/locale'
  876. mandir='${datarootdir}/man'
  877. ac_prev=
  878. ac_dashdash=
  879. for ac_option
  880. do
  881. # If the previous option needs an argument, assign it.
  882. if test -n "$ac_prev"; then
  883. eval $ac_prev=\$ac_option
  884. ac_prev=
  885. continue
  886. fi
  887. case $ac_option in
  888. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  889. *) ac_optarg=yes ;;
  890. esac
  891. # Accept the important Cygnus configure options, so we can diagnose typos.
  892. case $ac_dashdash$ac_option in
  893. --)
  894. ac_dashdash=yes ;;
  895. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  896. ac_prev=bindir ;;
  897. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  898. bindir=$ac_optarg ;;
  899. -build | --build | --buil | --bui | --bu)
  900. ac_prev=build_alias ;;
  901. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  902. build_alias=$ac_optarg ;;
  903. -cache-file | --cache-file | --cache-fil | --cache-fi \
  904. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  905. ac_prev=cache_file ;;
  906. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  907. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  908. cache_file=$ac_optarg ;;
  909. --config-cache | -C)
  910. cache_file=config.cache ;;
  911. -datadir | --datadir | --datadi | --datad)
  912. ac_prev=datadir ;;
  913. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  914. datadir=$ac_optarg ;;
  915. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  916. | --dataroo | --dataro | --datar)
  917. ac_prev=datarootdir ;;
  918. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  919. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  920. datarootdir=$ac_optarg ;;
  921. -disable-* | --disable-*)
  922. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  923. # Reject names that are not valid shell variable names.
  924. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  925. as_fn_error "invalid feature name: $ac_useropt"
  926. ac_useropt_orig=$ac_useropt
  927. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  928. case $ac_user_opts in
  929. *"
  930. "enable_$ac_useropt"
  931. "*) ;;
  932. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  933. ac_unrecognized_sep=', ';;
  934. esac
  935. eval enable_$ac_useropt=no ;;
  936. -docdir | --docdir | --docdi | --doc | --do)
  937. ac_prev=docdir ;;
  938. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  939. docdir=$ac_optarg ;;
  940. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  941. ac_prev=dvidir ;;
  942. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  943. dvidir=$ac_optarg ;;
  944. -enable-* | --enable-*)
  945. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  946. # Reject names that are not valid shell variable names.
  947. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  948. as_fn_error "invalid feature name: $ac_useropt"
  949. ac_useropt_orig=$ac_useropt
  950. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  951. case $ac_user_opts in
  952. *"
  953. "enable_$ac_useropt"
  954. "*) ;;
  955. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  956. ac_unrecognized_sep=', ';;
  957. esac
  958. eval enable_$ac_useropt=\$ac_optarg ;;
  959. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  960. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  961. | --exec | --exe | --ex)
  962. ac_prev=exec_prefix ;;
  963. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  964. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  965. | --exec=* | --exe=* | --ex=*)
  966. exec_prefix=$ac_optarg ;;
  967. -gas | --gas | --ga | --g)
  968. # Obsolete; use --with-gas.
  969. with_gas=yes ;;
  970. -help | --help | --hel | --he | -h)
  971. ac_init_help=long ;;
  972. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  973. ac_init_help=recursive ;;
  974. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  975. ac_init_help=short ;;
  976. -host | --host | --hos | --ho)
  977. ac_prev=host_alias ;;
  978. -host=* | --host=* | --hos=* | --ho=*)
  979. host_alias=$ac_optarg ;;
  980. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  981. ac_prev=htmldir ;;
  982. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  983. | --ht=*)
  984. htmldir=$ac_optarg ;;
  985. -includedir | --includedir | --includedi | --included | --include \
  986. | --includ | --inclu | --incl | --inc)
  987. ac_prev=includedir ;;
  988. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  989. | --includ=* | --inclu=* | --incl=* | --inc=*)
  990. includedir=$ac_optarg ;;
  991. -infodir | --infodir | --infodi | --infod | --info | --inf)
  992. ac_prev=infodir ;;
  993. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  994. infodir=$ac_optarg ;;
  995. -libdir | --libdir | --libdi | --libd)
  996. ac_prev=libdir ;;
  997. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  998. libdir=$ac_optarg ;;
  999. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1000. | --libexe | --libex | --libe)
  1001. ac_prev=libexecdir ;;
  1002. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1003. | --libexe=* | --libex=* | --libe=*)
  1004. libexecdir=$ac_optarg ;;
  1005. -localedir | --localedir | --localedi | --localed | --locale)
  1006. ac_prev=localedir ;;
  1007. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1008. localedir=$ac_optarg ;;
  1009. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1010. | --localstate | --localstat | --localsta | --localst | --locals)
  1011. ac_prev=localstatedir ;;
  1012. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1013. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1014. localstatedir=$ac_optarg ;;
  1015. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1016. ac_prev=mandir ;;
  1017. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1018. mandir=$ac_optarg ;;
  1019. -nfp | --nfp | --nf)
  1020. # Obsolete; use --without-fp.
  1021. with_fp=no ;;
  1022. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1023. | --no-cr | --no-c | -n)
  1024. no_create=yes ;;
  1025. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1026. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1027. no_recursion=yes ;;
  1028. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1029. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1030. | --oldin | --oldi | --old | --ol | --o)
  1031. ac_prev=oldincludedir ;;
  1032. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1033. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1034. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1035. oldincludedir=$ac_optarg ;;
  1036. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1037. ac_prev=prefix ;;
  1038. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1039. prefix=$ac_optarg ;;
  1040. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1041. | --program-pre | --program-pr | --program-p)
  1042. ac_prev=program_prefix ;;
  1043. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1044. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1045. program_prefix=$ac_optarg ;;
  1046. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1047. | --program-suf | --program-su | --program-s)
  1048. ac_prev=program_suffix ;;
  1049. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1050. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1051. program_suffix=$ac_optarg ;;
  1052. -program-transform-name | --program-transform-name \
  1053. | --program-transform-nam | --program-transform-na \
  1054. | --program-transform-n | --program-transform- \
  1055. | --program-transform | --program-transfor \
  1056. | --program-transfo | --program-transf \
  1057. | --program-trans | --program-tran \
  1058. | --progr-tra | --program-tr | --program-t)
  1059. ac_prev=program_transform_name ;;
  1060. -program-transform-name=* | --program-transform-name=* \
  1061. | --program-transform-nam=* | --program-transform-na=* \
  1062. | --program-transform-n=* | --program-transform-=* \
  1063. | --program-transform=* | --program-transfor=* \
  1064. | --program-transfo=* | --program-transf=* \
  1065. | --program-trans=* | --program-tran=* \
  1066. | --progr-tra=* | --program-tr=* | --program-t=*)
  1067. program_transform_name=$ac_optarg ;;
  1068. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1069. ac_prev=pdfdir ;;
  1070. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1071. pdfdir=$ac_optarg ;;
  1072. -psdir | --psdir | --psdi | --psd | --ps)
  1073. ac_prev=psdir ;;
  1074. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1075. psdir=$ac_optarg ;;
  1076. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1077. | -silent | --silent | --silen | --sile | --sil)
  1078. silent=yes ;;
  1079. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1080. ac_prev=sbindir ;;
  1081. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1082. | --sbi=* | --sb=*)
  1083. sbindir=$ac_optarg ;;
  1084. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1085. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1086. | --sharedst | --shareds | --shared | --share | --shar \
  1087. | --sha | --sh)
  1088. ac_prev=sharedstatedir ;;
  1089. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1090. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1091. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1092. | --sha=* | --sh=*)
  1093. sharedstatedir=$ac_optarg ;;
  1094. -site | --site | --sit)
  1095. ac_prev=site ;;
  1096. -site=* | --site=* | --sit=*)
  1097. site=$ac_optarg ;;
  1098. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1099. ac_prev=srcdir ;;
  1100. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1101. srcdir=$ac_optarg ;;
  1102. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1103. | --syscon | --sysco | --sysc | --sys | --sy)
  1104. ac_prev=sysconfdir ;;
  1105. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1106. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1107. sysconfdir=$ac_optarg ;;
  1108. -target | --target | --targe | --targ | --tar | --ta | --t)
  1109. ac_prev=target_alias ;;
  1110. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1111. target_alias=$ac_optarg ;;
  1112. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1113. verbose=yes ;;
  1114. -version | --version | --versio | --versi | --vers | -V)
  1115. ac_init_version=: ;;
  1116. -with-* | --with-*)
  1117. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1118. # Reject names that are not valid shell variable names.
  1119. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1120. as_fn_error "invalid package name: $ac_useropt"
  1121. ac_useropt_orig=$ac_useropt
  1122. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1123. case $ac_user_opts in
  1124. *"
  1125. "with_$ac_useropt"
  1126. "*) ;;
  1127. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1128. ac_unrecognized_sep=', ';;
  1129. esac
  1130. eval with_$ac_useropt=\$ac_optarg ;;
  1131. -without-* | --without-*)
  1132. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1133. # Reject names that are not valid shell variable names.
  1134. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1135. as_fn_error "invalid package name: $ac_useropt"
  1136. ac_useropt_orig=$ac_useropt
  1137. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1138. case $ac_user_opts in
  1139. *"
  1140. "with_$ac_useropt"
  1141. "*) ;;
  1142. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1143. ac_unrecognized_sep=', ';;
  1144. esac
  1145. eval with_$ac_useropt=no ;;
  1146. --x)
  1147. # Obsolete; use --with-x.
  1148. with_x=yes ;;
  1149. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1150. | --x-incl | --x-inc | --x-in | --x-i)
  1151. ac_prev=x_includes ;;
  1152. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1153. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1154. x_includes=$ac_optarg ;;
  1155. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1156. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1157. ac_prev=x_libraries ;;
  1158. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1159. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1160. x_libraries=$ac_optarg ;;
  1161. -*) as_fn_error "unrecognized option: \`$ac_option'
  1162. Try \`$0 --help' for more information."
  1163. ;;
  1164. *=*)
  1165. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1166. # Reject names that are not valid shell variable names.
  1167. case $ac_envvar in #(
  1168. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1169. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1170. esac
  1171. eval $ac_envvar=\$ac_optarg
  1172. export $ac_envvar ;;
  1173. *)
  1174. # FIXME: should be removed in autoconf 3.0.
  1175. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1176. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1177. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1178. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1179. ;;
  1180. esac
  1181. done
  1182. if test -n "$ac_prev"; then
  1183. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1184. as_fn_error "missing argument to $ac_option"
  1185. fi
  1186. if test -n "$ac_unrecognized_opts"; then
  1187. case $enable_option_checking in
  1188. no) ;;
  1189. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1190. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1191. esac
  1192. fi
  1193. # Check all directory arguments for consistency.
  1194. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1195. datadir sysconfdir sharedstatedir localstatedir includedir \
  1196. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1197. libdir localedir mandir
  1198. do
  1199. eval ac_val=\$$ac_var
  1200. # Remove trailing slashes.
  1201. case $ac_val in
  1202. */ )
  1203. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1204. eval $ac_var=\$ac_val;;
  1205. esac
  1206. # Be sure to have absolute directory names.
  1207. case $ac_val in
  1208. [\\/$]* | ?:[\\/]* ) continue;;
  1209. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1210. esac
  1211. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1212. done
  1213. # There might be people who depend on the old broken behavior: `$host'
  1214. # used to hold the argument of --host etc.
  1215. # FIXME: To remove some day.
  1216. build=$build_alias
  1217. host=$host_alias
  1218. target=$target_alias
  1219. # FIXME: To remove some day.
  1220. if test "x$host_alias" != x; then
  1221. if test "x$build_alias" = x; then
  1222. cross_compiling=maybe
  1223. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1224. If a cross compiler is detected then cross compile mode will be used." >&2
  1225. elif test "x$build_alias" != "x$host_alias"; then
  1226. cross_compiling=yes
  1227. fi
  1228. fi
  1229. ac_tool_prefix=
  1230. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1231. test "$silent" = yes && exec 6>/dev/null
  1232. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1233. ac_ls_di=`ls -di .` &&
  1234. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1235. as_fn_error "working directory cannot be determined"
  1236. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1237. as_fn_error "pwd does not report name of working directory"
  1238. # Find the source files, if location was not specified.
  1239. if test -z "$srcdir"; then
  1240. ac_srcdir_defaulted=yes
  1241. # Try the directory containing this script, then the parent directory.
  1242. ac_confdir=`$as_dirname -- "$as_myself" ||
  1243. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1244. X"$as_myself" : 'X\(//\)[^/]' \| \
  1245. X"$as_myself" : 'X\(//\)$' \| \
  1246. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1247. $as_echo X"$as_myself" |
  1248. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1249. s//\1/
  1250. q
  1251. }
  1252. /^X\(\/\/\)[^/].*/{
  1253. s//\1/
  1254. q
  1255. }
  1256. /^X\(\/\/\)$/{
  1257. s//\1/
  1258. q
  1259. }
  1260. /^X\(\/\).*/{
  1261. s//\1/
  1262. q
  1263. }
  1264. s/.*/./; q'`
  1265. srcdir=$ac_confdir
  1266. if test ! -r "$srcdir/$ac_unique_file"; then
  1267. srcdir=..
  1268. fi
  1269. else
  1270. ac_srcdir_defaulted=no
  1271. fi
  1272. if test ! -r "$srcdir/$ac_unique_file"; then
  1273. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1274. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1275. fi
  1276. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1277. ac_abs_confdir=`(
  1278. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1279. pwd)`
  1280. # When building in place, set srcdir=.
  1281. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1282. srcdir=.
  1283. fi
  1284. # Remove unnecessary trailing slashes from srcdir.
  1285. # Double slashes in file names in object file debugging info
  1286. # mess up M-x gdb in Emacs.
  1287. case $srcdir in
  1288. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1289. esac
  1290. for ac_var in $ac_precious_vars; do
  1291. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1292. eval ac_env_${ac_var}_value=\$${ac_var}
  1293. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1294. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1295. done
  1296. #
  1297. # Report the --help message.
  1298. #
  1299. if test "$ac_init_help" = "long"; then
  1300. # Omit some internal or obsolete options to make the list less imposing.
  1301. # This message is too long to be a string in the A/UX 3.1 sh.
  1302. cat <<_ACEOF
  1303. \`configure' configures qnutdisc 3.0 to adapt to many kinds of systems.
  1304. Usage: $0 [OPTION]... [VAR=VALUE]...
  1305. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1306. VAR=VALUE. See below for descriptions of some of the useful variables.
  1307. Defaults for the options are specified in brackets.
  1308. Configuration:
  1309. -h, --help display this help and exit
  1310. --help=short display options specific to this package
  1311. --help=recursive display the short help of all the included packages
  1312. -V, --version display version information and exit
  1313. -q, --quiet, --silent do not print \`checking...' messages
  1314. --cache-file=FILE cache test results in FILE [disabled]
  1315. -C, --config-cache alias for \`--cache-file=config.cache'
  1316. -n, --no-create do not create output files
  1317. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1318. Installation directories:
  1319. --prefix=PREFIX install architecture-independent files in PREFIX
  1320. [$ac_default_prefix]
  1321. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1322. [PREFIX]
  1323. By default, \`make install' will install all the files in
  1324. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1325. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1326. for instance \`--prefix=\$HOME'.
  1327. For better control, use the options below.
  1328. Fine tuning of the installation directories:
  1329. --bindir=DIR user executables [EPREFIX/bin]
  1330. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1331. --libexecdir=DIR program executables [EPREFIX/libexec]
  1332. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1333. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1334. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1335. --libdir=DIR object code libraries [EPREFIX/lib]
  1336. --includedir=DIR C header files [PREFIX/include]
  1337. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1338. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1339. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1340. --infodir=DIR info documentation [DATAROOTDIR/info]
  1341. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1342. --mandir=DIR man documentation [DATAROOTDIR/man]
  1343. --docdir=DIR documentation root [DATAROOTDIR/doc/qnutdisc]
  1344. --htmldir=DIR html documentation [DOCDIR]
  1345. --dvidir=DIR dvi documentation [DOCDIR]
  1346. --pdfdir=DIR pdf documentation [DOCDIR]
  1347. --psdir=DIR ps documentation [DOCDIR]
  1348. _ACEOF
  1349. cat <<\_ACEOF
  1350. Program names:
  1351. --program-prefix=PREFIX prepend PREFIX to installed program names
  1352. --program-suffix=SUFFIX append SUFFIX to installed program names
  1353. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1354. System types:
  1355. --build=BUILD configure for building on BUILD [guessed]
  1356. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1357. _ACEOF
  1358. fi
  1359. if test -n "$ac_init_help"; then
  1360. case $ac_init_help in
  1361. short | recursive ) echo "Configuration of qnutdisc 3.0:";;
  1362. esac
  1363. cat <<\_ACEOF
  1364. Optional Features:
  1365. --disable-option-checking ignore unrecognized --enable/--with options
  1366. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1367. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1368. --enable-silent-rules less verbose build output (undo: `make V=1')
  1369. --disable-silent-rules verbose build output (undo: `make V=0')
  1370. --enable-maintainer-mode enable make rules and dependencies not useful
  1371. (and sometimes confusing) to the casual installer
  1372. --disable-dependency-tracking speeds up one-time build
  1373. --enable-dependency-tracking do not reject slow dependency extractors
  1374. --enable-shared[=PKGS] build shared libraries [default=yes]
  1375. --enable-static[=PKGS] build static libraries [default=yes]
  1376. --enable-fast-install[=PKGS]
  1377. optimize for fast installation [default=yes]
  1378. --disable-libtool-lock avoid locking (might break parallel builds)
  1379. Optional Packages:
  1380. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1381. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1382. --with-pic try to use only PIC/non-PIC objects [default=use
  1383. both]
  1384. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1385. Some influential environment variables:
  1386. CXX C++ compiler command
  1387. CXXFLAGS C++ compiler flags
  1388. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1389. nonstandard directory <lib dir>
  1390. LIBS libraries to pass to the linker, e.g. -l<library>
  1391. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1392. you have headers in a nonstandard directory <include dir>
  1393. CC C compiler command
  1394. CFLAGS C compiler flags
  1395. CPP C preprocessor
  1396. CXXCPP C++ preprocessor
  1397. PKG_CONFIG path to pkg-config utility
  1398. QNUTDISC_CFLAGS
  1399. C compiler flags for QNUTDISC, overriding pkg-config
  1400. QNUTDISC_LIBS
  1401. linker flags for QNUTDISC, overriding pkg-config
  1402. Use these variables to override the choices made by `configure' or to help
  1403. it to find libraries and programs with nonstandard names/locations.
  1404. Report bugs to the package provider.
  1405. _ACEOF
  1406. ac_status=$?
  1407. fi
  1408. if test "$ac_init_help" = "recursive"; then
  1409. # If there are subdirs, report their specific --help.
  1410. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1411. test -d "$ac_dir" ||
  1412. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1413. continue
  1414. ac_builddir=.
  1415. case "$ac_dir" in
  1416. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1417. *)
  1418. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1419. # A ".." for each directory in $ac_dir_suffix.
  1420. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1421. case $ac_top_builddir_sub in
  1422. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1423. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1424. esac ;;
  1425. esac
  1426. ac_abs_top_builddir=$ac_pwd
  1427. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1428. # for backward compatibility:
  1429. ac_top_builddir=$ac_top_build_prefix
  1430. case $srcdir in
  1431. .) # We are building in place.
  1432. ac_srcdir=.
  1433. ac_top_srcdir=$ac_top_builddir_sub
  1434. ac_abs_top_srcdir=$ac_pwd ;;
  1435. [\\/]* | ?:[\\/]* ) # Absolute name.
  1436. ac_srcdir=$srcdir$ac_dir_suffix;
  1437. ac_top_srcdir=$srcdir
  1438. ac_abs_top_srcdir=$srcdir ;;
  1439. *) # Relative name.
  1440. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1441. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1442. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1443. esac
  1444. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1445. cd "$ac_dir" || { ac_status=$?; continue; }
  1446. # Check for guested configure.
  1447. if test -f "$ac_srcdir/configure.gnu"; then
  1448. echo &&
  1449. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1450. elif test -f "$ac_srcdir/configure"; then
  1451. echo &&
  1452. $SHELL "$ac_srcdir/configure" --help=recursive
  1453. else
  1454. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1455. fi || ac_status=$?
  1456. cd "$ac_pwd" || { ac_status=$?; break; }
  1457. done
  1458. fi
  1459. test -n "$ac_init_help" && exit $ac_status
  1460. if $ac_init_version; then
  1461. cat <<\_ACEOF
  1462. qnutdisc configure 3.0
  1463. generated by GNU Autoconf 2.65
  1464. Copyright (C) 2009 Free Software Foundation, Inc.
  1465. This configure script is free software; the Free Software Foundation
  1466. gives unlimited permission to copy, distribute and modify it.
  1467. _ACEOF
  1468. exit
  1469. fi
  1470. ## ------------------------ ##
  1471. ## Autoconf initialization. ##
  1472. ## ------------------------ ##
  1473. # ac_fn_cxx_try_compile LINENO
  1474. # ----------------------------
  1475. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1476. ac_fn_cxx_try_compile ()
  1477. {
  1478. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1479. rm -f conftest.$ac_objext
  1480. if { { ac_try="$ac_compile"
  1481. case "(($ac_try" in
  1482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1483. *) ac_try_echo=$ac_try;;
  1484. esac
  1485. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1486. $as_echo "$ac_try_echo"; } >&5
  1487. (eval "$ac_compile") 2>conftest.err
  1488. ac_status=$?
  1489. if test -s conftest.err; then
  1490. grep -v '^ *+' conftest.err >conftest.er1
  1491. cat conftest.er1 >&5
  1492. mv -f conftest.er1 conftest.err
  1493. fi
  1494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1495. test $ac_status = 0; } && {
  1496. test -z "$ac_cxx_werror_flag" ||
  1497. test ! -s conftest.err
  1498. } && test -s conftest.$ac_objext; then :
  1499. ac_retval=0
  1500. else
  1501. $as_echo "$as_me: failed program was:" >&5
  1502. sed 's/^/| /' conftest.$ac_ext >&5
  1503. ac_retval=1
  1504. fi
  1505. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1506. as_fn_set_status $ac_retval
  1507. } # ac_fn_cxx_try_compile
  1508. # ac_fn_c_try_compile LINENO
  1509. # --------------------------
  1510. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1511. ac_fn_c_try_compile ()
  1512. {
  1513. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1514. rm -f conftest.$ac_objext
  1515. if { { ac_try="$ac_compile"
  1516. case "(($ac_try" in
  1517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1518. *) ac_try_echo=$ac_try;;
  1519. esac
  1520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1521. $as_echo "$ac_try_echo"; } >&5
  1522. (eval "$ac_compile") 2>conftest.err
  1523. ac_status=$?
  1524. if test -s conftest.err; then
  1525. grep -v '^ *+' conftest.err >conftest.er1
  1526. cat conftest.er1 >&5
  1527. mv -f conftest.er1 conftest.err
  1528. fi
  1529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1530. test $ac_status = 0; } && {
  1531. test -z "$ac_c_werror_flag" ||
  1532. test ! -s conftest.err
  1533. } && test -s conftest.$ac_objext; then :
  1534. ac_retval=0
  1535. else
  1536. $as_echo "$as_me: failed program was:" >&5
  1537. sed 's/^/| /' conftest.$ac_ext >&5
  1538. ac_retval=1
  1539. fi
  1540. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1541. as_fn_set_status $ac_retval
  1542. } # ac_fn_c_try_compile
  1543. # ac_fn_c_try_link LINENO
  1544. # -----------------------
  1545. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1546. ac_fn_c_try_link ()
  1547. {
  1548. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1549. rm -f conftest.$ac_objext conftest$ac_exeext
  1550. if { { ac_try="$ac_link"
  1551. case "(($ac_try" in
  1552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1553. *) ac_try_echo=$ac_try;;
  1554. esac
  1555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1556. $as_echo "$ac_try_echo"; } >&5
  1557. (eval "$ac_link") 2>conftest.err
  1558. ac_status=$?
  1559. if test -s conftest.err; then
  1560. grep -v '^ *+' conftest.err >conftest.er1
  1561. cat conftest.er1 >&5
  1562. mv -f conftest.er1 conftest.err
  1563. fi
  1564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1565. test $ac_status = 0; } && {
  1566. test -z "$ac_c_werror_flag" ||
  1567. test ! -s conftest.err
  1568. } && test -s conftest$ac_exeext && {
  1569. test "$cross_compiling" = yes ||
  1570. $as_test_x conftest$ac_exeext
  1571. }; then :
  1572. ac_retval=0
  1573. else
  1574. $as_echo "$as_me: failed program was:" >&5
  1575. sed 's/^/| /' conftest.$ac_ext >&5
  1576. ac_retval=1
  1577. fi
  1578. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1579. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1580. # interfere with the next link command; also delete a directory that is
  1581. # left behind by Apple's compiler. We do this before executing the actions.
  1582. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1583. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1584. as_fn_set_status $ac_retval
  1585. } # ac_fn_c_try_link
  1586. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1587. # -------------------------------------------------------
  1588. # Tests whether HEADER exists and can be compiled using the include files in
  1589. # INCLUDES, setting the cache variable VAR accordingly.
  1590. ac_fn_c_check_header_compile ()
  1591. {
  1592. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1594. $as_echo_n "checking for $2... " >&6; }
  1595. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1596. $as_echo_n "(cached) " >&6
  1597. else
  1598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1599. /* end confdefs.h. */
  1600. $4
  1601. #include <$2>
  1602. _ACEOF
  1603. if ac_fn_c_try_compile "$LINENO"; then :
  1604. eval "$3=yes"
  1605. else
  1606. eval "$3=no"
  1607. fi
  1608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1609. fi
  1610. eval ac_res=\$$3
  1611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1612. $as_echo "$ac_res" >&6; }
  1613. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1614. } # ac_fn_c_check_header_compile
  1615. # ac_fn_c_try_cpp LINENO
  1616. # ----------------------
  1617. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1618. ac_fn_c_try_cpp ()
  1619. {
  1620. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1621. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1622. case "(($ac_try" in
  1623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1624. *) ac_try_echo=$ac_try;;
  1625. esac
  1626. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1627. $as_echo "$ac_try_echo"; } >&5
  1628. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1629. ac_status=$?
  1630. if test -s conftest.err; then
  1631. grep -v '^ *+' conftest.err >conftest.er1
  1632. cat conftest.er1 >&5
  1633. mv -f conftest.er1 conftest.err
  1634. fi
  1635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1636. test $ac_status = 0; } >/dev/null && {
  1637. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1638. test ! -s conftest.err
  1639. }; then :
  1640. ac_retval=0
  1641. else
  1642. $as_echo "$as_me: failed program was:" >&5
  1643. sed 's/^/| /' conftest.$ac_ext >&5
  1644. ac_retval=1
  1645. fi
  1646. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1647. as_fn_set_status $ac_retval
  1648. } # ac_fn_c_try_cpp
  1649. # ac_fn_c_try_run LINENO
  1650. # ----------------------
  1651. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1652. # that executables *can* be run.
  1653. ac_fn_c_try_run ()
  1654. {
  1655. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1656. if { { ac_try="$ac_link"
  1657. case "(($ac_try" in
  1658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1659. *) ac_try_echo=$ac_try;;
  1660. esac
  1661. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1662. $as_echo "$ac_try_echo"; } >&5
  1663. (eval "$ac_link") 2>&5
  1664. ac_status=$?
  1665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1666. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  1674. ac_status=$?
  1675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1676. test $ac_status = 0; }; }; then :
  1677. ac_retval=0
  1678. else
  1679. $as_echo "$as_me: program exited with status $ac_status" >&5
  1680. $as_echo "$as_me: failed program was:" >&5
  1681. sed 's/^/| /' conftest.$ac_ext >&5
  1682. ac_retval=$ac_status
  1683. fi
  1684. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1685. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1686. as_fn_set_status $ac_retval
  1687. } # ac_fn_c_try_run
  1688. # ac_fn_c_check_func LINENO FUNC VAR
  1689. # ----------------------------------
  1690. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1691. ac_fn_c_check_func ()
  1692. {
  1693. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1695. $as_echo_n "checking for $2... " >&6; }
  1696. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1697. $as_echo_n "(cached) " >&6
  1698. else
  1699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1700. /* end confdefs.h. */
  1701. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1702. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1703. #define $2 innocuous_$2
  1704. /* System header to define __stub macros and hopefully few prototypes,
  1705. which can conflict with char $2 (); below.
  1706. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1707. <limits.h> exists even on freestanding compilers. */
  1708. #ifdef __STDC__
  1709. # include <limits.h>
  1710. #else
  1711. # include <assert.h>
  1712. #endif
  1713. #undef $2
  1714. /* Override any GCC internal prototype to avoid an error.
  1715. Use char because int might match the return type of a GCC
  1716. builtin and then its argument prototype would still apply. */
  1717. #ifdef __cplusplus
  1718. extern "C"
  1719. #endif
  1720. char $2 ();
  1721. /* The GNU C library defines this for functions which it implements
  1722. to always fail with ENOSYS. Some functions are actually named
  1723. something starting with __ and the normal name is an alias. */
  1724. #if defined __stub_$2 || defined __stub___$2
  1725. choke me
  1726. #endif
  1727. int
  1728. main ()
  1729. {
  1730. return $2 ();
  1731. ;
  1732. return 0;
  1733. }
  1734. _ACEOF
  1735. if ac_fn_c_try_link "$LINENO"; then :
  1736. eval "$3=yes"
  1737. else
  1738. eval "$3=no"
  1739. fi
  1740. rm -f core conftest.err conftest.$ac_objext \
  1741. conftest$ac_exeext conftest.$ac_ext
  1742. fi
  1743. eval ac_res=\$$3
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1745. $as_echo "$ac_res" >&6; }
  1746. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1747. } # ac_fn_c_check_func
  1748. # ac_fn_cxx_try_cpp LINENO
  1749. # ------------------------
  1750. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1751. ac_fn_cxx_try_cpp ()
  1752. {
  1753. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1754. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1755. case "(($ac_try" in
  1756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1757. *) ac_try_echo=$ac_try;;
  1758. esac
  1759. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1760. $as_echo "$ac_try_echo"; } >&5
  1761. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1762. ac_status=$?
  1763. if test -s conftest.err; then
  1764. grep -v '^ *+' conftest.err >conftest.er1
  1765. cat conftest.er1 >&5
  1766. mv -f conftest.er1 conftest.err
  1767. fi
  1768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1769. test $ac_status = 0; } >/dev/null && {
  1770. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1771. test ! -s conftest.err
  1772. }; then :
  1773. ac_retval=0
  1774. else
  1775. $as_echo "$as_me: failed program was:" >&5
  1776. sed 's/^/| /' conftest.$ac_ext >&5
  1777. ac_retval=1
  1778. fi
  1779. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1780. as_fn_set_status $ac_retval
  1781. } # ac_fn_cxx_try_cpp
  1782. # ac_fn_cxx_try_link LINENO
  1783. # -------------------------
  1784. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1785. ac_fn_cxx_try_link ()
  1786. {
  1787. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1788. rm -f conftest.$ac_objext conftest$ac_exeext
  1789. if { { ac_try="$ac_link"
  1790. case "(($ac_try" in
  1791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1792. *) ac_try_echo=$ac_try;;
  1793. esac
  1794. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1795. $as_echo "$ac_try_echo"; } >&5
  1796. (eval "$ac_link") 2>conftest.err
  1797. ac_status=$?
  1798. if test -s conftest.err; then
  1799. grep -v '^ *+' conftest.err >conftest.er1
  1800. cat conftest.er1 >&5
  1801. mv -f conftest.er1 conftest.err
  1802. fi
  1803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1804. test $ac_status = 0; } && {
  1805. test -z "$ac_cxx_werror_flag" ||
  1806. test ! -s conftest.err
  1807. } && test -s conftest$ac_exeext && {
  1808. test "$cross_compiling" = yes ||
  1809. $as_test_x conftest$ac_exeext
  1810. }; then :
  1811. ac_retval=0
  1812. else
  1813. $as_echo "$as_me: failed program was:" >&5
  1814. sed 's/^/| /' conftest.$ac_ext >&5
  1815. ac_retval=1
  1816. fi
  1817. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1818. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1819. # interfere with the next link command; also delete a directory that is
  1820. # left behind by Apple's compiler. We do this before executing the actions.
  1821. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1822. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1823. as_fn_set_status $ac_retval
  1824. } # ac_fn_cxx_try_link
  1825. cat >config.log <<_ACEOF
  1826. This file contains any messages produced by compilers while
  1827. running configure, to aid debugging if configure makes a mistake.
  1828. It was created by qnutdisc $as_me 3.0, which was
  1829. generated by GNU Autoconf 2.65. Invocation command line was
  1830. $ $0 $@
  1831. _ACEOF
  1832. exec 5>>config.log
  1833. {
  1834. cat <<_ASUNAME
  1835. ## --------- ##
  1836. ## Platform. ##
  1837. ## --------- ##
  1838. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1839. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1840. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1841. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1842. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1843. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1844. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1845. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1846. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1847. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1848. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1849. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1850. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1851. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1852. _ASUNAME
  1853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1854. for as_dir in $PATH
  1855. do
  1856. IFS=$as_save_IFS
  1857. test -z "$as_dir" && as_dir=.
  1858. $as_echo "PATH: $as_dir"
  1859. done
  1860. IFS=$as_save_IFS
  1861. } >&5
  1862. cat >&5 <<_ACEOF
  1863. ## ----------- ##
  1864. ## Core tests. ##
  1865. ## ----------- ##
  1866. _ACEOF
  1867. # Keep a trace of the command line.
  1868. # Strip out --no-create and --no-recursion so they do not pile up.
  1869. # Strip out --silent because we don't want to record it for future runs.
  1870. # Also quote any args containing shell meta-characters.
  1871. # Make two passes to allow for proper duplicate-argument suppression.
  1872. ac_configure_args=
  1873. ac_configure_args0=
  1874. ac_configure_args1=
  1875. ac_must_keep_next=false
  1876. for ac_pass in 1 2
  1877. do
  1878. for ac_arg
  1879. do
  1880. case $ac_arg in
  1881. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1882. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1883. | -silent | --silent | --silen | --sile | --sil)
  1884. continue ;;
  1885. *\'*)
  1886. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1887. esac
  1888. case $ac_pass in
  1889. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1890. 2)
  1891. as_fn_append ac_configure_args1 " '$ac_arg'"
  1892. if test $ac_must_keep_next = true; then
  1893. ac_must_keep_next=false # Got value, back to normal.
  1894. else
  1895. case $ac_arg in
  1896. *=* | --config-cache | -C | -disable-* | --disable-* \
  1897. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1898. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1899. | -with-* | --with-* | -without-* | --without-* | --x)
  1900. case "$ac_configure_args0 " in
  1901. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1902. esac
  1903. ;;
  1904. -* ) ac_must_keep_next=true ;;
  1905. esac
  1906. fi
  1907. as_fn_append ac_configure_args " '$ac_arg'"
  1908. ;;
  1909. esac
  1910. done
  1911. done
  1912. { ac_configure_args0=; unset ac_configure_args0;}
  1913. { ac_configure_args1=; unset ac_configure_args1;}
  1914. # When interrupted or exit'd, cleanup temporary files, and complete
  1915. # config.log. We remove comments because anyway the quotes in there
  1916. # would cause problems or look ugly.
  1917. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1918. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1919. trap 'exit_status=$?
  1920. # Save into config.log some information that might help in debugging.
  1921. {
  1922. echo
  1923. cat <<\_ASBOX
  1924. ## ---------------- ##
  1925. ## Cache variables. ##
  1926. ## ---------------- ##
  1927. _ASBOX
  1928. echo
  1929. # The following way of writing the cache mishandles newlines in values,
  1930. (
  1931. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1932. eval ac_val=\$$ac_var
  1933. case $ac_val in #(
  1934. *${as_nl}*)
  1935. case $ac_var in #(
  1936. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1937. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1938. esac
  1939. case $ac_var in #(
  1940. _ | IFS | as_nl) ;; #(
  1941. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1942. *) { eval $ac_var=; unset $ac_var;} ;;
  1943. esac ;;
  1944. esac
  1945. done
  1946. (set) 2>&1 |
  1947. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1948. *${as_nl}ac_space=\ *)
  1949. sed -n \
  1950. "s/'\''/'\''\\\\'\'''\''/g;
  1951. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1952. ;; #(
  1953. *)
  1954. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1955. ;;
  1956. esac |
  1957. sort
  1958. )
  1959. echo
  1960. cat <<\_ASBOX
  1961. ## ----------------- ##
  1962. ## Output variables. ##
  1963. ## ----------------- ##
  1964. _ASBOX
  1965. echo
  1966. for ac_var in $ac_subst_vars
  1967. do
  1968. eval ac_val=\$$ac_var
  1969. case $ac_val in
  1970. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1971. esac
  1972. $as_echo "$ac_var='\''$ac_val'\''"
  1973. done | sort
  1974. echo
  1975. if test -n "$ac_subst_files"; then
  1976. cat <<\_ASBOX
  1977. ## ------------------- ##
  1978. ## File substitutions. ##
  1979. ## ------------------- ##
  1980. _ASBOX
  1981. echo
  1982. for ac_var in $ac_subst_files
  1983. do
  1984. eval ac_val=\$$ac_var
  1985. case $ac_val in
  1986. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1987. esac
  1988. $as_echo "$ac_var='\''$ac_val'\''"
  1989. done | sort
  1990. echo
  1991. fi
  1992. if test -s confdefs.h; then
  1993. cat <<\_ASBOX
  1994. ## ----------- ##
  1995. ## confdefs.h. ##
  1996. ## ----------- ##
  1997. _ASBOX
  1998. echo
  1999. cat confdefs.h
  2000. echo
  2001. fi
  2002. test "$ac_signal" != 0 &&
  2003. $as_echo "$as_me: caught signal $ac_signal"
  2004. $as_echo "$as_me: exit $exit_status"
  2005. } >&5
  2006. rm -f core *.core core.conftest.* &&
  2007. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2008. exit $exit_status
  2009. ' 0
  2010. for ac_signal in 1 2 13 15; do
  2011. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2012. done
  2013. ac_signal=0
  2014. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2015. rm -f -r conftest* confdefs.h
  2016. $as_echo "/* confdefs.h */" > confdefs.h
  2017. # Predefined preprocessor variables.
  2018. cat >>confdefs.h <<_ACEOF
  2019. #define PACKAGE_NAME "$PACKAGE_NAME"
  2020. _ACEOF
  2021. cat >>confdefs.h <<_ACEOF
  2022. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2023. _ACEOF
  2024. cat >>confdefs.h <<_ACEOF
  2025. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2026. _ACEOF
  2027. cat >>confdefs.h <<_ACEOF
  2028. #define PACKAGE_STRING "$PACKAGE_STRING"
  2029. _ACEOF
  2030. cat >>confdefs.h <<_ACEOF
  2031. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2032. _ACEOF
  2033. cat >>confdefs.h <<_ACEOF
  2034. #define PACKAGE_URL "$PACKAGE_URL"
  2035. _ACEOF
  2036. # Let the site file select an alternate cache file if it wants to.
  2037. # Prefer an explicitly selected file to automatically selected ones.
  2038. ac_site_file1=NONE
  2039. ac_site_file2=NONE
  2040. if test -n "$CONFIG_SITE"; then
  2041. ac_site_file1=$CONFIG_SITE
  2042. elif test "x$prefix" != xNONE; then
  2043. ac_site_file1=$prefix/share/config.site
  2044. ac_site_file2=$prefix/etc/config.site
  2045. else
  2046. ac_site_file1=$ac_default_prefix/share/config.site
  2047. ac_site_file2=$ac_default_prefix/etc/config.site
  2048. fi
  2049. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2050. do
  2051. test "x$ac_site_file" = xNONE && continue
  2052. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2054. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2055. sed 's/^/| /' "$ac_site_file" >&5
  2056. . "$ac_site_file"
  2057. fi
  2058. done
  2059. if test -r "$cache_file"; then
  2060. # Some versions of bash will fail to source /dev/null (special files
  2061. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2062. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2064. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2065. case $cache_file in
  2066. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2067. *) . "./$cache_file";;
  2068. esac
  2069. fi
  2070. else
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2072. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2073. >$cache_file
  2074. fi
  2075. # Check that the precious variables saved in the cache have kept the same
  2076. # value.
  2077. ac_cache_corrupted=false
  2078. for ac_var in $ac_precious_vars; do
  2079. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2080. eval ac_new_set=\$ac_env_${ac_var}_set
  2081. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2082. eval ac_new_val=\$ac_env_${ac_var}_value
  2083. case $ac_old_set,$ac_new_set in
  2084. set,)
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2086. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2087. ac_cache_corrupted=: ;;
  2088. ,set)
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2090. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2091. ac_cache_corrupted=: ;;
  2092. ,);;
  2093. *)
  2094. if test "x$ac_old_val" != "x$ac_new_val"; then
  2095. # differences in whitespace do not lead to failure.
  2096. ac_old_val_w=`echo x $ac_old_val`
  2097. ac_new_val_w=`echo x $ac_new_val`
  2098. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2100. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2101. ac_cache_corrupted=:
  2102. else
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2104. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2105. eval $ac_var=\$ac_old_val
  2106. fi
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2108. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2110. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2111. fi;;
  2112. esac
  2113. # Pass precious variables to config.status.
  2114. if test "$ac_new_set" = set; then
  2115. case $ac_new_val in
  2116. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2117. *) ac_arg=$ac_var=$ac_new_val ;;
  2118. esac
  2119. case " $ac_configure_args " in
  2120. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2121. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2122. esac
  2123. fi
  2124. done
  2125. if $ac_cache_corrupted; then
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2127. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2129. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2130. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2131. fi
  2132. ## -------------------- ##
  2133. ## Main body of script. ##
  2134. ## -------------------- ##
  2135. ac_ext=c
  2136. ac_cpp='$CPP $CPPFLAGS'
  2137. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2138. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2139. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2140. # Check whether --enable-silent-rules was given.
  2141. if test "${enable_silent_rules+set}" = set; then :
  2142. enableval=$enable_silent_rules;
  2143. fi
  2144. case $enable_silent_rules in
  2145. yes) AM_DEFAULT_VERBOSITY=0;;
  2146. no) AM_DEFAULT_VERBOSITY=1;;
  2147. *) AM_DEFAULT_VERBOSITY=0;;
  2148. esac
  2149. AM_BACKSLASH='\'
  2150. am__api_version='1.11'
  2151. ac_aux_dir=
  2152. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2153. for ac_t in install-sh install.sh shtool; do
  2154. if test -f "$ac_dir/$ac_t"; then
  2155. ac_aux_dir=$ac_dir
  2156. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2157. break 2
  2158. fi
  2159. done
  2160. done
  2161. if test -z "$ac_aux_dir"; then
  2162. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2163. fi
  2164. # These three variables are undocumented and unsupported,
  2165. # and are intended to be withdrawn in a future Autoconf release.
  2166. # They can cause serious problems if a builder's source tree is in a directory
  2167. # whose full name contains unusual characters.
  2168. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2169. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2170. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2171. # Find a good install program. We prefer a C program (faster),
  2172. # so one script is as good as another. But avoid the broken or
  2173. # incompatible versions:
  2174. # SysV /etc/install, /usr/sbin/install
  2175. # SunOS /usr/etc/install
  2176. # IRIX /sbin/install
  2177. # AIX /bin/install
  2178. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2179. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2180. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2181. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2182. # OS/2's system install, which has a completely different semantic
  2183. # ./install, which can be erroneously created by make from ./install.sh.
  2184. # Reject install programs that cannot install multiple files.
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2186. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2187. if test -z "$INSTALL"; then
  2188. if test "${ac_cv_path_install+set}" = set; then :
  2189. $as_echo_n "(cached) " >&6
  2190. else
  2191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2192. for as_dir in $PATH
  2193. do
  2194. IFS=$as_save_IFS
  2195. test -z "$as_dir" && as_dir=.
  2196. # Account for people who put trailing slashes in PATH elements.
  2197. case $as_dir/ in #((
  2198. ./ | .// | /[cC]/* | \
  2199. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2200. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2201. /usr/ucb/* ) ;;
  2202. *)
  2203. # OSF1 and SCO ODT 3.0 have their own names for install.
  2204. # Don't use installbsd from OSF since it installs stuff as root
  2205. # by default.
  2206. for ac_prog in ginstall scoinst install; do
  2207. for ac_exec_ext in '' $ac_executable_extensions; do
  2208. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2209. if test $ac_prog = install &&
  2210. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2211. # AIX install. It has an incompatible calling convention.
  2212. :
  2213. elif test $ac_prog = install &&
  2214. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2215. # program-specific install script used by HP pwplus--don't use.
  2216. :
  2217. else
  2218. rm -rf conftest.one conftest.two conftest.dir
  2219. echo one > conftest.one
  2220. echo two > conftest.two
  2221. mkdir conftest.dir
  2222. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2223. test -s conftest.one && test -s conftest.two &&
  2224. test -s conftest.dir/conftest.one &&
  2225. test -s conftest.dir/conftest.two
  2226. then
  2227. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2228. break 3
  2229. fi
  2230. fi
  2231. fi
  2232. done
  2233. done
  2234. ;;
  2235. esac
  2236. done
  2237. IFS=$as_save_IFS
  2238. rm -rf conftest.one conftest.two conftest.dir
  2239. fi
  2240. if test "${ac_cv_path_install+set}" = set; then
  2241. INSTALL=$ac_cv_path_install
  2242. else
  2243. # As a last resort, use the slow shell script. Don't cache a
  2244. # value for INSTALL within a source directory, because that will
  2245. # break other packages using the cache if that directory is
  2246. # removed, or if the value is a relative name.
  2247. INSTALL=$ac_install_sh
  2248. fi
  2249. fi
  2250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2251. $as_echo "$INSTALL" >&6; }
  2252. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2253. # It thinks the first close brace ends the variable substitution.
  2254. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2255. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2256. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2258. $as_echo_n "checking whether build environment is sane... " >&6; }
  2259. # Just in case
  2260. sleep 1
  2261. echo timestamp > conftest.file
  2262. # Reject unsafe characters in $srcdir or the absolute working directory
  2263. # name. Accept space and tab only in the latter.
  2264. am_lf='
  2265. '
  2266. case `pwd` in
  2267. *[\\\"\#\$\&\'\`$am_lf]*)
  2268. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2269. esac
  2270. case $srcdir in
  2271. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2272. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2273. esac
  2274. # Do `set' in a subshell so we don't clobber the current shell's
  2275. # arguments. Must try -L first in case configure is actually a
  2276. # symlink; some systems play weird games with the mod time of symlinks
  2277. # (eg FreeBSD returns the mod time of the symlink's containing
  2278. # directory).
  2279. if (
  2280. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2281. if test "$*" = "X"; then
  2282. # -L didn't work.
  2283. set X `ls -t "$srcdir/configure" conftest.file`
  2284. fi
  2285. rm -f conftest.file
  2286. if test "$*" != "X $srcdir/configure conftest.file" \
  2287. && test "$*" != "X conftest.file $srcdir/configure"; then
  2288. # If neither matched, then we have a broken ls. This can happen
  2289. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2290. # broken ls alias from the environment. This has actually
  2291. # happened. Such a system could not be considered "sane".
  2292. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2293. alias in your environment" "$LINENO" 5
  2294. fi
  2295. test "$2" = conftest.file
  2296. )
  2297. then
  2298. # Ok.
  2299. :
  2300. else
  2301. as_fn_error "newly created file is older than distributed files!
  2302. Check your system clock" "$LINENO" 5
  2303. fi
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2305. $as_echo "yes" >&6; }
  2306. test "$program_prefix" != NONE &&
  2307. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2308. # Use a double $ so make ignores it.
  2309. test "$program_suffix" != NONE &&
  2310. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2311. # Double any \ or $.
  2312. # By default was `s,x,x', remove it if useless.
  2313. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2314. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2315. # expand $ac_aux_dir to an absolute path
  2316. am_aux_dir=`cd $ac_aux_dir && pwd`
  2317. if test x"${MISSING+set}" != xset; then
  2318. case $am_aux_dir in
  2319. *\ * | *\ *)
  2320. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2321. *)
  2322. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2323. esac
  2324. fi
  2325. # Use eval to expand $SHELL
  2326. if eval "$MISSING --run true"; then
  2327. am_missing_run="$MISSING --run "
  2328. else
  2329. am_missing_run=
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2331. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2332. fi
  2333. if test x"${install_sh}" != xset; then
  2334. case $am_aux_dir in
  2335. *\ * | *\ *)
  2336. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2337. *)
  2338. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2339. esac
  2340. fi
  2341. # Installed binaries are usually stripped using `strip' when the user
  2342. # run `make install-strip'. However `strip' might not be the right
  2343. # tool to use in cross-compilation environments, therefore Automake
  2344. # will honor the `STRIP' environment variable to overrule this program.
  2345. if test "$cross_compiling" != no; then
  2346. if test -n "$ac_tool_prefix"; then
  2347. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2348. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2350. $as_echo_n "checking for $ac_word... " >&6; }
  2351. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2352. $as_echo_n "(cached) " >&6
  2353. else
  2354. if test -n "$STRIP"; then
  2355. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2356. else
  2357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2358. for as_dir in $PATH
  2359. do
  2360. IFS=$as_save_IFS
  2361. test -z "$as_dir" && as_dir=.
  2362. for ac_exec_ext in '' $ac_executable_extensions; do
  2363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2364. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2366. break 2
  2367. fi
  2368. done
  2369. done
  2370. IFS=$as_save_IFS
  2371. fi
  2372. fi
  2373. STRIP=$ac_cv_prog_STRIP
  2374. if test -n "$STRIP"; then
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2376. $as_echo "$STRIP" >&6; }
  2377. else
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2379. $as_echo "no" >&6; }
  2380. fi
  2381. fi
  2382. if test -z "$ac_cv_prog_STRIP"; then
  2383. ac_ct_STRIP=$STRIP
  2384. # Extract the first word of "strip", so it can be a program name with args.
  2385. set dummy strip; ac_word=$2
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2387. $as_echo_n "checking for $ac_word... " >&6; }
  2388. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2389. $as_echo_n "(cached) " >&6
  2390. else
  2391. if test -n "$ac_ct_STRIP"; then
  2392. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2393. else
  2394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2395. for as_dir in $PATH
  2396. do
  2397. IFS=$as_save_IFS
  2398. test -z "$as_dir" && as_dir=.
  2399. for ac_exec_ext in '' $ac_executable_extensions; do
  2400. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2401. ac_cv_prog_ac_ct_STRIP="strip"
  2402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2403. break 2
  2404. fi
  2405. done
  2406. done
  2407. IFS=$as_save_IFS
  2408. fi
  2409. fi
  2410. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2411. if test -n "$ac_ct_STRIP"; then
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2413. $as_echo "$ac_ct_STRIP" >&6; }
  2414. else
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2416. $as_echo "no" >&6; }
  2417. fi
  2418. if test "x$ac_ct_STRIP" = x; then
  2419. STRIP=":"
  2420. else
  2421. case $cross_compiling:$ac_tool_warned in
  2422. yes:)
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2424. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2425. ac_tool_warned=yes ;;
  2426. esac
  2427. STRIP=$ac_ct_STRIP
  2428. fi
  2429. else
  2430. STRIP="$ac_cv_prog_STRIP"
  2431. fi
  2432. fi
  2433. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2435. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2436. if test -z "$MKDIR_P"; then
  2437. if test "${ac_cv_path_mkdir+set}" = set; then :
  2438. $as_echo_n "(cached) " >&6
  2439. else
  2440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2441. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2442. do
  2443. IFS=$as_save_IFS
  2444. test -z "$as_dir" && as_dir=.
  2445. for ac_prog in mkdir gmkdir; do
  2446. for ac_exec_ext in '' $ac_executable_extensions; do
  2447. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2448. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2449. 'mkdir (GNU coreutils) '* | \
  2450. 'mkdir (coreutils) '* | \
  2451. 'mkdir (fileutils) '4.1*)
  2452. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2453. break 3;;
  2454. esac
  2455. done
  2456. done
  2457. done
  2458. IFS=$as_save_IFS
  2459. fi
  2460. test -d ./--version && rmdir ./--version
  2461. if test "${ac_cv_path_mkdir+set}" = set; then
  2462. MKDIR_P="$ac_cv_path_mkdir -p"
  2463. else
  2464. # As a last resort, use the slow shell script. Don't cache a
  2465. # value for MKDIR_P within a source directory, because that will
  2466. # break other packages using the cache if that directory is
  2467. # removed, or if the value is a relative name.
  2468. MKDIR_P="$ac_install_sh -d"
  2469. fi
  2470. fi
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2472. $as_echo "$MKDIR_P" >&6; }
  2473. mkdir_p="$MKDIR_P"
  2474. case $mkdir_p in
  2475. [\\/$]* | ?:[\\/]*) ;;
  2476. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2477. esac
  2478. for ac_prog in gawk mawk nawk awk
  2479. do
  2480. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2481. set dummy $ac_prog; ac_word=$2
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2483. $as_echo_n "checking for $ac_word... " >&6; }
  2484. if test "${ac_cv_prog_AWK+set}" = set; then :
  2485. $as_echo_n "(cached) " >&6
  2486. else
  2487. if test -n "$AWK"; then
  2488. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2489. else
  2490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2491. for as_dir in $PATH
  2492. do
  2493. IFS=$as_save_IFS
  2494. test -z "$as_dir" && as_dir=.
  2495. for ac_exec_ext in '' $ac_executable_extensions; do
  2496. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2497. ac_cv_prog_AWK="$ac_prog"
  2498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2499. break 2
  2500. fi
  2501. done
  2502. done
  2503. IFS=$as_save_IFS
  2504. fi
  2505. fi
  2506. AWK=$ac_cv_prog_AWK
  2507. if test -n "$AWK"; then
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2509. $as_echo "$AWK" >&6; }
  2510. else
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2512. $as_echo "no" >&6; }
  2513. fi
  2514. test -n "$AWK" && break
  2515. done
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2517. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2518. set x ${MAKE-make}
  2519. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2520. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2521. $as_echo_n "(cached) " >&6
  2522. else
  2523. cat >conftest.make <<\_ACEOF
  2524. SHELL = /bin/sh
  2525. all:
  2526. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2527. _ACEOF
  2528. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2529. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2530. *@@@%%%=?*=@@@%%%*)
  2531. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2532. *)
  2533. eval ac_cv_prog_make_${ac_make}_set=no;;
  2534. esac
  2535. rm -f conftest.make
  2536. fi
  2537. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2539. $as_echo "yes" >&6; }
  2540. SET_MAKE=
  2541. else
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2543. $as_echo "no" >&6; }
  2544. SET_MAKE="MAKE=${MAKE-make}"
  2545. fi
  2546. rm -rf .tst 2>/dev/null
  2547. mkdir .tst 2>/dev/null
  2548. if test -d .tst; then
  2549. am__leading_dot=.
  2550. else
  2551. am__leading_dot=_
  2552. fi
  2553. rmdir .tst 2>/dev/null
  2554. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2555. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2556. # is not polluted with repeated "-I."
  2557. am__isrc=' -I$(srcdir)'
  2558. # test to see if srcdir already configured
  2559. if test -f $srcdir/config.status; then
  2560. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2561. fi
  2562. fi
  2563. # test whether we have cygpath
  2564. if test -z "$CYGPATH_W"; then
  2565. if (cygpath --version) >/dev/null 2>/dev/null; then
  2566. CYGPATH_W='cygpath -w'
  2567. else
  2568. CYGPATH_W=echo
  2569. fi
  2570. fi
  2571. # Define the identity of the package.
  2572. PACKAGE=qnutdisc
  2573. VERSION=3.0
  2574. cat >>confdefs.h <<_ACEOF
  2575. #define PACKAGE "$PACKAGE"
  2576. _ACEOF
  2577. cat >>confdefs.h <<_ACEOF
  2578. #define VERSION "$VERSION"
  2579. _ACEOF
  2580. # Some tools Automake needs.
  2581. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2582. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2583. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2584. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2585. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2586. # We need awk for the "check" target. The system "awk" is bad on
  2587. # some platforms.
  2588. # Always define AMTAR for backward compatibility.
  2589. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2590. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2591. ac_config_headers="$ac_config_headers config.h"
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2593. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2594. # Check whether --enable-maintainer-mode was given.
  2595. if test "${enable_maintainer_mode+set}" = set; then :
  2596. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2597. else
  2598. USE_MAINTAINER_MODE=no
  2599. fi
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2601. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2602. if test $USE_MAINTAINER_MODE = yes; then
  2603. MAINTAINER_MODE_TRUE=
  2604. MAINTAINER_MODE_FALSE='#'
  2605. else
  2606. MAINTAINER_MODE_TRUE='#'
  2607. MAINTAINER_MODE_FALSE=
  2608. fi
  2609. MAINT=$MAINTAINER_MODE_TRUE
  2610. ac_ext=cpp
  2611. ac_cpp='$CXXCPP $CPPFLAGS'
  2612. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2613. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2614. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2615. if test -z "$CXX"; then
  2616. if test -n "$CCC"; then
  2617. CXX=$CCC
  2618. else
  2619. if test -n "$ac_tool_prefix"; then
  2620. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2621. do
  2622. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2623. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2625. $as_echo_n "checking for $ac_word... " >&6; }
  2626. if test "${ac_cv_prog_CXX+set}" = set; then :
  2627. $as_echo_n "(cached) " >&6
  2628. else
  2629. if test -n "$CXX"; then
  2630. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2631. else
  2632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2633. for as_dir in $PATH
  2634. do
  2635. IFS=$as_save_IFS
  2636. test -z "$as_dir" && as_dir=.
  2637. for ac_exec_ext in '' $ac_executable_extensions; do
  2638. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2639. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2641. break 2
  2642. fi
  2643. done
  2644. done
  2645. IFS=$as_save_IFS
  2646. fi
  2647. fi
  2648. CXX=$ac_cv_prog_CXX
  2649. if test -n "$CXX"; then
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2651. $as_echo "$CXX" >&6; }
  2652. else
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2654. $as_echo "no" >&6; }
  2655. fi
  2656. test -n "$CXX" && break
  2657. done
  2658. fi
  2659. if test -z "$CXX"; then
  2660. ac_ct_CXX=$CXX
  2661. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2662. do
  2663. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2664. set dummy $ac_prog; ac_word=$2
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2666. $as_echo_n "checking for $ac_word... " >&6; }
  2667. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  2668. $as_echo_n "(cached) " >&6
  2669. else
  2670. if test -n "$ac_ct_CXX"; then
  2671. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2672. else
  2673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2674. for as_dir in $PATH
  2675. do
  2676. IFS=$as_save_IFS
  2677. test -z "$as_dir" && as_dir=.
  2678. for ac_exec_ext in '' $ac_executable_extensions; do
  2679. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2680. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2682. break 2
  2683. fi
  2684. done
  2685. done
  2686. IFS=$as_save_IFS
  2687. fi
  2688. fi
  2689. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2690. if test -n "$ac_ct_CXX"; then
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2692. $as_echo "$ac_ct_CXX" >&6; }
  2693. else
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2695. $as_echo "no" >&6; }
  2696. fi
  2697. test -n "$ac_ct_CXX" && break
  2698. done
  2699. if test "x$ac_ct_CXX" = x; then
  2700. CXX="g++"
  2701. else
  2702. case $cross_compiling:$ac_tool_warned in
  2703. yes:)
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2705. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2706. ac_tool_warned=yes ;;
  2707. esac
  2708. CXX=$ac_ct_CXX
  2709. fi
  2710. fi
  2711. fi
  2712. fi
  2713. # Provide some information about the compiler.
  2714. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2715. set X $ac_compile
  2716. ac_compiler=$2
  2717. for ac_option in --version -v -V -qversion; do
  2718. { { ac_try="$ac_compiler $ac_option >&5"
  2719. case "(($ac_try" in
  2720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2721. *) ac_try_echo=$ac_try;;
  2722. esac
  2723. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2724. $as_echo "$ac_try_echo"; } >&5
  2725. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2726. ac_status=$?
  2727. if test -s conftest.err; then
  2728. sed '10a\
  2729. ... rest of stderr output deleted ...
  2730. 10q' conftest.err >conftest.er1
  2731. cat conftest.er1 >&5
  2732. fi
  2733. rm -f conftest.er1 conftest.err
  2734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2735. test $ac_status = 0; }
  2736. done
  2737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2738. /* end confdefs.h. */
  2739. int
  2740. main ()
  2741. {
  2742. ;
  2743. return 0;
  2744. }
  2745. _ACEOF
  2746. ac_clean_files_save=$ac_clean_files
  2747. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2748. # Try to create an executable without -o first, disregard a.out.
  2749. # It will help us diagnose broken compilers, and finding out an intuition
  2750. # of exeext.
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2752. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2753. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2754. # The possible output files:
  2755. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2756. ac_rmfiles=
  2757. for ac_file in $ac_files
  2758. do
  2759. case $ac_file in
  2760. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2761. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2762. esac
  2763. done
  2764. rm -f $ac_rmfiles
  2765. if { { ac_try="$ac_link_default"
  2766. case "(($ac_try" in
  2767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2768. *) ac_try_echo=$ac_try;;
  2769. esac
  2770. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2771. $as_echo "$ac_try_echo"; } >&5
  2772. (eval "$ac_link_default") 2>&5
  2773. ac_status=$?
  2774. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2775. test $ac_status = 0; }; then :
  2776. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2777. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2778. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2779. # so that the user can short-circuit this test for compilers unknown to
  2780. # Autoconf.
  2781. for ac_file in $ac_files ''
  2782. do
  2783. test -f "$ac_file" || continue
  2784. case $ac_file in
  2785. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2786. ;;
  2787. [ab].out )
  2788. # We found the default executable, but exeext='' is most
  2789. # certainly right.
  2790. break;;
  2791. *.* )
  2792. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2793. then :; else
  2794. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2795. fi
  2796. # We set ac_cv_exeext here because the later test for it is not
  2797. # safe: cross compilers may not add the suffix if given an `-o'
  2798. # argument, so we may need to know it at that point already.
  2799. # Even if this section looks crufty: it has the advantage of
  2800. # actually working.
  2801. break;;
  2802. * )
  2803. break;;
  2804. esac
  2805. done
  2806. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2807. else
  2808. ac_file=''
  2809. fi
  2810. if test -z "$ac_file"; then :
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2812. $as_echo "no" >&6; }
  2813. $as_echo "$as_me: failed program was:" >&5
  2814. sed 's/^/| /' conftest.$ac_ext >&5
  2815. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2816. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2817. { as_fn_set_status 77
  2818. as_fn_error "C++ compiler cannot create executables
  2819. See \`config.log' for more details." "$LINENO" 5; }; }
  2820. else
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2822. $as_echo "yes" >&6; }
  2823. fi
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2825. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2827. $as_echo "$ac_file" >&6; }
  2828. ac_exeext=$ac_cv_exeext
  2829. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2830. ac_clean_files=$ac_clean_files_save
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2832. $as_echo_n "checking for suffix of executables... " >&6; }
  2833. if { { ac_try="$ac_link"
  2834. case "(($ac_try" in
  2835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2836. *) ac_try_echo=$ac_try;;
  2837. esac
  2838. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2839. $as_echo "$ac_try_echo"; } >&5
  2840. (eval "$ac_link") 2>&5
  2841. ac_status=$?
  2842. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2843. test $ac_status = 0; }; then :
  2844. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2845. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2846. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2847. # `rm'.
  2848. for ac_file in conftest.exe conftest conftest.*; do
  2849. test -f "$ac_file" || continue
  2850. case $ac_file in
  2851. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2852. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2853. break;;
  2854. * ) break;;
  2855. esac
  2856. done
  2857. else
  2858. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2859. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2860. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2861. See \`config.log' for more details." "$LINENO" 5; }
  2862. fi
  2863. rm -f conftest conftest$ac_cv_exeext
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2865. $as_echo "$ac_cv_exeext" >&6; }
  2866. rm -f conftest.$ac_ext
  2867. EXEEXT=$ac_cv_exeext
  2868. ac_exeext=$EXEEXT
  2869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2870. /* end confdefs.h. */
  2871. #include <stdio.h>
  2872. int
  2873. main ()
  2874. {
  2875. FILE *f = fopen ("conftest.out", "w");
  2876. return ferror (f) || fclose (f) != 0;
  2877. ;
  2878. return 0;
  2879. }
  2880. _ACEOF
  2881. ac_clean_files="$ac_clean_files conftest.out"
  2882. # Check that the compiler produces executables we can run. If not, either
  2883. # the compiler is broken, or we cross compile.
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2885. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2886. if test "$cross_compiling" != yes; then
  2887. { { ac_try="$ac_link"
  2888. case "(($ac_try" in
  2889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2890. *) ac_try_echo=$ac_try;;
  2891. esac
  2892. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2893. $as_echo "$ac_try_echo"; } >&5
  2894. (eval "$ac_link") 2>&5
  2895. ac_status=$?
  2896. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2897. test $ac_status = 0; }
  2898. if { ac_try='./conftest$ac_cv_exeext'
  2899. { { case "(($ac_try" in
  2900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2901. *) ac_try_echo=$ac_try;;
  2902. esac
  2903. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2904. $as_echo "$ac_try_echo"; } >&5
  2905. (eval "$ac_try") 2>&5
  2906. ac_status=$?
  2907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2908. test $ac_status = 0; }; }; then
  2909. cross_compiling=no
  2910. else
  2911. if test "$cross_compiling" = maybe; then
  2912. cross_compiling=yes
  2913. else
  2914. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2915. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2916. as_fn_error "cannot run C++ compiled programs.
  2917. If you meant to cross compile, use \`--host'.
  2918. See \`config.log' for more details." "$LINENO" 5; }
  2919. fi
  2920. fi
  2921. fi
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2923. $as_echo "$cross_compiling" >&6; }
  2924. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2925. ac_clean_files=$ac_clean_files_save
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2927. $as_echo_n "checking for suffix of object files... " >&6; }
  2928. if test "${ac_cv_objext+set}" = set; then :
  2929. $as_echo_n "(cached) " >&6
  2930. else
  2931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2932. /* end confdefs.h. */
  2933. int
  2934. main ()
  2935. {
  2936. ;
  2937. return 0;
  2938. }
  2939. _ACEOF
  2940. rm -f conftest.o conftest.obj
  2941. if { { ac_try="$ac_compile"
  2942. case "(($ac_try" in
  2943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2944. *) ac_try_echo=$ac_try;;
  2945. esac
  2946. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2947. $as_echo "$ac_try_echo"; } >&5
  2948. (eval "$ac_compile") 2>&5
  2949. ac_status=$?
  2950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2951. test $ac_status = 0; }; then :
  2952. for ac_file in conftest.o conftest.obj conftest.*; do
  2953. test -f "$ac_file" || continue;
  2954. case $ac_file in
  2955. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2956. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2957. break;;
  2958. esac
  2959. done
  2960. else
  2961. $as_echo "$as_me: failed program was:" >&5
  2962. sed 's/^/| /' conftest.$ac_ext >&5
  2963. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2964. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2965. as_fn_error "cannot compute suffix of object files: cannot compile
  2966. See \`config.log' for more details." "$LINENO" 5; }
  2967. fi
  2968. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2969. fi
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2971. $as_echo "$ac_cv_objext" >&6; }
  2972. OBJEXT=$ac_cv_objext
  2973. ac_objext=$OBJEXT
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2975. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2976. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  2977. $as_echo_n "(cached) " >&6
  2978. else
  2979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2980. /* end confdefs.h. */
  2981. int
  2982. main ()
  2983. {
  2984. #ifndef __GNUC__
  2985. choke me
  2986. #endif
  2987. ;
  2988. return 0;
  2989. }
  2990. _ACEOF
  2991. if ac_fn_cxx_try_compile "$LINENO"; then :
  2992. ac_compiler_gnu=yes
  2993. else
  2994. ac_compiler_gnu=no
  2995. fi
  2996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2997. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2998. fi
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3000. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3001. if test $ac_compiler_gnu = yes; then
  3002. GXX=yes
  3003. else
  3004. GXX=
  3005. fi
  3006. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3007. ac_save_CXXFLAGS=$CXXFLAGS
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3009. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3010. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3011. $as_echo_n "(cached) " >&6
  3012. else
  3013. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3014. ac_cxx_werror_flag=yes
  3015. ac_cv_prog_cxx_g=no
  3016. CXXFLAGS="-g"
  3017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3018. /* end confdefs.h. */
  3019. int
  3020. main ()
  3021. {
  3022. ;
  3023. return 0;
  3024. }
  3025. _ACEOF
  3026. if ac_fn_cxx_try_compile "$LINENO"; then :
  3027. ac_cv_prog_cxx_g=yes
  3028. else
  3029. CXXFLAGS=""
  3030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3031. /* end confdefs.h. */
  3032. int
  3033. main ()
  3034. {
  3035. ;
  3036. return 0;
  3037. }
  3038. _ACEOF
  3039. if ac_fn_cxx_try_compile "$LINENO"; then :
  3040. else
  3041. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3042. CXXFLAGS="-g"
  3043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3044. /* end confdefs.h. */
  3045. int
  3046. main ()
  3047. {
  3048. ;
  3049. return 0;
  3050. }
  3051. _ACEOF
  3052. if ac_fn_cxx_try_compile "$LINENO"; then :
  3053. ac_cv_prog_cxx_g=yes
  3054. fi
  3055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3056. fi
  3057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3058. fi
  3059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3060. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3061. fi
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3063. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3064. if test "$ac_test_CXXFLAGS" = set; then
  3065. CXXFLAGS=$ac_save_CXXFLAGS
  3066. elif test $ac_cv_prog_cxx_g = yes; then
  3067. if test "$GXX" = yes; then
  3068. CXXFLAGS="-g -O2"
  3069. else
  3070. CXXFLAGS="-g"
  3071. fi
  3072. else
  3073. if test "$GXX" = yes; then
  3074. CXXFLAGS="-O2"
  3075. else
  3076. CXXFLAGS=
  3077. fi
  3078. fi
  3079. ac_ext=c
  3080. ac_cpp='$CPP $CPPFLAGS'
  3081. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3082. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3083. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3084. DEPDIR="${am__leading_dot}deps"
  3085. ac_config_commands="$ac_config_commands depfiles"
  3086. am_make=${MAKE-make}
  3087. cat > confinc << 'END'
  3088. am__doit:
  3089. @echo this is the am__doit target
  3090. .PHONY: am__doit
  3091. END
  3092. # If we don't find an include directive, just comment out the code.
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3094. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3095. am__include="#"
  3096. am__quote=
  3097. _am_result=none
  3098. # First try GNU make style include.
  3099. echo "include confinc" > confmf
  3100. # Ignore all kinds of additional output from `make'.
  3101. case `$am_make -s -f confmf 2> /dev/null` in #(
  3102. *the\ am__doit\ target*)
  3103. am__include=include
  3104. am__quote=
  3105. _am_result=GNU
  3106. ;;
  3107. esac
  3108. # Now try BSD make style include.
  3109. if test "$am__include" = "#"; then
  3110. echo '.include "confinc"' > confmf
  3111. case `$am_make -s -f confmf 2> /dev/null` in #(
  3112. *the\ am__doit\ target*)
  3113. am__include=.include
  3114. am__quote="\""
  3115. _am_result=BSD
  3116. ;;
  3117. esac
  3118. fi
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3120. $as_echo "$_am_result" >&6; }
  3121. rm -f confinc confmf
  3122. # Check whether --enable-dependency-tracking was given.
  3123. if test "${enable_dependency_tracking+set}" = set; then :
  3124. enableval=$enable_dependency_tracking;
  3125. fi
  3126. if test "x$enable_dependency_tracking" != xno; then
  3127. am_depcomp="$ac_aux_dir/depcomp"
  3128. AMDEPBACKSLASH='\'
  3129. fi
  3130. if test "x$enable_dependency_tracking" != xno; then
  3131. AMDEP_TRUE=
  3132. AMDEP_FALSE='#'
  3133. else
  3134. AMDEP_TRUE='#'
  3135. AMDEP_FALSE=
  3136. fi
  3137. depcc="$CXX" am_compiler_list=
  3138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3139. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3140. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3141. $as_echo_n "(cached) " >&6
  3142. else
  3143. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3144. # We make a subdir and do the tests there. Otherwise we can end up
  3145. # making bogus files that we don't know about and never remove. For
  3146. # instance it was reported that on HP-UX the gcc test will end up
  3147. # making a dummy file named `D' -- because `-MD' means `put the output
  3148. # in D'.
  3149. mkdir conftest.dir
  3150. # Copy depcomp to subdir because otherwise we won't find it if we're
  3151. # using a relative directory.
  3152. cp "$am_depcomp" conftest.dir
  3153. cd conftest.dir
  3154. # We will build objects and dependencies in a subdirectory because
  3155. # it helps to detect inapplicable dependency modes. For instance
  3156. # both Tru64's cc and ICC support -MD to output dependencies as a
  3157. # side effect of compilation, but ICC will put the dependencies in
  3158. # the current directory while Tru64 will put them in the object
  3159. # directory.
  3160. mkdir sub
  3161. am_cv_CXX_dependencies_compiler_type=none
  3162. if test "$am_compiler_list" = ""; then
  3163. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3164. fi
  3165. am__universal=false
  3166. case " $depcc " in #(
  3167. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3168. esac
  3169. for depmode in $am_compiler_list; do
  3170. # Setup a source with many dependencies, because some compilers
  3171. # like to wrap large dependency lists on column 80 (with \), and
  3172. # we should not choose a depcomp mode which is confused by this.
  3173. #
  3174. # We need to recreate these files for each test, as the compiler may
  3175. # overwrite some of them when testing with obscure command lines.
  3176. # This happens at least with the AIX C compiler.
  3177. : > sub/conftest.c
  3178. for i in 1 2 3 4 5 6; do
  3179. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3180. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3181. # Solaris 8's {/usr,}/bin/sh.
  3182. touch sub/conftst$i.h
  3183. done
  3184. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3185. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3186. # mode. It turns out that the SunPro C++ compiler does not properly
  3187. # handle `-M -o', and we need to detect this. Also, some Intel
  3188. # versions had trouble with output in subdirs
  3189. am__obj=sub/conftest.${OBJEXT-o}
  3190. am__minus_obj="-o $am__obj"
  3191. case $depmode in
  3192. gcc)
  3193. # This depmode causes a compiler race in universal mode.
  3194. test "$am__universal" = false || continue
  3195. ;;
  3196. nosideeffect)
  3197. # after this tag, mechanisms are not by side-effect, so they'll
  3198. # only be used when explicitly requested
  3199. if test "x$enable_dependency_tracking" = xyes; then
  3200. continue
  3201. else
  3202. break
  3203. fi
  3204. ;;
  3205. msvisualcpp | msvcmsys)
  3206. # This compiler won't grok `-c -o', but also, the minuso test has
  3207. # not run yet. These depmodes are late enough in the game, and
  3208. # so weak that their functioning should not be impacted.
  3209. am__obj=conftest.${OBJEXT-o}
  3210. am__minus_obj=
  3211. ;;
  3212. none) break ;;
  3213. esac
  3214. if depmode=$depmode \
  3215. source=sub/conftest.c object=$am__obj \
  3216. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3217. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3218. >/dev/null 2>conftest.err &&
  3219. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3220. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3221. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3222. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3223. # icc doesn't choke on unknown options, it will just issue warnings
  3224. # or remarks (even with -Werror). So we grep stderr for any message
  3225. # that says an option was ignored or not supported.
  3226. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3227. # icc: Command line warning: ignoring option '-M'; no argument required
  3228. # The diagnosis changed in icc 8.0:
  3229. # icc: Command line remark: option '-MP' not supported
  3230. if (grep 'ignoring option' conftest.err ||
  3231. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3232. am_cv_CXX_dependencies_compiler_type=$depmode
  3233. break
  3234. fi
  3235. fi
  3236. done
  3237. cd ..
  3238. rm -rf conftest.dir
  3239. else
  3240. am_cv_CXX_dependencies_compiler_type=none
  3241. fi
  3242. fi
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3244. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3245. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3246. if
  3247. test "x$enable_dependency_tracking" != xno \
  3248. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3249. am__fastdepCXX_TRUE=
  3250. am__fastdepCXX_FALSE='#'
  3251. else
  3252. am__fastdepCXX_TRUE='#'
  3253. am__fastdepCXX_FALSE=
  3254. fi
  3255. for ac_prog in uic-qt4 uic
  3256. do
  3257. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3258. set dummy $ac_prog; ac_word=$2
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3260. $as_echo_n "checking for $ac_word... " >&6; }
  3261. if test "${ac_cv_prog_UIC+set}" = set; then :
  3262. $as_echo_n "(cached) " >&6
  3263. else
  3264. if test -n "$UIC"; then
  3265. ac_cv_prog_UIC="$UIC" # Let the user override the test.
  3266. else
  3267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3268. for as_dir in $PATH
  3269. do
  3270. IFS=$as_save_IFS
  3271. test -z "$as_dir" && as_dir=.
  3272. for ac_exec_ext in '' $ac_executable_extensions; do
  3273. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3274. ac_cv_prog_UIC="$ac_prog"
  3275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3276. break 2
  3277. fi
  3278. done
  3279. done
  3280. IFS=$as_save_IFS
  3281. fi
  3282. fi
  3283. UIC=$ac_cv_prog_UIC
  3284. if test -n "$UIC"; then
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
  3286. $as_echo "$UIC" >&6; }
  3287. else
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3289. $as_echo "no" >&6; }
  3290. fi
  3291. test -n "$UIC" && break
  3292. done
  3293. test -n "$UIC" || UIC="none"
  3294. if test "$UIC" == "none"; then
  3295. as_fn_error "Qt UI Compiler not found" "$LINENO" 5
  3296. fi
  3297. case `pwd` in
  3298. *\ * | *\ *)
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3300. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3301. esac
  3302. macro_version='2.2.6b'
  3303. macro_revision='1.3017'
  3304. ltmain="$ac_aux_dir/ltmain.sh"
  3305. # Make sure we can run config.sub.
  3306. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3307. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3309. $as_echo_n "checking build system type... " >&6; }
  3310. if test "${ac_cv_build+set}" = set; then :
  3311. $as_echo_n "(cached) " >&6
  3312. else
  3313. ac_build_alias=$build_alias
  3314. test "x$ac_build_alias" = x &&
  3315. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3316. test "x$ac_build_alias" = x &&
  3317. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3318. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3319. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3320. fi
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3322. $as_echo "$ac_cv_build" >&6; }
  3323. case $ac_cv_build in
  3324. *-*-*) ;;
  3325. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3326. esac
  3327. build=$ac_cv_build
  3328. ac_save_IFS=$IFS; IFS='-'
  3329. set x $ac_cv_build
  3330. shift
  3331. build_cpu=$1
  3332. build_vendor=$2
  3333. shift; shift
  3334. # Remember, the first character of IFS is used to create $*,
  3335. # except with old shells:
  3336. build_os=$*
  3337. IFS=$ac_save_IFS
  3338. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3340. $as_echo_n "checking host system type... " >&6; }
  3341. if test "${ac_cv_host+set}" = set; then :
  3342. $as_echo_n "(cached) " >&6
  3343. else
  3344. if test "x$host_alias" = x; then
  3345. ac_cv_host=$ac_cv_build
  3346. else
  3347. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3348. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3349. fi
  3350. fi
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3352. $as_echo "$ac_cv_host" >&6; }
  3353. case $ac_cv_host in
  3354. *-*-*) ;;
  3355. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3356. esac
  3357. host=$ac_cv_host
  3358. ac_save_IFS=$IFS; IFS='-'
  3359. set x $ac_cv_host
  3360. shift
  3361. host_cpu=$1
  3362. host_vendor=$2
  3363. shift; shift
  3364. # Remember, the first character of IFS is used to create $*,
  3365. # except with old shells:
  3366. host_os=$*
  3367. IFS=$ac_save_IFS
  3368. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3369. ac_ext=c
  3370. ac_cpp='$CPP $CPPFLAGS'
  3371. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3372. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3373. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3374. if test -n "$ac_tool_prefix"; then
  3375. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3376. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3378. $as_echo_n "checking for $ac_word... " >&6; }
  3379. if test "${ac_cv_prog_CC+set}" = set; then :
  3380. $as_echo_n "(cached) " >&6
  3381. else
  3382. if test -n "$CC"; then
  3383. ac_cv_prog_CC="$CC" # Let the user override the test.
  3384. else
  3385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3386. for as_dir in $PATH
  3387. do
  3388. IFS=$as_save_IFS
  3389. test -z "$as_dir" && as_dir=.
  3390. for ac_exec_ext in '' $ac_executable_extensions; do
  3391. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3392. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3394. break 2
  3395. fi
  3396. done
  3397. done
  3398. IFS=$as_save_IFS
  3399. fi
  3400. fi
  3401. CC=$ac_cv_prog_CC
  3402. if test -n "$CC"; then
  3403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3404. $as_echo "$CC" >&6; }
  3405. else
  3406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3407. $as_echo "no" >&6; }
  3408. fi
  3409. fi
  3410. if test -z "$ac_cv_prog_CC"; then
  3411. ac_ct_CC=$CC
  3412. # Extract the first word of "gcc", so it can be a program name with args.
  3413. set dummy gcc; ac_word=$2
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3415. $as_echo_n "checking for $ac_word... " >&6; }
  3416. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3417. $as_echo_n "(cached) " >&6
  3418. else
  3419. if test -n "$ac_ct_CC"; then
  3420. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3421. else
  3422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3423. for as_dir in $PATH
  3424. do
  3425. IFS=$as_save_IFS
  3426. test -z "$as_dir" && as_dir=.
  3427. for ac_exec_ext in '' $ac_executable_extensions; do
  3428. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3429. ac_cv_prog_ac_ct_CC="gcc"
  3430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3431. break 2
  3432. fi
  3433. done
  3434. done
  3435. IFS=$as_save_IFS
  3436. fi
  3437. fi
  3438. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3439. if test -n "$ac_ct_CC"; then
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3441. $as_echo "$ac_ct_CC" >&6; }
  3442. else
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3444. $as_echo "no" >&6; }
  3445. fi
  3446. if test "x$ac_ct_CC" = x; then
  3447. CC=""
  3448. else
  3449. case $cross_compiling:$ac_tool_warned in
  3450. yes:)
  3451. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3452. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3453. ac_tool_warned=yes ;;
  3454. esac
  3455. CC=$ac_ct_CC
  3456. fi
  3457. else
  3458. CC="$ac_cv_prog_CC"
  3459. fi
  3460. if test -z "$CC"; then
  3461. if test -n "$ac_tool_prefix"; then
  3462. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3463. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3465. $as_echo_n "checking for $ac_word... " >&6; }
  3466. if test "${ac_cv_prog_CC+set}" = set; then :
  3467. $as_echo_n "(cached) " >&6
  3468. else
  3469. if test -n "$CC"; then
  3470. ac_cv_prog_CC="$CC" # Let the user override the test.
  3471. else
  3472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3473. for as_dir in $PATH
  3474. do
  3475. IFS=$as_save_IFS
  3476. test -z "$as_dir" && as_dir=.
  3477. for ac_exec_ext in '' $ac_executable_extensions; do
  3478. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3479. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3481. break 2
  3482. fi
  3483. done
  3484. done
  3485. IFS=$as_save_IFS
  3486. fi
  3487. fi
  3488. CC=$ac_cv_prog_CC
  3489. if test -n "$CC"; then
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3491. $as_echo "$CC" >&6; }
  3492. else
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3494. $as_echo "no" >&6; }
  3495. fi
  3496. fi
  3497. fi
  3498. if test -z "$CC"; then
  3499. # Extract the first word of "cc", so it can be a program name with args.
  3500. set dummy cc; ac_word=$2
  3501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3502. $as_echo_n "checking for $ac_word... " >&6; }
  3503. if test "${ac_cv_prog_CC+set}" = set; then :
  3504. $as_echo_n "(cached) " >&6
  3505. else
  3506. if test -n "$CC"; then
  3507. ac_cv_prog_CC="$CC" # Let the user override the test.
  3508. else
  3509. ac_prog_rejected=no
  3510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3511. for as_dir in $PATH
  3512. do
  3513. IFS=$as_save_IFS
  3514. test -z "$as_dir" && as_dir=.
  3515. for ac_exec_ext in '' $ac_executable_extensions; do
  3516. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3517. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3518. ac_prog_rejected=yes
  3519. continue
  3520. fi
  3521. ac_cv_prog_CC="cc"
  3522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3523. break 2
  3524. fi
  3525. done
  3526. done
  3527. IFS=$as_save_IFS
  3528. if test $ac_prog_rejected = yes; then
  3529. # We found a bogon in the path, so make sure we never use it.
  3530. set dummy $ac_cv_prog_CC
  3531. shift
  3532. if test $# != 0; then
  3533. # We chose a different compiler from the bogus one.
  3534. # However, it has the same basename, so the bogon will be chosen
  3535. # first if we set CC to just the basename; use the full file name.
  3536. shift
  3537. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3538. fi
  3539. fi
  3540. fi
  3541. fi
  3542. CC=$ac_cv_prog_CC
  3543. if test -n "$CC"; then
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3545. $as_echo "$CC" >&6; }
  3546. else
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3548. $as_echo "no" >&6; }
  3549. fi
  3550. fi
  3551. if test -z "$CC"; then
  3552. if test -n "$ac_tool_prefix"; then
  3553. for ac_prog in cl.exe
  3554. do
  3555. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3556. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3558. $as_echo_n "checking for $ac_word... " >&6; }
  3559. if test "${ac_cv_prog_CC+set}" = set; then :
  3560. $as_echo_n "(cached) " >&6
  3561. else
  3562. if test -n "$CC"; then
  3563. ac_cv_prog_CC="$CC" # Let the user override the test.
  3564. else
  3565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3566. for as_dir in $PATH
  3567. do
  3568. IFS=$as_save_IFS
  3569. test -z "$as_dir" && as_dir=.
  3570. for ac_exec_ext in '' $ac_executable_extensions; do
  3571. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3572. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3574. break 2
  3575. fi
  3576. done
  3577. done
  3578. IFS=$as_save_IFS
  3579. fi
  3580. fi
  3581. CC=$ac_cv_prog_CC
  3582. if test -n "$CC"; then
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3584. $as_echo "$CC" >&6; }
  3585. else
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3587. $as_echo "no" >&6; }
  3588. fi
  3589. test -n "$CC" && break
  3590. done
  3591. fi
  3592. if test -z "$CC"; then
  3593. ac_ct_CC=$CC
  3594. for ac_prog in cl.exe
  3595. do
  3596. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3597. set dummy $ac_prog; ac_word=$2
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3599. $as_echo_n "checking for $ac_word... " >&6; }
  3600. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3601. $as_echo_n "(cached) " >&6
  3602. else
  3603. if test -n "$ac_ct_CC"; then
  3604. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3605. else
  3606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3607. for as_dir in $PATH
  3608. do
  3609. IFS=$as_save_IFS
  3610. test -z "$as_dir" && as_dir=.
  3611. for ac_exec_ext in '' $ac_executable_extensions; do
  3612. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3613. ac_cv_prog_ac_ct_CC="$ac_prog"
  3614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3615. break 2
  3616. fi
  3617. done
  3618. done
  3619. IFS=$as_save_IFS
  3620. fi
  3621. fi
  3622. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3623. if test -n "$ac_ct_CC"; then
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3625. $as_echo "$ac_ct_CC" >&6; }
  3626. else
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3628. $as_echo "no" >&6; }
  3629. fi
  3630. test -n "$ac_ct_CC" && break
  3631. done
  3632. if test "x$ac_ct_CC" = x; then
  3633. CC=""
  3634. else
  3635. case $cross_compiling:$ac_tool_warned in
  3636. yes:)
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3639. ac_tool_warned=yes ;;
  3640. esac
  3641. CC=$ac_ct_CC
  3642. fi
  3643. fi
  3644. fi
  3645. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3646. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3647. as_fn_error "no acceptable C compiler found in \$PATH
  3648. See \`config.log' for more details." "$LINENO" 5; }
  3649. # Provide some information about the compiler.
  3650. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3651. set X $ac_compile
  3652. ac_compiler=$2
  3653. for ac_option in --version -v -V -qversion; do
  3654. { { ac_try="$ac_compiler $ac_option >&5"
  3655. case "(($ac_try" in
  3656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3657. *) ac_try_echo=$ac_try;;
  3658. esac
  3659. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3660. $as_echo "$ac_try_echo"; } >&5
  3661. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3662. ac_status=$?
  3663. if test -s conftest.err; then
  3664. sed '10a\
  3665. ... rest of stderr output deleted ...
  3666. 10q' conftest.err >conftest.er1
  3667. cat conftest.er1 >&5
  3668. fi
  3669. rm -f conftest.er1 conftest.err
  3670. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3671. test $ac_status = 0; }
  3672. done
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3674. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3675. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3676. $as_echo_n "(cached) " >&6
  3677. else
  3678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3679. /* end confdefs.h. */
  3680. int
  3681. main ()
  3682. {
  3683. #ifndef __GNUC__
  3684. choke me
  3685. #endif
  3686. ;
  3687. return 0;
  3688. }
  3689. _ACEOF
  3690. if ac_fn_c_try_compile "$LINENO"; then :
  3691. ac_compiler_gnu=yes
  3692. else
  3693. ac_compiler_gnu=no
  3694. fi
  3695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3696. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3697. fi
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3699. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3700. if test $ac_compiler_gnu = yes; then
  3701. GCC=yes
  3702. else
  3703. GCC=
  3704. fi
  3705. ac_test_CFLAGS=${CFLAGS+set}
  3706. ac_save_CFLAGS=$CFLAGS
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3708. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3709. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3710. $as_echo_n "(cached) " >&6
  3711. else
  3712. ac_save_c_werror_flag=$ac_c_werror_flag
  3713. ac_c_werror_flag=yes
  3714. ac_cv_prog_cc_g=no
  3715. CFLAGS="-g"
  3716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3717. /* end confdefs.h. */
  3718. int
  3719. main ()
  3720. {
  3721. ;
  3722. return 0;
  3723. }
  3724. _ACEOF
  3725. if ac_fn_c_try_compile "$LINENO"; then :
  3726. ac_cv_prog_cc_g=yes
  3727. else
  3728. CFLAGS=""
  3729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3730. /* end confdefs.h. */
  3731. int
  3732. main ()
  3733. {
  3734. ;
  3735. return 0;
  3736. }
  3737. _ACEOF
  3738. if ac_fn_c_try_compile "$LINENO"; then :
  3739. else
  3740. ac_c_werror_flag=$ac_save_c_werror_flag
  3741. CFLAGS="-g"
  3742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3743. /* end confdefs.h. */
  3744. int
  3745. main ()
  3746. {
  3747. ;
  3748. return 0;
  3749. }
  3750. _ACEOF
  3751. if ac_fn_c_try_compile "$LINENO"; then :
  3752. ac_cv_prog_cc_g=yes
  3753. fi
  3754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3755. fi
  3756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3757. fi
  3758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3759. ac_c_werror_flag=$ac_save_c_werror_flag
  3760. fi
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3762. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3763. if test "$ac_test_CFLAGS" = set; then
  3764. CFLAGS=$ac_save_CFLAGS
  3765. elif test $ac_cv_prog_cc_g = yes; then
  3766. if test "$GCC" = yes; then
  3767. CFLAGS="-g -O2"
  3768. else
  3769. CFLAGS="-g"
  3770. fi
  3771. else
  3772. if test "$GCC" = yes; then
  3773. CFLAGS="-O2"
  3774. else
  3775. CFLAGS=
  3776. fi
  3777. fi
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3779. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3780. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3781. $as_echo_n "(cached) " >&6
  3782. else
  3783. ac_cv_prog_cc_c89=no
  3784. ac_save_CC=$CC
  3785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3786. /* end confdefs.h. */
  3787. #include <stdarg.h>
  3788. #include <stdio.h>
  3789. #include <sys/types.h>
  3790. #include <sys/stat.h>
  3791. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3792. struct buf { int x; };
  3793. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3794. static char *e (p, i)
  3795. char **p;
  3796. int i;
  3797. {
  3798. return p[i];
  3799. }
  3800. static char *f (char * (*g) (char **, int), char **p, ...)
  3801. {
  3802. char *s;
  3803. va_list v;
  3804. va_start (v,p);
  3805. s = g (p, va_arg (v,int));
  3806. va_end (v);
  3807. return s;
  3808. }
  3809. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3810. function prototypes and stuff, but not '\xHH' hex character constants.
  3811. These don't provoke an error unfortunately, instead are silently treated
  3812. as 'x'. The following induces an error, until -std is added to get
  3813. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3814. array size at least. It's necessary to write '\x00'==0 to get something
  3815. that's true only with -std. */
  3816. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3817. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3818. inside strings and character constants. */
  3819. #define FOO(x) 'x'
  3820. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3821. int test (int i, double x);
  3822. struct s1 {int (*f) (int a);};
  3823. struct s2 {int (*f) (double a);};
  3824. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3825. int argc;
  3826. char **argv;
  3827. int
  3828. main ()
  3829. {
  3830. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3831. ;
  3832. return 0;
  3833. }
  3834. _ACEOF
  3835. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3836. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3837. do
  3838. CC="$ac_save_CC $ac_arg"
  3839. if ac_fn_c_try_compile "$LINENO"; then :
  3840. ac_cv_prog_cc_c89=$ac_arg
  3841. fi
  3842. rm -f core conftest.err conftest.$ac_objext
  3843. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3844. done
  3845. rm -f conftest.$ac_ext
  3846. CC=$ac_save_CC
  3847. fi
  3848. # AC_CACHE_VAL
  3849. case "x$ac_cv_prog_cc_c89" in
  3850. x)
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3852. $as_echo "none needed" >&6; } ;;
  3853. xno)
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3855. $as_echo "unsupported" >&6; } ;;
  3856. *)
  3857. CC="$CC $ac_cv_prog_cc_c89"
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3859. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3860. esac
  3861. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3862. fi
  3863. ac_ext=c
  3864. ac_cpp='$CPP $CPPFLAGS'
  3865. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3866. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3867. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3868. depcc="$CC" am_compiler_list=
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3870. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3871. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3872. $as_echo_n "(cached) " >&6
  3873. else
  3874. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3875. # We make a subdir and do the tests there. Otherwise we can end up
  3876. # making bogus files that we don't know about and never remove. For
  3877. # instance it was reported that on HP-UX the gcc test will end up
  3878. # making a dummy file named `D' -- because `-MD' means `put the output
  3879. # in D'.
  3880. mkdir conftest.dir
  3881. # Copy depcomp to subdir because otherwise we won't find it if we're
  3882. # using a relative directory.
  3883. cp "$am_depcomp" conftest.dir
  3884. cd conftest.dir
  3885. # We will build objects and dependencies in a subdirectory because
  3886. # it helps to detect inapplicable dependency modes. For instance
  3887. # both Tru64's cc and ICC support -MD to output dependencies as a
  3888. # side effect of compilation, but ICC will put the dependencies in
  3889. # the current directory while Tru64 will put them in the object
  3890. # directory.
  3891. mkdir sub
  3892. am_cv_CC_dependencies_compiler_type=none
  3893. if test "$am_compiler_list" = ""; then
  3894. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3895. fi
  3896. am__universal=false
  3897. case " $depcc " in #(
  3898. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3899. esac
  3900. for depmode in $am_compiler_list; do
  3901. # Setup a source with many dependencies, because some compilers
  3902. # like to wrap large dependency lists on column 80 (with \), and
  3903. # we should not choose a depcomp mode which is confused by this.
  3904. #
  3905. # We need to recreate these files for each test, as the compiler may
  3906. # overwrite some of them when testing with obscure command lines.
  3907. # This happens at least with the AIX C compiler.
  3908. : > sub/conftest.c
  3909. for i in 1 2 3 4 5 6; do
  3910. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3911. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3912. # Solaris 8's {/usr,}/bin/sh.
  3913. touch sub/conftst$i.h
  3914. done
  3915. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3916. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3917. # mode. It turns out that the SunPro C++ compiler does not properly
  3918. # handle `-M -o', and we need to detect this. Also, some Intel
  3919. # versions had trouble with output in subdirs
  3920. am__obj=sub/conftest.${OBJEXT-o}
  3921. am__minus_obj="-o $am__obj"
  3922. case $depmode in
  3923. gcc)
  3924. # This depmode causes a compiler race in universal mode.
  3925. test "$am__universal" = false || continue
  3926. ;;
  3927. nosideeffect)
  3928. # after this tag, mechanisms are not by side-effect, so they'll
  3929. # only be used when explicitly requested
  3930. if test "x$enable_dependency_tracking" = xyes; then
  3931. continue
  3932. else
  3933. break
  3934. fi
  3935. ;;
  3936. msvisualcpp | msvcmsys)
  3937. # This compiler won't grok `-c -o', but also, the minuso test has
  3938. # not run yet. These depmodes are late enough in the game, and
  3939. # so weak that their functioning should not be impacted.
  3940. am__obj=conftest.${OBJEXT-o}
  3941. am__minus_obj=
  3942. ;;
  3943. none) break ;;
  3944. esac
  3945. if depmode=$depmode \
  3946. source=sub/conftest.c object=$am__obj \
  3947. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3948. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3949. >/dev/null 2>conftest.err &&
  3950. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3951. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3952. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3953. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3954. # icc doesn't choke on unknown options, it will just issue warnings
  3955. # or remarks (even with -Werror). So we grep stderr for any message
  3956. # that says an option was ignored or not supported.
  3957. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3958. # icc: Command line warning: ignoring option '-M'; no argument required
  3959. # The diagnosis changed in icc 8.0:
  3960. # icc: Command line remark: option '-MP' not supported
  3961. if (grep 'ignoring option' conftest.err ||
  3962. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3963. am_cv_CC_dependencies_compiler_type=$depmode
  3964. break
  3965. fi
  3966. fi
  3967. done
  3968. cd ..
  3969. rm -rf conftest.dir
  3970. else
  3971. am_cv_CC_dependencies_compiler_type=none
  3972. fi
  3973. fi
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3975. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3976. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3977. if
  3978. test "x$enable_dependency_tracking" != xno \
  3979. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3980. am__fastdepCC_TRUE=
  3981. am__fastdepCC_FALSE='#'
  3982. else
  3983. am__fastdepCC_TRUE='#'
  3984. am__fastdepCC_FALSE=
  3985. fi
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3987. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3988. if test "${ac_cv_path_SED+set}" = set; then :
  3989. $as_echo_n "(cached) " >&6
  3990. else
  3991. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3992. for ac_i in 1 2 3 4 5 6 7; do
  3993. ac_script="$ac_script$as_nl$ac_script"
  3994. done
  3995. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3996. { ac_script=; unset ac_script;}
  3997. if test -z "$SED"; then
  3998. ac_path_SED_found=false
  3999. # Loop through the user's path and test for each of PROGNAME-LIST
  4000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4001. for as_dir in $PATH
  4002. do
  4003. IFS=$as_save_IFS
  4004. test -z "$as_dir" && as_dir=.
  4005. for ac_prog in sed gsed; do
  4006. for ac_exec_ext in '' $ac_executable_extensions; do
  4007. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4008. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4009. # Check for GNU ac_path_SED and select it if it is found.
  4010. # Check for GNU $ac_path_SED
  4011. case `"$ac_path_SED" --version 2>&1` in
  4012. *GNU*)
  4013. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4014. *)
  4015. ac_count=0
  4016. $as_echo_n 0123456789 >"conftest.in"
  4017. while :
  4018. do
  4019. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4020. mv "conftest.tmp" "conftest.in"
  4021. cp "conftest.in" "conftest.nl"
  4022. $as_echo '' >> "conftest.nl"
  4023. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4024. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4025. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4026. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4027. # Best one so far, save it but keep looking for a better one
  4028. ac_cv_path_SED="$ac_path_SED"
  4029. ac_path_SED_max=$ac_count
  4030. fi
  4031. # 10*(2^10) chars as input seems more than enough
  4032. test $ac_count -gt 10 && break
  4033. done
  4034. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4035. esac
  4036. $ac_path_SED_found && break 3
  4037. done
  4038. done
  4039. done
  4040. IFS=$as_save_IFS
  4041. if test -z "$ac_cv_path_SED"; then
  4042. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4043. fi
  4044. else
  4045. ac_cv_path_SED=$SED
  4046. fi
  4047. fi
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4049. $as_echo "$ac_cv_path_SED" >&6; }
  4050. SED="$ac_cv_path_SED"
  4051. rm -f conftest.sed
  4052. test -z "$SED" && SED=sed
  4053. Xsed="$SED -e 1s/^X//"
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4055. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4056. if test "${ac_cv_path_GREP+set}" = set; then :
  4057. $as_echo_n "(cached) " >&6
  4058. else
  4059. if test -z "$GREP"; then
  4060. ac_path_GREP_found=false
  4061. # Loop through the user's path and test for each of PROGNAME-LIST
  4062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4063. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4064. do
  4065. IFS=$as_save_IFS
  4066. test -z "$as_dir" && as_dir=.
  4067. for ac_prog in grep ggrep; do
  4068. for ac_exec_ext in '' $ac_executable_extensions; do
  4069. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4070. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4071. # Check for GNU ac_path_GREP and select it if it is found.
  4072. # Check for GNU $ac_path_GREP
  4073. case `"$ac_path_GREP" --version 2>&1` in
  4074. *GNU*)
  4075. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4076. *)
  4077. ac_count=0
  4078. $as_echo_n 0123456789 >"conftest.in"
  4079. while :
  4080. do
  4081. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4082. mv "conftest.tmp" "conftest.in"
  4083. cp "conftest.in" "conftest.nl"
  4084. $as_echo 'GREP' >> "conftest.nl"
  4085. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4086. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4087. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4088. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4089. # Best one so far, save it but keep looking for a better one
  4090. ac_cv_path_GREP="$ac_path_GREP"
  4091. ac_path_GREP_max=$ac_count
  4092. fi
  4093. # 10*(2^10) chars as input seems more than enough
  4094. test $ac_count -gt 10 && break
  4095. done
  4096. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4097. esac
  4098. $ac_path_GREP_found && break 3
  4099. done
  4100. done
  4101. done
  4102. IFS=$as_save_IFS
  4103. if test -z "$ac_cv_path_GREP"; then
  4104. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4105. fi
  4106. else
  4107. ac_cv_path_GREP=$GREP
  4108. fi
  4109. fi
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4111. $as_echo "$ac_cv_path_GREP" >&6; }
  4112. GREP="$ac_cv_path_GREP"
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4114. $as_echo_n "checking for egrep... " >&6; }
  4115. if test "${ac_cv_path_EGREP+set}" = set; then :
  4116. $as_echo_n "(cached) " >&6
  4117. else
  4118. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4119. then ac_cv_path_EGREP="$GREP -E"
  4120. else
  4121. if test -z "$EGREP"; then
  4122. ac_path_EGREP_found=false
  4123. # Loop through the user's path and test for each of PROGNAME-LIST
  4124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4125. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4126. do
  4127. IFS=$as_save_IFS
  4128. test -z "$as_dir" && as_dir=.
  4129. for ac_prog in egrep; do
  4130. for ac_exec_ext in '' $ac_executable_extensions; do
  4131. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4132. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4133. # Check for GNU ac_path_EGREP and select it if it is found.
  4134. # Check for GNU $ac_path_EGREP
  4135. case `"$ac_path_EGREP" --version 2>&1` in
  4136. *GNU*)
  4137. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4138. *)
  4139. ac_count=0
  4140. $as_echo_n 0123456789 >"conftest.in"
  4141. while :
  4142. do
  4143. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4144. mv "conftest.tmp" "conftest.in"
  4145. cp "conftest.in" "conftest.nl"
  4146. $as_echo 'EGREP' >> "conftest.nl"
  4147. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4148. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4149. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4150. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4151. # Best one so far, save it but keep looking for a better one
  4152. ac_cv_path_EGREP="$ac_path_EGREP"
  4153. ac_path_EGREP_max=$ac_count
  4154. fi
  4155. # 10*(2^10) chars as input seems more than enough
  4156. test $ac_count -gt 10 && break
  4157. done
  4158. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4159. esac
  4160. $ac_path_EGREP_found && break 3
  4161. done
  4162. done
  4163. done
  4164. IFS=$as_save_IFS
  4165. if test -z "$ac_cv_path_EGREP"; then
  4166. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4167. fi
  4168. else
  4169. ac_cv_path_EGREP=$EGREP
  4170. fi
  4171. fi
  4172. fi
  4173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4174. $as_echo "$ac_cv_path_EGREP" >&6; }
  4175. EGREP="$ac_cv_path_EGREP"
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4177. $as_echo_n "checking for fgrep... " >&6; }
  4178. if test "${ac_cv_path_FGREP+set}" = set; then :
  4179. $as_echo_n "(cached) " >&6
  4180. else
  4181. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4182. then ac_cv_path_FGREP="$GREP -F"
  4183. else
  4184. if test -z "$FGREP"; then
  4185. ac_path_FGREP_found=false
  4186. # Loop through the user's path and test for each of PROGNAME-LIST
  4187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4188. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4189. do
  4190. IFS=$as_save_IFS
  4191. test -z "$as_dir" && as_dir=.
  4192. for ac_prog in fgrep; do
  4193. for ac_exec_ext in '' $ac_executable_extensions; do
  4194. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4195. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4196. # Check for GNU ac_path_FGREP and select it if it is found.
  4197. # Check for GNU $ac_path_FGREP
  4198. case `"$ac_path_FGREP" --version 2>&1` in
  4199. *GNU*)
  4200. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4201. *)
  4202. ac_count=0
  4203. $as_echo_n 0123456789 >"conftest.in"
  4204. while :
  4205. do
  4206. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4207. mv "conftest.tmp" "conftest.in"
  4208. cp "conftest.in" "conftest.nl"
  4209. $as_echo 'FGREP' >> "conftest.nl"
  4210. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4211. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4212. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4213. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4214. # Best one so far, save it but keep looking for a better one
  4215. ac_cv_path_FGREP="$ac_path_FGREP"
  4216. ac_path_FGREP_max=$ac_count
  4217. fi
  4218. # 10*(2^10) chars as input seems more than enough
  4219. test $ac_count -gt 10 && break
  4220. done
  4221. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4222. esac
  4223. $ac_path_FGREP_found && break 3
  4224. done
  4225. done
  4226. done
  4227. IFS=$as_save_IFS
  4228. if test -z "$ac_cv_path_FGREP"; then
  4229. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4230. fi
  4231. else
  4232. ac_cv_path_FGREP=$FGREP
  4233. fi
  4234. fi
  4235. fi
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4237. $as_echo "$ac_cv_path_FGREP" >&6; }
  4238. FGREP="$ac_cv_path_FGREP"
  4239. test -z "$GREP" && GREP=grep
  4240. # Check whether --with-gnu-ld was given.
  4241. if test "${with_gnu_ld+set}" = set; then :
  4242. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4243. else
  4244. with_gnu_ld=no
  4245. fi
  4246. ac_prog=ld
  4247. if test "$GCC" = yes; then
  4248. # Check if gcc -print-prog-name=ld gives a path.
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4250. $as_echo_n "checking for ld used by $CC... " >&6; }
  4251. case $host in
  4252. *-*-mingw*)
  4253. # gcc leaves a trailing carriage return which upsets mingw
  4254. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4255. *)
  4256. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4257. esac
  4258. case $ac_prog in
  4259. # Accept absolute paths.
  4260. [\\/]* | ?:[\\/]*)
  4261. re_direlt='/[^/][^/]*/\.\./'
  4262. # Canonicalize the pathname of ld
  4263. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4264. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4265. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4266. done
  4267. test -z "$LD" && LD="$ac_prog"
  4268. ;;
  4269. "")
  4270. # If it fails, then pretend we aren't using GCC.
  4271. ac_prog=ld
  4272. ;;
  4273. *)
  4274. # If it is relative, then search for the first ld in PATH.
  4275. with_gnu_ld=unknown
  4276. ;;
  4277. esac
  4278. elif test "$with_gnu_ld" = yes; then
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4280. $as_echo_n "checking for GNU ld... " >&6; }
  4281. else
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4283. $as_echo_n "checking for non-GNU ld... " >&6; }
  4284. fi
  4285. if test "${lt_cv_path_LD+set}" = set; then :
  4286. $as_echo_n "(cached) " >&6
  4287. else
  4288. if test -z "$LD"; then
  4289. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4290. for ac_dir in $PATH; do
  4291. IFS="$lt_save_ifs"
  4292. test -z "$ac_dir" && ac_dir=.
  4293. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4294. lt_cv_path_LD="$ac_dir/$ac_prog"
  4295. # Check to see if the program is GNU ld. I'd rather use --version,
  4296. # but apparently some variants of GNU ld only accept -v.
  4297. # Break only if it was the GNU/non-GNU ld that we prefer.
  4298. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4299. *GNU* | *'with BFD'*)
  4300. test "$with_gnu_ld" != no && break
  4301. ;;
  4302. *)
  4303. test "$with_gnu_ld" != yes && break
  4304. ;;
  4305. esac
  4306. fi
  4307. done
  4308. IFS="$lt_save_ifs"
  4309. else
  4310. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4311. fi
  4312. fi
  4313. LD="$lt_cv_path_LD"
  4314. if test -n "$LD"; then
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4316. $as_echo "$LD" >&6; }
  4317. else
  4318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4319. $as_echo "no" >&6; }
  4320. fi
  4321. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4323. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4324. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4325. $as_echo_n "(cached) " >&6
  4326. else
  4327. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4328. case `$LD -v 2>&1 </dev/null` in
  4329. *GNU* | *'with BFD'*)
  4330. lt_cv_prog_gnu_ld=yes
  4331. ;;
  4332. *)
  4333. lt_cv_prog_gnu_ld=no
  4334. ;;
  4335. esac
  4336. fi
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4338. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4339. with_gnu_ld=$lt_cv_prog_gnu_ld
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4341. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4342. if test "${lt_cv_path_NM+set}" = set; then :
  4343. $as_echo_n "(cached) " >&6
  4344. else
  4345. if test -n "$NM"; then
  4346. # Let the user override the test.
  4347. lt_cv_path_NM="$NM"
  4348. else
  4349. lt_nm_to_check="${ac_tool_prefix}nm"
  4350. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4351. lt_nm_to_check="$lt_nm_to_check nm"
  4352. fi
  4353. for lt_tmp_nm in $lt_nm_to_check; do
  4354. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4355. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4356. IFS="$lt_save_ifs"
  4357. test -z "$ac_dir" && ac_dir=.
  4358. tmp_nm="$ac_dir/$lt_tmp_nm"
  4359. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4360. # Check to see if the nm accepts a BSD-compat flag.
  4361. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4362. # nm: unknown option "B" ignored
  4363. # Tru64's nm complains that /dev/null is an invalid object file
  4364. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4365. */dev/null* | *'Invalid file or object type'*)
  4366. lt_cv_path_NM="$tmp_nm -B"
  4367. break
  4368. ;;
  4369. *)
  4370. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4371. */dev/null*)
  4372. lt_cv_path_NM="$tmp_nm -p"
  4373. break
  4374. ;;
  4375. *)
  4376. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4377. continue # so that we can try to find one that supports BSD flags
  4378. ;;
  4379. esac
  4380. ;;
  4381. esac
  4382. fi
  4383. done
  4384. IFS="$lt_save_ifs"
  4385. done
  4386. : ${lt_cv_path_NM=no}
  4387. fi
  4388. fi
  4389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4390. $as_echo "$lt_cv_path_NM" >&6; }
  4391. if test "$lt_cv_path_NM" != "no"; then
  4392. NM="$lt_cv_path_NM"
  4393. else
  4394. # Didn't find any BSD compatible name lister, look for dumpbin.
  4395. if test -n "$ac_tool_prefix"; then
  4396. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4397. do
  4398. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4399. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4401. $as_echo_n "checking for $ac_word... " >&6; }
  4402. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4403. $as_echo_n "(cached) " >&6
  4404. else
  4405. if test -n "$DUMPBIN"; then
  4406. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4407. else
  4408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4409. for as_dir in $PATH
  4410. do
  4411. IFS=$as_save_IFS
  4412. test -z "$as_dir" && as_dir=.
  4413. for ac_exec_ext in '' $ac_executable_extensions; do
  4414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4415. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4417. break 2
  4418. fi
  4419. done
  4420. done
  4421. IFS=$as_save_IFS
  4422. fi
  4423. fi
  4424. DUMPBIN=$ac_cv_prog_DUMPBIN
  4425. if test -n "$DUMPBIN"; then
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4427. $as_echo "$DUMPBIN" >&6; }
  4428. else
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4430. $as_echo "no" >&6; }
  4431. fi
  4432. test -n "$DUMPBIN" && break
  4433. done
  4434. fi
  4435. if test -z "$DUMPBIN"; then
  4436. ac_ct_DUMPBIN=$DUMPBIN
  4437. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4438. do
  4439. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4440. set dummy $ac_prog; ac_word=$2
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4442. $as_echo_n "checking for $ac_word... " >&6; }
  4443. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4444. $as_echo_n "(cached) " >&6
  4445. else
  4446. if test -n "$ac_ct_DUMPBIN"; then
  4447. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4448. else
  4449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4450. for as_dir in $PATH
  4451. do
  4452. IFS=$as_save_IFS
  4453. test -z "$as_dir" && as_dir=.
  4454. for ac_exec_ext in '' $ac_executable_extensions; do
  4455. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4456. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4457. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4458. break 2
  4459. fi
  4460. done
  4461. done
  4462. IFS=$as_save_IFS
  4463. fi
  4464. fi
  4465. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4466. if test -n "$ac_ct_DUMPBIN"; then
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4468. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4469. else
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4471. $as_echo "no" >&6; }
  4472. fi
  4473. test -n "$ac_ct_DUMPBIN" && break
  4474. done
  4475. if test "x$ac_ct_DUMPBIN" = x; then
  4476. DUMPBIN=":"
  4477. else
  4478. case $cross_compiling:$ac_tool_warned in
  4479. yes:)
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4481. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4482. ac_tool_warned=yes ;;
  4483. esac
  4484. DUMPBIN=$ac_ct_DUMPBIN
  4485. fi
  4486. fi
  4487. if test "$DUMPBIN" != ":"; then
  4488. NM="$DUMPBIN"
  4489. fi
  4490. fi
  4491. test -z "$NM" && NM=nm
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4493. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4494. if test "${lt_cv_nm_interface+set}" = set; then :
  4495. $as_echo_n "(cached) " >&6
  4496. else
  4497. lt_cv_nm_interface="BSD nm"
  4498. echo "int some_variable = 0;" > conftest.$ac_ext
  4499. (eval echo "\"\$as_me:4997: $ac_compile\"" >&5)
  4500. (eval "$ac_compile" 2>conftest.err)
  4501. cat conftest.err >&5
  4502. (eval echo "\"\$as_me:5000: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4503. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4504. cat conftest.err >&5
  4505. (eval echo "\"\$as_me:5003: output\"" >&5)
  4506. cat conftest.out >&5
  4507. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4508. lt_cv_nm_interface="MS dumpbin"
  4509. fi
  4510. rm -f conftest*
  4511. fi
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4513. $as_echo "$lt_cv_nm_interface" >&6; }
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4515. $as_echo_n "checking whether ln -s works... " >&6; }
  4516. LN_S=$as_ln_s
  4517. if test "$LN_S" = "ln -s"; then
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4519. $as_echo "yes" >&6; }
  4520. else
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4522. $as_echo "no, using $LN_S" >&6; }
  4523. fi
  4524. # find the maximum length of command line arguments
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4526. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4527. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. i=0
  4531. teststring="ABCD"
  4532. case $build_os in
  4533. msdosdjgpp*)
  4534. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4535. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4536. # during glob expansion). Even if it were fixed, the result of this
  4537. # check would be larger than it should be.
  4538. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4539. ;;
  4540. gnu*)
  4541. # Under GNU Hurd, this test is not required because there is
  4542. # no limit to the length of command line arguments.
  4543. # Libtool will interpret -1 as no limit whatsoever
  4544. lt_cv_sys_max_cmd_len=-1;
  4545. ;;
  4546. cygwin* | mingw* | cegcc*)
  4547. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4548. # about 5 minutes as the teststring grows exponentially.
  4549. # Worse, since 9x/ME are not pre-emptively multitasking,
  4550. # you end up with a "frozen" computer, even though with patience
  4551. # the test eventually succeeds (with a max line length of 256k).
  4552. # Instead, let's just punt: use the minimum linelength reported by
  4553. # all of the supported platforms: 8192 (on NT/2K/XP).
  4554. lt_cv_sys_max_cmd_len=8192;
  4555. ;;
  4556. amigaos*)
  4557. # On AmigaOS with pdksh, this test takes hours, literally.
  4558. # So we just punt and use a minimum line length of 8192.
  4559. lt_cv_sys_max_cmd_len=8192;
  4560. ;;
  4561. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4562. # This has been around since 386BSD, at least. Likely further.
  4563. if test -x /sbin/sysctl; then
  4564. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4565. elif test -x /usr/sbin/sysctl; then
  4566. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4567. else
  4568. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4569. fi
  4570. # And add a safety zone
  4571. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4572. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4573. ;;
  4574. interix*)
  4575. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4576. lt_cv_sys_max_cmd_len=196608
  4577. ;;
  4578. osf*)
  4579. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4580. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4581. # nice to cause kernel panics so lets avoid the loop below.
  4582. # First set a reasonable default.
  4583. lt_cv_sys_max_cmd_len=16384
  4584. #
  4585. if test -x /sbin/sysconfig; then
  4586. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4587. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4588. esac
  4589. fi
  4590. ;;
  4591. sco3.2v5*)
  4592. lt_cv_sys_max_cmd_len=102400
  4593. ;;
  4594. sysv5* | sco5v6* | sysv4.2uw2*)
  4595. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4596. if test -n "$kargmax"; then
  4597. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4598. else
  4599. lt_cv_sys_max_cmd_len=32768
  4600. fi
  4601. ;;
  4602. *)
  4603. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4604. if test -n "$lt_cv_sys_max_cmd_len"; then
  4605. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4606. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4607. else
  4608. # Make teststring a little bigger before we do anything with it.
  4609. # a 1K string should be a reasonable start.
  4610. for i in 1 2 3 4 5 6 7 8 ; do
  4611. teststring=$teststring$teststring
  4612. done
  4613. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4614. # If test is not a shell built-in, we'll probably end up computing a
  4615. # maximum length that is only half of the actual maximum length, but
  4616. # we can't tell.
  4617. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4618. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4619. test $i != 17 # 1/2 MB should be enough
  4620. do
  4621. i=`expr $i + 1`
  4622. teststring=$teststring$teststring
  4623. done
  4624. # Only check the string length outside the loop.
  4625. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4626. teststring=
  4627. # Add a significant safety factor because C++ compilers can tack on
  4628. # massive amounts of additional arguments before passing them to the
  4629. # linker. It appears as though 1/2 is a usable value.
  4630. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4631. fi
  4632. ;;
  4633. esac
  4634. fi
  4635. if test -n $lt_cv_sys_max_cmd_len ; then
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4637. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4638. else
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4640. $as_echo "none" >&6; }
  4641. fi
  4642. max_cmd_len=$lt_cv_sys_max_cmd_len
  4643. : ${CP="cp -f"}
  4644. : ${MV="mv -f"}
  4645. : ${RM="rm -f"}
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4647. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4648. # Try some XSI features
  4649. xsi_shell=no
  4650. ( _lt_dummy="a/b/c"
  4651. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4652. = c,a/b,, \
  4653. && eval 'test $(( 1 + 1 )) -eq 2 \
  4654. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4655. && xsi_shell=yes
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4657. $as_echo "$xsi_shell" >&6; }
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4659. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4660. lt_shell_append=no
  4661. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4662. >/dev/null 2>&1 \
  4663. && lt_shell_append=yes
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4665. $as_echo "$lt_shell_append" >&6; }
  4666. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4667. lt_unset=unset
  4668. else
  4669. lt_unset=false
  4670. fi
  4671. # test EBCDIC or ASCII
  4672. case `echo X|tr X '\101'` in
  4673. A) # ASCII based system
  4674. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4675. lt_SP2NL='tr \040 \012'
  4676. lt_NL2SP='tr \015\012 \040\040'
  4677. ;;
  4678. *) # EBCDIC based system
  4679. lt_SP2NL='tr \100 \n'
  4680. lt_NL2SP='tr \r\n \100\100'
  4681. ;;
  4682. esac
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4684. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4685. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4686. $as_echo_n "(cached) " >&6
  4687. else
  4688. lt_cv_ld_reload_flag='-r'
  4689. fi
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4691. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4692. reload_flag=$lt_cv_ld_reload_flag
  4693. case $reload_flag in
  4694. "" | " "*) ;;
  4695. *) reload_flag=" $reload_flag" ;;
  4696. esac
  4697. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4698. case $host_os in
  4699. darwin*)
  4700. if test "$GCC" = yes; then
  4701. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4702. else
  4703. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4704. fi
  4705. ;;
  4706. esac
  4707. if test -n "$ac_tool_prefix"; then
  4708. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4709. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4711. $as_echo_n "checking for $ac_word... " >&6; }
  4712. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4713. $as_echo_n "(cached) " >&6
  4714. else
  4715. if test -n "$OBJDUMP"; then
  4716. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4717. else
  4718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4719. for as_dir in $PATH
  4720. do
  4721. IFS=$as_save_IFS
  4722. test -z "$as_dir" && as_dir=.
  4723. for ac_exec_ext in '' $ac_executable_extensions; do
  4724. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4725. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4727. break 2
  4728. fi
  4729. done
  4730. done
  4731. IFS=$as_save_IFS
  4732. fi
  4733. fi
  4734. OBJDUMP=$ac_cv_prog_OBJDUMP
  4735. if test -n "$OBJDUMP"; then
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4737. $as_echo "$OBJDUMP" >&6; }
  4738. else
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4740. $as_echo "no" >&6; }
  4741. fi
  4742. fi
  4743. if test -z "$ac_cv_prog_OBJDUMP"; then
  4744. ac_ct_OBJDUMP=$OBJDUMP
  4745. # Extract the first word of "objdump", so it can be a program name with args.
  4746. set dummy objdump; ac_word=$2
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4748. $as_echo_n "checking for $ac_word... " >&6; }
  4749. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4750. $as_echo_n "(cached) " >&6
  4751. else
  4752. if test -n "$ac_ct_OBJDUMP"; then
  4753. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4754. else
  4755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4756. for as_dir in $PATH
  4757. do
  4758. IFS=$as_save_IFS
  4759. test -z "$as_dir" && as_dir=.
  4760. for ac_exec_ext in '' $ac_executable_extensions; do
  4761. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4762. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4764. break 2
  4765. fi
  4766. done
  4767. done
  4768. IFS=$as_save_IFS
  4769. fi
  4770. fi
  4771. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4772. if test -n "$ac_ct_OBJDUMP"; then
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4774. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4775. else
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4777. $as_echo "no" >&6; }
  4778. fi
  4779. if test "x$ac_ct_OBJDUMP" = x; then
  4780. OBJDUMP="false"
  4781. else
  4782. case $cross_compiling:$ac_tool_warned in
  4783. yes:)
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4785. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4786. ac_tool_warned=yes ;;
  4787. esac
  4788. OBJDUMP=$ac_ct_OBJDUMP
  4789. fi
  4790. else
  4791. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4792. fi
  4793. test -z "$OBJDUMP" && OBJDUMP=objdump
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4795. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4796. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4797. $as_echo_n "(cached) " >&6
  4798. else
  4799. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4800. lt_cv_file_magic_test_file=
  4801. lt_cv_deplibs_check_method='unknown'
  4802. # Need to set the preceding variable on all platforms that support
  4803. # interlibrary dependencies.
  4804. # 'none' -- dependencies not supported.
  4805. # `unknown' -- same as none, but documents that we really don't know.
  4806. # 'pass_all' -- all dependencies passed with no checks.
  4807. # 'test_compile' -- check by making test program.
  4808. # 'file_magic [[regex]]' -- check by looking for files in library path
  4809. # which responds to the $file_magic_cmd with a given extended regex.
  4810. # If you have `file' or equivalent on your system and you're not sure
  4811. # whether `pass_all' will *always* work, you probably want this one.
  4812. case $host_os in
  4813. aix[4-9]*)
  4814. lt_cv_deplibs_check_method=pass_all
  4815. ;;
  4816. beos*)
  4817. lt_cv_deplibs_check_method=pass_all
  4818. ;;
  4819. bsdi[45]*)
  4820. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4821. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4822. lt_cv_file_magic_test_file=/shlib/libc.so
  4823. ;;
  4824. cygwin*)
  4825. # func_win32_libid is a shell function defined in ltmain.sh
  4826. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4827. lt_cv_file_magic_cmd='func_win32_libid'
  4828. ;;
  4829. mingw* | pw32*)
  4830. # Base MSYS/MinGW do not provide the 'file' command needed by
  4831. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4832. # unless we find 'file', for example because we are cross-compiling.
  4833. if ( file / ) >/dev/null 2>&1; then
  4834. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4835. lt_cv_file_magic_cmd='func_win32_libid'
  4836. else
  4837. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4838. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4839. fi
  4840. ;;
  4841. cegcc)
  4842. # use the weaker test based on 'objdump'. See mingw*.
  4843. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4844. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4845. ;;
  4846. darwin* | rhapsody*)
  4847. lt_cv_deplibs_check_method=pass_all
  4848. ;;
  4849. freebsd* | dragonfly*)
  4850. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4851. case $host_cpu in
  4852. i*86 )
  4853. # Not sure whether the presence of OpenBSD here was a mistake.
  4854. # Let's accept both of them until this is cleared up.
  4855. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4856. lt_cv_file_magic_cmd=/usr/bin/file
  4857. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4858. ;;
  4859. esac
  4860. else
  4861. lt_cv_deplibs_check_method=pass_all
  4862. fi
  4863. ;;
  4864. gnu*)
  4865. lt_cv_deplibs_check_method=pass_all
  4866. ;;
  4867. hpux10.20* | hpux11*)
  4868. lt_cv_file_magic_cmd=/usr/bin/file
  4869. case $host_cpu in
  4870. ia64*)
  4871. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4872. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4873. ;;
  4874. hppa*64*)
  4875. 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]'
  4876. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4877. ;;
  4878. *)
  4879. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4880. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4881. ;;
  4882. esac
  4883. ;;
  4884. interix[3-9]*)
  4885. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4886. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4887. ;;
  4888. irix5* | irix6* | nonstopux*)
  4889. case $LD in
  4890. *-32|*"-32 ") libmagic=32-bit;;
  4891. *-n32|*"-n32 ") libmagic=N32;;
  4892. *-64|*"-64 ") libmagic=64-bit;;
  4893. *) libmagic=never-match;;
  4894. esac
  4895. lt_cv_deplibs_check_method=pass_all
  4896. ;;
  4897. # This must be Linux ELF.
  4898. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4899. lt_cv_deplibs_check_method=pass_all
  4900. ;;
  4901. netbsd* | netbsdelf*-gnu)
  4902. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4903. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4904. else
  4905. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4906. fi
  4907. ;;
  4908. newos6*)
  4909. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4910. lt_cv_file_magic_cmd=/usr/bin/file
  4911. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4912. ;;
  4913. *nto* | *qnx*)
  4914. lt_cv_deplibs_check_method=pass_all
  4915. ;;
  4916. openbsd*)
  4917. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4918. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4919. else
  4920. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4921. fi
  4922. ;;
  4923. osf3* | osf4* | osf5*)
  4924. lt_cv_deplibs_check_method=pass_all
  4925. ;;
  4926. rdos*)
  4927. lt_cv_deplibs_check_method=pass_all
  4928. ;;
  4929. solaris*)
  4930. lt_cv_deplibs_check_method=pass_all
  4931. ;;
  4932. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4933. lt_cv_deplibs_check_method=pass_all
  4934. ;;
  4935. sysv4 | sysv4.3*)
  4936. case $host_vendor in
  4937. motorola)
  4938. 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]'
  4939. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4940. ;;
  4941. ncr)
  4942. lt_cv_deplibs_check_method=pass_all
  4943. ;;
  4944. sequent)
  4945. lt_cv_file_magic_cmd='/bin/file'
  4946. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4947. ;;
  4948. sni)
  4949. lt_cv_file_magic_cmd='/bin/file'
  4950. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4951. lt_cv_file_magic_test_file=/lib/libc.so
  4952. ;;
  4953. siemens)
  4954. lt_cv_deplibs_check_method=pass_all
  4955. ;;
  4956. pc)
  4957. lt_cv_deplibs_check_method=pass_all
  4958. ;;
  4959. esac
  4960. ;;
  4961. tpf*)
  4962. lt_cv_deplibs_check_method=pass_all
  4963. ;;
  4964. esac
  4965. fi
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4967. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4968. file_magic_cmd=$lt_cv_file_magic_cmd
  4969. deplibs_check_method=$lt_cv_deplibs_check_method
  4970. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4971. if test -n "$ac_tool_prefix"; then
  4972. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4973. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4975. $as_echo_n "checking for $ac_word... " >&6; }
  4976. if test "${ac_cv_prog_AR+set}" = set; then :
  4977. $as_echo_n "(cached) " >&6
  4978. else
  4979. if test -n "$AR"; then
  4980. ac_cv_prog_AR="$AR" # Let the user override the test.
  4981. else
  4982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4983. for as_dir in $PATH
  4984. do
  4985. IFS=$as_save_IFS
  4986. test -z "$as_dir" && as_dir=.
  4987. for ac_exec_ext in '' $ac_executable_extensions; do
  4988. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4989. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4991. break 2
  4992. fi
  4993. done
  4994. done
  4995. IFS=$as_save_IFS
  4996. fi
  4997. fi
  4998. AR=$ac_cv_prog_AR
  4999. if test -n "$AR"; then
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5001. $as_echo "$AR" >&6; }
  5002. else
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5004. $as_echo "no" >&6; }
  5005. fi
  5006. fi
  5007. if test -z "$ac_cv_prog_AR"; then
  5008. ac_ct_AR=$AR
  5009. # Extract the first word of "ar", so it can be a program name with args.
  5010. set dummy ar; ac_word=$2
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5012. $as_echo_n "checking for $ac_word... " >&6; }
  5013. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5014. $as_echo_n "(cached) " >&6
  5015. else
  5016. if test -n "$ac_ct_AR"; then
  5017. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5018. else
  5019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5020. for as_dir in $PATH
  5021. do
  5022. IFS=$as_save_IFS
  5023. test -z "$as_dir" && as_dir=.
  5024. for ac_exec_ext in '' $ac_executable_extensions; do
  5025. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5026. ac_cv_prog_ac_ct_AR="ar"
  5027. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5028. break 2
  5029. fi
  5030. done
  5031. done
  5032. IFS=$as_save_IFS
  5033. fi
  5034. fi
  5035. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5036. if test -n "$ac_ct_AR"; then
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5038. $as_echo "$ac_ct_AR" >&6; }
  5039. else
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5041. $as_echo "no" >&6; }
  5042. fi
  5043. if test "x$ac_ct_AR" = x; then
  5044. AR="false"
  5045. else
  5046. case $cross_compiling:$ac_tool_warned in
  5047. yes:)
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5049. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5050. ac_tool_warned=yes ;;
  5051. esac
  5052. AR=$ac_ct_AR
  5053. fi
  5054. else
  5055. AR="$ac_cv_prog_AR"
  5056. fi
  5057. test -z "$AR" && AR=ar
  5058. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5059. if test -n "$ac_tool_prefix"; then
  5060. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5061. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5063. $as_echo_n "checking for $ac_word... " >&6; }
  5064. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5065. $as_echo_n "(cached) " >&6
  5066. else
  5067. if test -n "$STRIP"; then
  5068. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5069. else
  5070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5071. for as_dir in $PATH
  5072. do
  5073. IFS=$as_save_IFS
  5074. test -z "$as_dir" && as_dir=.
  5075. for ac_exec_ext in '' $ac_executable_extensions; do
  5076. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5077. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5078. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5079. break 2
  5080. fi
  5081. done
  5082. done
  5083. IFS=$as_save_IFS
  5084. fi
  5085. fi
  5086. STRIP=$ac_cv_prog_STRIP
  5087. if test -n "$STRIP"; then
  5088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5089. $as_echo "$STRIP" >&6; }
  5090. else
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5092. $as_echo "no" >&6; }
  5093. fi
  5094. fi
  5095. if test -z "$ac_cv_prog_STRIP"; then
  5096. ac_ct_STRIP=$STRIP
  5097. # Extract the first word of "strip", so it can be a program name with args.
  5098. set dummy strip; ac_word=$2
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5100. $as_echo_n "checking for $ac_word... " >&6; }
  5101. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5102. $as_echo_n "(cached) " >&6
  5103. else
  5104. if test -n "$ac_ct_STRIP"; then
  5105. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5106. else
  5107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5108. for as_dir in $PATH
  5109. do
  5110. IFS=$as_save_IFS
  5111. test -z "$as_dir" && as_dir=.
  5112. for ac_exec_ext in '' $ac_executable_extensions; do
  5113. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5114. ac_cv_prog_ac_ct_STRIP="strip"
  5115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5116. break 2
  5117. fi
  5118. done
  5119. done
  5120. IFS=$as_save_IFS
  5121. fi
  5122. fi
  5123. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5124. if test -n "$ac_ct_STRIP"; then
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5126. $as_echo "$ac_ct_STRIP" >&6; }
  5127. else
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5129. $as_echo "no" >&6; }
  5130. fi
  5131. if test "x$ac_ct_STRIP" = x; then
  5132. STRIP=":"
  5133. else
  5134. case $cross_compiling:$ac_tool_warned in
  5135. yes:)
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5137. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5138. ac_tool_warned=yes ;;
  5139. esac
  5140. STRIP=$ac_ct_STRIP
  5141. fi
  5142. else
  5143. STRIP="$ac_cv_prog_STRIP"
  5144. fi
  5145. test -z "$STRIP" && STRIP=:
  5146. if test -n "$ac_tool_prefix"; then
  5147. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5148. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5150. $as_echo_n "checking for $ac_word... " >&6; }
  5151. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5152. $as_echo_n "(cached) " >&6
  5153. else
  5154. if test -n "$RANLIB"; then
  5155. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5156. else
  5157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5158. for as_dir in $PATH
  5159. do
  5160. IFS=$as_save_IFS
  5161. test -z "$as_dir" && as_dir=.
  5162. for ac_exec_ext in '' $ac_executable_extensions; do
  5163. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5164. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5166. break 2
  5167. fi
  5168. done
  5169. done
  5170. IFS=$as_save_IFS
  5171. fi
  5172. fi
  5173. RANLIB=$ac_cv_prog_RANLIB
  5174. if test -n "$RANLIB"; then
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5176. $as_echo "$RANLIB" >&6; }
  5177. else
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5179. $as_echo "no" >&6; }
  5180. fi
  5181. fi
  5182. if test -z "$ac_cv_prog_RANLIB"; then
  5183. ac_ct_RANLIB=$RANLIB
  5184. # Extract the first word of "ranlib", so it can be a program name with args.
  5185. set dummy ranlib; ac_word=$2
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5187. $as_echo_n "checking for $ac_word... " >&6; }
  5188. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5189. $as_echo_n "(cached) " >&6
  5190. else
  5191. if test -n "$ac_ct_RANLIB"; then
  5192. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5193. else
  5194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5195. for as_dir in $PATH
  5196. do
  5197. IFS=$as_save_IFS
  5198. test -z "$as_dir" && as_dir=.
  5199. for ac_exec_ext in '' $ac_executable_extensions; do
  5200. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5201. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5203. break 2
  5204. fi
  5205. done
  5206. done
  5207. IFS=$as_save_IFS
  5208. fi
  5209. fi
  5210. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5211. if test -n "$ac_ct_RANLIB"; then
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5213. $as_echo "$ac_ct_RANLIB" >&6; }
  5214. else
  5215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5216. $as_echo "no" >&6; }
  5217. fi
  5218. if test "x$ac_ct_RANLIB" = x; then
  5219. RANLIB=":"
  5220. else
  5221. case $cross_compiling:$ac_tool_warned in
  5222. yes:)
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5224. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5225. ac_tool_warned=yes ;;
  5226. esac
  5227. RANLIB=$ac_ct_RANLIB
  5228. fi
  5229. else
  5230. RANLIB="$ac_cv_prog_RANLIB"
  5231. fi
  5232. test -z "$RANLIB" && RANLIB=:
  5233. # Determine commands to create old-style static archives.
  5234. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5235. old_postinstall_cmds='chmod 644 $oldlib'
  5236. old_postuninstall_cmds=
  5237. if test -n "$RANLIB"; then
  5238. case $host_os in
  5239. openbsd*)
  5240. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5241. ;;
  5242. *)
  5243. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5244. ;;
  5245. esac
  5246. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5247. fi
  5248. # If no C compiler was specified, use CC.
  5249. LTCC=${LTCC-"$CC"}
  5250. # If no C compiler flags were specified, use CFLAGS.
  5251. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5252. # Allow CC to be a program name with arguments.
  5253. compiler=$CC
  5254. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5256. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5257. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5258. $as_echo_n "(cached) " >&6
  5259. else
  5260. # These are sane defaults that work on at least a few old systems.
  5261. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5262. # Character class describing NM global symbol codes.
  5263. symcode='[BCDEGRST]'
  5264. # Regexp to match symbols that can be accessed directly from C.
  5265. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5266. # Define system-specific variables.
  5267. case $host_os in
  5268. aix*)
  5269. symcode='[BCDT]'
  5270. ;;
  5271. cygwin* | mingw* | pw32* | cegcc*)
  5272. symcode='[ABCDGISTW]'
  5273. ;;
  5274. hpux*)
  5275. if test "$host_cpu" = ia64; then
  5276. symcode='[ABCDEGRST]'
  5277. fi
  5278. ;;
  5279. irix* | nonstopux*)
  5280. symcode='[BCDEGRST]'
  5281. ;;
  5282. osf*)
  5283. symcode='[BCDEGQRST]'
  5284. ;;
  5285. solaris*)
  5286. symcode='[BDRT]'
  5287. ;;
  5288. sco3.2v5*)
  5289. symcode='[DT]'
  5290. ;;
  5291. sysv4.2uw2*)
  5292. symcode='[DT]'
  5293. ;;
  5294. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5295. symcode='[ABDT]'
  5296. ;;
  5297. sysv4)
  5298. symcode='[DFNSTU]'
  5299. ;;
  5300. esac
  5301. # If we're using GNU nm, then use its standard symbol codes.
  5302. case `$NM -V 2>&1` in
  5303. *GNU* | *'with BFD'*)
  5304. symcode='[ABCDGIRSTW]' ;;
  5305. esac
  5306. # Transform an extracted symbol line into a proper C declaration.
  5307. # Some systems (esp. on ia64) link data and code symbols differently,
  5308. # so use this general approach.
  5309. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5310. # Transform an extracted symbol line into symbol name and symbol address
  5311. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5312. 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'"
  5313. # Handle CRLF in mingw tool chain
  5314. opt_cr=
  5315. case $build_os in
  5316. mingw*)
  5317. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5318. ;;
  5319. esac
  5320. # Try without a prefix underscore, then with it.
  5321. for ac_symprfx in "" "_"; do
  5322. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5323. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5324. # Write the raw and C identifiers.
  5325. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5326. # Fake it for dumpbin and say T for any non-static function
  5327. # and D for any global variable.
  5328. # Also find C++ and __fastcall symbols from MSVC++,
  5329. # which start with @ or ?.
  5330. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5331. " {last_section=section; section=\$ 3};"\
  5332. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5333. " \$ 0!~/External *\|/{next};"\
  5334. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5335. " {if(hide[section]) next};"\
  5336. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5337. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5338. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5339. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5340. " ' prfx=^$ac_symprfx"
  5341. else
  5342. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5343. fi
  5344. # Check to see that the pipe works correctly.
  5345. pipe_works=no
  5346. rm -f conftest*
  5347. cat > conftest.$ac_ext <<_LT_EOF
  5348. #ifdef __cplusplus
  5349. extern "C" {
  5350. #endif
  5351. char nm_test_var;
  5352. void nm_test_func(void);
  5353. void nm_test_func(void){}
  5354. #ifdef __cplusplus
  5355. }
  5356. #endif
  5357. int main(){nm_test_var='a';nm_test_func();return(0);}
  5358. _LT_EOF
  5359. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5360. (eval $ac_compile) 2>&5
  5361. ac_status=$?
  5362. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5363. test $ac_status = 0; }; then
  5364. # Now try to grab the symbols.
  5365. nlist=conftest.nm
  5366. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5367. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5368. ac_status=$?
  5369. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5370. test $ac_status = 0; } && test -s "$nlist"; then
  5371. # Try sorting and uniquifying the output.
  5372. if sort "$nlist" | uniq > "$nlist"T; then
  5373. mv -f "$nlist"T "$nlist"
  5374. else
  5375. rm -f "$nlist"T
  5376. fi
  5377. # Make sure that we snagged all the symbols we need.
  5378. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5379. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5380. cat <<_LT_EOF > conftest.$ac_ext
  5381. #ifdef __cplusplus
  5382. extern "C" {
  5383. #endif
  5384. _LT_EOF
  5385. # Now generate the symbol file.
  5386. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5387. cat <<_LT_EOF >> conftest.$ac_ext
  5388. /* The mapping between symbol names and symbols. */
  5389. const struct {
  5390. const char *name;
  5391. void *address;
  5392. }
  5393. lt__PROGRAM__LTX_preloaded_symbols[] =
  5394. {
  5395. { "@PROGRAM@", (void *) 0 },
  5396. _LT_EOF
  5397. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5398. cat <<\_LT_EOF >> conftest.$ac_ext
  5399. {0, (void *) 0}
  5400. };
  5401. /* This works around a problem in FreeBSD linker */
  5402. #ifdef FREEBSD_WORKAROUND
  5403. static const void *lt_preloaded_setup() {
  5404. return lt__PROGRAM__LTX_preloaded_symbols;
  5405. }
  5406. #endif
  5407. #ifdef __cplusplus
  5408. }
  5409. #endif
  5410. _LT_EOF
  5411. # Now try linking the two files.
  5412. mv conftest.$ac_objext conftstm.$ac_objext
  5413. lt_save_LIBS="$LIBS"
  5414. lt_save_CFLAGS="$CFLAGS"
  5415. LIBS="conftstm.$ac_objext"
  5416. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5417. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5418. (eval $ac_link) 2>&5
  5419. ac_status=$?
  5420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5421. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5422. pipe_works=yes
  5423. fi
  5424. LIBS="$lt_save_LIBS"
  5425. CFLAGS="$lt_save_CFLAGS"
  5426. else
  5427. echo "cannot find nm_test_func in $nlist" >&5
  5428. fi
  5429. else
  5430. echo "cannot find nm_test_var in $nlist" >&5
  5431. fi
  5432. else
  5433. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5434. fi
  5435. else
  5436. echo "$progname: failed program was:" >&5
  5437. cat conftest.$ac_ext >&5
  5438. fi
  5439. rm -rf conftest* conftst*
  5440. # Do not use the global_symbol_pipe unless it works.
  5441. if test "$pipe_works" = yes; then
  5442. break
  5443. else
  5444. lt_cv_sys_global_symbol_pipe=
  5445. fi
  5446. done
  5447. fi
  5448. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5449. lt_cv_sys_global_symbol_to_cdecl=
  5450. fi
  5451. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5453. $as_echo "failed" >&6; }
  5454. else
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5456. $as_echo "ok" >&6; }
  5457. fi
  5458. # Check whether --enable-libtool-lock was given.
  5459. if test "${enable_libtool_lock+set}" = set; then :
  5460. enableval=$enable_libtool_lock;
  5461. fi
  5462. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5463. # Some flags need to be propagated to the compiler or linker for good
  5464. # libtool support.
  5465. case $host in
  5466. ia64-*-hpux*)
  5467. # Find out which ABI we are using.
  5468. echo 'int i;' > conftest.$ac_ext
  5469. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5470. (eval $ac_compile) 2>&5
  5471. ac_status=$?
  5472. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5473. test $ac_status = 0; }; then
  5474. case `/usr/bin/file conftest.$ac_objext` in
  5475. *ELF-32*)
  5476. HPUX_IA64_MODE="32"
  5477. ;;
  5478. *ELF-64*)
  5479. HPUX_IA64_MODE="64"
  5480. ;;
  5481. esac
  5482. fi
  5483. rm -rf conftest*
  5484. ;;
  5485. *-*-irix6*)
  5486. # Find out which ABI we are using.
  5487. echo '#line 6209 "configure"' > conftest.$ac_ext
  5488. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5489. (eval $ac_compile) 2>&5
  5490. ac_status=$?
  5491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5492. test $ac_status = 0; }; then
  5493. if test "$lt_cv_prog_gnu_ld" = yes; then
  5494. case `/usr/bin/file conftest.$ac_objext` in
  5495. *32-bit*)
  5496. LD="${LD-ld} -melf32bsmip"
  5497. ;;
  5498. *N32*)
  5499. LD="${LD-ld} -melf32bmipn32"
  5500. ;;
  5501. *64-bit*)
  5502. LD="${LD-ld} -melf64bmip"
  5503. ;;
  5504. esac
  5505. else
  5506. case `/usr/bin/file conftest.$ac_objext` in
  5507. *32-bit*)
  5508. LD="${LD-ld} -32"
  5509. ;;
  5510. *N32*)
  5511. LD="${LD-ld} -n32"
  5512. ;;
  5513. *64-bit*)
  5514. LD="${LD-ld} -64"
  5515. ;;
  5516. esac
  5517. fi
  5518. fi
  5519. rm -rf conftest*
  5520. ;;
  5521. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5522. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5523. # Find out which ABI we are using.
  5524. echo 'int i;' > conftest.$ac_ext
  5525. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5526. (eval $ac_compile) 2>&5
  5527. ac_status=$?
  5528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5529. test $ac_status = 0; }; then
  5530. case `/usr/bin/file conftest.o` in
  5531. *32-bit*)
  5532. case $host in
  5533. x86_64-*kfreebsd*-gnu)
  5534. LD="${LD-ld} -m elf_i386_fbsd"
  5535. ;;
  5536. x86_64-*linux*)
  5537. LD="${LD-ld} -m elf_i386"
  5538. ;;
  5539. ppc64-*linux*|powerpc64-*linux*)
  5540. LD="${LD-ld} -m elf32ppclinux"
  5541. ;;
  5542. s390x-*linux*)
  5543. LD="${LD-ld} -m elf_s390"
  5544. ;;
  5545. sparc64-*linux*)
  5546. LD="${LD-ld} -m elf32_sparc"
  5547. ;;
  5548. esac
  5549. ;;
  5550. *64-bit*)
  5551. case $host in
  5552. x86_64-*kfreebsd*-gnu)
  5553. LD="${LD-ld} -m elf_x86_64_fbsd"
  5554. ;;
  5555. x86_64-*linux*)
  5556. LD="${LD-ld} -m elf_x86_64"
  5557. ;;
  5558. ppc*-*linux*|powerpc*-*linux*)
  5559. LD="${LD-ld} -m elf64ppc"
  5560. ;;
  5561. s390*-*linux*|s390*-*tpf*)
  5562. LD="${LD-ld} -m elf64_s390"
  5563. ;;
  5564. sparc*-*linux*)
  5565. LD="${LD-ld} -m elf64_sparc"
  5566. ;;
  5567. esac
  5568. ;;
  5569. esac
  5570. fi
  5571. rm -rf conftest*
  5572. ;;
  5573. *-*-sco3.2v5*)
  5574. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5575. SAVE_CFLAGS="$CFLAGS"
  5576. CFLAGS="$CFLAGS -belf"
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5578. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5579. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5580. $as_echo_n "(cached) " >&6
  5581. else
  5582. ac_ext=c
  5583. ac_cpp='$CPP $CPPFLAGS'
  5584. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5585. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5586. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5588. /* end confdefs.h. */
  5589. int
  5590. main ()
  5591. {
  5592. ;
  5593. return 0;
  5594. }
  5595. _ACEOF
  5596. if ac_fn_c_try_link "$LINENO"; then :
  5597. lt_cv_cc_needs_belf=yes
  5598. else
  5599. lt_cv_cc_needs_belf=no
  5600. fi
  5601. rm -f core conftest.err conftest.$ac_objext \
  5602. conftest$ac_exeext conftest.$ac_ext
  5603. ac_ext=c
  5604. ac_cpp='$CPP $CPPFLAGS'
  5605. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5606. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5607. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5608. fi
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5610. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5611. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5612. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5613. CFLAGS="$SAVE_CFLAGS"
  5614. fi
  5615. ;;
  5616. sparc*-*solaris*)
  5617. # Find out which ABI we are using.
  5618. echo 'int i;' > conftest.$ac_ext
  5619. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5620. (eval $ac_compile) 2>&5
  5621. ac_status=$?
  5622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5623. test $ac_status = 0; }; then
  5624. case `/usr/bin/file conftest.o` in
  5625. *64-bit*)
  5626. case $lt_cv_prog_gnu_ld in
  5627. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5628. *)
  5629. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5630. LD="${LD-ld} -64"
  5631. fi
  5632. ;;
  5633. esac
  5634. ;;
  5635. esac
  5636. fi
  5637. rm -rf conftest*
  5638. ;;
  5639. esac
  5640. need_locks="$enable_libtool_lock"
  5641. case $host_os in
  5642. rhapsody* | darwin*)
  5643. if test -n "$ac_tool_prefix"; then
  5644. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5645. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5647. $as_echo_n "checking for $ac_word... " >&6; }
  5648. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5649. $as_echo_n "(cached) " >&6
  5650. else
  5651. if test -n "$DSYMUTIL"; then
  5652. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5653. else
  5654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5655. for as_dir in $PATH
  5656. do
  5657. IFS=$as_save_IFS
  5658. test -z "$as_dir" && as_dir=.
  5659. for ac_exec_ext in '' $ac_executable_extensions; do
  5660. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5661. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5663. break 2
  5664. fi
  5665. done
  5666. done
  5667. IFS=$as_save_IFS
  5668. fi
  5669. fi
  5670. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5671. if test -n "$DSYMUTIL"; then
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5673. $as_echo "$DSYMUTIL" >&6; }
  5674. else
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5676. $as_echo "no" >&6; }
  5677. fi
  5678. fi
  5679. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5680. ac_ct_DSYMUTIL=$DSYMUTIL
  5681. # Extract the first word of "dsymutil", so it can be a program name with args.
  5682. set dummy dsymutil; ac_word=$2
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5684. $as_echo_n "checking for $ac_word... " >&6; }
  5685. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5686. $as_echo_n "(cached) " >&6
  5687. else
  5688. if test -n "$ac_ct_DSYMUTIL"; then
  5689. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5690. else
  5691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5692. for as_dir in $PATH
  5693. do
  5694. IFS=$as_save_IFS
  5695. test -z "$as_dir" && as_dir=.
  5696. for ac_exec_ext in '' $ac_executable_extensions; do
  5697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5698. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5700. break 2
  5701. fi
  5702. done
  5703. done
  5704. IFS=$as_save_IFS
  5705. fi
  5706. fi
  5707. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5708. if test -n "$ac_ct_DSYMUTIL"; then
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5710. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5711. else
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5713. $as_echo "no" >&6; }
  5714. fi
  5715. if test "x$ac_ct_DSYMUTIL" = x; then
  5716. DSYMUTIL=":"
  5717. else
  5718. case $cross_compiling:$ac_tool_warned in
  5719. yes:)
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5721. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5722. ac_tool_warned=yes ;;
  5723. esac
  5724. DSYMUTIL=$ac_ct_DSYMUTIL
  5725. fi
  5726. else
  5727. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5728. fi
  5729. if test -n "$ac_tool_prefix"; then
  5730. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5731. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5733. $as_echo_n "checking for $ac_word... " >&6; }
  5734. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5735. $as_echo_n "(cached) " >&6
  5736. else
  5737. if test -n "$NMEDIT"; then
  5738. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5739. else
  5740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5741. for as_dir in $PATH
  5742. do
  5743. IFS=$as_save_IFS
  5744. test -z "$as_dir" && as_dir=.
  5745. for ac_exec_ext in '' $ac_executable_extensions; do
  5746. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5747. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5749. break 2
  5750. fi
  5751. done
  5752. done
  5753. IFS=$as_save_IFS
  5754. fi
  5755. fi
  5756. NMEDIT=$ac_cv_prog_NMEDIT
  5757. if test -n "$NMEDIT"; then
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5759. $as_echo "$NMEDIT" >&6; }
  5760. else
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5762. $as_echo "no" >&6; }
  5763. fi
  5764. fi
  5765. if test -z "$ac_cv_prog_NMEDIT"; then
  5766. ac_ct_NMEDIT=$NMEDIT
  5767. # Extract the first word of "nmedit", so it can be a program name with args.
  5768. set dummy nmedit; ac_word=$2
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5770. $as_echo_n "checking for $ac_word... " >&6; }
  5771. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5772. $as_echo_n "(cached) " >&6
  5773. else
  5774. if test -n "$ac_ct_NMEDIT"; then
  5775. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5776. else
  5777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5778. for as_dir in $PATH
  5779. do
  5780. IFS=$as_save_IFS
  5781. test -z "$as_dir" && as_dir=.
  5782. for ac_exec_ext in '' $ac_executable_extensions; do
  5783. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5784. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5786. break 2
  5787. fi
  5788. done
  5789. done
  5790. IFS=$as_save_IFS
  5791. fi
  5792. fi
  5793. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5794. if test -n "$ac_ct_NMEDIT"; then
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5796. $as_echo "$ac_ct_NMEDIT" >&6; }
  5797. else
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5799. $as_echo "no" >&6; }
  5800. fi
  5801. if test "x$ac_ct_NMEDIT" = x; then
  5802. NMEDIT=":"
  5803. else
  5804. case $cross_compiling:$ac_tool_warned in
  5805. yes:)
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5807. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5808. ac_tool_warned=yes ;;
  5809. esac
  5810. NMEDIT=$ac_ct_NMEDIT
  5811. fi
  5812. else
  5813. NMEDIT="$ac_cv_prog_NMEDIT"
  5814. fi
  5815. if test -n "$ac_tool_prefix"; then
  5816. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5817. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5819. $as_echo_n "checking for $ac_word... " >&6; }
  5820. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5821. $as_echo_n "(cached) " >&6
  5822. else
  5823. if test -n "$LIPO"; then
  5824. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5825. else
  5826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5827. for as_dir in $PATH
  5828. do
  5829. IFS=$as_save_IFS
  5830. test -z "$as_dir" && as_dir=.
  5831. for ac_exec_ext in '' $ac_executable_extensions; do
  5832. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5833. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5835. break 2
  5836. fi
  5837. done
  5838. done
  5839. IFS=$as_save_IFS
  5840. fi
  5841. fi
  5842. LIPO=$ac_cv_prog_LIPO
  5843. if test -n "$LIPO"; then
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5845. $as_echo "$LIPO" >&6; }
  5846. else
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5848. $as_echo "no" >&6; }
  5849. fi
  5850. fi
  5851. if test -z "$ac_cv_prog_LIPO"; then
  5852. ac_ct_LIPO=$LIPO
  5853. # Extract the first word of "lipo", so it can be a program name with args.
  5854. set dummy lipo; ac_word=$2
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5856. $as_echo_n "checking for $ac_word... " >&6; }
  5857. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5858. $as_echo_n "(cached) " >&6
  5859. else
  5860. if test -n "$ac_ct_LIPO"; then
  5861. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5862. else
  5863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5864. for as_dir in $PATH
  5865. do
  5866. IFS=$as_save_IFS
  5867. test -z "$as_dir" && as_dir=.
  5868. for ac_exec_ext in '' $ac_executable_extensions; do
  5869. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5870. ac_cv_prog_ac_ct_LIPO="lipo"
  5871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5872. break 2
  5873. fi
  5874. done
  5875. done
  5876. IFS=$as_save_IFS
  5877. fi
  5878. fi
  5879. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5880. if test -n "$ac_ct_LIPO"; then
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5882. $as_echo "$ac_ct_LIPO" >&6; }
  5883. else
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5885. $as_echo "no" >&6; }
  5886. fi
  5887. if test "x$ac_ct_LIPO" = x; then
  5888. LIPO=":"
  5889. else
  5890. case $cross_compiling:$ac_tool_warned in
  5891. yes:)
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5893. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5894. ac_tool_warned=yes ;;
  5895. esac
  5896. LIPO=$ac_ct_LIPO
  5897. fi
  5898. else
  5899. LIPO="$ac_cv_prog_LIPO"
  5900. fi
  5901. if test -n "$ac_tool_prefix"; then
  5902. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5903. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5905. $as_echo_n "checking for $ac_word... " >&6; }
  5906. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. if test -n "$OTOOL"; then
  5910. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5911. else
  5912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5913. for as_dir in $PATH
  5914. do
  5915. IFS=$as_save_IFS
  5916. test -z "$as_dir" && as_dir=.
  5917. for ac_exec_ext in '' $ac_executable_extensions; do
  5918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5919. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5921. break 2
  5922. fi
  5923. done
  5924. done
  5925. IFS=$as_save_IFS
  5926. fi
  5927. fi
  5928. OTOOL=$ac_cv_prog_OTOOL
  5929. if test -n "$OTOOL"; then
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5931. $as_echo "$OTOOL" >&6; }
  5932. else
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5934. $as_echo "no" >&6; }
  5935. fi
  5936. fi
  5937. if test -z "$ac_cv_prog_OTOOL"; then
  5938. ac_ct_OTOOL=$OTOOL
  5939. # Extract the first word of "otool", so it can be a program name with args.
  5940. set dummy otool; ac_word=$2
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5942. $as_echo_n "checking for $ac_word... " >&6; }
  5943. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5944. $as_echo_n "(cached) " >&6
  5945. else
  5946. if test -n "$ac_ct_OTOOL"; then
  5947. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5948. else
  5949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5950. for as_dir in $PATH
  5951. do
  5952. IFS=$as_save_IFS
  5953. test -z "$as_dir" && as_dir=.
  5954. for ac_exec_ext in '' $ac_executable_extensions; do
  5955. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5956. ac_cv_prog_ac_ct_OTOOL="otool"
  5957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5958. break 2
  5959. fi
  5960. done
  5961. done
  5962. IFS=$as_save_IFS
  5963. fi
  5964. fi
  5965. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5966. if test -n "$ac_ct_OTOOL"; then
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5968. $as_echo "$ac_ct_OTOOL" >&6; }
  5969. else
  5970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5971. $as_echo "no" >&6; }
  5972. fi
  5973. if test "x$ac_ct_OTOOL" = x; then
  5974. OTOOL=":"
  5975. else
  5976. case $cross_compiling:$ac_tool_warned in
  5977. yes:)
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5979. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5980. ac_tool_warned=yes ;;
  5981. esac
  5982. OTOOL=$ac_ct_OTOOL
  5983. fi
  5984. else
  5985. OTOOL="$ac_cv_prog_OTOOL"
  5986. fi
  5987. if test -n "$ac_tool_prefix"; then
  5988. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5989. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5991. $as_echo_n "checking for $ac_word... " >&6; }
  5992. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  5993. $as_echo_n "(cached) " >&6
  5994. else
  5995. if test -n "$OTOOL64"; then
  5996. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5997. else
  5998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5999. for as_dir in $PATH
  6000. do
  6001. IFS=$as_save_IFS
  6002. test -z "$as_dir" && as_dir=.
  6003. for ac_exec_ext in '' $ac_executable_extensions; do
  6004. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6005. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6007. break 2
  6008. fi
  6009. done
  6010. done
  6011. IFS=$as_save_IFS
  6012. fi
  6013. fi
  6014. OTOOL64=$ac_cv_prog_OTOOL64
  6015. if test -n "$OTOOL64"; then
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6017. $as_echo "$OTOOL64" >&6; }
  6018. else
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6020. $as_echo "no" >&6; }
  6021. fi
  6022. fi
  6023. if test -z "$ac_cv_prog_OTOOL64"; then
  6024. ac_ct_OTOOL64=$OTOOL64
  6025. # Extract the first word of "otool64", so it can be a program name with args.
  6026. set dummy otool64; ac_word=$2
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6028. $as_echo_n "checking for $ac_word... " >&6; }
  6029. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. if test -n "$ac_ct_OTOOL64"; then
  6033. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6034. else
  6035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6036. for as_dir in $PATH
  6037. do
  6038. IFS=$as_save_IFS
  6039. test -z "$as_dir" && as_dir=.
  6040. for ac_exec_ext in '' $ac_executable_extensions; do
  6041. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6042. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6043. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6044. break 2
  6045. fi
  6046. done
  6047. done
  6048. IFS=$as_save_IFS
  6049. fi
  6050. fi
  6051. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6052. if test -n "$ac_ct_OTOOL64"; then
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6054. $as_echo "$ac_ct_OTOOL64" >&6; }
  6055. else
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6057. $as_echo "no" >&6; }
  6058. fi
  6059. if test "x$ac_ct_OTOOL64" = x; then
  6060. OTOOL64=":"
  6061. else
  6062. case $cross_compiling:$ac_tool_warned in
  6063. yes:)
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6065. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6066. ac_tool_warned=yes ;;
  6067. esac
  6068. OTOOL64=$ac_ct_OTOOL64
  6069. fi
  6070. else
  6071. OTOOL64="$ac_cv_prog_OTOOL64"
  6072. fi
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6074. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6075. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6076. $as_echo_n "(cached) " >&6
  6077. else
  6078. lt_cv_apple_cc_single_mod=no
  6079. if test -z "${LT_MULTI_MODULE}"; then
  6080. # By default we will add the -single_module flag. You can override
  6081. # by either setting the environment variable LT_MULTI_MODULE
  6082. # non-empty at configure time, or by adding -multi_module to the
  6083. # link flags.
  6084. rm -rf libconftest.dylib*
  6085. echo "int foo(void){return 1;}" > conftest.c
  6086. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6087. -dynamiclib -Wl,-single_module conftest.c" >&5
  6088. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6089. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6090. _lt_result=$?
  6091. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6092. lt_cv_apple_cc_single_mod=yes
  6093. else
  6094. cat conftest.err >&5
  6095. fi
  6096. rm -rf libconftest.dylib*
  6097. rm -f conftest.*
  6098. fi
  6099. fi
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6101. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6103. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6104. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6105. $as_echo_n "(cached) " >&6
  6106. else
  6107. lt_cv_ld_exported_symbols_list=no
  6108. save_LDFLAGS=$LDFLAGS
  6109. echo "_main" > conftest.sym
  6110. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6112. /* end confdefs.h. */
  6113. int
  6114. main ()
  6115. {
  6116. ;
  6117. return 0;
  6118. }
  6119. _ACEOF
  6120. if ac_fn_c_try_link "$LINENO"; then :
  6121. lt_cv_ld_exported_symbols_list=yes
  6122. else
  6123. lt_cv_ld_exported_symbols_list=no
  6124. fi
  6125. rm -f core conftest.err conftest.$ac_objext \
  6126. conftest$ac_exeext conftest.$ac_ext
  6127. LDFLAGS="$save_LDFLAGS"
  6128. fi
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6130. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6131. case $host_os in
  6132. rhapsody* | darwin1.[012])
  6133. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6134. darwin1.*)
  6135. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6136. darwin*) # darwin 5.x on
  6137. # if running on 10.5 or later, the deployment target defaults
  6138. # to the OS version, if on x86, and 10.4, the deployment
  6139. # target defaults to 10.4. Don't you love it?
  6140. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6141. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6142. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6143. 10.[012]*)
  6144. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6145. 10.*)
  6146. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6147. esac
  6148. ;;
  6149. esac
  6150. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6151. _lt_dar_single_mod='$single_module'
  6152. fi
  6153. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6154. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6155. else
  6156. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6157. fi
  6158. if test "$DSYMUTIL" != ":"; then
  6159. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6160. else
  6161. _lt_dsymutil=
  6162. fi
  6163. ;;
  6164. esac
  6165. ac_ext=c
  6166. ac_cpp='$CPP $CPPFLAGS'
  6167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6171. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6172. # On Suns, sometimes $CPP names a directory.
  6173. if test -n "$CPP" && test -d "$CPP"; then
  6174. CPP=
  6175. fi
  6176. if test -z "$CPP"; then
  6177. if test "${ac_cv_prog_CPP+set}" = set; then :
  6178. $as_echo_n "(cached) " >&6
  6179. else
  6180. # Double quotes because CPP needs to be expanded
  6181. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6182. do
  6183. ac_preproc_ok=false
  6184. for ac_c_preproc_warn_flag in '' yes
  6185. do
  6186. # Use a header file that comes with gcc, so configuring glibc
  6187. # with a fresh cross-compiler works.
  6188. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6189. # <limits.h> exists even on freestanding compilers.
  6190. # On the NeXT, cc -E runs the code through the compiler's parser,
  6191. # not just through cpp. "Syntax error" is here to catch this case.
  6192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6193. /* end confdefs.h. */
  6194. #ifdef __STDC__
  6195. # include <limits.h>
  6196. #else
  6197. # include <assert.h>
  6198. #endif
  6199. Syntax error
  6200. _ACEOF
  6201. if ac_fn_c_try_cpp "$LINENO"; then :
  6202. else
  6203. # Broken: fails on valid input.
  6204. continue
  6205. fi
  6206. rm -f conftest.err conftest.$ac_ext
  6207. # OK, works on sane cases. Now check whether nonexistent headers
  6208. # can be detected and how.
  6209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6210. /* end confdefs.h. */
  6211. #include <ac_nonexistent.h>
  6212. _ACEOF
  6213. if ac_fn_c_try_cpp "$LINENO"; then :
  6214. # Broken: success on invalid input.
  6215. continue
  6216. else
  6217. # Passes both tests.
  6218. ac_preproc_ok=:
  6219. break
  6220. fi
  6221. rm -f conftest.err conftest.$ac_ext
  6222. done
  6223. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6224. rm -f conftest.err conftest.$ac_ext
  6225. if $ac_preproc_ok; then :
  6226. break
  6227. fi
  6228. done
  6229. ac_cv_prog_CPP=$CPP
  6230. fi
  6231. CPP=$ac_cv_prog_CPP
  6232. else
  6233. ac_cv_prog_CPP=$CPP
  6234. fi
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6236. $as_echo "$CPP" >&6; }
  6237. ac_preproc_ok=false
  6238. for ac_c_preproc_warn_flag in '' yes
  6239. do
  6240. # Use a header file that comes with gcc, so configuring glibc
  6241. # with a fresh cross-compiler works.
  6242. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6243. # <limits.h> exists even on freestanding compilers.
  6244. # On the NeXT, cc -E runs the code through the compiler's parser,
  6245. # not just through cpp. "Syntax error" is here to catch this case.
  6246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6247. /* end confdefs.h. */
  6248. #ifdef __STDC__
  6249. # include <limits.h>
  6250. #else
  6251. # include <assert.h>
  6252. #endif
  6253. Syntax error
  6254. _ACEOF
  6255. if ac_fn_c_try_cpp "$LINENO"; then :
  6256. else
  6257. # Broken: fails on valid input.
  6258. continue
  6259. fi
  6260. rm -f conftest.err conftest.$ac_ext
  6261. # OK, works on sane cases. Now check whether nonexistent headers
  6262. # can be detected and how.
  6263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6264. /* end confdefs.h. */
  6265. #include <ac_nonexistent.h>
  6266. _ACEOF
  6267. if ac_fn_c_try_cpp "$LINENO"; then :
  6268. # Broken: success on invalid input.
  6269. continue
  6270. else
  6271. # Passes both tests.
  6272. ac_preproc_ok=:
  6273. break
  6274. fi
  6275. rm -f conftest.err conftest.$ac_ext
  6276. done
  6277. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6278. rm -f conftest.err conftest.$ac_ext
  6279. if $ac_preproc_ok; then :
  6280. else
  6281. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6282. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6283. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6284. See \`config.log' for more details." "$LINENO" 5; }
  6285. fi
  6286. ac_ext=c
  6287. ac_cpp='$CPP $CPPFLAGS'
  6288. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6289. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6292. $as_echo_n "checking for ANSI C header files... " >&6; }
  6293. if test "${ac_cv_header_stdc+set}" = set; then :
  6294. $as_echo_n "(cached) " >&6
  6295. else
  6296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6297. /* end confdefs.h. */
  6298. #include <stdlib.h>
  6299. #include <stdarg.h>
  6300. #include <string.h>
  6301. #include <float.h>
  6302. int
  6303. main ()
  6304. {
  6305. ;
  6306. return 0;
  6307. }
  6308. _ACEOF
  6309. if ac_fn_c_try_compile "$LINENO"; then :
  6310. ac_cv_header_stdc=yes
  6311. else
  6312. ac_cv_header_stdc=no
  6313. fi
  6314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6315. if test $ac_cv_header_stdc = yes; then
  6316. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6318. /* end confdefs.h. */
  6319. #include <string.h>
  6320. _ACEOF
  6321. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6322. $EGREP "memchr" >/dev/null 2>&1; then :
  6323. else
  6324. ac_cv_header_stdc=no
  6325. fi
  6326. rm -f conftest*
  6327. fi
  6328. if test $ac_cv_header_stdc = yes; then
  6329. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6331. /* end confdefs.h. */
  6332. #include <stdlib.h>
  6333. _ACEOF
  6334. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6335. $EGREP "free" >/dev/null 2>&1; then :
  6336. else
  6337. ac_cv_header_stdc=no
  6338. fi
  6339. rm -f conftest*
  6340. fi
  6341. if test $ac_cv_header_stdc = yes; then
  6342. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6343. if test "$cross_compiling" = yes; then :
  6344. :
  6345. else
  6346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6347. /* end confdefs.h. */
  6348. #include <ctype.h>
  6349. #include <stdlib.h>
  6350. #if ((' ' & 0x0FF) == 0x020)
  6351. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6352. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6353. #else
  6354. # define ISLOWER(c) \
  6355. (('a' <= (c) && (c) <= 'i') \
  6356. || ('j' <= (c) && (c) <= 'r') \
  6357. || ('s' <= (c) && (c) <= 'z'))
  6358. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6359. #endif
  6360. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6361. int
  6362. main ()
  6363. {
  6364. int i;
  6365. for (i = 0; i < 256; i++)
  6366. if (XOR (islower (i), ISLOWER (i))
  6367. || toupper (i) != TOUPPER (i))
  6368. return 2;
  6369. return 0;
  6370. }
  6371. _ACEOF
  6372. if ac_fn_c_try_run "$LINENO"; then :
  6373. else
  6374. ac_cv_header_stdc=no
  6375. fi
  6376. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6377. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6378. fi
  6379. fi
  6380. fi
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6382. $as_echo "$ac_cv_header_stdc" >&6; }
  6383. if test $ac_cv_header_stdc = yes; then
  6384. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6385. fi
  6386. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6387. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6388. inttypes.h stdint.h unistd.h
  6389. do :
  6390. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6391. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6392. "
  6393. eval as_val=\$$as_ac_Header
  6394. if test "x$as_val" = x""yes; then :
  6395. cat >>confdefs.h <<_ACEOF
  6396. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6397. _ACEOF
  6398. fi
  6399. done
  6400. for ac_header in dlfcn.h
  6401. do :
  6402. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6403. "
  6404. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6405. cat >>confdefs.h <<_ACEOF
  6406. #define HAVE_DLFCN_H 1
  6407. _ACEOF
  6408. fi
  6409. done
  6410. ac_ext=cpp
  6411. ac_cpp='$CXXCPP $CPPFLAGS'
  6412. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6413. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6414. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6415. if test -z "$CXX"; then
  6416. if test -n "$CCC"; then
  6417. CXX=$CCC
  6418. else
  6419. if test -n "$ac_tool_prefix"; then
  6420. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6421. do
  6422. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6423. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6425. $as_echo_n "checking for $ac_word... " >&6; }
  6426. if test "${ac_cv_prog_CXX+set}" = set; then :
  6427. $as_echo_n "(cached) " >&6
  6428. else
  6429. if test -n "$CXX"; then
  6430. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6431. else
  6432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6433. for as_dir in $PATH
  6434. do
  6435. IFS=$as_save_IFS
  6436. test -z "$as_dir" && as_dir=.
  6437. for ac_exec_ext in '' $ac_executable_extensions; do
  6438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6439. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6441. break 2
  6442. fi
  6443. done
  6444. done
  6445. IFS=$as_save_IFS
  6446. fi
  6447. fi
  6448. CXX=$ac_cv_prog_CXX
  6449. if test -n "$CXX"; then
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6451. $as_echo "$CXX" >&6; }
  6452. else
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6454. $as_echo "no" >&6; }
  6455. fi
  6456. test -n "$CXX" && break
  6457. done
  6458. fi
  6459. if test -z "$CXX"; then
  6460. ac_ct_CXX=$CXX
  6461. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6462. do
  6463. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6464. set dummy $ac_prog; ac_word=$2
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6466. $as_echo_n "checking for $ac_word... " >&6; }
  6467. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6468. $as_echo_n "(cached) " >&6
  6469. else
  6470. if test -n "$ac_ct_CXX"; then
  6471. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6472. else
  6473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6474. for as_dir in $PATH
  6475. do
  6476. IFS=$as_save_IFS
  6477. test -z "$as_dir" && as_dir=.
  6478. for ac_exec_ext in '' $ac_executable_extensions; do
  6479. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6480. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6482. break 2
  6483. fi
  6484. done
  6485. done
  6486. IFS=$as_save_IFS
  6487. fi
  6488. fi
  6489. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6490. if test -n "$ac_ct_CXX"; then
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6492. $as_echo "$ac_ct_CXX" >&6; }
  6493. else
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6495. $as_echo "no" >&6; }
  6496. fi
  6497. test -n "$ac_ct_CXX" && break
  6498. done
  6499. if test "x$ac_ct_CXX" = x; then
  6500. CXX="g++"
  6501. else
  6502. case $cross_compiling:$ac_tool_warned in
  6503. yes:)
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6505. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6506. ac_tool_warned=yes ;;
  6507. esac
  6508. CXX=$ac_ct_CXX
  6509. fi
  6510. fi
  6511. fi
  6512. fi
  6513. # Provide some information about the compiler.
  6514. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6515. set X $ac_compile
  6516. ac_compiler=$2
  6517. for ac_option in --version -v -V -qversion; do
  6518. { { ac_try="$ac_compiler $ac_option >&5"
  6519. case "(($ac_try" in
  6520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6521. *) ac_try_echo=$ac_try;;
  6522. esac
  6523. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6524. $as_echo "$ac_try_echo"; } >&5
  6525. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6526. ac_status=$?
  6527. if test -s conftest.err; then
  6528. sed '10a\
  6529. ... rest of stderr output deleted ...
  6530. 10q' conftest.err >conftest.er1
  6531. cat conftest.er1 >&5
  6532. fi
  6533. rm -f conftest.er1 conftest.err
  6534. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6535. test $ac_status = 0; }
  6536. done
  6537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6538. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6539. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6540. $as_echo_n "(cached) " >&6
  6541. else
  6542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6543. /* end confdefs.h. */
  6544. int
  6545. main ()
  6546. {
  6547. #ifndef __GNUC__
  6548. choke me
  6549. #endif
  6550. ;
  6551. return 0;
  6552. }
  6553. _ACEOF
  6554. if ac_fn_cxx_try_compile "$LINENO"; then :
  6555. ac_compiler_gnu=yes
  6556. else
  6557. ac_compiler_gnu=no
  6558. fi
  6559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6560. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6561. fi
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6563. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6564. if test $ac_compiler_gnu = yes; then
  6565. GXX=yes
  6566. else
  6567. GXX=
  6568. fi
  6569. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6570. ac_save_CXXFLAGS=$CXXFLAGS
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6572. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6573. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6574. $as_echo_n "(cached) " >&6
  6575. else
  6576. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6577. ac_cxx_werror_flag=yes
  6578. ac_cv_prog_cxx_g=no
  6579. CXXFLAGS="-g"
  6580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6581. /* end confdefs.h. */
  6582. int
  6583. main ()
  6584. {
  6585. ;
  6586. return 0;
  6587. }
  6588. _ACEOF
  6589. if ac_fn_cxx_try_compile "$LINENO"; then :
  6590. ac_cv_prog_cxx_g=yes
  6591. else
  6592. CXXFLAGS=""
  6593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6594. /* end confdefs.h. */
  6595. int
  6596. main ()
  6597. {
  6598. ;
  6599. return 0;
  6600. }
  6601. _ACEOF
  6602. if ac_fn_cxx_try_compile "$LINENO"; then :
  6603. else
  6604. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6605. CXXFLAGS="-g"
  6606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6607. /* end confdefs.h. */
  6608. int
  6609. main ()
  6610. {
  6611. ;
  6612. return 0;
  6613. }
  6614. _ACEOF
  6615. if ac_fn_cxx_try_compile "$LINENO"; then :
  6616. ac_cv_prog_cxx_g=yes
  6617. fi
  6618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6619. fi
  6620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6621. fi
  6622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6623. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6624. fi
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6626. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6627. if test "$ac_test_CXXFLAGS" = set; then
  6628. CXXFLAGS=$ac_save_CXXFLAGS
  6629. elif test $ac_cv_prog_cxx_g = yes; then
  6630. if test "$GXX" = yes; then
  6631. CXXFLAGS="-g -O2"
  6632. else
  6633. CXXFLAGS="-g"
  6634. fi
  6635. else
  6636. if test "$GXX" = yes; then
  6637. CXXFLAGS="-O2"
  6638. else
  6639. CXXFLAGS=
  6640. fi
  6641. fi
  6642. ac_ext=c
  6643. ac_cpp='$CPP $CPPFLAGS'
  6644. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6645. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6646. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6647. depcc="$CXX" am_compiler_list=
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6649. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6650. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  6651. $as_echo_n "(cached) " >&6
  6652. else
  6653. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6654. # We make a subdir and do the tests there. Otherwise we can end up
  6655. # making bogus files that we don't know about and never remove. For
  6656. # instance it was reported that on HP-UX the gcc test will end up
  6657. # making a dummy file named `D' -- because `-MD' means `put the output
  6658. # in D'.
  6659. mkdir conftest.dir
  6660. # Copy depcomp to subdir because otherwise we won't find it if we're
  6661. # using a relative directory.
  6662. cp "$am_depcomp" conftest.dir
  6663. cd conftest.dir
  6664. # We will build objects and dependencies in a subdirectory because
  6665. # it helps to detect inapplicable dependency modes. For instance
  6666. # both Tru64's cc and ICC support -MD to output dependencies as a
  6667. # side effect of compilation, but ICC will put the dependencies in
  6668. # the current directory while Tru64 will put them in the object
  6669. # directory.
  6670. mkdir sub
  6671. am_cv_CXX_dependencies_compiler_type=none
  6672. if test "$am_compiler_list" = ""; then
  6673. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6674. fi
  6675. am__universal=false
  6676. case " $depcc " in #(
  6677. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6678. esac
  6679. for depmode in $am_compiler_list; do
  6680. # Setup a source with many dependencies, because some compilers
  6681. # like to wrap large dependency lists on column 80 (with \), and
  6682. # we should not choose a depcomp mode which is confused by this.
  6683. #
  6684. # We need to recreate these files for each test, as the compiler may
  6685. # overwrite some of them when testing with obscure command lines.
  6686. # This happens at least with the AIX C compiler.
  6687. : > sub/conftest.c
  6688. for i in 1 2 3 4 5 6; do
  6689. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6690. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6691. # Solaris 8's {/usr,}/bin/sh.
  6692. touch sub/conftst$i.h
  6693. done
  6694. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6695. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6696. # mode. It turns out that the SunPro C++ compiler does not properly
  6697. # handle `-M -o', and we need to detect this. Also, some Intel
  6698. # versions had trouble with output in subdirs
  6699. am__obj=sub/conftest.${OBJEXT-o}
  6700. am__minus_obj="-o $am__obj"
  6701. case $depmode in
  6702. gcc)
  6703. # This depmode causes a compiler race in universal mode.
  6704. test "$am__universal" = false || continue
  6705. ;;
  6706. nosideeffect)
  6707. # after this tag, mechanisms are not by side-effect, so they'll
  6708. # only be used when explicitly requested
  6709. if test "x$enable_dependency_tracking" = xyes; then
  6710. continue
  6711. else
  6712. break
  6713. fi
  6714. ;;
  6715. msvisualcpp | msvcmsys)
  6716. # This compiler won't grok `-c -o', but also, the minuso test has
  6717. # not run yet. These depmodes are late enough in the game, and
  6718. # so weak that their functioning should not be impacted.
  6719. am__obj=conftest.${OBJEXT-o}
  6720. am__minus_obj=
  6721. ;;
  6722. none) break ;;
  6723. esac
  6724. if depmode=$depmode \
  6725. source=sub/conftest.c object=$am__obj \
  6726. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6727. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6728. >/dev/null 2>conftest.err &&
  6729. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6730. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6731. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6732. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6733. # icc doesn't choke on unknown options, it will just issue warnings
  6734. # or remarks (even with -Werror). So we grep stderr for any message
  6735. # that says an option was ignored or not supported.
  6736. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6737. # icc: Command line warning: ignoring option '-M'; no argument required
  6738. # The diagnosis changed in icc 8.0:
  6739. # icc: Command line remark: option '-MP' not supported
  6740. if (grep 'ignoring option' conftest.err ||
  6741. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6742. am_cv_CXX_dependencies_compiler_type=$depmode
  6743. break
  6744. fi
  6745. fi
  6746. done
  6747. cd ..
  6748. rm -rf conftest.dir
  6749. else
  6750. am_cv_CXX_dependencies_compiler_type=none
  6751. fi
  6752. fi
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6754. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6755. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6756. if
  6757. test "x$enable_dependency_tracking" != xno \
  6758. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6759. am__fastdepCXX_TRUE=
  6760. am__fastdepCXX_FALSE='#'
  6761. else
  6762. am__fastdepCXX_TRUE='#'
  6763. am__fastdepCXX_FALSE=
  6764. fi
  6765. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6766. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6767. (test "X$CXX" != "Xg++"))) ; then
  6768. ac_ext=cpp
  6769. ac_cpp='$CXXCPP $CPPFLAGS'
  6770. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6771. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6772. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6774. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6775. if test -z "$CXXCPP"; then
  6776. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6777. $as_echo_n "(cached) " >&6
  6778. else
  6779. # Double quotes because CXXCPP needs to be expanded
  6780. for CXXCPP in "$CXX -E" "/lib/cpp"
  6781. do
  6782. ac_preproc_ok=false
  6783. for ac_cxx_preproc_warn_flag in '' yes
  6784. do
  6785. # Use a header file that comes with gcc, so configuring glibc
  6786. # with a fresh cross-compiler works.
  6787. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6788. # <limits.h> exists even on freestanding compilers.
  6789. # On the NeXT, cc -E runs the code through the compiler's parser,
  6790. # not just through cpp. "Syntax error" is here to catch this case.
  6791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6792. /* end confdefs.h. */
  6793. #ifdef __STDC__
  6794. # include <limits.h>
  6795. #else
  6796. # include <assert.h>
  6797. #endif
  6798. Syntax error
  6799. _ACEOF
  6800. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6801. else
  6802. # Broken: fails on valid input.
  6803. continue
  6804. fi
  6805. rm -f conftest.err conftest.$ac_ext
  6806. # OK, works on sane cases. Now check whether nonexistent headers
  6807. # can be detected and how.
  6808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6809. /* end confdefs.h. */
  6810. #include <ac_nonexistent.h>
  6811. _ACEOF
  6812. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6813. # Broken: success on invalid input.
  6814. continue
  6815. else
  6816. # Passes both tests.
  6817. ac_preproc_ok=:
  6818. break
  6819. fi
  6820. rm -f conftest.err conftest.$ac_ext
  6821. done
  6822. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6823. rm -f conftest.err conftest.$ac_ext
  6824. if $ac_preproc_ok; then :
  6825. break
  6826. fi
  6827. done
  6828. ac_cv_prog_CXXCPP=$CXXCPP
  6829. fi
  6830. CXXCPP=$ac_cv_prog_CXXCPP
  6831. else
  6832. ac_cv_prog_CXXCPP=$CXXCPP
  6833. fi
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  6835. $as_echo "$CXXCPP" >&6; }
  6836. ac_preproc_ok=false
  6837. for ac_cxx_preproc_warn_flag in '' yes
  6838. do
  6839. # Use a header file that comes with gcc, so configuring glibc
  6840. # with a fresh cross-compiler works.
  6841. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6842. # <limits.h> exists even on freestanding compilers.
  6843. # On the NeXT, cc -E runs the code through the compiler's parser,
  6844. # not just through cpp. "Syntax error" is here to catch this case.
  6845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6846. /* end confdefs.h. */
  6847. #ifdef __STDC__
  6848. # include <limits.h>
  6849. #else
  6850. # include <assert.h>
  6851. #endif
  6852. Syntax error
  6853. _ACEOF
  6854. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6855. else
  6856. # Broken: fails on valid input.
  6857. continue
  6858. fi
  6859. rm -f conftest.err conftest.$ac_ext
  6860. # OK, works on sane cases. Now check whether nonexistent headers
  6861. # can be detected and how.
  6862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6863. /* end confdefs.h. */
  6864. #include <ac_nonexistent.h>
  6865. _ACEOF
  6866. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6867. # Broken: success on invalid input.
  6868. continue
  6869. else
  6870. # Passes both tests.
  6871. ac_preproc_ok=:
  6872. break
  6873. fi
  6874. rm -f conftest.err conftest.$ac_ext
  6875. done
  6876. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6877. rm -f conftest.err conftest.$ac_ext
  6878. if $ac_preproc_ok; then :
  6879. else
  6880. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6881. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6882. _lt_caught_CXX_error=yes; }
  6883. fi
  6884. ac_ext=c
  6885. ac_cpp='$CPP $CPPFLAGS'
  6886. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6887. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6888. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6889. else
  6890. _lt_caught_CXX_error=yes
  6891. fi
  6892. # Set options
  6893. enable_dlopen=no
  6894. enable_win32_dll=no
  6895. # Check whether --enable-shared was given.
  6896. if test "${enable_shared+set}" = set; then :
  6897. enableval=$enable_shared; p=${PACKAGE-default}
  6898. case $enableval in
  6899. yes) enable_shared=yes ;;
  6900. no) enable_shared=no ;;
  6901. *)
  6902. enable_shared=no
  6903. # Look at the argument we got. We use all the common list separators.
  6904. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6905. for pkg in $enableval; do
  6906. IFS="$lt_save_ifs"
  6907. if test "X$pkg" = "X$p"; then
  6908. enable_shared=yes
  6909. fi
  6910. done
  6911. IFS="$lt_save_ifs"
  6912. ;;
  6913. esac
  6914. else
  6915. enable_shared=yes
  6916. fi
  6917. # Check whether --enable-static was given.
  6918. if test "${enable_static+set}" = set; then :
  6919. enableval=$enable_static; p=${PACKAGE-default}
  6920. case $enableval in
  6921. yes) enable_static=yes ;;
  6922. no) enable_static=no ;;
  6923. *)
  6924. enable_static=no
  6925. # Look at the argument we got. We use all the common list separators.
  6926. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6927. for pkg in $enableval; do
  6928. IFS="$lt_save_ifs"
  6929. if test "X$pkg" = "X$p"; then
  6930. enable_static=yes
  6931. fi
  6932. done
  6933. IFS="$lt_save_ifs"
  6934. ;;
  6935. esac
  6936. else
  6937. enable_static=yes
  6938. fi
  6939. # Check whether --with-pic was given.
  6940. if test "${with_pic+set}" = set; then :
  6941. withval=$with_pic; pic_mode="$withval"
  6942. else
  6943. pic_mode=default
  6944. fi
  6945. test -z "$pic_mode" && pic_mode=default
  6946. # Check whether --enable-fast-install was given.
  6947. if test "${enable_fast_install+set}" = set; then :
  6948. enableval=$enable_fast_install; p=${PACKAGE-default}
  6949. case $enableval in
  6950. yes) enable_fast_install=yes ;;
  6951. no) enable_fast_install=no ;;
  6952. *)
  6953. enable_fast_install=no
  6954. # Look at the argument we got. We use all the common list separators.
  6955. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6956. for pkg in $enableval; do
  6957. IFS="$lt_save_ifs"
  6958. if test "X$pkg" = "X$p"; then
  6959. enable_fast_install=yes
  6960. fi
  6961. done
  6962. IFS="$lt_save_ifs"
  6963. ;;
  6964. esac
  6965. else
  6966. enable_fast_install=yes
  6967. fi
  6968. # This can be used to rebuild libtool when needed
  6969. LIBTOOL_DEPS="$ltmain"
  6970. # Always use our own libtool.
  6971. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6972. test -z "$LN_S" && LN_S="ln -s"
  6973. if test -n "${ZSH_VERSION+set}" ; then
  6974. setopt NO_GLOB_SUBST
  6975. fi
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6977. $as_echo_n "checking for objdir... " >&6; }
  6978. if test "${lt_cv_objdir+set}" = set; then :
  6979. $as_echo_n "(cached) " >&6
  6980. else
  6981. rm -f .libs 2>/dev/null
  6982. mkdir .libs 2>/dev/null
  6983. if test -d .libs; then
  6984. lt_cv_objdir=.libs
  6985. else
  6986. # MS-DOS does not allow filenames that begin with a dot.
  6987. lt_cv_objdir=_libs
  6988. fi
  6989. rmdir .libs 2>/dev/null
  6990. fi
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6992. $as_echo "$lt_cv_objdir" >&6; }
  6993. objdir=$lt_cv_objdir
  6994. cat >>confdefs.h <<_ACEOF
  6995. #define LT_OBJDIR "$lt_cv_objdir/"
  6996. _ACEOF
  6997. case $host_os in
  6998. aix3*)
  6999. # AIX sometimes has problems with the GCC collect2 program. For some
  7000. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7001. # vanish in a puff of smoke.
  7002. if test "X${COLLECT_NAMES+set}" != Xset; then
  7003. COLLECT_NAMES=
  7004. export COLLECT_NAMES
  7005. fi
  7006. ;;
  7007. esac
  7008. # Sed substitution that helps us do robust quoting. It backslashifies
  7009. # metacharacters that are still active within double-quoted strings.
  7010. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7011. # Same as above, but do not quote variable references.
  7012. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7013. # Sed substitution to delay expansion of an escaped shell variable in a
  7014. # double_quote_subst'ed string.
  7015. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7016. # Sed substitution to delay expansion of an escaped single quote.
  7017. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7018. # Sed substitution to avoid accidental globbing in evaled expressions
  7019. no_glob_subst='s/\*/\\\*/g'
  7020. # Global variables:
  7021. ofile=libtool
  7022. can_build_shared=yes
  7023. # All known linkers require a `.a' archive for static linking (except MSVC,
  7024. # which needs '.lib').
  7025. libext=a
  7026. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7027. old_CC="$CC"
  7028. old_CFLAGS="$CFLAGS"
  7029. # Set sane defaults for various variables
  7030. test -z "$CC" && CC=cc
  7031. test -z "$LTCC" && LTCC=$CC
  7032. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7033. test -z "$LD" && LD=ld
  7034. test -z "$ac_objext" && ac_objext=o
  7035. for cc_temp in $compiler""; do
  7036. case $cc_temp in
  7037. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7038. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7039. \-*) ;;
  7040. *) break;;
  7041. esac
  7042. done
  7043. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7044. # Only perform the check for file, if the check method requires it
  7045. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7046. case $deplibs_check_method in
  7047. file_magic*)
  7048. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7050. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7051. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7052. $as_echo_n "(cached) " >&6
  7053. else
  7054. case $MAGIC_CMD in
  7055. [\\/*] | ?:[\\/]*)
  7056. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7057. ;;
  7058. *)
  7059. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7060. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7061. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7062. for ac_dir in $ac_dummy; do
  7063. IFS="$lt_save_ifs"
  7064. test -z "$ac_dir" && ac_dir=.
  7065. if test -f $ac_dir/${ac_tool_prefix}file; then
  7066. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7067. if test -n "$file_magic_test_file"; then
  7068. case $deplibs_check_method in
  7069. "file_magic "*)
  7070. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7071. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7072. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7073. $EGREP "$file_magic_regex" > /dev/null; then
  7074. :
  7075. else
  7076. cat <<_LT_EOF 1>&2
  7077. *** Warning: the command libtool uses to detect shared libraries,
  7078. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7079. *** The result is that libtool may fail to recognize shared libraries
  7080. *** as such. This will affect the creation of libtool libraries that
  7081. *** depend on shared libraries, but programs linked with such libtool
  7082. *** libraries will work regardless of this problem. Nevertheless, you
  7083. *** may want to report the problem to your system manager and/or to
  7084. *** bug-libtool@gnu.org
  7085. _LT_EOF
  7086. fi ;;
  7087. esac
  7088. fi
  7089. break
  7090. fi
  7091. done
  7092. IFS="$lt_save_ifs"
  7093. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7094. ;;
  7095. esac
  7096. fi
  7097. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7098. if test -n "$MAGIC_CMD"; then
  7099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7100. $as_echo "$MAGIC_CMD" >&6; }
  7101. else
  7102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7103. $as_echo "no" >&6; }
  7104. fi
  7105. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7106. if test -n "$ac_tool_prefix"; then
  7107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7108. $as_echo_n "checking for file... " >&6; }
  7109. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7110. $as_echo_n "(cached) " >&6
  7111. else
  7112. case $MAGIC_CMD in
  7113. [\\/*] | ?:[\\/]*)
  7114. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7115. ;;
  7116. *)
  7117. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7118. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7119. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7120. for ac_dir in $ac_dummy; do
  7121. IFS="$lt_save_ifs"
  7122. test -z "$ac_dir" && ac_dir=.
  7123. if test -f $ac_dir/file; then
  7124. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7125. if test -n "$file_magic_test_file"; then
  7126. case $deplibs_check_method in
  7127. "file_magic "*)
  7128. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7129. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7130. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7131. $EGREP "$file_magic_regex" > /dev/null; then
  7132. :
  7133. else
  7134. cat <<_LT_EOF 1>&2
  7135. *** Warning: the command libtool uses to detect shared libraries,
  7136. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7137. *** The result is that libtool may fail to recognize shared libraries
  7138. *** as such. This will affect the creation of libtool libraries that
  7139. *** depend on shared libraries, but programs linked with such libtool
  7140. *** libraries will work regardless of this problem. Nevertheless, you
  7141. *** may want to report the problem to your system manager and/or to
  7142. *** bug-libtool@gnu.org
  7143. _LT_EOF
  7144. fi ;;
  7145. esac
  7146. fi
  7147. break
  7148. fi
  7149. done
  7150. IFS="$lt_save_ifs"
  7151. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7152. ;;
  7153. esac
  7154. fi
  7155. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7156. if test -n "$MAGIC_CMD"; then
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7158. $as_echo "$MAGIC_CMD" >&6; }
  7159. else
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7161. $as_echo "no" >&6; }
  7162. fi
  7163. else
  7164. MAGIC_CMD=:
  7165. fi
  7166. fi
  7167. fi
  7168. ;;
  7169. esac
  7170. # Use C for the default configuration in the libtool script
  7171. lt_save_CC="$CC"
  7172. ac_ext=c
  7173. ac_cpp='$CPP $CPPFLAGS'
  7174. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7175. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7176. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7177. # Source file extension for C test sources.
  7178. ac_ext=c
  7179. # Object file extension for compiled C test sources.
  7180. objext=o
  7181. objext=$objext
  7182. # Code to be used in simple compile tests
  7183. lt_simple_compile_test_code="int some_variable = 0;"
  7184. # Code to be used in simple link tests
  7185. lt_simple_link_test_code='int main(){return(0);}'
  7186. # If no C compiler was specified, use CC.
  7187. LTCC=${LTCC-"$CC"}
  7188. # If no C compiler flags were specified, use CFLAGS.
  7189. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7190. # Allow CC to be a program name with arguments.
  7191. compiler=$CC
  7192. # Save the default compiler, since it gets overwritten when the other
  7193. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7194. compiler_DEFAULT=$CC
  7195. # save warnings/boilerplate of simple test code
  7196. ac_outfile=conftest.$ac_objext
  7197. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7198. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7199. _lt_compiler_boilerplate=`cat conftest.err`
  7200. $RM conftest*
  7201. ac_outfile=conftest.$ac_objext
  7202. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7203. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7204. _lt_linker_boilerplate=`cat conftest.err`
  7205. $RM -r conftest*
  7206. if test -n "$compiler"; then
  7207. lt_prog_compiler_no_builtin_flag=
  7208. if test "$GCC" = yes; then
  7209. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7211. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7212. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7213. $as_echo_n "(cached) " >&6
  7214. else
  7215. lt_cv_prog_compiler_rtti_exceptions=no
  7216. ac_outfile=conftest.$ac_objext
  7217. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7218. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7219. # Insert the option either (1) after the last *FLAGS variable, or
  7220. # (2) before a word containing "conftest.", or (3) at the end.
  7221. # Note that $ac_compile itself does not contain backslashes and begins
  7222. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7223. # The option is referenced via a variable to avoid confusing sed.
  7224. lt_compile=`echo "$ac_compile" | $SED \
  7225. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7226. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7227. -e 's:$: $lt_compiler_flag:'`
  7228. (eval echo "\"\$as_me:8262: $lt_compile\"" >&5)
  7229. (eval "$lt_compile" 2>conftest.err)
  7230. ac_status=$?
  7231. cat conftest.err >&5
  7232. echo "$as_me:8266: \$? = $ac_status" >&5
  7233. if (exit $ac_status) && test -s "$ac_outfile"; then
  7234. # The compiler can only warn and ignore the option if not recognized
  7235. # So say no if there are warnings other than the usual output.
  7236. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7237. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7238. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7239. lt_cv_prog_compiler_rtti_exceptions=yes
  7240. fi
  7241. fi
  7242. $RM conftest*
  7243. fi
  7244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7245. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7246. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7247. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7248. else
  7249. :
  7250. fi
  7251. fi
  7252. lt_prog_compiler_wl=
  7253. lt_prog_compiler_pic=
  7254. lt_prog_compiler_static=
  7255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7256. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7257. if test "$GCC" = yes; then
  7258. lt_prog_compiler_wl='-Wl,'
  7259. lt_prog_compiler_static='-static'
  7260. case $host_os in
  7261. aix*)
  7262. # All AIX code is PIC.
  7263. if test "$host_cpu" = ia64; then
  7264. # AIX 5 now supports IA64 processor
  7265. lt_prog_compiler_static='-Bstatic'
  7266. fi
  7267. ;;
  7268. amigaos*)
  7269. case $host_cpu in
  7270. powerpc)
  7271. # see comment about AmigaOS4 .so support
  7272. lt_prog_compiler_pic='-fPIC'
  7273. ;;
  7274. m68k)
  7275. # FIXME: we need at least 68020 code to build shared libraries, but
  7276. # adding the `-m68020' flag to GCC prevents building anything better,
  7277. # like `-m68040'.
  7278. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7279. ;;
  7280. esac
  7281. ;;
  7282. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7283. # PIC is the default for these OSes.
  7284. ;;
  7285. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7286. # This hack is so that the source file can tell whether it is being
  7287. # built for inclusion in a dll (and should export symbols for example).
  7288. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7289. # (--disable-auto-import) libraries
  7290. lt_prog_compiler_pic='-DDLL_EXPORT'
  7291. ;;
  7292. darwin* | rhapsody*)
  7293. # PIC is the default on this platform
  7294. # Common symbols not allowed in MH_DYLIB files
  7295. lt_prog_compiler_pic='-fno-common'
  7296. ;;
  7297. hpux*)
  7298. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7299. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7300. # sets the default TLS model and affects inlining.
  7301. case $host_cpu in
  7302. hppa*64*)
  7303. # +Z the default
  7304. ;;
  7305. *)
  7306. lt_prog_compiler_pic='-fPIC'
  7307. ;;
  7308. esac
  7309. ;;
  7310. interix[3-9]*)
  7311. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7312. # Instead, we relocate shared libraries at runtime.
  7313. ;;
  7314. msdosdjgpp*)
  7315. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7316. # on systems that don't support them.
  7317. lt_prog_compiler_can_build_shared=no
  7318. enable_shared=no
  7319. ;;
  7320. *nto* | *qnx*)
  7321. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7322. # it will coredump.
  7323. lt_prog_compiler_pic='-fPIC -shared'
  7324. ;;
  7325. sysv4*MP*)
  7326. if test -d /usr/nec; then
  7327. lt_prog_compiler_pic=-Kconform_pic
  7328. fi
  7329. ;;
  7330. *)
  7331. lt_prog_compiler_pic='-fPIC'
  7332. ;;
  7333. esac
  7334. else
  7335. # PORTME Check for flag to pass linker flags through the system compiler.
  7336. case $host_os in
  7337. aix*)
  7338. lt_prog_compiler_wl='-Wl,'
  7339. if test "$host_cpu" = ia64; then
  7340. # AIX 5 now supports IA64 processor
  7341. lt_prog_compiler_static='-Bstatic'
  7342. else
  7343. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7344. fi
  7345. ;;
  7346. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7347. # This hack is so that the source file can tell whether it is being
  7348. # built for inclusion in a dll (and should export symbols for example).
  7349. lt_prog_compiler_pic='-DDLL_EXPORT'
  7350. ;;
  7351. hpux9* | hpux10* | hpux11*)
  7352. lt_prog_compiler_wl='-Wl,'
  7353. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7354. # not for PA HP-UX.
  7355. case $host_cpu in
  7356. hppa*64*|ia64*)
  7357. # +Z the default
  7358. ;;
  7359. *)
  7360. lt_prog_compiler_pic='+Z'
  7361. ;;
  7362. esac
  7363. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7364. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7365. ;;
  7366. irix5* | irix6* | nonstopux*)
  7367. lt_prog_compiler_wl='-Wl,'
  7368. # PIC (with -KPIC) is the default.
  7369. lt_prog_compiler_static='-non_shared'
  7370. ;;
  7371. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7372. case $cc_basename in
  7373. # old Intel for x86_64 which still supported -KPIC.
  7374. ecc*)
  7375. lt_prog_compiler_wl='-Wl,'
  7376. lt_prog_compiler_pic='-KPIC'
  7377. lt_prog_compiler_static='-static'
  7378. ;;
  7379. # icc used to be incompatible with GCC.
  7380. # ICC 10 doesn't accept -KPIC any more.
  7381. icc* | ifort*)
  7382. lt_prog_compiler_wl='-Wl,'
  7383. lt_prog_compiler_pic='-fPIC'
  7384. lt_prog_compiler_static='-static'
  7385. ;;
  7386. # Lahey Fortran 8.1.
  7387. lf95*)
  7388. lt_prog_compiler_wl='-Wl,'
  7389. lt_prog_compiler_pic='--shared'
  7390. lt_prog_compiler_static='--static'
  7391. ;;
  7392. pgcc* | pgf77* | pgf90* | pgf95*)
  7393. # Portland Group compilers (*not* the Pentium gcc compiler,
  7394. # which looks to be a dead project)
  7395. lt_prog_compiler_wl='-Wl,'
  7396. lt_prog_compiler_pic='-fpic'
  7397. lt_prog_compiler_static='-Bstatic'
  7398. ;;
  7399. ccc*)
  7400. lt_prog_compiler_wl='-Wl,'
  7401. # All Alpha code is PIC.
  7402. lt_prog_compiler_static='-non_shared'
  7403. ;;
  7404. xl*)
  7405. # IBM XL C 8.0/Fortran 10.1 on PPC
  7406. lt_prog_compiler_wl='-Wl,'
  7407. lt_prog_compiler_pic='-qpic'
  7408. lt_prog_compiler_static='-qstaticlink'
  7409. ;;
  7410. *)
  7411. case `$CC -V 2>&1 | sed 5q` in
  7412. *Sun\ C*)
  7413. # Sun C 5.9
  7414. lt_prog_compiler_pic='-KPIC'
  7415. lt_prog_compiler_static='-Bstatic'
  7416. lt_prog_compiler_wl='-Wl,'
  7417. ;;
  7418. *Sun\ F*)
  7419. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7420. lt_prog_compiler_pic='-KPIC'
  7421. lt_prog_compiler_static='-Bstatic'
  7422. lt_prog_compiler_wl=''
  7423. ;;
  7424. esac
  7425. ;;
  7426. esac
  7427. ;;
  7428. newsos6)
  7429. lt_prog_compiler_pic='-KPIC'
  7430. lt_prog_compiler_static='-Bstatic'
  7431. ;;
  7432. *nto* | *qnx*)
  7433. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7434. # it will coredump.
  7435. lt_prog_compiler_pic='-fPIC -shared'
  7436. ;;
  7437. osf3* | osf4* | osf5*)
  7438. lt_prog_compiler_wl='-Wl,'
  7439. # All OSF/1 code is PIC.
  7440. lt_prog_compiler_static='-non_shared'
  7441. ;;
  7442. rdos*)
  7443. lt_prog_compiler_static='-non_shared'
  7444. ;;
  7445. solaris*)
  7446. lt_prog_compiler_pic='-KPIC'
  7447. lt_prog_compiler_static='-Bstatic'
  7448. case $cc_basename in
  7449. f77* | f90* | f95*)
  7450. lt_prog_compiler_wl='-Qoption ld ';;
  7451. *)
  7452. lt_prog_compiler_wl='-Wl,';;
  7453. esac
  7454. ;;
  7455. sunos4*)
  7456. lt_prog_compiler_wl='-Qoption ld '
  7457. lt_prog_compiler_pic='-PIC'
  7458. lt_prog_compiler_static='-Bstatic'
  7459. ;;
  7460. sysv4 | sysv4.2uw2* | sysv4.3*)
  7461. lt_prog_compiler_wl='-Wl,'
  7462. lt_prog_compiler_pic='-KPIC'
  7463. lt_prog_compiler_static='-Bstatic'
  7464. ;;
  7465. sysv4*MP*)
  7466. if test -d /usr/nec ;then
  7467. lt_prog_compiler_pic='-Kconform_pic'
  7468. lt_prog_compiler_static='-Bstatic'
  7469. fi
  7470. ;;
  7471. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7472. lt_prog_compiler_wl='-Wl,'
  7473. lt_prog_compiler_pic='-KPIC'
  7474. lt_prog_compiler_static='-Bstatic'
  7475. ;;
  7476. unicos*)
  7477. lt_prog_compiler_wl='-Wl,'
  7478. lt_prog_compiler_can_build_shared=no
  7479. ;;
  7480. uts4*)
  7481. lt_prog_compiler_pic='-pic'
  7482. lt_prog_compiler_static='-Bstatic'
  7483. ;;
  7484. *)
  7485. lt_prog_compiler_can_build_shared=no
  7486. ;;
  7487. esac
  7488. fi
  7489. case $host_os in
  7490. # For platforms which do not support PIC, -DPIC is meaningless:
  7491. *djgpp*)
  7492. lt_prog_compiler_pic=
  7493. ;;
  7494. *)
  7495. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7496. ;;
  7497. esac
  7498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7499. $as_echo "$lt_prog_compiler_pic" >&6; }
  7500. #
  7501. # Check to make sure the PIC flag actually works.
  7502. #
  7503. if test -n "$lt_prog_compiler_pic"; then
  7504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7505. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7506. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7507. $as_echo_n "(cached) " >&6
  7508. else
  7509. lt_cv_prog_compiler_pic_works=no
  7510. ac_outfile=conftest.$ac_objext
  7511. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7512. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7513. # Insert the option either (1) after the last *FLAGS variable, or
  7514. # (2) before a word containing "conftest.", or (3) at the end.
  7515. # Note that $ac_compile itself does not contain backslashes and begins
  7516. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7517. # The option is referenced via a variable to avoid confusing sed.
  7518. lt_compile=`echo "$ac_compile" | $SED \
  7519. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7520. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7521. -e 's:$: $lt_compiler_flag:'`
  7522. (eval echo "\"\$as_me:8601: $lt_compile\"" >&5)
  7523. (eval "$lt_compile" 2>conftest.err)
  7524. ac_status=$?
  7525. cat conftest.err >&5
  7526. echo "$as_me:8605: \$? = $ac_status" >&5
  7527. if (exit $ac_status) && test -s "$ac_outfile"; then
  7528. # The compiler can only warn and ignore the option if not recognized
  7529. # So say no if there are warnings other than the usual output.
  7530. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7531. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7532. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7533. lt_cv_prog_compiler_pic_works=yes
  7534. fi
  7535. fi
  7536. $RM conftest*
  7537. fi
  7538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7539. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7540. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7541. case $lt_prog_compiler_pic in
  7542. "" | " "*) ;;
  7543. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7544. esac
  7545. else
  7546. lt_prog_compiler_pic=
  7547. lt_prog_compiler_can_build_shared=no
  7548. fi
  7549. fi
  7550. #
  7551. # Check to make sure the static flag actually works.
  7552. #
  7553. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7555. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7556. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7557. $as_echo_n "(cached) " >&6
  7558. else
  7559. lt_cv_prog_compiler_static_works=no
  7560. save_LDFLAGS="$LDFLAGS"
  7561. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7562. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7563. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7564. # The linker can only warn and ignore the option if not recognized
  7565. # So say no if there are warnings
  7566. if test -s conftest.err; then
  7567. # Append any errors to the config.log.
  7568. cat conftest.err 1>&5
  7569. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7570. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7571. if diff conftest.exp conftest.er2 >/dev/null; then
  7572. lt_cv_prog_compiler_static_works=yes
  7573. fi
  7574. else
  7575. lt_cv_prog_compiler_static_works=yes
  7576. fi
  7577. fi
  7578. $RM -r conftest*
  7579. LDFLAGS="$save_LDFLAGS"
  7580. fi
  7581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7582. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7583. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7584. :
  7585. else
  7586. lt_prog_compiler_static=
  7587. fi
  7588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7589. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7590. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7591. $as_echo_n "(cached) " >&6
  7592. else
  7593. lt_cv_prog_compiler_c_o=no
  7594. $RM -r conftest 2>/dev/null
  7595. mkdir conftest
  7596. cd conftest
  7597. mkdir out
  7598. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7599. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7600. # Insert the option either (1) after the last *FLAGS variable, or
  7601. # (2) before a word containing "conftest.", or (3) at the end.
  7602. # Note that $ac_compile itself does not contain backslashes and begins
  7603. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7604. lt_compile=`echo "$ac_compile" | $SED \
  7605. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7606. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7607. -e 's:$: $lt_compiler_flag:'`
  7608. (eval echo "\"\$as_me:8706: $lt_compile\"" >&5)
  7609. (eval "$lt_compile" 2>out/conftest.err)
  7610. ac_status=$?
  7611. cat out/conftest.err >&5
  7612. echo "$as_me:8710: \$? = $ac_status" >&5
  7613. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7614. then
  7615. # The compiler can only warn and ignore the option if not recognized
  7616. # So say no if there are warnings
  7617. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7618. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7619. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7620. lt_cv_prog_compiler_c_o=yes
  7621. fi
  7622. fi
  7623. chmod u+w . 2>&5
  7624. $RM conftest*
  7625. # SGI C++ compiler will create directory out/ii_files/ for
  7626. # template instantiation
  7627. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7628. $RM out/* && rmdir out
  7629. cd ..
  7630. $RM -r conftest
  7631. $RM conftest*
  7632. fi
  7633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7634. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7636. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7637. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7638. $as_echo_n "(cached) " >&6
  7639. else
  7640. lt_cv_prog_compiler_c_o=no
  7641. $RM -r conftest 2>/dev/null
  7642. mkdir conftest
  7643. cd conftest
  7644. mkdir out
  7645. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7646. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7647. # Insert the option either (1) after the last *FLAGS variable, or
  7648. # (2) before a word containing "conftest.", or (3) at the end.
  7649. # Note that $ac_compile itself does not contain backslashes and begins
  7650. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7651. lt_compile=`echo "$ac_compile" | $SED \
  7652. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7653. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7654. -e 's:$: $lt_compiler_flag:'`
  7655. (eval echo "\"\$as_me:8761: $lt_compile\"" >&5)
  7656. (eval "$lt_compile" 2>out/conftest.err)
  7657. ac_status=$?
  7658. cat out/conftest.err >&5
  7659. echo "$as_me:8765: \$? = $ac_status" >&5
  7660. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7661. then
  7662. # The compiler can only warn and ignore the option if not recognized
  7663. # So say no if there are warnings
  7664. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7665. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7666. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7667. lt_cv_prog_compiler_c_o=yes
  7668. fi
  7669. fi
  7670. chmod u+w . 2>&5
  7671. $RM conftest*
  7672. # SGI C++ compiler will create directory out/ii_files/ for
  7673. # template instantiation
  7674. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7675. $RM out/* && rmdir out
  7676. cd ..
  7677. $RM -r conftest
  7678. $RM conftest*
  7679. fi
  7680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7681. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7682. hard_links="nottested"
  7683. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7684. # do not overwrite the value of need_locks provided by the user
  7685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7686. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7687. hard_links=yes
  7688. $RM conftest*
  7689. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7690. touch conftest.a
  7691. ln conftest.a conftest.b 2>&5 || hard_links=no
  7692. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7694. $as_echo "$hard_links" >&6; }
  7695. if test "$hard_links" = no; then
  7696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7697. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7698. need_locks=warn
  7699. fi
  7700. else
  7701. need_locks=no
  7702. fi
  7703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7704. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7705. runpath_var=
  7706. allow_undefined_flag=
  7707. always_export_symbols=no
  7708. archive_cmds=
  7709. archive_expsym_cmds=
  7710. compiler_needs_object=no
  7711. enable_shared_with_static_runtimes=no
  7712. export_dynamic_flag_spec=
  7713. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7714. hardcode_automatic=no
  7715. hardcode_direct=no
  7716. hardcode_direct_absolute=no
  7717. hardcode_libdir_flag_spec=
  7718. hardcode_libdir_flag_spec_ld=
  7719. hardcode_libdir_separator=
  7720. hardcode_minus_L=no
  7721. hardcode_shlibpath_var=unsupported
  7722. inherit_rpath=no
  7723. link_all_deplibs=unknown
  7724. module_cmds=
  7725. module_expsym_cmds=
  7726. old_archive_from_new_cmds=
  7727. old_archive_from_expsyms_cmds=
  7728. thread_safe_flag_spec=
  7729. whole_archive_flag_spec=
  7730. # include_expsyms should be a list of space-separated symbols to be *always*
  7731. # included in the symbol list
  7732. include_expsyms=
  7733. # exclude_expsyms can be an extended regexp of symbols to exclude
  7734. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7735. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7736. # as well as any symbol that contains `d'.
  7737. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7738. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7739. # platforms (ab)use it in PIC code, but their linkers get confused if
  7740. # the symbol is explicitly referenced. Since portable code cannot
  7741. # rely on this symbol name, it's probably fine to never include it in
  7742. # preloaded symbol tables.
  7743. # Exclude shared library initialization/finalization symbols.
  7744. extract_expsyms_cmds=
  7745. case $host_os in
  7746. cygwin* | mingw* | pw32* | cegcc*)
  7747. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7748. # When not using gcc, we currently assume that we are using
  7749. # Microsoft Visual C++.
  7750. if test "$GCC" != yes; then
  7751. with_gnu_ld=no
  7752. fi
  7753. ;;
  7754. interix*)
  7755. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7756. with_gnu_ld=yes
  7757. ;;
  7758. openbsd*)
  7759. with_gnu_ld=no
  7760. ;;
  7761. linux* | k*bsd*-gnu)
  7762. link_all_deplibs=no
  7763. ;;
  7764. esac
  7765. ld_shlibs=yes
  7766. if test "$with_gnu_ld" = yes; then
  7767. # If archive_cmds runs LD, not CC, wlarc should be empty
  7768. wlarc='${wl}'
  7769. # Set some defaults for GNU ld with shared library support. These
  7770. # are reset later if shared libraries are not supported. Putting them
  7771. # here allows them to be overridden if necessary.
  7772. runpath_var=LD_RUN_PATH
  7773. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7774. export_dynamic_flag_spec='${wl}--export-dynamic'
  7775. # ancient GNU ld didn't support --whole-archive et. al.
  7776. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7777. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7778. else
  7779. whole_archive_flag_spec=
  7780. fi
  7781. supports_anon_versioning=no
  7782. case `$LD -v 2>&1` in
  7783. *GNU\ gold*) supports_anon_versioning=yes ;;
  7784. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7785. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7786. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7787. *\ 2.11.*) ;; # other 2.11 versions
  7788. *) supports_anon_versioning=yes ;;
  7789. esac
  7790. # See if GNU ld supports shared libraries.
  7791. case $host_os in
  7792. aix[3-9]*)
  7793. # On AIX/PPC, the GNU linker is very broken
  7794. if test "$host_cpu" != ia64; then
  7795. ld_shlibs=no
  7796. cat <<_LT_EOF 1>&2
  7797. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7798. *** to be unable to reliably create shared libraries on AIX.
  7799. *** Therefore, libtool is disabling shared libraries support. If you
  7800. *** really care for shared libraries, you may want to modify your PATH
  7801. *** so that a non-GNU linker is found, and then restart.
  7802. _LT_EOF
  7803. fi
  7804. ;;
  7805. amigaos*)
  7806. case $host_cpu in
  7807. powerpc)
  7808. # see comment about AmigaOS4 .so support
  7809. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7810. archive_expsym_cmds=''
  7811. ;;
  7812. m68k)
  7813. 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)'
  7814. hardcode_libdir_flag_spec='-L$libdir'
  7815. hardcode_minus_L=yes
  7816. ;;
  7817. esac
  7818. ;;
  7819. beos*)
  7820. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7821. allow_undefined_flag=unsupported
  7822. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7823. # support --undefined. This deserves some investigation. FIXME
  7824. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7825. else
  7826. ld_shlibs=no
  7827. fi
  7828. ;;
  7829. cygwin* | mingw* | pw32* | cegcc*)
  7830. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7831. # as there is no search path for DLLs.
  7832. hardcode_libdir_flag_spec='-L$libdir'
  7833. allow_undefined_flag=unsupported
  7834. always_export_symbols=no
  7835. enable_shared_with_static_runtimes=yes
  7836. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7837. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7838. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7839. # If the export-symbols file already is a .def file (1st line
  7840. # is EXPORTS), use it as is; otherwise, prepend...
  7841. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7842. cp $export_symbols $output_objdir/$soname.def;
  7843. else
  7844. echo EXPORTS > $output_objdir/$soname.def;
  7845. cat $export_symbols >> $output_objdir/$soname.def;
  7846. fi~
  7847. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7848. else
  7849. ld_shlibs=no
  7850. fi
  7851. ;;
  7852. interix[3-9]*)
  7853. hardcode_direct=no
  7854. hardcode_shlibpath_var=no
  7855. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7856. export_dynamic_flag_spec='${wl}-E'
  7857. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7858. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7859. # default) and relocated if they conflict, which is a slow very memory
  7860. # consuming and fragmenting process. To avoid this, we pick a random,
  7861. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7862. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7863. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7864. 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'
  7865. ;;
  7866. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7867. tmp_diet=no
  7868. if test "$host_os" = linux-dietlibc; then
  7869. case $cc_basename in
  7870. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7871. esac
  7872. fi
  7873. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7874. && test "$tmp_diet" = no
  7875. then
  7876. tmp_addflag=
  7877. tmp_sharedflag='-shared'
  7878. case $cc_basename,$host_cpu in
  7879. pgcc*) # Portland Group C compiler
  7880. 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'
  7881. tmp_addflag=' $pic_flag'
  7882. ;;
  7883. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7884. 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'
  7885. tmp_addflag=' $pic_flag -Mnomain' ;;
  7886. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7887. tmp_addflag=' -i_dynamic' ;;
  7888. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7889. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7890. ifc* | ifort*) # Intel Fortran compiler
  7891. tmp_addflag=' -nofor_main' ;;
  7892. lf95*) # Lahey Fortran 8.1
  7893. whole_archive_flag_spec=
  7894. tmp_sharedflag='--shared' ;;
  7895. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7896. tmp_sharedflag='-qmkshrobj'
  7897. tmp_addflag= ;;
  7898. esac
  7899. case `$CC -V 2>&1 | sed 5q` in
  7900. *Sun\ C*) # Sun C 5.9
  7901. 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'
  7902. compiler_needs_object=yes
  7903. tmp_sharedflag='-G' ;;
  7904. *Sun\ F*) # Sun Fortran 8.3
  7905. tmp_sharedflag='-G' ;;
  7906. esac
  7907. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7908. if test "x$supports_anon_versioning" = xyes; then
  7909. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7910. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7911. echo "local: *; };" >> $output_objdir/$libname.ver~
  7912. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7913. fi
  7914. case $cc_basename in
  7915. xlf*)
  7916. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7917. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7918. hardcode_libdir_flag_spec=
  7919. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7920. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7921. if test "x$supports_anon_versioning" = xyes; then
  7922. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7923. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7924. echo "local: *; };" >> $output_objdir/$libname.ver~
  7925. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7926. fi
  7927. ;;
  7928. esac
  7929. else
  7930. ld_shlibs=no
  7931. fi
  7932. ;;
  7933. netbsd* | netbsdelf*-gnu)
  7934. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7935. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7936. wlarc=
  7937. else
  7938. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7939. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7940. fi
  7941. ;;
  7942. solaris*)
  7943. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7944. ld_shlibs=no
  7945. cat <<_LT_EOF 1>&2
  7946. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7947. *** create shared libraries on Solaris systems. Therefore, libtool
  7948. *** is disabling shared libraries support. We urge you to upgrade GNU
  7949. *** binutils to release 2.9.1 or newer. Another option is to modify
  7950. *** your PATH or compiler configuration so that the native linker is
  7951. *** used, and then restart.
  7952. _LT_EOF
  7953. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7954. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7955. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7956. else
  7957. ld_shlibs=no
  7958. fi
  7959. ;;
  7960. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7961. case `$LD -v 2>&1` in
  7962. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7963. ld_shlibs=no
  7964. cat <<_LT_EOF 1>&2
  7965. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7966. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7967. *** is disabling shared libraries support. We urge you to upgrade GNU
  7968. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7969. *** your PATH or compiler configuration so that the native linker is
  7970. *** used, and then restart.
  7971. _LT_EOF
  7972. ;;
  7973. *)
  7974. # For security reasons, it is highly recommended that you always
  7975. # use absolute paths for naming shared libraries, and exclude the
  7976. # DT_RUNPATH tag from executables and libraries. But doing so
  7977. # requires that you compile everything twice, which is a pain.
  7978. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7979. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7980. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7981. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7982. else
  7983. ld_shlibs=no
  7984. fi
  7985. ;;
  7986. esac
  7987. ;;
  7988. sunos4*)
  7989. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7990. wlarc=
  7991. hardcode_direct=yes
  7992. hardcode_shlibpath_var=no
  7993. ;;
  7994. *)
  7995. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7996. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7997. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7998. else
  7999. ld_shlibs=no
  8000. fi
  8001. ;;
  8002. esac
  8003. if test "$ld_shlibs" = no; then
  8004. runpath_var=
  8005. hardcode_libdir_flag_spec=
  8006. export_dynamic_flag_spec=
  8007. whole_archive_flag_spec=
  8008. fi
  8009. else
  8010. # PORTME fill in a description of your system's linker (not GNU ld)
  8011. case $host_os in
  8012. aix3*)
  8013. allow_undefined_flag=unsupported
  8014. always_export_symbols=yes
  8015. 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'
  8016. # Note: this linker hardcodes the directories in LIBPATH if there
  8017. # are no directories specified by -L.
  8018. hardcode_minus_L=yes
  8019. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8020. # Neither direct hardcoding nor static linking is supported with a
  8021. # broken collect2.
  8022. hardcode_direct=unsupported
  8023. fi
  8024. ;;
  8025. aix[4-9]*)
  8026. if test "$host_cpu" = ia64; then
  8027. # On IA64, the linker does run time linking by default, so we don't
  8028. # have to do anything special.
  8029. aix_use_runtimelinking=no
  8030. exp_sym_flag='-Bexport'
  8031. no_entry_flag=""
  8032. else
  8033. # If we're using GNU nm, then we don't want the "-C" option.
  8034. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8035. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8036. 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'
  8037. else
  8038. 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'
  8039. fi
  8040. aix_use_runtimelinking=no
  8041. # Test if we are trying to use run time linking or normal
  8042. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8043. # need to do runtime linking.
  8044. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8045. for ld_flag in $LDFLAGS; do
  8046. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8047. aix_use_runtimelinking=yes
  8048. break
  8049. fi
  8050. done
  8051. ;;
  8052. esac
  8053. exp_sym_flag='-bexport'
  8054. no_entry_flag='-bnoentry'
  8055. fi
  8056. # When large executables or shared objects are built, AIX ld can
  8057. # have problems creating the table of contents. If linking a library
  8058. # or program results in "error TOC overflow" add -mminimal-toc to
  8059. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8060. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8061. archive_cmds=''
  8062. hardcode_direct=yes
  8063. hardcode_direct_absolute=yes
  8064. hardcode_libdir_separator=':'
  8065. link_all_deplibs=yes
  8066. file_list_spec='${wl}-f,'
  8067. if test "$GCC" = yes; then
  8068. case $host_os in aix4.[012]|aix4.[012].*)
  8069. # We only want to do this on AIX 4.2 and lower, the check
  8070. # below for broken collect2 doesn't work under 4.3+
  8071. collect2name=`${CC} -print-prog-name=collect2`
  8072. if test -f "$collect2name" &&
  8073. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8074. then
  8075. # We have reworked collect2
  8076. :
  8077. else
  8078. # We have old collect2
  8079. hardcode_direct=unsupported
  8080. # It fails to find uninstalled libraries when the uninstalled
  8081. # path is not listed in the libpath. Setting hardcode_minus_L
  8082. # to unsupported forces relinking
  8083. hardcode_minus_L=yes
  8084. hardcode_libdir_flag_spec='-L$libdir'
  8085. hardcode_libdir_separator=
  8086. fi
  8087. ;;
  8088. esac
  8089. shared_flag='-shared'
  8090. if test "$aix_use_runtimelinking" = yes; then
  8091. shared_flag="$shared_flag "'${wl}-G'
  8092. fi
  8093. link_all_deplibs=no
  8094. else
  8095. # not using gcc
  8096. if test "$host_cpu" = ia64; then
  8097. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8098. # chokes on -Wl,-G. The following line is correct:
  8099. shared_flag='-G'
  8100. else
  8101. if test "$aix_use_runtimelinking" = yes; then
  8102. shared_flag='${wl}-G'
  8103. else
  8104. shared_flag='${wl}-bM:SRE'
  8105. fi
  8106. fi
  8107. fi
  8108. export_dynamic_flag_spec='${wl}-bexpall'
  8109. # It seems that -bexpall does not export symbols beginning with
  8110. # underscore (_), so it is better to generate a list of symbols to export.
  8111. always_export_symbols=yes
  8112. if test "$aix_use_runtimelinking" = yes; then
  8113. # Warning - without using the other runtime loading flags (-brtl),
  8114. # -berok will link without error, but may produce a broken library.
  8115. allow_undefined_flag='-berok'
  8116. # Determine the default libpath from the value encoded in an
  8117. # empty executable.
  8118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8119. /* end confdefs.h. */
  8120. int
  8121. main ()
  8122. {
  8123. ;
  8124. return 0;
  8125. }
  8126. _ACEOF
  8127. if ac_fn_c_try_link "$LINENO"; then :
  8128. lt_aix_libpath_sed='
  8129. /Import File Strings/,/^$/ {
  8130. /^0/ {
  8131. s/^0 *\(.*\)$/\1/
  8132. p
  8133. }
  8134. }'
  8135. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8136. # Check for a 64-bit object if we didn't find anything.
  8137. if test -z "$aix_libpath"; then
  8138. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8139. fi
  8140. fi
  8141. rm -f core conftest.err conftest.$ac_objext \
  8142. conftest$ac_exeext conftest.$ac_ext
  8143. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8144. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8145. 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"
  8146. else
  8147. if test "$host_cpu" = ia64; then
  8148. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8149. allow_undefined_flag="-z nodefs"
  8150. 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"
  8151. else
  8152. # Determine the default libpath from the value encoded in an
  8153. # empty executable.
  8154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8155. /* end confdefs.h. */
  8156. int
  8157. main ()
  8158. {
  8159. ;
  8160. return 0;
  8161. }
  8162. _ACEOF
  8163. if ac_fn_c_try_link "$LINENO"; then :
  8164. lt_aix_libpath_sed='
  8165. /Import File Strings/,/^$/ {
  8166. /^0/ {
  8167. s/^0 *\(.*\)$/\1/
  8168. p
  8169. }
  8170. }'
  8171. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8172. # Check for a 64-bit object if we didn't find anything.
  8173. if test -z "$aix_libpath"; then
  8174. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8175. fi
  8176. fi
  8177. rm -f core conftest.err conftest.$ac_objext \
  8178. conftest$ac_exeext conftest.$ac_ext
  8179. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8180. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8181. # Warning - without using the other run time loading flags,
  8182. # -berok will link without error, but may produce a broken library.
  8183. no_undefined_flag=' ${wl}-bernotok'
  8184. allow_undefined_flag=' ${wl}-berok'
  8185. # Exported symbols can be pulled into shared objects from archives
  8186. whole_archive_flag_spec='$convenience'
  8187. archive_cmds_need_lc=yes
  8188. # This is similar to how AIX traditionally builds its shared libraries.
  8189. 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'
  8190. fi
  8191. fi
  8192. ;;
  8193. amigaos*)
  8194. case $host_cpu in
  8195. powerpc)
  8196. # see comment about AmigaOS4 .so support
  8197. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8198. archive_expsym_cmds=''
  8199. ;;
  8200. m68k)
  8201. 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)'
  8202. hardcode_libdir_flag_spec='-L$libdir'
  8203. hardcode_minus_L=yes
  8204. ;;
  8205. esac
  8206. ;;
  8207. bsdi[45]*)
  8208. export_dynamic_flag_spec=-rdynamic
  8209. ;;
  8210. cygwin* | mingw* | pw32* | cegcc*)
  8211. # When not using gcc, we currently assume that we are using
  8212. # Microsoft Visual C++.
  8213. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8214. # no search path for DLLs.
  8215. hardcode_libdir_flag_spec=' '
  8216. allow_undefined_flag=unsupported
  8217. # Tell ltmain to make .lib files, not .a files.
  8218. libext=lib
  8219. # Tell ltmain to make .dll files, not .so files.
  8220. shrext_cmds=".dll"
  8221. # FIXME: Setting linknames here is a bad hack.
  8222. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8223. # The linker will automatically build a .lib file if we build a DLL.
  8224. old_archive_from_new_cmds='true'
  8225. # FIXME: Should let the user specify the lib program.
  8226. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8227. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8228. enable_shared_with_static_runtimes=yes
  8229. ;;
  8230. darwin* | rhapsody*)
  8231. archive_cmds_need_lc=no
  8232. hardcode_direct=no
  8233. hardcode_automatic=yes
  8234. hardcode_shlibpath_var=unsupported
  8235. whole_archive_flag_spec=''
  8236. link_all_deplibs=yes
  8237. allow_undefined_flag="$_lt_dar_allow_undefined"
  8238. case $cc_basename in
  8239. ifort*) _lt_dar_can_shared=yes ;;
  8240. *) _lt_dar_can_shared=$GCC ;;
  8241. esac
  8242. if test "$_lt_dar_can_shared" = "yes"; then
  8243. output_verbose_link_cmd=echo
  8244. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8245. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8246. 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}"
  8247. 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}"
  8248. else
  8249. ld_shlibs=no
  8250. fi
  8251. ;;
  8252. dgux*)
  8253. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8254. hardcode_libdir_flag_spec='-L$libdir'
  8255. hardcode_shlibpath_var=no
  8256. ;;
  8257. freebsd1*)
  8258. ld_shlibs=no
  8259. ;;
  8260. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8261. # support. Future versions do this automatically, but an explicit c++rt0.o
  8262. # does not break anything, and helps significantly (at the cost of a little
  8263. # extra space).
  8264. freebsd2.2*)
  8265. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8266. hardcode_libdir_flag_spec='-R$libdir'
  8267. hardcode_direct=yes
  8268. hardcode_shlibpath_var=no
  8269. ;;
  8270. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8271. freebsd2*)
  8272. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8273. hardcode_direct=yes
  8274. hardcode_minus_L=yes
  8275. hardcode_shlibpath_var=no
  8276. ;;
  8277. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8278. freebsd* | dragonfly*)
  8279. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8280. hardcode_libdir_flag_spec='-R$libdir'
  8281. hardcode_direct=yes
  8282. hardcode_shlibpath_var=no
  8283. ;;
  8284. hpux9*)
  8285. if test "$GCC" = yes; then
  8286. 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'
  8287. else
  8288. 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'
  8289. fi
  8290. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8291. hardcode_libdir_separator=:
  8292. hardcode_direct=yes
  8293. # hardcode_minus_L: Not really in the search PATH,
  8294. # but as the default location of the library.
  8295. hardcode_minus_L=yes
  8296. export_dynamic_flag_spec='${wl}-E'
  8297. ;;
  8298. hpux10*)
  8299. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8300. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8301. else
  8302. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8303. fi
  8304. if test "$with_gnu_ld" = no; then
  8305. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8306. hardcode_libdir_flag_spec_ld='+b $libdir'
  8307. hardcode_libdir_separator=:
  8308. hardcode_direct=yes
  8309. hardcode_direct_absolute=yes
  8310. export_dynamic_flag_spec='${wl}-E'
  8311. # hardcode_minus_L: Not really in the search PATH,
  8312. # but as the default location of the library.
  8313. hardcode_minus_L=yes
  8314. fi
  8315. ;;
  8316. hpux11*)
  8317. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8318. case $host_cpu in
  8319. hppa*64*)
  8320. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8321. ;;
  8322. ia64*)
  8323. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8324. ;;
  8325. *)
  8326. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8327. ;;
  8328. esac
  8329. else
  8330. case $host_cpu in
  8331. hppa*64*)
  8332. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8333. ;;
  8334. ia64*)
  8335. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8336. ;;
  8337. *)
  8338. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8339. ;;
  8340. esac
  8341. fi
  8342. if test "$with_gnu_ld" = no; then
  8343. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8344. hardcode_libdir_separator=:
  8345. case $host_cpu in
  8346. hppa*64*|ia64*)
  8347. hardcode_direct=no
  8348. hardcode_shlibpath_var=no
  8349. ;;
  8350. *)
  8351. hardcode_direct=yes
  8352. hardcode_direct_absolute=yes
  8353. export_dynamic_flag_spec='${wl}-E'
  8354. # hardcode_minus_L: Not really in the search PATH,
  8355. # but as the default location of the library.
  8356. hardcode_minus_L=yes
  8357. ;;
  8358. esac
  8359. fi
  8360. ;;
  8361. irix5* | irix6* | nonstopux*)
  8362. if test "$GCC" = yes; then
  8363. 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'
  8364. # Try to use the -exported_symbol ld option, if it does not
  8365. # work, assume that -exports_file does not work either and
  8366. # implicitly export all symbols.
  8367. save_LDFLAGS="$LDFLAGS"
  8368. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8370. /* end confdefs.h. */
  8371. int foo(void) {}
  8372. _ACEOF
  8373. if ac_fn_c_try_link "$LINENO"; then :
  8374. 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'
  8375. fi
  8376. rm -f core conftest.err conftest.$ac_objext \
  8377. conftest$ac_exeext conftest.$ac_ext
  8378. LDFLAGS="$save_LDFLAGS"
  8379. else
  8380. 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'
  8381. 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'
  8382. fi
  8383. archive_cmds_need_lc='no'
  8384. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8385. hardcode_libdir_separator=:
  8386. inherit_rpath=yes
  8387. link_all_deplibs=yes
  8388. ;;
  8389. netbsd* | netbsdelf*-gnu)
  8390. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8391. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8392. else
  8393. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8394. fi
  8395. hardcode_libdir_flag_spec='-R$libdir'
  8396. hardcode_direct=yes
  8397. hardcode_shlibpath_var=no
  8398. ;;
  8399. newsos6)
  8400. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8401. hardcode_direct=yes
  8402. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8403. hardcode_libdir_separator=:
  8404. hardcode_shlibpath_var=no
  8405. ;;
  8406. *nto* | *qnx*)
  8407. ;;
  8408. openbsd*)
  8409. if test -f /usr/libexec/ld.so; then
  8410. hardcode_direct=yes
  8411. hardcode_shlibpath_var=no
  8412. hardcode_direct_absolute=yes
  8413. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8414. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8415. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8416. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8417. export_dynamic_flag_spec='${wl}-E'
  8418. else
  8419. case $host_os in
  8420. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8421. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8422. hardcode_libdir_flag_spec='-R$libdir'
  8423. ;;
  8424. *)
  8425. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8426. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8427. ;;
  8428. esac
  8429. fi
  8430. else
  8431. ld_shlibs=no
  8432. fi
  8433. ;;
  8434. os2*)
  8435. hardcode_libdir_flag_spec='-L$libdir'
  8436. hardcode_minus_L=yes
  8437. allow_undefined_flag=unsupported
  8438. 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'
  8439. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8440. ;;
  8441. osf3*)
  8442. if test "$GCC" = yes; then
  8443. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8444. 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'
  8445. else
  8446. allow_undefined_flag=' -expect_unresolved \*'
  8447. 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'
  8448. fi
  8449. archive_cmds_need_lc='no'
  8450. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8451. hardcode_libdir_separator=:
  8452. ;;
  8453. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8454. if test "$GCC" = yes; then
  8455. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8456. 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'
  8457. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8458. else
  8459. allow_undefined_flag=' -expect_unresolved \*'
  8460. 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'
  8461. 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~
  8462. $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'
  8463. # Both c and cxx compiler support -rpath directly
  8464. hardcode_libdir_flag_spec='-rpath $libdir'
  8465. fi
  8466. archive_cmds_need_lc='no'
  8467. hardcode_libdir_separator=:
  8468. ;;
  8469. solaris*)
  8470. no_undefined_flag=' -z defs'
  8471. if test "$GCC" = yes; then
  8472. wlarc='${wl}'
  8473. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8474. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8475. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8476. else
  8477. case `$CC -V 2>&1` in
  8478. *"Compilers 5.0"*)
  8479. wlarc=''
  8480. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8481. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8482. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8483. ;;
  8484. *)
  8485. wlarc='${wl}'
  8486. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8487. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8488. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8489. ;;
  8490. esac
  8491. fi
  8492. hardcode_libdir_flag_spec='-R$libdir'
  8493. hardcode_shlibpath_var=no
  8494. case $host_os in
  8495. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8496. *)
  8497. # The compiler driver will combine and reorder linker options,
  8498. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8499. # but is careful enough not to reorder.
  8500. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8501. if test "$GCC" = yes; then
  8502. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8503. else
  8504. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8505. fi
  8506. ;;
  8507. esac
  8508. link_all_deplibs=yes
  8509. ;;
  8510. sunos4*)
  8511. if test "x$host_vendor" = xsequent; then
  8512. # Use $CC to link under sequent, because it throws in some extra .o
  8513. # files that make .init and .fini sections work.
  8514. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8515. else
  8516. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8517. fi
  8518. hardcode_libdir_flag_spec='-L$libdir'
  8519. hardcode_direct=yes
  8520. hardcode_minus_L=yes
  8521. hardcode_shlibpath_var=no
  8522. ;;
  8523. sysv4)
  8524. case $host_vendor in
  8525. sni)
  8526. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8527. hardcode_direct=yes # is this really true???
  8528. ;;
  8529. siemens)
  8530. ## LD is ld it makes a PLAMLIB
  8531. ## CC just makes a GrossModule.
  8532. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8533. reload_cmds='$CC -r -o $output$reload_objs'
  8534. hardcode_direct=no
  8535. ;;
  8536. motorola)
  8537. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8538. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8539. ;;
  8540. esac
  8541. runpath_var='LD_RUN_PATH'
  8542. hardcode_shlibpath_var=no
  8543. ;;
  8544. sysv4.3*)
  8545. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8546. hardcode_shlibpath_var=no
  8547. export_dynamic_flag_spec='-Bexport'
  8548. ;;
  8549. sysv4*MP*)
  8550. if test -d /usr/nec; then
  8551. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8552. hardcode_shlibpath_var=no
  8553. runpath_var=LD_RUN_PATH
  8554. hardcode_runpath_var=yes
  8555. ld_shlibs=yes
  8556. fi
  8557. ;;
  8558. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8559. no_undefined_flag='${wl}-z,text'
  8560. archive_cmds_need_lc=no
  8561. hardcode_shlibpath_var=no
  8562. runpath_var='LD_RUN_PATH'
  8563. if test "$GCC" = yes; then
  8564. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8565. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8566. else
  8567. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8568. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8569. fi
  8570. ;;
  8571. sysv5* | sco3.2v5* | sco5v6*)
  8572. # Note: We can NOT use -z defs as we might desire, because we do not
  8573. # link with -lc, and that would cause any symbols used from libc to
  8574. # always be unresolved, which means just about no library would
  8575. # ever link correctly. If we're not using GNU ld we use -z text
  8576. # though, which does catch some bad symbols but isn't as heavy-handed
  8577. # as -z defs.
  8578. no_undefined_flag='${wl}-z,text'
  8579. allow_undefined_flag='${wl}-z,nodefs'
  8580. archive_cmds_need_lc=no
  8581. hardcode_shlibpath_var=no
  8582. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8583. hardcode_libdir_separator=':'
  8584. link_all_deplibs=yes
  8585. export_dynamic_flag_spec='${wl}-Bexport'
  8586. runpath_var='LD_RUN_PATH'
  8587. if test "$GCC" = yes; then
  8588. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8589. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8590. else
  8591. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8592. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8593. fi
  8594. ;;
  8595. uts4*)
  8596. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8597. hardcode_libdir_flag_spec='-L$libdir'
  8598. hardcode_shlibpath_var=no
  8599. ;;
  8600. *)
  8601. ld_shlibs=no
  8602. ;;
  8603. esac
  8604. if test x$host_vendor = xsni; then
  8605. case $host in
  8606. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8607. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8608. ;;
  8609. esac
  8610. fi
  8611. fi
  8612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8613. $as_echo "$ld_shlibs" >&6; }
  8614. test "$ld_shlibs" = no && can_build_shared=no
  8615. with_gnu_ld=$with_gnu_ld
  8616. #
  8617. # Do we need to explicitly link libc?
  8618. #
  8619. case "x$archive_cmds_need_lc" in
  8620. x|xyes)
  8621. # Assume -lc should be added
  8622. archive_cmds_need_lc=yes
  8623. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8624. case $archive_cmds in
  8625. *'~'*)
  8626. # FIXME: we may have to deal with multi-command sequences.
  8627. ;;
  8628. '$CC '*)
  8629. # Test whether the compiler implicitly links with -lc since on some
  8630. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8631. # to ld, don't add -lc before -lgcc.
  8632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8633. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8634. $RM conftest*
  8635. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8636. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8637. (eval $ac_compile) 2>&5
  8638. ac_status=$?
  8639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8640. test $ac_status = 0; } 2>conftest.err; then
  8641. soname=conftest
  8642. lib=conftest
  8643. libobjs=conftest.$ac_objext
  8644. deplibs=
  8645. wl=$lt_prog_compiler_wl
  8646. pic_flag=$lt_prog_compiler_pic
  8647. compiler_flags=-v
  8648. linker_flags=-v
  8649. verstring=
  8650. output_objdir=.
  8651. libname=conftest
  8652. lt_save_allow_undefined_flag=$allow_undefined_flag
  8653. allow_undefined_flag=
  8654. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8655. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8656. ac_status=$?
  8657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8658. test $ac_status = 0; }
  8659. then
  8660. archive_cmds_need_lc=no
  8661. else
  8662. archive_cmds_need_lc=yes
  8663. fi
  8664. allow_undefined_flag=$lt_save_allow_undefined_flag
  8665. else
  8666. cat conftest.err 1>&5
  8667. fi
  8668. $RM conftest*
  8669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8670. $as_echo "$archive_cmds_need_lc" >&6; }
  8671. ;;
  8672. esac
  8673. fi
  8674. ;;
  8675. esac
  8676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8677. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8678. if test "$GCC" = yes; then
  8679. case $host_os in
  8680. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8681. *) lt_awk_arg="/^libraries:/" ;;
  8682. esac
  8683. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8684. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8685. # if the path contains ";" then we assume it to be the separator
  8686. # otherwise default to the standard path separator (i.e. ":") - it is
  8687. # assumed that no part of a normal pathname contains ";" but that should
  8688. # okay in the real world where ";" in dirpaths is itself problematic.
  8689. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8690. else
  8691. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8692. fi
  8693. # Ok, now we have the path, separated by spaces, we can step through it
  8694. # and add multilib dir if necessary.
  8695. lt_tmp_lt_search_path_spec=
  8696. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8697. for lt_sys_path in $lt_search_path_spec; do
  8698. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8699. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8700. else
  8701. test -d "$lt_sys_path" && \
  8702. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8703. fi
  8704. done
  8705. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8706. BEGIN {RS=" "; FS="/|\n";} {
  8707. lt_foo="";
  8708. lt_count=0;
  8709. for (lt_i = NF; lt_i > 0; lt_i--) {
  8710. if ($lt_i != "" && $lt_i != ".") {
  8711. if ($lt_i == "..") {
  8712. lt_count++;
  8713. } else {
  8714. if (lt_count == 0) {
  8715. lt_foo="/" $lt_i lt_foo;
  8716. } else {
  8717. lt_count--;
  8718. }
  8719. }
  8720. }
  8721. }
  8722. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8723. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8724. }'`
  8725. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8726. else
  8727. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8728. fi
  8729. library_names_spec=
  8730. libname_spec='lib$name'
  8731. soname_spec=
  8732. shrext_cmds=".so"
  8733. postinstall_cmds=
  8734. postuninstall_cmds=
  8735. finish_cmds=
  8736. finish_eval=
  8737. shlibpath_var=
  8738. shlibpath_overrides_runpath=unknown
  8739. version_type=none
  8740. dynamic_linker="$host_os ld.so"
  8741. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8742. need_lib_prefix=unknown
  8743. hardcode_into_libs=no
  8744. # when you set need_version to no, make sure it does not cause -set_version
  8745. # flags to be left without arguments
  8746. need_version=unknown
  8747. case $host_os in
  8748. aix3*)
  8749. version_type=linux
  8750. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8751. shlibpath_var=LIBPATH
  8752. # AIX 3 has no versioning support, so we append a major version to the name.
  8753. soname_spec='${libname}${release}${shared_ext}$major'
  8754. ;;
  8755. aix[4-9]*)
  8756. version_type=linux
  8757. need_lib_prefix=no
  8758. need_version=no
  8759. hardcode_into_libs=yes
  8760. if test "$host_cpu" = ia64; then
  8761. # AIX 5 supports IA64
  8762. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8763. shlibpath_var=LD_LIBRARY_PATH
  8764. else
  8765. # With GCC up to 2.95.x, collect2 would create an import file
  8766. # for dependence libraries. The import file would start with
  8767. # the line `#! .'. This would cause the generated library to
  8768. # depend on `.', always an invalid library. This was fixed in
  8769. # development snapshots of GCC prior to 3.0.
  8770. case $host_os in
  8771. aix4 | aix4.[01] | aix4.[01].*)
  8772. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8773. echo ' yes '
  8774. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8775. :
  8776. else
  8777. can_build_shared=no
  8778. fi
  8779. ;;
  8780. esac
  8781. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8782. # soname into executable. Probably we can add versioning support to
  8783. # collect2, so additional links can be useful in future.
  8784. if test "$aix_use_runtimelinking" = yes; then
  8785. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8786. # instead of lib<name>.a to let people know that these are not
  8787. # typical AIX shared libraries.
  8788. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8789. else
  8790. # We preserve .a as extension for shared libraries through AIX4.2
  8791. # and later when we are not doing run time linking.
  8792. library_names_spec='${libname}${release}.a $libname.a'
  8793. soname_spec='${libname}${release}${shared_ext}$major'
  8794. fi
  8795. shlibpath_var=LIBPATH
  8796. fi
  8797. ;;
  8798. amigaos*)
  8799. case $host_cpu in
  8800. powerpc)
  8801. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8802. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8803. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8804. ;;
  8805. m68k)
  8806. library_names_spec='$libname.ixlibrary $libname.a'
  8807. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8808. 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'
  8809. ;;
  8810. esac
  8811. ;;
  8812. beos*)
  8813. library_names_spec='${libname}${shared_ext}'
  8814. dynamic_linker="$host_os ld.so"
  8815. shlibpath_var=LIBRARY_PATH
  8816. ;;
  8817. bsdi[45]*)
  8818. version_type=linux
  8819. need_version=no
  8820. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8821. soname_spec='${libname}${release}${shared_ext}$major'
  8822. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8823. shlibpath_var=LD_LIBRARY_PATH
  8824. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8825. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8826. # the default ld.so.conf also contains /usr/contrib/lib and
  8827. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8828. # libtool to hard-code these into programs
  8829. ;;
  8830. cygwin* | mingw* | pw32* | cegcc*)
  8831. version_type=windows
  8832. shrext_cmds=".dll"
  8833. need_version=no
  8834. need_lib_prefix=no
  8835. case $GCC,$host_os in
  8836. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8837. library_names_spec='$libname.dll.a'
  8838. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8839. postinstall_cmds='base_file=`basename \${file}`~
  8840. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8841. dldir=$destdir/`dirname \$dlpath`~
  8842. test -d \$dldir || mkdir -p \$dldir~
  8843. $install_prog $dir/$dlname \$dldir/$dlname~
  8844. chmod a+x \$dldir/$dlname~
  8845. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8846. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8847. fi'
  8848. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8849. dlpath=$dir/\$dldll~
  8850. $RM \$dlpath'
  8851. shlibpath_overrides_runpath=yes
  8852. case $host_os in
  8853. cygwin*)
  8854. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8855. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8856. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8857. ;;
  8858. mingw* | cegcc*)
  8859. # MinGW DLLs use traditional 'lib' prefix
  8860. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8861. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8862. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8863. # It is most probably a Windows format PATH printed by
  8864. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8865. # path with ; separators, and with drive letters. We can handle the
  8866. # drive letters (cygwin fileutils understands them), so leave them,
  8867. # especially as we might pass files found there to a mingw objdump,
  8868. # which wouldn't understand a cygwinified path. Ahh.
  8869. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8870. else
  8871. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8872. fi
  8873. ;;
  8874. pw32*)
  8875. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8876. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8877. ;;
  8878. esac
  8879. ;;
  8880. *)
  8881. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8882. ;;
  8883. esac
  8884. dynamic_linker='Win32 ld.exe'
  8885. # FIXME: first we should search . and the directory the executable is in
  8886. shlibpath_var=PATH
  8887. ;;
  8888. darwin* | rhapsody*)
  8889. dynamic_linker="$host_os dyld"
  8890. version_type=darwin
  8891. need_lib_prefix=no
  8892. need_version=no
  8893. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8894. soname_spec='${libname}${release}${major}$shared_ext'
  8895. shlibpath_overrides_runpath=yes
  8896. shlibpath_var=DYLD_LIBRARY_PATH
  8897. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8898. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8899. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8900. ;;
  8901. dgux*)
  8902. version_type=linux
  8903. need_lib_prefix=no
  8904. need_version=no
  8905. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8906. soname_spec='${libname}${release}${shared_ext}$major'
  8907. shlibpath_var=LD_LIBRARY_PATH
  8908. ;;
  8909. freebsd1*)
  8910. dynamic_linker=no
  8911. ;;
  8912. freebsd* | dragonfly*)
  8913. # DragonFly does not have aout. When/if they implement a new
  8914. # versioning mechanism, adjust this.
  8915. if test -x /usr/bin/objformat; then
  8916. objformat=`/usr/bin/objformat`
  8917. else
  8918. case $host_os in
  8919. freebsd[123]*) objformat=aout ;;
  8920. *) objformat=elf ;;
  8921. esac
  8922. fi
  8923. version_type=freebsd-$objformat
  8924. case $version_type in
  8925. freebsd-elf*)
  8926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8927. need_version=no
  8928. need_lib_prefix=no
  8929. ;;
  8930. freebsd-*)
  8931. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8932. need_version=yes
  8933. ;;
  8934. esac
  8935. shlibpath_var=LD_LIBRARY_PATH
  8936. case $host_os in
  8937. freebsd2*)
  8938. shlibpath_overrides_runpath=yes
  8939. ;;
  8940. freebsd3.[01]* | freebsdelf3.[01]*)
  8941. shlibpath_overrides_runpath=yes
  8942. hardcode_into_libs=yes
  8943. ;;
  8944. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8945. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8946. shlibpath_overrides_runpath=no
  8947. hardcode_into_libs=yes
  8948. ;;
  8949. *) # from 4.6 on, and DragonFly
  8950. shlibpath_overrides_runpath=yes
  8951. hardcode_into_libs=yes
  8952. ;;
  8953. esac
  8954. ;;
  8955. gnu*)
  8956. version_type=linux
  8957. need_lib_prefix=no
  8958. need_version=no
  8959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8960. soname_spec='${libname}${release}${shared_ext}$major'
  8961. shlibpath_var=LD_LIBRARY_PATH
  8962. hardcode_into_libs=yes
  8963. ;;
  8964. hpux9* | hpux10* | hpux11*)
  8965. # Give a soname corresponding to the major version so that dld.sl refuses to
  8966. # link against other versions.
  8967. version_type=sunos
  8968. need_lib_prefix=no
  8969. need_version=no
  8970. case $host_cpu in
  8971. ia64*)
  8972. shrext_cmds='.so'
  8973. hardcode_into_libs=yes
  8974. dynamic_linker="$host_os dld.so"
  8975. shlibpath_var=LD_LIBRARY_PATH
  8976. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8978. soname_spec='${libname}${release}${shared_ext}$major'
  8979. if test "X$HPUX_IA64_MODE" = X32; then
  8980. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8981. else
  8982. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8983. fi
  8984. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8985. ;;
  8986. hppa*64*)
  8987. shrext_cmds='.sl'
  8988. hardcode_into_libs=yes
  8989. dynamic_linker="$host_os dld.sl"
  8990. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8991. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8993. soname_spec='${libname}${release}${shared_ext}$major'
  8994. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8995. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8996. ;;
  8997. *)
  8998. shrext_cmds='.sl'
  8999. dynamic_linker="$host_os dld.sl"
  9000. shlibpath_var=SHLIB_PATH
  9001. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9003. soname_spec='${libname}${release}${shared_ext}$major'
  9004. ;;
  9005. esac
  9006. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9007. postinstall_cmds='chmod 555 $lib'
  9008. ;;
  9009. interix[3-9]*)
  9010. version_type=linux
  9011. need_lib_prefix=no
  9012. need_version=no
  9013. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9014. soname_spec='${libname}${release}${shared_ext}$major'
  9015. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9016. shlibpath_var=LD_LIBRARY_PATH
  9017. shlibpath_overrides_runpath=no
  9018. hardcode_into_libs=yes
  9019. ;;
  9020. irix5* | irix6* | nonstopux*)
  9021. case $host_os in
  9022. nonstopux*) version_type=nonstopux ;;
  9023. *)
  9024. if test "$lt_cv_prog_gnu_ld" = yes; then
  9025. version_type=linux
  9026. else
  9027. version_type=irix
  9028. fi ;;
  9029. esac
  9030. need_lib_prefix=no
  9031. need_version=no
  9032. soname_spec='${libname}${release}${shared_ext}$major'
  9033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9034. case $host_os in
  9035. irix5* | nonstopux*)
  9036. libsuff= shlibsuff=
  9037. ;;
  9038. *)
  9039. case $LD in # libtool.m4 will add one of these switches to LD
  9040. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9041. libsuff= shlibsuff= libmagic=32-bit;;
  9042. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9043. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9044. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9045. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9046. *) libsuff= shlibsuff= libmagic=never-match;;
  9047. esac
  9048. ;;
  9049. esac
  9050. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9051. shlibpath_overrides_runpath=no
  9052. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9053. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9054. hardcode_into_libs=yes
  9055. ;;
  9056. # No shared lib support for Linux oldld, aout, or coff.
  9057. linux*oldld* | linux*aout* | linux*coff*)
  9058. dynamic_linker=no
  9059. ;;
  9060. # This must be Linux ELF.
  9061. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9062. version_type=linux
  9063. need_lib_prefix=no
  9064. need_version=no
  9065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9066. soname_spec='${libname}${release}${shared_ext}$major'
  9067. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9068. shlibpath_var=LD_LIBRARY_PATH
  9069. shlibpath_overrides_runpath=no
  9070. # Some binutils ld are patched to set DT_RUNPATH
  9071. save_LDFLAGS=$LDFLAGS
  9072. save_libdir=$libdir
  9073. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9074. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9076. /* end confdefs.h. */
  9077. int
  9078. main ()
  9079. {
  9080. ;
  9081. return 0;
  9082. }
  9083. _ACEOF
  9084. if ac_fn_c_try_link "$LINENO"; then :
  9085. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9086. shlibpath_overrides_runpath=yes
  9087. fi
  9088. fi
  9089. rm -f core conftest.err conftest.$ac_objext \
  9090. conftest$ac_exeext conftest.$ac_ext
  9091. LDFLAGS=$save_LDFLAGS
  9092. libdir=$save_libdir
  9093. # This implies no fast_install, which is unacceptable.
  9094. # Some rework will be needed to allow for fast_install
  9095. # before this can be enabled.
  9096. hardcode_into_libs=yes
  9097. # Append ld.so.conf contents to the search path
  9098. if test -f /etc/ld.so.conf; then
  9099. 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' ' '`
  9100. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9101. fi
  9102. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9103. # powerpc, because MkLinux only supported shared libraries with the
  9104. # GNU dynamic linker. Since this was broken with cross compilers,
  9105. # most powerpc-linux boxes support dynamic linking these days and
  9106. # people can always --disable-shared, the test was removed, and we
  9107. # assume the GNU/Linux dynamic linker is in use.
  9108. dynamic_linker='GNU/Linux ld.so'
  9109. ;;
  9110. netbsdelf*-gnu)
  9111. version_type=linux
  9112. need_lib_prefix=no
  9113. need_version=no
  9114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9115. soname_spec='${libname}${release}${shared_ext}$major'
  9116. shlibpath_var=LD_LIBRARY_PATH
  9117. shlibpath_overrides_runpath=no
  9118. hardcode_into_libs=yes
  9119. dynamic_linker='NetBSD ld.elf_so'
  9120. ;;
  9121. netbsd*)
  9122. version_type=sunos
  9123. need_lib_prefix=no
  9124. need_version=no
  9125. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9127. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9128. dynamic_linker='NetBSD (a.out) ld.so'
  9129. else
  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. dynamic_linker='NetBSD ld.elf_so'
  9133. fi
  9134. shlibpath_var=LD_LIBRARY_PATH
  9135. shlibpath_overrides_runpath=yes
  9136. hardcode_into_libs=yes
  9137. ;;
  9138. newsos6)
  9139. version_type=linux
  9140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9141. shlibpath_var=LD_LIBRARY_PATH
  9142. shlibpath_overrides_runpath=yes
  9143. ;;
  9144. *nto* | *qnx*)
  9145. version_type=qnx
  9146. need_lib_prefix=no
  9147. need_version=no
  9148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9149. soname_spec='${libname}${release}${shared_ext}$major'
  9150. shlibpath_var=LD_LIBRARY_PATH
  9151. shlibpath_overrides_runpath=no
  9152. hardcode_into_libs=yes
  9153. dynamic_linker='ldqnx.so'
  9154. ;;
  9155. openbsd*)
  9156. version_type=sunos
  9157. sys_lib_dlsearch_path_spec="/usr/lib"
  9158. need_lib_prefix=no
  9159. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9160. case $host_os in
  9161. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9162. *) need_version=no ;;
  9163. esac
  9164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9165. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9166. shlibpath_var=LD_LIBRARY_PATH
  9167. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9168. case $host_os in
  9169. openbsd2.[89] | openbsd2.[89].*)
  9170. shlibpath_overrides_runpath=no
  9171. ;;
  9172. *)
  9173. shlibpath_overrides_runpath=yes
  9174. ;;
  9175. esac
  9176. else
  9177. shlibpath_overrides_runpath=yes
  9178. fi
  9179. ;;
  9180. os2*)
  9181. libname_spec='$name'
  9182. shrext_cmds=".dll"
  9183. need_lib_prefix=no
  9184. library_names_spec='$libname${shared_ext} $libname.a'
  9185. dynamic_linker='OS/2 ld.exe'
  9186. shlibpath_var=LIBPATH
  9187. ;;
  9188. osf3* | osf4* | osf5*)
  9189. version_type=osf
  9190. need_lib_prefix=no
  9191. need_version=no
  9192. soname_spec='${libname}${release}${shared_ext}$major'
  9193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9194. shlibpath_var=LD_LIBRARY_PATH
  9195. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9196. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9197. ;;
  9198. rdos*)
  9199. dynamic_linker=no
  9200. ;;
  9201. solaris*)
  9202. version_type=linux
  9203. need_lib_prefix=no
  9204. need_version=no
  9205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9206. soname_spec='${libname}${release}${shared_ext}$major'
  9207. shlibpath_var=LD_LIBRARY_PATH
  9208. shlibpath_overrides_runpath=yes
  9209. hardcode_into_libs=yes
  9210. # ldd complains unless libraries are executable
  9211. postinstall_cmds='chmod +x $lib'
  9212. ;;
  9213. sunos4*)
  9214. version_type=sunos
  9215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9216. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9217. shlibpath_var=LD_LIBRARY_PATH
  9218. shlibpath_overrides_runpath=yes
  9219. if test "$with_gnu_ld" = yes; then
  9220. need_lib_prefix=no
  9221. fi
  9222. need_version=yes
  9223. ;;
  9224. sysv4 | sysv4.3*)
  9225. version_type=linux
  9226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9227. soname_spec='${libname}${release}${shared_ext}$major'
  9228. shlibpath_var=LD_LIBRARY_PATH
  9229. case $host_vendor in
  9230. sni)
  9231. shlibpath_overrides_runpath=no
  9232. need_lib_prefix=no
  9233. runpath_var=LD_RUN_PATH
  9234. ;;
  9235. siemens)
  9236. need_lib_prefix=no
  9237. ;;
  9238. motorola)
  9239. need_lib_prefix=no
  9240. need_version=no
  9241. shlibpath_overrides_runpath=no
  9242. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9243. ;;
  9244. esac
  9245. ;;
  9246. sysv4*MP*)
  9247. if test -d /usr/nec ;then
  9248. version_type=linux
  9249. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9250. soname_spec='$libname${shared_ext}.$major'
  9251. shlibpath_var=LD_LIBRARY_PATH
  9252. fi
  9253. ;;
  9254. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9255. version_type=freebsd-elf
  9256. need_lib_prefix=no
  9257. need_version=no
  9258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9259. soname_spec='${libname}${release}${shared_ext}$major'
  9260. shlibpath_var=LD_LIBRARY_PATH
  9261. shlibpath_overrides_runpath=yes
  9262. hardcode_into_libs=yes
  9263. if test "$with_gnu_ld" = yes; then
  9264. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9265. else
  9266. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9267. case $host_os in
  9268. sco3.2v5*)
  9269. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9270. ;;
  9271. esac
  9272. fi
  9273. sys_lib_dlsearch_path_spec='/usr/lib'
  9274. ;;
  9275. tpf*)
  9276. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9277. version_type=linux
  9278. need_lib_prefix=no
  9279. need_version=no
  9280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9281. shlibpath_var=LD_LIBRARY_PATH
  9282. shlibpath_overrides_runpath=no
  9283. hardcode_into_libs=yes
  9284. ;;
  9285. uts4*)
  9286. version_type=linux
  9287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9288. soname_spec='${libname}${release}${shared_ext}$major'
  9289. shlibpath_var=LD_LIBRARY_PATH
  9290. ;;
  9291. *)
  9292. dynamic_linker=no
  9293. ;;
  9294. esac
  9295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9296. $as_echo "$dynamic_linker" >&6; }
  9297. test "$dynamic_linker" = no && can_build_shared=no
  9298. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9299. if test "$GCC" = yes; then
  9300. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9301. fi
  9302. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9303. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9304. fi
  9305. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9306. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9307. fi
  9308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9309. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9310. hardcode_action=
  9311. if test -n "$hardcode_libdir_flag_spec" ||
  9312. test -n "$runpath_var" ||
  9313. test "X$hardcode_automatic" = "Xyes" ; then
  9314. # We can hardcode non-existent directories.
  9315. if test "$hardcode_direct" != no &&
  9316. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9317. # have to relink, otherwise we might link with an installed library
  9318. # when we should be linking with a yet-to-be-installed one
  9319. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9320. test "$hardcode_minus_L" != no; then
  9321. # Linking always hardcodes the temporary library directory.
  9322. hardcode_action=relink
  9323. else
  9324. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9325. hardcode_action=immediate
  9326. fi
  9327. else
  9328. # We cannot hardcode anything, or else we can only hardcode existing
  9329. # directories.
  9330. hardcode_action=unsupported
  9331. fi
  9332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9333. $as_echo "$hardcode_action" >&6; }
  9334. if test "$hardcode_action" = relink ||
  9335. test "$inherit_rpath" = yes; then
  9336. # Fast installation is not supported
  9337. enable_fast_install=no
  9338. elif test "$shlibpath_overrides_runpath" = yes ||
  9339. test "$enable_shared" = no; then
  9340. # Fast installation is not necessary
  9341. enable_fast_install=needless
  9342. fi
  9343. if test "x$enable_dlopen" != xyes; then
  9344. enable_dlopen=unknown
  9345. enable_dlopen_self=unknown
  9346. enable_dlopen_self_static=unknown
  9347. else
  9348. lt_cv_dlopen=no
  9349. lt_cv_dlopen_libs=
  9350. case $host_os in
  9351. beos*)
  9352. lt_cv_dlopen="load_add_on"
  9353. lt_cv_dlopen_libs=
  9354. lt_cv_dlopen_self=yes
  9355. ;;
  9356. mingw* | pw32* | cegcc*)
  9357. lt_cv_dlopen="LoadLibrary"
  9358. lt_cv_dlopen_libs=
  9359. ;;
  9360. cygwin*)
  9361. lt_cv_dlopen="dlopen"
  9362. lt_cv_dlopen_libs=
  9363. ;;
  9364. darwin*)
  9365. # if libdl is installed we need to link against it
  9366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9367. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9368. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9369. $as_echo_n "(cached) " >&6
  9370. else
  9371. ac_check_lib_save_LIBS=$LIBS
  9372. LIBS="-ldl $LIBS"
  9373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9374. /* end confdefs.h. */
  9375. /* Override any GCC internal prototype to avoid an error.
  9376. Use char because int might match the return type of a GCC
  9377. builtin and then its argument prototype would still apply. */
  9378. #ifdef __cplusplus
  9379. extern "C"
  9380. #endif
  9381. char dlopen ();
  9382. int
  9383. main ()
  9384. {
  9385. return dlopen ();
  9386. ;
  9387. return 0;
  9388. }
  9389. _ACEOF
  9390. if ac_fn_c_try_link "$LINENO"; then :
  9391. ac_cv_lib_dl_dlopen=yes
  9392. else
  9393. ac_cv_lib_dl_dlopen=no
  9394. fi
  9395. rm -f core conftest.err conftest.$ac_objext \
  9396. conftest$ac_exeext conftest.$ac_ext
  9397. LIBS=$ac_check_lib_save_LIBS
  9398. fi
  9399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9400. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9401. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9402. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9403. else
  9404. lt_cv_dlopen="dyld"
  9405. lt_cv_dlopen_libs=
  9406. lt_cv_dlopen_self=yes
  9407. fi
  9408. ;;
  9409. *)
  9410. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9411. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9412. lt_cv_dlopen="shl_load"
  9413. else
  9414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9415. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9416. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9417. $as_echo_n "(cached) " >&6
  9418. else
  9419. ac_check_lib_save_LIBS=$LIBS
  9420. LIBS="-ldld $LIBS"
  9421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9422. /* end confdefs.h. */
  9423. /* Override any GCC internal prototype to avoid an error.
  9424. Use char because int might match the return type of a GCC
  9425. builtin and then its argument prototype would still apply. */
  9426. #ifdef __cplusplus
  9427. extern "C"
  9428. #endif
  9429. char shl_load ();
  9430. int
  9431. main ()
  9432. {
  9433. return shl_load ();
  9434. ;
  9435. return 0;
  9436. }
  9437. _ACEOF
  9438. if ac_fn_c_try_link "$LINENO"; then :
  9439. ac_cv_lib_dld_shl_load=yes
  9440. else
  9441. ac_cv_lib_dld_shl_load=no
  9442. fi
  9443. rm -f core conftest.err conftest.$ac_objext \
  9444. conftest$ac_exeext conftest.$ac_ext
  9445. LIBS=$ac_check_lib_save_LIBS
  9446. fi
  9447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9448. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9449. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9450. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9451. else
  9452. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9453. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9454. lt_cv_dlopen="dlopen"
  9455. else
  9456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9457. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9458. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9459. $as_echo_n "(cached) " >&6
  9460. else
  9461. ac_check_lib_save_LIBS=$LIBS
  9462. LIBS="-ldl $LIBS"
  9463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9464. /* end confdefs.h. */
  9465. /* Override any GCC internal prototype to avoid an error.
  9466. Use char because int might match the return type of a GCC
  9467. builtin and then its argument prototype would still apply. */
  9468. #ifdef __cplusplus
  9469. extern "C"
  9470. #endif
  9471. char dlopen ();
  9472. int
  9473. main ()
  9474. {
  9475. return dlopen ();
  9476. ;
  9477. return 0;
  9478. }
  9479. _ACEOF
  9480. if ac_fn_c_try_link "$LINENO"; then :
  9481. ac_cv_lib_dl_dlopen=yes
  9482. else
  9483. ac_cv_lib_dl_dlopen=no
  9484. fi
  9485. rm -f core conftest.err conftest.$ac_objext \
  9486. conftest$ac_exeext conftest.$ac_ext
  9487. LIBS=$ac_check_lib_save_LIBS
  9488. fi
  9489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9490. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9491. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9492. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9493. else
  9494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9495. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9496. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9497. $as_echo_n "(cached) " >&6
  9498. else
  9499. ac_check_lib_save_LIBS=$LIBS
  9500. LIBS="-lsvld $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_svld_dlopen=yes
  9520. else
  9521. ac_cv_lib_svld_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_svld_dlopen" >&5
  9528. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9529. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9530. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9531. else
  9532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9533. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9534. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9535. $as_echo_n "(cached) " >&6
  9536. else
  9537. ac_check_lib_save_LIBS=$LIBS
  9538. LIBS="-ldld $LIBS"
  9539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9540. /* end confdefs.h. */
  9541. /* Override any GCC internal prototype to avoid an error.
  9542. Use char because int might match the return type of a GCC
  9543. builtin and then its argument prototype would still apply. */
  9544. #ifdef __cplusplus
  9545. extern "C"
  9546. #endif
  9547. char dld_link ();
  9548. int
  9549. main ()
  9550. {
  9551. return dld_link ();
  9552. ;
  9553. return 0;
  9554. }
  9555. _ACEOF
  9556. if ac_fn_c_try_link "$LINENO"; then :
  9557. ac_cv_lib_dld_dld_link=yes
  9558. else
  9559. ac_cv_lib_dld_dld_link=no
  9560. fi
  9561. rm -f core conftest.err conftest.$ac_objext \
  9562. conftest$ac_exeext conftest.$ac_ext
  9563. LIBS=$ac_check_lib_save_LIBS
  9564. fi
  9565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9566. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9567. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9568. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9569. fi
  9570. fi
  9571. fi
  9572. fi
  9573. fi
  9574. fi
  9575. ;;
  9576. esac
  9577. if test "x$lt_cv_dlopen" != xno; then
  9578. enable_dlopen=yes
  9579. else
  9580. enable_dlopen=no
  9581. fi
  9582. case $lt_cv_dlopen in
  9583. dlopen)
  9584. save_CPPFLAGS="$CPPFLAGS"
  9585. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9586. save_LDFLAGS="$LDFLAGS"
  9587. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9588. save_LIBS="$LIBS"
  9589. LIBS="$lt_cv_dlopen_libs $LIBS"
  9590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9591. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9592. if test "${lt_cv_dlopen_self+set}" = set; then :
  9593. $as_echo_n "(cached) " >&6
  9594. else
  9595. if test "$cross_compiling" = yes; then :
  9596. lt_cv_dlopen_self=cross
  9597. else
  9598. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9599. lt_status=$lt_dlunknown
  9600. cat > conftest.$ac_ext <<_LT_EOF
  9601. #line 11145 "configure"
  9602. #include "confdefs.h"
  9603. #if HAVE_DLFCN_H
  9604. #include <dlfcn.h>
  9605. #endif
  9606. #include <stdio.h>
  9607. #ifdef RTLD_GLOBAL
  9608. # define LT_DLGLOBAL RTLD_GLOBAL
  9609. #else
  9610. # ifdef DL_GLOBAL
  9611. # define LT_DLGLOBAL DL_GLOBAL
  9612. # else
  9613. # define LT_DLGLOBAL 0
  9614. # endif
  9615. #endif
  9616. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9617. find out it does not work in some platform. */
  9618. #ifndef LT_DLLAZY_OR_NOW
  9619. # ifdef RTLD_LAZY
  9620. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9621. # else
  9622. # ifdef DL_LAZY
  9623. # define LT_DLLAZY_OR_NOW DL_LAZY
  9624. # else
  9625. # ifdef RTLD_NOW
  9626. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9627. # else
  9628. # ifdef DL_NOW
  9629. # define LT_DLLAZY_OR_NOW DL_NOW
  9630. # else
  9631. # define LT_DLLAZY_OR_NOW 0
  9632. # endif
  9633. # endif
  9634. # endif
  9635. # endif
  9636. #endif
  9637. void fnord() { int i=42;}
  9638. int main ()
  9639. {
  9640. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9641. int status = $lt_dlunknown;
  9642. if (self)
  9643. {
  9644. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9645. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9646. /* dlclose (self); */
  9647. }
  9648. else
  9649. puts (dlerror ());
  9650. return status;
  9651. }
  9652. _LT_EOF
  9653. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9654. (eval $ac_link) 2>&5
  9655. ac_status=$?
  9656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9657. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9658. (./conftest; exit; ) >&5 2>/dev/null
  9659. lt_status=$?
  9660. case x$lt_status in
  9661. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9662. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9663. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9664. esac
  9665. else :
  9666. # compilation failed
  9667. lt_cv_dlopen_self=no
  9668. fi
  9669. fi
  9670. rm -fr conftest*
  9671. fi
  9672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9673. $as_echo "$lt_cv_dlopen_self" >&6; }
  9674. if test "x$lt_cv_dlopen_self" = xyes; then
  9675. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9677. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9678. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9679. $as_echo_n "(cached) " >&6
  9680. else
  9681. if test "$cross_compiling" = yes; then :
  9682. lt_cv_dlopen_self_static=cross
  9683. else
  9684. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9685. lt_status=$lt_dlunknown
  9686. cat > conftest.$ac_ext <<_LT_EOF
  9687. #line 11241 "configure"
  9688. #include "confdefs.h"
  9689. #if HAVE_DLFCN_H
  9690. #include <dlfcn.h>
  9691. #endif
  9692. #include <stdio.h>
  9693. #ifdef RTLD_GLOBAL
  9694. # define LT_DLGLOBAL RTLD_GLOBAL
  9695. #else
  9696. # ifdef DL_GLOBAL
  9697. # define LT_DLGLOBAL DL_GLOBAL
  9698. # else
  9699. # define LT_DLGLOBAL 0
  9700. # endif
  9701. #endif
  9702. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9703. find out it does not work in some platform. */
  9704. #ifndef LT_DLLAZY_OR_NOW
  9705. # ifdef RTLD_LAZY
  9706. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9707. # else
  9708. # ifdef DL_LAZY
  9709. # define LT_DLLAZY_OR_NOW DL_LAZY
  9710. # else
  9711. # ifdef RTLD_NOW
  9712. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9713. # else
  9714. # ifdef DL_NOW
  9715. # define LT_DLLAZY_OR_NOW DL_NOW
  9716. # else
  9717. # define LT_DLLAZY_OR_NOW 0
  9718. # endif
  9719. # endif
  9720. # endif
  9721. # endif
  9722. #endif
  9723. void fnord() { int i=42;}
  9724. int main ()
  9725. {
  9726. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9727. int status = $lt_dlunknown;
  9728. if (self)
  9729. {
  9730. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9731. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9732. /* dlclose (self); */
  9733. }
  9734. else
  9735. puts (dlerror ());
  9736. return status;
  9737. }
  9738. _LT_EOF
  9739. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9740. (eval $ac_link) 2>&5
  9741. ac_status=$?
  9742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9743. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9744. (./conftest; exit; ) >&5 2>/dev/null
  9745. lt_status=$?
  9746. case x$lt_status in
  9747. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9748. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9749. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9750. esac
  9751. else :
  9752. # compilation failed
  9753. lt_cv_dlopen_self_static=no
  9754. fi
  9755. fi
  9756. rm -fr conftest*
  9757. fi
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9759. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9760. fi
  9761. CPPFLAGS="$save_CPPFLAGS"
  9762. LDFLAGS="$save_LDFLAGS"
  9763. LIBS="$save_LIBS"
  9764. ;;
  9765. esac
  9766. case $lt_cv_dlopen_self in
  9767. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9768. *) enable_dlopen_self=unknown ;;
  9769. esac
  9770. case $lt_cv_dlopen_self_static in
  9771. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9772. *) enable_dlopen_self_static=unknown ;;
  9773. esac
  9774. fi
  9775. striplib=
  9776. old_striplib=
  9777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9778. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9779. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9780. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9781. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9783. $as_echo "yes" >&6; }
  9784. else
  9785. # FIXME - insert some real tests, host_os isn't really good enough
  9786. case $host_os in
  9787. darwin*)
  9788. if test -n "$STRIP" ; then
  9789. striplib="$STRIP -x"
  9790. old_striplib="$STRIP -S"
  9791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9792. $as_echo "yes" >&6; }
  9793. else
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9795. $as_echo "no" >&6; }
  9796. fi
  9797. ;;
  9798. *)
  9799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9800. $as_echo "no" >&6; }
  9801. ;;
  9802. esac
  9803. fi
  9804. # Report which library types will actually be built
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9806. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9808. $as_echo "$can_build_shared" >&6; }
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9810. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9811. test "$can_build_shared" = "no" && enable_shared=no
  9812. # On AIX, shared libraries and static libraries use the same namespace, and
  9813. # are all built from PIC.
  9814. case $host_os in
  9815. aix3*)
  9816. test "$enable_shared" = yes && enable_static=no
  9817. if test -n "$RANLIB"; then
  9818. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9819. postinstall_cmds='$RANLIB $lib'
  9820. fi
  9821. ;;
  9822. aix[4-9]*)
  9823. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9824. test "$enable_shared" = yes && enable_static=no
  9825. fi
  9826. ;;
  9827. esac
  9828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9829. $as_echo "$enable_shared" >&6; }
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9831. $as_echo_n "checking whether to build static libraries... " >&6; }
  9832. # Make sure either enable_shared or enable_static is yes.
  9833. test "$enable_shared" = yes || enable_static=yes
  9834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9835. $as_echo "$enable_static" >&6; }
  9836. fi
  9837. ac_ext=c
  9838. ac_cpp='$CPP $CPPFLAGS'
  9839. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9840. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9841. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9842. CC="$lt_save_CC"
  9843. ac_ext=cpp
  9844. ac_cpp='$CXXCPP $CPPFLAGS'
  9845. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9846. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9847. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9848. archive_cmds_need_lc_CXX=no
  9849. allow_undefined_flag_CXX=
  9850. always_export_symbols_CXX=no
  9851. archive_expsym_cmds_CXX=
  9852. compiler_needs_object_CXX=no
  9853. export_dynamic_flag_spec_CXX=
  9854. hardcode_direct_CXX=no
  9855. hardcode_direct_absolute_CXX=no
  9856. hardcode_libdir_flag_spec_CXX=
  9857. hardcode_libdir_flag_spec_ld_CXX=
  9858. hardcode_libdir_separator_CXX=
  9859. hardcode_minus_L_CXX=no
  9860. hardcode_shlibpath_var_CXX=unsupported
  9861. hardcode_automatic_CXX=no
  9862. inherit_rpath_CXX=no
  9863. module_cmds_CXX=
  9864. module_expsym_cmds_CXX=
  9865. link_all_deplibs_CXX=unknown
  9866. old_archive_cmds_CXX=$old_archive_cmds
  9867. no_undefined_flag_CXX=
  9868. whole_archive_flag_spec_CXX=
  9869. enable_shared_with_static_runtimes_CXX=no
  9870. # Source file extension for C++ test sources.
  9871. ac_ext=cpp
  9872. # Object file extension for compiled C++ test sources.
  9873. objext=o
  9874. objext_CXX=$objext
  9875. # No sense in running all these tests if we already determined that
  9876. # the CXX compiler isn't working. Some variables (like enable_shared)
  9877. # are currently assumed to apply to all compilers on this platform,
  9878. # and will be corrupted by setting them based on a non-working compiler.
  9879. if test "$_lt_caught_CXX_error" != yes; then
  9880. # Code to be used in simple compile tests
  9881. lt_simple_compile_test_code="int some_variable = 0;"
  9882. # Code to be used in simple link tests
  9883. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9884. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9885. # If no C compiler was specified, use CC.
  9886. LTCC=${LTCC-"$CC"}
  9887. # If no C compiler flags were specified, use CFLAGS.
  9888. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9889. # Allow CC to be a program name with arguments.
  9890. compiler=$CC
  9891. # save warnings/boilerplate of simple test code
  9892. ac_outfile=conftest.$ac_objext
  9893. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9894. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9895. _lt_compiler_boilerplate=`cat conftest.err`
  9896. $RM conftest*
  9897. ac_outfile=conftest.$ac_objext
  9898. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9899. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9900. _lt_linker_boilerplate=`cat conftest.err`
  9901. $RM -r conftest*
  9902. # Allow CC to be a program name with arguments.
  9903. lt_save_CC=$CC
  9904. lt_save_LD=$LD
  9905. lt_save_GCC=$GCC
  9906. GCC=$GXX
  9907. lt_save_with_gnu_ld=$with_gnu_ld
  9908. lt_save_path_LD=$lt_cv_path_LD
  9909. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9910. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9911. else
  9912. $as_unset lt_cv_prog_gnu_ld
  9913. fi
  9914. if test -n "${lt_cv_path_LDCXX+set}"; then
  9915. lt_cv_path_LD=$lt_cv_path_LDCXX
  9916. else
  9917. $as_unset lt_cv_path_LD
  9918. fi
  9919. test -z "${LDCXX+set}" || LD=$LDCXX
  9920. CC=${CXX-"c++"}
  9921. compiler=$CC
  9922. compiler_CXX=$CC
  9923. for cc_temp in $compiler""; do
  9924. case $cc_temp in
  9925. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9926. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9927. \-*) ;;
  9928. *) break;;
  9929. esac
  9930. done
  9931. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9932. if test -n "$compiler"; then
  9933. # We don't want -fno-exception when compiling C++ code, so set the
  9934. # no_builtin_flag separately
  9935. if test "$GXX" = yes; then
  9936. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9937. else
  9938. lt_prog_compiler_no_builtin_flag_CXX=
  9939. fi
  9940. if test "$GXX" = yes; then
  9941. # Set up default GNU C++ configuration
  9942. # Check whether --with-gnu-ld was given.
  9943. if test "${with_gnu_ld+set}" = set; then :
  9944. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9945. else
  9946. with_gnu_ld=no
  9947. fi
  9948. ac_prog=ld
  9949. if test "$GCC" = yes; then
  9950. # Check if gcc -print-prog-name=ld gives a path.
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9952. $as_echo_n "checking for ld used by $CC... " >&6; }
  9953. case $host in
  9954. *-*-mingw*)
  9955. # gcc leaves a trailing carriage return which upsets mingw
  9956. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9957. *)
  9958. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9959. esac
  9960. case $ac_prog in
  9961. # Accept absolute paths.
  9962. [\\/]* | ?:[\\/]*)
  9963. re_direlt='/[^/][^/]*/\.\./'
  9964. # Canonicalize the pathname of ld
  9965. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9966. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9967. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9968. done
  9969. test -z "$LD" && LD="$ac_prog"
  9970. ;;
  9971. "")
  9972. # If it fails, then pretend we aren't using GCC.
  9973. ac_prog=ld
  9974. ;;
  9975. *)
  9976. # If it is relative, then search for the first ld in PATH.
  9977. with_gnu_ld=unknown
  9978. ;;
  9979. esac
  9980. elif test "$with_gnu_ld" = yes; then
  9981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9982. $as_echo_n "checking for GNU ld... " >&6; }
  9983. else
  9984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9985. $as_echo_n "checking for non-GNU ld... " >&6; }
  9986. fi
  9987. if test "${lt_cv_path_LD+set}" = set; then :
  9988. $as_echo_n "(cached) " >&6
  9989. else
  9990. if test -z "$LD"; then
  9991. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9992. for ac_dir in $PATH; do
  9993. IFS="$lt_save_ifs"
  9994. test -z "$ac_dir" && ac_dir=.
  9995. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9996. lt_cv_path_LD="$ac_dir/$ac_prog"
  9997. # Check to see if the program is GNU ld. I'd rather use --version,
  9998. # but apparently some variants of GNU ld only accept -v.
  9999. # Break only if it was the GNU/non-GNU ld that we prefer.
  10000. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10001. *GNU* | *'with BFD'*)
  10002. test "$with_gnu_ld" != no && break
  10003. ;;
  10004. *)
  10005. test "$with_gnu_ld" != yes && break
  10006. ;;
  10007. esac
  10008. fi
  10009. done
  10010. IFS="$lt_save_ifs"
  10011. else
  10012. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10013. fi
  10014. fi
  10015. LD="$lt_cv_path_LD"
  10016. if test -n "$LD"; then
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10018. $as_echo "$LD" >&6; }
  10019. else
  10020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10021. $as_echo "no" >&6; }
  10022. fi
  10023. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10025. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10026. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10027. $as_echo_n "(cached) " >&6
  10028. else
  10029. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10030. case `$LD -v 2>&1 </dev/null` in
  10031. *GNU* | *'with BFD'*)
  10032. lt_cv_prog_gnu_ld=yes
  10033. ;;
  10034. *)
  10035. lt_cv_prog_gnu_ld=no
  10036. ;;
  10037. esac
  10038. fi
  10039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10040. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10041. with_gnu_ld=$lt_cv_prog_gnu_ld
  10042. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10043. # archiving commands below assume that GNU ld is being used.
  10044. if test "$with_gnu_ld" = yes; then
  10045. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10046. 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'
  10047. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10048. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10049. # If archive_cmds runs LD, not CC, wlarc should be empty
  10050. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10051. # investigate it a little bit more. (MM)
  10052. wlarc='${wl}'
  10053. # ancient GNU ld didn't support --whole-archive et. al.
  10054. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10055. $GREP 'no-whole-archive' > /dev/null; then
  10056. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10057. else
  10058. whole_archive_flag_spec_CXX=
  10059. fi
  10060. else
  10061. with_gnu_ld=no
  10062. wlarc=
  10063. # A generic and very simple default shared library creation
  10064. # command for GNU C++ for the case where it uses the native
  10065. # linker, instead of GNU ld. If possible, this setting should
  10066. # overridden to take advantage of the native linker features on
  10067. # the platform it is being used on.
  10068. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10069. fi
  10070. # Commands to make compiler produce verbose output that lists
  10071. # what "hidden" libraries, object files and flags are used when
  10072. # linking a shared library.
  10073. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10074. else
  10075. GXX=no
  10076. with_gnu_ld=no
  10077. wlarc=
  10078. fi
  10079. # PORTME: fill in a description of your system's C++ link characteristics
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10081. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10082. ld_shlibs_CXX=yes
  10083. case $host_os in
  10084. aix3*)
  10085. # FIXME: insert proper C++ library support
  10086. ld_shlibs_CXX=no
  10087. ;;
  10088. aix[4-9]*)
  10089. if test "$host_cpu" = ia64; then
  10090. # On IA64, the linker does run time linking by default, so we don't
  10091. # have to do anything special.
  10092. aix_use_runtimelinking=no
  10093. exp_sym_flag='-Bexport'
  10094. no_entry_flag=""
  10095. else
  10096. aix_use_runtimelinking=no
  10097. # Test if we are trying to use run time linking or normal
  10098. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10099. # need to do runtime linking.
  10100. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10101. for ld_flag in $LDFLAGS; do
  10102. case $ld_flag in
  10103. *-brtl*)
  10104. aix_use_runtimelinking=yes
  10105. break
  10106. ;;
  10107. esac
  10108. done
  10109. ;;
  10110. esac
  10111. exp_sym_flag='-bexport'
  10112. no_entry_flag='-bnoentry'
  10113. fi
  10114. # When large executables or shared objects are built, AIX ld can
  10115. # have problems creating the table of contents. If linking a library
  10116. # or program results in "error TOC overflow" add -mminimal-toc to
  10117. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10118. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10119. archive_cmds_CXX=''
  10120. hardcode_direct_CXX=yes
  10121. hardcode_direct_absolute_CXX=yes
  10122. hardcode_libdir_separator_CXX=':'
  10123. link_all_deplibs_CXX=yes
  10124. file_list_spec_CXX='${wl}-f,'
  10125. if test "$GXX" = yes; then
  10126. case $host_os in aix4.[012]|aix4.[012].*)
  10127. # We only want to do this on AIX 4.2 and lower, the check
  10128. # below for broken collect2 doesn't work under 4.3+
  10129. collect2name=`${CC} -print-prog-name=collect2`
  10130. if test -f "$collect2name" &&
  10131. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10132. then
  10133. # We have reworked collect2
  10134. :
  10135. else
  10136. # We have old collect2
  10137. hardcode_direct_CXX=unsupported
  10138. # It fails to find uninstalled libraries when the uninstalled
  10139. # path is not listed in the libpath. Setting hardcode_minus_L
  10140. # to unsupported forces relinking
  10141. hardcode_minus_L_CXX=yes
  10142. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10143. hardcode_libdir_separator_CXX=
  10144. fi
  10145. esac
  10146. shared_flag='-shared'
  10147. if test "$aix_use_runtimelinking" = yes; then
  10148. shared_flag="$shared_flag "'${wl}-G'
  10149. fi
  10150. else
  10151. # not using gcc
  10152. if test "$host_cpu" = ia64; then
  10153. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10154. # chokes on -Wl,-G. The following line is correct:
  10155. shared_flag='-G'
  10156. else
  10157. if test "$aix_use_runtimelinking" = yes; then
  10158. shared_flag='${wl}-G'
  10159. else
  10160. shared_flag='${wl}-bM:SRE'
  10161. fi
  10162. fi
  10163. fi
  10164. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10165. # It seems that -bexpall does not export symbols beginning with
  10166. # underscore (_), so it is better to generate a list of symbols to
  10167. # export.
  10168. always_export_symbols_CXX=yes
  10169. if test "$aix_use_runtimelinking" = yes; then
  10170. # Warning - without using the other runtime loading flags (-brtl),
  10171. # -berok will link without error, but may produce a broken library.
  10172. allow_undefined_flag_CXX='-berok'
  10173. # Determine the default libpath from the value encoded in an empty
  10174. # executable.
  10175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10176. /* end confdefs.h. */
  10177. int
  10178. main ()
  10179. {
  10180. ;
  10181. return 0;
  10182. }
  10183. _ACEOF
  10184. if ac_fn_cxx_try_link "$LINENO"; then :
  10185. lt_aix_libpath_sed='
  10186. /Import File Strings/,/^$/ {
  10187. /^0/ {
  10188. s/^0 *\(.*\)$/\1/
  10189. p
  10190. }
  10191. }'
  10192. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10193. # Check for a 64-bit object if we didn't find anything.
  10194. if test -z "$aix_libpath"; then
  10195. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10196. fi
  10197. fi
  10198. rm -f core conftest.err conftest.$ac_objext \
  10199. conftest$ac_exeext conftest.$ac_ext
  10200. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10201. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10202. 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"
  10203. else
  10204. if test "$host_cpu" = ia64; then
  10205. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10206. allow_undefined_flag_CXX="-z nodefs"
  10207. 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"
  10208. else
  10209. # Determine the default libpath from the value encoded in an
  10210. # empty executable.
  10211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10212. /* end confdefs.h. */
  10213. int
  10214. main ()
  10215. {
  10216. ;
  10217. return 0;
  10218. }
  10219. _ACEOF
  10220. if ac_fn_cxx_try_link "$LINENO"; then :
  10221. lt_aix_libpath_sed='
  10222. /Import File Strings/,/^$/ {
  10223. /^0/ {
  10224. s/^0 *\(.*\)$/\1/
  10225. p
  10226. }
  10227. }'
  10228. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10229. # Check for a 64-bit object if we didn't find anything.
  10230. if test -z "$aix_libpath"; then
  10231. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10232. fi
  10233. fi
  10234. rm -f core conftest.err conftest.$ac_objext \
  10235. conftest$ac_exeext conftest.$ac_ext
  10236. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10237. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10238. # Warning - without using the other run time loading flags,
  10239. # -berok will link without error, but may produce a broken library.
  10240. no_undefined_flag_CXX=' ${wl}-bernotok'
  10241. allow_undefined_flag_CXX=' ${wl}-berok'
  10242. # Exported symbols can be pulled into shared objects from archives
  10243. whole_archive_flag_spec_CXX='$convenience'
  10244. archive_cmds_need_lc_CXX=yes
  10245. # This is similar to how AIX traditionally builds its shared
  10246. # libraries.
  10247. 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'
  10248. fi
  10249. fi
  10250. ;;
  10251. beos*)
  10252. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10253. allow_undefined_flag_CXX=unsupported
  10254. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10255. # support --undefined. This deserves some investigation. FIXME
  10256. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10257. else
  10258. ld_shlibs_CXX=no
  10259. fi
  10260. ;;
  10261. chorus*)
  10262. case $cc_basename in
  10263. *)
  10264. # FIXME: insert proper C++ library support
  10265. ld_shlibs_CXX=no
  10266. ;;
  10267. esac
  10268. ;;
  10269. cygwin* | mingw* | pw32* | cegcc*)
  10270. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10271. # as there is no search path for DLLs.
  10272. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10273. allow_undefined_flag_CXX=unsupported
  10274. always_export_symbols_CXX=no
  10275. enable_shared_with_static_runtimes_CXX=yes
  10276. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10277. 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'
  10278. # If the export-symbols file already is a .def file (1st line
  10279. # is EXPORTS), use it as is; otherwise, prepend...
  10280. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10281. cp $export_symbols $output_objdir/$soname.def;
  10282. else
  10283. echo EXPORTS > $output_objdir/$soname.def;
  10284. cat $export_symbols >> $output_objdir/$soname.def;
  10285. fi~
  10286. $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'
  10287. else
  10288. ld_shlibs_CXX=no
  10289. fi
  10290. ;;
  10291. darwin* | rhapsody*)
  10292. archive_cmds_need_lc_CXX=no
  10293. hardcode_direct_CXX=no
  10294. hardcode_automatic_CXX=yes
  10295. hardcode_shlibpath_var_CXX=unsupported
  10296. whole_archive_flag_spec_CXX=''
  10297. link_all_deplibs_CXX=yes
  10298. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10299. case $cc_basename in
  10300. ifort*) _lt_dar_can_shared=yes ;;
  10301. *) _lt_dar_can_shared=$GCC ;;
  10302. esac
  10303. if test "$_lt_dar_can_shared" = "yes"; then
  10304. output_verbose_link_cmd=echo
  10305. 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}"
  10306. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10307. 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}"
  10308. 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}"
  10309. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10310. 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}"
  10311. 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}"
  10312. fi
  10313. else
  10314. ld_shlibs_CXX=no
  10315. fi
  10316. ;;
  10317. dgux*)
  10318. case $cc_basename in
  10319. ec++*)
  10320. # FIXME: insert proper C++ library support
  10321. ld_shlibs_CXX=no
  10322. ;;
  10323. ghcx*)
  10324. # Green Hills C++ Compiler
  10325. # FIXME: insert proper C++ library support
  10326. ld_shlibs_CXX=no
  10327. ;;
  10328. *)
  10329. # FIXME: insert proper C++ library support
  10330. ld_shlibs_CXX=no
  10331. ;;
  10332. esac
  10333. ;;
  10334. freebsd[12]*)
  10335. # C++ shared libraries reported to be fairly broken before
  10336. # switch to ELF
  10337. ld_shlibs_CXX=no
  10338. ;;
  10339. freebsd-elf*)
  10340. archive_cmds_need_lc_CXX=no
  10341. ;;
  10342. freebsd* | dragonfly*)
  10343. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10344. # conventions
  10345. ld_shlibs_CXX=yes
  10346. ;;
  10347. gnu*)
  10348. ;;
  10349. hpux9*)
  10350. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10351. hardcode_libdir_separator_CXX=:
  10352. export_dynamic_flag_spec_CXX='${wl}-E'
  10353. hardcode_direct_CXX=yes
  10354. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10355. # but as the default
  10356. # location of the library.
  10357. case $cc_basename in
  10358. CC*)
  10359. # FIXME: insert proper C++ library support
  10360. ld_shlibs_CXX=no
  10361. ;;
  10362. aCC*)
  10363. 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'
  10364. # Commands to make compiler produce verbose output that lists
  10365. # what "hidden" libraries, object files and flags are used when
  10366. # linking a shared library.
  10367. #
  10368. # There doesn't appear to be a way to prevent this compiler from
  10369. # explicitly linking system object files so we need to strip them
  10370. # from the output so that they don't get included in the library
  10371. # dependencies.
  10372. 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'
  10373. ;;
  10374. *)
  10375. if test "$GXX" = yes; then
  10376. 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'
  10377. else
  10378. # FIXME: insert proper C++ library support
  10379. ld_shlibs_CXX=no
  10380. fi
  10381. ;;
  10382. esac
  10383. ;;
  10384. hpux10*|hpux11*)
  10385. if test $with_gnu_ld = no; then
  10386. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10387. hardcode_libdir_separator_CXX=:
  10388. case $host_cpu in
  10389. hppa*64*|ia64*)
  10390. ;;
  10391. *)
  10392. export_dynamic_flag_spec_CXX='${wl}-E'
  10393. ;;
  10394. esac
  10395. fi
  10396. case $host_cpu in
  10397. hppa*64*|ia64*)
  10398. hardcode_direct_CXX=no
  10399. hardcode_shlibpath_var_CXX=no
  10400. ;;
  10401. *)
  10402. hardcode_direct_CXX=yes
  10403. hardcode_direct_absolute_CXX=yes
  10404. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10405. # but as the default
  10406. # location of the library.
  10407. ;;
  10408. esac
  10409. case $cc_basename in
  10410. CC*)
  10411. # FIXME: insert proper C++ library support
  10412. ld_shlibs_CXX=no
  10413. ;;
  10414. aCC*)
  10415. case $host_cpu in
  10416. hppa*64*)
  10417. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10418. ;;
  10419. ia64*)
  10420. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10421. ;;
  10422. *)
  10423. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10424. ;;
  10425. esac
  10426. # Commands to make compiler produce verbose output that lists
  10427. # what "hidden" libraries, object files and flags are used when
  10428. # linking a shared library.
  10429. #
  10430. # There doesn't appear to be a way to prevent this compiler from
  10431. # explicitly linking system object files so we need to strip them
  10432. # from the output so that they don't get included in the library
  10433. # dependencies.
  10434. 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'
  10435. ;;
  10436. *)
  10437. if test "$GXX" = yes; then
  10438. if test $with_gnu_ld = no; then
  10439. case $host_cpu in
  10440. hppa*64*)
  10441. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10442. ;;
  10443. ia64*)
  10444. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10445. ;;
  10446. *)
  10447. 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'
  10448. ;;
  10449. esac
  10450. fi
  10451. else
  10452. # FIXME: insert proper C++ library support
  10453. ld_shlibs_CXX=no
  10454. fi
  10455. ;;
  10456. esac
  10457. ;;
  10458. interix[3-9]*)
  10459. hardcode_direct_CXX=no
  10460. hardcode_shlibpath_var_CXX=no
  10461. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10462. export_dynamic_flag_spec_CXX='${wl}-E'
  10463. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10464. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10465. # default) and relocated if they conflict, which is a slow very memory
  10466. # consuming and fragmenting process. To avoid this, we pick a random,
  10467. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10468. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10469. 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'
  10470. 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'
  10471. ;;
  10472. irix5* | irix6*)
  10473. case $cc_basename in
  10474. CC*)
  10475. # SGI C++
  10476. 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'
  10477. # Archives containing C++ object files must be created using
  10478. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10479. # necessary to make sure instantiated templates are included
  10480. # in the archive.
  10481. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10482. ;;
  10483. *)
  10484. if test "$GXX" = yes; then
  10485. if test "$with_gnu_ld" = no; then
  10486. 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'
  10487. else
  10488. 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'
  10489. fi
  10490. fi
  10491. link_all_deplibs_CXX=yes
  10492. ;;
  10493. esac
  10494. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10495. hardcode_libdir_separator_CXX=:
  10496. inherit_rpath_CXX=yes
  10497. ;;
  10498. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10499. case $cc_basename in
  10500. KCC*)
  10501. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10502. # KCC will only create a shared library if the output file
  10503. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10504. # to its proper name (with version) after linking.
  10505. 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'
  10506. 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'
  10507. # Commands to make compiler produce verbose output that lists
  10508. # what "hidden" libraries, object files and flags are used when
  10509. # linking a shared library.
  10510. #
  10511. # There doesn't appear to be a way to prevent this compiler from
  10512. # explicitly linking system object files so we need to strip them
  10513. # from the output so that they don't get included in the library
  10514. # dependencies.
  10515. 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'
  10516. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10517. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10518. # Archives containing C++ object files must be created using
  10519. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10520. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10521. ;;
  10522. icpc* | ecpc* )
  10523. # Intel C++
  10524. with_gnu_ld=yes
  10525. # version 8.0 and above of icpc choke on multiply defined symbols
  10526. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10527. # earlier do not add the objects themselves.
  10528. case `$CC -V 2>&1` in
  10529. *"Version 7."*)
  10530. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10531. 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'
  10532. ;;
  10533. *) # Version 8.0 or newer
  10534. tmp_idyn=
  10535. case $host_cpu in
  10536. ia64*) tmp_idyn=' -i_dynamic';;
  10537. esac
  10538. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10539. 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'
  10540. ;;
  10541. esac
  10542. archive_cmds_need_lc_CXX=no
  10543. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10544. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10545. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10546. ;;
  10547. pgCC* | pgcpp*)
  10548. # Portland Group C++ compiler
  10549. case `$CC -V` in
  10550. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10551. prelink_cmds_CXX='tpldir=Template.dir~
  10552. rm -rf $tpldir~
  10553. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10554. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10555. old_archive_cmds_CXX='tpldir=Template.dir~
  10556. rm -rf $tpldir~
  10557. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10558. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10559. $RANLIB $oldlib'
  10560. archive_cmds_CXX='tpldir=Template.dir~
  10561. rm -rf $tpldir~
  10562. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10563. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10564. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10565. rm -rf $tpldir~
  10566. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10567. $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'
  10568. ;;
  10569. *) # Version 6 will use weak symbols
  10570. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10571. 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'
  10572. ;;
  10573. esac
  10574. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10575. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10576. 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'
  10577. ;;
  10578. cxx*)
  10579. # Compaq C++
  10580. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10581. 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'
  10582. runpath_var=LD_RUN_PATH
  10583. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10584. hardcode_libdir_separator_CXX=:
  10585. # Commands to make compiler produce verbose output that lists
  10586. # what "hidden" libraries, object files and flags are used when
  10587. # linking a shared library.
  10588. #
  10589. # There doesn't appear to be a way to prevent this compiler from
  10590. # explicitly linking system object files so we need to strip them
  10591. # from the output so that they don't get included in the library
  10592. # dependencies.
  10593. 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'
  10594. ;;
  10595. xl*)
  10596. # IBM XL 8.0 on PPC, with GNU ld
  10597. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10598. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10599. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10600. if test "x$supports_anon_versioning" = xyes; then
  10601. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10602. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10603. echo "local: *; };" >> $output_objdir/$libname.ver~
  10604. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10605. fi
  10606. ;;
  10607. *)
  10608. case `$CC -V 2>&1 | sed 5q` in
  10609. *Sun\ C*)
  10610. # Sun C++ 5.9
  10611. no_undefined_flag_CXX=' -zdefs'
  10612. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10613. 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'
  10614. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10615. 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'
  10616. compiler_needs_object_CXX=yes
  10617. # Not sure whether something based on
  10618. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10619. # would be better.
  10620. output_verbose_link_cmd='echo'
  10621. # Archives containing C++ object files must be created using
  10622. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10623. # necessary to make sure instantiated templates are included
  10624. # in the archive.
  10625. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10626. ;;
  10627. esac
  10628. ;;
  10629. esac
  10630. ;;
  10631. lynxos*)
  10632. # FIXME: insert proper C++ library support
  10633. ld_shlibs_CXX=no
  10634. ;;
  10635. m88k*)
  10636. # FIXME: insert proper C++ library support
  10637. ld_shlibs_CXX=no
  10638. ;;
  10639. mvs*)
  10640. case $cc_basename in
  10641. cxx*)
  10642. # FIXME: insert proper C++ library support
  10643. ld_shlibs_CXX=no
  10644. ;;
  10645. *)
  10646. # FIXME: insert proper C++ library support
  10647. ld_shlibs_CXX=no
  10648. ;;
  10649. esac
  10650. ;;
  10651. netbsd*)
  10652. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10653. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10654. wlarc=
  10655. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10656. hardcode_direct_CXX=yes
  10657. hardcode_shlibpath_var_CXX=no
  10658. fi
  10659. # Workaround some broken pre-1.5 toolchains
  10660. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10661. ;;
  10662. *nto* | *qnx*)
  10663. ld_shlibs_CXX=yes
  10664. ;;
  10665. openbsd2*)
  10666. # C++ shared libraries are fairly broken
  10667. ld_shlibs_CXX=no
  10668. ;;
  10669. openbsd*)
  10670. if test -f /usr/libexec/ld.so; then
  10671. hardcode_direct_CXX=yes
  10672. hardcode_shlibpath_var_CXX=no
  10673. hardcode_direct_absolute_CXX=yes
  10674. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10675. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10676. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10677. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10678. export_dynamic_flag_spec_CXX='${wl}-E'
  10679. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10680. fi
  10681. output_verbose_link_cmd=echo
  10682. else
  10683. ld_shlibs_CXX=no
  10684. fi
  10685. ;;
  10686. osf3* | osf4* | osf5*)
  10687. case $cc_basename in
  10688. KCC*)
  10689. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10690. # KCC will only create a shared library if the output file
  10691. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10692. # to its proper name (with version) after linking.
  10693. 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'
  10694. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10695. hardcode_libdir_separator_CXX=:
  10696. # Archives containing C++ object files must be created using
  10697. # the KAI C++ compiler.
  10698. case $host in
  10699. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10700. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10701. esac
  10702. ;;
  10703. RCC*)
  10704. # Rational C++ 2.4.1
  10705. # FIXME: insert proper C++ library support
  10706. ld_shlibs_CXX=no
  10707. ;;
  10708. cxx*)
  10709. case $host in
  10710. osf3*)
  10711. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10712. 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'
  10713. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10714. ;;
  10715. *)
  10716. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10717. 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'
  10718. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10719. echo "-hidden">> $lib.exp~
  10720. $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~
  10721. $RM $lib.exp'
  10722. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10723. ;;
  10724. esac
  10725. hardcode_libdir_separator_CXX=:
  10726. # Commands to make compiler produce verbose output that lists
  10727. # what "hidden" libraries, object files and flags are used when
  10728. # linking a shared library.
  10729. #
  10730. # There doesn't appear to be a way to prevent this compiler from
  10731. # explicitly linking system object files so we need to strip them
  10732. # from the output so that they don't get included in the library
  10733. # dependencies.
  10734. 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'
  10735. ;;
  10736. *)
  10737. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10738. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10739. case $host in
  10740. osf3*)
  10741. 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'
  10742. ;;
  10743. *)
  10744. 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'
  10745. ;;
  10746. esac
  10747. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10748. hardcode_libdir_separator_CXX=:
  10749. # Commands to make compiler produce verbose output that lists
  10750. # what "hidden" libraries, object files and flags are used when
  10751. # linking a shared library.
  10752. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10753. else
  10754. # FIXME: insert proper C++ library support
  10755. ld_shlibs_CXX=no
  10756. fi
  10757. ;;
  10758. esac
  10759. ;;
  10760. psos*)
  10761. # FIXME: insert proper C++ library support
  10762. ld_shlibs_CXX=no
  10763. ;;
  10764. sunos4*)
  10765. case $cc_basename in
  10766. CC*)
  10767. # Sun C++ 4.x
  10768. # FIXME: insert proper C++ library support
  10769. ld_shlibs_CXX=no
  10770. ;;
  10771. lcc*)
  10772. # Lucid
  10773. # FIXME: insert proper C++ library support
  10774. ld_shlibs_CXX=no
  10775. ;;
  10776. *)
  10777. # FIXME: insert proper C++ library support
  10778. ld_shlibs_CXX=no
  10779. ;;
  10780. esac
  10781. ;;
  10782. solaris*)
  10783. case $cc_basename in
  10784. CC*)
  10785. # Sun C++ 4.2, 5.x and Centerline C++
  10786. archive_cmds_need_lc_CXX=yes
  10787. no_undefined_flag_CXX=' -zdefs'
  10788. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10789. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10790. $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'
  10791. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10792. hardcode_shlibpath_var_CXX=no
  10793. case $host_os in
  10794. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10795. *)
  10796. # The compiler driver will combine and reorder linker options,
  10797. # but understands `-z linker_flag'.
  10798. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10799. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10800. ;;
  10801. esac
  10802. link_all_deplibs_CXX=yes
  10803. output_verbose_link_cmd='echo'
  10804. # Archives containing C++ object files must be created using
  10805. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10806. # necessary to make sure instantiated templates are included
  10807. # in the archive.
  10808. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10809. ;;
  10810. gcx*)
  10811. # Green Hills C++ Compiler
  10812. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10813. # The C++ compiler must be used to create the archive.
  10814. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10815. ;;
  10816. *)
  10817. # GNU C++ compiler with Solaris linker
  10818. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10819. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10820. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10821. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10822. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10823. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10824. # Commands to make compiler produce verbose output that lists
  10825. # what "hidden" libraries, object files and flags are used when
  10826. # linking a shared library.
  10827. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10828. else
  10829. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10830. # platform.
  10831. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10832. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10833. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10834. # Commands to make compiler produce verbose output that lists
  10835. # what "hidden" libraries, object files and flags are used when
  10836. # linking a shared library.
  10837. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10838. fi
  10839. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10840. case $host_os in
  10841. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10842. *)
  10843. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10844. ;;
  10845. esac
  10846. fi
  10847. ;;
  10848. esac
  10849. ;;
  10850. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10851. no_undefined_flag_CXX='${wl}-z,text'
  10852. archive_cmds_need_lc_CXX=no
  10853. hardcode_shlibpath_var_CXX=no
  10854. runpath_var='LD_RUN_PATH'
  10855. case $cc_basename in
  10856. CC*)
  10857. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10858. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10859. ;;
  10860. *)
  10861. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10862. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10863. ;;
  10864. esac
  10865. ;;
  10866. sysv5* | sco3.2v5* | sco5v6*)
  10867. # Note: We can NOT use -z defs as we might desire, because we do not
  10868. # link with -lc, and that would cause any symbols used from libc to
  10869. # always be unresolved, which means just about no library would
  10870. # ever link correctly. If we're not using GNU ld we use -z text
  10871. # though, which does catch some bad symbols but isn't as heavy-handed
  10872. # as -z defs.
  10873. no_undefined_flag_CXX='${wl}-z,text'
  10874. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10875. archive_cmds_need_lc_CXX=no
  10876. hardcode_shlibpath_var_CXX=no
  10877. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10878. hardcode_libdir_separator_CXX=':'
  10879. link_all_deplibs_CXX=yes
  10880. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10881. runpath_var='LD_RUN_PATH'
  10882. case $cc_basename in
  10883. CC*)
  10884. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10885. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10886. ;;
  10887. *)
  10888. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10889. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10890. ;;
  10891. esac
  10892. ;;
  10893. tandem*)
  10894. case $cc_basename in
  10895. NCC*)
  10896. # NonStop-UX NCC 3.20
  10897. # FIXME: insert proper C++ library support
  10898. ld_shlibs_CXX=no
  10899. ;;
  10900. *)
  10901. # FIXME: insert proper C++ library support
  10902. ld_shlibs_CXX=no
  10903. ;;
  10904. esac
  10905. ;;
  10906. vxworks*)
  10907. # FIXME: insert proper C++ library support
  10908. ld_shlibs_CXX=no
  10909. ;;
  10910. *)
  10911. # FIXME: insert proper C++ library support
  10912. ld_shlibs_CXX=no
  10913. ;;
  10914. esac
  10915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  10916. $as_echo "$ld_shlibs_CXX" >&6; }
  10917. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10918. GCC_CXX="$GXX"
  10919. LD_CXX="$LD"
  10920. ## CAVEAT EMPTOR:
  10921. ## There is no encapsulation within the following macros, do not change
  10922. ## the running order or otherwise move them around unless you know exactly
  10923. ## what you are doing...
  10924. # Dependencies to place before and after the object being linked:
  10925. predep_objects_CXX=
  10926. postdep_objects_CXX=
  10927. predeps_CXX=
  10928. postdeps_CXX=
  10929. compiler_lib_search_path_CXX=
  10930. cat > conftest.$ac_ext <<_LT_EOF
  10931. class Foo
  10932. {
  10933. public:
  10934. Foo (void) { a = 0; }
  10935. private:
  10936. int a;
  10937. };
  10938. _LT_EOF
  10939. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10940. (eval $ac_compile) 2>&5
  10941. ac_status=$?
  10942. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10943. test $ac_status = 0; }; then
  10944. # Parse the compiler output and extract the necessary
  10945. # objects, libraries and library flags.
  10946. # Sentinel used to keep track of whether or not we are before
  10947. # the conftest object file.
  10948. pre_test_object_deps_done=no
  10949. for p in `eval "$output_verbose_link_cmd"`; do
  10950. case $p in
  10951. -L* | -R* | -l*)
  10952. # Some compilers place space between "-{L,R}" and the path.
  10953. # Remove the space.
  10954. if test $p = "-L" ||
  10955. test $p = "-R"; then
  10956. prev=$p
  10957. continue
  10958. else
  10959. prev=
  10960. fi
  10961. if test "$pre_test_object_deps_done" = no; then
  10962. case $p in
  10963. -L* | -R*)
  10964. # Internal compiler library paths should come after those
  10965. # provided the user. The postdeps already come after the
  10966. # user supplied libs so there is no need to process them.
  10967. if test -z "$compiler_lib_search_path_CXX"; then
  10968. compiler_lib_search_path_CXX="${prev}${p}"
  10969. else
  10970. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10971. fi
  10972. ;;
  10973. # The "-l" case would never come before the object being
  10974. # linked, so don't bother handling this case.
  10975. esac
  10976. else
  10977. if test -z "$postdeps_CXX"; then
  10978. postdeps_CXX="${prev}${p}"
  10979. else
  10980. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10981. fi
  10982. fi
  10983. ;;
  10984. *.$objext)
  10985. # This assumes that the test object file only shows up
  10986. # once in the compiler output.
  10987. if test "$p" = "conftest.$objext"; then
  10988. pre_test_object_deps_done=yes
  10989. continue
  10990. fi
  10991. if test "$pre_test_object_deps_done" = no; then
  10992. if test -z "$predep_objects_CXX"; then
  10993. predep_objects_CXX="$p"
  10994. else
  10995. predep_objects_CXX="$predep_objects_CXX $p"
  10996. fi
  10997. else
  10998. if test -z "$postdep_objects_CXX"; then
  10999. postdep_objects_CXX="$p"
  11000. else
  11001. postdep_objects_CXX="$postdep_objects_CXX $p"
  11002. fi
  11003. fi
  11004. ;;
  11005. *) ;; # Ignore the rest.
  11006. esac
  11007. done
  11008. # Clean up.
  11009. rm -f a.out a.exe
  11010. else
  11011. echo "libtool.m4: error: problem compiling CXX test program"
  11012. fi
  11013. $RM -f confest.$objext
  11014. # PORTME: override above test on systems where it is broken
  11015. case $host_os in
  11016. interix[3-9]*)
  11017. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11018. # hack all around it, let's just trust "g++" to DTRT.
  11019. predep_objects_CXX=
  11020. postdep_objects_CXX=
  11021. postdeps_CXX=
  11022. ;;
  11023. linux*)
  11024. case `$CC -V 2>&1 | sed 5q` in
  11025. *Sun\ C*)
  11026. # Sun C++ 5.9
  11027. # The more standards-conforming stlport4 library is
  11028. # incompatible with the Cstd library. Avoid specifying
  11029. # it if it's in CXXFLAGS. Ignore libCrun as
  11030. # -library=stlport4 depends on it.
  11031. case " $CXX $CXXFLAGS " in
  11032. *" -library=stlport4 "*)
  11033. solaris_use_stlport4=yes
  11034. ;;
  11035. esac
  11036. if test "$solaris_use_stlport4" != yes; then
  11037. postdeps_CXX='-library=Cstd -library=Crun'
  11038. fi
  11039. ;;
  11040. esac
  11041. ;;
  11042. solaris*)
  11043. case $cc_basename in
  11044. CC*)
  11045. # The more standards-conforming stlport4 library is
  11046. # incompatible with the Cstd library. Avoid specifying
  11047. # it if it's in CXXFLAGS. Ignore libCrun as
  11048. # -library=stlport4 depends on it.
  11049. case " $CXX $CXXFLAGS " in
  11050. *" -library=stlport4 "*)
  11051. solaris_use_stlport4=yes
  11052. ;;
  11053. esac
  11054. # Adding this requires a known-good setup of shared libraries for
  11055. # Sun compiler versions before 5.6, else PIC objects from an old
  11056. # archive will be linked into the output, leading to subtle bugs.
  11057. if test "$solaris_use_stlport4" != yes; then
  11058. postdeps_CXX='-library=Cstd -library=Crun'
  11059. fi
  11060. ;;
  11061. esac
  11062. ;;
  11063. esac
  11064. case " $postdeps_CXX " in
  11065. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11066. esac
  11067. compiler_lib_search_dirs_CXX=
  11068. if test -n "${compiler_lib_search_path_CXX}"; then
  11069. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11070. fi
  11071. lt_prog_compiler_wl_CXX=
  11072. lt_prog_compiler_pic_CXX=
  11073. lt_prog_compiler_static_CXX=
  11074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11075. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11076. # C++ specific cases for pic, static, wl, etc.
  11077. if test "$GXX" = yes; then
  11078. lt_prog_compiler_wl_CXX='-Wl,'
  11079. lt_prog_compiler_static_CXX='-static'
  11080. case $host_os in
  11081. aix*)
  11082. # All AIX code is PIC.
  11083. if test "$host_cpu" = ia64; then
  11084. # AIX 5 now supports IA64 processor
  11085. lt_prog_compiler_static_CXX='-Bstatic'
  11086. fi
  11087. ;;
  11088. amigaos*)
  11089. case $host_cpu in
  11090. powerpc)
  11091. # see comment about AmigaOS4 .so support
  11092. lt_prog_compiler_pic_CXX='-fPIC'
  11093. ;;
  11094. m68k)
  11095. # FIXME: we need at least 68020 code to build shared libraries, but
  11096. # adding the `-m68020' flag to GCC prevents building anything better,
  11097. # like `-m68040'.
  11098. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11099. ;;
  11100. esac
  11101. ;;
  11102. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11103. # PIC is the default for these OSes.
  11104. ;;
  11105. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11106. # This hack is so that the source file can tell whether it is being
  11107. # built for inclusion in a dll (and should export symbols for example).
  11108. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11109. # (--disable-auto-import) libraries
  11110. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11111. ;;
  11112. darwin* | rhapsody*)
  11113. # PIC is the default on this platform
  11114. # Common symbols not allowed in MH_DYLIB files
  11115. lt_prog_compiler_pic_CXX='-fno-common'
  11116. ;;
  11117. *djgpp*)
  11118. # DJGPP does not support shared libraries at all
  11119. lt_prog_compiler_pic_CXX=
  11120. ;;
  11121. interix[3-9]*)
  11122. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11123. # Instead, we relocate shared libraries at runtime.
  11124. ;;
  11125. sysv4*MP*)
  11126. if test -d /usr/nec; then
  11127. lt_prog_compiler_pic_CXX=-Kconform_pic
  11128. fi
  11129. ;;
  11130. hpux*)
  11131. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11132. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11133. # sets the default TLS model and affects inlining.
  11134. case $host_cpu in
  11135. hppa*64*)
  11136. ;;
  11137. *)
  11138. lt_prog_compiler_pic_CXX='-fPIC'
  11139. ;;
  11140. esac
  11141. ;;
  11142. *qnx* | *nto*)
  11143. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11144. # it will coredump.
  11145. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11146. ;;
  11147. *)
  11148. lt_prog_compiler_pic_CXX='-fPIC'
  11149. ;;
  11150. esac
  11151. else
  11152. case $host_os in
  11153. aix[4-9]*)
  11154. # All AIX code is PIC.
  11155. if test "$host_cpu" = ia64; then
  11156. # AIX 5 now supports IA64 processor
  11157. lt_prog_compiler_static_CXX='-Bstatic'
  11158. else
  11159. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11160. fi
  11161. ;;
  11162. chorus*)
  11163. case $cc_basename in
  11164. cxch68*)
  11165. # Green Hills C++ Compiler
  11166. # _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"
  11167. ;;
  11168. esac
  11169. ;;
  11170. dgux*)
  11171. case $cc_basename in
  11172. ec++*)
  11173. lt_prog_compiler_pic_CXX='-KPIC'
  11174. ;;
  11175. ghcx*)
  11176. # Green Hills C++ Compiler
  11177. lt_prog_compiler_pic_CXX='-pic'
  11178. ;;
  11179. *)
  11180. ;;
  11181. esac
  11182. ;;
  11183. freebsd* | dragonfly*)
  11184. # FreeBSD uses GNU C++
  11185. ;;
  11186. hpux9* | hpux10* | hpux11*)
  11187. case $cc_basename in
  11188. CC*)
  11189. lt_prog_compiler_wl_CXX='-Wl,'
  11190. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11191. if test "$host_cpu" != ia64; then
  11192. lt_prog_compiler_pic_CXX='+Z'
  11193. fi
  11194. ;;
  11195. aCC*)
  11196. lt_prog_compiler_wl_CXX='-Wl,'
  11197. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11198. case $host_cpu in
  11199. hppa*64*|ia64*)
  11200. # +Z the default
  11201. ;;
  11202. *)
  11203. lt_prog_compiler_pic_CXX='+Z'
  11204. ;;
  11205. esac
  11206. ;;
  11207. *)
  11208. ;;
  11209. esac
  11210. ;;
  11211. interix*)
  11212. # This is c89, which is MS Visual C++ (no shared libs)
  11213. # Anyone wants to do a port?
  11214. ;;
  11215. irix5* | irix6* | nonstopux*)
  11216. case $cc_basename in
  11217. CC*)
  11218. lt_prog_compiler_wl_CXX='-Wl,'
  11219. lt_prog_compiler_static_CXX='-non_shared'
  11220. # CC pic flag -KPIC is the default.
  11221. ;;
  11222. *)
  11223. ;;
  11224. esac
  11225. ;;
  11226. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11227. case $cc_basename in
  11228. KCC*)
  11229. # KAI C++ Compiler
  11230. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11231. lt_prog_compiler_pic_CXX='-fPIC'
  11232. ;;
  11233. ecpc* )
  11234. # old Intel C++ for x86_64 which still supported -KPIC.
  11235. lt_prog_compiler_wl_CXX='-Wl,'
  11236. lt_prog_compiler_pic_CXX='-KPIC'
  11237. lt_prog_compiler_static_CXX='-static'
  11238. ;;
  11239. icpc* )
  11240. # Intel C++, used to be incompatible with GCC.
  11241. # ICC 10 doesn't accept -KPIC any more.
  11242. lt_prog_compiler_wl_CXX='-Wl,'
  11243. lt_prog_compiler_pic_CXX='-fPIC'
  11244. lt_prog_compiler_static_CXX='-static'
  11245. ;;
  11246. pgCC* | pgcpp*)
  11247. # Portland Group C++ compiler
  11248. lt_prog_compiler_wl_CXX='-Wl,'
  11249. lt_prog_compiler_pic_CXX='-fpic'
  11250. lt_prog_compiler_static_CXX='-Bstatic'
  11251. ;;
  11252. cxx*)
  11253. # Compaq C++
  11254. # Make sure the PIC flag is empty. It appears that all Alpha
  11255. # Linux and Compaq Tru64 Unix objects are PIC.
  11256. lt_prog_compiler_pic_CXX=
  11257. lt_prog_compiler_static_CXX='-non_shared'
  11258. ;;
  11259. xlc* | xlC*)
  11260. # IBM XL 8.0 on PPC
  11261. lt_prog_compiler_wl_CXX='-Wl,'
  11262. lt_prog_compiler_pic_CXX='-qpic'
  11263. lt_prog_compiler_static_CXX='-qstaticlink'
  11264. ;;
  11265. *)
  11266. case `$CC -V 2>&1 | sed 5q` in
  11267. *Sun\ C*)
  11268. # Sun C++ 5.9
  11269. lt_prog_compiler_pic_CXX='-KPIC'
  11270. lt_prog_compiler_static_CXX='-Bstatic'
  11271. lt_prog_compiler_wl_CXX='-Qoption ld '
  11272. ;;
  11273. esac
  11274. ;;
  11275. esac
  11276. ;;
  11277. lynxos*)
  11278. ;;
  11279. m88k*)
  11280. ;;
  11281. mvs*)
  11282. case $cc_basename in
  11283. cxx*)
  11284. lt_prog_compiler_pic_CXX='-W c,exportall'
  11285. ;;
  11286. *)
  11287. ;;
  11288. esac
  11289. ;;
  11290. netbsd* | netbsdelf*-gnu)
  11291. ;;
  11292. *qnx* | *nto*)
  11293. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11294. # it will coredump.
  11295. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11296. ;;
  11297. osf3* | osf4* | osf5*)
  11298. case $cc_basename in
  11299. KCC*)
  11300. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11301. ;;
  11302. RCC*)
  11303. # Rational C++ 2.4.1
  11304. lt_prog_compiler_pic_CXX='-pic'
  11305. ;;
  11306. cxx*)
  11307. # Digital/Compaq C++
  11308. lt_prog_compiler_wl_CXX='-Wl,'
  11309. # Make sure the PIC flag is empty. It appears that all Alpha
  11310. # Linux and Compaq Tru64 Unix objects are PIC.
  11311. lt_prog_compiler_pic_CXX=
  11312. lt_prog_compiler_static_CXX='-non_shared'
  11313. ;;
  11314. *)
  11315. ;;
  11316. esac
  11317. ;;
  11318. psos*)
  11319. ;;
  11320. solaris*)
  11321. case $cc_basename in
  11322. CC*)
  11323. # Sun C++ 4.2, 5.x and Centerline C++
  11324. lt_prog_compiler_pic_CXX='-KPIC'
  11325. lt_prog_compiler_static_CXX='-Bstatic'
  11326. lt_prog_compiler_wl_CXX='-Qoption ld '
  11327. ;;
  11328. gcx*)
  11329. # Green Hills C++ Compiler
  11330. lt_prog_compiler_pic_CXX='-PIC'
  11331. ;;
  11332. *)
  11333. ;;
  11334. esac
  11335. ;;
  11336. sunos4*)
  11337. case $cc_basename in
  11338. CC*)
  11339. # Sun C++ 4.x
  11340. lt_prog_compiler_pic_CXX='-pic'
  11341. lt_prog_compiler_static_CXX='-Bstatic'
  11342. ;;
  11343. lcc*)
  11344. # Lucid
  11345. lt_prog_compiler_pic_CXX='-pic'
  11346. ;;
  11347. *)
  11348. ;;
  11349. esac
  11350. ;;
  11351. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11352. case $cc_basename in
  11353. CC*)
  11354. lt_prog_compiler_wl_CXX='-Wl,'
  11355. lt_prog_compiler_pic_CXX='-KPIC'
  11356. lt_prog_compiler_static_CXX='-Bstatic'
  11357. ;;
  11358. esac
  11359. ;;
  11360. tandem*)
  11361. case $cc_basename in
  11362. NCC*)
  11363. # NonStop-UX NCC 3.20
  11364. lt_prog_compiler_pic_CXX='-KPIC'
  11365. ;;
  11366. *)
  11367. ;;
  11368. esac
  11369. ;;
  11370. vxworks*)
  11371. ;;
  11372. *)
  11373. lt_prog_compiler_can_build_shared_CXX=no
  11374. ;;
  11375. esac
  11376. fi
  11377. case $host_os in
  11378. # For platforms which do not support PIC, -DPIC is meaningless:
  11379. *djgpp*)
  11380. lt_prog_compiler_pic_CXX=
  11381. ;;
  11382. *)
  11383. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11384. ;;
  11385. esac
  11386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11387. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11388. #
  11389. # Check to make sure the PIC flag actually works.
  11390. #
  11391. if test -n "$lt_prog_compiler_pic_CXX"; then
  11392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11393. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11394. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11395. $as_echo_n "(cached) " >&6
  11396. else
  11397. lt_cv_prog_compiler_pic_works_CXX=no
  11398. ac_outfile=conftest.$ac_objext
  11399. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11400. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11401. # Insert the option either (1) after the last *FLAGS variable, or
  11402. # (2) before a word containing "conftest.", or (3) at the end.
  11403. # Note that $ac_compile itself does not contain backslashes and begins
  11404. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11405. # The option is referenced via a variable to avoid confusing sed.
  11406. lt_compile=`echo "$ac_compile" | $SED \
  11407. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11408. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11409. -e 's:$: $lt_compiler_flag:'`
  11410. (eval echo "\"\$as_me:13197: $lt_compile\"" >&5)
  11411. (eval "$lt_compile" 2>conftest.err)
  11412. ac_status=$?
  11413. cat conftest.err >&5
  11414. echo "$as_me:13201: \$? = $ac_status" >&5
  11415. if (exit $ac_status) && test -s "$ac_outfile"; then
  11416. # The compiler can only warn and ignore the option if not recognized
  11417. # So say no if there are warnings other than the usual output.
  11418. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11419. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11420. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11421. lt_cv_prog_compiler_pic_works_CXX=yes
  11422. fi
  11423. fi
  11424. $RM conftest*
  11425. fi
  11426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11427. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11428. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11429. case $lt_prog_compiler_pic_CXX in
  11430. "" | " "*) ;;
  11431. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11432. esac
  11433. else
  11434. lt_prog_compiler_pic_CXX=
  11435. lt_prog_compiler_can_build_shared_CXX=no
  11436. fi
  11437. fi
  11438. #
  11439. # Check to make sure the static flag actually works.
  11440. #
  11441. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11443. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11444. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11445. $as_echo_n "(cached) " >&6
  11446. else
  11447. lt_cv_prog_compiler_static_works_CXX=no
  11448. save_LDFLAGS="$LDFLAGS"
  11449. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11450. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11451. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11452. # The linker can only warn and ignore the option if not recognized
  11453. # So say no if there are warnings
  11454. if test -s conftest.err; then
  11455. # Append any errors to the config.log.
  11456. cat conftest.err 1>&5
  11457. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11458. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11459. if diff conftest.exp conftest.er2 >/dev/null; then
  11460. lt_cv_prog_compiler_static_works_CXX=yes
  11461. fi
  11462. else
  11463. lt_cv_prog_compiler_static_works_CXX=yes
  11464. fi
  11465. fi
  11466. $RM -r conftest*
  11467. LDFLAGS="$save_LDFLAGS"
  11468. fi
  11469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11470. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11471. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11472. :
  11473. else
  11474. lt_prog_compiler_static_CXX=
  11475. fi
  11476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11477. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11478. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11479. $as_echo_n "(cached) " >&6
  11480. else
  11481. lt_cv_prog_compiler_c_o_CXX=no
  11482. $RM -r conftest 2>/dev/null
  11483. mkdir conftest
  11484. cd conftest
  11485. mkdir out
  11486. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11487. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11488. # Insert the option either (1) after the last *FLAGS variable, or
  11489. # (2) before a word containing "conftest.", or (3) at the end.
  11490. # Note that $ac_compile itself does not contain backslashes and begins
  11491. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11492. lt_compile=`echo "$ac_compile" | $SED \
  11493. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11494. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11495. -e 's:$: $lt_compiler_flag:'`
  11496. (eval echo "\"\$as_me:13296: $lt_compile\"" >&5)
  11497. (eval "$lt_compile" 2>out/conftest.err)
  11498. ac_status=$?
  11499. cat out/conftest.err >&5
  11500. echo "$as_me:13300: \$? = $ac_status" >&5
  11501. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11502. then
  11503. # The compiler can only warn and ignore the option if not recognized
  11504. # So say no if there are warnings
  11505. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11506. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11507. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11508. lt_cv_prog_compiler_c_o_CXX=yes
  11509. fi
  11510. fi
  11511. chmod u+w . 2>&5
  11512. $RM conftest*
  11513. # SGI C++ compiler will create directory out/ii_files/ for
  11514. # template instantiation
  11515. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11516. $RM out/* && rmdir out
  11517. cd ..
  11518. $RM -r conftest
  11519. $RM conftest*
  11520. fi
  11521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11522. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11524. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11525. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11526. $as_echo_n "(cached) " >&6
  11527. else
  11528. lt_cv_prog_compiler_c_o_CXX=no
  11529. $RM -r conftest 2>/dev/null
  11530. mkdir conftest
  11531. cd conftest
  11532. mkdir out
  11533. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11534. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11535. # Insert the option either (1) after the last *FLAGS variable, or
  11536. # (2) before a word containing "conftest.", or (3) at the end.
  11537. # Note that $ac_compile itself does not contain backslashes and begins
  11538. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11539. lt_compile=`echo "$ac_compile" | $SED \
  11540. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11541. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11542. -e 's:$: $lt_compiler_flag:'`
  11543. (eval echo "\"\$as_me:13348: $lt_compile\"" >&5)
  11544. (eval "$lt_compile" 2>out/conftest.err)
  11545. ac_status=$?
  11546. cat out/conftest.err >&5
  11547. echo "$as_me:13352: \$? = $ac_status" >&5
  11548. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11549. then
  11550. # The compiler can only warn and ignore the option if not recognized
  11551. # So say no if there are warnings
  11552. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11553. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11554. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11555. lt_cv_prog_compiler_c_o_CXX=yes
  11556. fi
  11557. fi
  11558. chmod u+w . 2>&5
  11559. $RM conftest*
  11560. # SGI C++ compiler will create directory out/ii_files/ for
  11561. # template instantiation
  11562. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11563. $RM out/* && rmdir out
  11564. cd ..
  11565. $RM -r conftest
  11566. $RM conftest*
  11567. fi
  11568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11569. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11570. hard_links="nottested"
  11571. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11572. # do not overwrite the value of need_locks provided by the user
  11573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11574. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11575. hard_links=yes
  11576. $RM conftest*
  11577. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11578. touch conftest.a
  11579. ln conftest.a conftest.b 2>&5 || hard_links=no
  11580. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11582. $as_echo "$hard_links" >&6; }
  11583. if test "$hard_links" = no; then
  11584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11585. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11586. need_locks=warn
  11587. fi
  11588. else
  11589. need_locks=no
  11590. fi
  11591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11592. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11593. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11594. case $host_os in
  11595. aix[4-9]*)
  11596. # If we're using GNU nm, then we don't want the "-C" option.
  11597. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11598. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11599. 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'
  11600. else
  11601. 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'
  11602. fi
  11603. ;;
  11604. pw32*)
  11605. export_symbols_cmds_CXX="$ltdll_cmds"
  11606. ;;
  11607. cygwin* | mingw* | cegcc*)
  11608. 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'
  11609. ;;
  11610. linux* | k*bsd*-gnu)
  11611. link_all_deplibs_CXX=no
  11612. ;;
  11613. *)
  11614. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11615. ;;
  11616. esac
  11617. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11619. $as_echo "$ld_shlibs_CXX" >&6; }
  11620. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11621. with_gnu_ld_CXX=$with_gnu_ld
  11622. #
  11623. # Do we need to explicitly link libc?
  11624. #
  11625. case "x$archive_cmds_need_lc_CXX" in
  11626. x|xyes)
  11627. # Assume -lc should be added
  11628. archive_cmds_need_lc_CXX=yes
  11629. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11630. case $archive_cmds_CXX in
  11631. *'~'*)
  11632. # FIXME: we may have to deal with multi-command sequences.
  11633. ;;
  11634. '$CC '*)
  11635. # Test whether the compiler implicitly links with -lc since on some
  11636. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11637. # to ld, don't add -lc before -lgcc.
  11638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11639. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11640. $RM conftest*
  11641. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11642. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11643. (eval $ac_compile) 2>&5
  11644. ac_status=$?
  11645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11646. test $ac_status = 0; } 2>conftest.err; then
  11647. soname=conftest
  11648. lib=conftest
  11649. libobjs=conftest.$ac_objext
  11650. deplibs=
  11651. wl=$lt_prog_compiler_wl_CXX
  11652. pic_flag=$lt_prog_compiler_pic_CXX
  11653. compiler_flags=-v
  11654. linker_flags=-v
  11655. verstring=
  11656. output_objdir=.
  11657. libname=conftest
  11658. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11659. allow_undefined_flag_CXX=
  11660. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11661. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11662. ac_status=$?
  11663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11664. test $ac_status = 0; }
  11665. then
  11666. archive_cmds_need_lc_CXX=no
  11667. else
  11668. archive_cmds_need_lc_CXX=yes
  11669. fi
  11670. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11671. else
  11672. cat conftest.err 1>&5
  11673. fi
  11674. $RM conftest*
  11675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11676. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11677. ;;
  11678. esac
  11679. fi
  11680. ;;
  11681. esac
  11682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11683. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11684. library_names_spec=
  11685. libname_spec='lib$name'
  11686. soname_spec=
  11687. shrext_cmds=".so"
  11688. postinstall_cmds=
  11689. postuninstall_cmds=
  11690. finish_cmds=
  11691. finish_eval=
  11692. shlibpath_var=
  11693. shlibpath_overrides_runpath=unknown
  11694. version_type=none
  11695. dynamic_linker="$host_os ld.so"
  11696. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11697. need_lib_prefix=unknown
  11698. hardcode_into_libs=no
  11699. # when you set need_version to no, make sure it does not cause -set_version
  11700. # flags to be left without arguments
  11701. need_version=unknown
  11702. case $host_os in
  11703. aix3*)
  11704. version_type=linux
  11705. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11706. shlibpath_var=LIBPATH
  11707. # AIX 3 has no versioning support, so we append a major version to the name.
  11708. soname_spec='${libname}${release}${shared_ext}$major'
  11709. ;;
  11710. aix[4-9]*)
  11711. version_type=linux
  11712. need_lib_prefix=no
  11713. need_version=no
  11714. hardcode_into_libs=yes
  11715. if test "$host_cpu" = ia64; then
  11716. # AIX 5 supports IA64
  11717. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11718. shlibpath_var=LD_LIBRARY_PATH
  11719. else
  11720. # With GCC up to 2.95.x, collect2 would create an import file
  11721. # for dependence libraries. The import file would start with
  11722. # the line `#! .'. This would cause the generated library to
  11723. # depend on `.', always an invalid library. This was fixed in
  11724. # development snapshots of GCC prior to 3.0.
  11725. case $host_os in
  11726. aix4 | aix4.[01] | aix4.[01].*)
  11727. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11728. echo ' yes '
  11729. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11730. :
  11731. else
  11732. can_build_shared=no
  11733. fi
  11734. ;;
  11735. esac
  11736. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11737. # soname into executable. Probably we can add versioning support to
  11738. # collect2, so additional links can be useful in future.
  11739. if test "$aix_use_runtimelinking" = yes; then
  11740. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11741. # instead of lib<name>.a to let people know that these are not
  11742. # typical AIX shared libraries.
  11743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11744. else
  11745. # We preserve .a as extension for shared libraries through AIX4.2
  11746. # and later when we are not doing run time linking.
  11747. library_names_spec='${libname}${release}.a $libname.a'
  11748. soname_spec='${libname}${release}${shared_ext}$major'
  11749. fi
  11750. shlibpath_var=LIBPATH
  11751. fi
  11752. ;;
  11753. amigaos*)
  11754. case $host_cpu in
  11755. powerpc)
  11756. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11757. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11758. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11759. ;;
  11760. m68k)
  11761. library_names_spec='$libname.ixlibrary $libname.a'
  11762. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11763. 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'
  11764. ;;
  11765. esac
  11766. ;;
  11767. beos*)
  11768. library_names_spec='${libname}${shared_ext}'
  11769. dynamic_linker="$host_os ld.so"
  11770. shlibpath_var=LIBRARY_PATH
  11771. ;;
  11772. bsdi[45]*)
  11773. version_type=linux
  11774. need_version=no
  11775. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11776. soname_spec='${libname}${release}${shared_ext}$major'
  11777. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11778. shlibpath_var=LD_LIBRARY_PATH
  11779. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11780. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11781. # the default ld.so.conf also contains /usr/contrib/lib and
  11782. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11783. # libtool to hard-code these into programs
  11784. ;;
  11785. cygwin* | mingw* | pw32* | cegcc*)
  11786. version_type=windows
  11787. shrext_cmds=".dll"
  11788. need_version=no
  11789. need_lib_prefix=no
  11790. case $GCC,$host_os in
  11791. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11792. library_names_spec='$libname.dll.a'
  11793. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11794. postinstall_cmds='base_file=`basename \${file}`~
  11795. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11796. dldir=$destdir/`dirname \$dlpath`~
  11797. test -d \$dldir || mkdir -p \$dldir~
  11798. $install_prog $dir/$dlname \$dldir/$dlname~
  11799. chmod a+x \$dldir/$dlname~
  11800. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11801. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11802. fi'
  11803. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11804. dlpath=$dir/\$dldll~
  11805. $RM \$dlpath'
  11806. shlibpath_overrides_runpath=yes
  11807. case $host_os in
  11808. cygwin*)
  11809. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11810. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11811. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11812. ;;
  11813. mingw* | cegcc*)
  11814. # MinGW DLLs use traditional 'lib' prefix
  11815. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11816. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11817. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11818. # It is most probably a Windows format PATH printed by
  11819. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11820. # path with ; separators, and with drive letters. We can handle the
  11821. # drive letters (cygwin fileutils understands them), so leave them,
  11822. # especially as we might pass files found there to a mingw objdump,
  11823. # which wouldn't understand a cygwinified path. Ahh.
  11824. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11825. else
  11826. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11827. fi
  11828. ;;
  11829. pw32*)
  11830. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11831. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11832. ;;
  11833. esac
  11834. ;;
  11835. *)
  11836. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11837. ;;
  11838. esac
  11839. dynamic_linker='Win32 ld.exe'
  11840. # FIXME: first we should search . and the directory the executable is in
  11841. shlibpath_var=PATH
  11842. ;;
  11843. darwin* | rhapsody*)
  11844. dynamic_linker="$host_os dyld"
  11845. version_type=darwin
  11846. need_lib_prefix=no
  11847. need_version=no
  11848. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11849. soname_spec='${libname}${release}${major}$shared_ext'
  11850. shlibpath_overrides_runpath=yes
  11851. shlibpath_var=DYLD_LIBRARY_PATH
  11852. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11853. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11854. ;;
  11855. dgux*)
  11856. version_type=linux
  11857. need_lib_prefix=no
  11858. need_version=no
  11859. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11860. soname_spec='${libname}${release}${shared_ext}$major'
  11861. shlibpath_var=LD_LIBRARY_PATH
  11862. ;;
  11863. freebsd1*)
  11864. dynamic_linker=no
  11865. ;;
  11866. freebsd* | dragonfly*)
  11867. # DragonFly does not have aout. When/if they implement a new
  11868. # versioning mechanism, adjust this.
  11869. if test -x /usr/bin/objformat; then
  11870. objformat=`/usr/bin/objformat`
  11871. else
  11872. case $host_os in
  11873. freebsd[123]*) objformat=aout ;;
  11874. *) objformat=elf ;;
  11875. esac
  11876. fi
  11877. version_type=freebsd-$objformat
  11878. case $version_type in
  11879. freebsd-elf*)
  11880. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11881. need_version=no
  11882. need_lib_prefix=no
  11883. ;;
  11884. freebsd-*)
  11885. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11886. need_version=yes
  11887. ;;
  11888. esac
  11889. shlibpath_var=LD_LIBRARY_PATH
  11890. case $host_os in
  11891. freebsd2*)
  11892. shlibpath_overrides_runpath=yes
  11893. ;;
  11894. freebsd3.[01]* | freebsdelf3.[01]*)
  11895. shlibpath_overrides_runpath=yes
  11896. hardcode_into_libs=yes
  11897. ;;
  11898. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11899. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11900. shlibpath_overrides_runpath=no
  11901. hardcode_into_libs=yes
  11902. ;;
  11903. *) # from 4.6 on, and DragonFly
  11904. shlibpath_overrides_runpath=yes
  11905. hardcode_into_libs=yes
  11906. ;;
  11907. esac
  11908. ;;
  11909. gnu*)
  11910. version_type=linux
  11911. need_lib_prefix=no
  11912. need_version=no
  11913. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11914. soname_spec='${libname}${release}${shared_ext}$major'
  11915. shlibpath_var=LD_LIBRARY_PATH
  11916. hardcode_into_libs=yes
  11917. ;;
  11918. hpux9* | hpux10* | hpux11*)
  11919. # Give a soname corresponding to the major version so that dld.sl refuses to
  11920. # link against other versions.
  11921. version_type=sunos
  11922. need_lib_prefix=no
  11923. need_version=no
  11924. case $host_cpu in
  11925. ia64*)
  11926. shrext_cmds='.so'
  11927. hardcode_into_libs=yes
  11928. dynamic_linker="$host_os dld.so"
  11929. shlibpath_var=LD_LIBRARY_PATH
  11930. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11932. soname_spec='${libname}${release}${shared_ext}$major'
  11933. if test "X$HPUX_IA64_MODE" = X32; then
  11934. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11935. else
  11936. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11937. fi
  11938. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11939. ;;
  11940. hppa*64*)
  11941. shrext_cmds='.sl'
  11942. hardcode_into_libs=yes
  11943. dynamic_linker="$host_os dld.sl"
  11944. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11945. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11947. soname_spec='${libname}${release}${shared_ext}$major'
  11948. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11949. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11950. ;;
  11951. *)
  11952. shrext_cmds='.sl'
  11953. dynamic_linker="$host_os dld.sl"
  11954. shlibpath_var=SHLIB_PATH
  11955. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11957. soname_spec='${libname}${release}${shared_ext}$major'
  11958. ;;
  11959. esac
  11960. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11961. postinstall_cmds='chmod 555 $lib'
  11962. ;;
  11963. interix[3-9]*)
  11964. version_type=linux
  11965. need_lib_prefix=no
  11966. need_version=no
  11967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11968. soname_spec='${libname}${release}${shared_ext}$major'
  11969. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11970. shlibpath_var=LD_LIBRARY_PATH
  11971. shlibpath_overrides_runpath=no
  11972. hardcode_into_libs=yes
  11973. ;;
  11974. irix5* | irix6* | nonstopux*)
  11975. case $host_os in
  11976. nonstopux*) version_type=nonstopux ;;
  11977. *)
  11978. if test "$lt_cv_prog_gnu_ld" = yes; then
  11979. version_type=linux
  11980. else
  11981. version_type=irix
  11982. fi ;;
  11983. esac
  11984. need_lib_prefix=no
  11985. need_version=no
  11986. soname_spec='${libname}${release}${shared_ext}$major'
  11987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11988. case $host_os in
  11989. irix5* | nonstopux*)
  11990. libsuff= shlibsuff=
  11991. ;;
  11992. *)
  11993. case $LD in # libtool.m4 will add one of these switches to LD
  11994. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11995. libsuff= shlibsuff= libmagic=32-bit;;
  11996. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11997. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11998. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11999. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12000. *) libsuff= shlibsuff= libmagic=never-match;;
  12001. esac
  12002. ;;
  12003. esac
  12004. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12005. shlibpath_overrides_runpath=no
  12006. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12007. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12008. hardcode_into_libs=yes
  12009. ;;
  12010. # No shared lib support for Linux oldld, aout, or coff.
  12011. linux*oldld* | linux*aout* | linux*coff*)
  12012. dynamic_linker=no
  12013. ;;
  12014. # This must be Linux ELF.
  12015. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12016. version_type=linux
  12017. need_lib_prefix=no
  12018. need_version=no
  12019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12020. soname_spec='${libname}${release}${shared_ext}$major'
  12021. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12022. shlibpath_var=LD_LIBRARY_PATH
  12023. shlibpath_overrides_runpath=no
  12024. # Some binutils ld are patched to set DT_RUNPATH
  12025. save_LDFLAGS=$LDFLAGS
  12026. save_libdir=$libdir
  12027. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12028. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12030. /* end confdefs.h. */
  12031. int
  12032. main ()
  12033. {
  12034. ;
  12035. return 0;
  12036. }
  12037. _ACEOF
  12038. if ac_fn_cxx_try_link "$LINENO"; then :
  12039. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12040. shlibpath_overrides_runpath=yes
  12041. fi
  12042. fi
  12043. rm -f core conftest.err conftest.$ac_objext \
  12044. conftest$ac_exeext conftest.$ac_ext
  12045. LDFLAGS=$save_LDFLAGS
  12046. libdir=$save_libdir
  12047. # This implies no fast_install, which is unacceptable.
  12048. # Some rework will be needed to allow for fast_install
  12049. # before this can be enabled.
  12050. hardcode_into_libs=yes
  12051. # Append ld.so.conf contents to the search path
  12052. if test -f /etc/ld.so.conf; then
  12053. 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' ' '`
  12054. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12055. fi
  12056. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12057. # powerpc, because MkLinux only supported shared libraries with the
  12058. # GNU dynamic linker. Since this was broken with cross compilers,
  12059. # most powerpc-linux boxes support dynamic linking these days and
  12060. # people can always --disable-shared, the test was removed, and we
  12061. # assume the GNU/Linux dynamic linker is in use.
  12062. dynamic_linker='GNU/Linux ld.so'
  12063. ;;
  12064. netbsdelf*-gnu)
  12065. version_type=linux
  12066. need_lib_prefix=no
  12067. need_version=no
  12068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12069. soname_spec='${libname}${release}${shared_ext}$major'
  12070. shlibpath_var=LD_LIBRARY_PATH
  12071. shlibpath_overrides_runpath=no
  12072. hardcode_into_libs=yes
  12073. dynamic_linker='NetBSD ld.elf_so'
  12074. ;;
  12075. netbsd*)
  12076. version_type=sunos
  12077. need_lib_prefix=no
  12078. need_version=no
  12079. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12080. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12081. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12082. dynamic_linker='NetBSD (a.out) ld.so'
  12083. else
  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. dynamic_linker='NetBSD ld.elf_so'
  12087. fi
  12088. shlibpath_var=LD_LIBRARY_PATH
  12089. shlibpath_overrides_runpath=yes
  12090. hardcode_into_libs=yes
  12091. ;;
  12092. newsos6)
  12093. version_type=linux
  12094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12095. shlibpath_var=LD_LIBRARY_PATH
  12096. shlibpath_overrides_runpath=yes
  12097. ;;
  12098. *nto* | *qnx*)
  12099. version_type=qnx
  12100. need_lib_prefix=no
  12101. need_version=no
  12102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12103. soname_spec='${libname}${release}${shared_ext}$major'
  12104. shlibpath_var=LD_LIBRARY_PATH
  12105. shlibpath_overrides_runpath=no
  12106. hardcode_into_libs=yes
  12107. dynamic_linker='ldqnx.so'
  12108. ;;
  12109. openbsd*)
  12110. version_type=sunos
  12111. sys_lib_dlsearch_path_spec="/usr/lib"
  12112. need_lib_prefix=no
  12113. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12114. case $host_os in
  12115. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12116. *) need_version=no ;;
  12117. esac
  12118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12119. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12120. shlibpath_var=LD_LIBRARY_PATH
  12121. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12122. case $host_os in
  12123. openbsd2.[89] | openbsd2.[89].*)
  12124. shlibpath_overrides_runpath=no
  12125. ;;
  12126. *)
  12127. shlibpath_overrides_runpath=yes
  12128. ;;
  12129. esac
  12130. else
  12131. shlibpath_overrides_runpath=yes
  12132. fi
  12133. ;;
  12134. os2*)
  12135. libname_spec='$name'
  12136. shrext_cmds=".dll"
  12137. need_lib_prefix=no
  12138. library_names_spec='$libname${shared_ext} $libname.a'
  12139. dynamic_linker='OS/2 ld.exe'
  12140. shlibpath_var=LIBPATH
  12141. ;;
  12142. osf3* | osf4* | osf5*)
  12143. version_type=osf
  12144. need_lib_prefix=no
  12145. need_version=no
  12146. soname_spec='${libname}${release}${shared_ext}$major'
  12147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12148. shlibpath_var=LD_LIBRARY_PATH
  12149. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12150. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12151. ;;
  12152. rdos*)
  12153. dynamic_linker=no
  12154. ;;
  12155. solaris*)
  12156. version_type=linux
  12157. need_lib_prefix=no
  12158. need_version=no
  12159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12160. soname_spec='${libname}${release}${shared_ext}$major'
  12161. shlibpath_var=LD_LIBRARY_PATH
  12162. shlibpath_overrides_runpath=yes
  12163. hardcode_into_libs=yes
  12164. # ldd complains unless libraries are executable
  12165. postinstall_cmds='chmod +x $lib'
  12166. ;;
  12167. sunos4*)
  12168. version_type=sunos
  12169. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12170. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12171. shlibpath_var=LD_LIBRARY_PATH
  12172. shlibpath_overrides_runpath=yes
  12173. if test "$with_gnu_ld" = yes; then
  12174. need_lib_prefix=no
  12175. fi
  12176. need_version=yes
  12177. ;;
  12178. sysv4 | sysv4.3*)
  12179. version_type=linux
  12180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12181. soname_spec='${libname}${release}${shared_ext}$major'
  12182. shlibpath_var=LD_LIBRARY_PATH
  12183. case $host_vendor in
  12184. sni)
  12185. shlibpath_overrides_runpath=no
  12186. need_lib_prefix=no
  12187. runpath_var=LD_RUN_PATH
  12188. ;;
  12189. siemens)
  12190. need_lib_prefix=no
  12191. ;;
  12192. motorola)
  12193. need_lib_prefix=no
  12194. need_version=no
  12195. shlibpath_overrides_runpath=no
  12196. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12197. ;;
  12198. esac
  12199. ;;
  12200. sysv4*MP*)
  12201. if test -d /usr/nec ;then
  12202. version_type=linux
  12203. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12204. soname_spec='$libname${shared_ext}.$major'
  12205. shlibpath_var=LD_LIBRARY_PATH
  12206. fi
  12207. ;;
  12208. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12209. version_type=freebsd-elf
  12210. need_lib_prefix=no
  12211. need_version=no
  12212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12213. soname_spec='${libname}${release}${shared_ext}$major'
  12214. shlibpath_var=LD_LIBRARY_PATH
  12215. shlibpath_overrides_runpath=yes
  12216. hardcode_into_libs=yes
  12217. if test "$with_gnu_ld" = yes; then
  12218. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12219. else
  12220. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12221. case $host_os in
  12222. sco3.2v5*)
  12223. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12224. ;;
  12225. esac
  12226. fi
  12227. sys_lib_dlsearch_path_spec='/usr/lib'
  12228. ;;
  12229. tpf*)
  12230. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12231. version_type=linux
  12232. need_lib_prefix=no
  12233. need_version=no
  12234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12235. shlibpath_var=LD_LIBRARY_PATH
  12236. shlibpath_overrides_runpath=no
  12237. hardcode_into_libs=yes
  12238. ;;
  12239. uts4*)
  12240. version_type=linux
  12241. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12242. soname_spec='${libname}${release}${shared_ext}$major'
  12243. shlibpath_var=LD_LIBRARY_PATH
  12244. ;;
  12245. *)
  12246. dynamic_linker=no
  12247. ;;
  12248. esac
  12249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12250. $as_echo "$dynamic_linker" >&6; }
  12251. test "$dynamic_linker" = no && can_build_shared=no
  12252. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12253. if test "$GCC" = yes; then
  12254. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12255. fi
  12256. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12257. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12258. fi
  12259. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12260. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12261. fi
  12262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12263. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12264. hardcode_action_CXX=
  12265. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12266. test -n "$runpath_var_CXX" ||
  12267. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12268. # We can hardcode non-existent directories.
  12269. if test "$hardcode_direct_CXX" != no &&
  12270. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12271. # have to relink, otherwise we might link with an installed library
  12272. # when we should be linking with a yet-to-be-installed one
  12273. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12274. test "$hardcode_minus_L_CXX" != no; then
  12275. # Linking always hardcodes the temporary library directory.
  12276. hardcode_action_CXX=relink
  12277. else
  12278. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12279. hardcode_action_CXX=immediate
  12280. fi
  12281. else
  12282. # We cannot hardcode anything, or else we can only hardcode existing
  12283. # directories.
  12284. hardcode_action_CXX=unsupported
  12285. fi
  12286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12287. $as_echo "$hardcode_action_CXX" >&6; }
  12288. if test "$hardcode_action_CXX" = relink ||
  12289. test "$inherit_rpath_CXX" = yes; then
  12290. # Fast installation is not supported
  12291. enable_fast_install=no
  12292. elif test "$shlibpath_overrides_runpath" = yes ||
  12293. test "$enable_shared" = no; then
  12294. # Fast installation is not necessary
  12295. enable_fast_install=needless
  12296. fi
  12297. fi # test -n "$compiler"
  12298. CC=$lt_save_CC
  12299. LDCXX=$LD
  12300. LD=$lt_save_LD
  12301. GCC=$lt_save_GCC
  12302. with_gnu_ld=$lt_save_with_gnu_ld
  12303. lt_cv_path_LDCXX=$lt_cv_path_LD
  12304. lt_cv_path_LD=$lt_save_path_LD
  12305. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12306. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12307. fi # test "$_lt_caught_CXX_error" != yes
  12308. ac_ext=c
  12309. ac_cpp='$CPP $CPPFLAGS'
  12310. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12311. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12312. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12313. ac_config_commands="$ac_config_commands libtool"
  12314. # Only expand once:
  12315. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  12316. if test -n "$ac_tool_prefix"; then
  12317. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  12318. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  12319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12320. $as_echo_n "checking for $ac_word... " >&6; }
  12321. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  12322. $as_echo_n "(cached) " >&6
  12323. else
  12324. case $PKG_CONFIG in
  12325. [\\/]* | ?:[\\/]*)
  12326. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12327. ;;
  12328. *)
  12329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12330. for as_dir in $PATH
  12331. do
  12332. IFS=$as_save_IFS
  12333. test -z "$as_dir" && as_dir=.
  12334. for ac_exec_ext in '' $ac_executable_extensions; do
  12335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12336. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12338. break 2
  12339. fi
  12340. done
  12341. done
  12342. IFS=$as_save_IFS
  12343. ;;
  12344. esac
  12345. fi
  12346. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12347. if test -n "$PKG_CONFIG"; then
  12348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12349. $as_echo "$PKG_CONFIG" >&6; }
  12350. else
  12351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12352. $as_echo "no" >&6; }
  12353. fi
  12354. fi
  12355. if test -z "$ac_cv_path_PKG_CONFIG"; then
  12356. ac_pt_PKG_CONFIG=$PKG_CONFIG
  12357. # Extract the first word of "pkg-config", so it can be a program name with args.
  12358. set dummy pkg-config; ac_word=$2
  12359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12360. $as_echo_n "checking for $ac_word... " >&6; }
  12361. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  12362. $as_echo_n "(cached) " >&6
  12363. else
  12364. case $ac_pt_PKG_CONFIG in
  12365. [\\/]* | ?:[\\/]*)
  12366. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  12367. ;;
  12368. *)
  12369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12370. for as_dir in $PATH
  12371. do
  12372. IFS=$as_save_IFS
  12373. test -z "$as_dir" && as_dir=.
  12374. for ac_exec_ext in '' $ac_executable_extensions; do
  12375. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12376. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12377. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12378. break 2
  12379. fi
  12380. done
  12381. done
  12382. IFS=$as_save_IFS
  12383. ;;
  12384. esac
  12385. fi
  12386. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  12387. if test -n "$ac_pt_PKG_CONFIG"; then
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  12389. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  12390. else
  12391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12392. $as_echo "no" >&6; }
  12393. fi
  12394. if test "x$ac_pt_PKG_CONFIG" = x; then
  12395. PKG_CONFIG=""
  12396. else
  12397. case $cross_compiling:$ac_tool_warned in
  12398. yes:)
  12399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12400. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12401. ac_tool_warned=yes ;;
  12402. esac
  12403. PKG_CONFIG=$ac_pt_PKG_CONFIG
  12404. fi
  12405. else
  12406. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12407. fi
  12408. fi
  12409. if test -n "$PKG_CONFIG"; then
  12410. _pkg_min_version=0.9.0
  12411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  12412. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  12413. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  12414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12415. $as_echo "yes" >&6; }
  12416. else
  12417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12418. $as_echo "no" >&6; }
  12419. PKG_CONFIG=""
  12420. fi
  12421. fi
  12422. pkg_failed=no
  12423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNUTDISC" >&5
  12424. $as_echo_n "checking for QNUTDISC... " >&6; }
  12425. if test -n "$PKG_CONFIG"; then
  12426. if test -n "$QNUTDISC_CFLAGS"; then
  12427. pkg_cv_QNUTDISC_CFLAGS="$QNUTDISC_CFLAGS"
  12428. else
  12429. if test -n "$PKG_CONFIG" && \
  12430. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore QtGui QtNetwork\""; } >&5
  12431. ($PKG_CONFIG --exists --print-errors "QtCore QtGui QtNetwork") 2>&5
  12432. ac_status=$?
  12433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12434. test $ac_status = 0; }; then
  12435. pkg_cv_QNUTDISC_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui QtNetwork" 2>/dev/null`
  12436. else
  12437. pkg_failed=yes
  12438. fi
  12439. fi
  12440. else
  12441. pkg_failed=untried
  12442. fi
  12443. if test -n "$PKG_CONFIG"; then
  12444. if test -n "$QNUTDISC_LIBS"; then
  12445. pkg_cv_QNUTDISC_LIBS="$QNUTDISC_LIBS"
  12446. else
  12447. if test -n "$PKG_CONFIG" && \
  12448. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore QtGui QtNetwork\""; } >&5
  12449. ($PKG_CONFIG --exists --print-errors "QtCore QtGui QtNetwork") 2>&5
  12450. ac_status=$?
  12451. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12452. test $ac_status = 0; }; then
  12453. pkg_cv_QNUTDISC_LIBS=`$PKG_CONFIG --libs "QtCore QtGui QtNetwork" 2>/dev/null`
  12454. else
  12455. pkg_failed=yes
  12456. fi
  12457. fi
  12458. else
  12459. pkg_failed=untried
  12460. fi
  12461. if test $pkg_failed = yes; then
  12462. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12463. _pkg_short_errors_supported=yes
  12464. else
  12465. _pkg_short_errors_supported=no
  12466. fi
  12467. if test $_pkg_short_errors_supported = yes; then
  12468. QNUTDISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtCore QtGui QtNetwork"`
  12469. else
  12470. QNUTDISC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui QtNetwork"`
  12471. fi
  12472. # Put the nasty error message in config.log where it belongs
  12473. echo "$QNUTDISC_PKG_ERRORS" >&5
  12474. as_fn_error "Package requirements (QtCore QtGui QtNetwork) were not met:
  12475. $QNUTDISC_PKG_ERRORS
  12476. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  12477. installed software in a non-standard prefix.
  12478. Alternatively, you may set the environment variables QNUTDISC_CFLAGS
  12479. and QNUTDISC_LIBS to avoid the need to call pkg-config.
  12480. See the pkg-config man page for more details.
  12481. " "$LINENO" 5
  12482. elif test $pkg_failed = untried; then
  12483. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12484. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12485. as_fn_error "The pkg-config script could not be found or is too old. Make sure it
  12486. is in your PATH or set the PKG_CONFIG environment variable to the full
  12487. path to pkg-config.
  12488. Alternatively, you may set the environment variables QNUTDISC_CFLAGS
  12489. and QNUTDISC_LIBS to avoid the need to call pkg-config.
  12490. See the pkg-config man page for more details.
  12491. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  12492. See \`config.log' for more details." "$LINENO" 5; }
  12493. else
  12494. QNUTDISC_CFLAGS=$pkg_cv_QNUTDISC_CFLAGS
  12495. QNUTDISC_LIBS=$pkg_cv_QNUTDISC_LIBS
  12496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12497. $as_echo "yes" >&6; }
  12498. :
  12499. fi
  12500. ac_config_files="$ac_config_files Makefile src/Makefile"
  12501. cat >confcache <<\_ACEOF
  12502. # This file is a shell script that caches the results of configure
  12503. # tests run on this system so they can be shared between configure
  12504. # scripts and configure runs, see configure's option --config-cache.
  12505. # It is not useful on other systems. If it contains results you don't
  12506. # want to keep, you may remove or edit it.
  12507. #
  12508. # config.status only pays attention to the cache file if you give it
  12509. # the --recheck option to rerun configure.
  12510. #
  12511. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12512. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12513. # following values.
  12514. _ACEOF
  12515. # The following way of writing the cache mishandles newlines in values,
  12516. # but we know of no workaround that is simple, portable, and efficient.
  12517. # So, we kill variables containing newlines.
  12518. # Ultrix sh set writes to stderr and can't be redirected directly,
  12519. # and sets the high bit in the cache file unless we assign to the vars.
  12520. (
  12521. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12522. eval ac_val=\$$ac_var
  12523. case $ac_val in #(
  12524. *${as_nl}*)
  12525. case $ac_var in #(
  12526. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12527. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12528. esac
  12529. case $ac_var in #(
  12530. _ | IFS | as_nl) ;; #(
  12531. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12532. *) { eval $ac_var=; unset $ac_var;} ;;
  12533. esac ;;
  12534. esac
  12535. done
  12536. (set) 2>&1 |
  12537. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12538. *${as_nl}ac_space=\ *)
  12539. # `set' does not quote correctly, so add quotes: double-quote
  12540. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12541. sed -n \
  12542. "s/'/'\\\\''/g;
  12543. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12544. ;; #(
  12545. *)
  12546. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12547. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12548. ;;
  12549. esac |
  12550. sort
  12551. ) |
  12552. sed '
  12553. /^ac_cv_env_/b end
  12554. t clear
  12555. :clear
  12556. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12557. t end
  12558. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12559. :end' >>confcache
  12560. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12561. if test -w "$cache_file"; then
  12562. test "x$cache_file" != "x/dev/null" &&
  12563. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12564. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12565. cat confcache >$cache_file
  12566. else
  12567. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12568. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12569. fi
  12570. fi
  12571. rm -f confcache
  12572. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12573. # Let make expand exec_prefix.
  12574. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12575. DEFS=-DHAVE_CONFIG_H
  12576. ac_libobjs=
  12577. ac_ltlibobjs=
  12578. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12579. # 1. Remove the extension, and $U if already installed.
  12580. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12581. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12582. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12583. # will be set to the directory where LIBOBJS objects are built.
  12584. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12585. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12586. done
  12587. LIBOBJS=$ac_libobjs
  12588. LTLIBOBJS=$ac_ltlibobjs
  12589. if test -n "$EXEEXT"; then
  12590. am__EXEEXT_TRUE=
  12591. am__EXEEXT_FALSE='#'
  12592. else
  12593. am__EXEEXT_TRUE='#'
  12594. am__EXEEXT_FALSE=
  12595. fi
  12596. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12597. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  12598. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12599. fi
  12600. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12601. as_fn_error "conditional \"AMDEP\" was never defined.
  12602. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12603. fi
  12604. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12605. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  12606. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12607. fi
  12608. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12609. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  12610. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12611. fi
  12612. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12613. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  12614. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12615. fi
  12616. : ${CONFIG_STATUS=./config.status}
  12617. ac_write_fail=0
  12618. ac_clean_files_save=$ac_clean_files
  12619. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12620. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12621. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12622. as_write_fail=0
  12623. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12624. #! $SHELL
  12625. # Generated by $as_me.
  12626. # Run this file to recreate the current configuration.
  12627. # Compiler output produced by configure, useful for debugging
  12628. # configure, is in config.log if it exists.
  12629. debug=false
  12630. ac_cs_recheck=false
  12631. ac_cs_silent=false
  12632. SHELL=\${CONFIG_SHELL-$SHELL}
  12633. export SHELL
  12634. _ASEOF
  12635. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12636. ## -------------------- ##
  12637. ## M4sh Initialization. ##
  12638. ## -------------------- ##
  12639. # Be more Bourne compatible
  12640. DUALCASE=1; export DUALCASE # for MKS sh
  12641. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12642. emulate sh
  12643. NULLCMD=:
  12644. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12645. # is contrary to our usage. Disable this feature.
  12646. alias -g '${1+"$@"}'='"$@"'
  12647. setopt NO_GLOB_SUBST
  12648. else
  12649. case `(set -o) 2>/dev/null` in #(
  12650. *posix*) :
  12651. set -o posix ;; #(
  12652. *) :
  12653. ;;
  12654. esac
  12655. fi
  12656. as_nl='
  12657. '
  12658. export as_nl
  12659. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12660. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12661. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12662. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12663. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12664. # but without wasting forks for bash or zsh.
  12665. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12666. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12667. as_echo='print -r --'
  12668. as_echo_n='print -rn --'
  12669. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12670. as_echo='printf %s\n'
  12671. as_echo_n='printf %s'
  12672. else
  12673. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12674. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12675. as_echo_n='/usr/ucb/echo -n'
  12676. else
  12677. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12678. as_echo_n_body='eval
  12679. arg=$1;
  12680. case $arg in #(
  12681. *"$as_nl"*)
  12682. expr "X$arg" : "X\\(.*\\)$as_nl";
  12683. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12684. esac;
  12685. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12686. '
  12687. export as_echo_n_body
  12688. as_echo_n='sh -c $as_echo_n_body as_echo'
  12689. fi
  12690. export as_echo_body
  12691. as_echo='sh -c $as_echo_body as_echo'
  12692. fi
  12693. # The user is always right.
  12694. if test "${PATH_SEPARATOR+set}" != set; then
  12695. PATH_SEPARATOR=:
  12696. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12697. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12698. PATH_SEPARATOR=';'
  12699. }
  12700. fi
  12701. # IFS
  12702. # We need space, tab and new line, in precisely that order. Quoting is
  12703. # there to prevent editors from complaining about space-tab.
  12704. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12705. # splitting by setting IFS to empty value.)
  12706. IFS=" "" $as_nl"
  12707. # Find who we are. Look in the path if we contain no directory separator.
  12708. case $0 in #((
  12709. *[\\/]* ) as_myself=$0 ;;
  12710. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12711. for as_dir in $PATH
  12712. do
  12713. IFS=$as_save_IFS
  12714. test -z "$as_dir" && as_dir=.
  12715. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12716. done
  12717. IFS=$as_save_IFS
  12718. ;;
  12719. esac
  12720. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12721. # in which case we are not to be found in the path.
  12722. if test "x$as_myself" = x; then
  12723. as_myself=$0
  12724. fi
  12725. if test ! -f "$as_myself"; then
  12726. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12727. exit 1
  12728. fi
  12729. # Unset variables that we do not need and which cause bugs (e.g. in
  12730. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12731. # suppresses any "Segmentation fault" message there. '((' could
  12732. # trigger a bug in pdksh 5.2.14.
  12733. for as_var in BASH_ENV ENV MAIL MAILPATH
  12734. do eval test x\${$as_var+set} = xset \
  12735. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12736. done
  12737. PS1='$ '
  12738. PS2='> '
  12739. PS4='+ '
  12740. # NLS nuisances.
  12741. LC_ALL=C
  12742. export LC_ALL
  12743. LANGUAGE=C
  12744. export LANGUAGE
  12745. # CDPATH.
  12746. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12747. # as_fn_error ERROR [LINENO LOG_FD]
  12748. # ---------------------------------
  12749. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12750. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12751. # script with status $?, using 1 if that was 0.
  12752. as_fn_error ()
  12753. {
  12754. as_status=$?; test $as_status -eq 0 && as_status=1
  12755. if test "$3"; then
  12756. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12757. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12758. fi
  12759. $as_echo "$as_me: error: $1" >&2
  12760. as_fn_exit $as_status
  12761. } # as_fn_error
  12762. # as_fn_set_status STATUS
  12763. # -----------------------
  12764. # Set $? to STATUS, without forking.
  12765. as_fn_set_status ()
  12766. {
  12767. return $1
  12768. } # as_fn_set_status
  12769. # as_fn_exit STATUS
  12770. # -----------------
  12771. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12772. as_fn_exit ()
  12773. {
  12774. set +e
  12775. as_fn_set_status $1
  12776. exit $1
  12777. } # as_fn_exit
  12778. # as_fn_unset VAR
  12779. # ---------------
  12780. # Portably unset VAR.
  12781. as_fn_unset ()
  12782. {
  12783. { eval $1=; unset $1;}
  12784. }
  12785. as_unset=as_fn_unset
  12786. # as_fn_append VAR VALUE
  12787. # ----------------------
  12788. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12789. # advantage of any shell optimizations that allow amortized linear growth over
  12790. # repeated appends, instead of the typical quadratic growth present in naive
  12791. # implementations.
  12792. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12793. eval 'as_fn_append ()
  12794. {
  12795. eval $1+=\$2
  12796. }'
  12797. else
  12798. as_fn_append ()
  12799. {
  12800. eval $1=\$$1\$2
  12801. }
  12802. fi # as_fn_append
  12803. # as_fn_arith ARG...
  12804. # ------------------
  12805. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12806. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12807. # must be portable across $(()) and expr.
  12808. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12809. eval 'as_fn_arith ()
  12810. {
  12811. as_val=$(( $* ))
  12812. }'
  12813. else
  12814. as_fn_arith ()
  12815. {
  12816. as_val=`expr "$@" || test $? -eq 1`
  12817. }
  12818. fi # as_fn_arith
  12819. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12820. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12821. as_expr=expr
  12822. else
  12823. as_expr=false
  12824. fi
  12825. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12826. as_basename=basename
  12827. else
  12828. as_basename=false
  12829. fi
  12830. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12831. as_dirname=dirname
  12832. else
  12833. as_dirname=false
  12834. fi
  12835. as_me=`$as_basename -- "$0" ||
  12836. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12837. X"$0" : 'X\(//\)$' \| \
  12838. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12839. $as_echo X/"$0" |
  12840. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12841. s//\1/
  12842. q
  12843. }
  12844. /^X\/\(\/\/\)$/{
  12845. s//\1/
  12846. q
  12847. }
  12848. /^X\/\(\/\).*/{
  12849. s//\1/
  12850. q
  12851. }
  12852. s/.*/./; q'`
  12853. # Avoid depending upon Character Ranges.
  12854. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12855. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12856. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12857. as_cr_digits='0123456789'
  12858. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12859. ECHO_C= ECHO_N= ECHO_T=
  12860. case `echo -n x` in #(((((
  12861. -n*)
  12862. case `echo 'xy\c'` in
  12863. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12864. xy) ECHO_C='\c';;
  12865. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12866. ECHO_T=' ';;
  12867. esac;;
  12868. *)
  12869. ECHO_N='-n';;
  12870. esac
  12871. rm -f conf$$ conf$$.exe conf$$.file
  12872. if test -d conf$$.dir; then
  12873. rm -f conf$$.dir/conf$$.file
  12874. else
  12875. rm -f conf$$.dir
  12876. mkdir conf$$.dir 2>/dev/null
  12877. fi
  12878. if (echo >conf$$.file) 2>/dev/null; then
  12879. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12880. as_ln_s='ln -s'
  12881. # ... but there are two gotchas:
  12882. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12883. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12884. # In both cases, we have to default to `cp -p'.
  12885. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12886. as_ln_s='cp -p'
  12887. elif ln conf$$.file conf$$ 2>/dev/null; then
  12888. as_ln_s=ln
  12889. else
  12890. as_ln_s='cp -p'
  12891. fi
  12892. else
  12893. as_ln_s='cp -p'
  12894. fi
  12895. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12896. rmdir conf$$.dir 2>/dev/null
  12897. # as_fn_mkdir_p
  12898. # -------------
  12899. # Create "$as_dir" as a directory, including parents if necessary.
  12900. as_fn_mkdir_p ()
  12901. {
  12902. case $as_dir in #(
  12903. -*) as_dir=./$as_dir;;
  12904. esac
  12905. test -d "$as_dir" || eval $as_mkdir_p || {
  12906. as_dirs=
  12907. while :; do
  12908. case $as_dir in #(
  12909. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12910. *) as_qdir=$as_dir;;
  12911. esac
  12912. as_dirs="'$as_qdir' $as_dirs"
  12913. as_dir=`$as_dirname -- "$as_dir" ||
  12914. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12915. X"$as_dir" : 'X\(//\)[^/]' \| \
  12916. X"$as_dir" : 'X\(//\)$' \| \
  12917. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12918. $as_echo X"$as_dir" |
  12919. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12920. s//\1/
  12921. q
  12922. }
  12923. /^X\(\/\/\)[^/].*/{
  12924. s//\1/
  12925. q
  12926. }
  12927. /^X\(\/\/\)$/{
  12928. s//\1/
  12929. q
  12930. }
  12931. /^X\(\/\).*/{
  12932. s//\1/
  12933. q
  12934. }
  12935. s/.*/./; q'`
  12936. test -d "$as_dir" && break
  12937. done
  12938. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12939. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  12940. } # as_fn_mkdir_p
  12941. if mkdir -p . 2>/dev/null; then
  12942. as_mkdir_p='mkdir -p "$as_dir"'
  12943. else
  12944. test -d ./-p && rmdir ./-p
  12945. as_mkdir_p=false
  12946. fi
  12947. if test -x / >/dev/null 2>&1; then
  12948. as_test_x='test -x'
  12949. else
  12950. if ls -dL / >/dev/null 2>&1; then
  12951. as_ls_L_option=L
  12952. else
  12953. as_ls_L_option=
  12954. fi
  12955. as_test_x='
  12956. eval sh -c '\''
  12957. if test -d "$1"; then
  12958. test -d "$1/.";
  12959. else
  12960. case $1 in #(
  12961. -*)set "./$1";;
  12962. esac;
  12963. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  12964. ???[sx]*):;;*)false;;esac;fi
  12965. '\'' sh
  12966. '
  12967. fi
  12968. as_executable_p=$as_test_x
  12969. # Sed expression to map a string onto a valid CPP name.
  12970. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12971. # Sed expression to map a string onto a valid variable name.
  12972. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12973. exec 6>&1
  12974. ## ----------------------------------- ##
  12975. ## Main body of $CONFIG_STATUS script. ##
  12976. ## ----------------------------------- ##
  12977. _ASEOF
  12978. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12979. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12980. # Save the log message, to keep $0 and so on meaningful, and to
  12981. # report actual input values of CONFIG_FILES etc. instead of their
  12982. # values after options handling.
  12983. ac_log="
  12984. This file was extended by qnutdisc $as_me 3.0, which was
  12985. generated by GNU Autoconf 2.65. Invocation command line was
  12986. CONFIG_FILES = $CONFIG_FILES
  12987. CONFIG_HEADERS = $CONFIG_HEADERS
  12988. CONFIG_LINKS = $CONFIG_LINKS
  12989. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12990. $ $0 $@
  12991. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12992. "
  12993. _ACEOF
  12994. case $ac_config_files in *"
  12995. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12996. esac
  12997. case $ac_config_headers in *"
  12998. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12999. esac
  13000. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13001. # Files that config.status was made for.
  13002. config_files="$ac_config_files"
  13003. config_headers="$ac_config_headers"
  13004. config_commands="$ac_config_commands"
  13005. _ACEOF
  13006. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13007. ac_cs_usage="\
  13008. \`$as_me' instantiates files and other configuration actions
  13009. from templates according to the current configuration. Unless the files
  13010. and actions are specified as TAGs, all are instantiated by default.
  13011. Usage: $0 [OPTION]... [TAG]...
  13012. -h, --help print this help, then exit
  13013. -V, --version print version number and configuration settings, then exit
  13014. --config print configuration, then exit
  13015. -q, --quiet, --silent
  13016. do not print progress messages
  13017. -d, --debug don't remove temporary files
  13018. --recheck update $as_me by reconfiguring in the same conditions
  13019. --file=FILE[:TEMPLATE]
  13020. instantiate the configuration file FILE
  13021. --header=FILE[:TEMPLATE]
  13022. instantiate the configuration header FILE
  13023. Configuration files:
  13024. $config_files
  13025. Configuration headers:
  13026. $config_headers
  13027. Configuration commands:
  13028. $config_commands
  13029. Report bugs to the package provider."
  13030. _ACEOF
  13031. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13032. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13033. ac_cs_version="\\
  13034. qnutdisc config.status 3.0
  13035. configured by $0, generated by GNU Autoconf 2.65,
  13036. with options \\"\$ac_cs_config\\"
  13037. Copyright (C) 2009 Free Software Foundation, Inc.
  13038. This config.status script is free software; the Free Software Foundation
  13039. gives unlimited permission to copy, distribute and modify it."
  13040. ac_pwd='$ac_pwd'
  13041. srcdir='$srcdir'
  13042. INSTALL='$INSTALL'
  13043. MKDIR_P='$MKDIR_P'
  13044. AWK='$AWK'
  13045. test -n "\$AWK" || AWK=awk
  13046. _ACEOF
  13047. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13048. # The default lists apply if the user does not specify any file.
  13049. ac_need_defaults=:
  13050. while test $# != 0
  13051. do
  13052. case $1 in
  13053. --*=*)
  13054. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13055. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13056. ac_shift=:
  13057. ;;
  13058. *)
  13059. ac_option=$1
  13060. ac_optarg=$2
  13061. ac_shift=shift
  13062. ;;
  13063. esac
  13064. case $ac_option in
  13065. # Handling of the options.
  13066. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13067. ac_cs_recheck=: ;;
  13068. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13069. $as_echo "$ac_cs_version"; exit ;;
  13070. --config | --confi | --conf | --con | --co | --c )
  13071. $as_echo "$ac_cs_config"; exit ;;
  13072. --debug | --debu | --deb | --de | --d | -d )
  13073. debug=: ;;
  13074. --file | --fil | --fi | --f )
  13075. $ac_shift
  13076. case $ac_optarg in
  13077. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13078. esac
  13079. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13080. ac_need_defaults=false;;
  13081. --header | --heade | --head | --hea )
  13082. $ac_shift
  13083. case $ac_optarg in
  13084. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13085. esac
  13086. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13087. ac_need_defaults=false;;
  13088. --he | --h)
  13089. # Conflict between --help and --header
  13090. as_fn_error "ambiguous option: \`$1'
  13091. Try \`$0 --help' for more information.";;
  13092. --help | --hel | -h )
  13093. $as_echo "$ac_cs_usage"; exit ;;
  13094. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13095. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13096. ac_cs_silent=: ;;
  13097. # This is an error.
  13098. -*) as_fn_error "unrecognized option: \`$1'
  13099. Try \`$0 --help' for more information." ;;
  13100. *) as_fn_append ac_config_targets " $1"
  13101. ac_need_defaults=false ;;
  13102. esac
  13103. shift
  13104. done
  13105. ac_configure_extra_args=
  13106. if $ac_cs_silent; then
  13107. exec 6>/dev/null
  13108. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13109. fi
  13110. _ACEOF
  13111. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13112. if \$ac_cs_recheck; then
  13113. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13114. shift
  13115. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13116. CONFIG_SHELL='$SHELL'
  13117. export CONFIG_SHELL
  13118. exec "\$@"
  13119. fi
  13120. _ACEOF
  13121. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13122. exec 5>>config.log
  13123. {
  13124. echo
  13125. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13126. ## Running $as_me. ##
  13127. _ASBOX
  13128. $as_echo "$ac_log"
  13129. } >&5
  13130. _ACEOF
  13131. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13132. #
  13133. # INIT-COMMANDS
  13134. #
  13135. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13136. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13137. # if CDPATH is set.
  13138. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13139. sed_quote_subst='$sed_quote_subst'
  13140. double_quote_subst='$double_quote_subst'
  13141. delay_variable_subst='$delay_variable_subst'
  13142. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  13143. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  13144. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  13145. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  13146. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  13147. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  13148. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13149. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  13150. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  13151. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13152. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  13153. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  13154. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  13155. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  13156. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  13157. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13158. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13159. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  13160. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  13161. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  13162. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  13163. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  13164. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  13165. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  13166. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  13167. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  13168. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13169. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13170. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  13171. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  13172. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  13173. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  13174. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13175. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  13176. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  13177. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13178. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13179. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13180. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  13181. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13182. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  13183. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  13184. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  13185. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  13186. 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"`'
  13187. 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"`'
  13188. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  13189. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  13190. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  13191. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  13192. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13193. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  13194. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  13195. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  13196. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  13197. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  13198. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  13199. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  13200. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  13201. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13202. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  13203. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  13204. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13205. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13206. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  13207. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  13208. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13209. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13210. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  13211. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13212. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13213. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13214. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13215. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13216. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13217. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13218. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13219. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13220. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13221. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13222. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  13223. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  13224. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  13225. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  13226. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13227. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  13228. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  13229. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  13230. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  13231. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  13232. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13233. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13234. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13235. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13236. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13237. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  13238. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13239. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  13240. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  13241. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13242. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13243. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  13244. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13245. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13246. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13247. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13248. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13249. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13250. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  13251. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  13252. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13253. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13254. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  13255. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  13256. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  13257. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  13258. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13259. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13260. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  13261. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13262. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13263. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  13264. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  13265. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  13266. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13267. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13268. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13269. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13270. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13271. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13272. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13273. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13274. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13275. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13276. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13277. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13278. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13279. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13280. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13281. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13282. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13283. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13284. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13285. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13286. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13287. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13288. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13289. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13290. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13291. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13292. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13293. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13294. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13295. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13296. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13297. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13298. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13299. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13300. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13301. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13302. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13303. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13304. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13305. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13306. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13307. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13308. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13309. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13310. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13311. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13312. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13313. LTCC='$LTCC'
  13314. LTCFLAGS='$LTCFLAGS'
  13315. compiler='$compiler_DEFAULT'
  13316. # Quote evaled strings.
  13317. for var in SED \
  13318. GREP \
  13319. EGREP \
  13320. FGREP \
  13321. LD \
  13322. NM \
  13323. LN_S \
  13324. lt_SP2NL \
  13325. lt_NL2SP \
  13326. reload_flag \
  13327. OBJDUMP \
  13328. deplibs_check_method \
  13329. file_magic_cmd \
  13330. AR \
  13331. AR_FLAGS \
  13332. STRIP \
  13333. RANLIB \
  13334. CC \
  13335. CFLAGS \
  13336. compiler \
  13337. lt_cv_sys_global_symbol_pipe \
  13338. lt_cv_sys_global_symbol_to_cdecl \
  13339. lt_cv_sys_global_symbol_to_c_name_address \
  13340. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13341. SHELL \
  13342. ECHO \
  13343. lt_prog_compiler_no_builtin_flag \
  13344. lt_prog_compiler_wl \
  13345. lt_prog_compiler_pic \
  13346. lt_prog_compiler_static \
  13347. lt_cv_prog_compiler_c_o \
  13348. need_locks \
  13349. DSYMUTIL \
  13350. NMEDIT \
  13351. LIPO \
  13352. OTOOL \
  13353. OTOOL64 \
  13354. shrext_cmds \
  13355. export_dynamic_flag_spec \
  13356. whole_archive_flag_spec \
  13357. compiler_needs_object \
  13358. with_gnu_ld \
  13359. allow_undefined_flag \
  13360. no_undefined_flag \
  13361. hardcode_libdir_flag_spec \
  13362. hardcode_libdir_flag_spec_ld \
  13363. hardcode_libdir_separator \
  13364. fix_srcfile_path \
  13365. exclude_expsyms \
  13366. include_expsyms \
  13367. file_list_spec \
  13368. variables_saved_for_relink \
  13369. libname_spec \
  13370. library_names_spec \
  13371. soname_spec \
  13372. finish_eval \
  13373. old_striplib \
  13374. striplib \
  13375. compiler_lib_search_dirs \
  13376. predep_objects \
  13377. postdep_objects \
  13378. predeps \
  13379. postdeps \
  13380. compiler_lib_search_path \
  13381. LD_CXX \
  13382. compiler_CXX \
  13383. lt_prog_compiler_no_builtin_flag_CXX \
  13384. lt_prog_compiler_wl_CXX \
  13385. lt_prog_compiler_pic_CXX \
  13386. lt_prog_compiler_static_CXX \
  13387. lt_cv_prog_compiler_c_o_CXX \
  13388. export_dynamic_flag_spec_CXX \
  13389. whole_archive_flag_spec_CXX \
  13390. compiler_needs_object_CXX \
  13391. with_gnu_ld_CXX \
  13392. allow_undefined_flag_CXX \
  13393. no_undefined_flag_CXX \
  13394. hardcode_libdir_flag_spec_CXX \
  13395. hardcode_libdir_flag_spec_ld_CXX \
  13396. hardcode_libdir_separator_CXX \
  13397. fix_srcfile_path_CXX \
  13398. exclude_expsyms_CXX \
  13399. include_expsyms_CXX \
  13400. file_list_spec_CXX \
  13401. compiler_lib_search_dirs_CXX \
  13402. predep_objects_CXX \
  13403. postdep_objects_CXX \
  13404. predeps_CXX \
  13405. postdeps_CXX \
  13406. compiler_lib_search_path_CXX; do
  13407. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13408. *[\\\\\\\`\\"\\\$]*)
  13409. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13410. ;;
  13411. *)
  13412. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13413. ;;
  13414. esac
  13415. done
  13416. # Double-quote double-evaled strings.
  13417. for var in reload_cmds \
  13418. old_postinstall_cmds \
  13419. old_postuninstall_cmds \
  13420. old_archive_cmds \
  13421. extract_expsyms_cmds \
  13422. old_archive_from_new_cmds \
  13423. old_archive_from_expsyms_cmds \
  13424. archive_cmds \
  13425. archive_expsym_cmds \
  13426. module_cmds \
  13427. module_expsym_cmds \
  13428. export_symbols_cmds \
  13429. prelink_cmds \
  13430. postinstall_cmds \
  13431. postuninstall_cmds \
  13432. finish_cmds \
  13433. sys_lib_search_path_spec \
  13434. sys_lib_dlsearch_path_spec \
  13435. old_archive_cmds_CXX \
  13436. old_archive_from_new_cmds_CXX \
  13437. old_archive_from_expsyms_cmds_CXX \
  13438. archive_cmds_CXX \
  13439. archive_expsym_cmds_CXX \
  13440. module_cmds_CXX \
  13441. module_expsym_cmds_CXX \
  13442. export_symbols_cmds_CXX \
  13443. prelink_cmds_CXX; do
  13444. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13445. *[\\\\\\\`\\"\\\$]*)
  13446. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13447. ;;
  13448. *)
  13449. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13450. ;;
  13451. esac
  13452. done
  13453. # Fix-up fallback echo if it was mangled by the above quoting rules.
  13454. case \$lt_ECHO in
  13455. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  13456. ;;
  13457. esac
  13458. ac_aux_dir='$ac_aux_dir'
  13459. xsi_shell='$xsi_shell'
  13460. lt_shell_append='$lt_shell_append'
  13461. # See if we are running on zsh, and set the options which allow our
  13462. # commands through without removal of \ escapes INIT.
  13463. if test -n "\${ZSH_VERSION+set}" ; then
  13464. setopt NO_GLOB_SUBST
  13465. fi
  13466. PACKAGE='$PACKAGE'
  13467. VERSION='$VERSION'
  13468. TIMESTAMP='$TIMESTAMP'
  13469. RM='$RM'
  13470. ofile='$ofile'
  13471. _ACEOF
  13472. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13473. # Handling of arguments.
  13474. for ac_config_target in $ac_config_targets
  13475. do
  13476. case $ac_config_target in
  13477. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13478. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13479. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13480. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13481. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13482. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13483. esac
  13484. done
  13485. # If the user did not use the arguments to specify the items to instantiate,
  13486. # then the envvar interface is used. Set only those that are not.
  13487. # We use the long form for the default assignment because of an extremely
  13488. # bizarre bug on SunOS 4.1.3.
  13489. if $ac_need_defaults; then
  13490. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13491. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13492. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13493. fi
  13494. # Have a temporary directory for convenience. Make it in the build tree
  13495. # simply because there is no reason against having it here, and in addition,
  13496. # creating and moving files from /tmp can sometimes cause problems.
  13497. # Hook for its removal unless debugging.
  13498. # Note that there is a small window in which the directory will not be cleaned:
  13499. # after its creation but before its name has been assigned to `$tmp'.
  13500. $debug ||
  13501. {
  13502. tmp=
  13503. trap 'exit_status=$?
  13504. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13505. ' 0
  13506. trap 'as_fn_exit 1' 1 2 13 15
  13507. }
  13508. # Create a (secure) tmp directory for tmp files.
  13509. {
  13510. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13511. test -n "$tmp" && test -d "$tmp"
  13512. } ||
  13513. {
  13514. tmp=./conf$$-$RANDOM
  13515. (umask 077 && mkdir "$tmp")
  13516. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13517. # Set up the scripts for CONFIG_FILES section.
  13518. # No need to generate them if there are no CONFIG_FILES.
  13519. # This happens for instance with `./config.status config.h'.
  13520. if test -n "$CONFIG_FILES"; then
  13521. ac_cr=`echo X | tr X '\015'`
  13522. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13523. # But we know of no other shell where ac_cr would be empty at this
  13524. # point, so we can use a bashism as a fallback.
  13525. if test "x$ac_cr" = x; then
  13526. eval ac_cr=\$\'\\r\'
  13527. fi
  13528. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13529. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13530. ac_cs_awk_cr='\r'
  13531. else
  13532. ac_cs_awk_cr=$ac_cr
  13533. fi
  13534. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13535. _ACEOF
  13536. {
  13537. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13538. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13539. echo "_ACEOF"
  13540. } >conf$$subs.sh ||
  13541. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13542. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13543. ac_delim='%!_!# '
  13544. for ac_last_try in false false false false false :; do
  13545. . ./conf$$subs.sh ||
  13546. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13547. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13548. if test $ac_delim_n = $ac_delim_num; then
  13549. break
  13550. elif $ac_last_try; then
  13551. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13552. else
  13553. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13554. fi
  13555. done
  13556. rm -f conf$$subs.sh
  13557. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13558. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13559. _ACEOF
  13560. sed -n '
  13561. h
  13562. s/^/S["/; s/!.*/"]=/
  13563. p
  13564. g
  13565. s/^[^!]*!//
  13566. :repl
  13567. t repl
  13568. s/'"$ac_delim"'$//
  13569. t delim
  13570. :nl
  13571. h
  13572. s/\(.\{148\}\)..*/\1/
  13573. t more1
  13574. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13575. p
  13576. n
  13577. b repl
  13578. :more1
  13579. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13580. p
  13581. g
  13582. s/.\{148\}//
  13583. t nl
  13584. :delim
  13585. h
  13586. s/\(.\{148\}\)..*/\1/
  13587. t more2
  13588. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13589. p
  13590. b
  13591. :more2
  13592. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13593. p
  13594. g
  13595. s/.\{148\}//
  13596. t delim
  13597. ' <conf$$subs.awk | sed '
  13598. /^[^""]/{
  13599. N
  13600. s/\n//
  13601. }
  13602. ' >>$CONFIG_STATUS || ac_write_fail=1
  13603. rm -f conf$$subs.awk
  13604. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13605. _ACAWK
  13606. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13607. for (key in S) S_is_set[key] = 1
  13608. FS = ""
  13609. }
  13610. {
  13611. line = $ 0
  13612. nfields = split(line, field, "@")
  13613. substed = 0
  13614. len = length(field[1])
  13615. for (i = 2; i < nfields; i++) {
  13616. key = field[i]
  13617. keylen = length(key)
  13618. if (S_is_set[key]) {
  13619. value = S[key]
  13620. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13621. len += length(value) + length(field[++i])
  13622. substed = 1
  13623. } else
  13624. len += 1 + keylen
  13625. }
  13626. print line
  13627. }
  13628. _ACAWK
  13629. _ACEOF
  13630. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13631. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13632. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13633. else
  13634. cat
  13635. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13636. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13637. _ACEOF
  13638. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13639. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13640. # trailing colons and then remove the whole line if VPATH becomes empty
  13641. # (actually we leave an empty line to preserve line numbers).
  13642. if test "x$srcdir" = x.; then
  13643. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13644. s/:*\$(srcdir):*/:/
  13645. s/:*\${srcdir}:*/:/
  13646. s/:*@srcdir@:*/:/
  13647. s/^\([^=]*=[ ]*\):*/\1/
  13648. s/:*$//
  13649. s/^[^=]*=[ ]*$//
  13650. }'
  13651. fi
  13652. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13653. fi # test -n "$CONFIG_FILES"
  13654. # Set up the scripts for CONFIG_HEADERS section.
  13655. # No need to generate them if there are no CONFIG_HEADERS.
  13656. # This happens for instance with `./config.status Makefile'.
  13657. if test -n "$CONFIG_HEADERS"; then
  13658. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13659. BEGIN {
  13660. _ACEOF
  13661. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13662. # here-document in config.status, that substitutes the proper values into
  13663. # config.h.in to produce config.h.
  13664. # Create a delimiter string that does not exist in confdefs.h, to ease
  13665. # handling of long lines.
  13666. ac_delim='%!_!# '
  13667. for ac_last_try in false false :; do
  13668. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13669. if test -z "$ac_t"; then
  13670. break
  13671. elif $ac_last_try; then
  13672. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  13673. else
  13674. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13675. fi
  13676. done
  13677. # For the awk script, D is an array of macro values keyed by name,
  13678. # likewise P contains macro parameters if any. Preserve backslash
  13679. # newline sequences.
  13680. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13681. sed -n '
  13682. s/.\{148\}/&'"$ac_delim"'/g
  13683. t rset
  13684. :rset
  13685. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13686. t def
  13687. d
  13688. :def
  13689. s/\\$//
  13690. t bsnl
  13691. s/["\\]/\\&/g
  13692. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13693. D["\1"]=" \3"/p
  13694. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13695. d
  13696. :bsnl
  13697. s/["\\]/\\&/g
  13698. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13699. D["\1"]=" \3\\\\\\n"\\/p
  13700. t cont
  13701. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13702. t cont
  13703. d
  13704. :cont
  13705. n
  13706. s/.\{148\}/&'"$ac_delim"'/g
  13707. t clear
  13708. :clear
  13709. s/\\$//
  13710. t bsnlc
  13711. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13712. d
  13713. :bsnlc
  13714. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13715. b cont
  13716. ' <confdefs.h | sed '
  13717. s/'"$ac_delim"'/"\\\
  13718. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13719. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13720. for (key in D) D_is_set[key] = 1
  13721. FS = ""
  13722. }
  13723. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13724. line = \$ 0
  13725. split(line, arg, " ")
  13726. if (arg[1] == "#") {
  13727. defundef = arg[2]
  13728. mac1 = arg[3]
  13729. } else {
  13730. defundef = substr(arg[1], 2)
  13731. mac1 = arg[2]
  13732. }
  13733. split(mac1, mac2, "(") #)
  13734. macro = mac2[1]
  13735. prefix = substr(line, 1, index(line, defundef) - 1)
  13736. if (D_is_set[macro]) {
  13737. # Preserve the white space surrounding the "#".
  13738. print prefix "define", macro P[macro] D[macro]
  13739. next
  13740. } else {
  13741. # Replace #undef with comments. This is necessary, for example,
  13742. # in the case of _POSIX_SOURCE, which is predefined and required
  13743. # on some systems where configure will not decide to define it.
  13744. if (defundef == "undef") {
  13745. print "/*", prefix defundef, macro, "*/"
  13746. next
  13747. }
  13748. }
  13749. }
  13750. { print }
  13751. _ACAWK
  13752. _ACEOF
  13753. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13754. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  13755. fi # test -n "$CONFIG_HEADERS"
  13756. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13757. shift
  13758. for ac_tag
  13759. do
  13760. case $ac_tag in
  13761. :[FHLC]) ac_mode=$ac_tag; continue;;
  13762. esac
  13763. case $ac_mode$ac_tag in
  13764. :[FHL]*:*);;
  13765. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13766. :[FH]-) ac_tag=-:-;;
  13767. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13768. esac
  13769. ac_save_IFS=$IFS
  13770. IFS=:
  13771. set x $ac_tag
  13772. IFS=$ac_save_IFS
  13773. shift
  13774. ac_file=$1
  13775. shift
  13776. case $ac_mode in
  13777. :L) ac_source=$1;;
  13778. :[FH])
  13779. ac_file_inputs=
  13780. for ac_f
  13781. do
  13782. case $ac_f in
  13783. -) ac_f="$tmp/stdin";;
  13784. *) # Look for the file first in the build tree, then in the source tree
  13785. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13786. # because $ac_f cannot contain `:'.
  13787. test -f "$ac_f" ||
  13788. case $ac_f in
  13789. [\\/$]*) false;;
  13790. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13791. esac ||
  13792. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13793. esac
  13794. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13795. as_fn_append ac_file_inputs " '$ac_f'"
  13796. done
  13797. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13798. # use $as_me), people would be surprised to read:
  13799. # /* config.h. Generated by config.status. */
  13800. configure_input='Generated from '`
  13801. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13802. `' by configure.'
  13803. if test x"$ac_file" != x-; then
  13804. configure_input="$ac_file. $configure_input"
  13805. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13806. $as_echo "$as_me: creating $ac_file" >&6;}
  13807. fi
  13808. # Neutralize special characters interpreted by sed in replacement strings.
  13809. case $configure_input in #(
  13810. *\&* | *\|* | *\\* )
  13811. ac_sed_conf_input=`$as_echo "$configure_input" |
  13812. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13813. *) ac_sed_conf_input=$configure_input;;
  13814. esac
  13815. case $ac_tag in
  13816. *:-:* | *:-) cat >"$tmp/stdin" \
  13817. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13818. esac
  13819. ;;
  13820. esac
  13821. ac_dir=`$as_dirname -- "$ac_file" ||
  13822. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13823. X"$ac_file" : 'X\(//\)[^/]' \| \
  13824. X"$ac_file" : 'X\(//\)$' \| \
  13825. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13826. $as_echo X"$ac_file" |
  13827. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13828. s//\1/
  13829. q
  13830. }
  13831. /^X\(\/\/\)[^/].*/{
  13832. s//\1/
  13833. q
  13834. }
  13835. /^X\(\/\/\)$/{
  13836. s//\1/
  13837. q
  13838. }
  13839. /^X\(\/\).*/{
  13840. s//\1/
  13841. q
  13842. }
  13843. s/.*/./; q'`
  13844. as_dir="$ac_dir"; as_fn_mkdir_p
  13845. ac_builddir=.
  13846. case "$ac_dir" in
  13847. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13848. *)
  13849. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13850. # A ".." for each directory in $ac_dir_suffix.
  13851. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13852. case $ac_top_builddir_sub in
  13853. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13854. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13855. esac ;;
  13856. esac
  13857. ac_abs_top_builddir=$ac_pwd
  13858. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13859. # for backward compatibility:
  13860. ac_top_builddir=$ac_top_build_prefix
  13861. case $srcdir in
  13862. .) # We are building in place.
  13863. ac_srcdir=.
  13864. ac_top_srcdir=$ac_top_builddir_sub
  13865. ac_abs_top_srcdir=$ac_pwd ;;
  13866. [\\/]* | ?:[\\/]* ) # Absolute name.
  13867. ac_srcdir=$srcdir$ac_dir_suffix;
  13868. ac_top_srcdir=$srcdir
  13869. ac_abs_top_srcdir=$srcdir ;;
  13870. *) # Relative name.
  13871. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13872. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13873. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13874. esac
  13875. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13876. case $ac_mode in
  13877. :F)
  13878. #
  13879. # CONFIG_FILE
  13880. #
  13881. case $INSTALL in
  13882. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13883. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13884. esac
  13885. ac_MKDIR_P=$MKDIR_P
  13886. case $MKDIR_P in
  13887. [\\/$]* | ?:[\\/]* ) ;;
  13888. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13889. esac
  13890. _ACEOF
  13891. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13892. # If the template does not know about datarootdir, expand it.
  13893. # FIXME: This hack should be removed a few years after 2.60.
  13894. ac_datarootdir_hack=; ac_datarootdir_seen=
  13895. ac_sed_dataroot='
  13896. /datarootdir/ {
  13897. p
  13898. q
  13899. }
  13900. /@datadir@/p
  13901. /@docdir@/p
  13902. /@infodir@/p
  13903. /@localedir@/p
  13904. /@mandir@/p'
  13905. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13906. *datarootdir*) ac_datarootdir_seen=yes;;
  13907. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13908. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13909. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13910. _ACEOF
  13911. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13912. ac_datarootdir_hack='
  13913. s&@datadir@&$datadir&g
  13914. s&@docdir@&$docdir&g
  13915. s&@infodir@&$infodir&g
  13916. s&@localedir@&$localedir&g
  13917. s&@mandir@&$mandir&g
  13918. s&\\\${datarootdir}&$datarootdir&g' ;;
  13919. esac
  13920. _ACEOF
  13921. # Neutralize VPATH when `$srcdir' = `.'.
  13922. # Shell code in configure.ac might set extrasub.
  13923. # FIXME: do we really want to maintain this feature?
  13924. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13925. ac_sed_extra="$ac_vpsub
  13926. $extrasub
  13927. _ACEOF
  13928. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13929. :t
  13930. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13931. s|@configure_input@|$ac_sed_conf_input|;t t
  13932. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13933. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13934. s&@srcdir@&$ac_srcdir&;t t
  13935. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13936. s&@top_srcdir@&$ac_top_srcdir&;t t
  13937. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13938. s&@builddir@&$ac_builddir&;t t
  13939. s&@abs_builddir@&$ac_abs_builddir&;t t
  13940. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13941. s&@INSTALL@&$ac_INSTALL&;t t
  13942. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13943. $ac_datarootdir_hack
  13944. "
  13945. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13946. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13947. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13948. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13949. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13951. which seems to be undefined. Please make sure it is defined." >&5
  13952. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13953. which seems to be undefined. Please make sure it is defined." >&2;}
  13954. rm -f "$tmp/stdin"
  13955. case $ac_file in
  13956. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13957. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13958. esac \
  13959. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13960. ;;
  13961. :H)
  13962. #
  13963. # CONFIG_HEADER
  13964. #
  13965. if test x"$ac_file" != x-; then
  13966. {
  13967. $as_echo "/* $configure_input */" \
  13968. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13969. } >"$tmp/config.h" \
  13970. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13971. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13972. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13973. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13974. else
  13975. rm -f "$ac_file"
  13976. mv "$tmp/config.h" "$ac_file" \
  13977. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13978. fi
  13979. else
  13980. $as_echo "/* $configure_input */" \
  13981. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13982. || as_fn_error "could not create -" "$LINENO" 5
  13983. fi
  13984. # Compute "$ac_file"'s index in $config_headers.
  13985. _am_arg="$ac_file"
  13986. _am_stamp_count=1
  13987. for _am_header in $config_headers :; do
  13988. case $_am_header in
  13989. $_am_arg | $_am_arg:* )
  13990. break ;;
  13991. * )
  13992. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13993. esac
  13994. done
  13995. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13996. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13997. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13998. X"$_am_arg" : 'X\(//\)$' \| \
  13999. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14000. $as_echo X"$_am_arg" |
  14001. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14002. s//\1/
  14003. q
  14004. }
  14005. /^X\(\/\/\)[^/].*/{
  14006. s//\1/
  14007. q
  14008. }
  14009. /^X\(\/\/\)$/{
  14010. s//\1/
  14011. q
  14012. }
  14013. /^X\(\/\).*/{
  14014. s//\1/
  14015. q
  14016. }
  14017. s/.*/./; q'`/stamp-h$_am_stamp_count
  14018. ;;
  14019. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14020. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14021. ;;
  14022. esac
  14023. case $ac_file$ac_mode in
  14024. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14025. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14026. # are listed without --file. Let's play safe and only enable the eval
  14027. # if we detect the quoting.
  14028. case $CONFIG_FILES in
  14029. *\'*) eval set x "$CONFIG_FILES" ;;
  14030. *) set x $CONFIG_FILES ;;
  14031. esac
  14032. shift
  14033. for mf
  14034. do
  14035. # Strip MF so we end up with the name of the file.
  14036. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14037. # Check whether this is an Automake generated Makefile or not.
  14038. # We used to match only the files named `Makefile.in', but
  14039. # some people rename them; so instead we look at the file content.
  14040. # Grep'ing the first line is not enough: some people post-process
  14041. # each Makefile.in and add a new line on top of each file to say so.
  14042. # Grep'ing the whole file is not good either: AIX grep has a line
  14043. # limit of 2048, but all sed's we know have understand at least 4000.
  14044. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14045. dirpart=`$as_dirname -- "$mf" ||
  14046. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14047. X"$mf" : 'X\(//\)[^/]' \| \
  14048. X"$mf" : 'X\(//\)$' \| \
  14049. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14050. $as_echo X"$mf" |
  14051. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14052. s//\1/
  14053. q
  14054. }
  14055. /^X\(\/\/\)[^/].*/{
  14056. s//\1/
  14057. q
  14058. }
  14059. /^X\(\/\/\)$/{
  14060. s//\1/
  14061. q
  14062. }
  14063. /^X\(\/\).*/{
  14064. s//\1/
  14065. q
  14066. }
  14067. s/.*/./; q'`
  14068. else
  14069. continue
  14070. fi
  14071. # Extract the definition of DEPDIR, am__include, and am__quote
  14072. # from the Makefile without running `make'.
  14073. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14074. test -z "$DEPDIR" && continue
  14075. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14076. test -z "am__include" && continue
  14077. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14078. # When using ansi2knr, U may be empty or an underscore; expand it
  14079. U=`sed -n 's/^U = //p' < "$mf"`
  14080. # Find all dependency output files, they are included files with
  14081. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14082. # simplest approach to changing $(DEPDIR) to its actual value in the
  14083. # expansion.
  14084. for file in `sed -n "
  14085. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14086. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14087. # Make sure the directory exists.
  14088. test -f "$dirpart/$file" && continue
  14089. fdir=`$as_dirname -- "$file" ||
  14090. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14091. X"$file" : 'X\(//\)[^/]' \| \
  14092. X"$file" : 'X\(//\)$' \| \
  14093. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14094. $as_echo X"$file" |
  14095. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14096. s//\1/
  14097. q
  14098. }
  14099. /^X\(\/\/\)[^/].*/{
  14100. s//\1/
  14101. q
  14102. }
  14103. /^X\(\/\/\)$/{
  14104. s//\1/
  14105. q
  14106. }
  14107. /^X\(\/\).*/{
  14108. s//\1/
  14109. q
  14110. }
  14111. s/.*/./; q'`
  14112. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14113. # echo "creating $dirpart/$file"
  14114. echo '# dummy' > "$dirpart/$file"
  14115. done
  14116. done
  14117. }
  14118. ;;
  14119. "libtool":C)
  14120. # See if we are running on zsh, and set the options which allow our
  14121. # commands through without removal of \ escapes.
  14122. if test -n "${ZSH_VERSION+set}" ; then
  14123. setopt NO_GLOB_SUBST
  14124. fi
  14125. cfgfile="${ofile}T"
  14126. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14127. $RM "$cfgfile"
  14128. cat <<_LT_EOF >> "$cfgfile"
  14129. #! $SHELL
  14130. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14131. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14132. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14133. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14134. #
  14135. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14136. # 2006, 2007, 2008 Free Software Foundation, Inc.
  14137. # Written by Gordon Matzigkeit, 1996
  14138. #
  14139. # This file is part of GNU Libtool.
  14140. #
  14141. # GNU Libtool is free software; you can redistribute it and/or
  14142. # modify it under the terms of the GNU General Public License as
  14143. # published by the Free Software Foundation; either version 2 of
  14144. # the License, or (at your option) any later version.
  14145. #
  14146. # As a special exception to the GNU General Public License,
  14147. # if you distribute this file as part of a program or library that
  14148. # is built using GNU Libtool, you may include this file under the
  14149. # same distribution terms that you use for the rest of that program.
  14150. #
  14151. # GNU Libtool is distributed in the hope that it will be useful,
  14152. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14153. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14154. # GNU General Public License for more details.
  14155. #
  14156. # You should have received a copy of the GNU General Public License
  14157. # along with GNU Libtool; see the file COPYING. If not, a copy
  14158. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14159. # obtained by writing to the Free Software Foundation, Inc.,
  14160. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14161. # The names of the tagged configurations supported by this script.
  14162. available_tags="CXX "
  14163. # ### BEGIN LIBTOOL CONFIG
  14164. # Which release of libtool.m4 was used?
  14165. macro_version=$macro_version
  14166. macro_revision=$macro_revision
  14167. # Whether or not to build shared libraries.
  14168. build_libtool_libs=$enable_shared
  14169. # Whether or not to build static libraries.
  14170. build_old_libs=$enable_static
  14171. # What type of objects to build.
  14172. pic_mode=$pic_mode
  14173. # Whether or not to optimize for fast installation.
  14174. fast_install=$enable_fast_install
  14175. # The host system.
  14176. host_alias=$host_alias
  14177. host=$host
  14178. host_os=$host_os
  14179. # The build system.
  14180. build_alias=$build_alias
  14181. build=$build
  14182. build_os=$build_os
  14183. # A sed program that does not truncate output.
  14184. SED=$lt_SED
  14185. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14186. Xsed="\$SED -e 1s/^X//"
  14187. # A grep program that handles long lines.
  14188. GREP=$lt_GREP
  14189. # An ERE matcher.
  14190. EGREP=$lt_EGREP
  14191. # A literal string matcher.
  14192. FGREP=$lt_FGREP
  14193. # A BSD- or MS-compatible name lister.
  14194. NM=$lt_NM
  14195. # Whether we need soft or hard links.
  14196. LN_S=$lt_LN_S
  14197. # What is the maximum length of a command?
  14198. max_cmd_len=$max_cmd_len
  14199. # Object file suffix (normally "o").
  14200. objext=$ac_objext
  14201. # Executable file suffix (normally "").
  14202. exeext=$exeext
  14203. # whether the shell understands "unset".
  14204. lt_unset=$lt_unset
  14205. # turn spaces into newlines.
  14206. SP2NL=$lt_lt_SP2NL
  14207. # turn newlines into spaces.
  14208. NL2SP=$lt_lt_NL2SP
  14209. # How to create reloadable object files.
  14210. reload_flag=$lt_reload_flag
  14211. reload_cmds=$lt_reload_cmds
  14212. # An object symbol dumper.
  14213. OBJDUMP=$lt_OBJDUMP
  14214. # Method to check whether dependent libraries are shared objects.
  14215. deplibs_check_method=$lt_deplibs_check_method
  14216. # Command to use when deplibs_check_method == "file_magic".
  14217. file_magic_cmd=$lt_file_magic_cmd
  14218. # The archiver.
  14219. AR=$lt_AR
  14220. AR_FLAGS=$lt_AR_FLAGS
  14221. # A symbol stripping program.
  14222. STRIP=$lt_STRIP
  14223. # Commands used to install an old-style archive.
  14224. RANLIB=$lt_RANLIB
  14225. old_postinstall_cmds=$lt_old_postinstall_cmds
  14226. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14227. # A C compiler.
  14228. LTCC=$lt_CC
  14229. # LTCC compiler flags.
  14230. LTCFLAGS=$lt_CFLAGS
  14231. # Take the output of nm and produce a listing of raw symbols and C names.
  14232. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14233. # Transform the output of nm in a proper C declaration.
  14234. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14235. # Transform the output of nm in a C name address pair.
  14236. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14237. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14238. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14239. # The name of the directory that contains temporary libtool files.
  14240. objdir=$objdir
  14241. # Shell to use when invoking shell scripts.
  14242. SHELL=$lt_SHELL
  14243. # An echo program that does not interpret backslashes.
  14244. ECHO=$lt_ECHO
  14245. # Used to examine libraries when file_magic_cmd begins with "file".
  14246. MAGIC_CMD=$MAGIC_CMD
  14247. # Must we lock files when doing compilation?
  14248. need_locks=$lt_need_locks
  14249. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14250. DSYMUTIL=$lt_DSYMUTIL
  14251. # Tool to change global to local symbols on Mac OS X.
  14252. NMEDIT=$lt_NMEDIT
  14253. # Tool to manipulate fat objects and archives on Mac OS X.
  14254. LIPO=$lt_LIPO
  14255. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14256. OTOOL=$lt_OTOOL
  14257. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14258. OTOOL64=$lt_OTOOL64
  14259. # Old archive suffix (normally "a").
  14260. libext=$libext
  14261. # Shared library suffix (normally ".so").
  14262. shrext_cmds=$lt_shrext_cmds
  14263. # The commands to extract the exported symbol list from a shared archive.
  14264. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14265. # Variables whose values should be saved in libtool wrapper scripts and
  14266. # restored at link time.
  14267. variables_saved_for_relink=$lt_variables_saved_for_relink
  14268. # Do we need the "lib" prefix for modules?
  14269. need_lib_prefix=$need_lib_prefix
  14270. # Do we need a version for libraries?
  14271. need_version=$need_version
  14272. # Library versioning type.
  14273. version_type=$version_type
  14274. # Shared library runtime path variable.
  14275. runpath_var=$runpath_var
  14276. # Shared library path variable.
  14277. shlibpath_var=$shlibpath_var
  14278. # Is shlibpath searched before the hard-coded library search path?
  14279. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14280. # Format of library name prefix.
  14281. libname_spec=$lt_libname_spec
  14282. # List of archive names. First name is the real one, the rest are links.
  14283. # The last name is the one that the linker finds with -lNAME
  14284. library_names_spec=$lt_library_names_spec
  14285. # The coded name of the library, if different from the real name.
  14286. soname_spec=$lt_soname_spec
  14287. # Command to use after installation of a shared archive.
  14288. postinstall_cmds=$lt_postinstall_cmds
  14289. # Command to use after uninstallation of a shared archive.
  14290. postuninstall_cmds=$lt_postuninstall_cmds
  14291. # Commands used to finish a libtool library installation in a directory.
  14292. finish_cmds=$lt_finish_cmds
  14293. # As "finish_cmds", except a single script fragment to be evaled but
  14294. # not shown.
  14295. finish_eval=$lt_finish_eval
  14296. # Whether we should hardcode library paths into libraries.
  14297. hardcode_into_libs=$hardcode_into_libs
  14298. # Compile-time system search path for libraries.
  14299. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14300. # Run-time system search path for libraries.
  14301. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14302. # Whether dlopen is supported.
  14303. dlopen_support=$enable_dlopen
  14304. # Whether dlopen of programs is supported.
  14305. dlopen_self=$enable_dlopen_self
  14306. # Whether dlopen of statically linked programs is supported.
  14307. dlopen_self_static=$enable_dlopen_self_static
  14308. # Commands to strip libraries.
  14309. old_striplib=$lt_old_striplib
  14310. striplib=$lt_striplib
  14311. # The linker used to build libraries.
  14312. LD=$lt_LD
  14313. # Commands used to build an old-style archive.
  14314. old_archive_cmds=$lt_old_archive_cmds
  14315. # A language specific compiler.
  14316. CC=$lt_compiler
  14317. # Is the compiler the GNU compiler?
  14318. with_gcc=$GCC
  14319. # Compiler flag to turn off builtin functions.
  14320. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14321. # How to pass a linker flag through the compiler.
  14322. wl=$lt_lt_prog_compiler_wl
  14323. # Additional compiler flags for building library objects.
  14324. pic_flag=$lt_lt_prog_compiler_pic
  14325. # Compiler flag to prevent dynamic linking.
  14326. link_static_flag=$lt_lt_prog_compiler_static
  14327. # Does compiler simultaneously support -c and -o options?
  14328. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14329. # Whether or not to add -lc for building shared libraries.
  14330. build_libtool_need_lc=$archive_cmds_need_lc
  14331. # Whether or not to disallow shared libs when runtime libs are static.
  14332. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14333. # Compiler flag to allow reflexive dlopens.
  14334. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14335. # Compiler flag to generate shared objects directly from archives.
  14336. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14337. # Whether the compiler copes with passing no objects directly.
  14338. compiler_needs_object=$lt_compiler_needs_object
  14339. # Create an old-style archive from a shared archive.
  14340. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14341. # Create a temporary old-style archive to link instead of a shared archive.
  14342. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14343. # Commands used to build a shared archive.
  14344. archive_cmds=$lt_archive_cmds
  14345. archive_expsym_cmds=$lt_archive_expsym_cmds
  14346. # Commands used to build a loadable module if different from building
  14347. # a shared archive.
  14348. module_cmds=$lt_module_cmds
  14349. module_expsym_cmds=$lt_module_expsym_cmds
  14350. # Whether we are building with GNU ld or not.
  14351. with_gnu_ld=$lt_with_gnu_ld
  14352. # Flag that allows shared libraries with undefined symbols to be built.
  14353. allow_undefined_flag=$lt_allow_undefined_flag
  14354. # Flag that enforces no undefined symbols.
  14355. no_undefined_flag=$lt_no_undefined_flag
  14356. # Flag to hardcode \$libdir into a binary during linking.
  14357. # This must work even if \$libdir does not exist
  14358. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14359. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14360. # during linking. This must work even if \$libdir does not exist.
  14361. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14362. # Whether we need a single "-rpath" flag with a separated argument.
  14363. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14364. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14365. # DIR into the resulting binary.
  14366. hardcode_direct=$hardcode_direct
  14367. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14368. # DIR into the resulting binary and the resulting library dependency is
  14369. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14370. # library is relocated.
  14371. hardcode_direct_absolute=$hardcode_direct_absolute
  14372. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14373. # into the resulting binary.
  14374. hardcode_minus_L=$hardcode_minus_L
  14375. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14376. # into the resulting binary.
  14377. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14378. # Set to "yes" if building a shared library automatically hardcodes DIR
  14379. # into the library and all subsequent libraries and executables linked
  14380. # against it.
  14381. hardcode_automatic=$hardcode_automatic
  14382. # Set to yes if linker adds runtime paths of dependent libraries
  14383. # to runtime path list.
  14384. inherit_rpath=$inherit_rpath
  14385. # Whether libtool must link a program against all its dependency libraries.
  14386. link_all_deplibs=$link_all_deplibs
  14387. # Fix the shell variable \$srcfile for the compiler.
  14388. fix_srcfile_path=$lt_fix_srcfile_path
  14389. # Set to "yes" if exported symbols are required.
  14390. always_export_symbols=$always_export_symbols
  14391. # The commands to list exported symbols.
  14392. export_symbols_cmds=$lt_export_symbols_cmds
  14393. # Symbols that should not be listed in the preloaded symbols.
  14394. exclude_expsyms=$lt_exclude_expsyms
  14395. # Symbols that must always be exported.
  14396. include_expsyms=$lt_include_expsyms
  14397. # Commands necessary for linking programs (against libraries) with templates.
  14398. prelink_cmds=$lt_prelink_cmds
  14399. # Specify filename containing input files.
  14400. file_list_spec=$lt_file_list_spec
  14401. # How to hardcode a shared library path into an executable.
  14402. hardcode_action=$hardcode_action
  14403. # The directories searched by this compiler when creating a shared library.
  14404. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  14405. # Dependencies to place before and after the objects being linked to
  14406. # create a shared library.
  14407. predep_objects=$lt_predep_objects
  14408. postdep_objects=$lt_postdep_objects
  14409. predeps=$lt_predeps
  14410. postdeps=$lt_postdeps
  14411. # The library search path used internally by the compiler when linking
  14412. # a shared library.
  14413. compiler_lib_search_path=$lt_compiler_lib_search_path
  14414. # ### END LIBTOOL CONFIG
  14415. _LT_EOF
  14416. case $host_os in
  14417. aix3*)
  14418. cat <<\_LT_EOF >> "$cfgfile"
  14419. # AIX sometimes has problems with the GCC collect2 program. For some
  14420. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14421. # vanish in a puff of smoke.
  14422. if test "X${COLLECT_NAMES+set}" != Xset; then
  14423. COLLECT_NAMES=
  14424. export COLLECT_NAMES
  14425. fi
  14426. _LT_EOF
  14427. ;;
  14428. esac
  14429. ltmain="$ac_aux_dir/ltmain.sh"
  14430. # We use sed instead of cat because bash on DJGPP gets confused if
  14431. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14432. # text mode, it properly converts lines to CR/LF. This bash problem
  14433. # is reportedly fixed, but why not run on old versions too?
  14434. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14435. || (rm -f "$cfgfile"; exit 1)
  14436. case $xsi_shell in
  14437. yes)
  14438. cat << \_LT_EOF >> "$cfgfile"
  14439. # func_dirname file append nondir_replacement
  14440. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14441. # otherwise set result to NONDIR_REPLACEMENT.
  14442. func_dirname ()
  14443. {
  14444. case ${1} in
  14445. */*) func_dirname_result="${1%/*}${2}" ;;
  14446. * ) func_dirname_result="${3}" ;;
  14447. esac
  14448. }
  14449. # func_basename file
  14450. func_basename ()
  14451. {
  14452. func_basename_result="${1##*/}"
  14453. }
  14454. # func_dirname_and_basename file append nondir_replacement
  14455. # perform func_basename and func_dirname in a single function
  14456. # call:
  14457. # dirname: Compute the dirname of FILE. If nonempty,
  14458. # add APPEND to the result, otherwise set result
  14459. # to NONDIR_REPLACEMENT.
  14460. # value returned in "$func_dirname_result"
  14461. # basename: Compute filename of FILE.
  14462. # value retuned in "$func_basename_result"
  14463. # Implementation must be kept synchronized with func_dirname
  14464. # and func_basename. For efficiency, we do not delegate to
  14465. # those functions but instead duplicate the functionality here.
  14466. func_dirname_and_basename ()
  14467. {
  14468. case ${1} in
  14469. */*) func_dirname_result="${1%/*}${2}" ;;
  14470. * ) func_dirname_result="${3}" ;;
  14471. esac
  14472. func_basename_result="${1##*/}"
  14473. }
  14474. # func_stripname prefix suffix name
  14475. # strip PREFIX and SUFFIX off of NAME.
  14476. # PREFIX and SUFFIX must not contain globbing or regex special
  14477. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14478. # dot (in which case that matches only a dot).
  14479. func_stripname ()
  14480. {
  14481. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14482. # positional parameters, so assign one to ordinary parameter first.
  14483. func_stripname_result=${3}
  14484. func_stripname_result=${func_stripname_result#"${1}"}
  14485. func_stripname_result=${func_stripname_result%"${2}"}
  14486. }
  14487. # func_opt_split
  14488. func_opt_split ()
  14489. {
  14490. func_opt_split_opt=${1%%=*}
  14491. func_opt_split_arg=${1#*=}
  14492. }
  14493. # func_lo2o object
  14494. func_lo2o ()
  14495. {
  14496. case ${1} in
  14497. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14498. *) func_lo2o_result=${1} ;;
  14499. esac
  14500. }
  14501. # func_xform libobj-or-source
  14502. func_xform ()
  14503. {
  14504. func_xform_result=${1%.*}.lo
  14505. }
  14506. # func_arith arithmetic-term...
  14507. func_arith ()
  14508. {
  14509. func_arith_result=$(( $* ))
  14510. }
  14511. # func_len string
  14512. # STRING may not start with a hyphen.
  14513. func_len ()
  14514. {
  14515. func_len_result=${#1}
  14516. }
  14517. _LT_EOF
  14518. ;;
  14519. *) # Bourne compatible functions.
  14520. cat << \_LT_EOF >> "$cfgfile"
  14521. # func_dirname file append nondir_replacement
  14522. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14523. # otherwise set result to NONDIR_REPLACEMENT.
  14524. func_dirname ()
  14525. {
  14526. # Extract subdirectory from the argument.
  14527. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  14528. if test "X$func_dirname_result" = "X${1}"; then
  14529. func_dirname_result="${3}"
  14530. else
  14531. func_dirname_result="$func_dirname_result${2}"
  14532. fi
  14533. }
  14534. # func_basename file
  14535. func_basename ()
  14536. {
  14537. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  14538. }
  14539. # func_stripname prefix suffix name
  14540. # strip PREFIX and SUFFIX off of NAME.
  14541. # PREFIX and SUFFIX must not contain globbing or regex special
  14542. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14543. # dot (in which case that matches only a dot).
  14544. # func_strip_suffix prefix name
  14545. func_stripname ()
  14546. {
  14547. case ${2} in
  14548. .*) func_stripname_result=`$ECHO "X${3}" \
  14549. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  14550. *) func_stripname_result=`$ECHO "X${3}" \
  14551. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  14552. esac
  14553. }
  14554. # sed scripts:
  14555. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14556. my_sed_long_arg='1s/^-[^=]*=//'
  14557. # func_opt_split
  14558. func_opt_split ()
  14559. {
  14560. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  14561. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  14562. }
  14563. # func_lo2o object
  14564. func_lo2o ()
  14565. {
  14566. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  14567. }
  14568. # func_xform libobj-or-source
  14569. func_xform ()
  14570. {
  14571. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  14572. }
  14573. # func_arith arithmetic-term...
  14574. func_arith ()
  14575. {
  14576. func_arith_result=`expr "$@"`
  14577. }
  14578. # func_len string
  14579. # STRING may not start with a hyphen.
  14580. func_len ()
  14581. {
  14582. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14583. }
  14584. _LT_EOF
  14585. esac
  14586. case $lt_shell_append in
  14587. yes)
  14588. cat << \_LT_EOF >> "$cfgfile"
  14589. # func_append var value
  14590. # Append VALUE to the end of shell variable VAR.
  14591. func_append ()
  14592. {
  14593. eval "$1+=\$2"
  14594. }
  14595. _LT_EOF
  14596. ;;
  14597. *)
  14598. cat << \_LT_EOF >> "$cfgfile"
  14599. # func_append var value
  14600. # Append VALUE to the end of shell variable VAR.
  14601. func_append ()
  14602. {
  14603. eval "$1=\$$1\$2"
  14604. }
  14605. _LT_EOF
  14606. ;;
  14607. esac
  14608. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14609. || (rm -f "$cfgfile"; exit 1)
  14610. mv -f "$cfgfile" "$ofile" ||
  14611. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14612. chmod +x "$ofile"
  14613. cat <<_LT_EOF >> "$ofile"
  14614. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  14615. # The linker used to build libraries.
  14616. LD=$lt_LD_CXX
  14617. # Commands used to build an old-style archive.
  14618. old_archive_cmds=$lt_old_archive_cmds_CXX
  14619. # A language specific compiler.
  14620. CC=$lt_compiler_CXX
  14621. # Is the compiler the GNU compiler?
  14622. with_gcc=$GCC_CXX
  14623. # Compiler flag to turn off builtin functions.
  14624. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  14625. # How to pass a linker flag through the compiler.
  14626. wl=$lt_lt_prog_compiler_wl_CXX
  14627. # Additional compiler flags for building library objects.
  14628. pic_flag=$lt_lt_prog_compiler_pic_CXX
  14629. # Compiler flag to prevent dynamic linking.
  14630. link_static_flag=$lt_lt_prog_compiler_static_CXX
  14631. # Does compiler simultaneously support -c and -o options?
  14632. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  14633. # Whether or not to add -lc for building shared libraries.
  14634. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  14635. # Whether or not to disallow shared libs when runtime libs are static.
  14636. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  14637. # Compiler flag to allow reflexive dlopens.
  14638. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  14639. # Compiler flag to generate shared objects directly from archives.
  14640. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  14641. # Whether the compiler copes with passing no objects directly.
  14642. compiler_needs_object=$lt_compiler_needs_object_CXX
  14643. # Create an old-style archive from a shared archive.
  14644. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  14645. # Create a temporary old-style archive to link instead of a shared archive.
  14646. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  14647. # Commands used to build a shared archive.
  14648. archive_cmds=$lt_archive_cmds_CXX
  14649. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  14650. # Commands used to build a loadable module if different from building
  14651. # a shared archive.
  14652. module_cmds=$lt_module_cmds_CXX
  14653. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  14654. # Whether we are building with GNU ld or not.
  14655. with_gnu_ld=$lt_with_gnu_ld_CXX
  14656. # Flag that allows shared libraries with undefined symbols to be built.
  14657. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  14658. # Flag that enforces no undefined symbols.
  14659. no_undefined_flag=$lt_no_undefined_flag_CXX
  14660. # Flag to hardcode \$libdir into a binary during linking.
  14661. # This must work even if \$libdir does not exist
  14662. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  14663. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14664. # during linking. This must work even if \$libdir does not exist.
  14665. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  14666. # Whether we need a single "-rpath" flag with a separated argument.
  14667. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  14668. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14669. # DIR into the resulting binary.
  14670. hardcode_direct=$hardcode_direct_CXX
  14671. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14672. # DIR into the resulting binary and the resulting library dependency is
  14673. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14674. # library is relocated.
  14675. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  14676. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14677. # into the resulting binary.
  14678. hardcode_minus_L=$hardcode_minus_L_CXX
  14679. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14680. # into the resulting binary.
  14681. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  14682. # Set to "yes" if building a shared library automatically hardcodes DIR
  14683. # into the library and all subsequent libraries and executables linked
  14684. # against it.
  14685. hardcode_automatic=$hardcode_automatic_CXX
  14686. # Set to yes if linker adds runtime paths of dependent libraries
  14687. # to runtime path list.
  14688. inherit_rpath=$inherit_rpath_CXX
  14689. # Whether libtool must link a program against all its dependency libraries.
  14690. link_all_deplibs=$link_all_deplibs_CXX
  14691. # Fix the shell variable \$srcfile for the compiler.
  14692. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  14693. # Set to "yes" if exported symbols are required.
  14694. always_export_symbols=$always_export_symbols_CXX
  14695. # The commands to list exported symbols.
  14696. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  14697. # Symbols that should not be listed in the preloaded symbols.
  14698. exclude_expsyms=$lt_exclude_expsyms_CXX
  14699. # Symbols that must always be exported.
  14700. include_expsyms=$lt_include_expsyms_CXX
  14701. # Commands necessary for linking programs (against libraries) with templates.
  14702. prelink_cmds=$lt_prelink_cmds_CXX
  14703. # Specify filename containing input files.
  14704. file_list_spec=$lt_file_list_spec_CXX
  14705. # How to hardcode a shared library path into an executable.
  14706. hardcode_action=$hardcode_action_CXX
  14707. # The directories searched by this compiler when creating a shared library.
  14708. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  14709. # Dependencies to place before and after the objects being linked to
  14710. # create a shared library.
  14711. predep_objects=$lt_predep_objects_CXX
  14712. postdep_objects=$lt_postdep_objects_CXX
  14713. predeps=$lt_predeps_CXX
  14714. postdeps=$lt_postdeps_CXX
  14715. # The library search path used internally by the compiler when linking
  14716. # a shared library.
  14717. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  14718. # ### END LIBTOOL TAG CONFIG: CXX
  14719. _LT_EOF
  14720. ;;
  14721. esac
  14722. done # for ac_tag
  14723. as_fn_exit 0
  14724. _ACEOF
  14725. ac_clean_files=$ac_clean_files_save
  14726. test $ac_write_fail = 0 ||
  14727. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14728. # configure is writing to config.log, and then calls config.status.
  14729. # config.status does its own redirection, appending to config.log.
  14730. # Unfortunately, on DOS this fails, as config.log is still kept open
  14731. # by configure, so config.status won't be able to write to it; its
  14732. # output is simply discarded. So we exec the FD to /dev/null,
  14733. # effectively closing config.log, so it can be properly (re)opened and
  14734. # appended to by config.status. When coming back to configure, we
  14735. # need to make the FD available again.
  14736. if test "$no_create" != yes; then
  14737. ac_cs_success=:
  14738. ac_config_status_args=
  14739. test "$silent" = yes &&
  14740. ac_config_status_args="$ac_config_status_args --quiet"
  14741. exec 5>/dev/null
  14742. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14743. exec 5>>config.log
  14744. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14745. # would make configure fail if this is the last instruction.
  14746. $ac_cs_success || as_fn_exit $?
  14747. fi
  14748. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14750. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14751. fi