configure 421 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for gprof 2.25.51.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1
  159. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  160. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. PATH=/empty FPATH=/empty; export PATH FPATH
  164. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  165. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='gprof'
  509. PACKAGE_TARNAME='gprof'
  510. PACKAGE_VERSION='2.25.51'
  511. PACKAGE_STRING='gprof 2.25.51'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. ac_unique_file="gprof.c"
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. NO_WERROR
  555. WARN_CFLAGS
  556. GENINSRC_NEVER_FALSE
  557. GENINSRC_NEVER_TRUE
  558. MAINT
  559. MAINTAINER_MODE_FALSE
  560. MAINTAINER_MODE_TRUE
  561. MSGMERGE
  562. MSGFMT
  563. MKINSTALLDIRS
  564. CATOBJEXT
  565. GENCAT
  566. INSTOBJEXT
  567. DATADIRNAME
  568. CATALOGS
  569. POSUB
  570. GMSGFMT
  571. XGETTEXT
  572. INCINTL
  573. LIBINTL_DEP
  574. LIBINTL
  575. USE_NLS
  576. OTOOL64
  577. OTOOL
  578. LIPO
  579. NMEDIT
  580. DSYMUTIL
  581. RANLIB
  582. AR
  583. OBJDUMP
  584. LN_S
  585. NM
  586. ac_ct_DUMPBIN
  587. DUMPBIN
  588. LD
  589. FGREP
  590. SED
  591. LIBTOOL
  592. EGREP
  593. GREP
  594. CPP
  595. am__fastdepCC_FALSE
  596. am__fastdepCC_TRUE
  597. CCDEPMODE
  598. AMDEPBACKSLASH
  599. AMDEP_FALSE
  600. AMDEP_TRUE
  601. am__quote
  602. am__include
  603. DEPDIR
  604. am__untar
  605. am__tar
  606. AMTAR
  607. am__leading_dot
  608. SET_MAKE
  609. AWK
  610. mkdir_p
  611. MKDIR_P
  612. INSTALL_STRIP_PROGRAM
  613. STRIP
  614. install_sh
  615. MAKEINFO
  616. AUTOHEADER
  617. AUTOMAKE
  618. AUTOCONF
  619. ACLOCAL
  620. VERSION
  621. PACKAGE
  622. CYGPATH_W
  623. am__isrc
  624. INSTALL_DATA
  625. INSTALL_SCRIPT
  626. INSTALL_PROGRAM
  627. OBJEXT
  628. EXEEXT
  629. ac_ct_CC
  630. CPPFLAGS
  631. LDFLAGS
  632. CFLAGS
  633. CC
  634. target_os
  635. target_vendor
  636. target_cpu
  637. target
  638. host_os
  639. host_vendor
  640. host_cpu
  641. host
  642. build_os
  643. build_vendor
  644. build_cpu
  645. build
  646. target_alias
  647. host_alias
  648. build_alias
  649. LIBS
  650. ECHO_T
  651. ECHO_N
  652. ECHO_C
  653. DEFS
  654. mandir
  655. localedir
  656. libdir
  657. psdir
  658. pdfdir
  659. dvidir
  660. htmldir
  661. infodir
  662. docdir
  663. oldincludedir
  664. includedir
  665. localstatedir
  666. sharedstatedir
  667. sysconfdir
  668. datadir
  669. datarootdir
  670. libexecdir
  671. sbindir
  672. bindir
  673. program_transform_name
  674. prefix
  675. exec_prefix
  676. PACKAGE_URL
  677. PACKAGE_BUGREPORT
  678. PACKAGE_STRING
  679. PACKAGE_VERSION
  680. PACKAGE_TARNAME
  681. PACKAGE_NAME
  682. PATH_SEPARATOR
  683. SHELL'
  684. ac_subst_files=''
  685. ac_user_opts='
  686. enable_option_checking
  687. enable_dependency_tracking
  688. enable_shared
  689. enable_static
  690. with_pic
  691. enable_fast_install
  692. with_gnu_ld
  693. enable_libtool_lock
  694. enable_plugins
  695. enable_largefile
  696. enable_nls
  697. enable_maintainer_mode
  698. enable_werror
  699. enable_build_warnings
  700. '
  701. ac_precious_vars='build_alias
  702. host_alias
  703. target_alias
  704. CC
  705. CFLAGS
  706. LDFLAGS
  707. LIBS
  708. CPPFLAGS
  709. CPP'
  710. # Initialize some variables set by options.
  711. ac_init_help=
  712. ac_init_version=false
  713. ac_unrecognized_opts=
  714. ac_unrecognized_sep=
  715. # The variables have the same names as the options, with
  716. # dashes changed to underlines.
  717. cache_file=/dev/null
  718. exec_prefix=NONE
  719. no_create=
  720. no_recursion=
  721. prefix=NONE
  722. program_prefix=NONE
  723. program_suffix=NONE
  724. program_transform_name=s,x,x,
  725. silent=
  726. site=
  727. srcdir=
  728. verbose=
  729. x_includes=NONE
  730. x_libraries=NONE
  731. # Installation directory options.
  732. # These are left unexpanded so users can "make install exec_prefix=/foo"
  733. # and all the variables that are supposed to be based on exec_prefix
  734. # by default will actually change.
  735. # Use braces instead of parens because sh, perl, etc. also accept them.
  736. # (The list follows the same order as the GNU Coding Standards.)
  737. bindir='${exec_prefix}/bin'
  738. sbindir='${exec_prefix}/sbin'
  739. libexecdir='${exec_prefix}/libexec'
  740. datarootdir='${prefix}/share'
  741. datadir='${datarootdir}'
  742. sysconfdir='${prefix}/etc'
  743. sharedstatedir='${prefix}/com'
  744. localstatedir='${prefix}/var'
  745. includedir='${prefix}/include'
  746. oldincludedir='/usr/include'
  747. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  748. infodir='${datarootdir}/info'
  749. htmldir='${docdir}'
  750. dvidir='${docdir}'
  751. pdfdir='${docdir}'
  752. psdir='${docdir}'
  753. libdir='${exec_prefix}/lib'
  754. localedir='${datarootdir}/locale'
  755. mandir='${datarootdir}/man'
  756. ac_prev=
  757. ac_dashdash=
  758. for ac_option
  759. do
  760. # If the previous option needs an argument, assign it.
  761. if test -n "$ac_prev"; then
  762. eval $ac_prev=\$ac_option
  763. ac_prev=
  764. continue
  765. fi
  766. case $ac_option in
  767. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  768. *) ac_optarg=yes ;;
  769. esac
  770. # Accept the important Cygnus configure options, so we can diagnose typos.
  771. case $ac_dashdash$ac_option in
  772. --)
  773. ac_dashdash=yes ;;
  774. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  775. ac_prev=bindir ;;
  776. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  777. bindir=$ac_optarg ;;
  778. -build | --build | --buil | --bui | --bu)
  779. ac_prev=build_alias ;;
  780. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  781. build_alias=$ac_optarg ;;
  782. -cache-file | --cache-file | --cache-fil | --cache-fi \
  783. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  784. ac_prev=cache_file ;;
  785. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  786. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  787. cache_file=$ac_optarg ;;
  788. --config-cache | -C)
  789. cache_file=config.cache ;;
  790. -datadir | --datadir | --datadi | --datad)
  791. ac_prev=datadir ;;
  792. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  793. datadir=$ac_optarg ;;
  794. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  795. | --dataroo | --dataro | --datar)
  796. ac_prev=datarootdir ;;
  797. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  798. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  799. datarootdir=$ac_optarg ;;
  800. -disable-* | --disable-*)
  801. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  802. # Reject names that are not valid shell variable names.
  803. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  804. as_fn_error "invalid feature name: $ac_useropt"
  805. ac_useropt_orig=$ac_useropt
  806. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  807. case $ac_user_opts in
  808. *"
  809. "enable_$ac_useropt"
  810. "*) ;;
  811. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  812. ac_unrecognized_sep=', ';;
  813. esac
  814. eval enable_$ac_useropt=no ;;
  815. -docdir | --docdir | --docdi | --doc | --do)
  816. ac_prev=docdir ;;
  817. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  818. docdir=$ac_optarg ;;
  819. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  820. ac_prev=dvidir ;;
  821. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  822. dvidir=$ac_optarg ;;
  823. -enable-* | --enable-*)
  824. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  825. # Reject names that are not valid shell variable names.
  826. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  827. as_fn_error "invalid feature name: $ac_useropt"
  828. ac_useropt_orig=$ac_useropt
  829. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  830. case $ac_user_opts in
  831. *"
  832. "enable_$ac_useropt"
  833. "*) ;;
  834. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  835. ac_unrecognized_sep=', ';;
  836. esac
  837. eval enable_$ac_useropt=\$ac_optarg ;;
  838. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  839. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  840. | --exec | --exe | --ex)
  841. ac_prev=exec_prefix ;;
  842. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  843. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  844. | --exec=* | --exe=* | --ex=*)
  845. exec_prefix=$ac_optarg ;;
  846. -gas | --gas | --ga | --g)
  847. # Obsolete; use --with-gas.
  848. with_gas=yes ;;
  849. -help | --help | --hel | --he | -h)
  850. ac_init_help=long ;;
  851. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  852. ac_init_help=recursive ;;
  853. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  854. ac_init_help=short ;;
  855. -host | --host | --hos | --ho)
  856. ac_prev=host_alias ;;
  857. -host=* | --host=* | --hos=* | --ho=*)
  858. host_alias=$ac_optarg ;;
  859. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  860. ac_prev=htmldir ;;
  861. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  862. | --ht=*)
  863. htmldir=$ac_optarg ;;
  864. -includedir | --includedir | --includedi | --included | --include \
  865. | --includ | --inclu | --incl | --inc)
  866. ac_prev=includedir ;;
  867. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  868. | --includ=* | --inclu=* | --incl=* | --inc=*)
  869. includedir=$ac_optarg ;;
  870. -infodir | --infodir | --infodi | --infod | --info | --inf)
  871. ac_prev=infodir ;;
  872. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  873. infodir=$ac_optarg ;;
  874. -libdir | --libdir | --libdi | --libd)
  875. ac_prev=libdir ;;
  876. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  877. libdir=$ac_optarg ;;
  878. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  879. | --libexe | --libex | --libe)
  880. ac_prev=libexecdir ;;
  881. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  882. | --libexe=* | --libex=* | --libe=*)
  883. libexecdir=$ac_optarg ;;
  884. -localedir | --localedir | --localedi | --localed | --locale)
  885. ac_prev=localedir ;;
  886. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  887. localedir=$ac_optarg ;;
  888. -localstatedir | --localstatedir | --localstatedi | --localstated \
  889. | --localstate | --localstat | --localsta | --localst | --locals)
  890. ac_prev=localstatedir ;;
  891. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  892. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  893. localstatedir=$ac_optarg ;;
  894. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  895. ac_prev=mandir ;;
  896. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  897. mandir=$ac_optarg ;;
  898. -nfp | --nfp | --nf)
  899. # Obsolete; use --without-fp.
  900. with_fp=no ;;
  901. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  902. | --no-cr | --no-c | -n)
  903. no_create=yes ;;
  904. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  905. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  906. no_recursion=yes ;;
  907. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  908. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  909. | --oldin | --oldi | --old | --ol | --o)
  910. ac_prev=oldincludedir ;;
  911. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  912. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  913. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  914. oldincludedir=$ac_optarg ;;
  915. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  916. ac_prev=prefix ;;
  917. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  918. prefix=$ac_optarg ;;
  919. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  920. | --program-pre | --program-pr | --program-p)
  921. ac_prev=program_prefix ;;
  922. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  923. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  924. program_prefix=$ac_optarg ;;
  925. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  926. | --program-suf | --program-su | --program-s)
  927. ac_prev=program_suffix ;;
  928. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  929. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  930. program_suffix=$ac_optarg ;;
  931. -program-transform-name | --program-transform-name \
  932. | --program-transform-nam | --program-transform-na \
  933. | --program-transform-n | --program-transform- \
  934. | --program-transform | --program-transfor \
  935. | --program-transfo | --program-transf \
  936. | --program-trans | --program-tran \
  937. | --progr-tra | --program-tr | --program-t)
  938. ac_prev=program_transform_name ;;
  939. -program-transform-name=* | --program-transform-name=* \
  940. | --program-transform-nam=* | --program-transform-na=* \
  941. | --program-transform-n=* | --program-transform-=* \
  942. | --program-transform=* | --program-transfor=* \
  943. | --program-transfo=* | --program-transf=* \
  944. | --program-trans=* | --program-tran=* \
  945. | --progr-tra=* | --program-tr=* | --program-t=*)
  946. program_transform_name=$ac_optarg ;;
  947. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  948. ac_prev=pdfdir ;;
  949. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  950. pdfdir=$ac_optarg ;;
  951. -psdir | --psdir | --psdi | --psd | --ps)
  952. ac_prev=psdir ;;
  953. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  954. psdir=$ac_optarg ;;
  955. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  956. | -silent | --silent | --silen | --sile | --sil)
  957. silent=yes ;;
  958. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  959. ac_prev=sbindir ;;
  960. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  961. | --sbi=* | --sb=*)
  962. sbindir=$ac_optarg ;;
  963. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  964. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  965. | --sharedst | --shareds | --shared | --share | --shar \
  966. | --sha | --sh)
  967. ac_prev=sharedstatedir ;;
  968. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  969. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  970. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  971. | --sha=* | --sh=*)
  972. sharedstatedir=$ac_optarg ;;
  973. -site | --site | --sit)
  974. ac_prev=site ;;
  975. -site=* | --site=* | --sit=*)
  976. site=$ac_optarg ;;
  977. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  978. ac_prev=srcdir ;;
  979. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  980. srcdir=$ac_optarg ;;
  981. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  982. | --syscon | --sysco | --sysc | --sys | --sy)
  983. ac_prev=sysconfdir ;;
  984. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  985. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  986. sysconfdir=$ac_optarg ;;
  987. -target | --target | --targe | --targ | --tar | --ta | --t)
  988. ac_prev=target_alias ;;
  989. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  990. target_alias=$ac_optarg ;;
  991. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  992. verbose=yes ;;
  993. -version | --version | --versio | --versi | --vers | -V)
  994. ac_init_version=: ;;
  995. -with-* | --with-*)
  996. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  997. # Reject names that are not valid shell variable names.
  998. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  999. as_fn_error "invalid package name: $ac_useropt"
  1000. ac_useropt_orig=$ac_useropt
  1001. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1002. case $ac_user_opts in
  1003. *"
  1004. "with_$ac_useropt"
  1005. "*) ;;
  1006. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1007. ac_unrecognized_sep=', ';;
  1008. esac
  1009. eval with_$ac_useropt=\$ac_optarg ;;
  1010. -without-* | --without-*)
  1011. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1012. # Reject names that are not valid shell variable names.
  1013. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1014. as_fn_error "invalid package name: $ac_useropt"
  1015. ac_useropt_orig=$ac_useropt
  1016. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1017. case $ac_user_opts in
  1018. *"
  1019. "with_$ac_useropt"
  1020. "*) ;;
  1021. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1022. ac_unrecognized_sep=', ';;
  1023. esac
  1024. eval with_$ac_useropt=no ;;
  1025. --x)
  1026. # Obsolete; use --with-x.
  1027. with_x=yes ;;
  1028. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1029. | --x-incl | --x-inc | --x-in | --x-i)
  1030. ac_prev=x_includes ;;
  1031. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1032. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1033. x_includes=$ac_optarg ;;
  1034. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1035. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1036. ac_prev=x_libraries ;;
  1037. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1038. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1039. x_libraries=$ac_optarg ;;
  1040. -*) as_fn_error "unrecognized option: \`$ac_option'
  1041. Try \`$0 --help' for more information."
  1042. ;;
  1043. *=*)
  1044. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1045. # Reject names that are not valid shell variable names.
  1046. case $ac_envvar in #(
  1047. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1048. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1049. esac
  1050. eval $ac_envvar=\$ac_optarg
  1051. export $ac_envvar ;;
  1052. *)
  1053. # FIXME: should be removed in autoconf 3.0.
  1054. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1055. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1056. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1057. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1058. ;;
  1059. esac
  1060. done
  1061. if test -n "$ac_prev"; then
  1062. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1063. as_fn_error "missing argument to $ac_option"
  1064. fi
  1065. if test -n "$ac_unrecognized_opts"; then
  1066. case $enable_option_checking in
  1067. no) ;;
  1068. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1069. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1070. esac
  1071. fi
  1072. # Check all directory arguments for consistency.
  1073. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1074. datadir sysconfdir sharedstatedir localstatedir includedir \
  1075. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1076. libdir localedir mandir
  1077. do
  1078. eval ac_val=\$$ac_var
  1079. # Remove trailing slashes.
  1080. case $ac_val in
  1081. */ )
  1082. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1083. eval $ac_var=\$ac_val;;
  1084. esac
  1085. # Be sure to have absolute directory names.
  1086. case $ac_val in
  1087. [\\/$]* | ?:[\\/]* ) continue;;
  1088. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1089. esac
  1090. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1091. done
  1092. # There might be people who depend on the old broken behavior: `$host'
  1093. # used to hold the argument of --host etc.
  1094. # FIXME: To remove some day.
  1095. build=$build_alias
  1096. host=$host_alias
  1097. target=$target_alias
  1098. # FIXME: To remove some day.
  1099. if test "x$host_alias" != x; then
  1100. if test "x$build_alias" = x; then
  1101. cross_compiling=maybe
  1102. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1103. If a cross compiler is detected then cross compile mode will be used." >&2
  1104. elif test "x$build_alias" != "x$host_alias"; then
  1105. cross_compiling=yes
  1106. fi
  1107. fi
  1108. ac_tool_prefix=
  1109. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1110. test "$silent" = yes && exec 6>/dev/null
  1111. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1112. ac_ls_di=`ls -di .` &&
  1113. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1114. as_fn_error "working directory cannot be determined"
  1115. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1116. as_fn_error "pwd does not report name of working directory"
  1117. # Find the source files, if location was not specified.
  1118. if test -z "$srcdir"; then
  1119. ac_srcdir_defaulted=yes
  1120. # Try the directory containing this script, then the parent directory.
  1121. ac_confdir=`$as_dirname -- "$as_myself" ||
  1122. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1123. X"$as_myself" : 'X\(//\)[^/]' \| \
  1124. X"$as_myself" : 'X\(//\)$' \| \
  1125. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1126. $as_echo X"$as_myself" |
  1127. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1128. s//\1/
  1129. q
  1130. }
  1131. /^X\(\/\/\)[^/].*/{
  1132. s//\1/
  1133. q
  1134. }
  1135. /^X\(\/\/\)$/{
  1136. s//\1/
  1137. q
  1138. }
  1139. /^X\(\/\).*/{
  1140. s//\1/
  1141. q
  1142. }
  1143. s/.*/./; q'`
  1144. srcdir=$ac_confdir
  1145. if test ! -r "$srcdir/$ac_unique_file"; then
  1146. srcdir=..
  1147. fi
  1148. else
  1149. ac_srcdir_defaulted=no
  1150. fi
  1151. if test ! -r "$srcdir/$ac_unique_file"; then
  1152. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1153. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1154. fi
  1155. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1156. ac_abs_confdir=`(
  1157. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1158. pwd)`
  1159. # When building in place, set srcdir=.
  1160. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1161. srcdir=.
  1162. fi
  1163. # Remove unnecessary trailing slashes from srcdir.
  1164. # Double slashes in file names in object file debugging info
  1165. # mess up M-x gdb in Emacs.
  1166. case $srcdir in
  1167. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1168. esac
  1169. for ac_var in $ac_precious_vars; do
  1170. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1171. eval ac_env_${ac_var}_value=\$${ac_var}
  1172. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1173. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1174. done
  1175. #
  1176. # Report the --help message.
  1177. #
  1178. if test "$ac_init_help" = "long"; then
  1179. # Omit some internal or obsolete options to make the list less imposing.
  1180. # This message is too long to be a string in the A/UX 3.1 sh.
  1181. cat <<_ACEOF
  1182. \`configure' configures gprof 2.25.51 to adapt to many kinds of systems.
  1183. Usage: $0 [OPTION]... [VAR=VALUE]...
  1184. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1185. VAR=VALUE. See below for descriptions of some of the useful variables.
  1186. Defaults for the options are specified in brackets.
  1187. Configuration:
  1188. -h, --help display this help and exit
  1189. --help=short display options specific to this package
  1190. --help=recursive display the short help of all the included packages
  1191. -V, --version display version information and exit
  1192. -q, --quiet, --silent do not print \`checking...' messages
  1193. --cache-file=FILE cache test results in FILE [disabled]
  1194. -C, --config-cache alias for \`--cache-file=config.cache'
  1195. -n, --no-create do not create output files
  1196. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1197. Installation directories:
  1198. --prefix=PREFIX install architecture-independent files in PREFIX
  1199. [$ac_default_prefix]
  1200. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1201. [PREFIX]
  1202. By default, \`make install' will install all the files in
  1203. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1204. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1205. for instance \`--prefix=\$HOME'.
  1206. For better control, use the options below.
  1207. Fine tuning of the installation directories:
  1208. --bindir=DIR user executables [EPREFIX/bin]
  1209. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1210. --libexecdir=DIR program executables [EPREFIX/libexec]
  1211. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1212. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1213. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1214. --libdir=DIR object code libraries [EPREFIX/lib]
  1215. --includedir=DIR C header files [PREFIX/include]
  1216. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1217. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1218. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1219. --infodir=DIR info documentation [DATAROOTDIR/info]
  1220. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1221. --mandir=DIR man documentation [DATAROOTDIR/man]
  1222. --docdir=DIR documentation root [DATAROOTDIR/doc/gprof]
  1223. --htmldir=DIR html documentation [DOCDIR]
  1224. --dvidir=DIR dvi documentation [DOCDIR]
  1225. --pdfdir=DIR pdf documentation [DOCDIR]
  1226. --psdir=DIR ps documentation [DOCDIR]
  1227. _ACEOF
  1228. cat <<\_ACEOF
  1229. Program names:
  1230. --program-prefix=PREFIX prepend PREFIX to installed program names
  1231. --program-suffix=SUFFIX append SUFFIX to installed program names
  1232. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1233. System types:
  1234. --build=BUILD configure for building on BUILD [guessed]
  1235. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1236. --target=TARGET configure for building compilers for TARGET [HOST]
  1237. _ACEOF
  1238. fi
  1239. if test -n "$ac_init_help"; then
  1240. case $ac_init_help in
  1241. short | recursive ) echo "Configuration of gprof 2.25.51:";;
  1242. esac
  1243. cat <<\_ACEOF
  1244. Optional Features:
  1245. --disable-option-checking ignore unrecognized --enable/--with options
  1246. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1247. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1248. --disable-dependency-tracking speeds up one-time build
  1249. --enable-dependency-tracking do not reject slow dependency extractors
  1250. --enable-shared[=PKGS] build shared libraries [default=yes]
  1251. --enable-static[=PKGS] build static libraries [default=yes]
  1252. --enable-fast-install[=PKGS]
  1253. optimize for fast installation [default=yes]
  1254. --disable-libtool-lock avoid locking (might break parallel builds)
  1255. --enable-plugins Enable support for plugins
  1256. --disable-largefile omit support for large files
  1257. --disable-nls do not use Native Language Support
  1258. --enable-maintainer-mode enable make rules and dependencies not useful
  1259. (and sometimes confusing) to the casual installer
  1260. --enable-werror treat compile warnings as errors
  1261. --enable-build-warnings enable build-time compiler warnings
  1262. Optional Packages:
  1263. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1264. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1265. --with-pic try to use only PIC/non-PIC objects [default=use
  1266. both]
  1267. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1268. Some influential environment variables:
  1269. CC C compiler command
  1270. CFLAGS C compiler flags
  1271. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1272. nonstandard directory <lib dir>
  1273. LIBS libraries to pass to the linker, e.g. -l<library>
  1274. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1275. you have headers in a nonstandard directory <include dir>
  1276. CPP C preprocessor
  1277. Use these variables to override the choices made by `configure' or to help
  1278. it to find libraries and programs with nonstandard names/locations.
  1279. Report bugs to the package provider.
  1280. _ACEOF
  1281. ac_status=$?
  1282. fi
  1283. if test "$ac_init_help" = "recursive"; then
  1284. # If there are subdirs, report their specific --help.
  1285. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1286. test -d "$ac_dir" ||
  1287. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1288. continue
  1289. ac_builddir=.
  1290. case "$ac_dir" in
  1291. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1292. *)
  1293. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1294. # A ".." for each directory in $ac_dir_suffix.
  1295. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1296. case $ac_top_builddir_sub in
  1297. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1298. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1299. esac ;;
  1300. esac
  1301. ac_abs_top_builddir=$ac_pwd
  1302. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1303. # for backward compatibility:
  1304. ac_top_builddir=$ac_top_build_prefix
  1305. case $srcdir in
  1306. .) # We are building in place.
  1307. ac_srcdir=.
  1308. ac_top_srcdir=$ac_top_builddir_sub
  1309. ac_abs_top_srcdir=$ac_pwd ;;
  1310. [\\/]* | ?:[\\/]* ) # Absolute name.
  1311. ac_srcdir=$srcdir$ac_dir_suffix;
  1312. ac_top_srcdir=$srcdir
  1313. ac_abs_top_srcdir=$srcdir ;;
  1314. *) # Relative name.
  1315. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1316. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1317. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1318. esac
  1319. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1320. cd "$ac_dir" || { ac_status=$?; continue; }
  1321. # Check for guested configure.
  1322. if test -f "$ac_srcdir/configure.gnu"; then
  1323. echo &&
  1324. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1325. elif test -f "$ac_srcdir/configure"; then
  1326. echo &&
  1327. $SHELL "$ac_srcdir/configure" --help=recursive
  1328. else
  1329. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1330. fi || ac_status=$?
  1331. cd "$ac_pwd" || { ac_status=$?; break; }
  1332. done
  1333. fi
  1334. test -n "$ac_init_help" && exit $ac_status
  1335. if $ac_init_version; then
  1336. cat <<\_ACEOF
  1337. gprof configure 2.25.51
  1338. generated by GNU Autoconf 2.64
  1339. Copyright (C) 2009 Free Software Foundation, Inc.
  1340. This configure script is free software; the Free Software Foundation
  1341. gives unlimited permission to copy, distribute and modify it.
  1342. _ACEOF
  1343. exit
  1344. fi
  1345. ## ------------------------ ##
  1346. ## Autoconf initialization. ##
  1347. ## ------------------------ ##
  1348. # ac_fn_c_try_compile LINENO
  1349. # --------------------------
  1350. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1351. ac_fn_c_try_compile ()
  1352. {
  1353. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1354. rm -f conftest.$ac_objext
  1355. if { { ac_try="$ac_compile"
  1356. case "(($ac_try" in
  1357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1358. *) ac_try_echo=$ac_try;;
  1359. esac
  1360. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1361. $as_echo "$ac_try_echo"; } >&5
  1362. (eval "$ac_compile") 2>conftest.err
  1363. ac_status=$?
  1364. if test -s conftest.err; then
  1365. grep -v '^ *+' conftest.err >conftest.er1
  1366. cat conftest.er1 >&5
  1367. mv -f conftest.er1 conftest.err
  1368. fi
  1369. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1370. test $ac_status = 0; } && {
  1371. test -z "$ac_c_werror_flag" ||
  1372. test ! -s conftest.err
  1373. } && test -s conftest.$ac_objext; then :
  1374. ac_retval=0
  1375. else
  1376. $as_echo "$as_me: failed program was:" >&5
  1377. sed 's/^/| /' conftest.$ac_ext >&5
  1378. ac_retval=1
  1379. fi
  1380. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1381. return $ac_retval
  1382. } # ac_fn_c_try_compile
  1383. # ac_fn_c_try_link LINENO
  1384. # -----------------------
  1385. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1386. ac_fn_c_try_link ()
  1387. {
  1388. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1389. rm -f conftest.$ac_objext conftest$ac_exeext
  1390. if { { ac_try="$ac_link"
  1391. case "(($ac_try" in
  1392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1393. *) ac_try_echo=$ac_try;;
  1394. esac
  1395. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1396. $as_echo "$ac_try_echo"; } >&5
  1397. (eval "$ac_link") 2>conftest.err
  1398. ac_status=$?
  1399. if test -s conftest.err; then
  1400. grep -v '^ *+' conftest.err >conftest.er1
  1401. cat conftest.er1 >&5
  1402. mv -f conftest.er1 conftest.err
  1403. fi
  1404. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1405. test $ac_status = 0; } && {
  1406. test -z "$ac_c_werror_flag" ||
  1407. test ! -s conftest.err
  1408. } && test -s conftest$ac_exeext && {
  1409. test "$cross_compiling" = yes ||
  1410. $as_test_x conftest$ac_exeext
  1411. }; then :
  1412. ac_retval=0
  1413. else
  1414. $as_echo "$as_me: failed program was:" >&5
  1415. sed 's/^/| /' conftest.$ac_ext >&5
  1416. ac_retval=1
  1417. fi
  1418. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1419. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1420. # interfere with the next link command; also delete a directory that is
  1421. # left behind by Apple's compiler. We do this before executing the actions.
  1422. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1423. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1424. return $ac_retval
  1425. } # ac_fn_c_try_link
  1426. # ac_fn_c_try_cpp LINENO
  1427. # ----------------------
  1428. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1429. ac_fn_c_try_cpp ()
  1430. {
  1431. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1432. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1433. case "(($ac_try" in
  1434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1435. *) ac_try_echo=$ac_try;;
  1436. esac
  1437. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1438. $as_echo "$ac_try_echo"; } >&5
  1439. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1440. ac_status=$?
  1441. if test -s conftest.err; then
  1442. grep -v '^ *+' conftest.err >conftest.er1
  1443. cat conftest.er1 >&5
  1444. mv -f conftest.er1 conftest.err
  1445. fi
  1446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1447. test $ac_status = 0; } >/dev/null && {
  1448. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1449. test ! -s conftest.err
  1450. }; then :
  1451. ac_retval=0
  1452. else
  1453. $as_echo "$as_me: failed program was:" >&5
  1454. sed 's/^/| /' conftest.$ac_ext >&5
  1455. ac_retval=1
  1456. fi
  1457. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1458. return $ac_retval
  1459. } # ac_fn_c_try_cpp
  1460. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1461. # -------------------------------------------------------
  1462. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1463. # the include files in INCLUDES and setting the cache variable VAR
  1464. # accordingly.
  1465. ac_fn_c_check_header_mongrel ()
  1466. {
  1467. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1468. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1470. $as_echo_n "checking for $2... " >&6; }
  1471. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1472. $as_echo_n "(cached) " >&6
  1473. fi
  1474. eval ac_res=\$$3
  1475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1476. $as_echo "$ac_res" >&6; }
  1477. else
  1478. # Is the header compilable?
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1480. $as_echo_n "checking $2 usability... " >&6; }
  1481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1482. /* end confdefs.h. */
  1483. $4
  1484. #include <$2>
  1485. _ACEOF
  1486. if ac_fn_c_try_compile "$LINENO"; then :
  1487. ac_header_compiler=yes
  1488. else
  1489. ac_header_compiler=no
  1490. fi
  1491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1493. $as_echo "$ac_header_compiler" >&6; }
  1494. # Is the header present?
  1495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1496. $as_echo_n "checking $2 presence... " >&6; }
  1497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1498. /* end confdefs.h. */
  1499. #include <$2>
  1500. _ACEOF
  1501. if ac_fn_c_try_cpp "$LINENO"; then :
  1502. ac_header_preproc=yes
  1503. else
  1504. ac_header_preproc=no
  1505. fi
  1506. rm -f conftest.err conftest.$ac_ext
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1508. $as_echo "$ac_header_preproc" >&6; }
  1509. # So? What about this header?
  1510. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1511. yes:no: )
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1513. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1515. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1516. ;;
  1517. no:yes:* )
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1519. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1521. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1523. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1525. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1527. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1528. ;;
  1529. esac
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1531. $as_echo_n "checking for $2... " >&6; }
  1532. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1533. $as_echo_n "(cached) " >&6
  1534. else
  1535. eval "$3=\$ac_header_compiler"
  1536. fi
  1537. eval ac_res=\$$3
  1538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1539. $as_echo "$ac_res" >&6; }
  1540. fi
  1541. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1542. } # ac_fn_c_check_header_mongrel
  1543. # ac_fn_c_try_run LINENO
  1544. # ----------------------
  1545. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1546. # that executables *can* be run.
  1547. ac_fn_c_try_run ()
  1548. {
  1549. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  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>&5
  1558. ac_status=$?
  1559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1560. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1561. { { case "(($ac_try" in
  1562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1563. *) ac_try_echo=$ac_try;;
  1564. esac
  1565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1566. $as_echo "$ac_try_echo"; } >&5
  1567. (eval "$ac_try") 2>&5
  1568. ac_status=$?
  1569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1570. test $ac_status = 0; }; }; then :
  1571. ac_retval=0
  1572. else
  1573. $as_echo "$as_me: program exited with status $ac_status" >&5
  1574. $as_echo "$as_me: failed program was:" >&5
  1575. sed 's/^/| /' conftest.$ac_ext >&5
  1576. ac_retval=$ac_status
  1577. fi
  1578. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1579. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1580. return $ac_retval
  1581. } # ac_fn_c_try_run
  1582. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1583. # -------------------------------------------------------
  1584. # Tests whether HEADER exists and can be compiled using the include files in
  1585. # INCLUDES, setting the cache variable VAR accordingly.
  1586. ac_fn_c_check_header_compile ()
  1587. {
  1588. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1590. $as_echo_n "checking for $2... " >&6; }
  1591. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1592. $as_echo_n "(cached) " >&6
  1593. else
  1594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1595. /* end confdefs.h. */
  1596. $4
  1597. #include <$2>
  1598. _ACEOF
  1599. if ac_fn_c_try_compile "$LINENO"; then :
  1600. eval "$3=yes"
  1601. else
  1602. eval "$3=no"
  1603. fi
  1604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1605. fi
  1606. eval ac_res=\$$3
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1608. $as_echo "$ac_res" >&6; }
  1609. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1610. } # ac_fn_c_check_header_compile
  1611. # ac_fn_c_check_func LINENO FUNC VAR
  1612. # ----------------------------------
  1613. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1614. ac_fn_c_check_func ()
  1615. {
  1616. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1618. $as_echo_n "checking for $2... " >&6; }
  1619. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1620. $as_echo_n "(cached) " >&6
  1621. else
  1622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1623. /* end confdefs.h. */
  1624. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1625. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1626. #define $2 innocuous_$2
  1627. /* System header to define __stub macros and hopefully few prototypes,
  1628. which can conflict with char $2 (); below.
  1629. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1630. <limits.h> exists even on freestanding compilers. */
  1631. #ifdef __STDC__
  1632. # include <limits.h>
  1633. #else
  1634. # include <assert.h>
  1635. #endif
  1636. #undef $2
  1637. /* Override any GCC internal prototype to avoid an error.
  1638. Use char because int might match the return type of a GCC
  1639. builtin and then its argument prototype would still apply. */
  1640. #ifdef __cplusplus
  1641. extern "C"
  1642. #endif
  1643. char $2 ();
  1644. /* The GNU C library defines this for functions which it implements
  1645. to always fail with ENOSYS. Some functions are actually named
  1646. something starting with __ and the normal name is an alias. */
  1647. #if defined __stub_$2 || defined __stub___$2
  1648. choke me
  1649. #endif
  1650. int
  1651. main ()
  1652. {
  1653. return $2 ();
  1654. ;
  1655. return 0;
  1656. }
  1657. _ACEOF
  1658. if ac_fn_c_try_link "$LINENO"; then :
  1659. eval "$3=yes"
  1660. else
  1661. eval "$3=no"
  1662. fi
  1663. rm -f core conftest.err conftest.$ac_objext \
  1664. conftest$ac_exeext conftest.$ac_ext
  1665. fi
  1666. eval ac_res=\$$3
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1668. $as_echo "$ac_res" >&6; }
  1669. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1670. } # ac_fn_c_check_func
  1671. cat >config.log <<_ACEOF
  1672. This file contains any messages produced by compilers while
  1673. running configure, to aid debugging if configure makes a mistake.
  1674. It was created by gprof $as_me 2.25.51, which was
  1675. generated by GNU Autoconf 2.64. Invocation command line was
  1676. $ $0 $@
  1677. _ACEOF
  1678. exec 5>>config.log
  1679. {
  1680. cat <<_ASUNAME
  1681. ## --------- ##
  1682. ## Platform. ##
  1683. ## --------- ##
  1684. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1685. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1686. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1687. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1688. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1689. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1690. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1691. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1692. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1693. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1694. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1695. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1696. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1697. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1698. _ASUNAME
  1699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1700. for as_dir in $PATH
  1701. do
  1702. IFS=$as_save_IFS
  1703. test -z "$as_dir" && as_dir=.
  1704. $as_echo "PATH: $as_dir"
  1705. done
  1706. IFS=$as_save_IFS
  1707. } >&5
  1708. cat >&5 <<_ACEOF
  1709. ## ----------- ##
  1710. ## Core tests. ##
  1711. ## ----------- ##
  1712. _ACEOF
  1713. # Keep a trace of the command line.
  1714. # Strip out --no-create and --no-recursion so they do not pile up.
  1715. # Strip out --silent because we don't want to record it for future runs.
  1716. # Also quote any args containing shell meta-characters.
  1717. # Make two passes to allow for proper duplicate-argument suppression.
  1718. ac_configure_args=
  1719. ac_configure_args0=
  1720. ac_configure_args1=
  1721. ac_must_keep_next=false
  1722. for ac_pass in 1 2
  1723. do
  1724. for ac_arg
  1725. do
  1726. case $ac_arg in
  1727. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1728. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1729. | -silent | --silent | --silen | --sile | --sil)
  1730. continue ;;
  1731. *\'*)
  1732. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1733. esac
  1734. case $ac_pass in
  1735. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1736. 2)
  1737. as_fn_append ac_configure_args1 " '$ac_arg'"
  1738. if test $ac_must_keep_next = true; then
  1739. ac_must_keep_next=false # Got value, back to normal.
  1740. else
  1741. case $ac_arg in
  1742. *=* | --config-cache | -C | -disable-* | --disable-* \
  1743. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1744. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1745. | -with-* | --with-* | -without-* | --without-* | --x)
  1746. case "$ac_configure_args0 " in
  1747. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1748. esac
  1749. ;;
  1750. -* ) ac_must_keep_next=true ;;
  1751. esac
  1752. fi
  1753. as_fn_append ac_configure_args " '$ac_arg'"
  1754. ;;
  1755. esac
  1756. done
  1757. done
  1758. { ac_configure_args0=; unset ac_configure_args0;}
  1759. { ac_configure_args1=; unset ac_configure_args1;}
  1760. # When interrupted or exit'd, cleanup temporary files, and complete
  1761. # config.log. We remove comments because anyway the quotes in there
  1762. # would cause problems or look ugly.
  1763. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1764. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1765. trap 'exit_status=$?
  1766. # Save into config.log some information that might help in debugging.
  1767. {
  1768. echo
  1769. cat <<\_ASBOX
  1770. ## ---------------- ##
  1771. ## Cache variables. ##
  1772. ## ---------------- ##
  1773. _ASBOX
  1774. echo
  1775. # The following way of writing the cache mishandles newlines in values,
  1776. (
  1777. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1778. eval ac_val=\$$ac_var
  1779. case $ac_val in #(
  1780. *${as_nl}*)
  1781. case $ac_var in #(
  1782. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1783. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1784. esac
  1785. case $ac_var in #(
  1786. _ | IFS | as_nl) ;; #(
  1787. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1788. *) { eval $ac_var=; unset $ac_var;} ;;
  1789. esac ;;
  1790. esac
  1791. done
  1792. (set) 2>&1 |
  1793. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1794. *${as_nl}ac_space=\ *)
  1795. sed -n \
  1796. "s/'\''/'\''\\\\'\'''\''/g;
  1797. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1798. ;; #(
  1799. *)
  1800. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1801. ;;
  1802. esac |
  1803. sort
  1804. )
  1805. echo
  1806. cat <<\_ASBOX
  1807. ## ----------------- ##
  1808. ## Output variables. ##
  1809. ## ----------------- ##
  1810. _ASBOX
  1811. echo
  1812. for ac_var in $ac_subst_vars
  1813. do
  1814. eval ac_val=\$$ac_var
  1815. case $ac_val in
  1816. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1817. esac
  1818. $as_echo "$ac_var='\''$ac_val'\''"
  1819. done | sort
  1820. echo
  1821. if test -n "$ac_subst_files"; then
  1822. cat <<\_ASBOX
  1823. ## ------------------- ##
  1824. ## File substitutions. ##
  1825. ## ------------------- ##
  1826. _ASBOX
  1827. echo
  1828. for ac_var in $ac_subst_files
  1829. do
  1830. eval ac_val=\$$ac_var
  1831. case $ac_val in
  1832. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1833. esac
  1834. $as_echo "$ac_var='\''$ac_val'\''"
  1835. done | sort
  1836. echo
  1837. fi
  1838. if test -s confdefs.h; then
  1839. cat <<\_ASBOX
  1840. ## ----------- ##
  1841. ## confdefs.h. ##
  1842. ## ----------- ##
  1843. _ASBOX
  1844. echo
  1845. cat confdefs.h
  1846. echo
  1847. fi
  1848. test "$ac_signal" != 0 &&
  1849. $as_echo "$as_me: caught signal $ac_signal"
  1850. $as_echo "$as_me: exit $exit_status"
  1851. } >&5
  1852. rm -f core *.core core.conftest.* &&
  1853. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1854. exit $exit_status
  1855. ' 0
  1856. for ac_signal in 1 2 13 15; do
  1857. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1858. done
  1859. ac_signal=0
  1860. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1861. rm -f -r conftest* confdefs.h
  1862. $as_echo "/* confdefs.h */" > confdefs.h
  1863. # Predefined preprocessor variables.
  1864. cat >>confdefs.h <<_ACEOF
  1865. #define PACKAGE_NAME "$PACKAGE_NAME"
  1866. _ACEOF
  1867. cat >>confdefs.h <<_ACEOF
  1868. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1869. _ACEOF
  1870. cat >>confdefs.h <<_ACEOF
  1871. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1872. _ACEOF
  1873. cat >>confdefs.h <<_ACEOF
  1874. #define PACKAGE_STRING "$PACKAGE_STRING"
  1875. _ACEOF
  1876. cat >>confdefs.h <<_ACEOF
  1877. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1878. _ACEOF
  1879. cat >>confdefs.h <<_ACEOF
  1880. #define PACKAGE_URL "$PACKAGE_URL"
  1881. _ACEOF
  1882. # Let the site file select an alternate cache file if it wants to.
  1883. # Prefer an explicitly selected file to automatically selected ones.
  1884. ac_site_file1=NONE
  1885. ac_site_file2=NONE
  1886. if test -n "$CONFIG_SITE"; then
  1887. ac_site_file1=$CONFIG_SITE
  1888. elif test "x$prefix" != xNONE; then
  1889. ac_site_file1=$prefix/share/config.site
  1890. ac_site_file2=$prefix/etc/config.site
  1891. else
  1892. ac_site_file1=$ac_default_prefix/share/config.site
  1893. ac_site_file2=$ac_default_prefix/etc/config.site
  1894. fi
  1895. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1896. do
  1897. test "x$ac_site_file" = xNONE && continue
  1898. if test -r "$ac_site_file"; then
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1900. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1901. sed 's/^/| /' "$ac_site_file" >&5
  1902. . "$ac_site_file"
  1903. fi
  1904. done
  1905. if test -r "$cache_file"; then
  1906. # Some versions of bash will fail to source /dev/null (special
  1907. # files actually), so we avoid doing that.
  1908. if test -f "$cache_file"; then
  1909. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1910. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1911. case $cache_file in
  1912. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1913. *) . "./$cache_file";;
  1914. esac
  1915. fi
  1916. else
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1918. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1919. >$cache_file
  1920. fi
  1921. # Check that the precious variables saved in the cache have kept the same
  1922. # value.
  1923. ac_cache_corrupted=false
  1924. for ac_var in $ac_precious_vars; do
  1925. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1926. eval ac_new_set=\$ac_env_${ac_var}_set
  1927. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1928. eval ac_new_val=\$ac_env_${ac_var}_value
  1929. case $ac_old_set,$ac_new_set in
  1930. set,)
  1931. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1932. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1933. ac_cache_corrupted=: ;;
  1934. ,set)
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1936. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1937. ac_cache_corrupted=: ;;
  1938. ,);;
  1939. *)
  1940. if test "x$ac_old_val" != "x$ac_new_val"; then
  1941. # differences in whitespace do not lead to failure.
  1942. ac_old_val_w=`echo x $ac_old_val`
  1943. ac_new_val_w=`echo x $ac_new_val`
  1944. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1946. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1947. ac_cache_corrupted=:
  1948. else
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1950. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1951. eval $ac_var=\$ac_old_val
  1952. fi
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1954. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1956. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1957. fi;;
  1958. esac
  1959. # Pass precious variables to config.status.
  1960. if test "$ac_new_set" = set; then
  1961. case $ac_new_val in
  1962. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1963. *) ac_arg=$ac_var=$ac_new_val ;;
  1964. esac
  1965. case " $ac_configure_args " in
  1966. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1967. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1968. esac
  1969. fi
  1970. done
  1971. if $ac_cache_corrupted; then
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1973. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1975. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1976. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1977. fi
  1978. ## -------------------- ##
  1979. ## Main body of script. ##
  1980. ## -------------------- ##
  1981. ac_ext=c
  1982. ac_cpp='$CPP $CPPFLAGS'
  1983. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1984. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1985. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1986. ac_aux_dir=
  1987. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1988. for ac_t in install-sh install.sh shtool; do
  1989. if test -f "$ac_dir/$ac_t"; then
  1990. ac_aux_dir=$ac_dir
  1991. ac_install_sh="$ac_aux_dir/$ac_t -c"
  1992. break 2
  1993. fi
  1994. done
  1995. done
  1996. if test -z "$ac_aux_dir"; then
  1997. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1998. fi
  1999. # These three variables are undocumented and unsupported,
  2000. # and are intended to be withdrawn in a future Autoconf release.
  2001. # They can cause serious problems if a builder's source tree is in a directory
  2002. # whose full name contains unusual characters.
  2003. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2004. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2005. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2006. # Make sure we can run config.sub.
  2007. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2008. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2010. $as_echo_n "checking build system type... " >&6; }
  2011. if test "${ac_cv_build+set}" = set; then :
  2012. $as_echo_n "(cached) " >&6
  2013. else
  2014. ac_build_alias=$build_alias
  2015. test "x$ac_build_alias" = x &&
  2016. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2017. test "x$ac_build_alias" = x &&
  2018. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2019. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2020. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2021. fi
  2022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2023. $as_echo "$ac_cv_build" >&6; }
  2024. case $ac_cv_build in
  2025. *-*-*) ;;
  2026. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2027. esac
  2028. build=$ac_cv_build
  2029. ac_save_IFS=$IFS; IFS='-'
  2030. set x $ac_cv_build
  2031. shift
  2032. build_cpu=$1
  2033. build_vendor=$2
  2034. shift; shift
  2035. # Remember, the first character of IFS is used to create $*,
  2036. # except with old shells:
  2037. build_os=$*
  2038. IFS=$ac_save_IFS
  2039. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2041. $as_echo_n "checking host system type... " >&6; }
  2042. if test "${ac_cv_host+set}" = set; then :
  2043. $as_echo_n "(cached) " >&6
  2044. else
  2045. if test "x$host_alias" = x; then
  2046. ac_cv_host=$ac_cv_build
  2047. else
  2048. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2049. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2050. fi
  2051. fi
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2053. $as_echo "$ac_cv_host" >&6; }
  2054. case $ac_cv_host in
  2055. *-*-*) ;;
  2056. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2057. esac
  2058. host=$ac_cv_host
  2059. ac_save_IFS=$IFS; IFS='-'
  2060. set x $ac_cv_host
  2061. shift
  2062. host_cpu=$1
  2063. host_vendor=$2
  2064. shift; shift
  2065. # Remember, the first character of IFS is used to create $*,
  2066. # except with old shells:
  2067. host_os=$*
  2068. IFS=$ac_save_IFS
  2069. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2071. $as_echo_n "checking target system type... " >&6; }
  2072. if test "${ac_cv_target+set}" = set; then :
  2073. $as_echo_n "(cached) " >&6
  2074. else
  2075. if test "x$target_alias" = x; then
  2076. ac_cv_target=$ac_cv_host
  2077. else
  2078. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2079. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2080. fi
  2081. fi
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2083. $as_echo "$ac_cv_target" >&6; }
  2084. case $ac_cv_target in
  2085. *-*-*) ;;
  2086. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2087. esac
  2088. target=$ac_cv_target
  2089. ac_save_IFS=$IFS; IFS='-'
  2090. set x $ac_cv_target
  2091. shift
  2092. target_cpu=$1
  2093. target_vendor=$2
  2094. shift; shift
  2095. # Remember, the first character of IFS is used to create $*,
  2096. # except with old shells:
  2097. target_os=$*
  2098. IFS=$ac_save_IFS
  2099. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2100. # The aliases save the names the user supplied, while $host etc.
  2101. # will get canonicalized.
  2102. test -n "$target_alias" &&
  2103. test "$program_prefix$program_suffix$program_transform_name" = \
  2104. NONENONEs,x,x, &&
  2105. program_prefix=${target_alias}-
  2106. ac_ext=c
  2107. ac_cpp='$CPP $CPPFLAGS'
  2108. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2109. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2110. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2111. if test -n "$ac_tool_prefix"; then
  2112. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2113. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2115. $as_echo_n "checking for $ac_word... " >&6; }
  2116. if test "${ac_cv_prog_CC+set}" = set; then :
  2117. $as_echo_n "(cached) " >&6
  2118. else
  2119. if test -n "$CC"; then
  2120. ac_cv_prog_CC="$CC" # Let the user override the test.
  2121. else
  2122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2123. for as_dir in $PATH
  2124. do
  2125. IFS=$as_save_IFS
  2126. test -z "$as_dir" && as_dir=.
  2127. for ac_exec_ext in '' $ac_executable_extensions; do
  2128. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2129. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2131. break 2
  2132. fi
  2133. done
  2134. done
  2135. IFS=$as_save_IFS
  2136. fi
  2137. fi
  2138. CC=$ac_cv_prog_CC
  2139. if test -n "$CC"; then
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2141. $as_echo "$CC" >&6; }
  2142. else
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2144. $as_echo "no" >&6; }
  2145. fi
  2146. fi
  2147. if test -z "$ac_cv_prog_CC"; then
  2148. ac_ct_CC=$CC
  2149. # Extract the first word of "gcc", so it can be a program name with args.
  2150. set dummy gcc; ac_word=$2
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2152. $as_echo_n "checking for $ac_word... " >&6; }
  2153. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2154. $as_echo_n "(cached) " >&6
  2155. else
  2156. if test -n "$ac_ct_CC"; then
  2157. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2158. else
  2159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2160. for as_dir in $PATH
  2161. do
  2162. IFS=$as_save_IFS
  2163. test -z "$as_dir" && as_dir=.
  2164. for ac_exec_ext in '' $ac_executable_extensions; do
  2165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2166. ac_cv_prog_ac_ct_CC="gcc"
  2167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2168. break 2
  2169. fi
  2170. done
  2171. done
  2172. IFS=$as_save_IFS
  2173. fi
  2174. fi
  2175. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2176. if test -n "$ac_ct_CC"; then
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2178. $as_echo "$ac_ct_CC" >&6; }
  2179. else
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2181. $as_echo "no" >&6; }
  2182. fi
  2183. if test "x$ac_ct_CC" = x; then
  2184. CC=""
  2185. else
  2186. case $cross_compiling:$ac_tool_warned in
  2187. yes:)
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2189. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2190. ac_tool_warned=yes ;;
  2191. esac
  2192. CC=$ac_ct_CC
  2193. fi
  2194. else
  2195. CC="$ac_cv_prog_CC"
  2196. fi
  2197. if test -z "$CC"; then
  2198. if test -n "$ac_tool_prefix"; then
  2199. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2200. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2202. $as_echo_n "checking for $ac_word... " >&6; }
  2203. if test "${ac_cv_prog_CC+set}" = set; then :
  2204. $as_echo_n "(cached) " >&6
  2205. else
  2206. if test -n "$CC"; then
  2207. ac_cv_prog_CC="$CC" # Let the user override the test.
  2208. else
  2209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2210. for as_dir in $PATH
  2211. do
  2212. IFS=$as_save_IFS
  2213. test -z "$as_dir" && as_dir=.
  2214. for ac_exec_ext in '' $ac_executable_extensions; do
  2215. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2216. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2218. break 2
  2219. fi
  2220. done
  2221. done
  2222. IFS=$as_save_IFS
  2223. fi
  2224. fi
  2225. CC=$ac_cv_prog_CC
  2226. if test -n "$CC"; then
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2228. $as_echo "$CC" >&6; }
  2229. else
  2230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2231. $as_echo "no" >&6; }
  2232. fi
  2233. fi
  2234. fi
  2235. if test -z "$CC"; then
  2236. # Extract the first word of "cc", so it can be a program name with args.
  2237. set dummy cc; ac_word=$2
  2238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2239. $as_echo_n "checking for $ac_word... " >&6; }
  2240. if test "${ac_cv_prog_CC+set}" = set; then :
  2241. $as_echo_n "(cached) " >&6
  2242. else
  2243. if test -n "$CC"; then
  2244. ac_cv_prog_CC="$CC" # Let the user override the test.
  2245. else
  2246. ac_prog_rejected=no
  2247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2248. for as_dir in $PATH
  2249. do
  2250. IFS=$as_save_IFS
  2251. test -z "$as_dir" && as_dir=.
  2252. for ac_exec_ext in '' $ac_executable_extensions; do
  2253. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2254. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2255. ac_prog_rejected=yes
  2256. continue
  2257. fi
  2258. ac_cv_prog_CC="cc"
  2259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2260. break 2
  2261. fi
  2262. done
  2263. done
  2264. IFS=$as_save_IFS
  2265. if test $ac_prog_rejected = yes; then
  2266. # We found a bogon in the path, so make sure we never use it.
  2267. set dummy $ac_cv_prog_CC
  2268. shift
  2269. if test $# != 0; then
  2270. # We chose a different compiler from the bogus one.
  2271. # However, it has the same basename, so the bogon will be chosen
  2272. # first if we set CC to just the basename; use the full file name.
  2273. shift
  2274. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2275. fi
  2276. fi
  2277. fi
  2278. fi
  2279. CC=$ac_cv_prog_CC
  2280. if test -n "$CC"; then
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2282. $as_echo "$CC" >&6; }
  2283. else
  2284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2285. $as_echo "no" >&6; }
  2286. fi
  2287. fi
  2288. if test -z "$CC"; then
  2289. if test -n "$ac_tool_prefix"; then
  2290. for ac_prog in cl.exe
  2291. do
  2292. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2293. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2295. $as_echo_n "checking for $ac_word... " >&6; }
  2296. if test "${ac_cv_prog_CC+set}" = set; then :
  2297. $as_echo_n "(cached) " >&6
  2298. else
  2299. if test -n "$CC"; then
  2300. ac_cv_prog_CC="$CC" # Let the user override the test.
  2301. else
  2302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2303. for as_dir in $PATH
  2304. do
  2305. IFS=$as_save_IFS
  2306. test -z "$as_dir" && as_dir=.
  2307. for ac_exec_ext in '' $ac_executable_extensions; do
  2308. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2309. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2311. break 2
  2312. fi
  2313. done
  2314. done
  2315. IFS=$as_save_IFS
  2316. fi
  2317. fi
  2318. CC=$ac_cv_prog_CC
  2319. if test -n "$CC"; then
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2321. $as_echo "$CC" >&6; }
  2322. else
  2323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2324. $as_echo "no" >&6; }
  2325. fi
  2326. test -n "$CC" && break
  2327. done
  2328. fi
  2329. if test -z "$CC"; then
  2330. ac_ct_CC=$CC
  2331. for ac_prog in cl.exe
  2332. do
  2333. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2334. set dummy $ac_prog; ac_word=$2
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2336. $as_echo_n "checking for $ac_word... " >&6; }
  2337. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2338. $as_echo_n "(cached) " >&6
  2339. else
  2340. if test -n "$ac_ct_CC"; then
  2341. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2342. else
  2343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344. for as_dir in $PATH
  2345. do
  2346. IFS=$as_save_IFS
  2347. test -z "$as_dir" && as_dir=.
  2348. for ac_exec_ext in '' $ac_executable_extensions; do
  2349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2350. ac_cv_prog_ac_ct_CC="$ac_prog"
  2351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352. break 2
  2353. fi
  2354. done
  2355. done
  2356. IFS=$as_save_IFS
  2357. fi
  2358. fi
  2359. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2360. if test -n "$ac_ct_CC"; then
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2362. $as_echo "$ac_ct_CC" >&6; }
  2363. else
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2365. $as_echo "no" >&6; }
  2366. fi
  2367. test -n "$ac_ct_CC" && break
  2368. done
  2369. if test "x$ac_ct_CC" = x; then
  2370. CC=""
  2371. else
  2372. case $cross_compiling:$ac_tool_warned in
  2373. yes:)
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2375. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2376. ac_tool_warned=yes ;;
  2377. esac
  2378. CC=$ac_ct_CC
  2379. fi
  2380. fi
  2381. fi
  2382. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2383. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2384. as_fn_error "no acceptable C compiler found in \$PATH
  2385. See \`config.log' for more details." "$LINENO" 5; }
  2386. # Provide some information about the compiler.
  2387. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2388. set X $ac_compile
  2389. ac_compiler=$2
  2390. for ac_option in --version -v -V -qversion; do
  2391. { { ac_try="$ac_compiler $ac_option >&5"
  2392. case "(($ac_try" in
  2393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2394. *) ac_try_echo=$ac_try;;
  2395. esac
  2396. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2397. $as_echo "$ac_try_echo"; } >&5
  2398. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2399. ac_status=$?
  2400. if test -s conftest.err; then
  2401. sed '10a\
  2402. ... rest of stderr output deleted ...
  2403. 10q' conftest.err >conftest.er1
  2404. cat conftest.er1 >&5
  2405. rm -f conftest.er1 conftest.err
  2406. fi
  2407. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2408. test $ac_status = 0; }
  2409. done
  2410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2411. /* end confdefs.h. */
  2412. int
  2413. main ()
  2414. {
  2415. ;
  2416. return 0;
  2417. }
  2418. _ACEOF
  2419. ac_clean_files_save=$ac_clean_files
  2420. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2421. # Try to create an executable without -o first, disregard a.out.
  2422. # It will help us diagnose broken compilers, and finding out an intuition
  2423. # of exeext.
  2424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2425. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2426. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2427. # The possible output files:
  2428. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2429. ac_rmfiles=
  2430. for ac_file in $ac_files
  2431. do
  2432. case $ac_file in
  2433. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2434. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2435. esac
  2436. done
  2437. rm -f $ac_rmfiles
  2438. if { { ac_try="$ac_link_default"
  2439. case "(($ac_try" in
  2440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2441. *) ac_try_echo=$ac_try;;
  2442. esac
  2443. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2444. $as_echo "$ac_try_echo"; } >&5
  2445. (eval "$ac_link_default") 2>&5
  2446. ac_status=$?
  2447. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2448. test $ac_status = 0; }; then :
  2449. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2450. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2451. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2452. # so that the user can short-circuit this test for compilers unknown to
  2453. # Autoconf.
  2454. for ac_file in $ac_files ''
  2455. do
  2456. test -f "$ac_file" || continue
  2457. case $ac_file in
  2458. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2459. ;;
  2460. [ab].out )
  2461. # We found the default executable, but exeext='' is most
  2462. # certainly right.
  2463. break;;
  2464. *.* )
  2465. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2466. then :; else
  2467. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2468. fi
  2469. # We set ac_cv_exeext here because the later test for it is not
  2470. # safe: cross compilers may not add the suffix if given an `-o'
  2471. # argument, so we may need to know it at that point already.
  2472. # Even if this section looks crufty: it has the advantage of
  2473. # actually working.
  2474. break;;
  2475. * )
  2476. break;;
  2477. esac
  2478. done
  2479. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2480. else
  2481. ac_file=''
  2482. fi
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2484. $as_echo "$ac_file" >&6; }
  2485. if test -z "$ac_file"; then :
  2486. $as_echo "$as_me: failed program was:" >&5
  2487. sed 's/^/| /' conftest.$ac_ext >&5
  2488. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2489. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2490. { as_fn_set_status 77
  2491. as_fn_error "C compiler cannot create executables
  2492. See \`config.log' for more details." "$LINENO" 5; }; }
  2493. fi
  2494. ac_exeext=$ac_cv_exeext
  2495. # Check that the compiler produces executables we can run. If not, either
  2496. # the compiler is broken, or we cross compile.
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2498. $as_echo_n "checking whether the C compiler works... " >&6; }
  2499. # If not cross compiling, check that we can run a simple program.
  2500. if test "$cross_compiling" != yes; then
  2501. if { ac_try='./$ac_file'
  2502. { { case "(($ac_try" in
  2503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2504. *) ac_try_echo=$ac_try;;
  2505. esac
  2506. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2507. $as_echo "$ac_try_echo"; } >&5
  2508. (eval "$ac_try") 2>&5
  2509. ac_status=$?
  2510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2511. test $ac_status = 0; }; }; then
  2512. cross_compiling=no
  2513. else
  2514. if test "$cross_compiling" = maybe; then
  2515. cross_compiling=yes
  2516. else
  2517. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2518. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2519. as_fn_error "cannot run C compiled programs.
  2520. If you meant to cross compile, use \`--host'.
  2521. See \`config.log' for more details." "$LINENO" 5; }
  2522. fi
  2523. fi
  2524. fi
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2526. $as_echo "yes" >&6; }
  2527. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2528. ac_clean_files=$ac_clean_files_save
  2529. # Check that the compiler produces executables we can run. If not, either
  2530. # the compiler is broken, or we cross compile.
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2532. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2534. $as_echo "$cross_compiling" >&6; }
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2536. $as_echo_n "checking for suffix of executables... " >&6; }
  2537. if { { ac_try="$ac_link"
  2538. case "(($ac_try" in
  2539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2540. *) ac_try_echo=$ac_try;;
  2541. esac
  2542. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2543. $as_echo "$ac_try_echo"; } >&5
  2544. (eval "$ac_link") 2>&5
  2545. ac_status=$?
  2546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2547. test $ac_status = 0; }; then :
  2548. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2549. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2550. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2551. # `rm'.
  2552. for ac_file in conftest.exe conftest conftest.*; do
  2553. test -f "$ac_file" || continue
  2554. case $ac_file in
  2555. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2556. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2557. break;;
  2558. * ) break;;
  2559. esac
  2560. done
  2561. else
  2562. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2563. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2564. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2565. See \`config.log' for more details." "$LINENO" 5; }
  2566. fi
  2567. rm -f conftest$ac_cv_exeext
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2569. $as_echo "$ac_cv_exeext" >&6; }
  2570. rm -f conftest.$ac_ext
  2571. EXEEXT=$ac_cv_exeext
  2572. ac_exeext=$EXEEXT
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2574. $as_echo_n "checking for suffix of object files... " >&6; }
  2575. if test "${ac_cv_objext+set}" = set; then :
  2576. $as_echo_n "(cached) " >&6
  2577. else
  2578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2579. /* end confdefs.h. */
  2580. int
  2581. main ()
  2582. {
  2583. ;
  2584. return 0;
  2585. }
  2586. _ACEOF
  2587. rm -f conftest.o conftest.obj
  2588. if { { ac_try="$ac_compile"
  2589. case "(($ac_try" in
  2590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2591. *) ac_try_echo=$ac_try;;
  2592. esac
  2593. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2594. $as_echo "$ac_try_echo"; } >&5
  2595. (eval "$ac_compile") 2>&5
  2596. ac_status=$?
  2597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2598. test $ac_status = 0; }; then :
  2599. for ac_file in conftest.o conftest.obj conftest.*; do
  2600. test -f "$ac_file" || continue;
  2601. case $ac_file in
  2602. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2603. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2604. break;;
  2605. esac
  2606. done
  2607. else
  2608. $as_echo "$as_me: failed program was:" >&5
  2609. sed 's/^/| /' conftest.$ac_ext >&5
  2610. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2611. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2612. as_fn_error "cannot compute suffix of object files: cannot compile
  2613. See \`config.log' for more details." "$LINENO" 5; }
  2614. fi
  2615. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2616. fi
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2618. $as_echo "$ac_cv_objext" >&6; }
  2619. OBJEXT=$ac_cv_objext
  2620. ac_objext=$OBJEXT
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2622. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2623. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2624. $as_echo_n "(cached) " >&6
  2625. else
  2626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2627. /* end confdefs.h. */
  2628. int
  2629. main ()
  2630. {
  2631. #ifndef __GNUC__
  2632. choke me
  2633. #endif
  2634. ;
  2635. return 0;
  2636. }
  2637. _ACEOF
  2638. if ac_fn_c_try_compile "$LINENO"; then :
  2639. ac_compiler_gnu=yes
  2640. else
  2641. ac_compiler_gnu=no
  2642. fi
  2643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2644. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2645. fi
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2647. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2648. if test $ac_compiler_gnu = yes; then
  2649. GCC=yes
  2650. else
  2651. GCC=
  2652. fi
  2653. ac_test_CFLAGS=${CFLAGS+set}
  2654. ac_save_CFLAGS=$CFLAGS
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2656. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2657. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2658. $as_echo_n "(cached) " >&6
  2659. else
  2660. ac_save_c_werror_flag=$ac_c_werror_flag
  2661. ac_c_werror_flag=yes
  2662. ac_cv_prog_cc_g=no
  2663. CFLAGS="-g"
  2664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2665. /* end confdefs.h. */
  2666. int
  2667. main ()
  2668. {
  2669. ;
  2670. return 0;
  2671. }
  2672. _ACEOF
  2673. if ac_fn_c_try_compile "$LINENO"; then :
  2674. ac_cv_prog_cc_g=yes
  2675. else
  2676. CFLAGS=""
  2677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2678. /* end confdefs.h. */
  2679. int
  2680. main ()
  2681. {
  2682. ;
  2683. return 0;
  2684. }
  2685. _ACEOF
  2686. if ac_fn_c_try_compile "$LINENO"; then :
  2687. else
  2688. ac_c_werror_flag=$ac_save_c_werror_flag
  2689. CFLAGS="-g"
  2690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2691. /* end confdefs.h. */
  2692. int
  2693. main ()
  2694. {
  2695. ;
  2696. return 0;
  2697. }
  2698. _ACEOF
  2699. if ac_fn_c_try_compile "$LINENO"; then :
  2700. ac_cv_prog_cc_g=yes
  2701. fi
  2702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2703. fi
  2704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2705. fi
  2706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2707. ac_c_werror_flag=$ac_save_c_werror_flag
  2708. fi
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2710. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2711. if test "$ac_test_CFLAGS" = set; then
  2712. CFLAGS=$ac_save_CFLAGS
  2713. elif test $ac_cv_prog_cc_g = yes; then
  2714. if test "$GCC" = yes; then
  2715. CFLAGS="-g -O2"
  2716. else
  2717. CFLAGS="-g"
  2718. fi
  2719. else
  2720. if test "$GCC" = yes; then
  2721. CFLAGS="-O2"
  2722. else
  2723. CFLAGS=
  2724. fi
  2725. fi
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2727. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2728. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  2729. $as_echo_n "(cached) " >&6
  2730. else
  2731. ac_cv_prog_cc_c89=no
  2732. ac_save_CC=$CC
  2733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2734. /* end confdefs.h. */
  2735. #include <stdarg.h>
  2736. #include <stdio.h>
  2737. #include <sys/types.h>
  2738. #include <sys/stat.h>
  2739. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2740. struct buf { int x; };
  2741. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2742. static char *e (p, i)
  2743. char **p;
  2744. int i;
  2745. {
  2746. return p[i];
  2747. }
  2748. static char *f (char * (*g) (char **, int), char **p, ...)
  2749. {
  2750. char *s;
  2751. va_list v;
  2752. va_start (v,p);
  2753. s = g (p, va_arg (v,int));
  2754. va_end (v);
  2755. return s;
  2756. }
  2757. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2758. function prototypes and stuff, but not '\xHH' hex character constants.
  2759. These don't provoke an error unfortunately, instead are silently treated
  2760. as 'x'. The following induces an error, until -std is added to get
  2761. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2762. array size at least. It's necessary to write '\x00'==0 to get something
  2763. that's true only with -std. */
  2764. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2765. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2766. inside strings and character constants. */
  2767. #define FOO(x) 'x'
  2768. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2769. int test (int i, double x);
  2770. struct s1 {int (*f) (int a);};
  2771. struct s2 {int (*f) (double a);};
  2772. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2773. int argc;
  2774. char **argv;
  2775. int
  2776. main ()
  2777. {
  2778. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2779. ;
  2780. return 0;
  2781. }
  2782. _ACEOF
  2783. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2784. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2785. do
  2786. CC="$ac_save_CC $ac_arg"
  2787. if ac_fn_c_try_compile "$LINENO"; then :
  2788. ac_cv_prog_cc_c89=$ac_arg
  2789. fi
  2790. rm -f core conftest.err conftest.$ac_objext
  2791. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2792. done
  2793. rm -f conftest.$ac_ext
  2794. CC=$ac_save_CC
  2795. fi
  2796. # AC_CACHE_VAL
  2797. case "x$ac_cv_prog_cc_c89" in
  2798. x)
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2800. $as_echo "none needed" >&6; } ;;
  2801. xno)
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2803. $as_echo "unsupported" >&6; } ;;
  2804. *)
  2805. CC="$CC $ac_cv_prog_cc_c89"
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2807. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2808. esac
  2809. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2810. fi
  2811. ac_ext=c
  2812. ac_cpp='$CPP $CPPFLAGS'
  2813. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2814. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2815. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  2817. $as_echo_n "checking for library containing strerror... " >&6; }
  2818. if test "${ac_cv_search_strerror+set}" = set; then :
  2819. $as_echo_n "(cached) " >&6
  2820. else
  2821. ac_func_search_save_LIBS=$LIBS
  2822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2823. /* end confdefs.h. */
  2824. /* Override any GCC internal prototype to avoid an error.
  2825. Use char because int might match the return type of a GCC
  2826. builtin and then its argument prototype would still apply. */
  2827. #ifdef __cplusplus
  2828. extern "C"
  2829. #endif
  2830. char strerror ();
  2831. int
  2832. main ()
  2833. {
  2834. return strerror ();
  2835. ;
  2836. return 0;
  2837. }
  2838. _ACEOF
  2839. for ac_lib in '' cposix; do
  2840. if test -z "$ac_lib"; then
  2841. ac_res="none required"
  2842. else
  2843. ac_res=-l$ac_lib
  2844. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2845. fi
  2846. if ac_fn_c_try_link "$LINENO"; then :
  2847. ac_cv_search_strerror=$ac_res
  2848. fi
  2849. rm -f core conftest.err conftest.$ac_objext \
  2850. conftest$ac_exeext
  2851. if test "${ac_cv_search_strerror+set}" = set; then :
  2852. break
  2853. fi
  2854. done
  2855. if test "${ac_cv_search_strerror+set}" = set; then :
  2856. else
  2857. ac_cv_search_strerror=no
  2858. fi
  2859. rm conftest.$ac_ext
  2860. LIBS=$ac_func_search_save_LIBS
  2861. fi
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  2863. $as_echo "$ac_cv_search_strerror" >&6; }
  2864. ac_res=$ac_cv_search_strerror
  2865. if test "$ac_res" != no; then :
  2866. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  2867. fi
  2868. am__api_version='1.11'
  2869. # Find a good install program. We prefer a C program (faster),
  2870. # so one script is as good as another. But avoid the broken or
  2871. # incompatible versions:
  2872. # SysV /etc/install, /usr/sbin/install
  2873. # SunOS /usr/etc/install
  2874. # IRIX /sbin/install
  2875. # AIX /bin/install
  2876. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2877. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2878. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2879. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2880. # OS/2's system install, which has a completely different semantic
  2881. # ./install, which can be erroneously created by make from ./install.sh.
  2882. # Reject install programs that cannot install multiple files.
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2884. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2885. if test -z "$INSTALL"; then
  2886. if test "${ac_cv_path_install+set}" = set; then :
  2887. $as_echo_n "(cached) " >&6
  2888. else
  2889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2890. for as_dir in $PATH
  2891. do
  2892. IFS=$as_save_IFS
  2893. test -z "$as_dir" && as_dir=.
  2894. # Account for people who put trailing slashes in PATH elements.
  2895. case $as_dir/ in #((
  2896. ./ | .// | /[cC]/* | \
  2897. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2898. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2899. /usr/ucb/* ) ;;
  2900. *)
  2901. # OSF1 and SCO ODT 3.0 have their own names for install.
  2902. # Don't use installbsd from OSF since it installs stuff as root
  2903. # by default.
  2904. for ac_prog in ginstall scoinst install; do
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2907. if test $ac_prog = install &&
  2908. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2909. # AIX install. It has an incompatible calling convention.
  2910. :
  2911. elif test $ac_prog = install &&
  2912. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2913. # program-specific install script used by HP pwplus--don't use.
  2914. :
  2915. else
  2916. rm -rf conftest.one conftest.two conftest.dir
  2917. echo one > conftest.one
  2918. echo two > conftest.two
  2919. mkdir conftest.dir
  2920. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2921. test -s conftest.one && test -s conftest.two &&
  2922. test -s conftest.dir/conftest.one &&
  2923. test -s conftest.dir/conftest.two
  2924. then
  2925. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2926. break 3
  2927. fi
  2928. fi
  2929. fi
  2930. done
  2931. done
  2932. ;;
  2933. esac
  2934. done
  2935. IFS=$as_save_IFS
  2936. rm -rf conftest.one conftest.two conftest.dir
  2937. fi
  2938. if test "${ac_cv_path_install+set}" = set; then
  2939. INSTALL=$ac_cv_path_install
  2940. else
  2941. # As a last resort, use the slow shell script. Don't cache a
  2942. # value for INSTALL within a source directory, because that will
  2943. # break other packages using the cache if that directory is
  2944. # removed, or if the value is a relative name.
  2945. INSTALL=$ac_install_sh
  2946. fi
  2947. fi
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2949. $as_echo "$INSTALL" >&6; }
  2950. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2951. # It thinks the first close brace ends the variable substitution.
  2952. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2953. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2954. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2956. $as_echo_n "checking whether build environment is sane... " >&6; }
  2957. # Just in case
  2958. sleep 1
  2959. echo timestamp > conftest.file
  2960. # Reject unsafe characters in $srcdir or the absolute working directory
  2961. # name. Accept space and tab only in the latter.
  2962. am_lf='
  2963. '
  2964. case `pwd` in
  2965. *[\\\"\#\$\&\'\`$am_lf]*)
  2966. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2967. esac
  2968. case $srcdir in
  2969. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2970. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2971. esac
  2972. # Do `set' in a subshell so we don't clobber the current shell's
  2973. # arguments. Must try -L first in case configure is actually a
  2974. # symlink; some systems play weird games with the mod time of symlinks
  2975. # (eg FreeBSD returns the mod time of the symlink's containing
  2976. # directory).
  2977. if (
  2978. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2979. if test "$*" = "X"; then
  2980. # -L didn't work.
  2981. set X `ls -t "$srcdir/configure" conftest.file`
  2982. fi
  2983. rm -f conftest.file
  2984. if test "$*" != "X $srcdir/configure conftest.file" \
  2985. && test "$*" != "X conftest.file $srcdir/configure"; then
  2986. # If neither matched, then we have a broken ls. This can happen
  2987. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2988. # broken ls alias from the environment. This has actually
  2989. # happened. Such a system could not be considered "sane".
  2990. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2991. alias in your environment" "$LINENO" 5
  2992. fi
  2993. test "$2" = conftest.file
  2994. )
  2995. then
  2996. # Ok.
  2997. :
  2998. else
  2999. as_fn_error "newly created file is older than distributed files!
  3000. Check your system clock" "$LINENO" 5
  3001. fi
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3003. $as_echo "yes" >&6; }
  3004. test "$program_prefix" != NONE &&
  3005. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3006. # Use a double $ so make ignores it.
  3007. test "$program_suffix" != NONE &&
  3008. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3009. # Double any \ or $.
  3010. # By default was `s,x,x', remove it if useless.
  3011. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3012. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3013. # expand $ac_aux_dir to an absolute path
  3014. am_aux_dir=`cd $ac_aux_dir && pwd`
  3015. if test x"${MISSING+set}" != xset; then
  3016. case $am_aux_dir in
  3017. *\ * | *\ *)
  3018. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3019. *)
  3020. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3021. esac
  3022. fi
  3023. # Use eval to expand $SHELL
  3024. if eval "$MISSING --run true"; then
  3025. am_missing_run="$MISSING --run "
  3026. else
  3027. am_missing_run=
  3028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3029. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3030. fi
  3031. if test x"${install_sh}" != xset; then
  3032. case $am_aux_dir in
  3033. *\ * | *\ *)
  3034. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3035. *)
  3036. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3037. esac
  3038. fi
  3039. # Installed binaries are usually stripped using `strip' when the user
  3040. # run `make install-strip'. However `strip' might not be the right
  3041. # tool to use in cross-compilation environments, therefore Automake
  3042. # will honor the `STRIP' environment variable to overrule this program.
  3043. if test "$cross_compiling" != no; then
  3044. if test -n "$ac_tool_prefix"; then
  3045. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3046. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3048. $as_echo_n "checking for $ac_word... " >&6; }
  3049. if test "${ac_cv_prog_STRIP+set}" = set; then :
  3050. $as_echo_n "(cached) " >&6
  3051. else
  3052. if test -n "$STRIP"; then
  3053. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3054. else
  3055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3056. for as_dir in $PATH
  3057. do
  3058. IFS=$as_save_IFS
  3059. test -z "$as_dir" && as_dir=.
  3060. for ac_exec_ext in '' $ac_executable_extensions; do
  3061. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3062. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3064. break 2
  3065. fi
  3066. done
  3067. done
  3068. IFS=$as_save_IFS
  3069. fi
  3070. fi
  3071. STRIP=$ac_cv_prog_STRIP
  3072. if test -n "$STRIP"; then
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3074. $as_echo "$STRIP" >&6; }
  3075. else
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3077. $as_echo "no" >&6; }
  3078. fi
  3079. fi
  3080. if test -z "$ac_cv_prog_STRIP"; then
  3081. ac_ct_STRIP=$STRIP
  3082. # Extract the first word of "strip", so it can be a program name with args.
  3083. set dummy strip; ac_word=$2
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3085. $as_echo_n "checking for $ac_word... " >&6; }
  3086. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3087. $as_echo_n "(cached) " >&6
  3088. else
  3089. if test -n "$ac_ct_STRIP"; then
  3090. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3091. else
  3092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3093. for as_dir in $PATH
  3094. do
  3095. IFS=$as_save_IFS
  3096. test -z "$as_dir" && as_dir=.
  3097. for ac_exec_ext in '' $ac_executable_extensions; do
  3098. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3099. ac_cv_prog_ac_ct_STRIP="strip"
  3100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3101. break 2
  3102. fi
  3103. done
  3104. done
  3105. IFS=$as_save_IFS
  3106. fi
  3107. fi
  3108. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3109. if test -n "$ac_ct_STRIP"; then
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3111. $as_echo "$ac_ct_STRIP" >&6; }
  3112. else
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3114. $as_echo "no" >&6; }
  3115. fi
  3116. if test "x$ac_ct_STRIP" = x; then
  3117. STRIP=":"
  3118. else
  3119. case $cross_compiling:$ac_tool_warned in
  3120. yes:)
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3122. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3123. ac_tool_warned=yes ;;
  3124. esac
  3125. STRIP=$ac_ct_STRIP
  3126. fi
  3127. else
  3128. STRIP="$ac_cv_prog_STRIP"
  3129. fi
  3130. fi
  3131. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3133. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3134. if test -z "$MKDIR_P"; then
  3135. if test "${ac_cv_path_mkdir+set}" = set; then :
  3136. $as_echo_n "(cached) " >&6
  3137. else
  3138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3139. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3140. do
  3141. IFS=$as_save_IFS
  3142. test -z "$as_dir" && as_dir=.
  3143. for ac_prog in mkdir gmkdir; do
  3144. for ac_exec_ext in '' $ac_executable_extensions; do
  3145. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3146. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3147. 'mkdir (GNU coreutils) '* | \
  3148. 'mkdir (coreutils) '* | \
  3149. 'mkdir (fileutils) '4.1*)
  3150. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3151. break 3;;
  3152. esac
  3153. done
  3154. done
  3155. done
  3156. IFS=$as_save_IFS
  3157. fi
  3158. if test "${ac_cv_path_mkdir+set}" = set; then
  3159. MKDIR_P="$ac_cv_path_mkdir -p"
  3160. else
  3161. # As a last resort, use the slow shell script. Don't cache a
  3162. # value for MKDIR_P within a source directory, because that will
  3163. # break other packages using the cache if that directory is
  3164. # removed, or if the value is a relative name.
  3165. test -d ./--version && rmdir ./--version
  3166. MKDIR_P="$ac_install_sh -d"
  3167. fi
  3168. fi
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3170. $as_echo "$MKDIR_P" >&6; }
  3171. mkdir_p="$MKDIR_P"
  3172. case $mkdir_p in
  3173. [\\/$]* | ?:[\\/]*) ;;
  3174. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3175. esac
  3176. for ac_prog in gawk mawk nawk awk
  3177. do
  3178. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3179. set dummy $ac_prog; ac_word=$2
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3181. $as_echo_n "checking for $ac_word... " >&6; }
  3182. if test "${ac_cv_prog_AWK+set}" = set; then :
  3183. $as_echo_n "(cached) " >&6
  3184. else
  3185. if test -n "$AWK"; then
  3186. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3187. else
  3188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3189. for as_dir in $PATH
  3190. do
  3191. IFS=$as_save_IFS
  3192. test -z "$as_dir" && as_dir=.
  3193. for ac_exec_ext in '' $ac_executable_extensions; do
  3194. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3195. ac_cv_prog_AWK="$ac_prog"
  3196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3197. break 2
  3198. fi
  3199. done
  3200. done
  3201. IFS=$as_save_IFS
  3202. fi
  3203. fi
  3204. AWK=$ac_cv_prog_AWK
  3205. if test -n "$AWK"; then
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3207. $as_echo "$AWK" >&6; }
  3208. else
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3210. $as_echo "no" >&6; }
  3211. fi
  3212. test -n "$AWK" && break
  3213. done
  3214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3215. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3216. set x ${MAKE-make}
  3217. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3218. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3219. $as_echo_n "(cached) " >&6
  3220. else
  3221. cat >conftest.make <<\_ACEOF
  3222. SHELL = /bin/sh
  3223. all:
  3224. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3225. _ACEOF
  3226. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3227. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3228. *@@@%%%=?*=@@@%%%*)
  3229. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3230. *)
  3231. eval ac_cv_prog_make_${ac_make}_set=no;;
  3232. esac
  3233. rm -f conftest.make
  3234. fi
  3235. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3237. $as_echo "yes" >&6; }
  3238. SET_MAKE=
  3239. else
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3241. $as_echo "no" >&6; }
  3242. SET_MAKE="MAKE=${MAKE-make}"
  3243. fi
  3244. rm -rf .tst 2>/dev/null
  3245. mkdir .tst 2>/dev/null
  3246. if test -d .tst; then
  3247. am__leading_dot=.
  3248. else
  3249. am__leading_dot=_
  3250. fi
  3251. rmdir .tst 2>/dev/null
  3252. DEPDIR="${am__leading_dot}deps"
  3253. ac_config_commands="$ac_config_commands depfiles"
  3254. am_make=${MAKE-make}
  3255. cat > confinc << 'END'
  3256. am__doit:
  3257. @echo this is the am__doit target
  3258. .PHONY: am__doit
  3259. END
  3260. # If we don't find an include directive, just comment out the code.
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3262. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3263. am__include="#"
  3264. am__quote=
  3265. _am_result=none
  3266. # First try GNU make style include.
  3267. echo "include confinc" > confmf
  3268. # Ignore all kinds of additional output from `make'.
  3269. case `$am_make -s -f confmf 2> /dev/null` in #(
  3270. *the\ am__doit\ target*)
  3271. am__include=include
  3272. am__quote=
  3273. _am_result=GNU
  3274. ;;
  3275. esac
  3276. # Now try BSD make style include.
  3277. if test "$am__include" = "#"; then
  3278. echo '.include "confinc"' > confmf
  3279. case `$am_make -s -f confmf 2> /dev/null` in #(
  3280. *the\ am__doit\ target*)
  3281. am__include=.include
  3282. am__quote="\""
  3283. _am_result=BSD
  3284. ;;
  3285. esac
  3286. fi
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3288. $as_echo "$_am_result" >&6; }
  3289. rm -f confinc confmf
  3290. # Check whether --enable-dependency-tracking was given.
  3291. if test "${enable_dependency_tracking+set}" = set; then :
  3292. enableval=$enable_dependency_tracking;
  3293. fi
  3294. if test "x$enable_dependency_tracking" != xno; then
  3295. am_depcomp="$ac_aux_dir/depcomp"
  3296. AMDEPBACKSLASH='\'
  3297. fi
  3298. if test "x$enable_dependency_tracking" != xno; then
  3299. AMDEP_TRUE=
  3300. AMDEP_FALSE='#'
  3301. else
  3302. AMDEP_TRUE='#'
  3303. AMDEP_FALSE=
  3304. fi
  3305. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3306. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3307. # is not polluted with repeated "-I."
  3308. am__isrc=' -I$(srcdir)'
  3309. # test to see if srcdir already configured
  3310. if test -f $srcdir/config.status; then
  3311. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3312. fi
  3313. fi
  3314. # test whether we have cygpath
  3315. if test -z "$CYGPATH_W"; then
  3316. if (cygpath --version) >/dev/null 2>/dev/null; then
  3317. CYGPATH_W='cygpath -w'
  3318. else
  3319. CYGPATH_W=echo
  3320. fi
  3321. fi
  3322. # Define the identity of the package.
  3323. PACKAGE='gprof'
  3324. VERSION='2.25.51'
  3325. cat >>confdefs.h <<_ACEOF
  3326. #define PACKAGE "$PACKAGE"
  3327. _ACEOF
  3328. cat >>confdefs.h <<_ACEOF
  3329. #define VERSION "$VERSION"
  3330. _ACEOF
  3331. # Some tools Automake needs.
  3332. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3333. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3334. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3335. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3336. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3337. # We need awk for the "check" target. The system "awk" is bad on
  3338. # some platforms.
  3339. # Always define AMTAR for backward compatibility.
  3340. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3341. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3342. depcc="$CC" am_compiler_list=
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3344. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3345. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3346. $as_echo_n "(cached) " >&6
  3347. else
  3348. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3349. # We make a subdir and do the tests there. Otherwise we can end up
  3350. # making bogus files that we don't know about and never remove. For
  3351. # instance it was reported that on HP-UX the gcc test will end up
  3352. # making a dummy file named `D' -- because `-MD' means `put the output
  3353. # in D'.
  3354. mkdir conftest.dir
  3355. # Copy depcomp to subdir because otherwise we won't find it if we're
  3356. # using a relative directory.
  3357. cp "$am_depcomp" conftest.dir
  3358. cd conftest.dir
  3359. # We will build objects and dependencies in a subdirectory because
  3360. # it helps to detect inapplicable dependency modes. For instance
  3361. # both Tru64's cc and ICC support -MD to output dependencies as a
  3362. # side effect of compilation, but ICC will put the dependencies in
  3363. # the current directory while Tru64 will put them in the object
  3364. # directory.
  3365. mkdir sub
  3366. am_cv_CC_dependencies_compiler_type=none
  3367. if test "$am_compiler_list" = ""; then
  3368. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3369. fi
  3370. am__universal=false
  3371. case " $depcc " in #(
  3372. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3373. esac
  3374. for depmode in $am_compiler_list; do
  3375. # Setup a source with many dependencies, because some compilers
  3376. # like to wrap large dependency lists on column 80 (with \), and
  3377. # we should not choose a depcomp mode which is confused by this.
  3378. #
  3379. # We need to recreate these files for each test, as the compiler may
  3380. # overwrite some of them when testing with obscure command lines.
  3381. # This happens at least with the AIX C compiler.
  3382. : > sub/conftest.c
  3383. for i in 1 2 3 4 5 6; do
  3384. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3385. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3386. # Solaris 8's {/usr,}/bin/sh.
  3387. touch sub/conftst$i.h
  3388. done
  3389. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3390. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3391. # mode. It turns out that the SunPro C++ compiler does not properly
  3392. # handle `-M -o', and we need to detect this. Also, some Intel
  3393. # versions had trouble with output in subdirs
  3394. am__obj=sub/conftest.${OBJEXT-o}
  3395. am__minus_obj="-o $am__obj"
  3396. case $depmode in
  3397. gcc)
  3398. # This depmode causes a compiler race in universal mode.
  3399. test "$am__universal" = false || continue
  3400. ;;
  3401. nosideeffect)
  3402. # after this tag, mechanisms are not by side-effect, so they'll
  3403. # only be used when explicitly requested
  3404. if test "x$enable_dependency_tracking" = xyes; then
  3405. continue
  3406. else
  3407. break
  3408. fi
  3409. ;;
  3410. msvisualcpp | msvcmsys)
  3411. # This compiler won't grok `-c -o', but also, the minuso test has
  3412. # not run yet. These depmodes are late enough in the game, and
  3413. # so weak that their functioning should not be impacted.
  3414. am__obj=conftest.${OBJEXT-o}
  3415. am__minus_obj=
  3416. ;;
  3417. none) break ;;
  3418. esac
  3419. if depmode=$depmode \
  3420. source=sub/conftest.c object=$am__obj \
  3421. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3422. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3423. >/dev/null 2>conftest.err &&
  3424. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3425. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3426. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3427. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3428. # icc doesn't choke on unknown options, it will just issue warnings
  3429. # or remarks (even with -Werror). So we grep stderr for any message
  3430. # that says an option was ignored or not supported.
  3431. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3432. # icc: Command line warning: ignoring option '-M'; no argument required
  3433. # The diagnosis changed in icc 8.0:
  3434. # icc: Command line remark: option '-MP' not supported
  3435. if (grep 'ignoring option' conftest.err ||
  3436. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3437. am_cv_CC_dependencies_compiler_type=$depmode
  3438. break
  3439. fi
  3440. fi
  3441. done
  3442. cd ..
  3443. rm -rf conftest.dir
  3444. else
  3445. am_cv_CC_dependencies_compiler_type=none
  3446. fi
  3447. fi
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3449. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3450. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3451. if
  3452. test "x$enable_dependency_tracking" != xno \
  3453. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3454. am__fastdepCC_TRUE=
  3455. am__fastdepCC_FALSE='#'
  3456. else
  3457. am__fastdepCC_TRUE='#'
  3458. am__fastdepCC_FALSE=
  3459. fi
  3460. ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
  3461. ac_ext=c
  3462. ac_cpp='$CPP $CPPFLAGS'
  3463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3466. if test -n "$ac_tool_prefix"; then
  3467. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3468. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3470. $as_echo_n "checking for $ac_word... " >&6; }
  3471. if test "${ac_cv_prog_CC+set}" = set; then :
  3472. $as_echo_n "(cached) " >&6
  3473. else
  3474. if test -n "$CC"; then
  3475. ac_cv_prog_CC="$CC" # Let the user override the test.
  3476. else
  3477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3478. for as_dir in $PATH
  3479. do
  3480. IFS=$as_save_IFS
  3481. test -z "$as_dir" && as_dir=.
  3482. for ac_exec_ext in '' $ac_executable_extensions; do
  3483. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3484. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3486. break 2
  3487. fi
  3488. done
  3489. done
  3490. IFS=$as_save_IFS
  3491. fi
  3492. fi
  3493. CC=$ac_cv_prog_CC
  3494. if test -n "$CC"; then
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3496. $as_echo "$CC" >&6; }
  3497. else
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3499. $as_echo "no" >&6; }
  3500. fi
  3501. fi
  3502. if test -z "$ac_cv_prog_CC"; then
  3503. ac_ct_CC=$CC
  3504. # Extract the first word of "gcc", so it can be a program name with args.
  3505. set dummy gcc; ac_word=$2
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3507. $as_echo_n "checking for $ac_word... " >&6; }
  3508. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3509. $as_echo_n "(cached) " >&6
  3510. else
  3511. if test -n "$ac_ct_CC"; then
  3512. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3513. else
  3514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3515. for as_dir in $PATH
  3516. do
  3517. IFS=$as_save_IFS
  3518. test -z "$as_dir" && as_dir=.
  3519. for ac_exec_ext in '' $ac_executable_extensions; do
  3520. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3521. ac_cv_prog_ac_ct_CC="gcc"
  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. fi
  3529. fi
  3530. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3531. if test -n "$ac_ct_CC"; then
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3533. $as_echo "$ac_ct_CC" >&6; }
  3534. else
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3536. $as_echo "no" >&6; }
  3537. fi
  3538. if test "x$ac_ct_CC" = x; then
  3539. CC=""
  3540. else
  3541. case $cross_compiling:$ac_tool_warned in
  3542. yes:)
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3545. ac_tool_warned=yes ;;
  3546. esac
  3547. CC=$ac_ct_CC
  3548. fi
  3549. else
  3550. CC="$ac_cv_prog_CC"
  3551. fi
  3552. if test -z "$CC"; then
  3553. if test -n "$ac_tool_prefix"; then
  3554. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3555. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3557. $as_echo_n "checking for $ac_word... " >&6; }
  3558. if test "${ac_cv_prog_CC+set}" = set; then :
  3559. $as_echo_n "(cached) " >&6
  3560. else
  3561. if test -n "$CC"; then
  3562. ac_cv_prog_CC="$CC" # Let the user override the test.
  3563. else
  3564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3565. for as_dir in $PATH
  3566. do
  3567. IFS=$as_save_IFS
  3568. test -z "$as_dir" && as_dir=.
  3569. for ac_exec_ext in '' $ac_executable_extensions; do
  3570. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3571. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3573. break 2
  3574. fi
  3575. done
  3576. done
  3577. IFS=$as_save_IFS
  3578. fi
  3579. fi
  3580. CC=$ac_cv_prog_CC
  3581. if test -n "$CC"; then
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3583. $as_echo "$CC" >&6; }
  3584. else
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3586. $as_echo "no" >&6; }
  3587. fi
  3588. fi
  3589. fi
  3590. if test -z "$CC"; then
  3591. # Extract the first word of "cc", so it can be a program name with args.
  3592. set dummy cc; ac_word=$2
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3594. $as_echo_n "checking for $ac_word... " >&6; }
  3595. if test "${ac_cv_prog_CC+set}" = set; then :
  3596. $as_echo_n "(cached) " >&6
  3597. else
  3598. if test -n "$CC"; then
  3599. ac_cv_prog_CC="$CC" # Let the user override the test.
  3600. else
  3601. ac_prog_rejected=no
  3602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3603. for as_dir in $PATH
  3604. do
  3605. IFS=$as_save_IFS
  3606. test -z "$as_dir" && as_dir=.
  3607. for ac_exec_ext in '' $ac_executable_extensions; do
  3608. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3609. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3610. ac_prog_rejected=yes
  3611. continue
  3612. fi
  3613. ac_cv_prog_CC="cc"
  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. if test $ac_prog_rejected = yes; then
  3621. # We found a bogon in the path, so make sure we never use it.
  3622. set dummy $ac_cv_prog_CC
  3623. shift
  3624. if test $# != 0; then
  3625. # We chose a different compiler from the bogus one.
  3626. # However, it has the same basename, so the bogon will be chosen
  3627. # first if we set CC to just the basename; use the full file name.
  3628. shift
  3629. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3630. fi
  3631. fi
  3632. fi
  3633. fi
  3634. CC=$ac_cv_prog_CC
  3635. if test -n "$CC"; then
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3637. $as_echo "$CC" >&6; }
  3638. else
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3640. $as_echo "no" >&6; }
  3641. fi
  3642. fi
  3643. if test -z "$CC"; then
  3644. if test -n "$ac_tool_prefix"; then
  3645. for ac_prog in cl.exe
  3646. do
  3647. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3648. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3650. $as_echo_n "checking for $ac_word... " >&6; }
  3651. if test "${ac_cv_prog_CC+set}" = set; then :
  3652. $as_echo_n "(cached) " >&6
  3653. else
  3654. if test -n "$CC"; then
  3655. ac_cv_prog_CC="$CC" # Let the user override the test.
  3656. else
  3657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3658. for as_dir in $PATH
  3659. do
  3660. IFS=$as_save_IFS
  3661. test -z "$as_dir" && as_dir=.
  3662. for ac_exec_ext in '' $ac_executable_extensions; do
  3663. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3664. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3666. break 2
  3667. fi
  3668. done
  3669. done
  3670. IFS=$as_save_IFS
  3671. fi
  3672. fi
  3673. CC=$ac_cv_prog_CC
  3674. if test -n "$CC"; then
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3676. $as_echo "$CC" >&6; }
  3677. else
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3679. $as_echo "no" >&6; }
  3680. fi
  3681. test -n "$CC" && break
  3682. done
  3683. fi
  3684. if test -z "$CC"; then
  3685. ac_ct_CC=$CC
  3686. for ac_prog in cl.exe
  3687. do
  3688. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3689. set dummy $ac_prog; ac_word=$2
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3691. $as_echo_n "checking for $ac_word... " >&6; }
  3692. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3693. $as_echo_n "(cached) " >&6
  3694. else
  3695. if test -n "$ac_ct_CC"; then
  3696. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3697. else
  3698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3699. for as_dir in $PATH
  3700. do
  3701. IFS=$as_save_IFS
  3702. test -z "$as_dir" && as_dir=.
  3703. for ac_exec_ext in '' $ac_executable_extensions; do
  3704. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3705. ac_cv_prog_ac_ct_CC="$ac_prog"
  3706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3707. break 2
  3708. fi
  3709. done
  3710. done
  3711. IFS=$as_save_IFS
  3712. fi
  3713. fi
  3714. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3715. if test -n "$ac_ct_CC"; then
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3717. $as_echo "$ac_ct_CC" >&6; }
  3718. else
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3720. $as_echo "no" >&6; }
  3721. fi
  3722. test -n "$ac_ct_CC" && break
  3723. done
  3724. if test "x$ac_ct_CC" = x; then
  3725. CC=""
  3726. else
  3727. case $cross_compiling:$ac_tool_warned in
  3728. yes:)
  3729. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3730. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3731. ac_tool_warned=yes ;;
  3732. esac
  3733. CC=$ac_ct_CC
  3734. fi
  3735. fi
  3736. fi
  3737. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3738. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3739. as_fn_error "no acceptable C compiler found in \$PATH
  3740. See \`config.log' for more details." "$LINENO" 5; }
  3741. # Provide some information about the compiler.
  3742. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3743. set X $ac_compile
  3744. ac_compiler=$2
  3745. for ac_option in --version -v -V -qversion; do
  3746. { { ac_try="$ac_compiler $ac_option >&5"
  3747. case "(($ac_try" in
  3748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3749. *) ac_try_echo=$ac_try;;
  3750. esac
  3751. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3752. $as_echo "$ac_try_echo"; } >&5
  3753. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3754. ac_status=$?
  3755. if test -s conftest.err; then
  3756. sed '10a\
  3757. ... rest of stderr output deleted ...
  3758. 10q' conftest.err >conftest.er1
  3759. cat conftest.er1 >&5
  3760. rm -f conftest.er1 conftest.err
  3761. fi
  3762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3763. test $ac_status = 0; }
  3764. done
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3766. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3767. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3768. $as_echo_n "(cached) " >&6
  3769. else
  3770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3771. /* end confdefs.h. */
  3772. int
  3773. main ()
  3774. {
  3775. #ifndef __GNUC__
  3776. choke me
  3777. #endif
  3778. ;
  3779. return 0;
  3780. }
  3781. _ACEOF
  3782. if ac_fn_c_try_compile "$LINENO"; then :
  3783. ac_compiler_gnu=yes
  3784. else
  3785. ac_compiler_gnu=no
  3786. fi
  3787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3788. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3789. fi
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3791. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3792. if test $ac_compiler_gnu = yes; then
  3793. GCC=yes
  3794. else
  3795. GCC=
  3796. fi
  3797. ac_test_CFLAGS=${CFLAGS+set}
  3798. ac_save_CFLAGS=$CFLAGS
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3800. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3801. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3802. $as_echo_n "(cached) " >&6
  3803. else
  3804. ac_save_c_werror_flag=$ac_c_werror_flag
  3805. ac_c_werror_flag=yes
  3806. ac_cv_prog_cc_g=no
  3807. CFLAGS="-g"
  3808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3809. /* end confdefs.h. */
  3810. int
  3811. main ()
  3812. {
  3813. ;
  3814. return 0;
  3815. }
  3816. _ACEOF
  3817. if ac_fn_c_try_compile "$LINENO"; then :
  3818. ac_cv_prog_cc_g=yes
  3819. else
  3820. CFLAGS=""
  3821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3822. /* end confdefs.h. */
  3823. int
  3824. main ()
  3825. {
  3826. ;
  3827. return 0;
  3828. }
  3829. _ACEOF
  3830. if ac_fn_c_try_compile "$LINENO"; then :
  3831. else
  3832. ac_c_werror_flag=$ac_save_c_werror_flag
  3833. CFLAGS="-g"
  3834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3835. /* end confdefs.h. */
  3836. int
  3837. main ()
  3838. {
  3839. ;
  3840. return 0;
  3841. }
  3842. _ACEOF
  3843. if ac_fn_c_try_compile "$LINENO"; then :
  3844. ac_cv_prog_cc_g=yes
  3845. fi
  3846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3847. fi
  3848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3849. fi
  3850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3851. ac_c_werror_flag=$ac_save_c_werror_flag
  3852. fi
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3854. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3855. if test "$ac_test_CFLAGS" = set; then
  3856. CFLAGS=$ac_save_CFLAGS
  3857. elif test $ac_cv_prog_cc_g = yes; then
  3858. if test "$GCC" = yes; then
  3859. CFLAGS="-g -O2"
  3860. else
  3861. CFLAGS="-g"
  3862. fi
  3863. else
  3864. if test "$GCC" = yes; then
  3865. CFLAGS="-O2"
  3866. else
  3867. CFLAGS=
  3868. fi
  3869. fi
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3871. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3872. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3873. $as_echo_n "(cached) " >&6
  3874. else
  3875. ac_cv_prog_cc_c89=no
  3876. ac_save_CC=$CC
  3877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3878. /* end confdefs.h. */
  3879. #include <stdarg.h>
  3880. #include <stdio.h>
  3881. #include <sys/types.h>
  3882. #include <sys/stat.h>
  3883. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3884. struct buf { int x; };
  3885. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3886. static char *e (p, i)
  3887. char **p;
  3888. int i;
  3889. {
  3890. return p[i];
  3891. }
  3892. static char *f (char * (*g) (char **, int), char **p, ...)
  3893. {
  3894. char *s;
  3895. va_list v;
  3896. va_start (v,p);
  3897. s = g (p, va_arg (v,int));
  3898. va_end (v);
  3899. return s;
  3900. }
  3901. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3902. function prototypes and stuff, but not '\xHH' hex character constants.
  3903. These don't provoke an error unfortunately, instead are silently treated
  3904. as 'x'. The following induces an error, until -std is added to get
  3905. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3906. array size at least. It's necessary to write '\x00'==0 to get something
  3907. that's true only with -std. */
  3908. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3909. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3910. inside strings and character constants. */
  3911. #define FOO(x) 'x'
  3912. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3913. int test (int i, double x);
  3914. struct s1 {int (*f) (int a);};
  3915. struct s2 {int (*f) (double a);};
  3916. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3917. int argc;
  3918. char **argv;
  3919. int
  3920. main ()
  3921. {
  3922. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3923. ;
  3924. return 0;
  3925. }
  3926. _ACEOF
  3927. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3928. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3929. do
  3930. CC="$ac_save_CC $ac_arg"
  3931. if ac_fn_c_try_compile "$LINENO"; then :
  3932. ac_cv_prog_cc_c89=$ac_arg
  3933. fi
  3934. rm -f core conftest.err conftest.$ac_objext
  3935. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3936. done
  3937. rm -f conftest.$ac_ext
  3938. CC=$ac_save_CC
  3939. fi
  3940. # AC_CACHE_VAL
  3941. case "x$ac_cv_prog_cc_c89" in
  3942. x)
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3944. $as_echo "none needed" >&6; } ;;
  3945. xno)
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3947. $as_echo "unsupported" >&6; } ;;
  3948. *)
  3949. CC="$CC $ac_cv_prog_cc_c89"
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3951. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3952. esac
  3953. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3954. fi
  3955. ac_ext=c
  3956. ac_cpp='$CPP $CPPFLAGS'
  3957. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3958. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3959. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3960. ac_ext=c
  3961. ac_cpp='$CPP $CPPFLAGS'
  3962. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3963. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3964. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3966. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3967. # On Suns, sometimes $CPP names a directory.
  3968. if test -n "$CPP" && test -d "$CPP"; then
  3969. CPP=
  3970. fi
  3971. if test -z "$CPP"; then
  3972. if test "${ac_cv_prog_CPP+set}" = set; then :
  3973. $as_echo_n "(cached) " >&6
  3974. else
  3975. # Double quotes because CPP needs to be expanded
  3976. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3977. do
  3978. ac_preproc_ok=false
  3979. for ac_c_preproc_warn_flag in '' yes
  3980. do
  3981. # Use a header file that comes with gcc, so configuring glibc
  3982. # with a fresh cross-compiler works.
  3983. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3984. # <limits.h> exists even on freestanding compilers.
  3985. # On the NeXT, cc -E runs the code through the compiler's parser,
  3986. # not just through cpp. "Syntax error" is here to catch this case.
  3987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3988. /* end confdefs.h. */
  3989. #ifdef __STDC__
  3990. # include <limits.h>
  3991. #else
  3992. # include <assert.h>
  3993. #endif
  3994. Syntax error
  3995. _ACEOF
  3996. if ac_fn_c_try_cpp "$LINENO"; then :
  3997. else
  3998. # Broken: fails on valid input.
  3999. continue
  4000. fi
  4001. rm -f conftest.err conftest.$ac_ext
  4002. # OK, works on sane cases. Now check whether nonexistent headers
  4003. # can be detected and how.
  4004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4005. /* end confdefs.h. */
  4006. #include <ac_nonexistent.h>
  4007. _ACEOF
  4008. if ac_fn_c_try_cpp "$LINENO"; then :
  4009. # Broken: success on invalid input.
  4010. continue
  4011. else
  4012. # Passes both tests.
  4013. ac_preproc_ok=:
  4014. break
  4015. fi
  4016. rm -f conftest.err conftest.$ac_ext
  4017. done
  4018. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4019. rm -f conftest.err conftest.$ac_ext
  4020. if $ac_preproc_ok; then :
  4021. break
  4022. fi
  4023. done
  4024. ac_cv_prog_CPP=$CPP
  4025. fi
  4026. CPP=$ac_cv_prog_CPP
  4027. else
  4028. ac_cv_prog_CPP=$CPP
  4029. fi
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4031. $as_echo "$CPP" >&6; }
  4032. ac_preproc_ok=false
  4033. for ac_c_preproc_warn_flag in '' yes
  4034. do
  4035. # Use a header file that comes with gcc, so configuring glibc
  4036. # with a fresh cross-compiler works.
  4037. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4038. # <limits.h> exists even on freestanding compilers.
  4039. # On the NeXT, cc -E runs the code through the compiler's parser,
  4040. # not just through cpp. "Syntax error" is here to catch this case.
  4041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4042. /* end confdefs.h. */
  4043. #ifdef __STDC__
  4044. # include <limits.h>
  4045. #else
  4046. # include <assert.h>
  4047. #endif
  4048. Syntax error
  4049. _ACEOF
  4050. if ac_fn_c_try_cpp "$LINENO"; then :
  4051. else
  4052. # Broken: fails on valid input.
  4053. continue
  4054. fi
  4055. rm -f conftest.err conftest.$ac_ext
  4056. # OK, works on sane cases. Now check whether nonexistent headers
  4057. # can be detected and how.
  4058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4059. /* end confdefs.h. */
  4060. #include <ac_nonexistent.h>
  4061. _ACEOF
  4062. if ac_fn_c_try_cpp "$LINENO"; then :
  4063. # Broken: success on invalid input.
  4064. continue
  4065. else
  4066. # Passes both tests.
  4067. ac_preproc_ok=:
  4068. break
  4069. fi
  4070. rm -f conftest.err conftest.$ac_ext
  4071. done
  4072. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4073. rm -f conftest.err conftest.$ac_ext
  4074. if $ac_preproc_ok; then :
  4075. else
  4076. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4077. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4078. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4079. See \`config.log' for more details." "$LINENO" 5; }
  4080. fi
  4081. ac_ext=c
  4082. ac_cpp='$CPP $CPPFLAGS'
  4083. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4084. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4085. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4087. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4088. if test "${ac_cv_path_GREP+set}" = set; then :
  4089. $as_echo_n "(cached) " >&6
  4090. else
  4091. if test -z "$GREP"; then
  4092. ac_path_GREP_found=false
  4093. # Loop through the user's path and test for each of PROGNAME-LIST
  4094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4095. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4096. do
  4097. IFS=$as_save_IFS
  4098. test -z "$as_dir" && as_dir=.
  4099. for ac_prog in grep ggrep; do
  4100. for ac_exec_ext in '' $ac_executable_extensions; do
  4101. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4102. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4103. # Check for GNU ac_path_GREP and select it if it is found.
  4104. # Check for GNU $ac_path_GREP
  4105. case `"$ac_path_GREP" --version 2>&1` in
  4106. *GNU*)
  4107. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4108. *)
  4109. ac_count=0
  4110. $as_echo_n 0123456789 >"conftest.in"
  4111. while :
  4112. do
  4113. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4114. mv "conftest.tmp" "conftest.in"
  4115. cp "conftest.in" "conftest.nl"
  4116. $as_echo 'GREP' >> "conftest.nl"
  4117. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4118. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4119. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4120. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4121. # Best one so far, save it but keep looking for a better one
  4122. ac_cv_path_GREP="$ac_path_GREP"
  4123. ac_path_GREP_max=$ac_count
  4124. fi
  4125. # 10*(2^10) chars as input seems more than enough
  4126. test $ac_count -gt 10 && break
  4127. done
  4128. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4129. esac
  4130. $ac_path_GREP_found && break 3
  4131. done
  4132. done
  4133. done
  4134. IFS=$as_save_IFS
  4135. if test -z "$ac_cv_path_GREP"; then
  4136. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4137. fi
  4138. else
  4139. ac_cv_path_GREP=$GREP
  4140. fi
  4141. fi
  4142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4143. $as_echo "$ac_cv_path_GREP" >&6; }
  4144. GREP="$ac_cv_path_GREP"
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4146. $as_echo_n "checking for egrep... " >&6; }
  4147. if test "${ac_cv_path_EGREP+set}" = set; then :
  4148. $as_echo_n "(cached) " >&6
  4149. else
  4150. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4151. then ac_cv_path_EGREP="$GREP -E"
  4152. else
  4153. if test -z "$EGREP"; then
  4154. ac_path_EGREP_found=false
  4155. # Loop through the user's path and test for each of PROGNAME-LIST
  4156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4157. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4158. do
  4159. IFS=$as_save_IFS
  4160. test -z "$as_dir" && as_dir=.
  4161. for ac_prog in egrep; do
  4162. for ac_exec_ext in '' $ac_executable_extensions; do
  4163. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4164. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4165. # Check for GNU ac_path_EGREP and select it if it is found.
  4166. # Check for GNU $ac_path_EGREP
  4167. case `"$ac_path_EGREP" --version 2>&1` in
  4168. *GNU*)
  4169. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4170. *)
  4171. ac_count=0
  4172. $as_echo_n 0123456789 >"conftest.in"
  4173. while :
  4174. do
  4175. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4176. mv "conftest.tmp" "conftest.in"
  4177. cp "conftest.in" "conftest.nl"
  4178. $as_echo 'EGREP' >> "conftest.nl"
  4179. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4180. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4181. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4182. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4183. # Best one so far, save it but keep looking for a better one
  4184. ac_cv_path_EGREP="$ac_path_EGREP"
  4185. ac_path_EGREP_max=$ac_count
  4186. fi
  4187. # 10*(2^10) chars as input seems more than enough
  4188. test $ac_count -gt 10 && break
  4189. done
  4190. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4191. esac
  4192. $ac_path_EGREP_found && break 3
  4193. done
  4194. done
  4195. done
  4196. IFS=$as_save_IFS
  4197. if test -z "$ac_cv_path_EGREP"; then
  4198. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4199. fi
  4200. else
  4201. ac_cv_path_EGREP=$EGREP
  4202. fi
  4203. fi
  4204. fi
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4206. $as_echo "$ac_cv_path_EGREP" >&6; }
  4207. EGREP="$ac_cv_path_EGREP"
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4209. $as_echo_n "checking for ANSI C header files... " >&6; }
  4210. if test "${ac_cv_header_stdc+set}" = set; then :
  4211. $as_echo_n "(cached) " >&6
  4212. else
  4213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4214. /* end confdefs.h. */
  4215. #include <stdlib.h>
  4216. #include <stdarg.h>
  4217. #include <string.h>
  4218. #include <float.h>
  4219. int
  4220. main ()
  4221. {
  4222. ;
  4223. return 0;
  4224. }
  4225. _ACEOF
  4226. if ac_fn_c_try_compile "$LINENO"; then :
  4227. ac_cv_header_stdc=yes
  4228. else
  4229. ac_cv_header_stdc=no
  4230. fi
  4231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4232. if test $ac_cv_header_stdc = yes; then
  4233. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4235. /* end confdefs.h. */
  4236. #include <string.h>
  4237. _ACEOF
  4238. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4239. $EGREP "memchr" >/dev/null 2>&1; then :
  4240. else
  4241. ac_cv_header_stdc=no
  4242. fi
  4243. rm -f conftest*
  4244. fi
  4245. if test $ac_cv_header_stdc = yes; then
  4246. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4248. /* end confdefs.h. */
  4249. #include <stdlib.h>
  4250. _ACEOF
  4251. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4252. $EGREP "free" >/dev/null 2>&1; then :
  4253. else
  4254. ac_cv_header_stdc=no
  4255. fi
  4256. rm -f conftest*
  4257. fi
  4258. if test $ac_cv_header_stdc = yes; then
  4259. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4260. if test "$cross_compiling" = yes; then :
  4261. :
  4262. else
  4263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4264. /* end confdefs.h. */
  4265. #include <ctype.h>
  4266. #include <stdlib.h>
  4267. #if ((' ' & 0x0FF) == 0x020)
  4268. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4269. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4270. #else
  4271. # define ISLOWER(c) \
  4272. (('a' <= (c) && (c) <= 'i') \
  4273. || ('j' <= (c) && (c) <= 'r') \
  4274. || ('s' <= (c) && (c) <= 'z'))
  4275. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4276. #endif
  4277. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4278. int
  4279. main ()
  4280. {
  4281. int i;
  4282. for (i = 0; i < 256; i++)
  4283. if (XOR (islower (i), ISLOWER (i))
  4284. || toupper (i) != TOUPPER (i))
  4285. return 2;
  4286. return 0;
  4287. }
  4288. _ACEOF
  4289. if ac_fn_c_try_run "$LINENO"; then :
  4290. else
  4291. ac_cv_header_stdc=no
  4292. fi
  4293. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4294. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4295. fi
  4296. fi
  4297. fi
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4299. $as_echo "$ac_cv_header_stdc" >&6; }
  4300. if test $ac_cv_header_stdc = yes; then
  4301. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4302. fi
  4303. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4304. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4305. inttypes.h stdint.h unistd.h
  4306. do :
  4307. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4308. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4309. "
  4310. eval as_val=\$$as_ac_Header
  4311. if test "x$as_val" = x""yes; then :
  4312. cat >>confdefs.h <<_ACEOF
  4313. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4314. _ACEOF
  4315. fi
  4316. done
  4317. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4318. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4319. MINIX=yes
  4320. else
  4321. MINIX=
  4322. fi
  4323. if test "$MINIX" = yes; then
  4324. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4325. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4326. $as_echo "#define _MINIX 1" >>confdefs.h
  4327. fi
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4329. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4330. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4331. $as_echo_n "(cached) " >&6
  4332. else
  4333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4334. /* end confdefs.h. */
  4335. # define __EXTENSIONS__ 1
  4336. $ac_includes_default
  4337. int
  4338. main ()
  4339. {
  4340. ;
  4341. return 0;
  4342. }
  4343. _ACEOF
  4344. if ac_fn_c_try_compile "$LINENO"; then :
  4345. ac_cv_safe_to_define___extensions__=yes
  4346. else
  4347. ac_cv_safe_to_define___extensions__=no
  4348. fi
  4349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4350. fi
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4352. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4353. test $ac_cv_safe_to_define___extensions__ = yes &&
  4354. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4355. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4356. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4357. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4358. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4359. case `pwd` in
  4360. *\ * | *\ *)
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4362. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4363. esac
  4364. macro_version='2.2.7a'
  4365. macro_revision='1.3134'
  4366. ltmain="$ac_aux_dir/ltmain.sh"
  4367. # Backslashify metacharacters that are still active within
  4368. # double-quoted strings.
  4369. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4370. # Same as above, but do not quote variable references.
  4371. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4372. # Sed substitution to delay expansion of an escaped shell variable in a
  4373. # double_quote_subst'ed string.
  4374. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4375. # Sed substitution to delay expansion of an escaped single quote.
  4376. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4377. # Sed substitution to avoid accidental globbing in evaled expressions
  4378. no_glob_subst='s/\*/\\\*/g'
  4379. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4380. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4381. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4383. $as_echo_n "checking how to print strings... " >&6; }
  4384. # Test print first, because it will be a builtin if present.
  4385. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4386. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4387. ECHO='print -r --'
  4388. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4389. ECHO='printf %s\n'
  4390. else
  4391. # Use this function as a fallback that always works.
  4392. func_fallback_echo ()
  4393. {
  4394. eval 'cat <<_LTECHO_EOF
  4395. $1
  4396. _LTECHO_EOF'
  4397. }
  4398. ECHO='func_fallback_echo'
  4399. fi
  4400. # func_echo_all arg...
  4401. # Invoke $ECHO with all args, space-separated.
  4402. func_echo_all ()
  4403. {
  4404. $ECHO ""
  4405. }
  4406. case "$ECHO" in
  4407. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4408. $as_echo "printf" >&6; } ;;
  4409. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4410. $as_echo "print -r" >&6; } ;;
  4411. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4412. $as_echo "cat" >&6; } ;;
  4413. esac
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4415. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4416. if test "${ac_cv_path_SED+set}" = set; then :
  4417. $as_echo_n "(cached) " >&6
  4418. else
  4419. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4420. for ac_i in 1 2 3 4 5 6 7; do
  4421. ac_script="$ac_script$as_nl$ac_script"
  4422. done
  4423. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4424. { ac_script=; unset ac_script;}
  4425. if test -z "$SED"; then
  4426. ac_path_SED_found=false
  4427. # Loop through the user's path and test for each of PROGNAME-LIST
  4428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4429. for as_dir in $PATH
  4430. do
  4431. IFS=$as_save_IFS
  4432. test -z "$as_dir" && as_dir=.
  4433. for ac_prog in sed gsed; do
  4434. for ac_exec_ext in '' $ac_executable_extensions; do
  4435. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4436. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4437. # Check for GNU ac_path_SED and select it if it is found.
  4438. # Check for GNU $ac_path_SED
  4439. case `"$ac_path_SED" --version 2>&1` in
  4440. *GNU*)
  4441. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4442. *)
  4443. ac_count=0
  4444. $as_echo_n 0123456789 >"conftest.in"
  4445. while :
  4446. do
  4447. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4448. mv "conftest.tmp" "conftest.in"
  4449. cp "conftest.in" "conftest.nl"
  4450. $as_echo '' >> "conftest.nl"
  4451. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4452. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4453. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4454. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4455. # Best one so far, save it but keep looking for a better one
  4456. ac_cv_path_SED="$ac_path_SED"
  4457. ac_path_SED_max=$ac_count
  4458. fi
  4459. # 10*(2^10) chars as input seems more than enough
  4460. test $ac_count -gt 10 && break
  4461. done
  4462. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4463. esac
  4464. $ac_path_SED_found && break 3
  4465. done
  4466. done
  4467. done
  4468. IFS=$as_save_IFS
  4469. if test -z "$ac_cv_path_SED"; then
  4470. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4471. fi
  4472. else
  4473. ac_cv_path_SED=$SED
  4474. fi
  4475. fi
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4477. $as_echo "$ac_cv_path_SED" >&6; }
  4478. SED="$ac_cv_path_SED"
  4479. rm -f conftest.sed
  4480. test -z "$SED" && SED=sed
  4481. Xsed="$SED -e 1s/^X//"
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4483. $as_echo_n "checking for fgrep... " >&6; }
  4484. if test "${ac_cv_path_FGREP+set}" = set; then :
  4485. $as_echo_n "(cached) " >&6
  4486. else
  4487. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4488. then ac_cv_path_FGREP="$GREP -F"
  4489. else
  4490. if test -z "$FGREP"; then
  4491. ac_path_FGREP_found=false
  4492. # Loop through the user's path and test for each of PROGNAME-LIST
  4493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4494. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4495. do
  4496. IFS=$as_save_IFS
  4497. test -z "$as_dir" && as_dir=.
  4498. for ac_prog in fgrep; do
  4499. for ac_exec_ext in '' $ac_executable_extensions; do
  4500. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4501. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4502. # Check for GNU ac_path_FGREP and select it if it is found.
  4503. # Check for GNU $ac_path_FGREP
  4504. case `"$ac_path_FGREP" --version 2>&1` in
  4505. *GNU*)
  4506. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4507. *)
  4508. ac_count=0
  4509. $as_echo_n 0123456789 >"conftest.in"
  4510. while :
  4511. do
  4512. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4513. mv "conftest.tmp" "conftest.in"
  4514. cp "conftest.in" "conftest.nl"
  4515. $as_echo 'FGREP' >> "conftest.nl"
  4516. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4517. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4518. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4519. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4520. # Best one so far, save it but keep looking for a better one
  4521. ac_cv_path_FGREP="$ac_path_FGREP"
  4522. ac_path_FGREP_max=$ac_count
  4523. fi
  4524. # 10*(2^10) chars as input seems more than enough
  4525. test $ac_count -gt 10 && break
  4526. done
  4527. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4528. esac
  4529. $ac_path_FGREP_found && break 3
  4530. done
  4531. done
  4532. done
  4533. IFS=$as_save_IFS
  4534. if test -z "$ac_cv_path_FGREP"; then
  4535. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4536. fi
  4537. else
  4538. ac_cv_path_FGREP=$FGREP
  4539. fi
  4540. fi
  4541. fi
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4543. $as_echo "$ac_cv_path_FGREP" >&6; }
  4544. FGREP="$ac_cv_path_FGREP"
  4545. test -z "$GREP" && GREP=grep
  4546. # Check whether --with-gnu-ld was given.
  4547. if test "${with_gnu_ld+set}" = set; then :
  4548. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4549. else
  4550. with_gnu_ld=no
  4551. fi
  4552. ac_prog=ld
  4553. if test "$GCC" = yes; then
  4554. # Check if gcc -print-prog-name=ld gives a path.
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4556. $as_echo_n "checking for ld used by $CC... " >&6; }
  4557. case $host in
  4558. *-*-mingw*)
  4559. # gcc leaves a trailing carriage return which upsets mingw
  4560. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4561. *)
  4562. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4563. esac
  4564. case $ac_prog in
  4565. # Accept absolute paths.
  4566. [\\/]* | ?:[\\/]*)
  4567. re_direlt='/[^/][^/]*/\.\./'
  4568. # Canonicalize the pathname of ld
  4569. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4570. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4571. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4572. done
  4573. test -z "$LD" && LD="$ac_prog"
  4574. ;;
  4575. "")
  4576. # If it fails, then pretend we aren't using GCC.
  4577. ac_prog=ld
  4578. ;;
  4579. *)
  4580. # If it is relative, then search for the first ld in PATH.
  4581. with_gnu_ld=unknown
  4582. ;;
  4583. esac
  4584. elif test "$with_gnu_ld" = yes; then
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4586. $as_echo_n "checking for GNU ld... " >&6; }
  4587. else
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4589. $as_echo_n "checking for non-GNU ld... " >&6; }
  4590. fi
  4591. if test "${lt_cv_path_LD+set}" = set; then :
  4592. $as_echo_n "(cached) " >&6
  4593. else
  4594. if test -z "$LD"; then
  4595. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4596. for ac_dir in $PATH; do
  4597. IFS="$lt_save_ifs"
  4598. test -z "$ac_dir" && ac_dir=.
  4599. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4600. lt_cv_path_LD="$ac_dir/$ac_prog"
  4601. # Check to see if the program is GNU ld. I'd rather use --version,
  4602. # but apparently some variants of GNU ld only accept -v.
  4603. # Break only if it was the GNU/non-GNU ld that we prefer.
  4604. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4605. *GNU* | *'with BFD'*)
  4606. test "$with_gnu_ld" != no && break
  4607. ;;
  4608. *)
  4609. test "$with_gnu_ld" != yes && break
  4610. ;;
  4611. esac
  4612. fi
  4613. done
  4614. IFS="$lt_save_ifs"
  4615. else
  4616. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4617. fi
  4618. fi
  4619. LD="$lt_cv_path_LD"
  4620. if test -n "$LD"; then
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4622. $as_echo "$LD" >&6; }
  4623. else
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4625. $as_echo "no" >&6; }
  4626. fi
  4627. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4629. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4630. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4631. $as_echo_n "(cached) " >&6
  4632. else
  4633. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4634. case `$LD -v 2>&1 </dev/null` in
  4635. *GNU* | *'with BFD'*)
  4636. lt_cv_prog_gnu_ld=yes
  4637. ;;
  4638. *)
  4639. lt_cv_prog_gnu_ld=no
  4640. ;;
  4641. esac
  4642. fi
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4644. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4645. with_gnu_ld=$lt_cv_prog_gnu_ld
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4647. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4648. if test "${lt_cv_path_NM+set}" = set; then :
  4649. $as_echo_n "(cached) " >&6
  4650. else
  4651. if test -n "$NM"; then
  4652. # Let the user override the test.
  4653. lt_cv_path_NM="$NM"
  4654. else
  4655. lt_nm_to_check="${ac_tool_prefix}nm"
  4656. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4657. lt_nm_to_check="$lt_nm_to_check nm"
  4658. fi
  4659. for lt_tmp_nm in $lt_nm_to_check; do
  4660. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4661. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4662. IFS="$lt_save_ifs"
  4663. test -z "$ac_dir" && ac_dir=.
  4664. tmp_nm="$ac_dir/$lt_tmp_nm"
  4665. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4666. # Check to see if the nm accepts a BSD-compat flag.
  4667. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4668. # nm: unknown option "B" ignored
  4669. # Tru64's nm complains that /dev/null is an invalid object file
  4670. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4671. */dev/null* | *'Invalid file or object type'*)
  4672. lt_cv_path_NM="$tmp_nm -B"
  4673. break
  4674. ;;
  4675. *)
  4676. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4677. */dev/null*)
  4678. lt_cv_path_NM="$tmp_nm -p"
  4679. break
  4680. ;;
  4681. *)
  4682. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4683. continue # so that we can try to find one that supports BSD flags
  4684. ;;
  4685. esac
  4686. ;;
  4687. esac
  4688. fi
  4689. done
  4690. IFS="$lt_save_ifs"
  4691. done
  4692. : ${lt_cv_path_NM=no}
  4693. fi
  4694. fi
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4696. $as_echo "$lt_cv_path_NM" >&6; }
  4697. if test "$lt_cv_path_NM" != "no"; then
  4698. NM="$lt_cv_path_NM"
  4699. else
  4700. # Didn't find any BSD compatible name lister, look for dumpbin.
  4701. if test -n "$DUMPBIN"; then :
  4702. # Let the user override the test.
  4703. else
  4704. if test -n "$ac_tool_prefix"; then
  4705. for ac_prog in dumpbin "link -dump"
  4706. do
  4707. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4708. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4710. $as_echo_n "checking for $ac_word... " >&6; }
  4711. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4712. $as_echo_n "(cached) " >&6
  4713. else
  4714. if test -n "$DUMPBIN"; then
  4715. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4716. else
  4717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4718. for as_dir in $PATH
  4719. do
  4720. IFS=$as_save_IFS
  4721. test -z "$as_dir" && as_dir=.
  4722. for ac_exec_ext in '' $ac_executable_extensions; do
  4723. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4724. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4726. break 2
  4727. fi
  4728. done
  4729. done
  4730. IFS=$as_save_IFS
  4731. fi
  4732. fi
  4733. DUMPBIN=$ac_cv_prog_DUMPBIN
  4734. if test -n "$DUMPBIN"; then
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4736. $as_echo "$DUMPBIN" >&6; }
  4737. else
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4739. $as_echo "no" >&6; }
  4740. fi
  4741. test -n "$DUMPBIN" && break
  4742. done
  4743. fi
  4744. if test -z "$DUMPBIN"; then
  4745. ac_ct_DUMPBIN=$DUMPBIN
  4746. for ac_prog in dumpbin "link -dump"
  4747. do
  4748. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4749. set dummy $ac_prog; ac_word=$2
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4751. $as_echo_n "checking for $ac_word... " >&6; }
  4752. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4753. $as_echo_n "(cached) " >&6
  4754. else
  4755. if test -n "$ac_ct_DUMPBIN"; then
  4756. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4757. else
  4758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4759. for as_dir in $PATH
  4760. do
  4761. IFS=$as_save_IFS
  4762. test -z "$as_dir" && as_dir=.
  4763. for ac_exec_ext in '' $ac_executable_extensions; do
  4764. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4765. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4767. break 2
  4768. fi
  4769. done
  4770. done
  4771. IFS=$as_save_IFS
  4772. fi
  4773. fi
  4774. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4775. if test -n "$ac_ct_DUMPBIN"; then
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4777. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4778. else
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4780. $as_echo "no" >&6; }
  4781. fi
  4782. test -n "$ac_ct_DUMPBIN" && break
  4783. done
  4784. if test "x$ac_ct_DUMPBIN" = x; then
  4785. DUMPBIN=":"
  4786. else
  4787. case $cross_compiling:$ac_tool_warned in
  4788. yes:)
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4790. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4791. ac_tool_warned=yes ;;
  4792. esac
  4793. DUMPBIN=$ac_ct_DUMPBIN
  4794. fi
  4795. fi
  4796. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4797. *COFF*)
  4798. DUMPBIN="$DUMPBIN -symbols"
  4799. ;;
  4800. *)
  4801. DUMPBIN=:
  4802. ;;
  4803. esac
  4804. fi
  4805. if test "$DUMPBIN" != ":"; then
  4806. NM="$DUMPBIN"
  4807. fi
  4808. fi
  4809. test -z "$NM" && NM=nm
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4811. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4812. if test "${lt_cv_nm_interface+set}" = set; then :
  4813. $as_echo_n "(cached) " >&6
  4814. else
  4815. lt_cv_nm_interface="BSD nm"
  4816. echo "int some_variable = 0;" > conftest.$ac_ext
  4817. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4818. (eval "$ac_compile" 2>conftest.err)
  4819. cat conftest.err >&5
  4820. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4821. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4822. cat conftest.err >&5
  4823. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4824. cat conftest.out >&5
  4825. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4826. lt_cv_nm_interface="MS dumpbin"
  4827. fi
  4828. rm -f conftest*
  4829. fi
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4831. $as_echo "$lt_cv_nm_interface" >&6; }
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4833. $as_echo_n "checking whether ln -s works... " >&6; }
  4834. LN_S=$as_ln_s
  4835. if test "$LN_S" = "ln -s"; then
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4837. $as_echo "yes" >&6; }
  4838. else
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4840. $as_echo "no, using $LN_S" >&6; }
  4841. fi
  4842. # find the maximum length of command line arguments
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4844. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4845. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4846. $as_echo_n "(cached) " >&6
  4847. else
  4848. i=0
  4849. teststring="ABCD"
  4850. case $build_os in
  4851. msdosdjgpp*)
  4852. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4853. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4854. # during glob expansion). Even if it were fixed, the result of this
  4855. # check would be larger than it should be.
  4856. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4857. ;;
  4858. gnu*)
  4859. # Under GNU Hurd, this test is not required because there is
  4860. # no limit to the length of command line arguments.
  4861. # Libtool will interpret -1 as no limit whatsoever
  4862. lt_cv_sys_max_cmd_len=-1;
  4863. ;;
  4864. cygwin* | mingw* | cegcc*)
  4865. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4866. # about 5 minutes as the teststring grows exponentially.
  4867. # Worse, since 9x/ME are not pre-emptively multitasking,
  4868. # you end up with a "frozen" computer, even though with patience
  4869. # the test eventually succeeds (with a max line length of 256k).
  4870. # Instead, let's just punt: use the minimum linelength reported by
  4871. # all of the supported platforms: 8192 (on NT/2K/XP).
  4872. lt_cv_sys_max_cmd_len=8192;
  4873. ;;
  4874. mint*)
  4875. # On MiNT this can take a long time and run out of memory.
  4876. lt_cv_sys_max_cmd_len=8192;
  4877. ;;
  4878. amigaos*)
  4879. # On AmigaOS with pdksh, this test takes hours, literally.
  4880. # So we just punt and use a minimum line length of 8192.
  4881. lt_cv_sys_max_cmd_len=8192;
  4882. ;;
  4883. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4884. # This has been around since 386BSD, at least. Likely further.
  4885. if test -x /sbin/sysctl; then
  4886. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4887. elif test -x /usr/sbin/sysctl; then
  4888. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4889. else
  4890. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4891. fi
  4892. # And add a safety zone
  4893. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4894. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4895. ;;
  4896. interix*)
  4897. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4898. lt_cv_sys_max_cmd_len=196608
  4899. ;;
  4900. osf*)
  4901. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4902. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4903. # nice to cause kernel panics so lets avoid the loop below.
  4904. # First set a reasonable default.
  4905. lt_cv_sys_max_cmd_len=16384
  4906. #
  4907. if test -x /sbin/sysconfig; then
  4908. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4909. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4910. esac
  4911. fi
  4912. ;;
  4913. sco3.2v5*)
  4914. lt_cv_sys_max_cmd_len=102400
  4915. ;;
  4916. sysv5* | sco5v6* | sysv4.2uw2*)
  4917. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4918. if test -n "$kargmax"; then
  4919. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4920. else
  4921. lt_cv_sys_max_cmd_len=32768
  4922. fi
  4923. ;;
  4924. *)
  4925. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4926. if test -n "$lt_cv_sys_max_cmd_len"; then
  4927. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4928. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4929. else
  4930. # Make teststring a little bigger before we do anything with it.
  4931. # a 1K string should be a reasonable start.
  4932. for i in 1 2 3 4 5 6 7 8 ; do
  4933. teststring=$teststring$teststring
  4934. done
  4935. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4936. # If test is not a shell built-in, we'll probably end up computing a
  4937. # maximum length that is only half of the actual maximum length, but
  4938. # we can't tell.
  4939. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4940. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4941. test $i != 17 # 1/2 MB should be enough
  4942. do
  4943. i=`expr $i + 1`
  4944. teststring=$teststring$teststring
  4945. done
  4946. # Only check the string length outside the loop.
  4947. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4948. teststring=
  4949. # Add a significant safety factor because C++ compilers can tack on
  4950. # massive amounts of additional arguments before passing them to the
  4951. # linker. It appears as though 1/2 is a usable value.
  4952. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4953. fi
  4954. ;;
  4955. esac
  4956. fi
  4957. if test -n $lt_cv_sys_max_cmd_len ; then
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4959. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4960. else
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4962. $as_echo "none" >&6; }
  4963. fi
  4964. max_cmd_len=$lt_cv_sys_max_cmd_len
  4965. : ${CP="cp -f"}
  4966. : ${MV="mv -f"}
  4967. : ${RM="rm -f"}
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4969. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4970. # Try some XSI features
  4971. xsi_shell=no
  4972. ( _lt_dummy="a/b/c"
  4973. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4974. = c,a/b,, \
  4975. && eval 'test $(( 1 + 1 )) -eq 2 \
  4976. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4977. && xsi_shell=yes
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4979. $as_echo "$xsi_shell" >&6; }
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4981. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4982. lt_shell_append=no
  4983. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4984. >/dev/null 2>&1 \
  4985. && lt_shell_append=yes
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4987. $as_echo "$lt_shell_append" >&6; }
  4988. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4989. lt_unset=unset
  4990. else
  4991. lt_unset=false
  4992. fi
  4993. # test EBCDIC or ASCII
  4994. case `echo X|tr X '\101'` in
  4995. A) # ASCII based system
  4996. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4997. lt_SP2NL='tr \040 \012'
  4998. lt_NL2SP='tr \015\012 \040\040'
  4999. ;;
  5000. *) # EBCDIC based system
  5001. lt_SP2NL='tr \100 \n'
  5002. lt_NL2SP='tr \r\n \100\100'
  5003. ;;
  5004. esac
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5006. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5007. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5008. $as_echo_n "(cached) " >&6
  5009. else
  5010. lt_cv_ld_reload_flag='-r'
  5011. fi
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5013. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5014. reload_flag=$lt_cv_ld_reload_flag
  5015. case $reload_flag in
  5016. "" | " "*) ;;
  5017. *) reload_flag=" $reload_flag" ;;
  5018. esac
  5019. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5020. case $host_os in
  5021. darwin*)
  5022. if test "$GCC" = yes; then
  5023. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5024. else
  5025. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5026. fi
  5027. ;;
  5028. esac
  5029. if test -n "$ac_tool_prefix"; then
  5030. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5031. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5033. $as_echo_n "checking for $ac_word... " >&6; }
  5034. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5035. $as_echo_n "(cached) " >&6
  5036. else
  5037. if test -n "$OBJDUMP"; then
  5038. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5039. else
  5040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5041. for as_dir in $PATH
  5042. do
  5043. IFS=$as_save_IFS
  5044. test -z "$as_dir" && as_dir=.
  5045. for ac_exec_ext in '' $ac_executable_extensions; do
  5046. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5047. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5048. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5049. break 2
  5050. fi
  5051. done
  5052. done
  5053. IFS=$as_save_IFS
  5054. fi
  5055. fi
  5056. OBJDUMP=$ac_cv_prog_OBJDUMP
  5057. if test -n "$OBJDUMP"; then
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5059. $as_echo "$OBJDUMP" >&6; }
  5060. else
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5062. $as_echo "no" >&6; }
  5063. fi
  5064. fi
  5065. if test -z "$ac_cv_prog_OBJDUMP"; then
  5066. ac_ct_OBJDUMP=$OBJDUMP
  5067. # Extract the first word of "objdump", so it can be a program name with args.
  5068. set dummy objdump; ac_word=$2
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5070. $as_echo_n "checking for $ac_word... " >&6; }
  5071. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5072. $as_echo_n "(cached) " >&6
  5073. else
  5074. if test -n "$ac_ct_OBJDUMP"; then
  5075. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5076. else
  5077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5078. for as_dir in $PATH
  5079. do
  5080. IFS=$as_save_IFS
  5081. test -z "$as_dir" && as_dir=.
  5082. for ac_exec_ext in '' $ac_executable_extensions; do
  5083. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5084. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5086. break 2
  5087. fi
  5088. done
  5089. done
  5090. IFS=$as_save_IFS
  5091. fi
  5092. fi
  5093. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5094. if test -n "$ac_ct_OBJDUMP"; then
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5096. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5097. else
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5099. $as_echo "no" >&6; }
  5100. fi
  5101. if test "x$ac_ct_OBJDUMP" = x; then
  5102. OBJDUMP="false"
  5103. else
  5104. case $cross_compiling:$ac_tool_warned in
  5105. yes:)
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5107. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5108. ac_tool_warned=yes ;;
  5109. esac
  5110. OBJDUMP=$ac_ct_OBJDUMP
  5111. fi
  5112. else
  5113. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5114. fi
  5115. test -z "$OBJDUMP" && OBJDUMP=objdump
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5117. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5118. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5119. $as_echo_n "(cached) " >&6
  5120. else
  5121. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5122. lt_cv_file_magic_test_file=
  5123. lt_cv_deplibs_check_method='unknown'
  5124. # Need to set the preceding variable on all platforms that support
  5125. # interlibrary dependencies.
  5126. # 'none' -- dependencies not supported.
  5127. # `unknown' -- same as none, but documents that we really don't know.
  5128. # 'pass_all' -- all dependencies passed with no checks.
  5129. # 'test_compile' -- check by making test program.
  5130. # 'file_magic [[regex]]' -- check by looking for files in library path
  5131. # which responds to the $file_magic_cmd with a given extended regex.
  5132. # If you have `file' or equivalent on your system and you're not sure
  5133. # whether `pass_all' will *always* work, you probably want this one.
  5134. case $host_os in
  5135. aix[4-9]*)
  5136. lt_cv_deplibs_check_method=pass_all
  5137. ;;
  5138. beos*)
  5139. lt_cv_deplibs_check_method=pass_all
  5140. ;;
  5141. bsdi[45]*)
  5142. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5143. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5144. lt_cv_file_magic_test_file=/shlib/libc.so
  5145. ;;
  5146. cygwin*)
  5147. # func_win32_libid is a shell function defined in ltmain.sh
  5148. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5149. lt_cv_file_magic_cmd='func_win32_libid'
  5150. ;;
  5151. mingw* | pw32*)
  5152. # Base MSYS/MinGW do not provide the 'file' command needed by
  5153. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5154. # unless we find 'file', for example because we are cross-compiling.
  5155. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5156. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5157. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5158. lt_cv_file_magic_cmd='func_win32_libid'
  5159. else
  5160. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5161. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5162. fi
  5163. ;;
  5164. cegcc*)
  5165. # use the weaker test based on 'objdump'. See mingw*.
  5166. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5167. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5168. ;;
  5169. darwin* | rhapsody*)
  5170. lt_cv_deplibs_check_method=pass_all
  5171. ;;
  5172. freebsd* | dragonfly*)
  5173. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5174. case $host_cpu in
  5175. i*86 )
  5176. # Not sure whether the presence of OpenBSD here was a mistake.
  5177. # Let's accept both of them until this is cleared up.
  5178. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5179. lt_cv_file_magic_cmd=/usr/bin/file
  5180. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5181. ;;
  5182. esac
  5183. else
  5184. lt_cv_deplibs_check_method=pass_all
  5185. fi
  5186. ;;
  5187. gnu*)
  5188. lt_cv_deplibs_check_method=pass_all
  5189. ;;
  5190. haiku*)
  5191. lt_cv_deplibs_check_method=pass_all
  5192. ;;
  5193. hpux10.20* | hpux11*)
  5194. lt_cv_file_magic_cmd=/usr/bin/file
  5195. case $host_cpu in
  5196. ia64*)
  5197. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5198. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5199. ;;
  5200. hppa*64*)
  5201. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5202. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5203. ;;
  5204. *)
  5205. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5206. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5207. ;;
  5208. esac
  5209. ;;
  5210. interix[3-9]*)
  5211. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5212. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5213. ;;
  5214. irix5* | irix6* | nonstopux*)
  5215. case $LD in
  5216. *-32|*"-32 ") libmagic=32-bit;;
  5217. *-n32|*"-n32 ") libmagic=N32;;
  5218. *-64|*"-64 ") libmagic=64-bit;;
  5219. *) libmagic=never-match;;
  5220. esac
  5221. lt_cv_deplibs_check_method=pass_all
  5222. ;;
  5223. # This must be Linux ELF.
  5224. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5225. lt_cv_deplibs_check_method=pass_all
  5226. ;;
  5227. netbsd*)
  5228. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5229. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5230. else
  5231. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5232. fi
  5233. ;;
  5234. newos6*)
  5235. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5236. lt_cv_file_magic_cmd=/usr/bin/file
  5237. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5238. ;;
  5239. *nto* | *qnx*)
  5240. lt_cv_deplibs_check_method=pass_all
  5241. ;;
  5242. openbsd*)
  5243. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5244. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5245. else
  5246. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5247. fi
  5248. ;;
  5249. osf3* | osf4* | osf5*)
  5250. lt_cv_deplibs_check_method=pass_all
  5251. ;;
  5252. rdos*)
  5253. lt_cv_deplibs_check_method=pass_all
  5254. ;;
  5255. solaris*)
  5256. lt_cv_deplibs_check_method=pass_all
  5257. ;;
  5258. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5259. lt_cv_deplibs_check_method=pass_all
  5260. ;;
  5261. sysv4 | sysv4.3*)
  5262. case $host_vendor in
  5263. motorola)
  5264. 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]'
  5265. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5266. ;;
  5267. ncr)
  5268. lt_cv_deplibs_check_method=pass_all
  5269. ;;
  5270. sequent)
  5271. lt_cv_file_magic_cmd='/bin/file'
  5272. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5273. ;;
  5274. sni)
  5275. lt_cv_file_magic_cmd='/bin/file'
  5276. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5277. lt_cv_file_magic_test_file=/lib/libc.so
  5278. ;;
  5279. siemens)
  5280. lt_cv_deplibs_check_method=pass_all
  5281. ;;
  5282. pc)
  5283. lt_cv_deplibs_check_method=pass_all
  5284. ;;
  5285. esac
  5286. ;;
  5287. tpf*)
  5288. lt_cv_deplibs_check_method=pass_all
  5289. ;;
  5290. esac
  5291. fi
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5293. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5294. file_magic_cmd=$lt_cv_file_magic_cmd
  5295. deplibs_check_method=$lt_cv_deplibs_check_method
  5296. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5297. if test -n "$ac_tool_prefix"; then
  5298. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5299. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5301. $as_echo_n "checking for $ac_word... " >&6; }
  5302. if test "${ac_cv_prog_AR+set}" = set; then :
  5303. $as_echo_n "(cached) " >&6
  5304. else
  5305. if test -n "$AR"; then
  5306. ac_cv_prog_AR="$AR" # Let the user override the test.
  5307. else
  5308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5309. for as_dir in $PATH
  5310. do
  5311. IFS=$as_save_IFS
  5312. test -z "$as_dir" && as_dir=.
  5313. for ac_exec_ext in '' $ac_executable_extensions; do
  5314. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5315. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5317. break 2
  5318. fi
  5319. done
  5320. done
  5321. IFS=$as_save_IFS
  5322. fi
  5323. fi
  5324. AR=$ac_cv_prog_AR
  5325. if test -n "$AR"; then
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5327. $as_echo "$AR" >&6; }
  5328. else
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5330. $as_echo "no" >&6; }
  5331. fi
  5332. fi
  5333. if test -z "$ac_cv_prog_AR"; then
  5334. ac_ct_AR=$AR
  5335. # Extract the first word of "ar", so it can be a program name with args.
  5336. set dummy ar; ac_word=$2
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5338. $as_echo_n "checking for $ac_word... " >&6; }
  5339. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5340. $as_echo_n "(cached) " >&6
  5341. else
  5342. if test -n "$ac_ct_AR"; then
  5343. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5344. else
  5345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5346. for as_dir in $PATH
  5347. do
  5348. IFS=$as_save_IFS
  5349. test -z "$as_dir" && as_dir=.
  5350. for ac_exec_ext in '' $ac_executable_extensions; do
  5351. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5352. ac_cv_prog_ac_ct_AR="ar"
  5353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5354. break 2
  5355. fi
  5356. done
  5357. done
  5358. IFS=$as_save_IFS
  5359. fi
  5360. fi
  5361. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5362. if test -n "$ac_ct_AR"; then
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5364. $as_echo "$ac_ct_AR" >&6; }
  5365. else
  5366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5367. $as_echo "no" >&6; }
  5368. fi
  5369. if test "x$ac_ct_AR" = x; then
  5370. AR="false"
  5371. else
  5372. case $cross_compiling:$ac_tool_warned in
  5373. yes:)
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5375. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5376. ac_tool_warned=yes ;;
  5377. esac
  5378. AR=$ac_ct_AR
  5379. fi
  5380. else
  5381. AR="$ac_cv_prog_AR"
  5382. fi
  5383. test -z "$AR" && AR=ar
  5384. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5385. if test -n "$ac_tool_prefix"; then
  5386. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5387. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5389. $as_echo_n "checking for $ac_word... " >&6; }
  5390. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5391. $as_echo_n "(cached) " >&6
  5392. else
  5393. if test -n "$STRIP"; then
  5394. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5395. else
  5396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5397. for as_dir in $PATH
  5398. do
  5399. IFS=$as_save_IFS
  5400. test -z "$as_dir" && as_dir=.
  5401. for ac_exec_ext in '' $ac_executable_extensions; do
  5402. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5403. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5405. break 2
  5406. fi
  5407. done
  5408. done
  5409. IFS=$as_save_IFS
  5410. fi
  5411. fi
  5412. STRIP=$ac_cv_prog_STRIP
  5413. if test -n "$STRIP"; then
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5415. $as_echo "$STRIP" >&6; }
  5416. else
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5418. $as_echo "no" >&6; }
  5419. fi
  5420. fi
  5421. if test -z "$ac_cv_prog_STRIP"; then
  5422. ac_ct_STRIP=$STRIP
  5423. # Extract the first word of "strip", so it can be a program name with args.
  5424. set dummy strip; ac_word=$2
  5425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5426. $as_echo_n "checking for $ac_word... " >&6; }
  5427. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5428. $as_echo_n "(cached) " >&6
  5429. else
  5430. if test -n "$ac_ct_STRIP"; then
  5431. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5432. else
  5433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5434. for as_dir in $PATH
  5435. do
  5436. IFS=$as_save_IFS
  5437. test -z "$as_dir" && as_dir=.
  5438. for ac_exec_ext in '' $ac_executable_extensions; do
  5439. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5440. ac_cv_prog_ac_ct_STRIP="strip"
  5441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5442. break 2
  5443. fi
  5444. done
  5445. done
  5446. IFS=$as_save_IFS
  5447. fi
  5448. fi
  5449. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5450. if test -n "$ac_ct_STRIP"; then
  5451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5452. $as_echo "$ac_ct_STRIP" >&6; }
  5453. else
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5455. $as_echo "no" >&6; }
  5456. fi
  5457. if test "x$ac_ct_STRIP" = x; then
  5458. STRIP=":"
  5459. else
  5460. case $cross_compiling:$ac_tool_warned in
  5461. yes:)
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5463. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5464. ac_tool_warned=yes ;;
  5465. esac
  5466. STRIP=$ac_ct_STRIP
  5467. fi
  5468. else
  5469. STRIP="$ac_cv_prog_STRIP"
  5470. fi
  5471. test -z "$STRIP" && STRIP=:
  5472. if test -n "$ac_tool_prefix"; then
  5473. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5474. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5476. $as_echo_n "checking for $ac_word... " >&6; }
  5477. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5478. $as_echo_n "(cached) " >&6
  5479. else
  5480. if test -n "$RANLIB"; then
  5481. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5482. else
  5483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5484. for as_dir in $PATH
  5485. do
  5486. IFS=$as_save_IFS
  5487. test -z "$as_dir" && as_dir=.
  5488. for ac_exec_ext in '' $ac_executable_extensions; do
  5489. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5490. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5492. break 2
  5493. fi
  5494. done
  5495. done
  5496. IFS=$as_save_IFS
  5497. fi
  5498. fi
  5499. RANLIB=$ac_cv_prog_RANLIB
  5500. if test -n "$RANLIB"; then
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5502. $as_echo "$RANLIB" >&6; }
  5503. else
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5505. $as_echo "no" >&6; }
  5506. fi
  5507. fi
  5508. if test -z "$ac_cv_prog_RANLIB"; then
  5509. ac_ct_RANLIB=$RANLIB
  5510. # Extract the first word of "ranlib", so it can be a program name with args.
  5511. set dummy ranlib; ac_word=$2
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5513. $as_echo_n "checking for $ac_word... " >&6; }
  5514. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5515. $as_echo_n "(cached) " >&6
  5516. else
  5517. if test -n "$ac_ct_RANLIB"; then
  5518. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5519. else
  5520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5521. for as_dir in $PATH
  5522. do
  5523. IFS=$as_save_IFS
  5524. test -z "$as_dir" && as_dir=.
  5525. for ac_exec_ext in '' $ac_executable_extensions; do
  5526. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5527. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5529. break 2
  5530. fi
  5531. done
  5532. done
  5533. IFS=$as_save_IFS
  5534. fi
  5535. fi
  5536. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5537. if test -n "$ac_ct_RANLIB"; then
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5539. $as_echo "$ac_ct_RANLIB" >&6; }
  5540. else
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5542. $as_echo "no" >&6; }
  5543. fi
  5544. if test "x$ac_ct_RANLIB" = x; then
  5545. RANLIB=":"
  5546. else
  5547. case $cross_compiling:$ac_tool_warned in
  5548. yes:)
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5550. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5551. ac_tool_warned=yes ;;
  5552. esac
  5553. RANLIB=$ac_ct_RANLIB
  5554. fi
  5555. else
  5556. RANLIB="$ac_cv_prog_RANLIB"
  5557. fi
  5558. test -z "$RANLIB" && RANLIB=:
  5559. # Determine commands to create old-style static archives.
  5560. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5561. old_postinstall_cmds='chmod 644 $oldlib'
  5562. old_postuninstall_cmds=
  5563. if test -n "$RANLIB"; then
  5564. case $host_os in
  5565. openbsd*)
  5566. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5567. ;;
  5568. *)
  5569. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5570. ;;
  5571. esac
  5572. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5573. fi
  5574. case $host_os in
  5575. darwin*)
  5576. lock_old_archive_extraction=yes ;;
  5577. *)
  5578. lock_old_archive_extraction=no ;;
  5579. esac
  5580. # If no C compiler was specified, use CC.
  5581. LTCC=${LTCC-"$CC"}
  5582. # If no C compiler flags were specified, use CFLAGS.
  5583. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5584. # Allow CC to be a program name with arguments.
  5585. compiler=$CC
  5586. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5588. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5589. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5590. $as_echo_n "(cached) " >&6
  5591. else
  5592. # These are sane defaults that work on at least a few old systems.
  5593. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5594. # Character class describing NM global symbol codes.
  5595. symcode='[BCDEGRST]'
  5596. # Regexp to match symbols that can be accessed directly from C.
  5597. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5598. # Define system-specific variables.
  5599. case $host_os in
  5600. aix*)
  5601. symcode='[BCDT]'
  5602. ;;
  5603. cygwin* | mingw* | pw32* | cegcc*)
  5604. symcode='[ABCDGISTW]'
  5605. ;;
  5606. hpux*)
  5607. if test "$host_cpu" = ia64; then
  5608. symcode='[ABCDEGRST]'
  5609. fi
  5610. ;;
  5611. irix* | nonstopux*)
  5612. symcode='[BCDEGRST]'
  5613. ;;
  5614. osf*)
  5615. symcode='[BCDEGQRST]'
  5616. ;;
  5617. solaris*)
  5618. symcode='[BDRT]'
  5619. ;;
  5620. sco3.2v5*)
  5621. symcode='[DT]'
  5622. ;;
  5623. sysv4.2uw2*)
  5624. symcode='[DT]'
  5625. ;;
  5626. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5627. symcode='[ABDT]'
  5628. ;;
  5629. sysv4)
  5630. symcode='[DFNSTU]'
  5631. ;;
  5632. esac
  5633. # If we're using GNU nm, then use its standard symbol codes.
  5634. case `$NM -V 2>&1` in
  5635. *GNU* | *'with BFD'*)
  5636. symcode='[ABCDGIRSTW]' ;;
  5637. esac
  5638. # Transform an extracted symbol line into a proper C declaration.
  5639. # Some systems (esp. on ia64) link data and code symbols differently,
  5640. # so use this general approach.
  5641. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5642. # Transform an extracted symbol line into symbol name and symbol address
  5643. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5644. 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'"
  5645. # Handle CRLF in mingw tool chain
  5646. opt_cr=
  5647. case $build_os in
  5648. mingw*)
  5649. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5650. ;;
  5651. esac
  5652. # Try without a prefix underscore, then with it.
  5653. for ac_symprfx in "" "_"; do
  5654. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5655. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5656. # Write the raw and C identifiers.
  5657. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5658. # Fake it for dumpbin and say T for any non-static function
  5659. # and D for any global variable.
  5660. # Also find C++ and __fastcall symbols from MSVC++,
  5661. # which start with @ or ?.
  5662. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5663. " {last_section=section; section=\$ 3};"\
  5664. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5665. " \$ 0!~/External *\|/{next};"\
  5666. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5667. " {if(hide[section]) next};"\
  5668. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5669. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5670. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5671. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5672. " ' prfx=^$ac_symprfx"
  5673. else
  5674. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5675. fi
  5676. # Check to see that the pipe works correctly.
  5677. pipe_works=no
  5678. rm -f conftest*
  5679. cat > conftest.$ac_ext <<_LT_EOF
  5680. #ifdef __cplusplus
  5681. extern "C" {
  5682. #endif
  5683. char nm_test_var;
  5684. void nm_test_func(void);
  5685. void nm_test_func(void){}
  5686. #ifdef __cplusplus
  5687. }
  5688. #endif
  5689. int main(){nm_test_var='a';nm_test_func();return(0);}
  5690. _LT_EOF
  5691. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5692. (eval $ac_compile) 2>&5
  5693. ac_status=$?
  5694. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5695. test $ac_status = 0; }; then
  5696. # Now try to grab the symbols.
  5697. nlist=conftest.nm
  5698. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5699. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5700. ac_status=$?
  5701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5702. test $ac_status = 0; } && test -s "$nlist"; then
  5703. # Try sorting and uniquifying the output.
  5704. if sort "$nlist" | uniq > "$nlist"T; then
  5705. mv -f "$nlist"T "$nlist"
  5706. else
  5707. rm -f "$nlist"T
  5708. fi
  5709. # Make sure that we snagged all the symbols we need.
  5710. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5711. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5712. cat <<_LT_EOF > conftest.$ac_ext
  5713. #ifdef __cplusplus
  5714. extern "C" {
  5715. #endif
  5716. _LT_EOF
  5717. # Now generate the symbol file.
  5718. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5719. cat <<_LT_EOF >> conftest.$ac_ext
  5720. /* The mapping between symbol names and symbols. */
  5721. const struct {
  5722. const char *name;
  5723. void *address;
  5724. }
  5725. lt__PROGRAM__LTX_preloaded_symbols[] =
  5726. {
  5727. { "@PROGRAM@", (void *) 0 },
  5728. _LT_EOF
  5729. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5730. cat <<\_LT_EOF >> conftest.$ac_ext
  5731. {0, (void *) 0}
  5732. };
  5733. /* This works around a problem in FreeBSD linker */
  5734. #ifdef FREEBSD_WORKAROUND
  5735. static const void *lt_preloaded_setup() {
  5736. return lt__PROGRAM__LTX_preloaded_symbols;
  5737. }
  5738. #endif
  5739. #ifdef __cplusplus
  5740. }
  5741. #endif
  5742. _LT_EOF
  5743. # Now try linking the two files.
  5744. mv conftest.$ac_objext conftstm.$ac_objext
  5745. lt_save_LIBS="$LIBS"
  5746. lt_save_CFLAGS="$CFLAGS"
  5747. LIBS="conftstm.$ac_objext"
  5748. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5749. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5750. (eval $ac_link) 2>&5
  5751. ac_status=$?
  5752. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5753. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5754. pipe_works=yes
  5755. fi
  5756. LIBS="$lt_save_LIBS"
  5757. CFLAGS="$lt_save_CFLAGS"
  5758. else
  5759. echo "cannot find nm_test_func in $nlist" >&5
  5760. fi
  5761. else
  5762. echo "cannot find nm_test_var in $nlist" >&5
  5763. fi
  5764. else
  5765. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5766. fi
  5767. else
  5768. echo "$progname: failed program was:" >&5
  5769. cat conftest.$ac_ext >&5
  5770. fi
  5771. rm -rf conftest* conftst*
  5772. # Do not use the global_symbol_pipe unless it works.
  5773. if test "$pipe_works" = yes; then
  5774. break
  5775. else
  5776. lt_cv_sys_global_symbol_pipe=
  5777. fi
  5778. done
  5779. fi
  5780. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5781. lt_cv_sys_global_symbol_to_cdecl=
  5782. fi
  5783. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5785. $as_echo "failed" >&6; }
  5786. else
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5788. $as_echo "ok" >&6; }
  5789. fi
  5790. # Check whether --enable-libtool-lock was given.
  5791. if test "${enable_libtool_lock+set}" = set; then :
  5792. enableval=$enable_libtool_lock;
  5793. fi
  5794. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5795. # Some flags need to be propagated to the compiler or linker for good
  5796. # libtool support.
  5797. case $host in
  5798. ia64-*-hpux*)
  5799. # Find out which ABI we are using.
  5800. echo 'int i;' > conftest.$ac_ext
  5801. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5802. (eval $ac_compile) 2>&5
  5803. ac_status=$?
  5804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5805. test $ac_status = 0; }; then
  5806. case `/usr/bin/file conftest.$ac_objext` in
  5807. *ELF-32*)
  5808. HPUX_IA64_MODE="32"
  5809. ;;
  5810. *ELF-64*)
  5811. HPUX_IA64_MODE="64"
  5812. ;;
  5813. esac
  5814. fi
  5815. rm -rf conftest*
  5816. ;;
  5817. *-*-irix6*)
  5818. # Find out which ABI we are using.
  5819. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5820. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5821. (eval $ac_compile) 2>&5
  5822. ac_status=$?
  5823. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5824. test $ac_status = 0; }; then
  5825. if test "$lt_cv_prog_gnu_ld" = yes; then
  5826. case `/usr/bin/file conftest.$ac_objext` in
  5827. *32-bit*)
  5828. LD="${LD-ld} -melf32bsmip"
  5829. ;;
  5830. *N32*)
  5831. LD="${LD-ld} -melf32bmipn32"
  5832. ;;
  5833. *64-bit*)
  5834. LD="${LD-ld} -melf64bmip"
  5835. ;;
  5836. esac
  5837. else
  5838. case `/usr/bin/file conftest.$ac_objext` in
  5839. *32-bit*)
  5840. LD="${LD-ld} -32"
  5841. ;;
  5842. *N32*)
  5843. LD="${LD-ld} -n32"
  5844. ;;
  5845. *64-bit*)
  5846. LD="${LD-ld} -64"
  5847. ;;
  5848. esac
  5849. fi
  5850. fi
  5851. rm -rf conftest*
  5852. ;;
  5853. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5854. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5855. # Find out which ABI we are using.
  5856. echo 'int i;' > conftest.$ac_ext
  5857. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5858. (eval $ac_compile) 2>&5
  5859. ac_status=$?
  5860. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5861. test $ac_status = 0; }; then
  5862. case `/usr/bin/file conftest.o` in
  5863. *32-bit*)
  5864. case $host in
  5865. x86_64-*kfreebsd*-gnu)
  5866. LD="${LD-ld} -m elf_i386_fbsd"
  5867. ;;
  5868. x86_64-*linux*)
  5869. case `/usr/bin/file conftest.o` in
  5870. *x86-64*)
  5871. LD="${LD-ld} -m elf32_x86_64"
  5872. ;;
  5873. *)
  5874. LD="${LD-ld} -m elf_i386"
  5875. ;;
  5876. esac
  5877. ;;
  5878. powerpc64le-*linux*)
  5879. LD="${LD-ld} -m elf32lppclinux"
  5880. ;;
  5881. powerpc64-*linux*)
  5882. LD="${LD-ld} -m elf32ppclinux"
  5883. ;;
  5884. s390x-*linux*)
  5885. LD="${LD-ld} -m elf_s390"
  5886. ;;
  5887. sparc64-*linux*)
  5888. LD="${LD-ld} -m elf32_sparc"
  5889. ;;
  5890. esac
  5891. ;;
  5892. *64-bit*)
  5893. case $host in
  5894. x86_64-*kfreebsd*-gnu)
  5895. LD="${LD-ld} -m elf_x86_64_fbsd"
  5896. ;;
  5897. x86_64-*linux*)
  5898. LD="${LD-ld} -m elf_x86_64"
  5899. ;;
  5900. powerpcle-*linux*)
  5901. LD="${LD-ld} -m elf64lppc"
  5902. ;;
  5903. powerpc-*linux*)
  5904. LD="${LD-ld} -m elf64ppc"
  5905. ;;
  5906. s390*-*linux*|s390*-*tpf*)
  5907. LD="${LD-ld} -m elf64_s390"
  5908. ;;
  5909. sparc*-*linux*)
  5910. LD="${LD-ld} -m elf64_sparc"
  5911. ;;
  5912. esac
  5913. ;;
  5914. esac
  5915. fi
  5916. rm -rf conftest*
  5917. ;;
  5918. *-*-sco3.2v5*)
  5919. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5920. SAVE_CFLAGS="$CFLAGS"
  5921. CFLAGS="$CFLAGS -belf"
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5923. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5924. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5925. $as_echo_n "(cached) " >&6
  5926. else
  5927. ac_ext=c
  5928. ac_cpp='$CPP $CPPFLAGS'
  5929. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5930. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5931. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5933. /* end confdefs.h. */
  5934. int
  5935. main ()
  5936. {
  5937. ;
  5938. return 0;
  5939. }
  5940. _ACEOF
  5941. if ac_fn_c_try_link "$LINENO"; then :
  5942. lt_cv_cc_needs_belf=yes
  5943. else
  5944. lt_cv_cc_needs_belf=no
  5945. fi
  5946. rm -f core conftest.err conftest.$ac_objext \
  5947. conftest$ac_exeext conftest.$ac_ext
  5948. ac_ext=c
  5949. ac_cpp='$CPP $CPPFLAGS'
  5950. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5951. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5952. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5953. fi
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5955. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5956. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5957. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5958. CFLAGS="$SAVE_CFLAGS"
  5959. fi
  5960. ;;
  5961. sparc*-*solaris*)
  5962. # Find out which ABI we are using.
  5963. echo 'int i;' > conftest.$ac_ext
  5964. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5965. (eval $ac_compile) 2>&5
  5966. ac_status=$?
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5968. test $ac_status = 0; }; then
  5969. case `/usr/bin/file conftest.o` in
  5970. *64-bit*)
  5971. case $lt_cv_prog_gnu_ld in
  5972. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5973. *)
  5974. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5975. LD="${LD-ld} -64"
  5976. fi
  5977. ;;
  5978. esac
  5979. ;;
  5980. esac
  5981. fi
  5982. rm -rf conftest*
  5983. ;;
  5984. esac
  5985. need_locks="$enable_libtool_lock"
  5986. case $host_os in
  5987. rhapsody* | darwin*)
  5988. if test -n "$ac_tool_prefix"; then
  5989. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5990. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5992. $as_echo_n "checking for $ac_word... " >&6; }
  5993. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5994. $as_echo_n "(cached) " >&6
  5995. else
  5996. if test -n "$DSYMUTIL"; then
  5997. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5998. else
  5999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6000. for as_dir in $PATH
  6001. do
  6002. IFS=$as_save_IFS
  6003. test -z "$as_dir" && as_dir=.
  6004. for ac_exec_ext in '' $ac_executable_extensions; do
  6005. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6006. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6008. break 2
  6009. fi
  6010. done
  6011. done
  6012. IFS=$as_save_IFS
  6013. fi
  6014. fi
  6015. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6016. if test -n "$DSYMUTIL"; then
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6018. $as_echo "$DSYMUTIL" >&6; }
  6019. else
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6021. $as_echo "no" >&6; }
  6022. fi
  6023. fi
  6024. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6025. ac_ct_DSYMUTIL=$DSYMUTIL
  6026. # Extract the first word of "dsymutil", so it can be a program name with args.
  6027. set dummy dsymutil; ac_word=$2
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6029. $as_echo_n "checking for $ac_word... " >&6; }
  6030. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6031. $as_echo_n "(cached) " >&6
  6032. else
  6033. if test -n "$ac_ct_DSYMUTIL"; then
  6034. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6035. else
  6036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6037. for as_dir in $PATH
  6038. do
  6039. IFS=$as_save_IFS
  6040. test -z "$as_dir" && as_dir=.
  6041. for ac_exec_ext in '' $ac_executable_extensions; do
  6042. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6043. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6045. break 2
  6046. fi
  6047. done
  6048. done
  6049. IFS=$as_save_IFS
  6050. fi
  6051. fi
  6052. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6053. if test -n "$ac_ct_DSYMUTIL"; then
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6055. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6056. else
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6058. $as_echo "no" >&6; }
  6059. fi
  6060. if test "x$ac_ct_DSYMUTIL" = x; then
  6061. DSYMUTIL=":"
  6062. else
  6063. case $cross_compiling:$ac_tool_warned in
  6064. yes:)
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6066. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6067. ac_tool_warned=yes ;;
  6068. esac
  6069. DSYMUTIL=$ac_ct_DSYMUTIL
  6070. fi
  6071. else
  6072. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6073. fi
  6074. if test -n "$ac_tool_prefix"; then
  6075. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6076. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6078. $as_echo_n "checking for $ac_word... " >&6; }
  6079. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6080. $as_echo_n "(cached) " >&6
  6081. else
  6082. if test -n "$NMEDIT"; then
  6083. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6084. else
  6085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6086. for as_dir in $PATH
  6087. do
  6088. IFS=$as_save_IFS
  6089. test -z "$as_dir" && as_dir=.
  6090. for ac_exec_ext in '' $ac_executable_extensions; do
  6091. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6092. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6094. break 2
  6095. fi
  6096. done
  6097. done
  6098. IFS=$as_save_IFS
  6099. fi
  6100. fi
  6101. NMEDIT=$ac_cv_prog_NMEDIT
  6102. if test -n "$NMEDIT"; then
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6104. $as_echo "$NMEDIT" >&6; }
  6105. else
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6107. $as_echo "no" >&6; }
  6108. fi
  6109. fi
  6110. if test -z "$ac_cv_prog_NMEDIT"; then
  6111. ac_ct_NMEDIT=$NMEDIT
  6112. # Extract the first word of "nmedit", so it can be a program name with args.
  6113. set dummy nmedit; ac_word=$2
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6115. $as_echo_n "checking for $ac_word... " >&6; }
  6116. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6117. $as_echo_n "(cached) " >&6
  6118. else
  6119. if test -n "$ac_ct_NMEDIT"; then
  6120. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6121. else
  6122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6123. for as_dir in $PATH
  6124. do
  6125. IFS=$as_save_IFS
  6126. test -z "$as_dir" && as_dir=.
  6127. for ac_exec_ext in '' $ac_executable_extensions; do
  6128. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6129. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6131. break 2
  6132. fi
  6133. done
  6134. done
  6135. IFS=$as_save_IFS
  6136. fi
  6137. fi
  6138. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6139. if test -n "$ac_ct_NMEDIT"; then
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6141. $as_echo "$ac_ct_NMEDIT" >&6; }
  6142. else
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6144. $as_echo "no" >&6; }
  6145. fi
  6146. if test "x$ac_ct_NMEDIT" = x; then
  6147. NMEDIT=":"
  6148. else
  6149. case $cross_compiling:$ac_tool_warned in
  6150. yes:)
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6152. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6153. ac_tool_warned=yes ;;
  6154. esac
  6155. NMEDIT=$ac_ct_NMEDIT
  6156. fi
  6157. else
  6158. NMEDIT="$ac_cv_prog_NMEDIT"
  6159. fi
  6160. if test -n "$ac_tool_prefix"; then
  6161. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6162. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6164. $as_echo_n "checking for $ac_word... " >&6; }
  6165. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6166. $as_echo_n "(cached) " >&6
  6167. else
  6168. if test -n "$LIPO"; then
  6169. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6170. else
  6171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6172. for as_dir in $PATH
  6173. do
  6174. IFS=$as_save_IFS
  6175. test -z "$as_dir" && as_dir=.
  6176. for ac_exec_ext in '' $ac_executable_extensions; do
  6177. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6178. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6180. break 2
  6181. fi
  6182. done
  6183. done
  6184. IFS=$as_save_IFS
  6185. fi
  6186. fi
  6187. LIPO=$ac_cv_prog_LIPO
  6188. if test -n "$LIPO"; then
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6190. $as_echo "$LIPO" >&6; }
  6191. else
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6193. $as_echo "no" >&6; }
  6194. fi
  6195. fi
  6196. if test -z "$ac_cv_prog_LIPO"; then
  6197. ac_ct_LIPO=$LIPO
  6198. # Extract the first word of "lipo", so it can be a program name with args.
  6199. set dummy lipo; ac_word=$2
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6201. $as_echo_n "checking for $ac_word... " >&6; }
  6202. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6203. $as_echo_n "(cached) " >&6
  6204. else
  6205. if test -n "$ac_ct_LIPO"; then
  6206. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6207. else
  6208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6209. for as_dir in $PATH
  6210. do
  6211. IFS=$as_save_IFS
  6212. test -z "$as_dir" && as_dir=.
  6213. for ac_exec_ext in '' $ac_executable_extensions; do
  6214. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6215. ac_cv_prog_ac_ct_LIPO="lipo"
  6216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6217. break 2
  6218. fi
  6219. done
  6220. done
  6221. IFS=$as_save_IFS
  6222. fi
  6223. fi
  6224. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6225. if test -n "$ac_ct_LIPO"; then
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6227. $as_echo "$ac_ct_LIPO" >&6; }
  6228. else
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6230. $as_echo "no" >&6; }
  6231. fi
  6232. if test "x$ac_ct_LIPO" = x; then
  6233. LIPO=":"
  6234. else
  6235. case $cross_compiling:$ac_tool_warned in
  6236. yes:)
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6238. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6239. ac_tool_warned=yes ;;
  6240. esac
  6241. LIPO=$ac_ct_LIPO
  6242. fi
  6243. else
  6244. LIPO="$ac_cv_prog_LIPO"
  6245. fi
  6246. if test -n "$ac_tool_prefix"; then
  6247. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6248. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6250. $as_echo_n "checking for $ac_word... " >&6; }
  6251. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6252. $as_echo_n "(cached) " >&6
  6253. else
  6254. if test -n "$OTOOL"; then
  6255. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6256. else
  6257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6258. for as_dir in $PATH
  6259. do
  6260. IFS=$as_save_IFS
  6261. test -z "$as_dir" && as_dir=.
  6262. for ac_exec_ext in '' $ac_executable_extensions; do
  6263. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6264. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6266. break 2
  6267. fi
  6268. done
  6269. done
  6270. IFS=$as_save_IFS
  6271. fi
  6272. fi
  6273. OTOOL=$ac_cv_prog_OTOOL
  6274. if test -n "$OTOOL"; then
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6276. $as_echo "$OTOOL" >&6; }
  6277. else
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6279. $as_echo "no" >&6; }
  6280. fi
  6281. fi
  6282. if test -z "$ac_cv_prog_OTOOL"; then
  6283. ac_ct_OTOOL=$OTOOL
  6284. # Extract the first word of "otool", so it can be a program name with args.
  6285. set dummy otool; ac_word=$2
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6287. $as_echo_n "checking for $ac_word... " >&6; }
  6288. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6289. $as_echo_n "(cached) " >&6
  6290. else
  6291. if test -n "$ac_ct_OTOOL"; then
  6292. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6293. else
  6294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6295. for as_dir in $PATH
  6296. do
  6297. IFS=$as_save_IFS
  6298. test -z "$as_dir" && as_dir=.
  6299. for ac_exec_ext in '' $ac_executable_extensions; do
  6300. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6301. ac_cv_prog_ac_ct_OTOOL="otool"
  6302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6303. break 2
  6304. fi
  6305. done
  6306. done
  6307. IFS=$as_save_IFS
  6308. fi
  6309. fi
  6310. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6311. if test -n "$ac_ct_OTOOL"; then
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6313. $as_echo "$ac_ct_OTOOL" >&6; }
  6314. else
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6316. $as_echo "no" >&6; }
  6317. fi
  6318. if test "x$ac_ct_OTOOL" = x; then
  6319. OTOOL=":"
  6320. else
  6321. case $cross_compiling:$ac_tool_warned in
  6322. yes:)
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6324. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6325. ac_tool_warned=yes ;;
  6326. esac
  6327. OTOOL=$ac_ct_OTOOL
  6328. fi
  6329. else
  6330. OTOOL="$ac_cv_prog_OTOOL"
  6331. fi
  6332. if test -n "$ac_tool_prefix"; then
  6333. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6334. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6336. $as_echo_n "checking for $ac_word... " >&6; }
  6337. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6338. $as_echo_n "(cached) " >&6
  6339. else
  6340. if test -n "$OTOOL64"; then
  6341. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6342. else
  6343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6344. for as_dir in $PATH
  6345. do
  6346. IFS=$as_save_IFS
  6347. test -z "$as_dir" && as_dir=.
  6348. for ac_exec_ext in '' $ac_executable_extensions; do
  6349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6350. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6352. break 2
  6353. fi
  6354. done
  6355. done
  6356. IFS=$as_save_IFS
  6357. fi
  6358. fi
  6359. OTOOL64=$ac_cv_prog_OTOOL64
  6360. if test -n "$OTOOL64"; then
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6362. $as_echo "$OTOOL64" >&6; }
  6363. else
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6365. $as_echo "no" >&6; }
  6366. fi
  6367. fi
  6368. if test -z "$ac_cv_prog_OTOOL64"; then
  6369. ac_ct_OTOOL64=$OTOOL64
  6370. # Extract the first word of "otool64", so it can be a program name with args.
  6371. set dummy otool64; ac_word=$2
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6373. $as_echo_n "checking for $ac_word... " >&6; }
  6374. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6375. $as_echo_n "(cached) " >&6
  6376. else
  6377. if test -n "$ac_ct_OTOOL64"; then
  6378. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6379. else
  6380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6381. for as_dir in $PATH
  6382. do
  6383. IFS=$as_save_IFS
  6384. test -z "$as_dir" && as_dir=.
  6385. for ac_exec_ext in '' $ac_executable_extensions; do
  6386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6387. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6389. break 2
  6390. fi
  6391. done
  6392. done
  6393. IFS=$as_save_IFS
  6394. fi
  6395. fi
  6396. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6397. if test -n "$ac_ct_OTOOL64"; then
  6398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6399. $as_echo "$ac_ct_OTOOL64" >&6; }
  6400. else
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6402. $as_echo "no" >&6; }
  6403. fi
  6404. if test "x$ac_ct_OTOOL64" = x; then
  6405. OTOOL64=":"
  6406. else
  6407. case $cross_compiling:$ac_tool_warned in
  6408. yes:)
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6410. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6411. ac_tool_warned=yes ;;
  6412. esac
  6413. OTOOL64=$ac_ct_OTOOL64
  6414. fi
  6415. else
  6416. OTOOL64="$ac_cv_prog_OTOOL64"
  6417. fi
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6419. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6420. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6421. $as_echo_n "(cached) " >&6
  6422. else
  6423. lt_cv_apple_cc_single_mod=no
  6424. if test -z "${LT_MULTI_MODULE}"; then
  6425. # By default we will add the -single_module flag. You can override
  6426. # by either setting the environment variable LT_MULTI_MODULE
  6427. # non-empty at configure time, or by adding -multi_module to the
  6428. # link flags.
  6429. rm -rf libconftest.dylib*
  6430. echo "int foo(void){return 1;}" > conftest.c
  6431. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6432. -dynamiclib -Wl,-single_module conftest.c" >&5
  6433. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6434. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6435. _lt_result=$?
  6436. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6437. lt_cv_apple_cc_single_mod=yes
  6438. else
  6439. cat conftest.err >&5
  6440. fi
  6441. rm -rf libconftest.dylib*
  6442. rm -f conftest.*
  6443. fi
  6444. fi
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6446. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6448. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6449. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6450. $as_echo_n "(cached) " >&6
  6451. else
  6452. lt_cv_ld_exported_symbols_list=no
  6453. save_LDFLAGS=$LDFLAGS
  6454. echo "_main" > conftest.sym
  6455. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6457. /* end confdefs.h. */
  6458. int
  6459. main ()
  6460. {
  6461. ;
  6462. return 0;
  6463. }
  6464. _ACEOF
  6465. if ac_fn_c_try_link "$LINENO"; then :
  6466. lt_cv_ld_exported_symbols_list=yes
  6467. else
  6468. lt_cv_ld_exported_symbols_list=no
  6469. fi
  6470. rm -f core conftest.err conftest.$ac_objext \
  6471. conftest$ac_exeext conftest.$ac_ext
  6472. LDFLAGS="$save_LDFLAGS"
  6473. fi
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6475. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6477. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6478. if test "${lt_cv_ld_force_load+set}" = set; then :
  6479. $as_echo_n "(cached) " >&6
  6480. else
  6481. lt_cv_ld_force_load=no
  6482. cat > conftest.c << _LT_EOF
  6483. int forced_loaded() { return 2;}
  6484. _LT_EOF
  6485. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6486. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6487. echo "$AR cru libconftest.a conftest.o" >&5
  6488. $AR cru libconftest.a conftest.o 2>&5
  6489. cat > conftest.c << _LT_EOF
  6490. int main() { return 0;}
  6491. _LT_EOF
  6492. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6493. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6494. _lt_result=$?
  6495. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6496. lt_cv_ld_force_load=yes
  6497. else
  6498. cat conftest.err >&5
  6499. fi
  6500. rm -f conftest.err libconftest.a conftest conftest.c
  6501. rm -rf conftest.dSYM
  6502. fi
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6504. $as_echo "$lt_cv_ld_force_load" >&6; }
  6505. case $host_os in
  6506. rhapsody* | darwin1.[012])
  6507. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6508. darwin1.*)
  6509. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6510. darwin*) # darwin 5.x on
  6511. # if running on 10.5 or later, the deployment target defaults
  6512. # to the OS version, if on x86, and 10.4, the deployment
  6513. # target defaults to 10.4. Don't you love it?
  6514. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6515. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6516. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6517. 10.[012][,.]*)
  6518. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6519. 10.*)
  6520. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6521. esac
  6522. ;;
  6523. esac
  6524. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6525. _lt_dar_single_mod='$single_module'
  6526. fi
  6527. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6528. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6529. else
  6530. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6531. fi
  6532. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6533. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6534. else
  6535. _lt_dsymutil=
  6536. fi
  6537. ;;
  6538. esac
  6539. for ac_header in dlfcn.h
  6540. do :
  6541. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6542. "
  6543. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6544. cat >>confdefs.h <<_ACEOF
  6545. #define HAVE_DLFCN_H 1
  6546. _ACEOF
  6547. fi
  6548. done
  6549. # Set options
  6550. enable_dlopen=no
  6551. enable_win32_dll=no
  6552. # Check whether --enable-shared was given.
  6553. if test "${enable_shared+set}" = set; then :
  6554. enableval=$enable_shared; p=${PACKAGE-default}
  6555. case $enableval in
  6556. yes) enable_shared=yes ;;
  6557. no) enable_shared=no ;;
  6558. *)
  6559. enable_shared=no
  6560. # Look at the argument we got. We use all the common list separators.
  6561. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6562. for pkg in $enableval; do
  6563. IFS="$lt_save_ifs"
  6564. if test "X$pkg" = "X$p"; then
  6565. enable_shared=yes
  6566. fi
  6567. done
  6568. IFS="$lt_save_ifs"
  6569. ;;
  6570. esac
  6571. else
  6572. enable_shared=yes
  6573. fi
  6574. # Check whether --enable-static was given.
  6575. if test "${enable_static+set}" = set; then :
  6576. enableval=$enable_static; p=${PACKAGE-default}
  6577. case $enableval in
  6578. yes) enable_static=yes ;;
  6579. no) enable_static=no ;;
  6580. *)
  6581. enable_static=no
  6582. # Look at the argument we got. We use all the common list separators.
  6583. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6584. for pkg in $enableval; do
  6585. IFS="$lt_save_ifs"
  6586. if test "X$pkg" = "X$p"; then
  6587. enable_static=yes
  6588. fi
  6589. done
  6590. IFS="$lt_save_ifs"
  6591. ;;
  6592. esac
  6593. else
  6594. enable_static=yes
  6595. fi
  6596. # Check whether --with-pic was given.
  6597. if test "${with_pic+set}" = set; then :
  6598. withval=$with_pic; pic_mode="$withval"
  6599. else
  6600. pic_mode=default
  6601. fi
  6602. test -z "$pic_mode" && pic_mode=default
  6603. # Check whether --enable-fast-install was given.
  6604. if test "${enable_fast_install+set}" = set; then :
  6605. enableval=$enable_fast_install; p=${PACKAGE-default}
  6606. case $enableval in
  6607. yes) enable_fast_install=yes ;;
  6608. no) enable_fast_install=no ;;
  6609. *)
  6610. enable_fast_install=no
  6611. # Look at the argument we got. We use all the common list separators.
  6612. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6613. for pkg in $enableval; do
  6614. IFS="$lt_save_ifs"
  6615. if test "X$pkg" = "X$p"; then
  6616. enable_fast_install=yes
  6617. fi
  6618. done
  6619. IFS="$lt_save_ifs"
  6620. ;;
  6621. esac
  6622. else
  6623. enable_fast_install=yes
  6624. fi
  6625. # This can be used to rebuild libtool when needed
  6626. LIBTOOL_DEPS="$ltmain"
  6627. # Always use our own libtool.
  6628. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6629. test -z "$LN_S" && LN_S="ln -s"
  6630. if test -n "${ZSH_VERSION+set}" ; then
  6631. setopt NO_GLOB_SUBST
  6632. fi
  6633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6634. $as_echo_n "checking for objdir... " >&6; }
  6635. if test "${lt_cv_objdir+set}" = set; then :
  6636. $as_echo_n "(cached) " >&6
  6637. else
  6638. rm -f .libs 2>/dev/null
  6639. mkdir .libs 2>/dev/null
  6640. if test -d .libs; then
  6641. lt_cv_objdir=.libs
  6642. else
  6643. # MS-DOS does not allow filenames that begin with a dot.
  6644. lt_cv_objdir=_libs
  6645. fi
  6646. rmdir .libs 2>/dev/null
  6647. fi
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6649. $as_echo "$lt_cv_objdir" >&6; }
  6650. objdir=$lt_cv_objdir
  6651. cat >>confdefs.h <<_ACEOF
  6652. #define LT_OBJDIR "$lt_cv_objdir/"
  6653. _ACEOF
  6654. case $host_os in
  6655. aix3*)
  6656. # AIX sometimes has problems with the GCC collect2 program. For some
  6657. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6658. # vanish in a puff of smoke.
  6659. if test "X${COLLECT_NAMES+set}" != Xset; then
  6660. COLLECT_NAMES=
  6661. export COLLECT_NAMES
  6662. fi
  6663. ;;
  6664. esac
  6665. # Global variables:
  6666. ofile=libtool
  6667. can_build_shared=yes
  6668. # All known linkers require a `.a' archive for static linking (except MSVC,
  6669. # which needs '.lib').
  6670. libext=a
  6671. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6672. old_CC="$CC"
  6673. old_CFLAGS="$CFLAGS"
  6674. # Set sane defaults for various variables
  6675. test -z "$CC" && CC=cc
  6676. test -z "$LTCC" && LTCC=$CC
  6677. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6678. test -z "$LD" && LD=ld
  6679. test -z "$ac_objext" && ac_objext=o
  6680. for cc_temp in $compiler""; do
  6681. case $cc_temp in
  6682. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6683. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6684. \-*) ;;
  6685. *) break;;
  6686. esac
  6687. done
  6688. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6689. # Only perform the check for file, if the check method requires it
  6690. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6691. case $deplibs_check_method in
  6692. file_magic*)
  6693. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6695. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6696. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6697. $as_echo_n "(cached) " >&6
  6698. else
  6699. case $MAGIC_CMD in
  6700. [\\/*] | ?:[\\/]*)
  6701. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6702. ;;
  6703. *)
  6704. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6705. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6706. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6707. for ac_dir in $ac_dummy; do
  6708. IFS="$lt_save_ifs"
  6709. test -z "$ac_dir" && ac_dir=.
  6710. if test -f $ac_dir/${ac_tool_prefix}file; then
  6711. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6712. if test -n "$file_magic_test_file"; then
  6713. case $deplibs_check_method in
  6714. "file_magic "*)
  6715. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6716. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6717. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6718. $EGREP "$file_magic_regex" > /dev/null; then
  6719. :
  6720. else
  6721. cat <<_LT_EOF 1>&2
  6722. *** Warning: the command libtool uses to detect shared libraries,
  6723. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6724. *** The result is that libtool may fail to recognize shared libraries
  6725. *** as such. This will affect the creation of libtool libraries that
  6726. *** depend on shared libraries, but programs linked with such libtool
  6727. *** libraries will work regardless of this problem. Nevertheless, you
  6728. *** may want to report the problem to your system manager and/or to
  6729. *** bug-libtool@gnu.org
  6730. _LT_EOF
  6731. fi ;;
  6732. esac
  6733. fi
  6734. break
  6735. fi
  6736. done
  6737. IFS="$lt_save_ifs"
  6738. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6739. ;;
  6740. esac
  6741. fi
  6742. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6743. if test -n "$MAGIC_CMD"; then
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6745. $as_echo "$MAGIC_CMD" >&6; }
  6746. else
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6748. $as_echo "no" >&6; }
  6749. fi
  6750. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6751. if test -n "$ac_tool_prefix"; then
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6753. $as_echo_n "checking for file... " >&6; }
  6754. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6755. $as_echo_n "(cached) " >&6
  6756. else
  6757. case $MAGIC_CMD in
  6758. [\\/*] | ?:[\\/]*)
  6759. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6760. ;;
  6761. *)
  6762. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6763. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6764. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6765. for ac_dir in $ac_dummy; do
  6766. IFS="$lt_save_ifs"
  6767. test -z "$ac_dir" && ac_dir=.
  6768. if test -f $ac_dir/file; then
  6769. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6770. if test -n "$file_magic_test_file"; then
  6771. case $deplibs_check_method in
  6772. "file_magic "*)
  6773. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6774. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6775. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6776. $EGREP "$file_magic_regex" > /dev/null; then
  6777. :
  6778. else
  6779. cat <<_LT_EOF 1>&2
  6780. *** Warning: the command libtool uses to detect shared libraries,
  6781. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6782. *** The result is that libtool may fail to recognize shared libraries
  6783. *** as such. This will affect the creation of libtool libraries that
  6784. *** depend on shared libraries, but programs linked with such libtool
  6785. *** libraries will work regardless of this problem. Nevertheless, you
  6786. *** may want to report the problem to your system manager and/or to
  6787. *** bug-libtool@gnu.org
  6788. _LT_EOF
  6789. fi ;;
  6790. esac
  6791. fi
  6792. break
  6793. fi
  6794. done
  6795. IFS="$lt_save_ifs"
  6796. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6797. ;;
  6798. esac
  6799. fi
  6800. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6801. if test -n "$MAGIC_CMD"; then
  6802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6803. $as_echo "$MAGIC_CMD" >&6; }
  6804. else
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6806. $as_echo "no" >&6; }
  6807. fi
  6808. else
  6809. MAGIC_CMD=:
  6810. fi
  6811. fi
  6812. fi
  6813. ;;
  6814. esac
  6815. # Use C for the default configuration in the libtool script
  6816. lt_save_CC="$CC"
  6817. ac_ext=c
  6818. ac_cpp='$CPP $CPPFLAGS'
  6819. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6820. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6821. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6822. # Source file extension for C test sources.
  6823. ac_ext=c
  6824. # Object file extension for compiled C test sources.
  6825. objext=o
  6826. objext=$objext
  6827. # Code to be used in simple compile tests
  6828. lt_simple_compile_test_code="int some_variable = 0;"
  6829. # Code to be used in simple link tests
  6830. lt_simple_link_test_code='int main(){return(0);}'
  6831. # If no C compiler was specified, use CC.
  6832. LTCC=${LTCC-"$CC"}
  6833. # If no C compiler flags were specified, use CFLAGS.
  6834. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6835. # Allow CC to be a program name with arguments.
  6836. compiler=$CC
  6837. # Save the default compiler, since it gets overwritten when the other
  6838. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6839. compiler_DEFAULT=$CC
  6840. # save warnings/boilerplate of simple test code
  6841. ac_outfile=conftest.$ac_objext
  6842. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6843. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6844. _lt_compiler_boilerplate=`cat conftest.err`
  6845. $RM conftest*
  6846. ac_outfile=conftest.$ac_objext
  6847. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6848. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6849. _lt_linker_boilerplate=`cat conftest.err`
  6850. $RM -r conftest*
  6851. ## CAVEAT EMPTOR:
  6852. ## There is no encapsulation within the following macros, do not change
  6853. ## the running order or otherwise move them around unless you know exactly
  6854. ## what you are doing...
  6855. if test -n "$compiler"; then
  6856. lt_prog_compiler_no_builtin_flag=
  6857. if test "$GCC" = yes; then
  6858. case $cc_basename in
  6859. nvcc*)
  6860. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6861. *)
  6862. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6863. esac
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6865. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6866. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6867. $as_echo_n "(cached) " >&6
  6868. else
  6869. lt_cv_prog_compiler_rtti_exceptions=no
  6870. ac_outfile=conftest.$ac_objext
  6871. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6872. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6873. # Insert the option either (1) after the last *FLAGS variable, or
  6874. # (2) before a word containing "conftest.", or (3) at the end.
  6875. # Note that $ac_compile itself does not contain backslashes and begins
  6876. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6877. # The option is referenced via a variable to avoid confusing sed.
  6878. lt_compile=`echo "$ac_compile" | $SED \
  6879. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6880. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6881. -e 's:$: $lt_compiler_flag:'`
  6882. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6883. (eval "$lt_compile" 2>conftest.err)
  6884. ac_status=$?
  6885. cat conftest.err >&5
  6886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6887. if (exit $ac_status) && test -s "$ac_outfile"; then
  6888. # The compiler can only warn and ignore the option if not recognized
  6889. # So say no if there are warnings other than the usual output.
  6890. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6891. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6892. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6893. lt_cv_prog_compiler_rtti_exceptions=yes
  6894. fi
  6895. fi
  6896. $RM conftest*
  6897. fi
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6899. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6900. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6901. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6902. else
  6903. :
  6904. fi
  6905. fi
  6906. lt_prog_compiler_wl=
  6907. lt_prog_compiler_pic=
  6908. lt_prog_compiler_static=
  6909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6910. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6911. if test "$GCC" = yes; then
  6912. lt_prog_compiler_wl='-Wl,'
  6913. lt_prog_compiler_static='-static'
  6914. case $host_os in
  6915. aix*)
  6916. # All AIX code is PIC.
  6917. if test "$host_cpu" = ia64; then
  6918. # AIX 5 now supports IA64 processor
  6919. lt_prog_compiler_static='-Bstatic'
  6920. fi
  6921. lt_prog_compiler_pic='-fPIC'
  6922. ;;
  6923. amigaos*)
  6924. case $host_cpu in
  6925. powerpc)
  6926. # see comment about AmigaOS4 .so support
  6927. lt_prog_compiler_pic='-fPIC'
  6928. ;;
  6929. m68k)
  6930. # FIXME: we need at least 68020 code to build shared libraries, but
  6931. # adding the `-m68020' flag to GCC prevents building anything better,
  6932. # like `-m68040'.
  6933. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6934. ;;
  6935. esac
  6936. ;;
  6937. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6938. # PIC is the default for these OSes.
  6939. ;;
  6940. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6941. # This hack is so that the source file can tell whether it is being
  6942. # built for inclusion in a dll (and should export symbols for example).
  6943. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6944. # (--disable-auto-import) libraries
  6945. lt_prog_compiler_pic='-DDLL_EXPORT'
  6946. ;;
  6947. darwin* | rhapsody*)
  6948. # PIC is the default on this platform
  6949. # Common symbols not allowed in MH_DYLIB files
  6950. lt_prog_compiler_pic='-fno-common'
  6951. ;;
  6952. haiku*)
  6953. # PIC is the default for Haiku.
  6954. # The "-static" flag exists, but is broken.
  6955. lt_prog_compiler_static=
  6956. ;;
  6957. hpux*)
  6958. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6959. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6960. # sets the default TLS model and affects inlining.
  6961. case $host_cpu in
  6962. hppa*64*)
  6963. # +Z the default
  6964. ;;
  6965. *)
  6966. lt_prog_compiler_pic='-fPIC'
  6967. ;;
  6968. esac
  6969. ;;
  6970. interix[3-9]*)
  6971. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6972. # Instead, we relocate shared libraries at runtime.
  6973. ;;
  6974. msdosdjgpp*)
  6975. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6976. # on systems that don't support them.
  6977. lt_prog_compiler_can_build_shared=no
  6978. enable_shared=no
  6979. ;;
  6980. *nto* | *qnx*)
  6981. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6982. # it will coredump.
  6983. lt_prog_compiler_pic='-fPIC -shared'
  6984. ;;
  6985. sysv4*MP*)
  6986. if test -d /usr/nec; then
  6987. lt_prog_compiler_pic=-Kconform_pic
  6988. fi
  6989. ;;
  6990. *)
  6991. lt_prog_compiler_pic='-fPIC'
  6992. ;;
  6993. esac
  6994. case $cc_basename in
  6995. nvcc*) # Cuda Compiler Driver 2.2
  6996. lt_prog_compiler_wl='-Xlinker '
  6997. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6998. ;;
  6999. esac
  7000. else
  7001. # PORTME Check for flag to pass linker flags through the system compiler.
  7002. case $host_os in
  7003. aix*)
  7004. lt_prog_compiler_wl='-Wl,'
  7005. if test "$host_cpu" = ia64; then
  7006. # AIX 5 now supports IA64 processor
  7007. lt_prog_compiler_static='-Bstatic'
  7008. else
  7009. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7010. fi
  7011. ;;
  7012. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7013. # This hack is so that the source file can tell whether it is being
  7014. # built for inclusion in a dll (and should export symbols for example).
  7015. lt_prog_compiler_pic='-DDLL_EXPORT'
  7016. ;;
  7017. hpux9* | hpux10* | hpux11*)
  7018. lt_prog_compiler_wl='-Wl,'
  7019. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7020. # not for PA HP-UX.
  7021. case $host_cpu in
  7022. hppa*64*|ia64*)
  7023. # +Z the default
  7024. ;;
  7025. *)
  7026. lt_prog_compiler_pic='+Z'
  7027. ;;
  7028. esac
  7029. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7030. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7031. ;;
  7032. irix5* | irix6* | nonstopux*)
  7033. lt_prog_compiler_wl='-Wl,'
  7034. # PIC (with -KPIC) is the default.
  7035. lt_prog_compiler_static='-non_shared'
  7036. ;;
  7037. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7038. case $cc_basename in
  7039. # old Intel for x86_64 which still supported -KPIC.
  7040. ecc*)
  7041. lt_prog_compiler_wl='-Wl,'
  7042. lt_prog_compiler_pic='-KPIC'
  7043. lt_prog_compiler_static='-static'
  7044. ;;
  7045. # icc used to be incompatible with GCC.
  7046. # ICC 10 doesn't accept -KPIC any more.
  7047. icc* | ifort*)
  7048. lt_prog_compiler_wl='-Wl,'
  7049. lt_prog_compiler_pic='-fPIC'
  7050. lt_prog_compiler_static='-static'
  7051. ;;
  7052. # Lahey Fortran 8.1.
  7053. lf95*)
  7054. lt_prog_compiler_wl='-Wl,'
  7055. lt_prog_compiler_pic='--shared'
  7056. lt_prog_compiler_static='--static'
  7057. ;;
  7058. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7059. # Portland Group compilers (*not* the Pentium gcc compiler,
  7060. # which looks to be a dead project)
  7061. lt_prog_compiler_wl='-Wl,'
  7062. lt_prog_compiler_pic='-fpic'
  7063. lt_prog_compiler_static='-Bstatic'
  7064. ;;
  7065. ccc*)
  7066. lt_prog_compiler_wl='-Wl,'
  7067. # All Alpha code is PIC.
  7068. lt_prog_compiler_static='-non_shared'
  7069. ;;
  7070. xl* | bgxl* | bgf* | mpixl*)
  7071. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7072. lt_prog_compiler_wl='-Wl,'
  7073. lt_prog_compiler_pic='-qpic'
  7074. lt_prog_compiler_static='-qstaticlink'
  7075. ;;
  7076. *)
  7077. case `$CC -V 2>&1 | sed 5q` in
  7078. *Sun\ F* | *Sun*Fortran*)
  7079. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7080. lt_prog_compiler_pic='-KPIC'
  7081. lt_prog_compiler_static='-Bstatic'
  7082. lt_prog_compiler_wl=''
  7083. ;;
  7084. *Sun\ C*)
  7085. # Sun C 5.9
  7086. lt_prog_compiler_pic='-KPIC'
  7087. lt_prog_compiler_static='-Bstatic'
  7088. lt_prog_compiler_wl='-Wl,'
  7089. ;;
  7090. esac
  7091. ;;
  7092. esac
  7093. ;;
  7094. newsos6)
  7095. lt_prog_compiler_pic='-KPIC'
  7096. lt_prog_compiler_static='-Bstatic'
  7097. ;;
  7098. *nto* | *qnx*)
  7099. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7100. # it will coredump.
  7101. lt_prog_compiler_pic='-fPIC -shared'
  7102. ;;
  7103. osf3* | osf4* | osf5*)
  7104. lt_prog_compiler_wl='-Wl,'
  7105. # All OSF/1 code is PIC.
  7106. lt_prog_compiler_static='-non_shared'
  7107. ;;
  7108. rdos*)
  7109. lt_prog_compiler_static='-non_shared'
  7110. ;;
  7111. solaris*)
  7112. lt_prog_compiler_pic='-KPIC'
  7113. lt_prog_compiler_static='-Bstatic'
  7114. case $cc_basename in
  7115. f77* | f90* | f95*)
  7116. lt_prog_compiler_wl='-Qoption ld ';;
  7117. *)
  7118. lt_prog_compiler_wl='-Wl,';;
  7119. esac
  7120. ;;
  7121. sunos4*)
  7122. lt_prog_compiler_wl='-Qoption ld '
  7123. lt_prog_compiler_pic='-PIC'
  7124. lt_prog_compiler_static='-Bstatic'
  7125. ;;
  7126. sysv4 | sysv4.2uw2* | sysv4.3*)
  7127. lt_prog_compiler_wl='-Wl,'
  7128. lt_prog_compiler_pic='-KPIC'
  7129. lt_prog_compiler_static='-Bstatic'
  7130. ;;
  7131. sysv4*MP*)
  7132. if test -d /usr/nec ;then
  7133. lt_prog_compiler_pic='-Kconform_pic'
  7134. lt_prog_compiler_static='-Bstatic'
  7135. fi
  7136. ;;
  7137. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7138. lt_prog_compiler_wl='-Wl,'
  7139. lt_prog_compiler_pic='-KPIC'
  7140. lt_prog_compiler_static='-Bstatic'
  7141. ;;
  7142. unicos*)
  7143. lt_prog_compiler_wl='-Wl,'
  7144. lt_prog_compiler_can_build_shared=no
  7145. ;;
  7146. uts4*)
  7147. lt_prog_compiler_pic='-pic'
  7148. lt_prog_compiler_static='-Bstatic'
  7149. ;;
  7150. *)
  7151. lt_prog_compiler_can_build_shared=no
  7152. ;;
  7153. esac
  7154. fi
  7155. case $host_os in
  7156. # For platforms which do not support PIC, -DPIC is meaningless:
  7157. *djgpp*)
  7158. lt_prog_compiler_pic=
  7159. ;;
  7160. *)
  7161. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7162. ;;
  7163. esac
  7164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7165. $as_echo "$lt_prog_compiler_pic" >&6; }
  7166. #
  7167. # Check to make sure the PIC flag actually works.
  7168. #
  7169. if test -n "$lt_prog_compiler_pic"; then
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7171. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7172. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7173. $as_echo_n "(cached) " >&6
  7174. else
  7175. lt_cv_prog_compiler_pic_works=no
  7176. ac_outfile=conftest.$ac_objext
  7177. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7178. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7179. # Insert the option either (1) after the last *FLAGS variable, or
  7180. # (2) before a word containing "conftest.", or (3) at the end.
  7181. # Note that $ac_compile itself does not contain backslashes and begins
  7182. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7183. # The option is referenced via a variable to avoid confusing sed.
  7184. lt_compile=`echo "$ac_compile" | $SED \
  7185. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7186. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7187. -e 's:$: $lt_compiler_flag:'`
  7188. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7189. (eval "$lt_compile" 2>conftest.err)
  7190. ac_status=$?
  7191. cat conftest.err >&5
  7192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7193. if (exit $ac_status) && test -s "$ac_outfile"; then
  7194. # The compiler can only warn and ignore the option if not recognized
  7195. # So say no if there are warnings other than the usual output.
  7196. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7197. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7198. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7199. lt_cv_prog_compiler_pic_works=yes
  7200. fi
  7201. fi
  7202. $RM conftest*
  7203. fi
  7204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7205. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7206. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7207. case $lt_prog_compiler_pic in
  7208. "" | " "*) ;;
  7209. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7210. esac
  7211. else
  7212. lt_prog_compiler_pic=
  7213. lt_prog_compiler_can_build_shared=no
  7214. fi
  7215. fi
  7216. #
  7217. # Check to make sure the static flag actually works.
  7218. #
  7219. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7221. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7222. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7223. $as_echo_n "(cached) " >&6
  7224. else
  7225. lt_cv_prog_compiler_static_works=no
  7226. save_LDFLAGS="$LDFLAGS"
  7227. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7228. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7229. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7230. # The linker can only warn and ignore the option if not recognized
  7231. # So say no if there are warnings
  7232. if test -s conftest.err; then
  7233. # Append any errors to the config.log.
  7234. cat conftest.err 1>&5
  7235. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7236. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7237. if diff conftest.exp conftest.er2 >/dev/null; then
  7238. lt_cv_prog_compiler_static_works=yes
  7239. fi
  7240. else
  7241. lt_cv_prog_compiler_static_works=yes
  7242. fi
  7243. fi
  7244. $RM -r conftest*
  7245. LDFLAGS="$save_LDFLAGS"
  7246. fi
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7248. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7249. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7250. :
  7251. else
  7252. lt_prog_compiler_static=
  7253. fi
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7255. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7256. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7257. $as_echo_n "(cached) " >&6
  7258. else
  7259. lt_cv_prog_compiler_c_o=no
  7260. $RM -r conftest 2>/dev/null
  7261. mkdir conftest
  7262. cd conftest
  7263. mkdir out
  7264. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7265. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7266. # Insert the option either (1) after the last *FLAGS variable, or
  7267. # (2) before a word containing "conftest.", or (3) at the end.
  7268. # Note that $ac_compile itself does not contain backslashes and begins
  7269. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7270. lt_compile=`echo "$ac_compile" | $SED \
  7271. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7272. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7273. -e 's:$: $lt_compiler_flag:'`
  7274. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7275. (eval "$lt_compile" 2>out/conftest.err)
  7276. ac_status=$?
  7277. cat out/conftest.err >&5
  7278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7279. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7280. then
  7281. # The compiler can only warn and ignore the option if not recognized
  7282. # So say no if there are warnings
  7283. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7284. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7285. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7286. lt_cv_prog_compiler_c_o=yes
  7287. fi
  7288. fi
  7289. chmod u+w . 2>&5
  7290. $RM conftest*
  7291. # SGI C++ compiler will create directory out/ii_files/ for
  7292. # template instantiation
  7293. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7294. $RM out/* && rmdir out
  7295. cd ..
  7296. $RM -r conftest
  7297. $RM conftest*
  7298. fi
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7300. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7302. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7303. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7304. $as_echo_n "(cached) " >&6
  7305. else
  7306. lt_cv_prog_compiler_c_o=no
  7307. $RM -r conftest 2>/dev/null
  7308. mkdir conftest
  7309. cd conftest
  7310. mkdir out
  7311. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7312. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7313. # Insert the option either (1) after the last *FLAGS variable, or
  7314. # (2) before a word containing "conftest.", or (3) at the end.
  7315. # Note that $ac_compile itself does not contain backslashes and begins
  7316. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7317. lt_compile=`echo "$ac_compile" | $SED \
  7318. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7319. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7320. -e 's:$: $lt_compiler_flag:'`
  7321. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7322. (eval "$lt_compile" 2>out/conftest.err)
  7323. ac_status=$?
  7324. cat out/conftest.err >&5
  7325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7326. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7327. then
  7328. # The compiler can only warn and ignore the option if not recognized
  7329. # So say no if there are warnings
  7330. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7331. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7332. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7333. lt_cv_prog_compiler_c_o=yes
  7334. fi
  7335. fi
  7336. chmod u+w . 2>&5
  7337. $RM conftest*
  7338. # SGI C++ compiler will create directory out/ii_files/ for
  7339. # template instantiation
  7340. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7341. $RM out/* && rmdir out
  7342. cd ..
  7343. $RM -r conftest
  7344. $RM conftest*
  7345. fi
  7346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7347. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7348. hard_links="nottested"
  7349. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7350. # do not overwrite the value of need_locks provided by the user
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7352. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7353. hard_links=yes
  7354. $RM conftest*
  7355. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7356. touch conftest.a
  7357. ln conftest.a conftest.b 2>&5 || hard_links=no
  7358. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7360. $as_echo "$hard_links" >&6; }
  7361. if test "$hard_links" = no; then
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7363. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7364. need_locks=warn
  7365. fi
  7366. else
  7367. need_locks=no
  7368. fi
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7370. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7371. runpath_var=
  7372. allow_undefined_flag=
  7373. always_export_symbols=no
  7374. archive_cmds=
  7375. archive_expsym_cmds=
  7376. compiler_needs_object=no
  7377. enable_shared_with_static_runtimes=no
  7378. export_dynamic_flag_spec=
  7379. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7380. hardcode_automatic=no
  7381. hardcode_direct=no
  7382. hardcode_direct_absolute=no
  7383. hardcode_libdir_flag_spec=
  7384. hardcode_libdir_flag_spec_ld=
  7385. hardcode_libdir_separator=
  7386. hardcode_minus_L=no
  7387. hardcode_shlibpath_var=unsupported
  7388. inherit_rpath=no
  7389. link_all_deplibs=unknown
  7390. module_cmds=
  7391. module_expsym_cmds=
  7392. old_archive_from_new_cmds=
  7393. old_archive_from_expsyms_cmds=
  7394. thread_safe_flag_spec=
  7395. whole_archive_flag_spec=
  7396. # include_expsyms should be a list of space-separated symbols to be *always*
  7397. # included in the symbol list
  7398. include_expsyms=
  7399. # exclude_expsyms can be an extended regexp of symbols to exclude
  7400. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7401. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7402. # as well as any symbol that contains `d'.
  7403. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7404. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7405. # platforms (ab)use it in PIC code, but their linkers get confused if
  7406. # the symbol is explicitly referenced. Since portable code cannot
  7407. # rely on this symbol name, it's probably fine to never include it in
  7408. # preloaded symbol tables.
  7409. # Exclude shared library initialization/finalization symbols.
  7410. extract_expsyms_cmds=
  7411. case $host_os in
  7412. cygwin* | mingw* | pw32* | cegcc*)
  7413. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7414. # When not using gcc, we currently assume that we are using
  7415. # Microsoft Visual C++.
  7416. if test "$GCC" != yes; then
  7417. with_gnu_ld=no
  7418. fi
  7419. ;;
  7420. interix*)
  7421. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7422. with_gnu_ld=yes
  7423. ;;
  7424. openbsd*)
  7425. with_gnu_ld=no
  7426. ;;
  7427. esac
  7428. ld_shlibs=yes
  7429. # On some targets, GNU ld is compatible enough with the native linker
  7430. # that we're better off using the native interface for both.
  7431. lt_use_gnu_ld_interface=no
  7432. if test "$with_gnu_ld" = yes; then
  7433. case $host_os in
  7434. aix*)
  7435. # The AIX port of GNU ld has always aspired to compatibility
  7436. # with the native linker. However, as the warning in the GNU ld
  7437. # block says, versions before 2.19.5* couldn't really create working
  7438. # shared libraries, regardless of the interface used.
  7439. case `$LD -v 2>&1` in
  7440. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7441. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7442. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7443. *)
  7444. lt_use_gnu_ld_interface=yes
  7445. ;;
  7446. esac
  7447. ;;
  7448. *)
  7449. lt_use_gnu_ld_interface=yes
  7450. ;;
  7451. esac
  7452. fi
  7453. if test "$lt_use_gnu_ld_interface" = yes; then
  7454. # If archive_cmds runs LD, not CC, wlarc should be empty
  7455. wlarc='${wl}'
  7456. # Set some defaults for GNU ld with shared library support. These
  7457. # are reset later if shared libraries are not supported. Putting them
  7458. # here allows them to be overridden if necessary.
  7459. runpath_var=LD_RUN_PATH
  7460. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7461. export_dynamic_flag_spec='${wl}--export-dynamic'
  7462. # ancient GNU ld didn't support --whole-archive et. al.
  7463. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7464. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7465. else
  7466. whole_archive_flag_spec=
  7467. fi
  7468. supports_anon_versioning=no
  7469. case `$LD -v 2>&1` in
  7470. *GNU\ gold*) supports_anon_versioning=yes ;;
  7471. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7472. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7473. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7474. *\ 2.11.*) ;; # other 2.11 versions
  7475. *) supports_anon_versioning=yes ;;
  7476. esac
  7477. # See if GNU ld supports shared libraries.
  7478. case $host_os in
  7479. aix[3-9]*)
  7480. # On AIX/PPC, the GNU linker is very broken
  7481. if test "$host_cpu" != ia64; then
  7482. ld_shlibs=no
  7483. cat <<_LT_EOF 1>&2
  7484. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7485. *** to be unable to reliably create shared libraries on AIX.
  7486. *** Therefore, libtool is disabling shared libraries support. If you
  7487. *** really care for shared libraries, you may want to install binutils
  7488. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7489. *** You will then need to restart the configuration process.
  7490. _LT_EOF
  7491. fi
  7492. ;;
  7493. amigaos*)
  7494. case $host_cpu in
  7495. powerpc)
  7496. # see comment about AmigaOS4 .so support
  7497. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7498. archive_expsym_cmds=''
  7499. ;;
  7500. m68k)
  7501. 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)'
  7502. hardcode_libdir_flag_spec='-L$libdir'
  7503. hardcode_minus_L=yes
  7504. ;;
  7505. esac
  7506. ;;
  7507. beos*)
  7508. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7509. allow_undefined_flag=unsupported
  7510. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7511. # support --undefined. This deserves some investigation. FIXME
  7512. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7513. else
  7514. ld_shlibs=no
  7515. fi
  7516. ;;
  7517. cygwin* | mingw* | pw32* | cegcc*)
  7518. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7519. # as there is no search path for DLLs.
  7520. hardcode_libdir_flag_spec='-L$libdir'
  7521. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7522. allow_undefined_flag=unsupported
  7523. always_export_symbols=no
  7524. enable_shared_with_static_runtimes=yes
  7525. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7526. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7527. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7528. # If the export-symbols file already is a .def file (1st line
  7529. # is EXPORTS), use it as is; otherwise, prepend...
  7530. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7531. cp $export_symbols $output_objdir/$soname.def;
  7532. else
  7533. echo EXPORTS > $output_objdir/$soname.def;
  7534. cat $export_symbols >> $output_objdir/$soname.def;
  7535. fi~
  7536. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7537. else
  7538. ld_shlibs=no
  7539. fi
  7540. ;;
  7541. haiku*)
  7542. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7543. link_all_deplibs=yes
  7544. ;;
  7545. interix[3-9]*)
  7546. hardcode_direct=no
  7547. hardcode_shlibpath_var=no
  7548. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7549. export_dynamic_flag_spec='${wl}-E'
  7550. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7551. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7552. # default) and relocated if they conflict, which is a slow very memory
  7553. # consuming and fragmenting process. To avoid this, we pick a random,
  7554. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7555. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7556. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7557. 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'
  7558. ;;
  7559. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7560. tmp_diet=no
  7561. if test "$host_os" = linux-dietlibc; then
  7562. case $cc_basename in
  7563. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7564. esac
  7565. fi
  7566. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7567. && test "$tmp_diet" = no
  7568. then
  7569. tmp_addflag=' $pic_flag'
  7570. tmp_sharedflag='-shared'
  7571. case $cc_basename,$host_cpu in
  7572. pgcc*) # Portland Group C compiler
  7573. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7574. tmp_addflag=' $pic_flag'
  7575. ;;
  7576. pgf77* | pgf90* | pgf95* | pgfortran*)
  7577. # Portland Group f77 and f90 compilers
  7578. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7579. tmp_addflag=' $pic_flag -Mnomain' ;;
  7580. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7581. tmp_addflag=' -i_dynamic' ;;
  7582. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7583. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7584. ifc* | ifort*) # Intel Fortran compiler
  7585. tmp_addflag=' -nofor_main' ;;
  7586. lf95*) # Lahey Fortran 8.1
  7587. whole_archive_flag_spec=
  7588. tmp_sharedflag='--shared' ;;
  7589. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7590. tmp_sharedflag='-qmkshrobj'
  7591. tmp_addflag= ;;
  7592. nvcc*) # Cuda Compiler Driver 2.2
  7593. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7594. compiler_needs_object=yes
  7595. ;;
  7596. esac
  7597. case `$CC -V 2>&1 | sed 5q` in
  7598. *Sun\ C*) # Sun C 5.9
  7599. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7600. compiler_needs_object=yes
  7601. tmp_sharedflag='-G' ;;
  7602. *Sun\ F*) # Sun Fortran 8.3
  7603. tmp_sharedflag='-G' ;;
  7604. esac
  7605. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7606. if test "x$supports_anon_versioning" = xyes; then
  7607. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7608. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7609. echo "local: *; };" >> $output_objdir/$libname.ver~
  7610. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7611. fi
  7612. case $cc_basename in
  7613. xlf* | bgf* | bgxlf* | mpixlf*)
  7614. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7615. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7616. hardcode_libdir_flag_spec=
  7617. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7618. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7619. if test "x$supports_anon_versioning" = xyes; then
  7620. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7621. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7622. echo "local: *; };" >> $output_objdir/$libname.ver~
  7623. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7624. fi
  7625. ;;
  7626. esac
  7627. else
  7628. ld_shlibs=no
  7629. fi
  7630. ;;
  7631. netbsd*)
  7632. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7633. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7634. wlarc=
  7635. else
  7636. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7637. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7638. fi
  7639. ;;
  7640. solaris*)
  7641. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7642. ld_shlibs=no
  7643. cat <<_LT_EOF 1>&2
  7644. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7645. *** create shared libraries on Solaris systems. Therefore, libtool
  7646. *** is disabling shared libraries support. We urge you to upgrade GNU
  7647. *** binutils to release 2.9.1 or newer. Another option is to modify
  7648. *** your PATH or compiler configuration so that the native linker is
  7649. *** used, and then restart.
  7650. _LT_EOF
  7651. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7652. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7653. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7654. else
  7655. ld_shlibs=no
  7656. fi
  7657. ;;
  7658. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7659. case `$LD -v 2>&1` in
  7660. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7661. ld_shlibs=no
  7662. cat <<_LT_EOF 1>&2
  7663. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7664. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7665. *** is disabling shared libraries support. We urge you to upgrade GNU
  7666. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7667. *** your PATH or compiler configuration so that the native linker is
  7668. *** used, and then restart.
  7669. _LT_EOF
  7670. ;;
  7671. *)
  7672. # For security reasons, it is highly recommended that you always
  7673. # use absolute paths for naming shared libraries, and exclude the
  7674. # DT_RUNPATH tag from executables and libraries. But doing so
  7675. # requires that you compile everything twice, which is a pain.
  7676. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7677. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7678. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7679. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7680. else
  7681. ld_shlibs=no
  7682. fi
  7683. ;;
  7684. esac
  7685. ;;
  7686. sunos4*)
  7687. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7688. wlarc=
  7689. hardcode_direct=yes
  7690. hardcode_shlibpath_var=no
  7691. ;;
  7692. *)
  7693. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7694. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7695. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7696. else
  7697. ld_shlibs=no
  7698. fi
  7699. ;;
  7700. esac
  7701. if test "$ld_shlibs" = no; then
  7702. runpath_var=
  7703. hardcode_libdir_flag_spec=
  7704. export_dynamic_flag_spec=
  7705. whole_archive_flag_spec=
  7706. fi
  7707. else
  7708. # PORTME fill in a description of your system's linker (not GNU ld)
  7709. case $host_os in
  7710. aix3*)
  7711. allow_undefined_flag=unsupported
  7712. always_export_symbols=yes
  7713. 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'
  7714. # Note: this linker hardcodes the directories in LIBPATH if there
  7715. # are no directories specified by -L.
  7716. hardcode_minus_L=yes
  7717. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7718. # Neither direct hardcoding nor static linking is supported with a
  7719. # broken collect2.
  7720. hardcode_direct=unsupported
  7721. fi
  7722. ;;
  7723. aix[4-9]*)
  7724. if test "$host_cpu" = ia64; then
  7725. # On IA64, the linker does run time linking by default, so we don't
  7726. # have to do anything special.
  7727. aix_use_runtimelinking=no
  7728. exp_sym_flag='-Bexport'
  7729. no_entry_flag=""
  7730. else
  7731. # If we're using GNU nm, then we don't want the "-C" option.
  7732. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7733. # Also, AIX nm treats weak defined symbols like other global
  7734. # defined symbols, whereas GNU nm marks them as "W".
  7735. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7736. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7737. else
  7738. 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'
  7739. fi
  7740. aix_use_runtimelinking=no
  7741. # Test if we are trying to use run time linking or normal
  7742. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7743. # need to do runtime linking.
  7744. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7745. for ld_flag in $LDFLAGS; do
  7746. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7747. aix_use_runtimelinking=yes
  7748. break
  7749. fi
  7750. done
  7751. ;;
  7752. esac
  7753. exp_sym_flag='-bexport'
  7754. no_entry_flag='-bnoentry'
  7755. fi
  7756. # When large executables or shared objects are built, AIX ld can
  7757. # have problems creating the table of contents. If linking a library
  7758. # or program results in "error TOC overflow" add -mminimal-toc to
  7759. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7760. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7761. archive_cmds=''
  7762. hardcode_direct=yes
  7763. hardcode_direct_absolute=yes
  7764. hardcode_libdir_separator=':'
  7765. link_all_deplibs=yes
  7766. file_list_spec='${wl}-f,'
  7767. if test "$GCC" = yes; then
  7768. case $host_os in aix4.[012]|aix4.[012].*)
  7769. # We only want to do this on AIX 4.2 and lower, the check
  7770. # below for broken collect2 doesn't work under 4.3+
  7771. collect2name=`${CC} -print-prog-name=collect2`
  7772. if test -f "$collect2name" &&
  7773. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7774. then
  7775. # We have reworked collect2
  7776. :
  7777. else
  7778. # We have old collect2
  7779. hardcode_direct=unsupported
  7780. # It fails to find uninstalled libraries when the uninstalled
  7781. # path is not listed in the libpath. Setting hardcode_minus_L
  7782. # to unsupported forces relinking
  7783. hardcode_minus_L=yes
  7784. hardcode_libdir_flag_spec='-L$libdir'
  7785. hardcode_libdir_separator=
  7786. fi
  7787. ;;
  7788. esac
  7789. shared_flag='-shared'
  7790. if test "$aix_use_runtimelinking" = yes; then
  7791. shared_flag="$shared_flag "'${wl}-G'
  7792. fi
  7793. else
  7794. # not using gcc
  7795. if test "$host_cpu" = ia64; then
  7796. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7797. # chokes on -Wl,-G. The following line is correct:
  7798. shared_flag='-G'
  7799. else
  7800. if test "$aix_use_runtimelinking" = yes; then
  7801. shared_flag='${wl}-G'
  7802. else
  7803. shared_flag='${wl}-bM:SRE'
  7804. fi
  7805. fi
  7806. fi
  7807. export_dynamic_flag_spec='${wl}-bexpall'
  7808. # It seems that -bexpall does not export symbols beginning with
  7809. # underscore (_), so it is better to generate a list of symbols to export.
  7810. always_export_symbols=yes
  7811. if test "$aix_use_runtimelinking" = yes; then
  7812. # Warning - without using the other runtime loading flags (-brtl),
  7813. # -berok will link without error, but may produce a broken library.
  7814. allow_undefined_flag='-berok'
  7815. # Determine the default libpath from the value encoded in an
  7816. # empty executable.
  7817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7818. /* end confdefs.h. */
  7819. int
  7820. main ()
  7821. {
  7822. ;
  7823. return 0;
  7824. }
  7825. _ACEOF
  7826. if ac_fn_c_try_link "$LINENO"; then :
  7827. lt_aix_libpath_sed='
  7828. /Import File Strings/,/^$/ {
  7829. /^0/ {
  7830. s/^0 *\(.*\)$/\1/
  7831. p
  7832. }
  7833. }'
  7834. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7835. # Check for a 64-bit object if we didn't find anything.
  7836. if test -z "$aix_libpath"; then
  7837. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7838. fi
  7839. fi
  7840. rm -f core conftest.err conftest.$ac_objext \
  7841. conftest$ac_exeext conftest.$ac_ext
  7842. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7843. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7844. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7845. else
  7846. if test "$host_cpu" = ia64; then
  7847. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7848. allow_undefined_flag="-z nodefs"
  7849. 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"
  7850. else
  7851. # Determine the default libpath from the value encoded in an
  7852. # empty executable.
  7853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7854. /* end confdefs.h. */
  7855. int
  7856. main ()
  7857. {
  7858. ;
  7859. return 0;
  7860. }
  7861. _ACEOF
  7862. if ac_fn_c_try_link "$LINENO"; then :
  7863. lt_aix_libpath_sed='
  7864. /Import File Strings/,/^$/ {
  7865. /^0/ {
  7866. s/^0 *\(.*\)$/\1/
  7867. p
  7868. }
  7869. }'
  7870. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7871. # Check for a 64-bit object if we didn't find anything.
  7872. if test -z "$aix_libpath"; then
  7873. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7874. fi
  7875. fi
  7876. rm -f core conftest.err conftest.$ac_objext \
  7877. conftest$ac_exeext conftest.$ac_ext
  7878. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7879. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7880. # Warning - without using the other run time loading flags,
  7881. # -berok will link without error, but may produce a broken library.
  7882. no_undefined_flag=' ${wl}-bernotok'
  7883. allow_undefined_flag=' ${wl}-berok'
  7884. if test "$with_gnu_ld" = yes; then
  7885. # We only use this code for GNU lds that support --whole-archive.
  7886. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7887. else
  7888. # Exported symbols can be pulled into shared objects from archives
  7889. whole_archive_flag_spec='$convenience'
  7890. fi
  7891. archive_cmds_need_lc=yes
  7892. # This is similar to how AIX traditionally builds its shared libraries.
  7893. 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'
  7894. fi
  7895. fi
  7896. ;;
  7897. amigaos*)
  7898. case $host_cpu in
  7899. powerpc)
  7900. # see comment about AmigaOS4 .so support
  7901. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7902. archive_expsym_cmds=''
  7903. ;;
  7904. m68k)
  7905. 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)'
  7906. hardcode_libdir_flag_spec='-L$libdir'
  7907. hardcode_minus_L=yes
  7908. ;;
  7909. esac
  7910. ;;
  7911. bsdi[45]*)
  7912. export_dynamic_flag_spec=-rdynamic
  7913. ;;
  7914. cygwin* | mingw* | pw32* | cegcc*)
  7915. # When not using gcc, we currently assume that we are using
  7916. # Microsoft Visual C++.
  7917. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7918. # no search path for DLLs.
  7919. hardcode_libdir_flag_spec=' '
  7920. allow_undefined_flag=unsupported
  7921. # Tell ltmain to make .lib files, not .a files.
  7922. libext=lib
  7923. # Tell ltmain to make .dll files, not .so files.
  7924. shrext_cmds=".dll"
  7925. # FIXME: Setting linknames here is a bad hack.
  7926. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7927. # The linker will automatically build a .lib file if we build a DLL.
  7928. old_archive_from_new_cmds='true'
  7929. # FIXME: Should let the user specify the lib program.
  7930. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7931. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7932. enable_shared_with_static_runtimes=yes
  7933. ;;
  7934. darwin* | rhapsody*)
  7935. archive_cmds_need_lc=no
  7936. hardcode_direct=no
  7937. hardcode_automatic=yes
  7938. hardcode_shlibpath_var=unsupported
  7939. if test "$lt_cv_ld_force_load" = "yes"; then
  7940. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  7941. else
  7942. whole_archive_flag_spec=''
  7943. fi
  7944. link_all_deplibs=yes
  7945. allow_undefined_flag="$_lt_dar_allow_undefined"
  7946. case $cc_basename in
  7947. ifort*) _lt_dar_can_shared=yes ;;
  7948. *) _lt_dar_can_shared=$GCC ;;
  7949. esac
  7950. if test "$_lt_dar_can_shared" = "yes"; then
  7951. output_verbose_link_cmd=func_echo_all
  7952. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7953. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7954. 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}"
  7955. 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}"
  7956. else
  7957. ld_shlibs=no
  7958. fi
  7959. ;;
  7960. dgux*)
  7961. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7962. hardcode_libdir_flag_spec='-L$libdir'
  7963. hardcode_shlibpath_var=no
  7964. ;;
  7965. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7966. # support. Future versions do this automatically, but an explicit c++rt0.o
  7967. # does not break anything, and helps significantly (at the cost of a little
  7968. # extra space).
  7969. freebsd2.2*)
  7970. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7971. hardcode_libdir_flag_spec='-R$libdir'
  7972. hardcode_direct=yes
  7973. hardcode_shlibpath_var=no
  7974. ;;
  7975. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7976. freebsd2.*)
  7977. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7978. hardcode_direct=yes
  7979. hardcode_minus_L=yes
  7980. hardcode_shlibpath_var=no
  7981. ;;
  7982. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7983. freebsd* | dragonfly*)
  7984. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7985. hardcode_libdir_flag_spec='-R$libdir'
  7986. hardcode_direct=yes
  7987. hardcode_shlibpath_var=no
  7988. ;;
  7989. hpux9*)
  7990. if test "$GCC" = yes; then
  7991. 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'
  7992. else
  7993. 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'
  7994. fi
  7995. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7996. hardcode_libdir_separator=:
  7997. hardcode_direct=yes
  7998. # hardcode_minus_L: Not really in the search PATH,
  7999. # but as the default location of the library.
  8000. hardcode_minus_L=yes
  8001. export_dynamic_flag_spec='${wl}-E'
  8002. ;;
  8003. hpux10*)
  8004. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8005. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8006. else
  8007. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8008. fi
  8009. if test "$with_gnu_ld" = no; then
  8010. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8011. hardcode_libdir_flag_spec_ld='+b $libdir'
  8012. hardcode_libdir_separator=:
  8013. hardcode_direct=yes
  8014. hardcode_direct_absolute=yes
  8015. export_dynamic_flag_spec='${wl}-E'
  8016. # hardcode_minus_L: Not really in the search PATH,
  8017. # but as the default location of the library.
  8018. hardcode_minus_L=yes
  8019. fi
  8020. ;;
  8021. hpux11*)
  8022. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8023. case $host_cpu in
  8024. hppa*64*)
  8025. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8026. ;;
  8027. ia64*)
  8028. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8029. ;;
  8030. *)
  8031. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8032. ;;
  8033. esac
  8034. else
  8035. case $host_cpu in
  8036. hppa*64*)
  8037. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8038. ;;
  8039. ia64*)
  8040. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8041. ;;
  8042. *)
  8043. # Older versions of the 11.00 compiler do not understand -b yet
  8044. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8046. $as_echo_n "checking if $CC understands -b... " >&6; }
  8047. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8048. $as_echo_n "(cached) " >&6
  8049. else
  8050. lt_cv_prog_compiler__b=no
  8051. save_LDFLAGS="$LDFLAGS"
  8052. LDFLAGS="$LDFLAGS -b"
  8053. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8054. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8055. # The linker can only warn and ignore the option if not recognized
  8056. # So say no if there are warnings
  8057. if test -s conftest.err; then
  8058. # Append any errors to the config.log.
  8059. cat conftest.err 1>&5
  8060. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8061. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8062. if diff conftest.exp conftest.er2 >/dev/null; then
  8063. lt_cv_prog_compiler__b=yes
  8064. fi
  8065. else
  8066. lt_cv_prog_compiler__b=yes
  8067. fi
  8068. fi
  8069. $RM -r conftest*
  8070. LDFLAGS="$save_LDFLAGS"
  8071. fi
  8072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8073. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8074. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8075. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8076. else
  8077. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8078. fi
  8079. ;;
  8080. esac
  8081. fi
  8082. if test "$with_gnu_ld" = no; then
  8083. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8084. hardcode_libdir_separator=:
  8085. case $host_cpu in
  8086. hppa*64*|ia64*)
  8087. hardcode_direct=no
  8088. hardcode_shlibpath_var=no
  8089. ;;
  8090. *)
  8091. hardcode_direct=yes
  8092. hardcode_direct_absolute=yes
  8093. export_dynamic_flag_spec='${wl}-E'
  8094. # hardcode_minus_L: Not really in the search PATH,
  8095. # but as the default location of the library.
  8096. hardcode_minus_L=yes
  8097. ;;
  8098. esac
  8099. fi
  8100. ;;
  8101. irix5* | irix6* | nonstopux*)
  8102. if test "$GCC" = yes; then
  8103. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8104. # Try to use the -exported_symbol ld option, if it does not
  8105. # work, assume that -exports_file does not work either and
  8106. # implicitly export all symbols.
  8107. save_LDFLAGS="$LDFLAGS"
  8108. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8110. /* end confdefs.h. */
  8111. int foo(void) {}
  8112. _ACEOF
  8113. if ac_fn_c_try_link "$LINENO"; then :
  8114. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8115. fi
  8116. rm -f core conftest.err conftest.$ac_objext \
  8117. conftest$ac_exeext conftest.$ac_ext
  8118. LDFLAGS="$save_LDFLAGS"
  8119. else
  8120. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8121. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8122. fi
  8123. archive_cmds_need_lc='no'
  8124. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8125. hardcode_libdir_separator=:
  8126. inherit_rpath=yes
  8127. link_all_deplibs=yes
  8128. ;;
  8129. netbsd*)
  8130. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8131. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8132. else
  8133. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8134. fi
  8135. hardcode_libdir_flag_spec='-R$libdir'
  8136. hardcode_direct=yes
  8137. hardcode_shlibpath_var=no
  8138. ;;
  8139. newsos6)
  8140. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8141. hardcode_direct=yes
  8142. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8143. hardcode_libdir_separator=:
  8144. hardcode_shlibpath_var=no
  8145. ;;
  8146. *nto* | *qnx*)
  8147. ;;
  8148. openbsd*)
  8149. if test -f /usr/libexec/ld.so; then
  8150. hardcode_direct=yes
  8151. hardcode_shlibpath_var=no
  8152. hardcode_direct_absolute=yes
  8153. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8154. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8155. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8156. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8157. export_dynamic_flag_spec='${wl}-E'
  8158. else
  8159. case $host_os in
  8160. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8161. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8162. hardcode_libdir_flag_spec='-R$libdir'
  8163. ;;
  8164. *)
  8165. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8166. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8167. ;;
  8168. esac
  8169. fi
  8170. else
  8171. ld_shlibs=no
  8172. fi
  8173. ;;
  8174. os2*)
  8175. hardcode_libdir_flag_spec='-L$libdir'
  8176. hardcode_minus_L=yes
  8177. allow_undefined_flag=unsupported
  8178. 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'
  8179. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8180. ;;
  8181. osf3*)
  8182. if test "$GCC" = yes; then
  8183. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8184. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8185. else
  8186. allow_undefined_flag=' -expect_unresolved \*'
  8187. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8188. fi
  8189. archive_cmds_need_lc='no'
  8190. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8191. hardcode_libdir_separator=:
  8192. ;;
  8193. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8194. if test "$GCC" = yes; then
  8195. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8196. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8197. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8198. else
  8199. allow_undefined_flag=' -expect_unresolved \*'
  8200. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8201. 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~
  8202. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8203. # Both c and cxx compiler support -rpath directly
  8204. hardcode_libdir_flag_spec='-rpath $libdir'
  8205. fi
  8206. archive_cmds_need_lc='no'
  8207. hardcode_libdir_separator=:
  8208. ;;
  8209. solaris*)
  8210. no_undefined_flag=' -z defs'
  8211. if test "$GCC" = yes; then
  8212. wlarc='${wl}'
  8213. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8214. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8215. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8216. else
  8217. case `$CC -V 2>&1` in
  8218. *"Compilers 5.0"*)
  8219. wlarc=''
  8220. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8221. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8222. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8223. ;;
  8224. *)
  8225. wlarc='${wl}'
  8226. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8227. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8228. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8229. ;;
  8230. esac
  8231. fi
  8232. hardcode_libdir_flag_spec='-R$libdir'
  8233. hardcode_shlibpath_var=no
  8234. case $host_os in
  8235. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8236. *)
  8237. # The compiler driver will combine and reorder linker options,
  8238. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8239. # but is careful enough not to reorder.
  8240. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8241. if test "$GCC" = yes; then
  8242. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8243. else
  8244. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8245. fi
  8246. ;;
  8247. esac
  8248. link_all_deplibs=yes
  8249. ;;
  8250. sunos4*)
  8251. if test "x$host_vendor" = xsequent; then
  8252. # Use $CC to link under sequent, because it throws in some extra .o
  8253. # files that make .init and .fini sections work.
  8254. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8255. else
  8256. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8257. fi
  8258. hardcode_libdir_flag_spec='-L$libdir'
  8259. hardcode_direct=yes
  8260. hardcode_minus_L=yes
  8261. hardcode_shlibpath_var=no
  8262. ;;
  8263. sysv4)
  8264. case $host_vendor in
  8265. sni)
  8266. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8267. hardcode_direct=yes # is this really true???
  8268. ;;
  8269. siemens)
  8270. ## LD is ld it makes a PLAMLIB
  8271. ## CC just makes a GrossModule.
  8272. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8273. reload_cmds='$CC -r -o $output$reload_objs'
  8274. hardcode_direct=no
  8275. ;;
  8276. motorola)
  8277. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8278. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8279. ;;
  8280. esac
  8281. runpath_var='LD_RUN_PATH'
  8282. hardcode_shlibpath_var=no
  8283. ;;
  8284. sysv4.3*)
  8285. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8286. hardcode_shlibpath_var=no
  8287. export_dynamic_flag_spec='-Bexport'
  8288. ;;
  8289. sysv4*MP*)
  8290. if test -d /usr/nec; then
  8291. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8292. hardcode_shlibpath_var=no
  8293. runpath_var=LD_RUN_PATH
  8294. hardcode_runpath_var=yes
  8295. ld_shlibs=yes
  8296. fi
  8297. ;;
  8298. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8299. no_undefined_flag='${wl}-z,text'
  8300. archive_cmds_need_lc=no
  8301. hardcode_shlibpath_var=no
  8302. runpath_var='LD_RUN_PATH'
  8303. if test "$GCC" = yes; then
  8304. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8305. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8306. else
  8307. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8308. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8309. fi
  8310. ;;
  8311. sysv5* | sco3.2v5* | sco5v6*)
  8312. # Note: We can NOT use -z defs as we might desire, because we do not
  8313. # link with -lc, and that would cause any symbols used from libc to
  8314. # always be unresolved, which means just about no library would
  8315. # ever link correctly. If we're not using GNU ld we use -z text
  8316. # though, which does catch some bad symbols but isn't as heavy-handed
  8317. # as -z defs.
  8318. no_undefined_flag='${wl}-z,text'
  8319. allow_undefined_flag='${wl}-z,nodefs'
  8320. archive_cmds_need_lc=no
  8321. hardcode_shlibpath_var=no
  8322. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8323. hardcode_libdir_separator=':'
  8324. link_all_deplibs=yes
  8325. export_dynamic_flag_spec='${wl}-Bexport'
  8326. runpath_var='LD_RUN_PATH'
  8327. if test "$GCC" = yes; then
  8328. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8329. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8330. else
  8331. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8332. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8333. fi
  8334. ;;
  8335. uts4*)
  8336. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8337. hardcode_libdir_flag_spec='-L$libdir'
  8338. hardcode_shlibpath_var=no
  8339. ;;
  8340. *)
  8341. ld_shlibs=no
  8342. ;;
  8343. esac
  8344. if test x$host_vendor = xsni; then
  8345. case $host in
  8346. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8347. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8348. ;;
  8349. esac
  8350. fi
  8351. fi
  8352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8353. $as_echo "$ld_shlibs" >&6; }
  8354. test "$ld_shlibs" = no && can_build_shared=no
  8355. with_gnu_ld=$with_gnu_ld
  8356. #
  8357. # Do we need to explicitly link libc?
  8358. #
  8359. case "x$archive_cmds_need_lc" in
  8360. x|xyes)
  8361. # Assume -lc should be added
  8362. archive_cmds_need_lc=yes
  8363. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8364. case $archive_cmds in
  8365. *'~'*)
  8366. # FIXME: we may have to deal with multi-command sequences.
  8367. ;;
  8368. '$CC '*)
  8369. # Test whether the compiler implicitly links with -lc since on some
  8370. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8371. # to ld, don't add -lc before -lgcc.
  8372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8373. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8374. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8375. $as_echo_n "(cached) " >&6
  8376. else
  8377. $RM conftest*
  8378. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8379. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8380. (eval $ac_compile) 2>&5
  8381. ac_status=$?
  8382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8383. test $ac_status = 0; } 2>conftest.err; then
  8384. soname=conftest
  8385. lib=conftest
  8386. libobjs=conftest.$ac_objext
  8387. deplibs=
  8388. wl=$lt_prog_compiler_wl
  8389. pic_flag=$lt_prog_compiler_pic
  8390. compiler_flags=-v
  8391. linker_flags=-v
  8392. verstring=
  8393. output_objdir=.
  8394. libname=conftest
  8395. lt_save_allow_undefined_flag=$allow_undefined_flag
  8396. allow_undefined_flag=
  8397. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8398. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8399. ac_status=$?
  8400. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8401. test $ac_status = 0; }
  8402. then
  8403. lt_cv_archive_cmds_need_lc=no
  8404. else
  8405. lt_cv_archive_cmds_need_lc=yes
  8406. fi
  8407. allow_undefined_flag=$lt_save_allow_undefined_flag
  8408. else
  8409. cat conftest.err 1>&5
  8410. fi
  8411. $RM conftest*
  8412. fi
  8413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8414. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8415. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8416. ;;
  8417. esac
  8418. fi
  8419. ;;
  8420. esac
  8421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8422. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8423. if test "$GCC" = yes; then
  8424. case $host_os in
  8425. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8426. *) lt_awk_arg="/^libraries:/" ;;
  8427. esac
  8428. case $host_os in
  8429. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8430. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8431. esac
  8432. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8433. case $lt_search_path_spec in
  8434. *\;*)
  8435. # if the path contains ";" then we assume it to be the separator
  8436. # otherwise default to the standard path separator (i.e. ":") - it is
  8437. # assumed that no part of a normal pathname contains ";" but that should
  8438. # okay in the real world where ";" in dirpaths is itself problematic.
  8439. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8440. ;;
  8441. *)
  8442. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8443. ;;
  8444. esac
  8445. # Ok, now we have the path, separated by spaces, we can step through it
  8446. # and add multilib dir if necessary.
  8447. lt_tmp_lt_search_path_spec=
  8448. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8449. for lt_sys_path in $lt_search_path_spec; do
  8450. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8451. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8452. else
  8453. test -d "$lt_sys_path" && \
  8454. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8455. fi
  8456. done
  8457. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8458. BEGIN {RS=" "; FS="/|\n";} {
  8459. lt_foo="";
  8460. lt_count=0;
  8461. for (lt_i = NF; lt_i > 0; lt_i--) {
  8462. if ($lt_i != "" && $lt_i != ".") {
  8463. if ($lt_i == "..") {
  8464. lt_count++;
  8465. } else {
  8466. if (lt_count == 0) {
  8467. lt_foo="/" $lt_i lt_foo;
  8468. } else {
  8469. lt_count--;
  8470. }
  8471. }
  8472. }
  8473. }
  8474. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8475. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8476. }'`
  8477. # AWK program above erroneously prepends '/' to C:/dos/paths
  8478. # for these hosts.
  8479. case $host_os in
  8480. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8481. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8482. esac
  8483. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8484. else
  8485. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8486. fi
  8487. library_names_spec=
  8488. libname_spec='lib$name'
  8489. soname_spec=
  8490. shrext_cmds=".so"
  8491. postinstall_cmds=
  8492. postuninstall_cmds=
  8493. finish_cmds=
  8494. finish_eval=
  8495. shlibpath_var=
  8496. shlibpath_overrides_runpath=unknown
  8497. version_type=none
  8498. dynamic_linker="$host_os ld.so"
  8499. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8500. need_lib_prefix=unknown
  8501. hardcode_into_libs=no
  8502. # when you set need_version to no, make sure it does not cause -set_version
  8503. # flags to be left without arguments
  8504. need_version=unknown
  8505. case $host_os in
  8506. aix3*)
  8507. version_type=linux
  8508. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8509. shlibpath_var=LIBPATH
  8510. # AIX 3 has no versioning support, so we append a major version to the name.
  8511. soname_spec='${libname}${release}${shared_ext}$major'
  8512. ;;
  8513. aix[4-9]*)
  8514. version_type=linux
  8515. need_lib_prefix=no
  8516. need_version=no
  8517. hardcode_into_libs=yes
  8518. if test "$host_cpu" = ia64; then
  8519. # AIX 5 supports IA64
  8520. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8521. shlibpath_var=LD_LIBRARY_PATH
  8522. else
  8523. # With GCC up to 2.95.x, collect2 would create an import file
  8524. # for dependence libraries. The import file would start with
  8525. # the line `#! .'. This would cause the generated library to
  8526. # depend on `.', always an invalid library. This was fixed in
  8527. # development snapshots of GCC prior to 3.0.
  8528. case $host_os in
  8529. aix4 | aix4.[01] | aix4.[01].*)
  8530. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8531. echo ' yes '
  8532. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8533. :
  8534. else
  8535. can_build_shared=no
  8536. fi
  8537. ;;
  8538. esac
  8539. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8540. # soname into executable. Probably we can add versioning support to
  8541. # collect2, so additional links can be useful in future.
  8542. if test "$aix_use_runtimelinking" = yes; then
  8543. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8544. # instead of lib<name>.a to let people know that these are not
  8545. # typical AIX shared libraries.
  8546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8547. else
  8548. # We preserve .a as extension for shared libraries through AIX4.2
  8549. # and later when we are not doing run time linking.
  8550. library_names_spec='${libname}${release}.a $libname.a'
  8551. soname_spec='${libname}${release}${shared_ext}$major'
  8552. fi
  8553. shlibpath_var=LIBPATH
  8554. fi
  8555. ;;
  8556. amigaos*)
  8557. case $host_cpu in
  8558. powerpc)
  8559. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8560. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8562. ;;
  8563. m68k)
  8564. library_names_spec='$libname.ixlibrary $libname.a'
  8565. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8566. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8567. ;;
  8568. esac
  8569. ;;
  8570. beos*)
  8571. library_names_spec='${libname}${shared_ext}'
  8572. dynamic_linker="$host_os ld.so"
  8573. shlibpath_var=LIBRARY_PATH
  8574. ;;
  8575. bsdi[45]*)
  8576. version_type=linux
  8577. need_version=no
  8578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8579. soname_spec='${libname}${release}${shared_ext}$major'
  8580. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8581. shlibpath_var=LD_LIBRARY_PATH
  8582. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8583. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8584. # the default ld.so.conf also contains /usr/contrib/lib and
  8585. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8586. # libtool to hard-code these into programs
  8587. ;;
  8588. cygwin* | mingw* | pw32* | cegcc*)
  8589. version_type=windows
  8590. shrext_cmds=".dll"
  8591. need_version=no
  8592. need_lib_prefix=no
  8593. case $GCC,$host_os in
  8594. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8595. library_names_spec='$libname.dll.a'
  8596. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8597. postinstall_cmds='base_file=`basename \${file}`~
  8598. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8599. dldir=$destdir/`dirname \$dlpath`~
  8600. test -d \$dldir || mkdir -p \$dldir~
  8601. $install_prog $dir/$dlname \$dldir/$dlname~
  8602. chmod a+x \$dldir/$dlname~
  8603. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8604. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8605. fi'
  8606. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8607. dlpath=$dir/\$dldll~
  8608. $RM \$dlpath'
  8609. shlibpath_overrides_runpath=yes
  8610. case $host_os in
  8611. cygwin*)
  8612. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8613. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8614. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8615. ;;
  8616. mingw* | cegcc*)
  8617. # MinGW DLLs use traditional 'lib' prefix
  8618. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8619. ;;
  8620. pw32*)
  8621. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8622. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8623. ;;
  8624. esac
  8625. ;;
  8626. *)
  8627. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8628. ;;
  8629. esac
  8630. dynamic_linker='Win32 ld.exe'
  8631. # FIXME: first we should search . and the directory the executable is in
  8632. shlibpath_var=PATH
  8633. ;;
  8634. darwin* | rhapsody*)
  8635. dynamic_linker="$host_os dyld"
  8636. version_type=darwin
  8637. need_lib_prefix=no
  8638. need_version=no
  8639. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8640. soname_spec='${libname}${release}${major}$shared_ext'
  8641. shlibpath_overrides_runpath=yes
  8642. shlibpath_var=DYLD_LIBRARY_PATH
  8643. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8644. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8645. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8646. ;;
  8647. dgux*)
  8648. version_type=linux
  8649. need_lib_prefix=no
  8650. need_version=no
  8651. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8652. soname_spec='${libname}${release}${shared_ext}$major'
  8653. shlibpath_var=LD_LIBRARY_PATH
  8654. ;;
  8655. freebsd* | dragonfly*)
  8656. # DragonFly does not have aout. When/if they implement a new
  8657. # versioning mechanism, adjust this.
  8658. if test -x /usr/bin/objformat; then
  8659. objformat=`/usr/bin/objformat`
  8660. else
  8661. case $host_os in
  8662. freebsd[23].*) objformat=aout ;;
  8663. *) objformat=elf ;;
  8664. esac
  8665. fi
  8666. version_type=freebsd-$objformat
  8667. case $version_type in
  8668. freebsd-elf*)
  8669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8670. need_version=no
  8671. need_lib_prefix=no
  8672. ;;
  8673. freebsd-*)
  8674. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8675. need_version=yes
  8676. ;;
  8677. esac
  8678. shlibpath_var=LD_LIBRARY_PATH
  8679. case $host_os in
  8680. freebsd2.*)
  8681. shlibpath_overrides_runpath=yes
  8682. ;;
  8683. freebsd3.[01]* | freebsdelf3.[01]*)
  8684. shlibpath_overrides_runpath=yes
  8685. hardcode_into_libs=yes
  8686. ;;
  8687. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8688. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8689. shlibpath_overrides_runpath=no
  8690. hardcode_into_libs=yes
  8691. ;;
  8692. *) # from 4.6 on, and DragonFly
  8693. shlibpath_overrides_runpath=yes
  8694. hardcode_into_libs=yes
  8695. ;;
  8696. esac
  8697. ;;
  8698. gnu*)
  8699. version_type=linux
  8700. need_lib_prefix=no
  8701. need_version=no
  8702. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8703. soname_spec='${libname}${release}${shared_ext}$major'
  8704. shlibpath_var=LD_LIBRARY_PATH
  8705. hardcode_into_libs=yes
  8706. ;;
  8707. haiku*)
  8708. version_type=linux
  8709. need_lib_prefix=no
  8710. need_version=no
  8711. dynamic_linker="$host_os runtime_loader"
  8712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8713. soname_spec='${libname}${release}${shared_ext}$major'
  8714. shlibpath_var=LIBRARY_PATH
  8715. shlibpath_overrides_runpath=yes
  8716. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8717. hardcode_into_libs=yes
  8718. ;;
  8719. hpux9* | hpux10* | hpux11*)
  8720. # Give a soname corresponding to the major version so that dld.sl refuses to
  8721. # link against other versions.
  8722. version_type=sunos
  8723. need_lib_prefix=no
  8724. need_version=no
  8725. case $host_cpu in
  8726. ia64*)
  8727. shrext_cmds='.so'
  8728. hardcode_into_libs=yes
  8729. dynamic_linker="$host_os dld.so"
  8730. shlibpath_var=LD_LIBRARY_PATH
  8731. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8733. soname_spec='${libname}${release}${shared_ext}$major'
  8734. if test "X$HPUX_IA64_MODE" = X32; then
  8735. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8736. else
  8737. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8738. fi
  8739. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8740. ;;
  8741. hppa*64*)
  8742. shrext_cmds='.sl'
  8743. hardcode_into_libs=yes
  8744. dynamic_linker="$host_os dld.sl"
  8745. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8746. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8748. soname_spec='${libname}${release}${shared_ext}$major'
  8749. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8750. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8751. ;;
  8752. *)
  8753. shrext_cmds='.sl'
  8754. dynamic_linker="$host_os dld.sl"
  8755. shlibpath_var=SHLIB_PATH
  8756. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8758. soname_spec='${libname}${release}${shared_ext}$major'
  8759. ;;
  8760. esac
  8761. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8762. postinstall_cmds='chmod 555 $lib'
  8763. # or fails outright, so override atomically:
  8764. install_override_mode=555
  8765. ;;
  8766. interix[3-9]*)
  8767. version_type=linux
  8768. need_lib_prefix=no
  8769. need_version=no
  8770. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8771. soname_spec='${libname}${release}${shared_ext}$major'
  8772. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8773. shlibpath_var=LD_LIBRARY_PATH
  8774. shlibpath_overrides_runpath=no
  8775. hardcode_into_libs=yes
  8776. ;;
  8777. irix5* | irix6* | nonstopux*)
  8778. case $host_os in
  8779. nonstopux*) version_type=nonstopux ;;
  8780. *)
  8781. if test "$lt_cv_prog_gnu_ld" = yes; then
  8782. version_type=linux
  8783. else
  8784. version_type=irix
  8785. fi ;;
  8786. esac
  8787. need_lib_prefix=no
  8788. need_version=no
  8789. soname_spec='${libname}${release}${shared_ext}$major'
  8790. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8791. case $host_os in
  8792. irix5* | nonstopux*)
  8793. libsuff= shlibsuff=
  8794. ;;
  8795. *)
  8796. case $LD in # libtool.m4 will add one of these switches to LD
  8797. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8798. libsuff= shlibsuff= libmagic=32-bit;;
  8799. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8800. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8801. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8802. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8803. *) libsuff= shlibsuff= libmagic=never-match;;
  8804. esac
  8805. ;;
  8806. esac
  8807. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8808. shlibpath_overrides_runpath=no
  8809. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8810. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8811. hardcode_into_libs=yes
  8812. ;;
  8813. # No shared lib support for Linux oldld, aout, or coff.
  8814. linux*oldld* | linux*aout* | linux*coff*)
  8815. dynamic_linker=no
  8816. ;;
  8817. # This must be Linux ELF.
  8818. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8819. version_type=linux
  8820. need_lib_prefix=no
  8821. need_version=no
  8822. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8823. soname_spec='${libname}${release}${shared_ext}$major'
  8824. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8825. shlibpath_var=LD_LIBRARY_PATH
  8826. shlibpath_overrides_runpath=no
  8827. # Some binutils ld are patched to set DT_RUNPATH
  8828. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  8829. $as_echo_n "(cached) " >&6
  8830. else
  8831. lt_cv_shlibpath_overrides_runpath=no
  8832. save_LDFLAGS=$LDFLAGS
  8833. save_libdir=$libdir
  8834. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8835. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8837. /* end confdefs.h. */
  8838. int
  8839. main ()
  8840. {
  8841. ;
  8842. return 0;
  8843. }
  8844. _ACEOF
  8845. if ac_fn_c_try_link "$LINENO"; then :
  8846. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8847. lt_cv_shlibpath_overrides_runpath=yes
  8848. fi
  8849. fi
  8850. rm -f core conftest.err conftest.$ac_objext \
  8851. conftest$ac_exeext conftest.$ac_ext
  8852. LDFLAGS=$save_LDFLAGS
  8853. libdir=$save_libdir
  8854. fi
  8855. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8856. # This implies no fast_install, which is unacceptable.
  8857. # Some rework will be needed to allow for fast_install
  8858. # before this can be enabled.
  8859. hardcode_into_libs=yes
  8860. # Append ld.so.conf contents to the search path
  8861. if test -f /etc/ld.so.conf; then
  8862. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  8863. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8864. fi
  8865. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8866. # powerpc, because MkLinux only supported shared libraries with the
  8867. # GNU dynamic linker. Since this was broken with cross compilers,
  8868. # most powerpc-linux boxes support dynamic linking these days and
  8869. # people can always --disable-shared, the test was removed, and we
  8870. # assume the GNU/Linux dynamic linker is in use.
  8871. dynamic_linker='GNU/Linux ld.so'
  8872. ;;
  8873. netbsd*)
  8874. version_type=sunos
  8875. need_lib_prefix=no
  8876. need_version=no
  8877. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8879. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8880. dynamic_linker='NetBSD (a.out) ld.so'
  8881. else
  8882. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8883. soname_spec='${libname}${release}${shared_ext}$major'
  8884. dynamic_linker='NetBSD ld.elf_so'
  8885. fi
  8886. shlibpath_var=LD_LIBRARY_PATH
  8887. shlibpath_overrides_runpath=yes
  8888. hardcode_into_libs=yes
  8889. ;;
  8890. newsos6)
  8891. version_type=linux
  8892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8893. shlibpath_var=LD_LIBRARY_PATH
  8894. shlibpath_overrides_runpath=yes
  8895. ;;
  8896. *nto* | *qnx*)
  8897. version_type=qnx
  8898. need_lib_prefix=no
  8899. need_version=no
  8900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8901. soname_spec='${libname}${release}${shared_ext}$major'
  8902. shlibpath_var=LD_LIBRARY_PATH
  8903. shlibpath_overrides_runpath=no
  8904. hardcode_into_libs=yes
  8905. dynamic_linker='ldqnx.so'
  8906. ;;
  8907. openbsd*)
  8908. version_type=sunos
  8909. sys_lib_dlsearch_path_spec="/usr/lib"
  8910. need_lib_prefix=no
  8911. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8912. case $host_os in
  8913. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8914. *) need_version=no ;;
  8915. esac
  8916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8917. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8918. shlibpath_var=LD_LIBRARY_PATH
  8919. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8920. case $host_os in
  8921. openbsd2.[89] | openbsd2.[89].*)
  8922. shlibpath_overrides_runpath=no
  8923. ;;
  8924. *)
  8925. shlibpath_overrides_runpath=yes
  8926. ;;
  8927. esac
  8928. else
  8929. shlibpath_overrides_runpath=yes
  8930. fi
  8931. ;;
  8932. os2*)
  8933. libname_spec='$name'
  8934. shrext_cmds=".dll"
  8935. need_lib_prefix=no
  8936. library_names_spec='$libname${shared_ext} $libname.a'
  8937. dynamic_linker='OS/2 ld.exe'
  8938. shlibpath_var=LIBPATH
  8939. ;;
  8940. osf3* | osf4* | osf5*)
  8941. version_type=osf
  8942. need_lib_prefix=no
  8943. need_version=no
  8944. soname_spec='${libname}${release}${shared_ext}$major'
  8945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8946. shlibpath_var=LD_LIBRARY_PATH
  8947. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8948. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8949. ;;
  8950. rdos*)
  8951. dynamic_linker=no
  8952. ;;
  8953. solaris*)
  8954. version_type=linux
  8955. need_lib_prefix=no
  8956. need_version=no
  8957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8958. soname_spec='${libname}${release}${shared_ext}$major'
  8959. shlibpath_var=LD_LIBRARY_PATH
  8960. shlibpath_overrides_runpath=yes
  8961. hardcode_into_libs=yes
  8962. # ldd complains unless libraries are executable
  8963. postinstall_cmds='chmod +x $lib'
  8964. ;;
  8965. sunos4*)
  8966. version_type=sunos
  8967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8968. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8969. shlibpath_var=LD_LIBRARY_PATH
  8970. shlibpath_overrides_runpath=yes
  8971. if test "$with_gnu_ld" = yes; then
  8972. need_lib_prefix=no
  8973. fi
  8974. need_version=yes
  8975. ;;
  8976. sysv4 | sysv4.3*)
  8977. version_type=linux
  8978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8979. soname_spec='${libname}${release}${shared_ext}$major'
  8980. shlibpath_var=LD_LIBRARY_PATH
  8981. case $host_vendor in
  8982. sni)
  8983. shlibpath_overrides_runpath=no
  8984. need_lib_prefix=no
  8985. runpath_var=LD_RUN_PATH
  8986. ;;
  8987. siemens)
  8988. need_lib_prefix=no
  8989. ;;
  8990. motorola)
  8991. need_lib_prefix=no
  8992. need_version=no
  8993. shlibpath_overrides_runpath=no
  8994. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8995. ;;
  8996. esac
  8997. ;;
  8998. sysv4*MP*)
  8999. if test -d /usr/nec ;then
  9000. version_type=linux
  9001. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9002. soname_spec='$libname${shared_ext}.$major'
  9003. shlibpath_var=LD_LIBRARY_PATH
  9004. fi
  9005. ;;
  9006. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9007. version_type=freebsd-elf
  9008. need_lib_prefix=no
  9009. need_version=no
  9010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9011. soname_spec='${libname}${release}${shared_ext}$major'
  9012. shlibpath_var=LD_LIBRARY_PATH
  9013. shlibpath_overrides_runpath=yes
  9014. hardcode_into_libs=yes
  9015. if test "$with_gnu_ld" = yes; then
  9016. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9017. else
  9018. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9019. case $host_os in
  9020. sco3.2v5*)
  9021. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9022. ;;
  9023. esac
  9024. fi
  9025. sys_lib_dlsearch_path_spec='/usr/lib'
  9026. ;;
  9027. tpf*)
  9028. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9029. version_type=linux
  9030. need_lib_prefix=no
  9031. need_version=no
  9032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9033. shlibpath_var=LD_LIBRARY_PATH
  9034. shlibpath_overrides_runpath=no
  9035. hardcode_into_libs=yes
  9036. ;;
  9037. uts4*)
  9038. version_type=linux
  9039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9040. soname_spec='${libname}${release}${shared_ext}$major'
  9041. shlibpath_var=LD_LIBRARY_PATH
  9042. ;;
  9043. *)
  9044. dynamic_linker=no
  9045. ;;
  9046. esac
  9047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9048. $as_echo "$dynamic_linker" >&6; }
  9049. test "$dynamic_linker" = no && can_build_shared=no
  9050. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9051. if test "$GCC" = yes; then
  9052. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9053. fi
  9054. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9055. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9056. fi
  9057. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9058. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9059. fi
  9060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9061. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9062. hardcode_action=
  9063. if test -n "$hardcode_libdir_flag_spec" ||
  9064. test -n "$runpath_var" ||
  9065. test "X$hardcode_automatic" = "Xyes" ; then
  9066. # We can hardcode non-existent directories.
  9067. if test "$hardcode_direct" != no &&
  9068. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9069. # have to relink, otherwise we might link with an installed library
  9070. # when we should be linking with a yet-to-be-installed one
  9071. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9072. test "$hardcode_minus_L" != no; then
  9073. # Linking always hardcodes the temporary library directory.
  9074. hardcode_action=relink
  9075. else
  9076. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9077. hardcode_action=immediate
  9078. fi
  9079. else
  9080. # We cannot hardcode anything, or else we can only hardcode existing
  9081. # directories.
  9082. hardcode_action=unsupported
  9083. fi
  9084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9085. $as_echo "$hardcode_action" >&6; }
  9086. if test "$hardcode_action" = relink ||
  9087. test "$inherit_rpath" = yes; then
  9088. # Fast installation is not supported
  9089. enable_fast_install=no
  9090. elif test "$shlibpath_overrides_runpath" = yes ||
  9091. test "$enable_shared" = no; then
  9092. # Fast installation is not necessary
  9093. enable_fast_install=needless
  9094. fi
  9095. if test "x$enable_dlopen" != xyes; then
  9096. enable_dlopen=unknown
  9097. enable_dlopen_self=unknown
  9098. enable_dlopen_self_static=unknown
  9099. else
  9100. lt_cv_dlopen=no
  9101. lt_cv_dlopen_libs=
  9102. case $host_os in
  9103. beos*)
  9104. lt_cv_dlopen="load_add_on"
  9105. lt_cv_dlopen_libs=
  9106. lt_cv_dlopen_self=yes
  9107. ;;
  9108. mingw* | pw32* | cegcc*)
  9109. lt_cv_dlopen="LoadLibrary"
  9110. lt_cv_dlopen_libs=
  9111. ;;
  9112. cygwin*)
  9113. lt_cv_dlopen="dlopen"
  9114. lt_cv_dlopen_libs=
  9115. ;;
  9116. darwin*)
  9117. # if libdl is installed we need to link against it
  9118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9119. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9120. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9121. $as_echo_n "(cached) " >&6
  9122. else
  9123. ac_check_lib_save_LIBS=$LIBS
  9124. LIBS="-ldl $LIBS"
  9125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9126. /* end confdefs.h. */
  9127. /* Override any GCC internal prototype to avoid an error.
  9128. Use char because int might match the return type of a GCC
  9129. builtin and then its argument prototype would still apply. */
  9130. #ifdef __cplusplus
  9131. extern "C"
  9132. #endif
  9133. char dlopen ();
  9134. int
  9135. main ()
  9136. {
  9137. return dlopen ();
  9138. ;
  9139. return 0;
  9140. }
  9141. _ACEOF
  9142. if ac_fn_c_try_link "$LINENO"; then :
  9143. ac_cv_lib_dl_dlopen=yes
  9144. else
  9145. ac_cv_lib_dl_dlopen=no
  9146. fi
  9147. rm -f core conftest.err conftest.$ac_objext \
  9148. conftest$ac_exeext conftest.$ac_ext
  9149. LIBS=$ac_check_lib_save_LIBS
  9150. fi
  9151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9152. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9153. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9154. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9155. else
  9156. lt_cv_dlopen="dyld"
  9157. lt_cv_dlopen_libs=
  9158. lt_cv_dlopen_self=yes
  9159. fi
  9160. ;;
  9161. *)
  9162. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9163. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9164. lt_cv_dlopen="shl_load"
  9165. else
  9166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9167. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9168. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9169. $as_echo_n "(cached) " >&6
  9170. else
  9171. ac_check_lib_save_LIBS=$LIBS
  9172. LIBS="-ldld $LIBS"
  9173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9174. /* end confdefs.h. */
  9175. /* Override any GCC internal prototype to avoid an error.
  9176. Use char because int might match the return type of a GCC
  9177. builtin and then its argument prototype would still apply. */
  9178. #ifdef __cplusplus
  9179. extern "C"
  9180. #endif
  9181. char shl_load ();
  9182. int
  9183. main ()
  9184. {
  9185. return shl_load ();
  9186. ;
  9187. return 0;
  9188. }
  9189. _ACEOF
  9190. if ac_fn_c_try_link "$LINENO"; then :
  9191. ac_cv_lib_dld_shl_load=yes
  9192. else
  9193. ac_cv_lib_dld_shl_load=no
  9194. fi
  9195. rm -f core conftest.err conftest.$ac_objext \
  9196. conftest$ac_exeext conftest.$ac_ext
  9197. LIBS=$ac_check_lib_save_LIBS
  9198. fi
  9199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9200. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9201. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9202. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9203. else
  9204. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9205. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9206. lt_cv_dlopen="dlopen"
  9207. else
  9208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9209. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9210. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9211. $as_echo_n "(cached) " >&6
  9212. else
  9213. ac_check_lib_save_LIBS=$LIBS
  9214. LIBS="-ldl $LIBS"
  9215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9216. /* end confdefs.h. */
  9217. /* Override any GCC internal prototype to avoid an error.
  9218. Use char because int might match the return type of a GCC
  9219. builtin and then its argument prototype would still apply. */
  9220. #ifdef __cplusplus
  9221. extern "C"
  9222. #endif
  9223. char dlopen ();
  9224. int
  9225. main ()
  9226. {
  9227. return dlopen ();
  9228. ;
  9229. return 0;
  9230. }
  9231. _ACEOF
  9232. if ac_fn_c_try_link "$LINENO"; then :
  9233. ac_cv_lib_dl_dlopen=yes
  9234. else
  9235. ac_cv_lib_dl_dlopen=no
  9236. fi
  9237. rm -f core conftest.err conftest.$ac_objext \
  9238. conftest$ac_exeext conftest.$ac_ext
  9239. LIBS=$ac_check_lib_save_LIBS
  9240. fi
  9241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9242. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9243. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9244. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9245. else
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9247. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9248. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9249. $as_echo_n "(cached) " >&6
  9250. else
  9251. ac_check_lib_save_LIBS=$LIBS
  9252. LIBS="-lsvld $LIBS"
  9253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9254. /* end confdefs.h. */
  9255. /* Override any GCC internal prototype to avoid an error.
  9256. Use char because int might match the return type of a GCC
  9257. builtin and then its argument prototype would still apply. */
  9258. #ifdef __cplusplus
  9259. extern "C"
  9260. #endif
  9261. char dlopen ();
  9262. int
  9263. main ()
  9264. {
  9265. return dlopen ();
  9266. ;
  9267. return 0;
  9268. }
  9269. _ACEOF
  9270. if ac_fn_c_try_link "$LINENO"; then :
  9271. ac_cv_lib_svld_dlopen=yes
  9272. else
  9273. ac_cv_lib_svld_dlopen=no
  9274. fi
  9275. rm -f core conftest.err conftest.$ac_objext \
  9276. conftest$ac_exeext conftest.$ac_ext
  9277. LIBS=$ac_check_lib_save_LIBS
  9278. fi
  9279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9280. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9281. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9282. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9283. else
  9284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9285. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9286. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9287. $as_echo_n "(cached) " >&6
  9288. else
  9289. ac_check_lib_save_LIBS=$LIBS
  9290. LIBS="-ldld $LIBS"
  9291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9292. /* end confdefs.h. */
  9293. /* Override any GCC internal prototype to avoid an error.
  9294. Use char because int might match the return type of a GCC
  9295. builtin and then its argument prototype would still apply. */
  9296. #ifdef __cplusplus
  9297. extern "C"
  9298. #endif
  9299. char dld_link ();
  9300. int
  9301. main ()
  9302. {
  9303. return dld_link ();
  9304. ;
  9305. return 0;
  9306. }
  9307. _ACEOF
  9308. if ac_fn_c_try_link "$LINENO"; then :
  9309. ac_cv_lib_dld_dld_link=yes
  9310. else
  9311. ac_cv_lib_dld_dld_link=no
  9312. fi
  9313. rm -f core conftest.err conftest.$ac_objext \
  9314. conftest$ac_exeext conftest.$ac_ext
  9315. LIBS=$ac_check_lib_save_LIBS
  9316. fi
  9317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9318. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9319. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9320. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9321. fi
  9322. fi
  9323. fi
  9324. fi
  9325. fi
  9326. fi
  9327. ;;
  9328. esac
  9329. if test "x$lt_cv_dlopen" != xno; then
  9330. enable_dlopen=yes
  9331. else
  9332. enable_dlopen=no
  9333. fi
  9334. case $lt_cv_dlopen in
  9335. dlopen)
  9336. save_CPPFLAGS="$CPPFLAGS"
  9337. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9338. save_LDFLAGS="$LDFLAGS"
  9339. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9340. save_LIBS="$LIBS"
  9341. LIBS="$lt_cv_dlopen_libs $LIBS"
  9342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9343. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9344. if test "${lt_cv_dlopen_self+set}" = set; then :
  9345. $as_echo_n "(cached) " >&6
  9346. else
  9347. if test "$cross_compiling" = yes; then :
  9348. lt_cv_dlopen_self=cross
  9349. else
  9350. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9351. lt_status=$lt_dlunknown
  9352. cat > conftest.$ac_ext <<_LT_EOF
  9353. #line 10900 "configure"
  9354. #include "confdefs.h"
  9355. #if HAVE_DLFCN_H
  9356. #include <dlfcn.h>
  9357. #endif
  9358. #include <stdio.h>
  9359. #ifdef RTLD_GLOBAL
  9360. # define LT_DLGLOBAL RTLD_GLOBAL
  9361. #else
  9362. # ifdef DL_GLOBAL
  9363. # define LT_DLGLOBAL DL_GLOBAL
  9364. # else
  9365. # define LT_DLGLOBAL 0
  9366. # endif
  9367. #endif
  9368. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9369. find out it does not work in some platform. */
  9370. #ifndef LT_DLLAZY_OR_NOW
  9371. # ifdef RTLD_LAZY
  9372. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9373. # else
  9374. # ifdef DL_LAZY
  9375. # define LT_DLLAZY_OR_NOW DL_LAZY
  9376. # else
  9377. # ifdef RTLD_NOW
  9378. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9379. # else
  9380. # ifdef DL_NOW
  9381. # define LT_DLLAZY_OR_NOW DL_NOW
  9382. # else
  9383. # define LT_DLLAZY_OR_NOW 0
  9384. # endif
  9385. # endif
  9386. # endif
  9387. # endif
  9388. #endif
  9389. /* When -fvisbility=hidden is used, assume the code has been annotated
  9390. correspondingly for the symbols needed. */
  9391. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9392. void fnord () __attribute__((visibility("default")));
  9393. #endif
  9394. void fnord () { int i=42; }
  9395. int main ()
  9396. {
  9397. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9398. int status = $lt_dlunknown;
  9399. if (self)
  9400. {
  9401. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9402. else
  9403. {
  9404. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9405. else puts (dlerror ());
  9406. }
  9407. /* dlclose (self); */
  9408. }
  9409. else
  9410. puts (dlerror ());
  9411. return status;
  9412. }
  9413. _LT_EOF
  9414. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9415. (eval $ac_link) 2>&5
  9416. ac_status=$?
  9417. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9418. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9419. (./conftest; exit; ) >&5 2>/dev/null
  9420. lt_status=$?
  9421. case x$lt_status in
  9422. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9423. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9424. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9425. esac
  9426. else :
  9427. # compilation failed
  9428. lt_cv_dlopen_self=no
  9429. fi
  9430. fi
  9431. rm -fr conftest*
  9432. fi
  9433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9434. $as_echo "$lt_cv_dlopen_self" >&6; }
  9435. if test "x$lt_cv_dlopen_self" = xyes; then
  9436. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9438. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9439. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9440. $as_echo_n "(cached) " >&6
  9441. else
  9442. if test "$cross_compiling" = yes; then :
  9443. lt_cv_dlopen_self_static=cross
  9444. else
  9445. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9446. lt_status=$lt_dlunknown
  9447. cat > conftest.$ac_ext <<_LT_EOF
  9448. #line 11006 "configure"
  9449. #include "confdefs.h"
  9450. #if HAVE_DLFCN_H
  9451. #include <dlfcn.h>
  9452. #endif
  9453. #include <stdio.h>
  9454. #ifdef RTLD_GLOBAL
  9455. # define LT_DLGLOBAL RTLD_GLOBAL
  9456. #else
  9457. # ifdef DL_GLOBAL
  9458. # define LT_DLGLOBAL DL_GLOBAL
  9459. # else
  9460. # define LT_DLGLOBAL 0
  9461. # endif
  9462. #endif
  9463. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9464. find out it does not work in some platform. */
  9465. #ifndef LT_DLLAZY_OR_NOW
  9466. # ifdef RTLD_LAZY
  9467. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9468. # else
  9469. # ifdef DL_LAZY
  9470. # define LT_DLLAZY_OR_NOW DL_LAZY
  9471. # else
  9472. # ifdef RTLD_NOW
  9473. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9474. # else
  9475. # ifdef DL_NOW
  9476. # define LT_DLLAZY_OR_NOW DL_NOW
  9477. # else
  9478. # define LT_DLLAZY_OR_NOW 0
  9479. # endif
  9480. # endif
  9481. # endif
  9482. # endif
  9483. #endif
  9484. /* When -fvisbility=hidden is used, assume the code has been annotated
  9485. correspondingly for the symbols needed. */
  9486. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9487. void fnord () __attribute__((visibility("default")));
  9488. #endif
  9489. void fnord () { int i=42; }
  9490. int main ()
  9491. {
  9492. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9493. int status = $lt_dlunknown;
  9494. if (self)
  9495. {
  9496. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9497. else
  9498. {
  9499. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9500. else puts (dlerror ());
  9501. }
  9502. /* dlclose (self); */
  9503. }
  9504. else
  9505. puts (dlerror ());
  9506. return status;
  9507. }
  9508. _LT_EOF
  9509. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9510. (eval $ac_link) 2>&5
  9511. ac_status=$?
  9512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9513. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9514. (./conftest; exit; ) >&5 2>/dev/null
  9515. lt_status=$?
  9516. case x$lt_status in
  9517. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9518. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9519. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9520. esac
  9521. else :
  9522. # compilation failed
  9523. lt_cv_dlopen_self_static=no
  9524. fi
  9525. fi
  9526. rm -fr conftest*
  9527. fi
  9528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9529. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9530. fi
  9531. CPPFLAGS="$save_CPPFLAGS"
  9532. LDFLAGS="$save_LDFLAGS"
  9533. LIBS="$save_LIBS"
  9534. ;;
  9535. esac
  9536. case $lt_cv_dlopen_self in
  9537. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9538. *) enable_dlopen_self=unknown ;;
  9539. esac
  9540. case $lt_cv_dlopen_self_static in
  9541. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9542. *) enable_dlopen_self_static=unknown ;;
  9543. esac
  9544. fi
  9545. striplib=
  9546. old_striplib=
  9547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9548. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9549. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9550. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9551. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9553. $as_echo "yes" >&6; }
  9554. else
  9555. # FIXME - insert some real tests, host_os isn't really good enough
  9556. case $host_os in
  9557. darwin*)
  9558. if test -n "$STRIP" ; then
  9559. striplib="$STRIP -x"
  9560. old_striplib="$STRIP -S"
  9561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9562. $as_echo "yes" >&6; }
  9563. else
  9564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9565. $as_echo "no" >&6; }
  9566. fi
  9567. ;;
  9568. *)
  9569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9570. $as_echo "no" >&6; }
  9571. ;;
  9572. esac
  9573. fi
  9574. # Report which library types will actually be built
  9575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9576. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9578. $as_echo "$can_build_shared" >&6; }
  9579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9580. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9581. test "$can_build_shared" = "no" && enable_shared=no
  9582. # On AIX, shared libraries and static libraries use the same namespace, and
  9583. # are all built from PIC.
  9584. case $host_os in
  9585. aix3*)
  9586. test "$enable_shared" = yes && enable_static=no
  9587. if test -n "$RANLIB"; then
  9588. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9589. postinstall_cmds='$RANLIB $lib'
  9590. fi
  9591. ;;
  9592. aix[4-9]*)
  9593. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9594. test "$enable_shared" = yes && enable_static=no
  9595. fi
  9596. ;;
  9597. esac
  9598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9599. $as_echo "$enable_shared" >&6; }
  9600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9601. $as_echo_n "checking whether to build static libraries... " >&6; }
  9602. # Make sure either enable_shared or enable_static is yes.
  9603. test "$enable_shared" = yes || enable_static=yes
  9604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9605. $as_echo "$enable_static" >&6; }
  9606. fi
  9607. ac_ext=c
  9608. ac_cpp='$CPP $CPPFLAGS'
  9609. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9610. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9611. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9612. CC="$lt_save_CC"
  9613. ac_config_commands="$ac_config_commands libtool"
  9614. # Only expand once:
  9615. # The tests for host and target for $enable_largefile require
  9616. # canonical names.
  9617. # As the $enable_largefile decision depends on --enable-plugins we must set it
  9618. # even in directories otherwise not depending on the $plugins option.
  9619. maybe_plugins=no
  9620. for ac_header in dlfcn.h
  9621. do :
  9622. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9623. "
  9624. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  9625. cat >>confdefs.h <<_ACEOF
  9626. #define HAVE_DLFCN_H 1
  9627. _ACEOF
  9628. maybe_plugins=yes
  9629. fi
  9630. done
  9631. for ac_header in windows.h
  9632. do :
  9633. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  9634. "
  9635. if test "x$ac_cv_header_windows_h" = x""yes; then :
  9636. cat >>confdefs.h <<_ACEOF
  9637. #define HAVE_WINDOWS_H 1
  9638. _ACEOF
  9639. maybe_plugins=yes
  9640. fi
  9641. done
  9642. # Check whether --enable-plugins was given.
  9643. if test "${enable_plugins+set}" = set; then :
  9644. enableval=$enable_plugins; case "${enableval}" in
  9645. no) plugins=no ;;
  9646. *) plugins=yes
  9647. if test "$maybe_plugins" != "yes" ; then
  9648. as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  9649. fi ;;
  9650. esac
  9651. else
  9652. plugins=$maybe_plugins
  9653. fi
  9654. if test "$plugins" = "yes"; then
  9655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  9656. $as_echo_n "checking for library containing dlopen... " >&6; }
  9657. if test "${ac_cv_search_dlopen+set}" = set; then :
  9658. $as_echo_n "(cached) " >&6
  9659. else
  9660. ac_func_search_save_LIBS=$LIBS
  9661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9662. /* end confdefs.h. */
  9663. /* Override any GCC internal prototype to avoid an error.
  9664. Use char because int might match the return type of a GCC
  9665. builtin and then its argument prototype would still apply. */
  9666. #ifdef __cplusplus
  9667. extern "C"
  9668. #endif
  9669. char dlopen ();
  9670. int
  9671. main ()
  9672. {
  9673. return dlopen ();
  9674. ;
  9675. return 0;
  9676. }
  9677. _ACEOF
  9678. for ac_lib in '' dl; do
  9679. if test -z "$ac_lib"; then
  9680. ac_res="none required"
  9681. else
  9682. ac_res=-l$ac_lib
  9683. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9684. fi
  9685. if ac_fn_c_try_link "$LINENO"; then :
  9686. ac_cv_search_dlopen=$ac_res
  9687. fi
  9688. rm -f core conftest.err conftest.$ac_objext \
  9689. conftest$ac_exeext
  9690. if test "${ac_cv_search_dlopen+set}" = set; then :
  9691. break
  9692. fi
  9693. done
  9694. if test "${ac_cv_search_dlopen+set}" = set; then :
  9695. else
  9696. ac_cv_search_dlopen=no
  9697. fi
  9698. rm conftest.$ac_ext
  9699. LIBS=$ac_func_search_save_LIBS
  9700. fi
  9701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  9702. $as_echo "$ac_cv_search_dlopen" >&6; }
  9703. ac_res=$ac_cv_search_dlopen
  9704. if test "$ac_res" != no; then :
  9705. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9706. fi
  9707. fi
  9708. case "${host}" in
  9709. sparc-*-solaris*|i[3-7]86-*-solaris*)
  9710. # On native 32bit sparc and ia32 solaris, large-file and procfs support
  9711. # are mutually exclusive; and without procfs support, the bfd/ elf module
  9712. # cannot provide certain routines such as elfcore_write_prpsinfo
  9713. # or elfcore_write_prstatus. So unless the user explicitly requested
  9714. # large-file support through the --enable-largefile switch, disable
  9715. # large-file support in favor of procfs support.
  9716. test "${target}" = "${host}" -a "x$plugins" = xno \
  9717. && : ${enable_largefile="no"}
  9718. ;;
  9719. esac
  9720. # Check whether --enable-largefile was given.
  9721. if test "${enable_largefile+set}" = set; then :
  9722. enableval=$enable_largefile;
  9723. fi
  9724. if test "$enable_largefile" != no; then
  9725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  9726. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  9727. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  9728. $as_echo_n "(cached) " >&6
  9729. else
  9730. ac_cv_sys_largefile_CC=no
  9731. if test "$GCC" != yes; then
  9732. ac_save_CC=$CC
  9733. while :; do
  9734. # IRIX 6.2 and later do not support large files by default,
  9735. # so use the C compiler's -n32 option if that helps.
  9736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9737. /* end confdefs.h. */
  9738. #include <sys/types.h>
  9739. /* Check that off_t can represent 2**63 - 1 correctly.
  9740. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9741. since some C++ compilers masquerading as C compilers
  9742. incorrectly reject 9223372036854775807. */
  9743. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9744. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9745. && LARGE_OFF_T % 2147483647 == 1)
  9746. ? 1 : -1];
  9747. int
  9748. main ()
  9749. {
  9750. ;
  9751. return 0;
  9752. }
  9753. _ACEOF
  9754. if ac_fn_c_try_compile "$LINENO"; then :
  9755. break
  9756. fi
  9757. rm -f core conftest.err conftest.$ac_objext
  9758. CC="$CC -n32"
  9759. if ac_fn_c_try_compile "$LINENO"; then :
  9760. ac_cv_sys_largefile_CC=' -n32'; break
  9761. fi
  9762. rm -f core conftest.err conftest.$ac_objext
  9763. break
  9764. done
  9765. CC=$ac_save_CC
  9766. rm -f conftest.$ac_ext
  9767. fi
  9768. fi
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  9770. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  9771. if test "$ac_cv_sys_largefile_CC" != no; then
  9772. CC=$CC$ac_cv_sys_largefile_CC
  9773. fi
  9774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9775. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  9776. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  9777. $as_echo_n "(cached) " >&6
  9778. else
  9779. while :; do
  9780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9781. /* end confdefs.h. */
  9782. #include <sys/types.h>
  9783. /* Check that off_t can represent 2**63 - 1 correctly.
  9784. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9785. since some C++ compilers masquerading as C compilers
  9786. incorrectly reject 9223372036854775807. */
  9787. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9788. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9789. && LARGE_OFF_T % 2147483647 == 1)
  9790. ? 1 : -1];
  9791. int
  9792. main ()
  9793. {
  9794. ;
  9795. return 0;
  9796. }
  9797. _ACEOF
  9798. if ac_fn_c_try_compile "$LINENO"; then :
  9799. ac_cv_sys_file_offset_bits=no; break
  9800. fi
  9801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9803. /* end confdefs.h. */
  9804. #define _FILE_OFFSET_BITS 64
  9805. #include <sys/types.h>
  9806. /* Check that off_t can represent 2**63 - 1 correctly.
  9807. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9808. since some C++ compilers masquerading as C compilers
  9809. incorrectly reject 9223372036854775807. */
  9810. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9811. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9812. && LARGE_OFF_T % 2147483647 == 1)
  9813. ? 1 : -1];
  9814. int
  9815. main ()
  9816. {
  9817. ;
  9818. return 0;
  9819. }
  9820. _ACEOF
  9821. if ac_fn_c_try_compile "$LINENO"; then :
  9822. ac_cv_sys_file_offset_bits=64; break
  9823. fi
  9824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9825. ac_cv_sys_file_offset_bits=unknown
  9826. break
  9827. done
  9828. fi
  9829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  9830. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  9831. case $ac_cv_sys_file_offset_bits in #(
  9832. no | unknown) ;;
  9833. *)
  9834. cat >>confdefs.h <<_ACEOF
  9835. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9836. _ACEOF
  9837. ;;
  9838. esac
  9839. rm -rf conftest*
  9840. if test $ac_cv_sys_file_offset_bits = unknown; then
  9841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  9842. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  9843. if test "${ac_cv_sys_large_files+set}" = set; then :
  9844. $as_echo_n "(cached) " >&6
  9845. else
  9846. while :; do
  9847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9848. /* end confdefs.h. */
  9849. #include <sys/types.h>
  9850. /* Check that off_t can represent 2**63 - 1 correctly.
  9851. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9852. since some C++ compilers masquerading as C compilers
  9853. incorrectly reject 9223372036854775807. */
  9854. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9855. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9856. && LARGE_OFF_T % 2147483647 == 1)
  9857. ? 1 : -1];
  9858. int
  9859. main ()
  9860. {
  9861. ;
  9862. return 0;
  9863. }
  9864. _ACEOF
  9865. if ac_fn_c_try_compile "$LINENO"; then :
  9866. ac_cv_sys_large_files=no; break
  9867. fi
  9868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9870. /* end confdefs.h. */
  9871. #define _LARGE_FILES 1
  9872. #include <sys/types.h>
  9873. /* Check that off_t can represent 2**63 - 1 correctly.
  9874. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9875. since some C++ compilers masquerading as C compilers
  9876. incorrectly reject 9223372036854775807. */
  9877. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9878. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9879. && LARGE_OFF_T % 2147483647 == 1)
  9880. ? 1 : -1];
  9881. int
  9882. main ()
  9883. {
  9884. ;
  9885. return 0;
  9886. }
  9887. _ACEOF
  9888. if ac_fn_c_try_compile "$LINENO"; then :
  9889. ac_cv_sys_large_files=1; break
  9890. fi
  9891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9892. ac_cv_sys_large_files=unknown
  9893. break
  9894. done
  9895. fi
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  9897. $as_echo "$ac_cv_sys_large_files" >&6; }
  9898. case $ac_cv_sys_large_files in #(
  9899. no | unknown) ;;
  9900. *)
  9901. cat >>confdefs.h <<_ACEOF
  9902. #define _LARGE_FILES $ac_cv_sys_large_files
  9903. _ACEOF
  9904. ;;
  9905. esac
  9906. rm -rf conftest*
  9907. fi
  9908. fi
  9909. for ac_func in setmode
  9910. do :
  9911. ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode"
  9912. if test "x$ac_cv_func_setmode" = x""yes; then :
  9913. cat >>confdefs.h <<_ACEOF
  9914. #define HAVE_SETMODE 1
  9915. _ACEOF
  9916. fi
  9917. done
  9918. ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl bg eo ja sr hu"
  9919. # If we haven't got the data from the intl directory,
  9920. # assume NLS is disabled.
  9921. USE_NLS=no
  9922. LIBINTL=
  9923. LIBINTL_DEP=
  9924. INCINTL=
  9925. XGETTEXT=
  9926. GMSGFMT=
  9927. POSUB=
  9928. if test -f ../intl/config.intl; then
  9929. . ../intl/config.intl
  9930. fi
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  9932. $as_echo_n "checking whether NLS is requested... " >&6; }
  9933. if test x"$USE_NLS" != xyes; then
  9934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9935. $as_echo "no" >&6; }
  9936. else
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9938. $as_echo "yes" >&6; }
  9939. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  9940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  9941. $as_echo_n "checking for catalogs to be installed... " >&6; }
  9942. # Look for .po and .gmo files in the source directory.
  9943. CATALOGS=
  9944. XLINGUAS=
  9945. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  9946. # If there aren't any .gmo files the shell will give us the
  9947. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  9948. # weeded out.
  9949. case "$cat" in *\**)
  9950. continue;;
  9951. esac
  9952. # The quadruple backslash is collapsed to a double backslash
  9953. # by the backticks, then collapsed again by the double quotes,
  9954. # leaving us with one backslash in the sed expression (right
  9955. # before the dot that mustn't act as a wildcard).
  9956. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  9957. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  9958. # The user is allowed to set LINGUAS to a list of languages to
  9959. # install catalogs for. If it's empty that means "all of them."
  9960. if test "x$LINGUAS" = x; then
  9961. CATALOGS="$CATALOGS $cat"
  9962. XLINGUAS="$XLINGUAS $lang"
  9963. else
  9964. case "$LINGUAS" in *$lang*)
  9965. CATALOGS="$CATALOGS $cat"
  9966. XLINGUAS="$XLINGUAS $lang"
  9967. ;;
  9968. esac
  9969. fi
  9970. done
  9971. LINGUAS="$XLINGUAS"
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  9973. $as_echo "$LINGUAS" >&6; }
  9974. DATADIRNAME=share
  9975. INSTOBJEXT=.mo
  9976. GENCAT=gencat
  9977. CATOBJEXT=.gmo
  9978. fi
  9979. MKINSTALLDIRS=
  9980. if test -n "$ac_aux_dir"; then
  9981. case "$ac_aux_dir" in
  9982. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  9983. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  9984. esac
  9985. fi
  9986. if test -z "$MKINSTALLDIRS"; then
  9987. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  9988. fi
  9989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  9990. $as_echo_n "checking whether NLS is requested... " >&6; }
  9991. # Check whether --enable-nls was given.
  9992. if test "${enable_nls+set}" = set; then :
  9993. enableval=$enable_nls; USE_NLS=$enableval
  9994. else
  9995. USE_NLS=yes
  9996. fi
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  9998. $as_echo "$USE_NLS" >&6; }
  9999. # Prepare PATH_SEPARATOR.
  10000. # The user is always right.
  10001. if test "${PATH_SEPARATOR+set}" != set; then
  10002. echo "#! /bin/sh" >conf$$.sh
  10003. echo "exit 0" >>conf$$.sh
  10004. chmod +x conf$$.sh
  10005. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10006. PATH_SEPARATOR=';'
  10007. else
  10008. PATH_SEPARATOR=:
  10009. fi
  10010. rm -f conf$$.sh
  10011. fi
  10012. # Find out how to test for executable files. Don't use a zero-byte file,
  10013. # as systems may use methods other than mode bits to determine executability.
  10014. cat >conf$$.file <<_ASEOF
  10015. #! /bin/sh
  10016. exit 0
  10017. _ASEOF
  10018. chmod +x conf$$.file
  10019. if test -x conf$$.file >/dev/null 2>&1; then
  10020. ac_executable_p="test -x"
  10021. else
  10022. ac_executable_p="test -f"
  10023. fi
  10024. rm -f conf$$.file
  10025. # Extract the first word of "msgfmt", so it can be a program name with args.
  10026. set dummy msgfmt; ac_word=$2
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10028. $as_echo_n "checking for $ac_word... " >&6; }
  10029. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  10030. $as_echo_n "(cached) " >&6
  10031. else
  10032. case "$MSGFMT" in
  10033. [\\/]* | ?:[\\/]*)
  10034. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  10035. ;;
  10036. *)
  10037. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10038. for ac_dir in $PATH; do
  10039. IFS="$ac_save_IFS"
  10040. test -z "$ac_dir" && ac_dir=.
  10041. for ac_exec_ext in '' $ac_executable_extensions; do
  10042. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10043. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  10044. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10045. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  10046. break 2
  10047. fi
  10048. fi
  10049. done
  10050. done
  10051. IFS="$ac_save_IFS"
  10052. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  10053. ;;
  10054. esac
  10055. fi
  10056. MSGFMT="$ac_cv_path_MSGFMT"
  10057. if test "$MSGFMT" != ":"; then
  10058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  10059. $as_echo "$MSGFMT" >&6; }
  10060. else
  10061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10062. $as_echo "no" >&6; }
  10063. fi
  10064. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  10065. set dummy gmsgfmt; ac_word=$2
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10067. $as_echo_n "checking for $ac_word... " >&6; }
  10068. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  10069. $as_echo_n "(cached) " >&6
  10070. else
  10071. case $GMSGFMT in
  10072. [\\/]* | ?:[\\/]*)
  10073. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  10074. ;;
  10075. *)
  10076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10077. for as_dir in $PATH
  10078. do
  10079. IFS=$as_save_IFS
  10080. test -z "$as_dir" && as_dir=.
  10081. for ac_exec_ext in '' $ac_executable_extensions; do
  10082. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10083. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  10084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10085. break 2
  10086. fi
  10087. done
  10088. done
  10089. IFS=$as_save_IFS
  10090. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  10091. ;;
  10092. esac
  10093. fi
  10094. GMSGFMT=$ac_cv_path_GMSGFMT
  10095. if test -n "$GMSGFMT"; then
  10096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  10097. $as_echo "$GMSGFMT" >&6; }
  10098. else
  10099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10100. $as_echo "no" >&6; }
  10101. fi
  10102. # Prepare PATH_SEPARATOR.
  10103. # The user is always right.
  10104. if test "${PATH_SEPARATOR+set}" != set; then
  10105. echo "#! /bin/sh" >conf$$.sh
  10106. echo "exit 0" >>conf$$.sh
  10107. chmod +x conf$$.sh
  10108. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10109. PATH_SEPARATOR=';'
  10110. else
  10111. PATH_SEPARATOR=:
  10112. fi
  10113. rm -f conf$$.sh
  10114. fi
  10115. # Find out how to test for executable files. Don't use a zero-byte file,
  10116. # as systems may use methods other than mode bits to determine executability.
  10117. cat >conf$$.file <<_ASEOF
  10118. #! /bin/sh
  10119. exit 0
  10120. _ASEOF
  10121. chmod +x conf$$.file
  10122. if test -x conf$$.file >/dev/null 2>&1; then
  10123. ac_executable_p="test -x"
  10124. else
  10125. ac_executable_p="test -f"
  10126. fi
  10127. rm -f conf$$.file
  10128. # Extract the first word of "xgettext", so it can be a program name with args.
  10129. set dummy xgettext; ac_word=$2
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10131. $as_echo_n "checking for $ac_word... " >&6; }
  10132. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  10133. $as_echo_n "(cached) " >&6
  10134. else
  10135. case "$XGETTEXT" in
  10136. [\\/]* | ?:[\\/]*)
  10137. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  10138. ;;
  10139. *)
  10140. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10141. for ac_dir in $PATH; do
  10142. IFS="$ac_save_IFS"
  10143. test -z "$ac_dir" && ac_dir=.
  10144. for ac_exec_ext in '' $ac_executable_extensions; do
  10145. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10146. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  10147. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10148. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  10149. break 2
  10150. fi
  10151. fi
  10152. done
  10153. done
  10154. IFS="$ac_save_IFS"
  10155. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  10156. ;;
  10157. esac
  10158. fi
  10159. XGETTEXT="$ac_cv_path_XGETTEXT"
  10160. if test "$XGETTEXT" != ":"; then
  10161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  10162. $as_echo "$XGETTEXT" >&6; }
  10163. else
  10164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10165. $as_echo "no" >&6; }
  10166. fi
  10167. rm -f messages.po
  10168. # Prepare PATH_SEPARATOR.
  10169. # The user is always right.
  10170. if test "${PATH_SEPARATOR+set}" != set; then
  10171. echo "#! /bin/sh" >conf$$.sh
  10172. echo "exit 0" >>conf$$.sh
  10173. chmod +x conf$$.sh
  10174. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10175. PATH_SEPARATOR=';'
  10176. else
  10177. PATH_SEPARATOR=:
  10178. fi
  10179. rm -f conf$$.sh
  10180. fi
  10181. # Find out how to test for executable files. Don't use a zero-byte file,
  10182. # as systems may use methods other than mode bits to determine executability.
  10183. cat >conf$$.file <<_ASEOF
  10184. #! /bin/sh
  10185. exit 0
  10186. _ASEOF
  10187. chmod +x conf$$.file
  10188. if test -x conf$$.file >/dev/null 2>&1; then
  10189. ac_executable_p="test -x"
  10190. else
  10191. ac_executable_p="test -f"
  10192. fi
  10193. rm -f conf$$.file
  10194. # Extract the first word of "msgmerge", so it can be a program name with args.
  10195. set dummy msgmerge; ac_word=$2
  10196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10197. $as_echo_n "checking for $ac_word... " >&6; }
  10198. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  10199. $as_echo_n "(cached) " >&6
  10200. else
  10201. case "$MSGMERGE" in
  10202. [\\/]* | ?:[\\/]*)
  10203. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  10204. ;;
  10205. *)
  10206. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10207. for ac_dir in $PATH; do
  10208. IFS="$ac_save_IFS"
  10209. test -z "$ac_dir" && ac_dir=.
  10210. for ac_exec_ext in '' $ac_executable_extensions; do
  10211. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10212. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  10213. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  10214. break 2
  10215. fi
  10216. fi
  10217. done
  10218. done
  10219. IFS="$ac_save_IFS"
  10220. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10221. ;;
  10222. esac
  10223. fi
  10224. MSGMERGE="$ac_cv_path_MSGMERGE"
  10225. if test "$MSGMERGE" != ":"; then
  10226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  10227. $as_echo "$MSGMERGE" >&6; }
  10228. else
  10229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10230. $as_echo "no" >&6; }
  10231. fi
  10232. if test "$GMSGFMT" != ":"; then
  10233. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  10234. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10235. : ;
  10236. else
  10237. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  10239. $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  10240. GMSGFMT=":"
  10241. fi
  10242. fi
  10243. if test "$XGETTEXT" != ":"; then
  10244. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  10245. (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10246. : ;
  10247. else
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  10249. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  10250. XGETTEXT=":"
  10251. fi
  10252. rm -f messages.po
  10253. fi
  10254. ac_config_commands="$ac_config_commands default-1"
  10255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10256. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10257. # Check whether --enable-maintainer-mode was given.
  10258. if test "${enable_maintainer_mode+set}" = set; then :
  10259. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10260. else
  10261. USE_MAINTAINER_MODE=no
  10262. fi
  10263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10264. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10265. if test $USE_MAINTAINER_MODE = yes; then
  10266. MAINTAINER_MODE_TRUE=
  10267. MAINTAINER_MODE_FALSE='#'
  10268. else
  10269. MAINTAINER_MODE_TRUE='#'
  10270. MAINTAINER_MODE_FALSE=
  10271. fi
  10272. MAINT=$MAINTAINER_MODE_TRUE
  10273. if false; then
  10274. GENINSRC_NEVER_TRUE=
  10275. GENINSRC_NEVER_FALSE='#'
  10276. else
  10277. GENINSRC_NEVER_TRUE='#'
  10278. GENINSRC_NEVER_FALSE=
  10279. fi
  10280. for ac_header in sys/gmon_out.h
  10281. do :
  10282. ac_fn_c_check_header_mongrel "$LINENO" "sys/gmon_out.h" "ac_cv_header_sys_gmon_out_h" "$ac_includes_default"
  10283. if test "x$ac_cv_header_sys_gmon_out_h" = x""yes; then :
  10284. cat >>confdefs.h <<_ACEOF
  10285. #define HAVE_SYS_GMON_OUT_H 1
  10286. _ACEOF
  10287. fi
  10288. done
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
  10290. $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
  10291. if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then :
  10292. $as_echo_n "(cached) " >&6
  10293. else
  10294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10295. /* end confdefs.h. */
  10296. #include <unistd.h>
  10297. int
  10298. main ()
  10299. {
  10300. extern int getopt (int, char *const*, const char *);
  10301. ;
  10302. return 0;
  10303. }
  10304. _ACEOF
  10305. if ac_fn_c_try_compile "$LINENO"; then :
  10306. gprof_cv_decl_getopt_unistd_h=yes
  10307. else
  10308. gprof_cv_decl_getopt_unistd_h=no
  10309. fi
  10310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10311. fi
  10312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gprof_cv_decl_getopt_unistd_h" >&5
  10313. $as_echo "$gprof_cv_decl_getopt_unistd_h" >&6; }
  10314. if test $gprof_cv_decl_getopt_unistd_h = yes; then
  10315. $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
  10316. fi
  10317. # Some systems have fabs only in -lm, not in -lc.
  10318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
  10319. $as_echo_n "checking for library containing fabs... " >&6; }
  10320. if test "${ac_cv_search_fabs+set}" = set; then :
  10321. $as_echo_n "(cached) " >&6
  10322. else
  10323. ac_func_search_save_LIBS=$LIBS
  10324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10325. /* end confdefs.h. */
  10326. /* Override any GCC internal prototype to avoid an error.
  10327. Use char because int might match the return type of a GCC
  10328. builtin and then its argument prototype would still apply. */
  10329. #ifdef __cplusplus
  10330. extern "C"
  10331. #endif
  10332. char fabs ();
  10333. int
  10334. main ()
  10335. {
  10336. return fabs ();
  10337. ;
  10338. return 0;
  10339. }
  10340. _ACEOF
  10341. for ac_lib in '' m; do
  10342. if test -z "$ac_lib"; then
  10343. ac_res="none required"
  10344. else
  10345. ac_res=-l$ac_lib
  10346. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10347. fi
  10348. if ac_fn_c_try_link "$LINENO"; then :
  10349. ac_cv_search_fabs=$ac_res
  10350. fi
  10351. rm -f core conftest.err conftest.$ac_objext \
  10352. conftest$ac_exeext
  10353. if test "${ac_cv_search_fabs+set}" = set; then :
  10354. break
  10355. fi
  10356. done
  10357. if test "${ac_cv_search_fabs+set}" = set; then :
  10358. else
  10359. ac_cv_search_fabs=no
  10360. fi
  10361. rm conftest.$ac_ext
  10362. LIBS=$ac_func_search_save_LIBS
  10363. fi
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
  10365. $as_echo "$ac_cv_search_fabs" >&6; }
  10366. ac_res=$ac_cv_search_fabs
  10367. if test "$ac_res" != no; then :
  10368. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10369. fi
  10370. # Set the 'development' global.
  10371. . $srcdir/../bfd/development.sh
  10372. GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  10373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10374. /* end confdefs.h. */
  10375. __GNUC__
  10376. _ACEOF
  10377. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10378. $EGREP "^[0-3]$" >/dev/null 2>&1; then :
  10379. else
  10380. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
  10381. fi
  10382. rm -f conftest*
  10383. # Check whether --enable-werror was given.
  10384. if test "${enable_werror+set}" = set; then :
  10385. enableval=$enable_werror; case "${enableval}" in
  10386. yes | y) ERROR_ON_WARNING="yes" ;;
  10387. no | n) ERROR_ON_WARNING="no" ;;
  10388. *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  10389. esac
  10390. fi
  10391. # Disable -Wformat by default when using gcc on mingw
  10392. case "${host}" in
  10393. *-*-mingw32*)
  10394. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  10395. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
  10396. fi
  10397. ;;
  10398. *) ;;
  10399. esac
  10400. # Enable -Werror by default when using gcc. Turn it off for releases.
  10401. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
  10402. ERROR_ON_WARNING=yes
  10403. fi
  10404. NO_WERROR=
  10405. if test "${ERROR_ON_WARNING}" = yes ; then
  10406. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
  10407. NO_WERROR="-Wno-error"
  10408. fi
  10409. if test "${GCC}" = yes ; then
  10410. WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  10411. fi
  10412. # Check whether --enable-build-warnings was given.
  10413. if test "${enable_build_warnings+set}" = set; then :
  10414. enableval=$enable_build_warnings; case "${enableval}" in
  10415. yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
  10416. no) if test "${GCC}" = yes ; then
  10417. WARN_CFLAGS="-w"
  10418. fi;;
  10419. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10420. WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
  10421. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10422. WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
  10423. *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10424. esac
  10425. fi
  10426. if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
  10427. echo "Setting warning flags = $WARN_CFLAGS" 6>&1
  10428. fi
  10429. ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
  10430. cat >confcache <<\_ACEOF
  10431. # This file is a shell script that caches the results of configure
  10432. # tests run on this system so they can be shared between configure
  10433. # scripts and configure runs, see configure's option --config-cache.
  10434. # It is not useful on other systems. If it contains results you don't
  10435. # want to keep, you may remove or edit it.
  10436. #
  10437. # config.status only pays attention to the cache file if you give it
  10438. # the --recheck option to rerun configure.
  10439. #
  10440. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10441. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10442. # following values.
  10443. _ACEOF
  10444. # The following way of writing the cache mishandles newlines in values,
  10445. # but we know of no workaround that is simple, portable, and efficient.
  10446. # So, we kill variables containing newlines.
  10447. # Ultrix sh set writes to stderr and can't be redirected directly,
  10448. # and sets the high bit in the cache file unless we assign to the vars.
  10449. (
  10450. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10451. eval ac_val=\$$ac_var
  10452. case $ac_val in #(
  10453. *${as_nl}*)
  10454. case $ac_var in #(
  10455. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10456. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10457. esac
  10458. case $ac_var in #(
  10459. _ | IFS | as_nl) ;; #(
  10460. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10461. *) { eval $ac_var=; unset $ac_var;} ;;
  10462. esac ;;
  10463. esac
  10464. done
  10465. (set) 2>&1 |
  10466. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10467. *${as_nl}ac_space=\ *)
  10468. # `set' does not quote correctly, so add quotes: double-quote
  10469. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10470. sed -n \
  10471. "s/'/'\\\\''/g;
  10472. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10473. ;; #(
  10474. *)
  10475. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10476. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10477. ;;
  10478. esac |
  10479. sort
  10480. ) |
  10481. sed '
  10482. /^ac_cv_env_/b end
  10483. t clear
  10484. :clear
  10485. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10486. t end
  10487. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10488. :end' >>confcache
  10489. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10490. if test -w "$cache_file"; then
  10491. test "x$cache_file" != "x/dev/null" &&
  10492. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10493. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10494. cat confcache >$cache_file
  10495. else
  10496. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10497. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10498. fi
  10499. fi
  10500. rm -f confcache
  10501. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10502. # Let make expand exec_prefix.
  10503. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10504. DEFS=-DHAVE_CONFIG_H
  10505. ac_libobjs=
  10506. ac_ltlibobjs=
  10507. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10508. # 1. Remove the extension, and $U if already installed.
  10509. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10510. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10511. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10512. # will be set to the directory where LIBOBJS objects are built.
  10513. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10514. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10515. done
  10516. LIBOBJS=$ac_libobjs
  10517. LTLIBOBJS=$ac_ltlibobjs
  10518. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10519. as_fn_error "conditional \"AMDEP\" was never defined.
  10520. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10521. fi
  10522. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10523. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  10524. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10525. fi
  10526. if test -n "$EXEEXT"; then
  10527. am__EXEEXT_TRUE=
  10528. am__EXEEXT_FALSE='#'
  10529. else
  10530. am__EXEEXT_TRUE='#'
  10531. am__EXEEXT_FALSE=
  10532. fi
  10533. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10534. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  10535. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10536. fi
  10537. if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
  10538. as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
  10539. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10540. fi
  10541. : ${CONFIG_STATUS=./config.status}
  10542. ac_write_fail=0
  10543. ac_clean_files_save=$ac_clean_files
  10544. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10545. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10546. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10547. as_write_fail=0
  10548. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10549. #! $SHELL
  10550. # Generated by $as_me.
  10551. # Run this file to recreate the current configuration.
  10552. # Compiler output produced by configure, useful for debugging
  10553. # configure, is in config.log if it exists.
  10554. debug=false
  10555. ac_cs_recheck=false
  10556. ac_cs_silent=false
  10557. SHELL=\${CONFIG_SHELL-$SHELL}
  10558. export SHELL
  10559. _ASEOF
  10560. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10561. ## -------------------- ##
  10562. ## M4sh Initialization. ##
  10563. ## -------------------- ##
  10564. # Be more Bourne compatible
  10565. DUALCASE=1; export DUALCASE # for MKS sh
  10566. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10567. emulate sh
  10568. NULLCMD=:
  10569. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10570. # is contrary to our usage. Disable this feature.
  10571. alias -g '${1+"$@"}'='"$@"'
  10572. setopt NO_GLOB_SUBST
  10573. else
  10574. case `(set -o) 2>/dev/null` in #(
  10575. *posix*) :
  10576. set -o posix ;; #(
  10577. *) :
  10578. ;;
  10579. esac
  10580. fi
  10581. as_nl='
  10582. '
  10583. export as_nl
  10584. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10585. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10586. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10587. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10588. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10589. # but without wasting forks for bash or zsh.
  10590. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10591. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10592. as_echo='print -r --'
  10593. as_echo_n='print -rn --'
  10594. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10595. as_echo='printf %s\n'
  10596. as_echo_n='printf %s'
  10597. else
  10598. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10599. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10600. as_echo_n='/usr/ucb/echo -n'
  10601. else
  10602. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10603. as_echo_n_body='eval
  10604. arg=$1;
  10605. case $arg in #(
  10606. *"$as_nl"*)
  10607. expr "X$arg" : "X\\(.*\\)$as_nl";
  10608. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10609. esac;
  10610. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10611. '
  10612. export as_echo_n_body
  10613. as_echo_n='sh -c $as_echo_n_body as_echo'
  10614. fi
  10615. export as_echo_body
  10616. as_echo='sh -c $as_echo_body as_echo'
  10617. fi
  10618. # The user is always right.
  10619. if test "${PATH_SEPARATOR+set}" != set; then
  10620. PATH_SEPARATOR=:
  10621. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10622. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10623. PATH_SEPARATOR=';'
  10624. }
  10625. fi
  10626. # IFS
  10627. # We need space, tab and new line, in precisely that order. Quoting is
  10628. # there to prevent editors from complaining about space-tab.
  10629. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10630. # splitting by setting IFS to empty value.)
  10631. IFS=" "" $as_nl"
  10632. # Find who we are. Look in the path if we contain no directory separator.
  10633. case $0 in #((
  10634. *[\\/]* ) as_myself=$0 ;;
  10635. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10636. for as_dir in $PATH
  10637. do
  10638. IFS=$as_save_IFS
  10639. test -z "$as_dir" && as_dir=.
  10640. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10641. done
  10642. IFS=$as_save_IFS
  10643. ;;
  10644. esac
  10645. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10646. # in which case we are not to be found in the path.
  10647. if test "x$as_myself" = x; then
  10648. as_myself=$0
  10649. fi
  10650. if test ! -f "$as_myself"; then
  10651. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10652. exit 1
  10653. fi
  10654. # Unset variables that we do not need and which cause bugs (e.g. in
  10655. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10656. # suppresses any "Segmentation fault" message there. '((' could
  10657. # trigger a bug in pdksh 5.2.14.
  10658. for as_var in BASH_ENV ENV MAIL MAILPATH
  10659. do eval test x\${$as_var+set} = xset \
  10660. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10661. done
  10662. PS1='$ '
  10663. PS2='> '
  10664. PS4='+ '
  10665. # NLS nuisances.
  10666. LC_ALL=C
  10667. export LC_ALL
  10668. LANGUAGE=C
  10669. export LANGUAGE
  10670. # CDPATH.
  10671. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10672. # as_fn_error ERROR [LINENO LOG_FD]
  10673. # ---------------------------------
  10674. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10675. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10676. # script with status $?, using 1 if that was 0.
  10677. as_fn_error ()
  10678. {
  10679. as_status=$?; test $as_status -eq 0 && as_status=1
  10680. if test "$3"; then
  10681. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10682. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  10683. fi
  10684. $as_echo "$as_me: error: $1" >&2
  10685. as_fn_exit $as_status
  10686. } # as_fn_error
  10687. # as_fn_set_status STATUS
  10688. # -----------------------
  10689. # Set $? to STATUS, without forking.
  10690. as_fn_set_status ()
  10691. {
  10692. return $1
  10693. } # as_fn_set_status
  10694. # as_fn_exit STATUS
  10695. # -----------------
  10696. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10697. as_fn_exit ()
  10698. {
  10699. set +e
  10700. as_fn_set_status $1
  10701. exit $1
  10702. } # as_fn_exit
  10703. # as_fn_unset VAR
  10704. # ---------------
  10705. # Portably unset VAR.
  10706. as_fn_unset ()
  10707. {
  10708. { eval $1=; unset $1;}
  10709. }
  10710. as_unset=as_fn_unset
  10711. # as_fn_append VAR VALUE
  10712. # ----------------------
  10713. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10714. # advantage of any shell optimizations that allow amortized linear growth over
  10715. # repeated appends, instead of the typical quadratic growth present in naive
  10716. # implementations.
  10717. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10718. eval 'as_fn_append ()
  10719. {
  10720. eval $1+=\$2
  10721. }'
  10722. else
  10723. as_fn_append ()
  10724. {
  10725. eval $1=\$$1\$2
  10726. }
  10727. fi # as_fn_append
  10728. # as_fn_arith ARG...
  10729. # ------------------
  10730. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10731. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10732. # must be portable across $(()) and expr.
  10733. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10734. eval 'as_fn_arith ()
  10735. {
  10736. as_val=$(( $* ))
  10737. }'
  10738. else
  10739. as_fn_arith ()
  10740. {
  10741. as_val=`expr "$@" || test $? -eq 1`
  10742. }
  10743. fi # as_fn_arith
  10744. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10745. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10746. as_expr=expr
  10747. else
  10748. as_expr=false
  10749. fi
  10750. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10751. as_basename=basename
  10752. else
  10753. as_basename=false
  10754. fi
  10755. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10756. as_dirname=dirname
  10757. else
  10758. as_dirname=false
  10759. fi
  10760. as_me=`$as_basename -- "$0" ||
  10761. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10762. X"$0" : 'X\(//\)$' \| \
  10763. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10764. $as_echo X/"$0" |
  10765. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10766. s//\1/
  10767. q
  10768. }
  10769. /^X\/\(\/\/\)$/{
  10770. s//\1/
  10771. q
  10772. }
  10773. /^X\/\(\/\).*/{
  10774. s//\1/
  10775. q
  10776. }
  10777. s/.*/./; q'`
  10778. # Avoid depending upon Character Ranges.
  10779. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10780. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10781. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10782. as_cr_digits='0123456789'
  10783. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10784. ECHO_C= ECHO_N= ECHO_T=
  10785. case `echo -n x` in #(((((
  10786. -n*)
  10787. case `echo 'xy\c'` in
  10788. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10789. xy) ECHO_C='\c';;
  10790. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10791. ECHO_T=' ';;
  10792. esac;;
  10793. *)
  10794. ECHO_N='-n';;
  10795. esac
  10796. rm -f conf$$ conf$$.exe conf$$.file
  10797. if test -d conf$$.dir; then
  10798. rm -f conf$$.dir/conf$$.file
  10799. else
  10800. rm -f conf$$.dir
  10801. mkdir conf$$.dir 2>/dev/null
  10802. fi
  10803. if (echo >conf$$.file) 2>/dev/null; then
  10804. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10805. as_ln_s='ln -s'
  10806. # ... but there are two gotchas:
  10807. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10808. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10809. # In both cases, we have to default to `cp -p'.
  10810. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10811. as_ln_s='cp -p'
  10812. elif ln conf$$.file conf$$ 2>/dev/null; then
  10813. as_ln_s=ln
  10814. else
  10815. as_ln_s='cp -p'
  10816. fi
  10817. else
  10818. as_ln_s='cp -p'
  10819. fi
  10820. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10821. rmdir conf$$.dir 2>/dev/null
  10822. # as_fn_mkdir_p
  10823. # -------------
  10824. # Create "$as_dir" as a directory, including parents if necessary.
  10825. as_fn_mkdir_p ()
  10826. {
  10827. case $as_dir in #(
  10828. -*) as_dir=./$as_dir;;
  10829. esac
  10830. test -d "$as_dir" || eval $as_mkdir_p || {
  10831. as_dirs=
  10832. while :; do
  10833. case $as_dir in #(
  10834. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10835. *) as_qdir=$as_dir;;
  10836. esac
  10837. as_dirs="'$as_qdir' $as_dirs"
  10838. as_dir=`$as_dirname -- "$as_dir" ||
  10839. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10840. X"$as_dir" : 'X\(//\)[^/]' \| \
  10841. X"$as_dir" : 'X\(//\)$' \| \
  10842. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10843. $as_echo X"$as_dir" |
  10844. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10845. s//\1/
  10846. q
  10847. }
  10848. /^X\(\/\/\)[^/].*/{
  10849. s//\1/
  10850. q
  10851. }
  10852. /^X\(\/\/\)$/{
  10853. s//\1/
  10854. q
  10855. }
  10856. /^X\(\/\).*/{
  10857. s//\1/
  10858. q
  10859. }
  10860. s/.*/./; q'`
  10861. test -d "$as_dir" && break
  10862. done
  10863. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10864. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  10865. } # as_fn_mkdir_p
  10866. if mkdir -p . 2>/dev/null; then
  10867. as_mkdir_p='mkdir -p "$as_dir"'
  10868. else
  10869. test -d ./-p && rmdir ./-p
  10870. as_mkdir_p=false
  10871. fi
  10872. if test -x / >/dev/null 2>&1; then
  10873. as_test_x='test -x'
  10874. else
  10875. if ls -dL / >/dev/null 2>&1; then
  10876. as_ls_L_option=L
  10877. else
  10878. as_ls_L_option=
  10879. fi
  10880. as_test_x='
  10881. eval sh -c '\''
  10882. if test -d "$1"; then
  10883. test -d "$1/.";
  10884. else
  10885. case $1 in #(
  10886. -*)set "./$1";;
  10887. esac;
  10888. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  10889. ???[sx]*):;;*)false;;esac;fi
  10890. '\'' sh
  10891. '
  10892. fi
  10893. as_executable_p=$as_test_x
  10894. # Sed expression to map a string onto a valid CPP name.
  10895. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10896. # Sed expression to map a string onto a valid variable name.
  10897. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10898. exec 6>&1
  10899. ## ----------------------------------- ##
  10900. ## Main body of $CONFIG_STATUS script. ##
  10901. ## ----------------------------------- ##
  10902. _ASEOF
  10903. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10904. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10905. # Save the log message, to keep $0 and so on meaningful, and to
  10906. # report actual input values of CONFIG_FILES etc. instead of their
  10907. # values after options handling.
  10908. ac_log="
  10909. This file was extended by gprof $as_me 2.25.51, which was
  10910. generated by GNU Autoconf 2.64. Invocation command line was
  10911. CONFIG_FILES = $CONFIG_FILES
  10912. CONFIG_HEADERS = $CONFIG_HEADERS
  10913. CONFIG_LINKS = $CONFIG_LINKS
  10914. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10915. $ $0 $@
  10916. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10917. "
  10918. _ACEOF
  10919. case $ac_config_files in *"
  10920. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10921. esac
  10922. case $ac_config_headers in *"
  10923. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10924. esac
  10925. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10926. # Files that config.status was made for.
  10927. config_files="$ac_config_files"
  10928. config_headers="$ac_config_headers"
  10929. config_commands="$ac_config_commands"
  10930. _ACEOF
  10931. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10932. ac_cs_usage="\
  10933. \`$as_me' instantiates files and other configuration actions
  10934. from templates according to the current configuration. Unless the files
  10935. and actions are specified as TAGs, all are instantiated by default.
  10936. Usage: $0 [OPTION]... [TAG]...
  10937. -h, --help print this help, then exit
  10938. -V, --version print version number and configuration settings, then exit
  10939. -q, --quiet, --silent
  10940. do not print progress messages
  10941. -d, --debug don't remove temporary files
  10942. --recheck update $as_me by reconfiguring in the same conditions
  10943. --file=FILE[:TEMPLATE]
  10944. instantiate the configuration file FILE
  10945. --header=FILE[:TEMPLATE]
  10946. instantiate the configuration header FILE
  10947. Configuration files:
  10948. $config_files
  10949. Configuration headers:
  10950. $config_headers
  10951. Configuration commands:
  10952. $config_commands
  10953. Report bugs to the package provider."
  10954. _ACEOF
  10955. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10956. ac_cs_version="\\
  10957. gprof config.status 2.25.51
  10958. configured by $0, generated by GNU Autoconf 2.64,
  10959. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  10960. Copyright (C) 2009 Free Software Foundation, Inc.
  10961. This config.status script is free software; the Free Software Foundation
  10962. gives unlimited permission to copy, distribute and modify it."
  10963. ac_pwd='$ac_pwd'
  10964. srcdir='$srcdir'
  10965. INSTALL='$INSTALL'
  10966. MKDIR_P='$MKDIR_P'
  10967. AWK='$AWK'
  10968. test -n "\$AWK" || AWK=awk
  10969. _ACEOF
  10970. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10971. # The default lists apply if the user does not specify any file.
  10972. ac_need_defaults=:
  10973. while test $# != 0
  10974. do
  10975. case $1 in
  10976. --*=*)
  10977. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10978. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10979. ac_shift=:
  10980. ;;
  10981. *)
  10982. ac_option=$1
  10983. ac_optarg=$2
  10984. ac_shift=shift
  10985. ;;
  10986. esac
  10987. case $ac_option in
  10988. # Handling of the options.
  10989. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10990. ac_cs_recheck=: ;;
  10991. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10992. $as_echo "$ac_cs_version"; exit ;;
  10993. --debug | --debu | --deb | --de | --d | -d )
  10994. debug=: ;;
  10995. --file | --fil | --fi | --f )
  10996. $ac_shift
  10997. case $ac_optarg in
  10998. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10999. esac
  11000. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11001. ac_need_defaults=false;;
  11002. --header | --heade | --head | --hea )
  11003. $ac_shift
  11004. case $ac_optarg in
  11005. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11006. esac
  11007. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11008. ac_need_defaults=false;;
  11009. --he | --h)
  11010. # Conflict between --help and --header
  11011. as_fn_error "ambiguous option: \`$1'
  11012. Try \`$0 --help' for more information.";;
  11013. --help | --hel | -h )
  11014. $as_echo "$ac_cs_usage"; exit ;;
  11015. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11016. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11017. ac_cs_silent=: ;;
  11018. # This is an error.
  11019. -*) as_fn_error "unrecognized option: \`$1'
  11020. Try \`$0 --help' for more information." ;;
  11021. *) as_fn_append ac_config_targets " $1"
  11022. ac_need_defaults=false ;;
  11023. esac
  11024. shift
  11025. done
  11026. ac_configure_extra_args=
  11027. if $ac_cs_silent; then
  11028. exec 6>/dev/null
  11029. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11030. fi
  11031. _ACEOF
  11032. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11033. if \$ac_cs_recheck; then
  11034. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11035. shift
  11036. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11037. CONFIG_SHELL='$SHELL'
  11038. export CONFIG_SHELL
  11039. exec "\$@"
  11040. fi
  11041. _ACEOF
  11042. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11043. exec 5>>config.log
  11044. {
  11045. echo
  11046. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11047. ## Running $as_me. ##
  11048. _ASBOX
  11049. $as_echo "$ac_log"
  11050. } >&5
  11051. _ACEOF
  11052. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11053. #
  11054. # INIT-COMMANDS
  11055. #
  11056. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11057. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11058. # if CDPATH is set.
  11059. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11060. sed_quote_subst='$sed_quote_subst'
  11061. double_quote_subst='$double_quote_subst'
  11062. delay_variable_subst='$delay_variable_subst'
  11063. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11064. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11065. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11066. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11067. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11068. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11069. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11070. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11071. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11072. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11073. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11074. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11075. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11076. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11077. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11078. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11079. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11080. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11081. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11082. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11083. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11084. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11085. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11086. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11087. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11088. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11089. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11090. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11091. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11092. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11093. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11094. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11095. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11096. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11097. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11098. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11099. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11100. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11101. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11102. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11103. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11104. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11105. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11106. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11107. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11108. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11109. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11110. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11111. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11112. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11113. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11114. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11115. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11116. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11117. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11118. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11119. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11120. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11121. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11122. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11123. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11124. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11125. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11126. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11127. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11128. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11129. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11130. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11131. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11132. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11133. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11134. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11135. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11136. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11137. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11138. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11139. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11140. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11141. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11142. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11143. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  11144. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11145. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11146. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11147. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11148. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11149. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11150. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11151. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11152. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  11153. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11154. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11155. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11156. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11157. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11158. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11159. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11160. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11161. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11162. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11163. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11164. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11165. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11166. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11167. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11168. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11169. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11170. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11171. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11172. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11173. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11174. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11175. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11176. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11177. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11178. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11179. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11180. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11181. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11182. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11183. LTCC='$LTCC'
  11184. LTCFLAGS='$LTCFLAGS'
  11185. compiler='$compiler_DEFAULT'
  11186. # A function that is used when there is no print builtin or printf.
  11187. func_fallback_echo ()
  11188. {
  11189. eval 'cat <<_LTECHO_EOF
  11190. \$1
  11191. _LTECHO_EOF'
  11192. }
  11193. # Quote evaled strings.
  11194. for var in SHELL \
  11195. ECHO \
  11196. SED \
  11197. GREP \
  11198. EGREP \
  11199. FGREP \
  11200. LD \
  11201. NM \
  11202. LN_S \
  11203. lt_SP2NL \
  11204. lt_NL2SP \
  11205. reload_flag \
  11206. OBJDUMP \
  11207. deplibs_check_method \
  11208. file_magic_cmd \
  11209. AR \
  11210. AR_FLAGS \
  11211. STRIP \
  11212. RANLIB \
  11213. CC \
  11214. CFLAGS \
  11215. compiler \
  11216. lt_cv_sys_global_symbol_pipe \
  11217. lt_cv_sys_global_symbol_to_cdecl \
  11218. lt_cv_sys_global_symbol_to_c_name_address \
  11219. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11220. lt_prog_compiler_no_builtin_flag \
  11221. lt_prog_compiler_wl \
  11222. lt_prog_compiler_pic \
  11223. lt_prog_compiler_static \
  11224. lt_cv_prog_compiler_c_o \
  11225. need_locks \
  11226. DSYMUTIL \
  11227. NMEDIT \
  11228. LIPO \
  11229. OTOOL \
  11230. OTOOL64 \
  11231. shrext_cmds \
  11232. export_dynamic_flag_spec \
  11233. whole_archive_flag_spec \
  11234. compiler_needs_object \
  11235. with_gnu_ld \
  11236. allow_undefined_flag \
  11237. no_undefined_flag \
  11238. hardcode_libdir_flag_spec \
  11239. hardcode_libdir_flag_spec_ld \
  11240. hardcode_libdir_separator \
  11241. fix_srcfile_path \
  11242. exclude_expsyms \
  11243. include_expsyms \
  11244. file_list_spec \
  11245. variables_saved_for_relink \
  11246. libname_spec \
  11247. library_names_spec \
  11248. soname_spec \
  11249. install_override_mode \
  11250. finish_eval \
  11251. old_striplib \
  11252. striplib; do
  11253. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11254. *[\\\\\\\`\\"\\\$]*)
  11255. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11256. ;;
  11257. *)
  11258. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11259. ;;
  11260. esac
  11261. done
  11262. # Double-quote double-evaled strings.
  11263. for var in reload_cmds \
  11264. old_postinstall_cmds \
  11265. old_postuninstall_cmds \
  11266. old_archive_cmds \
  11267. extract_expsyms_cmds \
  11268. old_archive_from_new_cmds \
  11269. old_archive_from_expsyms_cmds \
  11270. archive_cmds \
  11271. archive_expsym_cmds \
  11272. module_cmds \
  11273. module_expsym_cmds \
  11274. export_symbols_cmds \
  11275. prelink_cmds \
  11276. postinstall_cmds \
  11277. postuninstall_cmds \
  11278. finish_cmds \
  11279. sys_lib_search_path_spec \
  11280. sys_lib_dlsearch_path_spec; do
  11281. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11282. *[\\\\\\\`\\"\\\$]*)
  11283. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11284. ;;
  11285. *)
  11286. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11287. ;;
  11288. esac
  11289. done
  11290. ac_aux_dir='$ac_aux_dir'
  11291. xsi_shell='$xsi_shell'
  11292. lt_shell_append='$lt_shell_append'
  11293. # See if we are running on zsh, and set the options which allow our
  11294. # commands through without removal of \ escapes INIT.
  11295. if test -n "\${ZSH_VERSION+set}" ; then
  11296. setopt NO_GLOB_SUBST
  11297. fi
  11298. PACKAGE='$PACKAGE'
  11299. VERSION='$VERSION'
  11300. TIMESTAMP='$TIMESTAMP'
  11301. RM='$RM'
  11302. ofile='$ofile'
  11303. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  11304. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  11305. # from automake.
  11306. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  11307. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  11308. LINGUAS="${LINGUAS-%UNSET%}"
  11309. _ACEOF
  11310. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11311. # Handling of arguments.
  11312. for ac_config_target in $ac_config_targets
  11313. do
  11314. case $ac_config_target in
  11315. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11316. "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
  11317. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11318. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  11319. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11320. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
  11321. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11322. esac
  11323. done
  11324. # If the user did not use the arguments to specify the items to instantiate,
  11325. # then the envvar interface is used. Set only those that are not.
  11326. # We use the long form for the default assignment because of an extremely
  11327. # bizarre bug on SunOS 4.1.3.
  11328. if $ac_need_defaults; then
  11329. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11330. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11331. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11332. fi
  11333. # Have a temporary directory for convenience. Make it in the build tree
  11334. # simply because there is no reason against having it here, and in addition,
  11335. # creating and moving files from /tmp can sometimes cause problems.
  11336. # Hook for its removal unless debugging.
  11337. # Note that there is a small window in which the directory will not be cleaned:
  11338. # after its creation but before its name has been assigned to `$tmp'.
  11339. $debug ||
  11340. {
  11341. tmp=
  11342. trap 'exit_status=$?
  11343. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11344. ' 0
  11345. trap 'as_fn_exit 1' 1 2 13 15
  11346. }
  11347. # Create a (secure) tmp directory for tmp files.
  11348. {
  11349. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11350. test -n "$tmp" && test -d "$tmp"
  11351. } ||
  11352. {
  11353. tmp=./conf$$-$RANDOM
  11354. (umask 077 && mkdir "$tmp")
  11355. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  11356. # Set up the scripts for CONFIG_FILES section.
  11357. # No need to generate them if there are no CONFIG_FILES.
  11358. # This happens for instance with `./config.status config.h'.
  11359. if test -n "$CONFIG_FILES"; then
  11360. ac_cr=`echo X | tr X '\015'`
  11361. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11362. # But we know of no other shell where ac_cr would be empty at this
  11363. # point, so we can use a bashism as a fallback.
  11364. if test "x$ac_cr" = x; then
  11365. eval ac_cr=\$\'\\r\'
  11366. fi
  11367. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11368. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11369. ac_cs_awk_cr='\r'
  11370. else
  11371. ac_cs_awk_cr=$ac_cr
  11372. fi
  11373. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  11374. _ACEOF
  11375. {
  11376. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11377. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11378. echo "_ACEOF"
  11379. } >conf$$subs.sh ||
  11380. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11381. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  11382. ac_delim='%!_!# '
  11383. for ac_last_try in false false false false false :; do
  11384. . ./conf$$subs.sh ||
  11385. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11386. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11387. if test $ac_delim_n = $ac_delim_num; then
  11388. break
  11389. elif $ac_last_try; then
  11390. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11391. else
  11392. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11393. fi
  11394. done
  11395. rm -f conf$$subs.sh
  11396. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11397. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  11398. _ACEOF
  11399. sed -n '
  11400. h
  11401. s/^/S["/; s/!.*/"]=/
  11402. p
  11403. g
  11404. s/^[^!]*!//
  11405. :repl
  11406. t repl
  11407. s/'"$ac_delim"'$//
  11408. t delim
  11409. :nl
  11410. h
  11411. s/\(.\{148\}\).*/\1/
  11412. t more1
  11413. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11414. p
  11415. n
  11416. b repl
  11417. :more1
  11418. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11419. p
  11420. g
  11421. s/.\{148\}//
  11422. t nl
  11423. :delim
  11424. h
  11425. s/\(.\{148\}\).*/\1/
  11426. t more2
  11427. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11428. p
  11429. b
  11430. :more2
  11431. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11432. p
  11433. g
  11434. s/.\{148\}//
  11435. t delim
  11436. ' <conf$$subs.awk | sed '
  11437. /^[^""]/{
  11438. N
  11439. s/\n//
  11440. }
  11441. ' >>$CONFIG_STATUS || ac_write_fail=1
  11442. rm -f conf$$subs.awk
  11443. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11444. _ACAWK
  11445. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  11446. for (key in S) S_is_set[key] = 1
  11447. FS = ""
  11448. }
  11449. {
  11450. line = $ 0
  11451. nfields = split(line, field, "@")
  11452. substed = 0
  11453. len = length(field[1])
  11454. for (i = 2; i < nfields; i++) {
  11455. key = field[i]
  11456. keylen = length(key)
  11457. if (S_is_set[key]) {
  11458. value = S[key]
  11459. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11460. len += length(value) + length(field[++i])
  11461. substed = 1
  11462. } else
  11463. len += 1 + keylen
  11464. }
  11465. print line
  11466. }
  11467. _ACAWK
  11468. _ACEOF
  11469. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11470. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11471. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11472. else
  11473. cat
  11474. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  11475. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  11476. _ACEOF
  11477. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11478. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11479. # trailing colons and then remove the whole line if VPATH becomes empty
  11480. # (actually we leave an empty line to preserve line numbers).
  11481. if test "x$srcdir" = x.; then
  11482. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11483. s/:*\$(srcdir):*/:/
  11484. s/:*\${srcdir}:*/:/
  11485. s/:*@srcdir@:*/:/
  11486. s/^\([^=]*=[ ]*\):*/\1/
  11487. s/:*$//
  11488. s/^[^=]*=[ ]*$//
  11489. }'
  11490. fi
  11491. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11492. fi # test -n "$CONFIG_FILES"
  11493. # Set up the scripts for CONFIG_HEADERS section.
  11494. # No need to generate them if there are no CONFIG_HEADERS.
  11495. # This happens for instance with `./config.status Makefile'.
  11496. if test -n "$CONFIG_HEADERS"; then
  11497. cat >"$tmp/defines.awk" <<\_ACAWK ||
  11498. BEGIN {
  11499. _ACEOF
  11500. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11501. # here-document in config.status, that substitutes the proper values into
  11502. # config.h.in to produce config.h.
  11503. # Create a delimiter string that does not exist in confdefs.h, to ease
  11504. # handling of long lines.
  11505. ac_delim='%!_!# '
  11506. for ac_last_try in false false :; do
  11507. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  11508. if test -z "$ac_t"; then
  11509. break
  11510. elif $ac_last_try; then
  11511. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  11512. else
  11513. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11514. fi
  11515. done
  11516. # For the awk script, D is an array of macro values keyed by name,
  11517. # likewise P contains macro parameters if any. Preserve backslash
  11518. # newline sequences.
  11519. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11520. sed -n '
  11521. s/.\{148\}/&'"$ac_delim"'/g
  11522. t rset
  11523. :rset
  11524. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11525. t def
  11526. d
  11527. :def
  11528. s/\\$//
  11529. t bsnl
  11530. s/["\\]/\\&/g
  11531. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11532. D["\1"]=" \3"/p
  11533. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11534. d
  11535. :bsnl
  11536. s/["\\]/\\&/g
  11537. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11538. D["\1"]=" \3\\\\\\n"\\/p
  11539. t cont
  11540. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11541. t cont
  11542. d
  11543. :cont
  11544. n
  11545. s/.\{148\}/&'"$ac_delim"'/g
  11546. t clear
  11547. :clear
  11548. s/\\$//
  11549. t bsnlc
  11550. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11551. d
  11552. :bsnlc
  11553. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11554. b cont
  11555. ' <confdefs.h | sed '
  11556. s/'"$ac_delim"'/"\\\
  11557. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11558. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11559. for (key in D) D_is_set[key] = 1
  11560. FS = ""
  11561. }
  11562. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11563. line = \$ 0
  11564. split(line, arg, " ")
  11565. if (arg[1] == "#") {
  11566. defundef = arg[2]
  11567. mac1 = arg[3]
  11568. } else {
  11569. defundef = substr(arg[1], 2)
  11570. mac1 = arg[2]
  11571. }
  11572. split(mac1, mac2, "(") #)
  11573. macro = mac2[1]
  11574. prefix = substr(line, 1, index(line, defundef) - 1)
  11575. if (D_is_set[macro]) {
  11576. # Preserve the white space surrounding the "#".
  11577. print prefix "define", macro P[macro] D[macro]
  11578. next
  11579. } else {
  11580. # Replace #undef with comments. This is necessary, for example,
  11581. # in the case of _POSIX_SOURCE, which is predefined and required
  11582. # on some systems where configure will not decide to define it.
  11583. if (defundef == "undef") {
  11584. print "/*", prefix defundef, macro, "*/"
  11585. next
  11586. }
  11587. }
  11588. }
  11589. { print }
  11590. _ACAWK
  11591. _ACEOF
  11592. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11593. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  11594. fi # test -n "$CONFIG_HEADERS"
  11595. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11596. shift
  11597. for ac_tag
  11598. do
  11599. case $ac_tag in
  11600. :[FHLC]) ac_mode=$ac_tag; continue;;
  11601. esac
  11602. case $ac_mode$ac_tag in
  11603. :[FHL]*:*);;
  11604. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11605. :[FH]-) ac_tag=-:-;;
  11606. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11607. esac
  11608. ac_save_IFS=$IFS
  11609. IFS=:
  11610. set x $ac_tag
  11611. IFS=$ac_save_IFS
  11612. shift
  11613. ac_file=$1
  11614. shift
  11615. case $ac_mode in
  11616. :L) ac_source=$1;;
  11617. :[FH])
  11618. ac_file_inputs=
  11619. for ac_f
  11620. do
  11621. case $ac_f in
  11622. -) ac_f="$tmp/stdin";;
  11623. *) # Look for the file first in the build tree, then in the source tree
  11624. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11625. # because $ac_f cannot contain `:'.
  11626. test -f "$ac_f" ||
  11627. case $ac_f in
  11628. [\\/$]*) false;;
  11629. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11630. esac ||
  11631. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11632. esac
  11633. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11634. as_fn_append ac_file_inputs " '$ac_f'"
  11635. done
  11636. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11637. # use $as_me), people would be surprised to read:
  11638. # /* config.h. Generated by config.status. */
  11639. configure_input='Generated from '`
  11640. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11641. `' by configure.'
  11642. if test x"$ac_file" != x-; then
  11643. configure_input="$ac_file. $configure_input"
  11644. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11645. $as_echo "$as_me: creating $ac_file" >&6;}
  11646. fi
  11647. # Neutralize special characters interpreted by sed in replacement strings.
  11648. case $configure_input in #(
  11649. *\&* | *\|* | *\\* )
  11650. ac_sed_conf_input=`$as_echo "$configure_input" |
  11651. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11652. *) ac_sed_conf_input=$configure_input;;
  11653. esac
  11654. case $ac_tag in
  11655. *:-:* | *:-) cat >"$tmp/stdin" \
  11656. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  11657. esac
  11658. ;;
  11659. esac
  11660. ac_dir=`$as_dirname -- "$ac_file" ||
  11661. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11662. X"$ac_file" : 'X\(//\)[^/]' \| \
  11663. X"$ac_file" : 'X\(//\)$' \| \
  11664. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11665. $as_echo X"$ac_file" |
  11666. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11667. s//\1/
  11668. q
  11669. }
  11670. /^X\(\/\/\)[^/].*/{
  11671. s//\1/
  11672. q
  11673. }
  11674. /^X\(\/\/\)$/{
  11675. s//\1/
  11676. q
  11677. }
  11678. /^X\(\/\).*/{
  11679. s//\1/
  11680. q
  11681. }
  11682. s/.*/./; q'`
  11683. as_dir="$ac_dir"; as_fn_mkdir_p
  11684. ac_builddir=.
  11685. case "$ac_dir" in
  11686. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11687. *)
  11688. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11689. # A ".." for each directory in $ac_dir_suffix.
  11690. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11691. case $ac_top_builddir_sub in
  11692. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11693. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11694. esac ;;
  11695. esac
  11696. ac_abs_top_builddir=$ac_pwd
  11697. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11698. # for backward compatibility:
  11699. ac_top_builddir=$ac_top_build_prefix
  11700. case $srcdir in
  11701. .) # We are building in place.
  11702. ac_srcdir=.
  11703. ac_top_srcdir=$ac_top_builddir_sub
  11704. ac_abs_top_srcdir=$ac_pwd ;;
  11705. [\\/]* | ?:[\\/]* ) # Absolute name.
  11706. ac_srcdir=$srcdir$ac_dir_suffix;
  11707. ac_top_srcdir=$srcdir
  11708. ac_abs_top_srcdir=$srcdir ;;
  11709. *) # Relative name.
  11710. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11711. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11712. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11713. esac
  11714. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11715. case $ac_mode in
  11716. :F)
  11717. #
  11718. # CONFIG_FILE
  11719. #
  11720. case $INSTALL in
  11721. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11722. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11723. esac
  11724. ac_MKDIR_P=$MKDIR_P
  11725. case $MKDIR_P in
  11726. [\\/$]* | ?:[\\/]* ) ;;
  11727. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11728. esac
  11729. _ACEOF
  11730. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11731. # If the template does not know about datarootdir, expand it.
  11732. # FIXME: This hack should be removed a few years after 2.60.
  11733. ac_datarootdir_hack=; ac_datarootdir_seen=
  11734. ac_sed_dataroot='
  11735. /datarootdir/ {
  11736. p
  11737. q
  11738. }
  11739. /@datadir@/p
  11740. /@docdir@/p
  11741. /@infodir@/p
  11742. /@localedir@/p
  11743. /@mandir@/p'
  11744. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11745. *datarootdir*) ac_datarootdir_seen=yes;;
  11746. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11748. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11749. _ACEOF
  11750. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11751. ac_datarootdir_hack='
  11752. s&@datadir@&$datadir&g
  11753. s&@docdir@&$docdir&g
  11754. s&@infodir@&$infodir&g
  11755. s&@localedir@&$localedir&g
  11756. s&@mandir@&$mandir&g
  11757. s&\\\${datarootdir}&$datarootdir&g' ;;
  11758. esac
  11759. _ACEOF
  11760. # Neutralize VPATH when `$srcdir' = `.'.
  11761. # Shell code in configure.ac might set extrasub.
  11762. # FIXME: do we really want to maintain this feature?
  11763. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11764. ac_sed_extra="$ac_vpsub
  11765. $extrasub
  11766. _ACEOF
  11767. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11768. :t
  11769. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11770. s|@configure_input@|$ac_sed_conf_input|;t t
  11771. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11772. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11773. s&@srcdir@&$ac_srcdir&;t t
  11774. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11775. s&@top_srcdir@&$ac_top_srcdir&;t t
  11776. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11777. s&@builddir@&$ac_builddir&;t t
  11778. s&@abs_builddir@&$ac_abs_builddir&;t t
  11779. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11780. s&@INSTALL@&$ac_INSTALL&;t t
  11781. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11782. $ac_datarootdir_hack
  11783. "
  11784. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  11785. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11786. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11787. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  11788. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  11789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11790. which seems to be undefined. Please make sure it is defined." >&5
  11791. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11792. which seems to be undefined. Please make sure it is defined." >&2;}
  11793. rm -f "$tmp/stdin"
  11794. case $ac_file in
  11795. -) cat "$tmp/out" && rm -f "$tmp/out";;
  11796. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  11797. esac \
  11798. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11799. ;;
  11800. :H)
  11801. #
  11802. # CONFIG_HEADER
  11803. #
  11804. if test x"$ac_file" != x-; then
  11805. {
  11806. $as_echo "/* $configure_input */" \
  11807. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  11808. } >"$tmp/config.h" \
  11809. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11810. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  11811. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11812. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11813. else
  11814. rm -f "$ac_file"
  11815. mv "$tmp/config.h" "$ac_file" \
  11816. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11817. fi
  11818. else
  11819. $as_echo "/* $configure_input */" \
  11820. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  11821. || as_fn_error "could not create -" "$LINENO" 5
  11822. fi
  11823. # Compute "$ac_file"'s index in $config_headers.
  11824. _am_arg="$ac_file"
  11825. _am_stamp_count=1
  11826. for _am_header in $config_headers :; do
  11827. case $_am_header in
  11828. $_am_arg | $_am_arg:* )
  11829. break ;;
  11830. * )
  11831. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11832. esac
  11833. done
  11834. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11835. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11836. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11837. X"$_am_arg" : 'X\(//\)$' \| \
  11838. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11839. $as_echo X"$_am_arg" |
  11840. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11841. s//\1/
  11842. q
  11843. }
  11844. /^X\(\/\/\)[^/].*/{
  11845. s//\1/
  11846. q
  11847. }
  11848. /^X\(\/\/\)$/{
  11849. s//\1/
  11850. q
  11851. }
  11852. /^X\(\/\).*/{
  11853. s//\1/
  11854. q
  11855. }
  11856. s/.*/./; q'`/stamp-h$_am_stamp_count
  11857. ;;
  11858. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11859. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11860. ;;
  11861. esac
  11862. case $ac_file$ac_mode in
  11863. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11864. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11865. # are listed without --file. Let's play safe and only enable the eval
  11866. # if we detect the quoting.
  11867. case $CONFIG_FILES in
  11868. *\'*) eval set x "$CONFIG_FILES" ;;
  11869. *) set x $CONFIG_FILES ;;
  11870. esac
  11871. shift
  11872. for mf
  11873. do
  11874. # Strip MF so we end up with the name of the file.
  11875. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11876. # Check whether this is an Automake generated Makefile or not.
  11877. # We used to match only the files named `Makefile.in', but
  11878. # some people rename them; so instead we look at the file content.
  11879. # Grep'ing the first line is not enough: some people post-process
  11880. # each Makefile.in and add a new line on top of each file to say so.
  11881. # Grep'ing the whole file is not good either: AIX grep has a line
  11882. # limit of 2048, but all sed's we know have understand at least 4000.
  11883. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11884. dirpart=`$as_dirname -- "$mf" ||
  11885. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11886. X"$mf" : 'X\(//\)[^/]' \| \
  11887. X"$mf" : 'X\(//\)$' \| \
  11888. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11889. $as_echo X"$mf" |
  11890. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11891. s//\1/
  11892. q
  11893. }
  11894. /^X\(\/\/\)[^/].*/{
  11895. s//\1/
  11896. q
  11897. }
  11898. /^X\(\/\/\)$/{
  11899. s//\1/
  11900. q
  11901. }
  11902. /^X\(\/\).*/{
  11903. s//\1/
  11904. q
  11905. }
  11906. s/.*/./; q'`
  11907. else
  11908. continue
  11909. fi
  11910. # Extract the definition of DEPDIR, am__include, and am__quote
  11911. # from the Makefile without running `make'.
  11912. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11913. test -z "$DEPDIR" && continue
  11914. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11915. test -z "am__include" && continue
  11916. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11917. # When using ansi2knr, U may be empty or an underscore; expand it
  11918. U=`sed -n 's/^U = //p' < "$mf"`
  11919. # Find all dependency output files, they are included files with
  11920. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11921. # simplest approach to changing $(DEPDIR) to its actual value in the
  11922. # expansion.
  11923. for file in `sed -n "
  11924. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11925. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11926. # Make sure the directory exists.
  11927. test -f "$dirpart/$file" && continue
  11928. fdir=`$as_dirname -- "$file" ||
  11929. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11930. X"$file" : 'X\(//\)[^/]' \| \
  11931. X"$file" : 'X\(//\)$' \| \
  11932. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11933. $as_echo X"$file" |
  11934. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11935. s//\1/
  11936. q
  11937. }
  11938. /^X\(\/\/\)[^/].*/{
  11939. s//\1/
  11940. q
  11941. }
  11942. /^X\(\/\/\)$/{
  11943. s//\1/
  11944. q
  11945. }
  11946. /^X\(\/\).*/{
  11947. s//\1/
  11948. q
  11949. }
  11950. s/.*/./; q'`
  11951. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11952. # echo "creating $dirpart/$file"
  11953. echo '# dummy' > "$dirpart/$file"
  11954. done
  11955. done
  11956. }
  11957. ;;
  11958. "libtool":C)
  11959. # See if we are running on zsh, and set the options which allow our
  11960. # commands through without removal of \ escapes.
  11961. if test -n "${ZSH_VERSION+set}" ; then
  11962. setopt NO_GLOB_SUBST
  11963. fi
  11964. cfgfile="${ofile}T"
  11965. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11966. $RM "$cfgfile"
  11967. cat <<_LT_EOF >> "$cfgfile"
  11968. #! $SHELL
  11969. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11970. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11971. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11972. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11973. #
  11974. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11975. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  11976. # Written by Gordon Matzigkeit, 1996
  11977. #
  11978. # This file is part of GNU Libtool.
  11979. #
  11980. # GNU Libtool is free software; you can redistribute it and/or
  11981. # modify it under the terms of the GNU General Public License as
  11982. # published by the Free Software Foundation; either version 2 of
  11983. # the License, or (at your option) any later version.
  11984. #
  11985. # As a special exception to the GNU General Public License,
  11986. # if you distribute this file as part of a program or library that
  11987. # is built using GNU Libtool, you may include this file under the
  11988. # same distribution terms that you use for the rest of that program.
  11989. #
  11990. # GNU Libtool is distributed in the hope that it will be useful,
  11991. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11992. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11993. # GNU General Public License for more details.
  11994. #
  11995. # You should have received a copy of the GNU General Public License
  11996. # along with GNU Libtool; see the file COPYING. If not, a copy
  11997. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11998. # obtained by writing to the Free Software Foundation, Inc.,
  11999. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12000. # The names of the tagged configurations supported by this script.
  12001. available_tags=""
  12002. # ### BEGIN LIBTOOL CONFIG
  12003. # Which release of libtool.m4 was used?
  12004. macro_version=$macro_version
  12005. macro_revision=$macro_revision
  12006. # Whether or not to build shared libraries.
  12007. build_libtool_libs=$enable_shared
  12008. # Whether or not to build static libraries.
  12009. build_old_libs=$enable_static
  12010. # What type of objects to build.
  12011. pic_mode=$pic_mode
  12012. # Whether or not to optimize for fast installation.
  12013. fast_install=$enable_fast_install
  12014. # Shell to use when invoking shell scripts.
  12015. SHELL=$lt_SHELL
  12016. # An echo program that protects backslashes.
  12017. ECHO=$lt_ECHO
  12018. # The host system.
  12019. host_alias=$host_alias
  12020. host=$host
  12021. host_os=$host_os
  12022. # The build system.
  12023. build_alias=$build_alias
  12024. build=$build
  12025. build_os=$build_os
  12026. # A sed program that does not truncate output.
  12027. SED=$lt_SED
  12028. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12029. Xsed="\$SED -e 1s/^X//"
  12030. # A grep program that handles long lines.
  12031. GREP=$lt_GREP
  12032. # An ERE matcher.
  12033. EGREP=$lt_EGREP
  12034. # A literal string matcher.
  12035. FGREP=$lt_FGREP
  12036. # A BSD- or MS-compatible name lister.
  12037. NM=$lt_NM
  12038. # Whether we need soft or hard links.
  12039. LN_S=$lt_LN_S
  12040. # What is the maximum length of a command?
  12041. max_cmd_len=$max_cmd_len
  12042. # Object file suffix (normally "o").
  12043. objext=$ac_objext
  12044. # Executable file suffix (normally "").
  12045. exeext=$exeext
  12046. # whether the shell understands "unset".
  12047. lt_unset=$lt_unset
  12048. # turn spaces into newlines.
  12049. SP2NL=$lt_lt_SP2NL
  12050. # turn newlines into spaces.
  12051. NL2SP=$lt_lt_NL2SP
  12052. # An object symbol dumper.
  12053. OBJDUMP=$lt_OBJDUMP
  12054. # Method to check whether dependent libraries are shared objects.
  12055. deplibs_check_method=$lt_deplibs_check_method
  12056. # Command to use when deplibs_check_method == "file_magic".
  12057. file_magic_cmd=$lt_file_magic_cmd
  12058. # The archiver.
  12059. AR=$lt_AR
  12060. AR_FLAGS=$lt_AR_FLAGS
  12061. # A symbol stripping program.
  12062. STRIP=$lt_STRIP
  12063. # Commands used to install an old-style archive.
  12064. RANLIB=$lt_RANLIB
  12065. old_postinstall_cmds=$lt_old_postinstall_cmds
  12066. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12067. # Whether to use a lock for old archive extraction.
  12068. lock_old_archive_extraction=$lock_old_archive_extraction
  12069. # A C compiler.
  12070. LTCC=$lt_CC
  12071. # LTCC compiler flags.
  12072. LTCFLAGS=$lt_CFLAGS
  12073. # Take the output of nm and produce a listing of raw symbols and C names.
  12074. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12075. # Transform the output of nm in a proper C declaration.
  12076. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12077. # Transform the output of nm in a C name address pair.
  12078. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12079. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12080. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12081. # The name of the directory that contains temporary libtool files.
  12082. objdir=$objdir
  12083. # Used to examine libraries when file_magic_cmd begins with "file".
  12084. MAGIC_CMD=$MAGIC_CMD
  12085. # Must we lock files when doing compilation?
  12086. need_locks=$lt_need_locks
  12087. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12088. DSYMUTIL=$lt_DSYMUTIL
  12089. # Tool to change global to local symbols on Mac OS X.
  12090. NMEDIT=$lt_NMEDIT
  12091. # Tool to manipulate fat objects and archives on Mac OS X.
  12092. LIPO=$lt_LIPO
  12093. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12094. OTOOL=$lt_OTOOL
  12095. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12096. OTOOL64=$lt_OTOOL64
  12097. # Old archive suffix (normally "a").
  12098. libext=$libext
  12099. # Shared library suffix (normally ".so").
  12100. shrext_cmds=$lt_shrext_cmds
  12101. # The commands to extract the exported symbol list from a shared archive.
  12102. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12103. # Variables whose values should be saved in libtool wrapper scripts and
  12104. # restored at link time.
  12105. variables_saved_for_relink=$lt_variables_saved_for_relink
  12106. # Do we need the "lib" prefix for modules?
  12107. need_lib_prefix=$need_lib_prefix
  12108. # Do we need a version for libraries?
  12109. need_version=$need_version
  12110. # Library versioning type.
  12111. version_type=$version_type
  12112. # Shared library runtime path variable.
  12113. runpath_var=$runpath_var
  12114. # Shared library path variable.
  12115. shlibpath_var=$shlibpath_var
  12116. # Is shlibpath searched before the hard-coded library search path?
  12117. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12118. # Format of library name prefix.
  12119. libname_spec=$lt_libname_spec
  12120. # List of archive names. First name is the real one, the rest are links.
  12121. # The last name is the one that the linker finds with -lNAME
  12122. library_names_spec=$lt_library_names_spec
  12123. # The coded name of the library, if different from the real name.
  12124. soname_spec=$lt_soname_spec
  12125. # Permission mode override for installation of shared libraries.
  12126. install_override_mode=$lt_install_override_mode
  12127. # Command to use after installation of a shared archive.
  12128. postinstall_cmds=$lt_postinstall_cmds
  12129. # Command to use after uninstallation of a shared archive.
  12130. postuninstall_cmds=$lt_postuninstall_cmds
  12131. # Commands used to finish a libtool library installation in a directory.
  12132. finish_cmds=$lt_finish_cmds
  12133. # As "finish_cmds", except a single script fragment to be evaled but
  12134. # not shown.
  12135. finish_eval=$lt_finish_eval
  12136. # Whether we should hardcode library paths into libraries.
  12137. hardcode_into_libs=$hardcode_into_libs
  12138. # Compile-time system search path for libraries.
  12139. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12140. # Run-time system search path for libraries.
  12141. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12142. # Whether dlopen is supported.
  12143. dlopen_support=$enable_dlopen
  12144. # Whether dlopen of programs is supported.
  12145. dlopen_self=$enable_dlopen_self
  12146. # Whether dlopen of statically linked programs is supported.
  12147. dlopen_self_static=$enable_dlopen_self_static
  12148. # Commands to strip libraries.
  12149. old_striplib=$lt_old_striplib
  12150. striplib=$lt_striplib
  12151. # The linker used to build libraries.
  12152. LD=$lt_LD
  12153. # How to create reloadable object files.
  12154. reload_flag=$lt_reload_flag
  12155. reload_cmds=$lt_reload_cmds
  12156. # Commands used to build an old-style archive.
  12157. old_archive_cmds=$lt_old_archive_cmds
  12158. # A language specific compiler.
  12159. CC=$lt_compiler
  12160. # Is the compiler the GNU compiler?
  12161. with_gcc=$GCC
  12162. # Compiler flag to turn off builtin functions.
  12163. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12164. # How to pass a linker flag through the compiler.
  12165. wl=$lt_lt_prog_compiler_wl
  12166. # Additional compiler flags for building library objects.
  12167. pic_flag=$lt_lt_prog_compiler_pic
  12168. # Compiler flag to prevent dynamic linking.
  12169. link_static_flag=$lt_lt_prog_compiler_static
  12170. # Does compiler simultaneously support -c and -o options?
  12171. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12172. # Whether or not to add -lc for building shared libraries.
  12173. build_libtool_need_lc=$archive_cmds_need_lc
  12174. # Whether or not to disallow shared libs when runtime libs are static.
  12175. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12176. # Compiler flag to allow reflexive dlopens.
  12177. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12178. # Compiler flag to generate shared objects directly from archives.
  12179. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12180. # Whether the compiler copes with passing no objects directly.
  12181. compiler_needs_object=$lt_compiler_needs_object
  12182. # Create an old-style archive from a shared archive.
  12183. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12184. # Create a temporary old-style archive to link instead of a shared archive.
  12185. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12186. # Commands used to build a shared archive.
  12187. archive_cmds=$lt_archive_cmds
  12188. archive_expsym_cmds=$lt_archive_expsym_cmds
  12189. # Commands used to build a loadable module if different from building
  12190. # a shared archive.
  12191. module_cmds=$lt_module_cmds
  12192. module_expsym_cmds=$lt_module_expsym_cmds
  12193. # Whether we are building with GNU ld or not.
  12194. with_gnu_ld=$lt_with_gnu_ld
  12195. # Flag that allows shared libraries with undefined symbols to be built.
  12196. allow_undefined_flag=$lt_allow_undefined_flag
  12197. # Flag that enforces no undefined symbols.
  12198. no_undefined_flag=$lt_no_undefined_flag
  12199. # Flag to hardcode \$libdir into a binary during linking.
  12200. # This must work even if \$libdir does not exist
  12201. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12202. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12203. # during linking. This must work even if \$libdir does not exist.
  12204. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12205. # Whether we need a single "-rpath" flag with a separated argument.
  12206. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12207. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12208. # DIR into the resulting binary.
  12209. hardcode_direct=$hardcode_direct
  12210. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12211. # DIR into the resulting binary and the resulting library dependency is
  12212. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12213. # library is relocated.
  12214. hardcode_direct_absolute=$hardcode_direct_absolute
  12215. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12216. # into the resulting binary.
  12217. hardcode_minus_L=$hardcode_minus_L
  12218. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12219. # into the resulting binary.
  12220. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12221. # Set to "yes" if building a shared library automatically hardcodes DIR
  12222. # into the library and all subsequent libraries and executables linked
  12223. # against it.
  12224. hardcode_automatic=$hardcode_automatic
  12225. # Set to yes if linker adds runtime paths of dependent libraries
  12226. # to runtime path list.
  12227. inherit_rpath=$inherit_rpath
  12228. # Whether libtool must link a program against all its dependency libraries.
  12229. link_all_deplibs=$link_all_deplibs
  12230. # Fix the shell variable \$srcfile for the compiler.
  12231. fix_srcfile_path=$lt_fix_srcfile_path
  12232. # Set to "yes" if exported symbols are required.
  12233. always_export_symbols=$always_export_symbols
  12234. # The commands to list exported symbols.
  12235. export_symbols_cmds=$lt_export_symbols_cmds
  12236. # Symbols that should not be listed in the preloaded symbols.
  12237. exclude_expsyms=$lt_exclude_expsyms
  12238. # Symbols that must always be exported.
  12239. include_expsyms=$lt_include_expsyms
  12240. # Commands necessary for linking programs (against libraries) with templates.
  12241. prelink_cmds=$lt_prelink_cmds
  12242. # Specify filename containing input files.
  12243. file_list_spec=$lt_file_list_spec
  12244. # How to hardcode a shared library path into an executable.
  12245. hardcode_action=$hardcode_action
  12246. # ### END LIBTOOL CONFIG
  12247. _LT_EOF
  12248. case $host_os in
  12249. aix3*)
  12250. cat <<\_LT_EOF >> "$cfgfile"
  12251. # AIX sometimes has problems with the GCC collect2 program. For some
  12252. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12253. # vanish in a puff of smoke.
  12254. if test "X${COLLECT_NAMES+set}" != Xset; then
  12255. COLLECT_NAMES=
  12256. export COLLECT_NAMES
  12257. fi
  12258. _LT_EOF
  12259. ;;
  12260. esac
  12261. ltmain="$ac_aux_dir/ltmain.sh"
  12262. # We use sed instead of cat because bash on DJGPP gets confused if
  12263. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12264. # text mode, it properly converts lines to CR/LF. This bash problem
  12265. # is reportedly fixed, but why not run on old versions too?
  12266. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12267. || (rm -f "$cfgfile"; exit 1)
  12268. case $xsi_shell in
  12269. yes)
  12270. cat << \_LT_EOF >> "$cfgfile"
  12271. # func_dirname file append nondir_replacement
  12272. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12273. # otherwise set result to NONDIR_REPLACEMENT.
  12274. func_dirname ()
  12275. {
  12276. case ${1} in
  12277. */*) func_dirname_result="${1%/*}${2}" ;;
  12278. * ) func_dirname_result="${3}" ;;
  12279. esac
  12280. }
  12281. # func_basename file
  12282. func_basename ()
  12283. {
  12284. func_basename_result="${1##*/}"
  12285. }
  12286. # func_dirname_and_basename file append nondir_replacement
  12287. # perform func_basename and func_dirname in a single function
  12288. # call:
  12289. # dirname: Compute the dirname of FILE. If nonempty,
  12290. # add APPEND to the result, otherwise set result
  12291. # to NONDIR_REPLACEMENT.
  12292. # value returned in "$func_dirname_result"
  12293. # basename: Compute filename of FILE.
  12294. # value retuned in "$func_basename_result"
  12295. # Implementation must be kept synchronized with func_dirname
  12296. # and func_basename. For efficiency, we do not delegate to
  12297. # those functions but instead duplicate the functionality here.
  12298. func_dirname_and_basename ()
  12299. {
  12300. case ${1} in
  12301. */*) func_dirname_result="${1%/*}${2}" ;;
  12302. * ) func_dirname_result="${3}" ;;
  12303. esac
  12304. func_basename_result="${1##*/}"
  12305. }
  12306. # func_stripname prefix suffix name
  12307. # strip PREFIX and SUFFIX off of NAME.
  12308. # PREFIX and SUFFIX must not contain globbing or regex special
  12309. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12310. # dot (in which case that matches only a dot).
  12311. func_stripname ()
  12312. {
  12313. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12314. # positional parameters, so assign one to ordinary parameter first.
  12315. func_stripname_result=${3}
  12316. func_stripname_result=${func_stripname_result#"${1}"}
  12317. func_stripname_result=${func_stripname_result%"${2}"}
  12318. }
  12319. # func_opt_split
  12320. func_opt_split ()
  12321. {
  12322. func_opt_split_opt=${1%%=*}
  12323. func_opt_split_arg=${1#*=}
  12324. }
  12325. # func_lo2o object
  12326. func_lo2o ()
  12327. {
  12328. case ${1} in
  12329. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12330. *) func_lo2o_result=${1} ;;
  12331. esac
  12332. }
  12333. # func_xform libobj-or-source
  12334. func_xform ()
  12335. {
  12336. func_xform_result=${1%.*}.lo
  12337. }
  12338. # func_arith arithmetic-term...
  12339. func_arith ()
  12340. {
  12341. func_arith_result=$(( $* ))
  12342. }
  12343. # func_len string
  12344. # STRING may not start with a hyphen.
  12345. func_len ()
  12346. {
  12347. func_len_result=${#1}
  12348. }
  12349. _LT_EOF
  12350. ;;
  12351. *) # Bourne compatible functions.
  12352. cat << \_LT_EOF >> "$cfgfile"
  12353. # func_dirname file append nondir_replacement
  12354. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12355. # otherwise set result to NONDIR_REPLACEMENT.
  12356. func_dirname ()
  12357. {
  12358. # Extract subdirectory from the argument.
  12359. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  12360. if test "X$func_dirname_result" = "X${1}"; then
  12361. func_dirname_result="${3}"
  12362. else
  12363. func_dirname_result="$func_dirname_result${2}"
  12364. fi
  12365. }
  12366. # func_basename file
  12367. func_basename ()
  12368. {
  12369. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  12370. }
  12371. # func_stripname prefix suffix name
  12372. # strip PREFIX and SUFFIX off of NAME.
  12373. # PREFIX and SUFFIX must not contain globbing or regex special
  12374. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12375. # dot (in which case that matches only a dot).
  12376. # func_strip_suffix prefix name
  12377. func_stripname ()
  12378. {
  12379. case ${2} in
  12380. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12381. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12382. esac
  12383. }
  12384. # sed scripts:
  12385. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12386. my_sed_long_arg='1s/^-[^=]*=//'
  12387. # func_opt_split
  12388. func_opt_split ()
  12389. {
  12390. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  12391. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  12392. }
  12393. # func_lo2o object
  12394. func_lo2o ()
  12395. {
  12396. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  12397. }
  12398. # func_xform libobj-or-source
  12399. func_xform ()
  12400. {
  12401. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  12402. }
  12403. # func_arith arithmetic-term...
  12404. func_arith ()
  12405. {
  12406. func_arith_result=`expr "$@"`
  12407. }
  12408. # func_len string
  12409. # STRING may not start with a hyphen.
  12410. func_len ()
  12411. {
  12412. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12413. }
  12414. _LT_EOF
  12415. esac
  12416. case $lt_shell_append in
  12417. yes)
  12418. cat << \_LT_EOF >> "$cfgfile"
  12419. # func_append var value
  12420. # Append VALUE to the end of shell variable VAR.
  12421. func_append ()
  12422. {
  12423. eval "$1+=\$2"
  12424. }
  12425. _LT_EOF
  12426. ;;
  12427. *)
  12428. cat << \_LT_EOF >> "$cfgfile"
  12429. # func_append var value
  12430. # Append VALUE to the end of shell variable VAR.
  12431. func_append ()
  12432. {
  12433. eval "$1=\$$1\$2"
  12434. }
  12435. _LT_EOF
  12436. ;;
  12437. esac
  12438. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12439. || (rm -f "$cfgfile"; exit 1)
  12440. mv -f "$cfgfile" "$ofile" ||
  12441. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12442. chmod +x "$ofile"
  12443. ;;
  12444. "default-1":C)
  12445. for ac_file in $CONFIG_FILES; do
  12446. # Support "outfile[:infile[:infile...]]"
  12447. case "$ac_file" in
  12448. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  12449. esac
  12450. # PO directories have a Makefile.in generated from Makefile.in.in.
  12451. case "$ac_file" in */Makefile.in)
  12452. # Adjust a relative srcdir.
  12453. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  12454. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  12455. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  12456. # In autoconf-2.13 it is called $ac_given_srcdir.
  12457. # In autoconf-2.50 it is called $srcdir.
  12458. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  12459. case "$ac_given_srcdir" in
  12460. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  12461. /*) top_srcdir="$ac_given_srcdir" ;;
  12462. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  12463. esac
  12464. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  12465. rm -f "$ac_dir/POTFILES"
  12466. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  12467. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  12468. POMAKEFILEDEPS="POTFILES.in"
  12469. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  12470. # on $ac_dir but don't depend on user-specified configuration
  12471. # parameters.
  12472. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  12473. # The LINGUAS file contains the set of available languages.
  12474. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  12475. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
  12476. fi
  12477. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  12478. # Hide the ALL_LINGUAS assigment from automake.
  12479. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  12480. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  12481. else
  12482. # The set of available languages was given in configure.ac.
  12483. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  12484. fi
  12485. case "$ac_given_srcdir" in
  12486. .) srcdirpre= ;;
  12487. *) srcdirpre='$(srcdir)/' ;;
  12488. esac
  12489. POFILES=
  12490. GMOFILES=
  12491. UPDATEPOFILES=
  12492. DUMMYPOFILES=
  12493. for lang in $ALL_LINGUAS; do
  12494. POFILES="$POFILES $srcdirpre$lang.po"
  12495. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  12496. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  12497. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  12498. done
  12499. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  12500. # environment variable.
  12501. INST_LINGUAS=
  12502. if test -n "$ALL_LINGUAS"; then
  12503. for presentlang in $ALL_LINGUAS; do
  12504. useit=no
  12505. if test "%UNSET%" != "$LINGUAS"; then
  12506. desiredlanguages="$LINGUAS"
  12507. else
  12508. desiredlanguages="$ALL_LINGUAS"
  12509. fi
  12510. for desiredlang in $desiredlanguages; do
  12511. # Use the presentlang catalog if desiredlang is
  12512. # a. equal to presentlang, or
  12513. # b. a variant of presentlang (because in this case,
  12514. # presentlang can be used as a fallback for messages
  12515. # which are not translated in the desiredlang catalog).
  12516. case "$desiredlang" in
  12517. "$presentlang"*) useit=yes;;
  12518. esac
  12519. done
  12520. if test $useit = yes; then
  12521. INST_LINGUAS="$INST_LINGUAS $presentlang"
  12522. fi
  12523. done
  12524. fi
  12525. CATALOGS=
  12526. if test -n "$INST_LINGUAS"; then
  12527. for lang in $INST_LINGUAS; do
  12528. CATALOGS="$CATALOGS $lang.gmo"
  12529. done
  12530. fi
  12531. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  12532. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  12533. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  12534. if test -f "$f"; then
  12535. case "$f" in
  12536. *.orig | *.bak | *~) ;;
  12537. *) cat "$f" >> "$ac_dir/Makefile" ;;
  12538. esac
  12539. fi
  12540. done
  12541. fi
  12542. ;;
  12543. esac
  12544. done ;;
  12545. esac
  12546. done # for ac_tag
  12547. as_fn_exit 0
  12548. _ACEOF
  12549. ac_clean_files=$ac_clean_files_save
  12550. test $ac_write_fail = 0 ||
  12551. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12552. # configure is writing to config.log, and then calls config.status.
  12553. # config.status does its own redirection, appending to config.log.
  12554. # Unfortunately, on DOS this fails, as config.log is still kept open
  12555. # by configure, so config.status won't be able to write to it; its
  12556. # output is simply discarded. So we exec the FD to /dev/null,
  12557. # effectively closing config.log, so it can be properly (re)opened and
  12558. # appended to by config.status. When coming back to configure, we
  12559. # need to make the FD available again.
  12560. if test "$no_create" != yes; then
  12561. ac_cs_success=:
  12562. ac_config_status_args=
  12563. test "$silent" = yes &&
  12564. ac_config_status_args="$ac_config_status_args --quiet"
  12565. exec 5>/dev/null
  12566. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12567. exec 5>>config.log
  12568. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12569. # would make configure fail if this is the last instruction.
  12570. $ac_cs_success || as_fn_exit $?
  12571. fi
  12572. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12573. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12574. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12575. fi