configure 449 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64.
  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=
  509. PACKAGE_TARNAME=
  510. PACKAGE_VERSION=
  511. PACKAGE_STRING=
  512. PACKAGE_BUGREPORT=
  513. PACKAGE_URL=
  514. ac_unique_file="Makefile.in"
  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='LTLIBOBJS
  551. LIBOBJS
  552. cgen_breaks
  553. cgen
  554. cgendir
  555. CGEN_MAINT
  556. REPORT_BUGS_TEXI
  557. REPORT_BUGS_TO
  558. PKGVERSION
  559. sim_profile
  560. sim_trace
  561. sim_stdio
  562. sim_debug
  563. sim_cflags
  564. sim_bswap
  565. MAINT
  566. MAINTAINER_MODE_FALSE
  567. MAINTAINER_MODE_TRUE
  568. lt_cv_dlopen_libs
  569. OTOOL64
  570. OTOOL
  571. LIPO
  572. NMEDIT
  573. DSYMUTIL
  574. AWK
  575. STRIP
  576. OBJDUMP
  577. LN_S
  578. NM
  579. ac_ct_DUMPBIN
  580. DUMPBIN
  581. LD
  582. FGREP
  583. SED
  584. LIBTOOL
  585. PLUGINS_FALSE
  586. PLUGINS_TRUE
  587. zlibinc
  588. zlibdir
  589. CATOBJEXT
  590. GENCAT
  591. INSTOBJEXT
  592. DATADIRNAME
  593. CATALOGS
  594. POSUB
  595. GMSGFMT
  596. XGETTEXT
  597. INCINTL
  598. LIBINTL_DEP
  599. LIBINTL
  600. USE_NLS
  601. GMAKE_FALSE
  602. GMAKE_TRUE
  603. MAKE
  604. CCDEPMODE
  605. DEPDIR
  606. am__leading_dot
  607. PACKAGE
  608. RANLIB
  609. AR
  610. HDEFINES
  611. CC_FOR_BUILD
  612. INSTALL_DATA
  613. INSTALL_SCRIPT
  614. INSTALL_PROGRAM
  615. EGREP
  616. GREP
  617. CPP
  618. target_os
  619. target_vendor
  620. target_cpu
  621. target
  622. host_os
  623. host_vendor
  624. host_cpu
  625. host
  626. build_os
  627. build_vendor
  628. build_cpu
  629. build
  630. OBJEXT
  631. EXEEXT
  632. ac_ct_CC
  633. CPPFLAGS
  634. LDFLAGS
  635. CFLAGS
  636. CC
  637. WERROR_CFLAGS
  638. WARN_CFLAGS
  639. sim_xor_endian
  640. sim_stdcall
  641. sim_smp
  642. sim_reserved_bits
  643. sim_regparm
  644. sim_packages
  645. sim_inline
  646. sim_hw
  647. sim_hw_objs
  648. sim_hw_cflags
  649. sim_default_model
  650. sim_scache
  651. sim_float
  652. sim_hostendian
  653. sim_endian
  654. sim_bitsize
  655. sim_assert
  656. sim_alignment
  657. sim_environment
  658. target_alias
  659. host_alias
  660. build_alias
  661. LIBS
  662. ECHO_T
  663. ECHO_N
  664. ECHO_C
  665. DEFS
  666. mandir
  667. localedir
  668. libdir
  669. psdir
  670. pdfdir
  671. dvidir
  672. htmldir
  673. infodir
  674. docdir
  675. oldincludedir
  676. includedir
  677. localstatedir
  678. sharedstatedir
  679. sysconfdir
  680. datadir
  681. datarootdir
  682. libexecdir
  683. sbindir
  684. bindir
  685. program_transform_name
  686. prefix
  687. exec_prefix
  688. PACKAGE_URL
  689. PACKAGE_BUGREPORT
  690. PACKAGE_STRING
  691. PACKAGE_VERSION
  692. PACKAGE_TARNAME
  693. PACKAGE_NAME
  694. PATH_SEPARATOR
  695. SHELL'
  696. ac_subst_files=''
  697. ac_user_opts='
  698. enable_option_checking
  699. with_system_zlib
  700. enable_plugins
  701. enable_shared
  702. enable_static
  703. with_pic
  704. enable_fast_install
  705. with_gnu_ld
  706. enable_libtool_lock
  707. enable_maintainer_mode
  708. enable_sim_bswap
  709. enable_sim_cflags
  710. enable_sim_debug
  711. enable_sim_stdio
  712. enable_sim_trace
  713. enable_sim_profile
  714. with_pkgversion
  715. with_bugurl
  716. enable_sim_endian
  717. enable_sim_alignment
  718. enable_sim_hostendian
  719. enable_sim_scache
  720. enable_sim_default_model
  721. enable_sim_environment
  722. enable_sim_inline
  723. enable_cgen_maint
  724. enable_sim_hardware
  725. '
  726. ac_precious_vars='build_alias
  727. host_alias
  728. target_alias
  729. CC
  730. CFLAGS
  731. LDFLAGS
  732. LIBS
  733. CPPFLAGS
  734. CPP'
  735. # Initialize some variables set by options.
  736. ac_init_help=
  737. ac_init_version=false
  738. ac_unrecognized_opts=
  739. ac_unrecognized_sep=
  740. # The variables have the same names as the options, with
  741. # dashes changed to underlines.
  742. cache_file=/dev/null
  743. exec_prefix=NONE
  744. no_create=
  745. no_recursion=
  746. prefix=NONE
  747. program_prefix=NONE
  748. program_suffix=NONE
  749. program_transform_name=s,x,x,
  750. silent=
  751. site=
  752. srcdir=
  753. verbose=
  754. x_includes=NONE
  755. x_libraries=NONE
  756. # Installation directory options.
  757. # These are left unexpanded so users can "make install exec_prefix=/foo"
  758. # and all the variables that are supposed to be based on exec_prefix
  759. # by default will actually change.
  760. # Use braces instead of parens because sh, perl, etc. also accept them.
  761. # (The list follows the same order as the GNU Coding Standards.)
  762. bindir='${exec_prefix}/bin'
  763. sbindir='${exec_prefix}/sbin'
  764. libexecdir='${exec_prefix}/libexec'
  765. datarootdir='${prefix}/share'
  766. datadir='${datarootdir}'
  767. sysconfdir='${prefix}/etc'
  768. sharedstatedir='${prefix}/com'
  769. localstatedir='${prefix}/var'
  770. includedir='${prefix}/include'
  771. oldincludedir='/usr/include'
  772. docdir='${datarootdir}/doc/${PACKAGE}'
  773. infodir='${datarootdir}/info'
  774. htmldir='${docdir}'
  775. dvidir='${docdir}'
  776. pdfdir='${docdir}'
  777. psdir='${docdir}'
  778. libdir='${exec_prefix}/lib'
  779. localedir='${datarootdir}/locale'
  780. mandir='${datarootdir}/man'
  781. ac_prev=
  782. ac_dashdash=
  783. for ac_option
  784. do
  785. # If the previous option needs an argument, assign it.
  786. if test -n "$ac_prev"; then
  787. eval $ac_prev=\$ac_option
  788. ac_prev=
  789. continue
  790. fi
  791. case $ac_option in
  792. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  793. *) ac_optarg=yes ;;
  794. esac
  795. # Accept the important Cygnus configure options, so we can diagnose typos.
  796. case $ac_dashdash$ac_option in
  797. --)
  798. ac_dashdash=yes ;;
  799. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  800. ac_prev=bindir ;;
  801. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  802. bindir=$ac_optarg ;;
  803. -build | --build | --buil | --bui | --bu)
  804. ac_prev=build_alias ;;
  805. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  806. build_alias=$ac_optarg ;;
  807. -cache-file | --cache-file | --cache-fil | --cache-fi \
  808. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  809. ac_prev=cache_file ;;
  810. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  811. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  812. cache_file=$ac_optarg ;;
  813. --config-cache | -C)
  814. cache_file=config.cache ;;
  815. -datadir | --datadir | --datadi | --datad)
  816. ac_prev=datadir ;;
  817. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  818. datadir=$ac_optarg ;;
  819. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  820. | --dataroo | --dataro | --datar)
  821. ac_prev=datarootdir ;;
  822. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  823. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  824. datarootdir=$ac_optarg ;;
  825. -disable-* | --disable-*)
  826. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  827. # Reject names that are not valid shell variable names.
  828. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  829. as_fn_error "invalid feature name: $ac_useropt"
  830. ac_useropt_orig=$ac_useropt
  831. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  832. case $ac_user_opts in
  833. *"
  834. "enable_$ac_useropt"
  835. "*) ;;
  836. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  837. ac_unrecognized_sep=', ';;
  838. esac
  839. eval enable_$ac_useropt=no ;;
  840. -docdir | --docdir | --docdi | --doc | --do)
  841. ac_prev=docdir ;;
  842. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  843. docdir=$ac_optarg ;;
  844. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  845. ac_prev=dvidir ;;
  846. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  847. dvidir=$ac_optarg ;;
  848. -enable-* | --enable-*)
  849. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  850. # Reject names that are not valid shell variable names.
  851. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  852. as_fn_error "invalid feature name: $ac_useropt"
  853. ac_useropt_orig=$ac_useropt
  854. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  855. case $ac_user_opts in
  856. *"
  857. "enable_$ac_useropt"
  858. "*) ;;
  859. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  860. ac_unrecognized_sep=', ';;
  861. esac
  862. eval enable_$ac_useropt=\$ac_optarg ;;
  863. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  864. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  865. | --exec | --exe | --ex)
  866. ac_prev=exec_prefix ;;
  867. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  868. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  869. | --exec=* | --exe=* | --ex=*)
  870. exec_prefix=$ac_optarg ;;
  871. -gas | --gas | --ga | --g)
  872. # Obsolete; use --with-gas.
  873. with_gas=yes ;;
  874. -help | --help | --hel | --he | -h)
  875. ac_init_help=long ;;
  876. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  877. ac_init_help=recursive ;;
  878. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  879. ac_init_help=short ;;
  880. -host | --host | --hos | --ho)
  881. ac_prev=host_alias ;;
  882. -host=* | --host=* | --hos=* | --ho=*)
  883. host_alias=$ac_optarg ;;
  884. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  885. ac_prev=htmldir ;;
  886. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  887. | --ht=*)
  888. htmldir=$ac_optarg ;;
  889. -includedir | --includedir | --includedi | --included | --include \
  890. | --includ | --inclu | --incl | --inc)
  891. ac_prev=includedir ;;
  892. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  893. | --includ=* | --inclu=* | --incl=* | --inc=*)
  894. includedir=$ac_optarg ;;
  895. -infodir | --infodir | --infodi | --infod | --info | --inf)
  896. ac_prev=infodir ;;
  897. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  898. infodir=$ac_optarg ;;
  899. -libdir | --libdir | --libdi | --libd)
  900. ac_prev=libdir ;;
  901. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  902. libdir=$ac_optarg ;;
  903. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  904. | --libexe | --libex | --libe)
  905. ac_prev=libexecdir ;;
  906. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  907. | --libexe=* | --libex=* | --libe=*)
  908. libexecdir=$ac_optarg ;;
  909. -localedir | --localedir | --localedi | --localed | --locale)
  910. ac_prev=localedir ;;
  911. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  912. localedir=$ac_optarg ;;
  913. -localstatedir | --localstatedir | --localstatedi | --localstated \
  914. | --localstate | --localstat | --localsta | --localst | --locals)
  915. ac_prev=localstatedir ;;
  916. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  917. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  918. localstatedir=$ac_optarg ;;
  919. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  920. ac_prev=mandir ;;
  921. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  922. mandir=$ac_optarg ;;
  923. -nfp | --nfp | --nf)
  924. # Obsolete; use --without-fp.
  925. with_fp=no ;;
  926. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  927. | --no-cr | --no-c | -n)
  928. no_create=yes ;;
  929. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  930. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  931. no_recursion=yes ;;
  932. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  933. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  934. | --oldin | --oldi | --old | --ol | --o)
  935. ac_prev=oldincludedir ;;
  936. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  937. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  938. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  939. oldincludedir=$ac_optarg ;;
  940. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  941. ac_prev=prefix ;;
  942. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  943. prefix=$ac_optarg ;;
  944. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  945. | --program-pre | --program-pr | --program-p)
  946. ac_prev=program_prefix ;;
  947. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  948. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  949. program_prefix=$ac_optarg ;;
  950. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  951. | --program-suf | --program-su | --program-s)
  952. ac_prev=program_suffix ;;
  953. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  954. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  955. program_suffix=$ac_optarg ;;
  956. -program-transform-name | --program-transform-name \
  957. | --program-transform-nam | --program-transform-na \
  958. | --program-transform-n | --program-transform- \
  959. | --program-transform | --program-transfor \
  960. | --program-transfo | --program-transf \
  961. | --program-trans | --program-tran \
  962. | --progr-tra | --program-tr | --program-t)
  963. ac_prev=program_transform_name ;;
  964. -program-transform-name=* | --program-transform-name=* \
  965. | --program-transform-nam=* | --program-transform-na=* \
  966. | --program-transform-n=* | --program-transform-=* \
  967. | --program-transform=* | --program-transfor=* \
  968. | --program-transfo=* | --program-transf=* \
  969. | --program-trans=* | --program-tran=* \
  970. | --progr-tra=* | --program-tr=* | --program-t=*)
  971. program_transform_name=$ac_optarg ;;
  972. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  973. ac_prev=pdfdir ;;
  974. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  975. pdfdir=$ac_optarg ;;
  976. -psdir | --psdir | --psdi | --psd | --ps)
  977. ac_prev=psdir ;;
  978. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  979. psdir=$ac_optarg ;;
  980. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  981. | -silent | --silent | --silen | --sile | --sil)
  982. silent=yes ;;
  983. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  984. ac_prev=sbindir ;;
  985. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  986. | --sbi=* | --sb=*)
  987. sbindir=$ac_optarg ;;
  988. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  989. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  990. | --sharedst | --shareds | --shared | --share | --shar \
  991. | --sha | --sh)
  992. ac_prev=sharedstatedir ;;
  993. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  994. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  995. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  996. | --sha=* | --sh=*)
  997. sharedstatedir=$ac_optarg ;;
  998. -site | --site | --sit)
  999. ac_prev=site ;;
  1000. -site=* | --site=* | --sit=*)
  1001. site=$ac_optarg ;;
  1002. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1003. ac_prev=srcdir ;;
  1004. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1005. srcdir=$ac_optarg ;;
  1006. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1007. | --syscon | --sysco | --sysc | --sys | --sy)
  1008. ac_prev=sysconfdir ;;
  1009. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1010. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1011. sysconfdir=$ac_optarg ;;
  1012. -target | --target | --targe | --targ | --tar | --ta | --t)
  1013. ac_prev=target_alias ;;
  1014. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1015. target_alias=$ac_optarg ;;
  1016. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1017. verbose=yes ;;
  1018. -version | --version | --versio | --versi | --vers | -V)
  1019. ac_init_version=: ;;
  1020. -with-* | --with-*)
  1021. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1022. # Reject names that are not valid shell variable names.
  1023. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1024. as_fn_error "invalid package name: $ac_useropt"
  1025. ac_useropt_orig=$ac_useropt
  1026. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1027. case $ac_user_opts in
  1028. *"
  1029. "with_$ac_useropt"
  1030. "*) ;;
  1031. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1032. ac_unrecognized_sep=', ';;
  1033. esac
  1034. eval with_$ac_useropt=\$ac_optarg ;;
  1035. -without-* | --without-*)
  1036. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1037. # Reject names that are not valid shell variable names.
  1038. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1039. as_fn_error "invalid package name: $ac_useropt"
  1040. ac_useropt_orig=$ac_useropt
  1041. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1042. case $ac_user_opts in
  1043. *"
  1044. "with_$ac_useropt"
  1045. "*) ;;
  1046. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1047. ac_unrecognized_sep=', ';;
  1048. esac
  1049. eval with_$ac_useropt=no ;;
  1050. --x)
  1051. # Obsolete; use --with-x.
  1052. with_x=yes ;;
  1053. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1054. | --x-incl | --x-inc | --x-in | --x-i)
  1055. ac_prev=x_includes ;;
  1056. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1057. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1058. x_includes=$ac_optarg ;;
  1059. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1060. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1061. ac_prev=x_libraries ;;
  1062. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1063. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1064. x_libraries=$ac_optarg ;;
  1065. -*) as_fn_error "unrecognized option: \`$ac_option'
  1066. Try \`$0 --help' for more information."
  1067. ;;
  1068. *=*)
  1069. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1070. # Reject names that are not valid shell variable names.
  1071. case $ac_envvar in #(
  1072. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1073. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1074. esac
  1075. eval $ac_envvar=\$ac_optarg
  1076. export $ac_envvar ;;
  1077. *)
  1078. # FIXME: should be removed in autoconf 3.0.
  1079. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1080. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1081. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1082. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1083. ;;
  1084. esac
  1085. done
  1086. if test -n "$ac_prev"; then
  1087. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1088. as_fn_error "missing argument to $ac_option"
  1089. fi
  1090. if test -n "$ac_unrecognized_opts"; then
  1091. case $enable_option_checking in
  1092. no) ;;
  1093. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1094. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1095. esac
  1096. fi
  1097. # Check all directory arguments for consistency.
  1098. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1099. datadir sysconfdir sharedstatedir localstatedir includedir \
  1100. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1101. libdir localedir mandir
  1102. do
  1103. eval ac_val=\$$ac_var
  1104. # Remove trailing slashes.
  1105. case $ac_val in
  1106. */ )
  1107. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1108. eval $ac_var=\$ac_val;;
  1109. esac
  1110. # Be sure to have absolute directory names.
  1111. case $ac_val in
  1112. [\\/$]* | ?:[\\/]* ) continue;;
  1113. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1114. esac
  1115. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1116. done
  1117. # There might be people who depend on the old broken behavior: `$host'
  1118. # used to hold the argument of --host etc.
  1119. # FIXME: To remove some day.
  1120. build=$build_alias
  1121. host=$host_alias
  1122. target=$target_alias
  1123. # FIXME: To remove some day.
  1124. if test "x$host_alias" != x; then
  1125. if test "x$build_alias" = x; then
  1126. cross_compiling=maybe
  1127. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1128. If a cross compiler is detected then cross compile mode will be used." >&2
  1129. elif test "x$build_alias" != "x$host_alias"; then
  1130. cross_compiling=yes
  1131. fi
  1132. fi
  1133. ac_tool_prefix=
  1134. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1135. test "$silent" = yes && exec 6>/dev/null
  1136. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1137. ac_ls_di=`ls -di .` &&
  1138. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1139. as_fn_error "working directory cannot be determined"
  1140. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1141. as_fn_error "pwd does not report name of working directory"
  1142. # Find the source files, if location was not specified.
  1143. if test -z "$srcdir"; then
  1144. ac_srcdir_defaulted=yes
  1145. # Try the directory containing this script, then the parent directory.
  1146. ac_confdir=`$as_dirname -- "$as_myself" ||
  1147. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1148. X"$as_myself" : 'X\(//\)[^/]' \| \
  1149. X"$as_myself" : 'X\(//\)$' \| \
  1150. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1151. $as_echo X"$as_myself" |
  1152. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1153. s//\1/
  1154. q
  1155. }
  1156. /^X\(\/\/\)[^/].*/{
  1157. s//\1/
  1158. q
  1159. }
  1160. /^X\(\/\/\)$/{
  1161. s//\1/
  1162. q
  1163. }
  1164. /^X\(\/\).*/{
  1165. s//\1/
  1166. q
  1167. }
  1168. s/.*/./; q'`
  1169. srcdir=$ac_confdir
  1170. if test ! -r "$srcdir/$ac_unique_file"; then
  1171. srcdir=..
  1172. fi
  1173. else
  1174. ac_srcdir_defaulted=no
  1175. fi
  1176. if test ! -r "$srcdir/$ac_unique_file"; then
  1177. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1178. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1179. fi
  1180. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1181. ac_abs_confdir=`(
  1182. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1183. pwd)`
  1184. # When building in place, set srcdir=.
  1185. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1186. srcdir=.
  1187. fi
  1188. # Remove unnecessary trailing slashes from srcdir.
  1189. # Double slashes in file names in object file debugging info
  1190. # mess up M-x gdb in Emacs.
  1191. case $srcdir in
  1192. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1193. esac
  1194. for ac_var in $ac_precious_vars; do
  1195. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1196. eval ac_env_${ac_var}_value=\$${ac_var}
  1197. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1198. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1199. done
  1200. #
  1201. # Report the --help message.
  1202. #
  1203. if test "$ac_init_help" = "long"; then
  1204. # Omit some internal or obsolete options to make the list less imposing.
  1205. # This message is too long to be a string in the A/UX 3.1 sh.
  1206. cat <<_ACEOF
  1207. \`configure' configures this package to adapt to many kinds of systems.
  1208. Usage: $0 [OPTION]... [VAR=VALUE]...
  1209. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1210. VAR=VALUE. See below for descriptions of some of the useful variables.
  1211. Defaults for the options are specified in brackets.
  1212. Configuration:
  1213. -h, --help display this help and exit
  1214. --help=short display options specific to this package
  1215. --help=recursive display the short help of all the included packages
  1216. -V, --version display version information and exit
  1217. -q, --quiet, --silent do not print \`checking...' messages
  1218. --cache-file=FILE cache test results in FILE [disabled]
  1219. -C, --config-cache alias for \`--cache-file=config.cache'
  1220. -n, --no-create do not create output files
  1221. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1222. Installation directories:
  1223. --prefix=PREFIX install architecture-independent files in PREFIX
  1224. [$ac_default_prefix]
  1225. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1226. [PREFIX]
  1227. By default, \`make install' will install all the files in
  1228. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1229. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1230. for instance \`--prefix=\$HOME'.
  1231. For better control, use the options below.
  1232. Fine tuning of the installation directories:
  1233. --bindir=DIR user executables [EPREFIX/bin]
  1234. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1235. --libexecdir=DIR program executables [EPREFIX/libexec]
  1236. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1237. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1238. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1239. --libdir=DIR object code libraries [EPREFIX/lib]
  1240. --includedir=DIR C header files [PREFIX/include]
  1241. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1242. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1243. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1244. --infodir=DIR info documentation [DATAROOTDIR/info]
  1245. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1246. --mandir=DIR man documentation [DATAROOTDIR/man]
  1247. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1248. --htmldir=DIR html documentation [DOCDIR]
  1249. --dvidir=DIR dvi documentation [DOCDIR]
  1250. --pdfdir=DIR pdf documentation [DOCDIR]
  1251. --psdir=DIR ps documentation [DOCDIR]
  1252. _ACEOF
  1253. cat <<\_ACEOF
  1254. Program names:
  1255. --program-prefix=PREFIX prepend PREFIX to installed program names
  1256. --program-suffix=SUFFIX append SUFFIX to installed program names
  1257. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1258. System types:
  1259. --build=BUILD configure for building on BUILD [guessed]
  1260. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1261. --target=TARGET configure for building compilers for TARGET [HOST]
  1262. _ACEOF
  1263. fi
  1264. if test -n "$ac_init_help"; then
  1265. cat <<\_ACEOF
  1266. Optional Features:
  1267. --disable-option-checking ignore unrecognized --enable/--with options
  1268. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1269. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1270. --enable-plugins Enable support for plugins
  1271. --enable-shared[=PKGS] build shared libraries [default=yes]
  1272. --enable-static[=PKGS] build static libraries [default=yes]
  1273. --enable-fast-install[=PKGS]
  1274. optimize for fast installation [default=yes]
  1275. --disable-libtool-lock avoid locking (might break parallel builds)
  1276. --enable-maintainer-mode enable make rules and dependencies not useful
  1277. (and sometimes confusing) to the casual installer
  1278. --enable-sim-bswap Use Host specific BSWAP instruction
  1279. --enable-sim-cflags=opts
  1280. Extra CFLAGS for use in building simulator
  1281. --enable-sim-debug=opts Enable debugging flags (for developers of the sim
  1282. itself)
  1283. --enable-sim-stdio Specify whether to use stdio for console
  1284. input/output
  1285. --enable-sim-trace=opts Enable tracing of simulated programs
  1286. --enable-sim-profile=opts
  1287. Enable profiling flags
  1288. --enable-sim-endian=endian
  1289. Specify target byte endian orientation
  1290. --enable-sim-alignment=align
  1291. Specify strict, nonstrict or forced alignment of
  1292. memory accesses
  1293. --enable-sim-hostendian=end
  1294. Specify host byte endian orientation
  1295. --enable-sim-scache=size
  1296. Specify simulator execution cache size
  1297. --enable-sim-default-model=model
  1298. Specify default model to simulate
  1299. --enable-sim-environment=environment
  1300. Specify mixed, user, virtual or operating
  1301. environment
  1302. --enable-sim-inline=inlines
  1303. Specify which functions should be inlined
  1304. --enable-cgen-maint=DIR build cgen generated files
  1305. --enable-sim-hardware=LIST
  1306. Specify the hardware to be included in the build.
  1307. Optional Packages:
  1308. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1309. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1310. --with-system-zlib use installed libz
  1311. --with-pic try to use only PIC/non-PIC objects [default=use
  1312. both]
  1313. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1314. --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
  1315. --with-bugurl=URL Direct users to URL to report a bug
  1316. Some influential environment variables:
  1317. CC C compiler command
  1318. CFLAGS C compiler flags
  1319. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1320. nonstandard directory <lib dir>
  1321. LIBS libraries to pass to the linker, e.g. -l<library>
  1322. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1323. you have headers in a nonstandard directory <include dir>
  1324. CPP C preprocessor
  1325. Use these variables to override the choices made by `configure' or to help
  1326. it to find libraries and programs with nonstandard names/locations.
  1327. Report bugs to the package provider.
  1328. _ACEOF
  1329. ac_status=$?
  1330. fi
  1331. if test "$ac_init_help" = "recursive"; then
  1332. # If there are subdirs, report their specific --help.
  1333. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1334. test -d "$ac_dir" ||
  1335. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1336. continue
  1337. ac_builddir=.
  1338. case "$ac_dir" in
  1339. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1340. *)
  1341. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1342. # A ".." for each directory in $ac_dir_suffix.
  1343. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1344. case $ac_top_builddir_sub in
  1345. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1346. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1347. esac ;;
  1348. esac
  1349. ac_abs_top_builddir=$ac_pwd
  1350. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1351. # for backward compatibility:
  1352. ac_top_builddir=$ac_top_build_prefix
  1353. case $srcdir in
  1354. .) # We are building in place.
  1355. ac_srcdir=.
  1356. ac_top_srcdir=$ac_top_builddir_sub
  1357. ac_abs_top_srcdir=$ac_pwd ;;
  1358. [\\/]* | ?:[\\/]* ) # Absolute name.
  1359. ac_srcdir=$srcdir$ac_dir_suffix;
  1360. ac_top_srcdir=$srcdir
  1361. ac_abs_top_srcdir=$srcdir ;;
  1362. *) # Relative name.
  1363. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1364. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1365. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1366. esac
  1367. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1368. cd "$ac_dir" || { ac_status=$?; continue; }
  1369. # Check for guested configure.
  1370. if test -f "$ac_srcdir/configure.gnu"; then
  1371. echo &&
  1372. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1373. elif test -f "$ac_srcdir/configure"; then
  1374. echo &&
  1375. $SHELL "$ac_srcdir/configure" --help=recursive
  1376. else
  1377. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1378. fi || ac_status=$?
  1379. cd "$ac_pwd" || { ac_status=$?; break; }
  1380. done
  1381. fi
  1382. test -n "$ac_init_help" && exit $ac_status
  1383. if $ac_init_version; then
  1384. cat <<\_ACEOF
  1385. configure
  1386. generated by GNU Autoconf 2.64
  1387. Copyright (C) 2009 Free Software Foundation, Inc.
  1388. This configure script is free software; the Free Software Foundation
  1389. gives unlimited permission to copy, distribute and modify it.
  1390. _ACEOF
  1391. exit
  1392. fi
  1393. ## ------------------------ ##
  1394. ## Autoconf initialization. ##
  1395. ## ------------------------ ##
  1396. # ac_fn_c_try_compile LINENO
  1397. # --------------------------
  1398. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1399. ac_fn_c_try_compile ()
  1400. {
  1401. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1402. rm -f conftest.$ac_objext
  1403. if { { ac_try="$ac_compile"
  1404. case "(($ac_try" in
  1405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1406. *) ac_try_echo=$ac_try;;
  1407. esac
  1408. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1409. $as_echo "$ac_try_echo"; } >&5
  1410. (eval "$ac_compile") 2>conftest.err
  1411. ac_status=$?
  1412. if test -s conftest.err; then
  1413. grep -v '^ *+' conftest.err >conftest.er1
  1414. cat conftest.er1 >&5
  1415. mv -f conftest.er1 conftest.err
  1416. fi
  1417. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1418. test $ac_status = 0; } && {
  1419. test -z "$ac_c_werror_flag" ||
  1420. test ! -s conftest.err
  1421. } && test -s conftest.$ac_objext; then :
  1422. ac_retval=0
  1423. else
  1424. $as_echo "$as_me: failed program was:" >&5
  1425. sed 's/^/| /' conftest.$ac_ext >&5
  1426. ac_retval=1
  1427. fi
  1428. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1429. return $ac_retval
  1430. } # ac_fn_c_try_compile
  1431. # ac_fn_c_try_cpp LINENO
  1432. # ----------------------
  1433. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1434. ac_fn_c_try_cpp ()
  1435. {
  1436. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1437. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1438. case "(($ac_try" in
  1439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1440. *) ac_try_echo=$ac_try;;
  1441. esac
  1442. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1443. $as_echo "$ac_try_echo"; } >&5
  1444. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1445. ac_status=$?
  1446. if test -s conftest.err; then
  1447. grep -v '^ *+' conftest.err >conftest.er1
  1448. cat conftest.er1 >&5
  1449. mv -f conftest.er1 conftest.err
  1450. fi
  1451. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1452. test $ac_status = 0; } >/dev/null && {
  1453. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1454. test ! -s conftest.err
  1455. }; then :
  1456. ac_retval=0
  1457. else
  1458. $as_echo "$as_me: failed program was:" >&5
  1459. sed 's/^/| /' conftest.$ac_ext >&5
  1460. ac_retval=1
  1461. fi
  1462. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1463. return $ac_retval
  1464. } # ac_fn_c_try_cpp
  1465. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1466. # -------------------------------------------------------
  1467. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1468. # the include files in INCLUDES and setting the cache variable VAR
  1469. # accordingly.
  1470. ac_fn_c_check_header_mongrel ()
  1471. {
  1472. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1473. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1475. $as_echo_n "checking for $2... " >&6; }
  1476. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1477. $as_echo_n "(cached) " >&6
  1478. fi
  1479. eval ac_res=\$$3
  1480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1481. $as_echo "$ac_res" >&6; }
  1482. else
  1483. # Is the header compilable?
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1485. $as_echo_n "checking $2 usability... " >&6; }
  1486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1487. /* end confdefs.h. */
  1488. $4
  1489. #include <$2>
  1490. _ACEOF
  1491. if ac_fn_c_try_compile "$LINENO"; then :
  1492. ac_header_compiler=yes
  1493. else
  1494. ac_header_compiler=no
  1495. fi
  1496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1498. $as_echo "$ac_header_compiler" >&6; }
  1499. # Is the header present?
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1501. $as_echo_n "checking $2 presence... " >&6; }
  1502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1503. /* end confdefs.h. */
  1504. #include <$2>
  1505. _ACEOF
  1506. if ac_fn_c_try_cpp "$LINENO"; then :
  1507. ac_header_preproc=yes
  1508. else
  1509. ac_header_preproc=no
  1510. fi
  1511. rm -f conftest.err conftest.$ac_ext
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1513. $as_echo "$ac_header_preproc" >&6; }
  1514. # So? What about this header?
  1515. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1516. yes:no: )
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1518. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1520. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1521. ;;
  1522. no:yes:* )
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1524. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1526. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1528. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1530. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1532. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1533. ;;
  1534. esac
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1536. $as_echo_n "checking for $2... " >&6; }
  1537. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1538. $as_echo_n "(cached) " >&6
  1539. else
  1540. eval "$3=\$ac_header_compiler"
  1541. fi
  1542. eval ac_res=\$$3
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1544. $as_echo "$ac_res" >&6; }
  1545. fi
  1546. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1547. } # ac_fn_c_check_header_mongrel
  1548. # ac_fn_c_try_run LINENO
  1549. # ----------------------
  1550. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1551. # that executables *can* be run.
  1552. ac_fn_c_try_run ()
  1553. {
  1554. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1555. if { { ac_try="$ac_link"
  1556. case "(($ac_try" in
  1557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1558. *) ac_try_echo=$ac_try;;
  1559. esac
  1560. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1561. $as_echo "$ac_try_echo"; } >&5
  1562. (eval "$ac_link") 2>&5
  1563. ac_status=$?
  1564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1565. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1566. { { case "(($ac_try" in
  1567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1568. *) ac_try_echo=$ac_try;;
  1569. esac
  1570. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1571. $as_echo "$ac_try_echo"; } >&5
  1572. (eval "$ac_try") 2>&5
  1573. ac_status=$?
  1574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1575. test $ac_status = 0; }; }; then :
  1576. ac_retval=0
  1577. else
  1578. $as_echo "$as_me: program exited with status $ac_status" >&5
  1579. $as_echo "$as_me: failed program was:" >&5
  1580. sed 's/^/| /' conftest.$ac_ext >&5
  1581. ac_retval=$ac_status
  1582. fi
  1583. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1584. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1585. return $ac_retval
  1586. } # ac_fn_c_try_run
  1587. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1588. # -------------------------------------------------------
  1589. # Tests whether HEADER exists and can be compiled using the include files in
  1590. # INCLUDES, setting the cache variable VAR accordingly.
  1591. ac_fn_c_check_header_compile ()
  1592. {
  1593. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1595. $as_echo_n "checking for $2... " >&6; }
  1596. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1597. $as_echo_n "(cached) " >&6
  1598. else
  1599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1600. /* end confdefs.h. */
  1601. $4
  1602. #include <$2>
  1603. _ACEOF
  1604. if ac_fn_c_try_compile "$LINENO"; then :
  1605. eval "$3=yes"
  1606. else
  1607. eval "$3=no"
  1608. fi
  1609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1610. fi
  1611. eval ac_res=\$$3
  1612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1613. $as_echo "$ac_res" >&6; }
  1614. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1615. } # ac_fn_c_check_header_compile
  1616. # ac_fn_c_try_link LINENO
  1617. # -----------------------
  1618. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1619. ac_fn_c_try_link ()
  1620. {
  1621. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1622. rm -f conftest.$ac_objext conftest$ac_exeext
  1623. if { { ac_try="$ac_link"
  1624. case "(($ac_try" in
  1625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1626. *) ac_try_echo=$ac_try;;
  1627. esac
  1628. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1629. $as_echo "$ac_try_echo"; } >&5
  1630. (eval "$ac_link") 2>conftest.err
  1631. ac_status=$?
  1632. if test -s conftest.err; then
  1633. grep -v '^ *+' conftest.err >conftest.er1
  1634. cat conftest.er1 >&5
  1635. mv -f conftest.er1 conftest.err
  1636. fi
  1637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1638. test $ac_status = 0; } && {
  1639. test -z "$ac_c_werror_flag" ||
  1640. test ! -s conftest.err
  1641. } && test -s conftest$ac_exeext && {
  1642. test "$cross_compiling" = yes ||
  1643. $as_test_x conftest$ac_exeext
  1644. }; then :
  1645. ac_retval=0
  1646. else
  1647. $as_echo "$as_me: failed program was:" >&5
  1648. sed 's/^/| /' conftest.$ac_ext >&5
  1649. ac_retval=1
  1650. fi
  1651. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1652. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1653. # interfere with the next link command; also delete a directory that is
  1654. # left behind by Apple's compiler. We do this before executing the actions.
  1655. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1656. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1657. return $ac_retval
  1658. } # ac_fn_c_try_link
  1659. # ac_fn_c_check_func LINENO FUNC VAR
  1660. # ----------------------------------
  1661. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1662. ac_fn_c_check_func ()
  1663. {
  1664. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1666. $as_echo_n "checking for $2... " >&6; }
  1667. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1668. $as_echo_n "(cached) " >&6
  1669. else
  1670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1671. /* end confdefs.h. */
  1672. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1673. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1674. #define $2 innocuous_$2
  1675. /* System header to define __stub macros and hopefully few prototypes,
  1676. which can conflict with char $2 (); below.
  1677. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1678. <limits.h> exists even on freestanding compilers. */
  1679. #ifdef __STDC__
  1680. # include <limits.h>
  1681. #else
  1682. # include <assert.h>
  1683. #endif
  1684. #undef $2
  1685. /* Override any GCC internal prototype to avoid an error.
  1686. Use char because int might match the return type of a GCC
  1687. builtin and then its argument prototype would still apply. */
  1688. #ifdef __cplusplus
  1689. extern "C"
  1690. #endif
  1691. char $2 ();
  1692. /* The GNU C library defines this for functions which it implements
  1693. to always fail with ENOSYS. Some functions are actually named
  1694. something starting with __ and the normal name is an alias. */
  1695. #if defined __stub_$2 || defined __stub___$2
  1696. choke me
  1697. #endif
  1698. int
  1699. main ()
  1700. {
  1701. return $2 ();
  1702. ;
  1703. return 0;
  1704. }
  1705. _ACEOF
  1706. if ac_fn_c_try_link "$LINENO"; then :
  1707. eval "$3=yes"
  1708. else
  1709. eval "$3=no"
  1710. fi
  1711. rm -f core conftest.err conftest.$ac_objext \
  1712. conftest$ac_exeext conftest.$ac_ext
  1713. fi
  1714. eval ac_res=\$$3
  1715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1716. $as_echo "$ac_res" >&6; }
  1717. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1718. } # ac_fn_c_check_func
  1719. cat >config.log <<_ACEOF
  1720. This file contains any messages produced by compilers while
  1721. running configure, to aid debugging if configure makes a mistake.
  1722. It was created by $as_me, which was
  1723. generated by GNU Autoconf 2.64. Invocation command line was
  1724. $ $0 $@
  1725. _ACEOF
  1726. exec 5>>config.log
  1727. {
  1728. cat <<_ASUNAME
  1729. ## --------- ##
  1730. ## Platform. ##
  1731. ## --------- ##
  1732. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1733. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1734. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1735. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1736. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1737. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1738. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1739. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1740. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1741. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1742. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1743. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1744. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1745. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1746. _ASUNAME
  1747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1748. for as_dir in $PATH
  1749. do
  1750. IFS=$as_save_IFS
  1751. test -z "$as_dir" && as_dir=.
  1752. $as_echo "PATH: $as_dir"
  1753. done
  1754. IFS=$as_save_IFS
  1755. } >&5
  1756. cat >&5 <<_ACEOF
  1757. ## ----------- ##
  1758. ## Core tests. ##
  1759. ## ----------- ##
  1760. _ACEOF
  1761. # Keep a trace of the command line.
  1762. # Strip out --no-create and --no-recursion so they do not pile up.
  1763. # Strip out --silent because we don't want to record it for future runs.
  1764. # Also quote any args containing shell meta-characters.
  1765. # Make two passes to allow for proper duplicate-argument suppression.
  1766. ac_configure_args=
  1767. ac_configure_args0=
  1768. ac_configure_args1=
  1769. ac_must_keep_next=false
  1770. for ac_pass in 1 2
  1771. do
  1772. for ac_arg
  1773. do
  1774. case $ac_arg in
  1775. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1776. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1777. | -silent | --silent | --silen | --sile | --sil)
  1778. continue ;;
  1779. *\'*)
  1780. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1781. esac
  1782. case $ac_pass in
  1783. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1784. 2)
  1785. as_fn_append ac_configure_args1 " '$ac_arg'"
  1786. if test $ac_must_keep_next = true; then
  1787. ac_must_keep_next=false # Got value, back to normal.
  1788. else
  1789. case $ac_arg in
  1790. *=* | --config-cache | -C | -disable-* | --disable-* \
  1791. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1792. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1793. | -with-* | --with-* | -without-* | --without-* | --x)
  1794. case "$ac_configure_args0 " in
  1795. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1796. esac
  1797. ;;
  1798. -* ) ac_must_keep_next=true ;;
  1799. esac
  1800. fi
  1801. as_fn_append ac_configure_args " '$ac_arg'"
  1802. ;;
  1803. esac
  1804. done
  1805. done
  1806. { ac_configure_args0=; unset ac_configure_args0;}
  1807. { ac_configure_args1=; unset ac_configure_args1;}
  1808. # When interrupted or exit'd, cleanup temporary files, and complete
  1809. # config.log. We remove comments because anyway the quotes in there
  1810. # would cause problems or look ugly.
  1811. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1812. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1813. trap 'exit_status=$?
  1814. # Save into config.log some information that might help in debugging.
  1815. {
  1816. echo
  1817. cat <<\_ASBOX
  1818. ## ---------------- ##
  1819. ## Cache variables. ##
  1820. ## ---------------- ##
  1821. _ASBOX
  1822. echo
  1823. # The following way of writing the cache mishandles newlines in values,
  1824. (
  1825. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1826. eval ac_val=\$$ac_var
  1827. case $ac_val in #(
  1828. *${as_nl}*)
  1829. case $ac_var in #(
  1830. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1831. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1832. esac
  1833. case $ac_var in #(
  1834. _ | IFS | as_nl) ;; #(
  1835. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1836. *) { eval $ac_var=; unset $ac_var;} ;;
  1837. esac ;;
  1838. esac
  1839. done
  1840. (set) 2>&1 |
  1841. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1842. *${as_nl}ac_space=\ *)
  1843. sed -n \
  1844. "s/'\''/'\''\\\\'\'''\''/g;
  1845. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1846. ;; #(
  1847. *)
  1848. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1849. ;;
  1850. esac |
  1851. sort
  1852. )
  1853. echo
  1854. cat <<\_ASBOX
  1855. ## ----------------- ##
  1856. ## Output variables. ##
  1857. ## ----------------- ##
  1858. _ASBOX
  1859. echo
  1860. for ac_var in $ac_subst_vars
  1861. do
  1862. eval ac_val=\$$ac_var
  1863. case $ac_val in
  1864. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1865. esac
  1866. $as_echo "$ac_var='\''$ac_val'\''"
  1867. done | sort
  1868. echo
  1869. if test -n "$ac_subst_files"; then
  1870. cat <<\_ASBOX
  1871. ## ------------------- ##
  1872. ## File substitutions. ##
  1873. ## ------------------- ##
  1874. _ASBOX
  1875. echo
  1876. for ac_var in $ac_subst_files
  1877. do
  1878. eval ac_val=\$$ac_var
  1879. case $ac_val in
  1880. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1881. esac
  1882. $as_echo "$ac_var='\''$ac_val'\''"
  1883. done | sort
  1884. echo
  1885. fi
  1886. if test -s confdefs.h; then
  1887. cat <<\_ASBOX
  1888. ## ----------- ##
  1889. ## confdefs.h. ##
  1890. ## ----------- ##
  1891. _ASBOX
  1892. echo
  1893. cat confdefs.h
  1894. echo
  1895. fi
  1896. test "$ac_signal" != 0 &&
  1897. $as_echo "$as_me: caught signal $ac_signal"
  1898. $as_echo "$as_me: exit $exit_status"
  1899. } >&5
  1900. rm -f core *.core core.conftest.* &&
  1901. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1902. exit $exit_status
  1903. ' 0
  1904. for ac_signal in 1 2 13 15; do
  1905. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1906. done
  1907. ac_signal=0
  1908. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1909. rm -f -r conftest* confdefs.h
  1910. $as_echo "/* confdefs.h */" > confdefs.h
  1911. # Predefined preprocessor variables.
  1912. cat >>confdefs.h <<_ACEOF
  1913. #define PACKAGE_NAME "$PACKAGE_NAME"
  1914. _ACEOF
  1915. cat >>confdefs.h <<_ACEOF
  1916. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1917. _ACEOF
  1918. cat >>confdefs.h <<_ACEOF
  1919. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1920. _ACEOF
  1921. cat >>confdefs.h <<_ACEOF
  1922. #define PACKAGE_STRING "$PACKAGE_STRING"
  1923. _ACEOF
  1924. cat >>confdefs.h <<_ACEOF
  1925. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1926. _ACEOF
  1927. cat >>confdefs.h <<_ACEOF
  1928. #define PACKAGE_URL "$PACKAGE_URL"
  1929. _ACEOF
  1930. # Let the site file select an alternate cache file if it wants to.
  1931. # Prefer an explicitly selected file to automatically selected ones.
  1932. ac_site_file1=NONE
  1933. ac_site_file2=NONE
  1934. if test -n "$CONFIG_SITE"; then
  1935. ac_site_file1=$CONFIG_SITE
  1936. elif test "x$prefix" != xNONE; then
  1937. ac_site_file1=$prefix/share/config.site
  1938. ac_site_file2=$prefix/etc/config.site
  1939. else
  1940. ac_site_file1=$ac_default_prefix/share/config.site
  1941. ac_site_file2=$ac_default_prefix/etc/config.site
  1942. fi
  1943. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1944. do
  1945. test "x$ac_site_file" = xNONE && continue
  1946. if test -r "$ac_site_file"; then
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1948. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1949. sed 's/^/| /' "$ac_site_file" >&5
  1950. . "$ac_site_file"
  1951. fi
  1952. done
  1953. if test -r "$cache_file"; then
  1954. # Some versions of bash will fail to source /dev/null (special
  1955. # files actually), so we avoid doing that.
  1956. if test -f "$cache_file"; then
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1958. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1959. case $cache_file in
  1960. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1961. *) . "./$cache_file";;
  1962. esac
  1963. fi
  1964. else
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1966. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1967. >$cache_file
  1968. fi
  1969. # Check that the precious variables saved in the cache have kept the same
  1970. # value.
  1971. ac_cache_corrupted=false
  1972. for ac_var in $ac_precious_vars; do
  1973. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1974. eval ac_new_set=\$ac_env_${ac_var}_set
  1975. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1976. eval ac_new_val=\$ac_env_${ac_var}_value
  1977. case $ac_old_set,$ac_new_set in
  1978. set,)
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1980. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1981. ac_cache_corrupted=: ;;
  1982. ,set)
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1984. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1985. ac_cache_corrupted=: ;;
  1986. ,);;
  1987. *)
  1988. if test "x$ac_old_val" != "x$ac_new_val"; then
  1989. # differences in whitespace do not lead to failure.
  1990. ac_old_val_w=`echo x $ac_old_val`
  1991. ac_new_val_w=`echo x $ac_new_val`
  1992. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1994. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1995. ac_cache_corrupted=:
  1996. else
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1998. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1999. eval $ac_var=\$ac_old_val
  2000. fi
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2002. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2004. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2005. fi;;
  2006. esac
  2007. # Pass precious variables to config.status.
  2008. if test "$ac_new_set" = set; then
  2009. case $ac_new_val in
  2010. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2011. *) ac_arg=$ac_var=$ac_new_val ;;
  2012. esac
  2013. case " $ac_configure_args " in
  2014. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2015. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2016. esac
  2017. fi
  2018. done
  2019. if $ac_cache_corrupted; then
  2020. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2021. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2022. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2023. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2024. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2025. fi
  2026. ## -------------------- ##
  2027. ## Main body of script. ##
  2028. ## -------------------- ##
  2029. ac_ext=c
  2030. ac_cpp='$CPP $CPPFLAGS'
  2031. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2032. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2033. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2034. # This file contains common code used by all simulators.
  2035. #
  2036. # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
  2037. # directory. It is intended to be invoked before any target specific stuff.
  2038. # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
  2039. # It is intended to be invoked last.
  2040. #
  2041. # The simulator's configure.ac should look like:
  2042. #
  2043. # dnl Process this file with autoconf to produce a configure script.
  2044. # AC_PREREQ(2.64)dnl
  2045. # AC_INIT(Makefile.in)
  2046. # sinclude(../common/aclocal.m4)
  2047. #
  2048. # SIM_AC_COMMON
  2049. #
  2050. # ... target specific stuff ...
  2051. #
  2052. # SIM_AC_OUTPUT
  2053. # Include global overrides and fixes for Autoconf.
  2054. # _AC_CHECK_DECL_BODY
  2055. # -------------------
  2056. # Shell function body for AC_CHECK_DECL.
  2057. # _AC_CHECK_DECL_BODY
  2058. # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
  2059. # INCLUDES)
  2060. # -------------------------------------------------------------
  2061. # Helper to AC_CHECK_DECLS, which generates the check for a single
  2062. # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
  2063. # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
  2064. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  2065. #
  2066. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  2067. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  2068. # Written by Gordon Matzigkeit, 1996
  2069. #
  2070. # This file is free software; the Free Software Foundation gives
  2071. # unlimited permission to copy and/or distribute it, with or without
  2072. # modifications, as long as this notice is preserved.
  2073. # serial 56 LT_INIT
  2074. # LT_PREREQ(VERSION)
  2075. # ------------------
  2076. # Complain and exit if this libtool version is less that VERSION.
  2077. # _LT_CHECK_BUILDDIR
  2078. # ------------------
  2079. # Complain if the absolute build directory name contains unusual characters
  2080. # LT_INIT([OPTIONS])
  2081. # ------------------
  2082. # LT_INIT
  2083. # Old names:
  2084. # This is what autoupdate's m4 run will expand. It fires
  2085. # the warning (with _au_warn_XXX), outputs it into the
  2086. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2087. # the replacement expansion.
  2088. # This is an auxiliary macro that is also run when
  2089. # autoupdate runs m4. It simply calls m4_warning, but
  2090. # we need a wrapper so that each warning is emitted only
  2091. # once. We break the quoting in m4_warning's argument in
  2092. # order to expand this macro's arguments, not AU_DEFUN's.
  2093. # Finally, this is the expansion that is picked up by
  2094. # autoconf. It tells the user to run autoupdate, and
  2095. # then outputs the replacement expansion. We do not care
  2096. # about autoupdate's warning because that contains
  2097. # information on what to do *after* running autoupdate.
  2098. # This is what autoupdate's m4 run will expand. It fires
  2099. # the warning (with _au_warn_XXX), outputs it into the
  2100. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2101. # the replacement expansion.
  2102. # This is an auxiliary macro that is also run when
  2103. # autoupdate runs m4. It simply calls m4_warning, but
  2104. # we need a wrapper so that each warning is emitted only
  2105. # once. We break the quoting in m4_warning's argument in
  2106. # order to expand this macro's arguments, not AU_DEFUN's.
  2107. # Finally, this is the expansion that is picked up by
  2108. # autoconf. It tells the user to run autoupdate, and
  2109. # then outputs the replacement expansion. We do not care
  2110. # about autoupdate's warning because that contains
  2111. # information on what to do *after* running autoupdate.
  2112. # _LT_CC_BASENAME(CC)
  2113. # -------------------
  2114. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  2115. # _LT_FILEUTILS_DEFAULTS
  2116. # ----------------------
  2117. # It is okay to use these file commands and assume they have been set
  2118. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  2119. # _LT_FILEUTILS_DEFAULTS
  2120. # _LT_SETUP
  2121. # ---------
  2122. # _LT_SETUP
  2123. # _LT_PREPARE_SED_QUOTE_VARS
  2124. # --------------------------
  2125. # Define a few sed substitution that help us do robust quoting.
  2126. # _LT_PROG_LTMAIN
  2127. # ---------------
  2128. # Note that this code is called both from `configure', and `config.status'
  2129. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  2130. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  2131. # so we pass a copy along to make sure it has a sensible value anyway.
  2132. # _LT_PROG_LTMAIN
  2133. ## ------------------------------------- ##
  2134. ## Accumulate code for creating libtool. ##
  2135. ## ------------------------------------- ##
  2136. # So that we can recreate a full libtool script including additional
  2137. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  2138. # in macros and then make a single call at the end using the `libtool'
  2139. # label.
  2140. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  2141. # ----------------------------------------
  2142. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2143. # Initialize.
  2144. # _LT_CONFIG_LIBTOOL([COMMANDS])
  2145. # ------------------------------
  2146. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2147. # Initialize.
  2148. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  2149. # -----------------------------------------------------
  2150. # _LT_FORMAT_COMMENT([COMMENT])
  2151. # -----------------------------
  2152. # Add leading comment marks to the start of each line, and a trailing
  2153. # full-stop to the whole comment if one is not present already.
  2154. ## ------------------------ ##
  2155. ## FIXME: Eliminate VARNAME ##
  2156. ## ------------------------ ##
  2157. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  2158. # -------------------------------------------------------------------
  2159. # CONFIGNAME is the name given to the value in the libtool script.
  2160. # VARNAME is the (base) name used in the configure script.
  2161. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  2162. # VARNAME. Any other value will be used directly.
  2163. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  2164. # --------------------------------------------------------
  2165. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  2166. # ------------------------------------------------
  2167. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  2168. # ---------------------------------------------------------
  2169. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  2170. # --------------------------------------------------
  2171. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  2172. # ---------------------------------------------------
  2173. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  2174. # ---------------------------------------------------
  2175. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  2176. # ------------------------------------------------
  2177. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  2178. # ------------------------------------
  2179. # Quote a variable value, and forward it to `config.status' so that its
  2180. # declaration there will have the same value as in `configure'. VARNAME
  2181. # must have a single quote delimited value for this to work.
  2182. # _LT_CONFIG_STATUS_DECLARATIONS
  2183. # ------------------------------
  2184. # We delimit libtool config variables with single quotes, so when
  2185. # we write them to config.status, we have to be sure to quote all
  2186. # embedded single quotes properly. In configure, this macro expands
  2187. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  2188. #
  2189. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  2190. # _LT_LIBTOOL_TAGS
  2191. # ----------------
  2192. # Output comment and list of tags supported by the script
  2193. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  2194. # -----------------------------------
  2195. # Extract the dictionary values for VARNAME (optionally with TAG) and
  2196. # expand to a commented shell variable setting:
  2197. #
  2198. # # Some comment about what VAR is for.
  2199. # visible_name=$lt_internal_name
  2200. # _LT_LIBTOOL_CONFIG_VARS
  2201. # -----------------------
  2202. # Produce commented declarations of non-tagged libtool config variables
  2203. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  2204. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  2205. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  2206. # _LT_LIBTOOL_TAG_VARS(TAG)
  2207. # -------------------------
  2208. # _LT_TAGVAR(VARNAME, [TAGNAME])
  2209. # ------------------------------
  2210. # _LT_CONFIG_COMMANDS
  2211. # -------------------
  2212. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  2213. # variables for single and double quote escaping we saved from calls
  2214. # to _LT_DECL, we can put quote escaped variables declarations
  2215. # into `config.status', and then the shell code to quote escape them in
  2216. # for loops in `config.status'. Finally, any additional code accumulated
  2217. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  2218. #_LT_CONFIG_COMMANDS
  2219. # Initialize.
  2220. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  2221. # ------------------------------------
  2222. # Generate a child script FILE with all initialization necessary to
  2223. # reuse the environment learned by the parent script, and make the
  2224. # file executable. If COMMENT is supplied, it is inserted after the
  2225. # `#!' sequence but before initialization text begins. After this
  2226. # macro, additional text can be appended to FILE to form the body of
  2227. # the child script. The macro ends with non-zero status if the
  2228. # file could not be fully written (such as if the disk is full).
  2229. # _LT_GENERATED_FILE_INIT
  2230. # LT_OUTPUT
  2231. # ---------
  2232. # This macro allows early generation of the libtool script (before
  2233. # AC_OUTPUT is called), incase it is used in configure for compilation
  2234. # tests.
  2235. # LT_OUTPUT
  2236. # _LT_CONFIG(TAG)
  2237. # ---------------
  2238. # If TAG is the built-in tag, create an initial libtool script with a
  2239. # default configuration from the untagged config vars. Otherwise add code
  2240. # to config.status for appending the configuration named by TAG from the
  2241. # matching tagged config vars.
  2242. # _LT_CONFIG
  2243. # LT_SUPPORTED_TAG(TAG)
  2244. # ---------------------
  2245. # Trace this macro to discover what tags are supported by the libtool
  2246. # --tag option, using:
  2247. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  2248. # C support is built-in for now
  2249. # LT_LANG(LANG)
  2250. # -------------
  2251. # Enable libtool support for the given language if not already enabled.
  2252. # LT_LANG
  2253. # _LT_LANG(LANGNAME)
  2254. # ------------------
  2255. # _LT_LANG
  2256. # _LT_LANG_DEFAULT_CONFIG
  2257. # -----------------------
  2258. # _LT_LANG_DEFAULT_CONFIG
  2259. # Obsolete macros:
  2260. # This is what autoupdate's m4 run will expand. It fires
  2261. # the warning (with _au_warn_XXX), outputs it into the
  2262. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2263. # the replacement expansion.
  2264. # This is an auxiliary macro that is also run when
  2265. # autoupdate runs m4. It simply calls m4_warning, but
  2266. # we need a wrapper so that each warning is emitted only
  2267. # once. We break the quoting in m4_warning's argument in
  2268. # order to expand this macro's arguments, not AU_DEFUN's.
  2269. # Finally, this is the expansion that is picked up by
  2270. # autoconf. It tells the user to run autoupdate, and
  2271. # then outputs the replacement expansion. We do not care
  2272. # about autoupdate's warning because that contains
  2273. # information on what to do *after* running autoupdate.
  2274. # This is what autoupdate's m4 run will expand. It fires
  2275. # the warning (with _au_warn_XXX), outputs it into the
  2276. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2277. # the replacement expansion.
  2278. # This is an auxiliary macro that is also run when
  2279. # autoupdate runs m4. It simply calls m4_warning, but
  2280. # we need a wrapper so that each warning is emitted only
  2281. # once. We break the quoting in m4_warning's argument in
  2282. # order to expand this macro's arguments, not AU_DEFUN's.
  2283. # Finally, this is the expansion that is picked up by
  2284. # autoconf. It tells the user to run autoupdate, and
  2285. # then outputs the replacement expansion. We do not care
  2286. # about autoupdate's warning because that contains
  2287. # information on what to do *after* running autoupdate.
  2288. # This is what autoupdate's m4 run will expand. It fires
  2289. # the warning (with _au_warn_XXX), outputs it into the
  2290. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2291. # the replacement expansion.
  2292. # This is an auxiliary macro that is also run when
  2293. # autoupdate runs m4. It simply calls m4_warning, but
  2294. # we need a wrapper so that each warning is emitted only
  2295. # once. We break the quoting in m4_warning's argument in
  2296. # order to expand this macro's arguments, not AU_DEFUN's.
  2297. # Finally, this is the expansion that is picked up by
  2298. # autoconf. It tells the user to run autoupdate, and
  2299. # then outputs the replacement expansion. We do not care
  2300. # about autoupdate's warning because that contains
  2301. # information on what to do *after* running autoupdate.
  2302. # This is what autoupdate's m4 run will expand. It fires
  2303. # the warning (with _au_warn_XXX), outputs it into the
  2304. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2305. # the replacement expansion.
  2306. # This is an auxiliary macro that is also run when
  2307. # autoupdate runs m4. It simply calls m4_warning, but
  2308. # we need a wrapper so that each warning is emitted only
  2309. # once. We break the quoting in m4_warning's argument in
  2310. # order to expand this macro's arguments, not AU_DEFUN's.
  2311. # Finally, this is the expansion that is picked up by
  2312. # autoconf. It tells the user to run autoupdate, and
  2313. # then outputs the replacement expansion. We do not care
  2314. # about autoupdate's warning because that contains
  2315. # information on what to do *after* running autoupdate.
  2316. # This is what autoupdate's m4 run will expand. It fires
  2317. # the warning (with _au_warn_XXX), outputs it into the
  2318. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2319. # the replacement expansion.
  2320. # This is an auxiliary macro that is also run when
  2321. # autoupdate runs m4. It simply calls m4_warning, but
  2322. # we need a wrapper so that each warning is emitted only
  2323. # once. We break the quoting in m4_warning's argument in
  2324. # order to expand this macro's arguments, not AU_DEFUN's.
  2325. # Finally, this is the expansion that is picked up by
  2326. # autoconf. It tells the user to run autoupdate, and
  2327. # then outputs the replacement expansion. We do not care
  2328. # about autoupdate's warning because that contains
  2329. # information on what to do *after* running autoupdate.
  2330. # _LT_TAG_COMPILER
  2331. # ----------------
  2332. # _LT_TAG_COMPILER
  2333. # _LT_COMPILER_BOILERPLATE
  2334. # ------------------------
  2335. # Check for compiler boilerplate output or warnings with
  2336. # the simple compiler test code.
  2337. # _LT_COMPILER_BOILERPLATE
  2338. # _LT_LINKER_BOILERPLATE
  2339. # ----------------------
  2340. # Check for linker boilerplate output or warnings with
  2341. # the simple link test code.
  2342. # _LT_LINKER_BOILERPLATE
  2343. # _LT_REQUIRED_DARWIN_CHECKS
  2344. # -------------------------
  2345. # _LT_DARWIN_LINKER_FEATURES
  2346. # --------------------------
  2347. # Checks for linker and compiler features on darwin
  2348. # _LT_SYS_MODULE_PATH_AIX
  2349. # -----------------------
  2350. # Links a minimal program and checks the executable
  2351. # for the system default hardcoded library path. In most cases,
  2352. # this is /usr/lib:/lib, but when the MPI compilers are used
  2353. # the location of the communication and MPI libs are included too.
  2354. # If we don't find anything, use the default library path according
  2355. # to the aix ld manual.
  2356. # _LT_SYS_MODULE_PATH_AIX
  2357. # _LT_SHELL_INIT(ARG)
  2358. # -------------------
  2359. # _LT_SHELL_INIT
  2360. # _LT_PROG_ECHO_BACKSLASH
  2361. # -----------------------
  2362. # Find how we can fake an echo command that does not interpret backslash.
  2363. # In particular, with Autoconf 2.60 or later we add some code to the start
  2364. # of the generated configure script which will find a shell with a builtin
  2365. # printf (which we can use as an echo command).
  2366. # _LT_PROG_ECHO_BACKSLASH
  2367. # _LT_ENABLE_LOCK
  2368. # ---------------
  2369. # _LT_ENABLE_LOCK
  2370. # _LT_CMD_OLD_ARCHIVE
  2371. # -------------------
  2372. # _LT_CMD_OLD_ARCHIVE
  2373. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2374. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2375. # ----------------------------------------------------------------
  2376. # Check whether the given compiler option works
  2377. # _LT_COMPILER_OPTION
  2378. # Old name:
  2379. # This is what autoupdate's m4 run will expand. It fires
  2380. # the warning (with _au_warn_XXX), outputs it into the
  2381. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2382. # the replacement expansion.
  2383. # This is an auxiliary macro that is also run when
  2384. # autoupdate runs m4. It simply calls m4_warning, but
  2385. # we need a wrapper so that each warning is emitted only
  2386. # once. We break the quoting in m4_warning's argument in
  2387. # order to expand this macro's arguments, not AU_DEFUN's.
  2388. # Finally, this is the expansion that is picked up by
  2389. # autoconf. It tells the user to run autoupdate, and
  2390. # then outputs the replacement expansion. We do not care
  2391. # about autoupdate's warning because that contains
  2392. # information on what to do *after* running autoupdate.
  2393. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2394. # [ACTION-SUCCESS], [ACTION-FAILURE])
  2395. # ----------------------------------------------------
  2396. # Check whether the given linker option works
  2397. # _LT_LINKER_OPTION
  2398. # Old name:
  2399. # This is what autoupdate's m4 run will expand. It fires
  2400. # the warning (with _au_warn_XXX), outputs it into the
  2401. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2402. # the replacement expansion.
  2403. # This is an auxiliary macro that is also run when
  2404. # autoupdate runs m4. It simply calls m4_warning, but
  2405. # we need a wrapper so that each warning is emitted only
  2406. # once. We break the quoting in m4_warning's argument in
  2407. # order to expand this macro's arguments, not AU_DEFUN's.
  2408. # Finally, this is the expansion that is picked up by
  2409. # autoconf. It tells the user to run autoupdate, and
  2410. # then outputs the replacement expansion. We do not care
  2411. # about autoupdate's warning because that contains
  2412. # information on what to do *after* running autoupdate.
  2413. # LT_CMD_MAX_LEN
  2414. #---------------
  2415. # LT_CMD_MAX_LEN
  2416. # Old name:
  2417. # This is what autoupdate's m4 run will expand. It fires
  2418. # the warning (with _au_warn_XXX), outputs it into the
  2419. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2420. # the replacement expansion.
  2421. # This is an auxiliary macro that is also run when
  2422. # autoupdate runs m4. It simply calls m4_warning, but
  2423. # we need a wrapper so that each warning is emitted only
  2424. # once. We break the quoting in m4_warning's argument in
  2425. # order to expand this macro's arguments, not AU_DEFUN's.
  2426. # Finally, this is the expansion that is picked up by
  2427. # autoconf. It tells the user to run autoupdate, and
  2428. # then outputs the replacement expansion. We do not care
  2429. # about autoupdate's warning because that contains
  2430. # information on what to do *after* running autoupdate.
  2431. # _LT_HEADER_DLFCN
  2432. # ----------------
  2433. # _LT_HEADER_DLFCN
  2434. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2435. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2436. # ----------------------------------------------------------------
  2437. # _LT_TRY_DLOPEN_SELF
  2438. # LT_SYS_DLOPEN_SELF
  2439. # ------------------
  2440. # LT_SYS_DLOPEN_SELF
  2441. # Old name:
  2442. # This is what autoupdate's m4 run will expand. It fires
  2443. # the warning (with _au_warn_XXX), outputs it into the
  2444. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2445. # the replacement expansion.
  2446. # This is an auxiliary macro that is also run when
  2447. # autoupdate runs m4. It simply calls m4_warning, but
  2448. # we need a wrapper so that each warning is emitted only
  2449. # once. We break the quoting in m4_warning's argument in
  2450. # order to expand this macro's arguments, not AU_DEFUN's.
  2451. # Finally, this is the expansion that is picked up by
  2452. # autoconf. It tells the user to run autoupdate, and
  2453. # then outputs the replacement expansion. We do not care
  2454. # about autoupdate's warning because that contains
  2455. # information on what to do *after* running autoupdate.
  2456. # _LT_COMPILER_C_O([TAGNAME])
  2457. # ---------------------------
  2458. # Check to see if options -c and -o are simultaneously supported by compiler.
  2459. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2460. # _LT_COMPILER_C_O
  2461. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2462. # ----------------------------------
  2463. # Check to see if we can do hard links to lock some files if needed
  2464. # _LT_COMPILER_FILE_LOCKS
  2465. # _LT_CHECK_OBJDIR
  2466. # ----------------
  2467. # _LT_CHECK_OBJDIR
  2468. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2469. # --------------------------------------
  2470. # Check hardcoding attributes.
  2471. # _LT_LINKER_HARDCODE_LIBPATH
  2472. # _LT_CMD_STRIPLIB
  2473. # ----------------
  2474. # _LT_CMD_STRIPLIB
  2475. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2476. # -----------------------------
  2477. # PORTME Fill in your ld.so characteristics
  2478. # _LT_SYS_DYNAMIC_LINKER
  2479. # _LT_PATH_TOOL_PREFIX(TOOL)
  2480. # --------------------------
  2481. # find a file program which can recognize shared library
  2482. # _LT_PATH_TOOL_PREFIX
  2483. # Old name:
  2484. # This is what autoupdate's m4 run will expand. It fires
  2485. # the warning (with _au_warn_XXX), outputs it into the
  2486. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2487. # the replacement expansion.
  2488. # This is an auxiliary macro that is also run when
  2489. # autoupdate runs m4. It simply calls m4_warning, but
  2490. # we need a wrapper so that each warning is emitted only
  2491. # once. We break the quoting in m4_warning's argument in
  2492. # order to expand this macro's arguments, not AU_DEFUN's.
  2493. # Finally, this is the expansion that is picked up by
  2494. # autoconf. It tells the user to run autoupdate, and
  2495. # then outputs the replacement expansion. We do not care
  2496. # about autoupdate's warning because that contains
  2497. # information on what to do *after* running autoupdate.
  2498. # _LT_PATH_MAGIC
  2499. # --------------
  2500. # find a file program which can recognize a shared library
  2501. # _LT_PATH_MAGIC
  2502. # LT_PATH_LD
  2503. # ----------
  2504. # find the pathname to the GNU or non-GNU linker
  2505. # LT_PATH_LD
  2506. # Old names:
  2507. # This is what autoupdate's m4 run will expand. It fires
  2508. # the warning (with _au_warn_XXX), outputs it into the
  2509. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2510. # the replacement expansion.
  2511. # This is an auxiliary macro that is also run when
  2512. # autoupdate runs m4. It simply calls m4_warning, but
  2513. # we need a wrapper so that each warning is emitted only
  2514. # once. We break the quoting in m4_warning's argument in
  2515. # order to expand this macro's arguments, not AU_DEFUN's.
  2516. # Finally, this is the expansion that is picked up by
  2517. # autoconf. It tells the user to run autoupdate, and
  2518. # then outputs the replacement expansion. We do not care
  2519. # about autoupdate's warning because that contains
  2520. # information on what to do *after* running autoupdate.
  2521. # This is what autoupdate's m4 run will expand. It fires
  2522. # the warning (with _au_warn_XXX), outputs it into the
  2523. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2524. # the replacement expansion.
  2525. # This is an auxiliary macro that is also run when
  2526. # autoupdate runs m4. It simply calls m4_warning, but
  2527. # we need a wrapper so that each warning is emitted only
  2528. # once. We break the quoting in m4_warning's argument in
  2529. # order to expand this macro's arguments, not AU_DEFUN's.
  2530. # Finally, this is the expansion that is picked up by
  2531. # autoconf. It tells the user to run autoupdate, and
  2532. # then outputs the replacement expansion. We do not care
  2533. # about autoupdate's warning because that contains
  2534. # information on what to do *after* running autoupdate.
  2535. # _LT_PATH_LD_GNU
  2536. #- --------------
  2537. # _LT_PATH_LD_GNU
  2538. # _LT_CMD_RELOAD
  2539. # --------------
  2540. # find reload flag for linker
  2541. # -- PORTME Some linkers may need a different reload flag.
  2542. # _LT_CMD_RELOAD
  2543. # _LT_CHECK_MAGIC_METHOD
  2544. # ----------------------
  2545. # how to check for library dependencies
  2546. # -- PORTME fill in with the dynamic library characteristics
  2547. # _LT_CHECK_MAGIC_METHOD
  2548. # LT_PATH_NM
  2549. # ----------
  2550. # find the pathname to a BSD- or MS-compatible name lister
  2551. # LT_PATH_NM
  2552. # Old names:
  2553. # This is what autoupdate's m4 run will expand. It fires
  2554. # the warning (with _au_warn_XXX), outputs it into the
  2555. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2556. # the replacement expansion.
  2557. # This is an auxiliary macro that is also run when
  2558. # autoupdate runs m4. It simply calls m4_warning, but
  2559. # we need a wrapper so that each warning is emitted only
  2560. # once. We break the quoting in m4_warning's argument in
  2561. # order to expand this macro's arguments, not AU_DEFUN's.
  2562. # Finally, this is the expansion that is picked up by
  2563. # autoconf. It tells the user to run autoupdate, and
  2564. # then outputs the replacement expansion. We do not care
  2565. # about autoupdate's warning because that contains
  2566. # information on what to do *after* running autoupdate.
  2567. # This is what autoupdate's m4 run will expand. It fires
  2568. # the warning (with _au_warn_XXX), outputs it into the
  2569. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2570. # the replacement expansion.
  2571. # This is an auxiliary macro that is also run when
  2572. # autoupdate runs m4. It simply calls m4_warning, but
  2573. # we need a wrapper so that each warning is emitted only
  2574. # once. We break the quoting in m4_warning's argument in
  2575. # order to expand this macro's arguments, not AU_DEFUN's.
  2576. # Finally, this is the expansion that is picked up by
  2577. # autoconf. It tells the user to run autoupdate, and
  2578. # then outputs the replacement expansion. We do not care
  2579. # about autoupdate's warning because that contains
  2580. # information on what to do *after* running autoupdate.
  2581. # LT_LIB_M
  2582. # --------
  2583. # check for math library
  2584. # LT_LIB_M
  2585. # Old name:
  2586. # This is what autoupdate's m4 run will expand. It fires
  2587. # the warning (with _au_warn_XXX), outputs it into the
  2588. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2589. # the replacement expansion.
  2590. # This is an auxiliary macro that is also run when
  2591. # autoupdate runs m4. It simply calls m4_warning, but
  2592. # we need a wrapper so that each warning is emitted only
  2593. # once. We break the quoting in m4_warning's argument in
  2594. # order to expand this macro's arguments, not AU_DEFUN's.
  2595. # Finally, this is the expansion that is picked up by
  2596. # autoconf. It tells the user to run autoupdate, and
  2597. # then outputs the replacement expansion. We do not care
  2598. # about autoupdate's warning because that contains
  2599. # information on what to do *after* running autoupdate.
  2600. # _LT_COMPILER_NO_RTTI([TAGNAME])
  2601. # -------------------------------
  2602. # _LT_COMPILER_NO_RTTI
  2603. # _LT_CMD_GLOBAL_SYMBOLS
  2604. # ----------------------
  2605. # _LT_CMD_GLOBAL_SYMBOLS
  2606. # _LT_COMPILER_PIC([TAGNAME])
  2607. # ---------------------------
  2608. # _LT_COMPILER_PIC
  2609. # _LT_LINKER_SHLIBS([TAGNAME])
  2610. # ----------------------------
  2611. # See if the linker supports building shared libraries.
  2612. # _LT_LINKER_SHLIBS
  2613. # _LT_LANG_C_CONFIG([TAG])
  2614. # ------------------------
  2615. # Ensure that the configuration variables for a C compiler are suitably
  2616. # defined. These variables are subsequently used by _LT_CONFIG to write
  2617. # the compiler configuration to `libtool'.
  2618. # _LT_LANG_C_CONFIG
  2619. # _LT_LANG_CXX_CONFIG([TAG])
  2620. # --------------------------
  2621. # Ensure that the configuration variables for a C++ compiler are suitably
  2622. # defined. These variables are subsequently used by _LT_CONFIG to write
  2623. # the compiler configuration to `libtool'.
  2624. # _LT_LANG_CXX_CONFIG
  2625. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  2626. # ---------------------------------
  2627. # Figure out "hidden" library dependencies from verbose
  2628. # compiler output when linking a shared library.
  2629. # Parse the compiler output and extract the necessary
  2630. # objects, libraries and library flags.
  2631. # _LT_SYS_HIDDEN_LIBDEPS
  2632. # _LT_LANG_F77_CONFIG([TAG])
  2633. # --------------------------
  2634. # Ensure that the configuration variables for a Fortran 77 compiler are
  2635. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2636. # to write the compiler configuration to `libtool'.
  2637. # _LT_LANG_F77_CONFIG
  2638. # _LT_LANG_FC_CONFIG([TAG])
  2639. # -------------------------
  2640. # Ensure that the configuration variables for a Fortran compiler are
  2641. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2642. # to write the compiler configuration to `libtool'.
  2643. # _LT_LANG_FC_CONFIG
  2644. # _LT_LANG_GCJ_CONFIG([TAG])
  2645. # --------------------------
  2646. # Ensure that the configuration variables for the GNU Java Compiler compiler
  2647. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2648. # to write the compiler configuration to `libtool'.
  2649. # _LT_LANG_GCJ_CONFIG
  2650. # _LT_LANG_RC_CONFIG([TAG])
  2651. # -------------------------
  2652. # Ensure that the configuration variables for the Windows resource compiler
  2653. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2654. # to write the compiler configuration to `libtool'.
  2655. # _LT_LANG_RC_CONFIG
  2656. # LT_PROG_GCJ
  2657. # -----------
  2658. # Old name:
  2659. # This is what autoupdate's m4 run will expand. It fires
  2660. # the warning (with _au_warn_XXX), outputs it into the
  2661. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2662. # the replacement expansion.
  2663. # This is an auxiliary macro that is also run when
  2664. # autoupdate runs m4. It simply calls m4_warning, but
  2665. # we need a wrapper so that each warning is emitted only
  2666. # once. We break the quoting in m4_warning's argument in
  2667. # order to expand this macro's arguments, not AU_DEFUN's.
  2668. # Finally, this is the expansion that is picked up by
  2669. # autoconf. It tells the user to run autoupdate, and
  2670. # then outputs the replacement expansion. We do not care
  2671. # about autoupdate's warning because that contains
  2672. # information on what to do *after* running autoupdate.
  2673. # LT_PROG_RC
  2674. # ----------
  2675. # Old name:
  2676. # This is what autoupdate's m4 run will expand. It fires
  2677. # the warning (with _au_warn_XXX), outputs it into the
  2678. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2679. # the replacement expansion.
  2680. # This is an auxiliary macro that is also run when
  2681. # autoupdate runs m4. It simply calls m4_warning, but
  2682. # we need a wrapper so that each warning is emitted only
  2683. # once. We break the quoting in m4_warning's argument in
  2684. # order to expand this macro's arguments, not AU_DEFUN's.
  2685. # Finally, this is the expansion that is picked up by
  2686. # autoconf. It tells the user to run autoupdate, and
  2687. # then outputs the replacement expansion. We do not care
  2688. # about autoupdate's warning because that contains
  2689. # information on what to do *after* running autoupdate.
  2690. # _LT_DECL_EGREP
  2691. # --------------
  2692. # If we don't have a new enough Autoconf to choose the best grep
  2693. # available, choose the one first in the user's PATH.
  2694. # _LT_DECL_OBJDUMP
  2695. # --------------
  2696. # If we don't have a new enough Autoconf to choose the best objdump
  2697. # available, choose the one first in the user's PATH.
  2698. # _LT_DECL_SED
  2699. # ------------
  2700. # Check for a fully-functional sed program, that truncates
  2701. # as few characters as possible. Prefer GNU sed if found.
  2702. # _LT_DECL_SED
  2703. #m4_ifndef
  2704. # Old name:
  2705. # This is what autoupdate's m4 run will expand. It fires
  2706. # the warning (with _au_warn_XXX), outputs it into the
  2707. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2708. # the replacement expansion.
  2709. # This is an auxiliary macro that is also run when
  2710. # autoupdate runs m4. It simply calls m4_warning, but
  2711. # we need a wrapper so that each warning is emitted only
  2712. # once. We break the quoting in m4_warning's argument in
  2713. # order to expand this macro's arguments, not AU_DEFUN's.
  2714. # Finally, this is the expansion that is picked up by
  2715. # autoconf. It tells the user to run autoupdate, and
  2716. # then outputs the replacement expansion. We do not care
  2717. # about autoupdate's warning because that contains
  2718. # information on what to do *after* running autoupdate.
  2719. # _LT_CHECK_SHELL_FEATURES
  2720. # ------------------------
  2721. # Find out whether the shell is Bourne or XSI compatible,
  2722. # or has some other useful features.
  2723. # _LT_CHECK_SHELL_FEATURES
  2724. # _LT_PROG_XSI_SHELLFNS
  2725. # ---------------------
  2726. # Bourne and XSI compatible variants of some useful shell functions.
  2727. # Helper functions for option handling. -*- Autoconf -*-
  2728. #
  2729. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  2730. # Inc.
  2731. # Written by Gary V. Vaughan, 2004
  2732. #
  2733. # This file is free software; the Free Software Foundation gives
  2734. # unlimited permission to copy and/or distribute it, with or without
  2735. # modifications, as long as this notice is preserved.
  2736. # serial 6 ltoptions.m4
  2737. # This is to help aclocal find these macros, as it can't see m4_define.
  2738. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  2739. # ------------------------------------------
  2740. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  2741. # ---------------------------------------
  2742. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  2743. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  2744. # saved as a flag.
  2745. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  2746. # ------------------------------------------------------------
  2747. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  2748. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  2749. # -------------------------------------------------------
  2750. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  2751. # are set.
  2752. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  2753. # ----------------------------------------
  2754. # OPTION-LIST is a space-separated list of Libtool options associated
  2755. # with MACRO-NAME. If any OPTION has a matching handler declared with
  2756. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  2757. # the unknown option and exit.
  2758. # _LT_SET_OPTIONS
  2759. ## --------------------------------- ##
  2760. ## Macros to handle LT_INIT options. ##
  2761. ## --------------------------------- ##
  2762. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  2763. # -----------------------------------------
  2764. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  2765. # -----------------------------------------------
  2766. # LT_OPTION_DEFINE
  2767. # dlopen
  2768. # ------
  2769. # This is what autoupdate's m4 run will expand. It fires
  2770. # the warning (with _au_warn_XXX), outputs it into the
  2771. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2772. # the replacement expansion.
  2773. # This is an auxiliary macro that is also run when
  2774. # autoupdate runs m4. It simply calls m4_warning, but
  2775. # we need a wrapper so that each warning is emitted only
  2776. # once. We break the quoting in m4_warning's argument in
  2777. # order to expand this macro's arguments, not AU_DEFUN's.
  2778. # Finally, this is the expansion that is picked up by
  2779. # autoconf. It tells the user to run autoupdate, and
  2780. # then outputs the replacement expansion. We do not care
  2781. # about autoupdate's warning because that contains
  2782. # information on what to do *after* running autoupdate.
  2783. # win32-dll
  2784. # ---------
  2785. # Declare package support for building win32 dll's.
  2786. # win32-dll
  2787. # This is what autoupdate's m4 run will expand. It fires
  2788. # the warning (with _au_warn_XXX), outputs it into the
  2789. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2790. # the replacement expansion.
  2791. # This is an auxiliary macro that is also run when
  2792. # autoupdate runs m4. It simply calls m4_warning, but
  2793. # we need a wrapper so that each warning is emitted only
  2794. # once. We break the quoting in m4_warning's argument in
  2795. # order to expand this macro's arguments, not AU_DEFUN's.
  2796. # Finally, this is the expansion that is picked up by
  2797. # autoconf. It tells the user to run autoupdate, and
  2798. # then outputs the replacement expansion. We do not care
  2799. # about autoupdate's warning because that contains
  2800. # information on what to do *after* running autoupdate.
  2801. # _LT_ENABLE_SHARED([DEFAULT])
  2802. # ----------------------------
  2803. # implement the --enable-shared flag, and supports the `shared' and
  2804. # `disable-shared' LT_INIT options.
  2805. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2806. # _LT_ENABLE_SHARED
  2807. # Old names:
  2808. # This is what autoupdate's m4 run will expand. It fires
  2809. # the warning (with _au_warn_XXX), outputs it into the
  2810. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2811. # the replacement expansion.
  2812. # This is an auxiliary macro that is also run when
  2813. # autoupdate runs m4. It simply calls m4_warning, but
  2814. # we need a wrapper so that each warning is emitted only
  2815. # once. We break the quoting in m4_warning's argument in
  2816. # order to expand this macro's arguments, not AU_DEFUN's.
  2817. # Finally, this is the expansion that is picked up by
  2818. # autoconf. It tells the user to run autoupdate, and
  2819. # then outputs the replacement expansion. We do not care
  2820. # about autoupdate's warning because that contains
  2821. # information on what to do *after* running autoupdate.
  2822. # This is what autoupdate's m4 run will expand. It fires
  2823. # the warning (with _au_warn_XXX), outputs it into the
  2824. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2825. # the replacement expansion.
  2826. # This is an auxiliary macro that is also run when
  2827. # autoupdate runs m4. It simply calls m4_warning, but
  2828. # we need a wrapper so that each warning is emitted only
  2829. # once. We break the quoting in m4_warning's argument in
  2830. # order to expand this macro's arguments, not AU_DEFUN's.
  2831. # Finally, this is the expansion that is picked up by
  2832. # autoconf. It tells the user to run autoupdate, and
  2833. # then outputs the replacement expansion. We do not care
  2834. # about autoupdate's warning because that contains
  2835. # information on what to do *after* running autoupdate.
  2836. # _LT_ENABLE_STATIC([DEFAULT])
  2837. # ----------------------------
  2838. # implement the --enable-static flag, and support the `static' and
  2839. # `disable-static' LT_INIT options.
  2840. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2841. # _LT_ENABLE_STATIC
  2842. # Old names:
  2843. # This is what autoupdate's m4 run will expand. It fires
  2844. # the warning (with _au_warn_XXX), outputs it into the
  2845. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2846. # the replacement expansion.
  2847. # This is an auxiliary macro that is also run when
  2848. # autoupdate runs m4. It simply calls m4_warning, but
  2849. # we need a wrapper so that each warning is emitted only
  2850. # once. We break the quoting in m4_warning's argument in
  2851. # order to expand this macro's arguments, not AU_DEFUN's.
  2852. # Finally, this is the expansion that is picked up by
  2853. # autoconf. It tells the user to run autoupdate, and
  2854. # then outputs the replacement expansion. We do not care
  2855. # about autoupdate's warning because that contains
  2856. # information on what to do *after* running autoupdate.
  2857. # This is what autoupdate's m4 run will expand. It fires
  2858. # the warning (with _au_warn_XXX), outputs it into the
  2859. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2860. # the replacement expansion.
  2861. # This is an auxiliary macro that is also run when
  2862. # autoupdate runs m4. It simply calls m4_warning, but
  2863. # we need a wrapper so that each warning is emitted only
  2864. # once. We break the quoting in m4_warning's argument in
  2865. # order to expand this macro's arguments, not AU_DEFUN's.
  2866. # Finally, this is the expansion that is picked up by
  2867. # autoconf. It tells the user to run autoupdate, and
  2868. # then outputs the replacement expansion. We do not care
  2869. # about autoupdate's warning because that contains
  2870. # information on what to do *after* running autoupdate.
  2871. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  2872. # ----------------------------------
  2873. # implement the --enable-fast-install flag, and support the `fast-install'
  2874. # and `disable-fast-install' LT_INIT options.
  2875. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2876. # _LT_ENABLE_FAST_INSTALL
  2877. # Old names:
  2878. # This is what autoupdate's m4 run will expand. It fires
  2879. # the warning (with _au_warn_XXX), outputs it into the
  2880. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2881. # the replacement expansion.
  2882. # This is an auxiliary macro that is also run when
  2883. # autoupdate runs m4. It simply calls m4_warning, but
  2884. # we need a wrapper so that each warning is emitted only
  2885. # once. We break the quoting in m4_warning's argument in
  2886. # order to expand this macro's arguments, not AU_DEFUN's.
  2887. # Finally, this is the expansion that is picked up by
  2888. # autoconf. It tells the user to run autoupdate, and
  2889. # then outputs the replacement expansion. We do not care
  2890. # about autoupdate's warning because that contains
  2891. # information on what to do *after* running autoupdate.
  2892. # This is what autoupdate's m4 run will expand. It fires
  2893. # the warning (with _au_warn_XXX), outputs it into the
  2894. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2895. # the replacement expansion.
  2896. # This is an auxiliary macro that is also run when
  2897. # autoupdate runs m4. It simply calls m4_warning, but
  2898. # we need a wrapper so that each warning is emitted only
  2899. # once. We break the quoting in m4_warning's argument in
  2900. # order to expand this macro's arguments, not AU_DEFUN's.
  2901. # Finally, this is the expansion that is picked up by
  2902. # autoconf. It tells the user to run autoupdate, and
  2903. # then outputs the replacement expansion. We do not care
  2904. # about autoupdate's warning because that contains
  2905. # information on what to do *after* running autoupdate.
  2906. # _LT_WITH_PIC([MODE])
  2907. # --------------------
  2908. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  2909. # LT_INIT options.
  2910. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2911. # _LT_WITH_PIC
  2912. # Old name:
  2913. # This is what autoupdate's m4 run will expand. It fires
  2914. # the warning (with _au_warn_XXX), outputs it into the
  2915. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2916. # the replacement expansion.
  2917. # This is an auxiliary macro that is also run when
  2918. # autoupdate runs m4. It simply calls m4_warning, but
  2919. # we need a wrapper so that each warning is emitted only
  2920. # once. We break the quoting in m4_warning's argument in
  2921. # order to expand this macro's arguments, not AU_DEFUN's.
  2922. # Finally, this is the expansion that is picked up by
  2923. # autoconf. It tells the user to run autoupdate, and
  2924. # then outputs the replacement expansion. We do not care
  2925. # about autoupdate's warning because that contains
  2926. # information on what to do *after* running autoupdate.
  2927. ## ----------------- ##
  2928. ## LTDL_INIT Options ##
  2929. ## ----------------- ##
  2930. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  2931. #
  2932. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  2933. # Written by Gary V. Vaughan, 2004
  2934. #
  2935. # This file is free software; the Free Software Foundation gives
  2936. # unlimited permission to copy and/or distribute it, with or without
  2937. # modifications, as long as this notice is preserved.
  2938. # serial 6 ltsugar.m4
  2939. # This is to help aclocal find these macros, as it can't see m4_define.
  2940. # lt_join(SEP, ARG1, [ARG2...])
  2941. # -----------------------------
  2942. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  2943. # associated separator.
  2944. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  2945. # versions in m4sugar had bugs.
  2946. # lt_car(LIST)
  2947. # lt_cdr(LIST)
  2948. # ------------
  2949. # Manipulate m4 lists.
  2950. # These macros are necessary as long as will still need to support
  2951. # Autoconf-2.59 which quotes differently.
  2952. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  2953. # ------------------------------------------
  2954. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  2955. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  2956. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  2957. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  2958. # than defined and empty).
  2959. #
  2960. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  2961. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  2962. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  2963. # ----------------------------------------------------------
  2964. # Produce a SEP delimited list of all paired combinations of elements of
  2965. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  2966. # has the form PREFIXmINFIXSUFFIXn.
  2967. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  2968. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  2969. # -----------------------------------------------------------------------
  2970. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  2971. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  2972. # lt_dict_add(DICT, KEY, VALUE)
  2973. # -----------------------------
  2974. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  2975. # --------------------------------------------
  2976. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  2977. # ----------------------------------
  2978. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  2979. # -----------------------------------------------------------------
  2980. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  2981. # --------------------------------------------------------------
  2982. # ltversion.m4 -- version numbers -*- Autoconf -*-
  2983. #
  2984. # Copyright (C) 2004 Free Software Foundation, Inc.
  2985. # Written by Scott James Remnant, 2004
  2986. #
  2987. # This file is free software; the Free Software Foundation gives
  2988. # unlimited permission to copy and/or distribute it, with or without
  2989. # modifications, as long as this notice is preserved.
  2990. # Generated from ltversion.in.
  2991. # serial 3134 ltversion.m4
  2992. # This file is part of GNU Libtool
  2993. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  2994. #
  2995. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  2996. # Written by Scott James Remnant, 2004.
  2997. #
  2998. # This file is free software; the Free Software Foundation gives
  2999. # unlimited permission to copy and/or distribute it, with or without
  3000. # modifications, as long as this notice is preserved.
  3001. # serial 4 lt~obsolete.m4
  3002. # These exist entirely to fool aclocal when bootstrapping libtool.
  3003. #
  3004. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  3005. # which have later been changed to m4_define as they aren't part of the
  3006. # exported API, or moved to Autoconf or Automake where they belong.
  3007. #
  3008. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  3009. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  3010. # using a macro with the same name in our local m4/libtool.m4 it'll
  3011. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  3012. # and doesn't know about Autoconf macros at all.)
  3013. #
  3014. # So we provide this file, which has a silly filename so it's always
  3015. # included after everything else. This provides aclocal with the
  3016. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  3017. # because those macros already exist, or will be overwritten later.
  3018. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  3019. #
  3020. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  3021. # Yes, that means every name once taken will need to remain here until
  3022. # we give up compatibility with versions before 1.7, at which point
  3023. # we need to keep only those names which we still refer to.
  3024. # This is to help aclocal find these macros, as it can't see m4_define.
  3025. ## -*- Autoconf -*-
  3026. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
  3027. # Free Software Foundation, Inc.
  3028. #
  3029. # This file is free software; the Free Software Foundation
  3030. # gives unlimited permission to copy and/or distribute it,
  3031. # with or without modifications, as long as this notice is preserved.
  3032. # serial 8
  3033. # Based on depend.m4 from automake 1.9, modified for standalone use in
  3034. # an environment where GNU make is required.
  3035. # ZW_PROG_COMPILER_DEPENDENCIES
  3036. # -----------------------------
  3037. # Variant of _AM_DEPENDENCIES which just does the dependency probe and
  3038. # sets fooDEPMODE accordingly. Cache-variable compatible with
  3039. # original; not side-effect compatible. As the users of this macro
  3040. # may require accurate dependencies for correct builds, it does *not*
  3041. # honor --disable-dependency-checking, and failure to detect a usable
  3042. # method is an error. depcomp is assumed to be located in
  3043. # $ac_aux_dir.
  3044. #
  3045. # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
  3046. # AM_SET_DEPDIR
  3047. # -------------
  3048. # Choose a directory name for dependency files.
  3049. # ZW_CREATE_DEPDIR
  3050. # ----------------
  3051. # As AM_SET_DEPDIR, but also create the directory at config.status time.
  3052. sim_inline="-DDEFAULT_INLINE=0"
  3053. # intl sister-directory configuration rules.
  3054. #
  3055. # The idea behind this macro is that there's no need to repeat all the
  3056. # autoconf probes done by the intl directory - it's already done them
  3057. # for us. In fact, there's no need even to look at the cache for the
  3058. # answers. All we need to do is nab a few pieces of information.
  3059. # The intl directory is set up to make this easy, by generating a
  3060. # small file which can be sourced as a shell script; then we produce
  3061. # the necessary substitutions and definitions for this directory.
  3062. # Autoconf M4 include file defining utility macros for complex Canadian
  3063. # cross builds.
  3064. ####
  3065. # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
  3066. # or AC_INIT.
  3067. # These demand that AC_CANONICAL_SYSTEM be called beforehand.
  3068. ####
  3069. # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3070. # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
  3071. ####
  3072. # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3073. # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
  3074. # Backported from Autoconf 2.5x; can go away when and if
  3075. # we switch. Put the OS path separator in $PATH_SEPARATOR.
  3076. # ACX_HAVE_GCC_FOR_TARGET
  3077. # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
  3078. # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
  3079. # Searching for installed target binutils. We need to take extra care,
  3080. # else we may find the wrong assembler, linker, etc., and lose.
  3081. #
  3082. # First try --with-build-time-tools, if specified.
  3083. #
  3084. # For build != host, we ask the installed GCC for the name of the tool it
  3085. # uses, and accept it if it is an absolute path. This is because the
  3086. # only good choice for a compiler is the same GCC version that is being
  3087. # installed (or we couldn't make target libraries), and we assume that
  3088. # on the host system we'll have not only the same GCC version, but also
  3089. # the same binutils version.
  3090. #
  3091. # For build == host, search the same directories that the installed
  3092. # compiler will search. We used to do this for the assembler, linker,
  3093. # and nm only; for simplicity of configuration, however, we extend this
  3094. # criterion to tools (such as ar and ranlib) that are never invoked by
  3095. # the compiler, to avoid mismatches.
  3096. #
  3097. # Also note we have to check MD_EXEC_PREFIX before checking the user's path
  3098. # if build == target. This makes the most sense only when bootstrapping,
  3099. # but we also do so when build != host. In this case, we hope that the
  3100. # build and host systems will have similar contents of MD_EXEC_PREFIX.
  3101. #
  3102. # If we do not find a suitable binary, then try the user's path.
  3103. ###
  3104. # AC_PROG_CPP_WERROR
  3105. # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
  3106. # triggers warnings from the preprocessor. Will be in autoconf 2.58.
  3107. # For now, using this also overrides header checks to use only the
  3108. # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
  3109. # bit harder from here).
  3110. # Eventually autoconf will default to checking headers with the compiler
  3111. # instead, and we'll have to do this differently.
  3112. # AC_PROG_CPP_WERROR
  3113. # Test for GNAT.
  3114. # We require the gnatbind & gnatmake programs, as well as a compiler driver
  3115. # that understands Ada. We use the user's CC setting, already found, and
  3116. # possibly add $1 to the command-line parameters.
  3117. #
  3118. # Sets the shell variable have_gnat to yes or no as appropriate, and
  3119. # substitutes GNATBIND and GNATMAKE.
  3120. ac_ext=c
  3121. ac_cpp='$CPP $CPPFLAGS'
  3122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3123. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3124. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3125. if test -n "$ac_tool_prefix"; then
  3126. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3127. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3129. $as_echo_n "checking for $ac_word... " >&6; }
  3130. if test "${ac_cv_prog_CC+set}" = set; then :
  3131. $as_echo_n "(cached) " >&6
  3132. else
  3133. if test -n "$CC"; then
  3134. ac_cv_prog_CC="$CC" # Let the user override the test.
  3135. else
  3136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3137. for as_dir in $PATH
  3138. do
  3139. IFS=$as_save_IFS
  3140. test -z "$as_dir" && as_dir=.
  3141. for ac_exec_ext in '' $ac_executable_extensions; do
  3142. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3143. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3145. break 2
  3146. fi
  3147. done
  3148. done
  3149. IFS=$as_save_IFS
  3150. fi
  3151. fi
  3152. CC=$ac_cv_prog_CC
  3153. if test -n "$CC"; then
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3155. $as_echo "$CC" >&6; }
  3156. else
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3158. $as_echo "no" >&6; }
  3159. fi
  3160. fi
  3161. if test -z "$ac_cv_prog_CC"; then
  3162. ac_ct_CC=$CC
  3163. # Extract the first word of "gcc", so it can be a program name with args.
  3164. set dummy gcc; ac_word=$2
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3166. $as_echo_n "checking for $ac_word... " >&6; }
  3167. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3168. $as_echo_n "(cached) " >&6
  3169. else
  3170. if test -n "$ac_ct_CC"; then
  3171. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3172. else
  3173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3174. for as_dir in $PATH
  3175. do
  3176. IFS=$as_save_IFS
  3177. test -z "$as_dir" && as_dir=.
  3178. for ac_exec_ext in '' $ac_executable_extensions; do
  3179. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3180. ac_cv_prog_ac_ct_CC="gcc"
  3181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3182. break 2
  3183. fi
  3184. done
  3185. done
  3186. IFS=$as_save_IFS
  3187. fi
  3188. fi
  3189. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3190. if test -n "$ac_ct_CC"; then
  3191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3192. $as_echo "$ac_ct_CC" >&6; }
  3193. else
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3195. $as_echo "no" >&6; }
  3196. fi
  3197. if test "x$ac_ct_CC" = x; then
  3198. CC=""
  3199. else
  3200. case $cross_compiling:$ac_tool_warned in
  3201. yes:)
  3202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3203. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3204. ac_tool_warned=yes ;;
  3205. esac
  3206. CC=$ac_ct_CC
  3207. fi
  3208. else
  3209. CC="$ac_cv_prog_CC"
  3210. fi
  3211. if test -z "$CC"; then
  3212. if test -n "$ac_tool_prefix"; then
  3213. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3214. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3216. $as_echo_n "checking for $ac_word... " >&6; }
  3217. if test "${ac_cv_prog_CC+set}" = set; then :
  3218. $as_echo_n "(cached) " >&6
  3219. else
  3220. if test -n "$CC"; then
  3221. ac_cv_prog_CC="$CC" # Let the user override the test.
  3222. else
  3223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3224. for as_dir in $PATH
  3225. do
  3226. IFS=$as_save_IFS
  3227. test -z "$as_dir" && as_dir=.
  3228. for ac_exec_ext in '' $ac_executable_extensions; do
  3229. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3230. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3231. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3232. break 2
  3233. fi
  3234. done
  3235. done
  3236. IFS=$as_save_IFS
  3237. fi
  3238. fi
  3239. CC=$ac_cv_prog_CC
  3240. if test -n "$CC"; then
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3242. $as_echo "$CC" >&6; }
  3243. else
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3245. $as_echo "no" >&6; }
  3246. fi
  3247. fi
  3248. fi
  3249. if test -z "$CC"; then
  3250. # Extract the first word of "cc", so it can be a program name with args.
  3251. set dummy cc; ac_word=$2
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3253. $as_echo_n "checking for $ac_word... " >&6; }
  3254. if test "${ac_cv_prog_CC+set}" = set; then :
  3255. $as_echo_n "(cached) " >&6
  3256. else
  3257. if test -n "$CC"; then
  3258. ac_cv_prog_CC="$CC" # Let the user override the test.
  3259. else
  3260. ac_prog_rejected=no
  3261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3262. for as_dir in $PATH
  3263. do
  3264. IFS=$as_save_IFS
  3265. test -z "$as_dir" && as_dir=.
  3266. for ac_exec_ext in '' $ac_executable_extensions; do
  3267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3268. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3269. ac_prog_rejected=yes
  3270. continue
  3271. fi
  3272. ac_cv_prog_CC="cc"
  3273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3274. break 2
  3275. fi
  3276. done
  3277. done
  3278. IFS=$as_save_IFS
  3279. if test $ac_prog_rejected = yes; then
  3280. # We found a bogon in the path, so make sure we never use it.
  3281. set dummy $ac_cv_prog_CC
  3282. shift
  3283. if test $# != 0; then
  3284. # We chose a different compiler from the bogus one.
  3285. # However, it has the same basename, so the bogon will be chosen
  3286. # first if we set CC to just the basename; use the full file name.
  3287. shift
  3288. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3289. fi
  3290. fi
  3291. fi
  3292. fi
  3293. CC=$ac_cv_prog_CC
  3294. if test -n "$CC"; then
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3296. $as_echo "$CC" >&6; }
  3297. else
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3299. $as_echo "no" >&6; }
  3300. fi
  3301. fi
  3302. if test -z "$CC"; then
  3303. if test -n "$ac_tool_prefix"; then
  3304. for ac_prog in cl.exe
  3305. do
  3306. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3307. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3309. $as_echo_n "checking for $ac_word... " >&6; }
  3310. if test "${ac_cv_prog_CC+set}" = set; then :
  3311. $as_echo_n "(cached) " >&6
  3312. else
  3313. if test -n "$CC"; then
  3314. ac_cv_prog_CC="$CC" # Let the user override the test.
  3315. else
  3316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3317. for as_dir in $PATH
  3318. do
  3319. IFS=$as_save_IFS
  3320. test -z "$as_dir" && as_dir=.
  3321. for ac_exec_ext in '' $ac_executable_extensions; do
  3322. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3323. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3325. break 2
  3326. fi
  3327. done
  3328. done
  3329. IFS=$as_save_IFS
  3330. fi
  3331. fi
  3332. CC=$ac_cv_prog_CC
  3333. if test -n "$CC"; then
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3335. $as_echo "$CC" >&6; }
  3336. else
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3338. $as_echo "no" >&6; }
  3339. fi
  3340. test -n "$CC" && break
  3341. done
  3342. fi
  3343. if test -z "$CC"; then
  3344. ac_ct_CC=$CC
  3345. for ac_prog in cl.exe
  3346. do
  3347. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3348. set dummy $ac_prog; ac_word=$2
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3350. $as_echo_n "checking for $ac_word... " >&6; }
  3351. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3352. $as_echo_n "(cached) " >&6
  3353. else
  3354. if test -n "$ac_ct_CC"; then
  3355. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3356. else
  3357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3358. for as_dir in $PATH
  3359. do
  3360. IFS=$as_save_IFS
  3361. test -z "$as_dir" && as_dir=.
  3362. for ac_exec_ext in '' $ac_executable_extensions; do
  3363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3364. ac_cv_prog_ac_ct_CC="$ac_prog"
  3365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3366. break 2
  3367. fi
  3368. done
  3369. done
  3370. IFS=$as_save_IFS
  3371. fi
  3372. fi
  3373. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3374. if test -n "$ac_ct_CC"; then
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3376. $as_echo "$ac_ct_CC" >&6; }
  3377. else
  3378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3379. $as_echo "no" >&6; }
  3380. fi
  3381. test -n "$ac_ct_CC" && break
  3382. done
  3383. if test "x$ac_ct_CC" = x; then
  3384. CC=""
  3385. else
  3386. case $cross_compiling:$ac_tool_warned in
  3387. yes:)
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3389. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3390. ac_tool_warned=yes ;;
  3391. esac
  3392. CC=$ac_ct_CC
  3393. fi
  3394. fi
  3395. fi
  3396. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3397. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3398. as_fn_error "no acceptable C compiler found in \$PATH
  3399. See \`config.log' for more details." "$LINENO" 5; }
  3400. # Provide some information about the compiler.
  3401. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3402. set X $ac_compile
  3403. ac_compiler=$2
  3404. for ac_option in --version -v -V -qversion; do
  3405. { { ac_try="$ac_compiler $ac_option >&5"
  3406. case "(($ac_try" in
  3407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3408. *) ac_try_echo=$ac_try;;
  3409. esac
  3410. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3411. $as_echo "$ac_try_echo"; } >&5
  3412. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3413. ac_status=$?
  3414. if test -s conftest.err; then
  3415. sed '10a\
  3416. ... rest of stderr output deleted ...
  3417. 10q' conftest.err >conftest.er1
  3418. cat conftest.er1 >&5
  3419. rm -f conftest.er1 conftest.err
  3420. fi
  3421. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3422. test $ac_status = 0; }
  3423. done
  3424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3425. /* end confdefs.h. */
  3426. int
  3427. main ()
  3428. {
  3429. ;
  3430. return 0;
  3431. }
  3432. _ACEOF
  3433. ac_clean_files_save=$ac_clean_files
  3434. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3435. # Try to create an executable without -o first, disregard a.out.
  3436. # It will help us diagnose broken compilers, and finding out an intuition
  3437. # of exeext.
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3439. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3440. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3441. # The possible output files:
  3442. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3443. ac_rmfiles=
  3444. for ac_file in $ac_files
  3445. do
  3446. case $ac_file in
  3447. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3448. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3449. esac
  3450. done
  3451. rm -f $ac_rmfiles
  3452. if { { ac_try="$ac_link_default"
  3453. case "(($ac_try" in
  3454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3455. *) ac_try_echo=$ac_try;;
  3456. esac
  3457. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3458. $as_echo "$ac_try_echo"; } >&5
  3459. (eval "$ac_link_default") 2>&5
  3460. ac_status=$?
  3461. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3462. test $ac_status = 0; }; then :
  3463. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3464. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3465. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3466. # so that the user can short-circuit this test for compilers unknown to
  3467. # Autoconf.
  3468. for ac_file in $ac_files ''
  3469. do
  3470. test -f "$ac_file" || continue
  3471. case $ac_file in
  3472. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3473. ;;
  3474. [ab].out )
  3475. # We found the default executable, but exeext='' is most
  3476. # certainly right.
  3477. break;;
  3478. *.* )
  3479. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3480. then :; else
  3481. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3482. fi
  3483. # We set ac_cv_exeext here because the later test for it is not
  3484. # safe: cross compilers may not add the suffix if given an `-o'
  3485. # argument, so we may need to know it at that point already.
  3486. # Even if this section looks crufty: it has the advantage of
  3487. # actually working.
  3488. break;;
  3489. * )
  3490. break;;
  3491. esac
  3492. done
  3493. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3494. else
  3495. ac_file=''
  3496. fi
  3497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3498. $as_echo "$ac_file" >&6; }
  3499. if test -z "$ac_file"; then :
  3500. $as_echo "$as_me: failed program was:" >&5
  3501. sed 's/^/| /' conftest.$ac_ext >&5
  3502. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3503. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3504. { as_fn_set_status 77
  3505. as_fn_error "C compiler cannot create executables
  3506. See \`config.log' for more details." "$LINENO" 5; }; }
  3507. fi
  3508. ac_exeext=$ac_cv_exeext
  3509. # Check that the compiler produces executables we can run. If not, either
  3510. # the compiler is broken, or we cross compile.
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3512. $as_echo_n "checking whether the C compiler works... " >&6; }
  3513. # If not cross compiling, check that we can run a simple program.
  3514. if test "$cross_compiling" != yes; then
  3515. if { ac_try='./$ac_file'
  3516. { { case "(($ac_try" in
  3517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3518. *) ac_try_echo=$ac_try;;
  3519. esac
  3520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3521. $as_echo "$ac_try_echo"; } >&5
  3522. (eval "$ac_try") 2>&5
  3523. ac_status=$?
  3524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3525. test $ac_status = 0; }; }; then
  3526. cross_compiling=no
  3527. else
  3528. if test "$cross_compiling" = maybe; then
  3529. cross_compiling=yes
  3530. else
  3531. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3532. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3533. as_fn_error "cannot run C compiled programs.
  3534. If you meant to cross compile, use \`--host'.
  3535. See \`config.log' for more details." "$LINENO" 5; }
  3536. fi
  3537. fi
  3538. fi
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3540. $as_echo "yes" >&6; }
  3541. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3542. ac_clean_files=$ac_clean_files_save
  3543. # Check that the compiler produces executables we can run. If not, either
  3544. # the compiler is broken, or we cross compile.
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3546. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3548. $as_echo "$cross_compiling" >&6; }
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3550. $as_echo_n "checking for suffix of executables... " >&6; }
  3551. if { { ac_try="$ac_link"
  3552. case "(($ac_try" in
  3553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3554. *) ac_try_echo=$ac_try;;
  3555. esac
  3556. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3557. $as_echo "$ac_try_echo"; } >&5
  3558. (eval "$ac_link") 2>&5
  3559. ac_status=$?
  3560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3561. test $ac_status = 0; }; then :
  3562. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3563. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3564. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3565. # `rm'.
  3566. for ac_file in conftest.exe conftest conftest.*; do
  3567. test -f "$ac_file" || continue
  3568. case $ac_file in
  3569. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3570. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3571. break;;
  3572. * ) break;;
  3573. esac
  3574. done
  3575. else
  3576. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3577. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3578. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3579. See \`config.log' for more details." "$LINENO" 5; }
  3580. fi
  3581. rm -f conftest$ac_cv_exeext
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3583. $as_echo "$ac_cv_exeext" >&6; }
  3584. rm -f conftest.$ac_ext
  3585. EXEEXT=$ac_cv_exeext
  3586. ac_exeext=$EXEEXT
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3588. $as_echo_n "checking for suffix of object files... " >&6; }
  3589. if test "${ac_cv_objext+set}" = set; then :
  3590. $as_echo_n "(cached) " >&6
  3591. else
  3592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3593. /* end confdefs.h. */
  3594. int
  3595. main ()
  3596. {
  3597. ;
  3598. return 0;
  3599. }
  3600. _ACEOF
  3601. rm -f conftest.o conftest.obj
  3602. if { { ac_try="$ac_compile"
  3603. case "(($ac_try" in
  3604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3605. *) ac_try_echo=$ac_try;;
  3606. esac
  3607. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3608. $as_echo "$ac_try_echo"; } >&5
  3609. (eval "$ac_compile") 2>&5
  3610. ac_status=$?
  3611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3612. test $ac_status = 0; }; then :
  3613. for ac_file in conftest.o conftest.obj conftest.*; do
  3614. test -f "$ac_file" || continue;
  3615. case $ac_file in
  3616. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3617. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3618. break;;
  3619. esac
  3620. done
  3621. else
  3622. $as_echo "$as_me: failed program was:" >&5
  3623. sed 's/^/| /' conftest.$ac_ext >&5
  3624. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3625. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3626. as_fn_error "cannot compute suffix of object files: cannot compile
  3627. See \`config.log' for more details." "$LINENO" 5; }
  3628. fi
  3629. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3630. fi
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3632. $as_echo "$ac_cv_objext" >&6; }
  3633. OBJEXT=$ac_cv_objext
  3634. ac_objext=$OBJEXT
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3636. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3637. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3638. $as_echo_n "(cached) " >&6
  3639. else
  3640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3641. /* end confdefs.h. */
  3642. int
  3643. main ()
  3644. {
  3645. #ifndef __GNUC__
  3646. choke me
  3647. #endif
  3648. ;
  3649. return 0;
  3650. }
  3651. _ACEOF
  3652. if ac_fn_c_try_compile "$LINENO"; then :
  3653. ac_compiler_gnu=yes
  3654. else
  3655. ac_compiler_gnu=no
  3656. fi
  3657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3658. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3659. fi
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3661. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3662. if test $ac_compiler_gnu = yes; then
  3663. GCC=yes
  3664. else
  3665. GCC=
  3666. fi
  3667. ac_test_CFLAGS=${CFLAGS+set}
  3668. ac_save_CFLAGS=$CFLAGS
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3670. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3671. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3672. $as_echo_n "(cached) " >&6
  3673. else
  3674. ac_save_c_werror_flag=$ac_c_werror_flag
  3675. ac_c_werror_flag=yes
  3676. ac_cv_prog_cc_g=no
  3677. CFLAGS="-g"
  3678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3679. /* end confdefs.h. */
  3680. int
  3681. main ()
  3682. {
  3683. ;
  3684. return 0;
  3685. }
  3686. _ACEOF
  3687. if ac_fn_c_try_compile "$LINENO"; then :
  3688. ac_cv_prog_cc_g=yes
  3689. else
  3690. CFLAGS=""
  3691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3692. /* end confdefs.h. */
  3693. int
  3694. main ()
  3695. {
  3696. ;
  3697. return 0;
  3698. }
  3699. _ACEOF
  3700. if ac_fn_c_try_compile "$LINENO"; then :
  3701. else
  3702. ac_c_werror_flag=$ac_save_c_werror_flag
  3703. CFLAGS="-g"
  3704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3705. /* end confdefs.h. */
  3706. int
  3707. main ()
  3708. {
  3709. ;
  3710. return 0;
  3711. }
  3712. _ACEOF
  3713. if ac_fn_c_try_compile "$LINENO"; then :
  3714. ac_cv_prog_cc_g=yes
  3715. fi
  3716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3717. fi
  3718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3719. fi
  3720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3721. ac_c_werror_flag=$ac_save_c_werror_flag
  3722. fi
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3724. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3725. if test "$ac_test_CFLAGS" = set; then
  3726. CFLAGS=$ac_save_CFLAGS
  3727. elif test $ac_cv_prog_cc_g = yes; then
  3728. if test "$GCC" = yes; then
  3729. CFLAGS="-g -O2"
  3730. else
  3731. CFLAGS="-g"
  3732. fi
  3733. else
  3734. if test "$GCC" = yes; then
  3735. CFLAGS="-O2"
  3736. else
  3737. CFLAGS=
  3738. fi
  3739. fi
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3741. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3742. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3743. $as_echo_n "(cached) " >&6
  3744. else
  3745. ac_cv_prog_cc_c89=no
  3746. ac_save_CC=$CC
  3747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3748. /* end confdefs.h. */
  3749. #include <stdarg.h>
  3750. #include <stdio.h>
  3751. #include <sys/types.h>
  3752. #include <sys/stat.h>
  3753. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3754. struct buf { int x; };
  3755. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3756. static char *e (p, i)
  3757. char **p;
  3758. int i;
  3759. {
  3760. return p[i];
  3761. }
  3762. static char *f (char * (*g) (char **, int), char **p, ...)
  3763. {
  3764. char *s;
  3765. va_list v;
  3766. va_start (v,p);
  3767. s = g (p, va_arg (v,int));
  3768. va_end (v);
  3769. return s;
  3770. }
  3771. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3772. function prototypes and stuff, but not '\xHH' hex character constants.
  3773. These don't provoke an error unfortunately, instead are silently treated
  3774. as 'x'. The following induces an error, until -std is added to get
  3775. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3776. array size at least. It's necessary to write '\x00'==0 to get something
  3777. that's true only with -std. */
  3778. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3779. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3780. inside strings and character constants. */
  3781. #define FOO(x) 'x'
  3782. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3783. int test (int i, double x);
  3784. struct s1 {int (*f) (int a);};
  3785. struct s2 {int (*f) (double a);};
  3786. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3787. int argc;
  3788. char **argv;
  3789. int
  3790. main ()
  3791. {
  3792. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3793. ;
  3794. return 0;
  3795. }
  3796. _ACEOF
  3797. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3798. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3799. do
  3800. CC="$ac_save_CC $ac_arg"
  3801. if ac_fn_c_try_compile "$LINENO"; then :
  3802. ac_cv_prog_cc_c89=$ac_arg
  3803. fi
  3804. rm -f core conftest.err conftest.$ac_objext
  3805. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3806. done
  3807. rm -f conftest.$ac_ext
  3808. CC=$ac_save_CC
  3809. fi
  3810. # AC_CACHE_VAL
  3811. case "x$ac_cv_prog_cc_c89" in
  3812. x)
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3814. $as_echo "none needed" >&6; } ;;
  3815. xno)
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3817. $as_echo "unsupported" >&6; } ;;
  3818. *)
  3819. CC="$CC $ac_cv_prog_cc_c89"
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3821. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3822. esac
  3823. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3824. fi
  3825. ac_ext=c
  3826. ac_cpp='$CPP $CPPFLAGS'
  3827. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3828. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3829. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3830. ac_aux_dir=
  3831. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3832. for ac_t in install-sh install.sh shtool; do
  3833. if test -f "$ac_dir/$ac_t"; then
  3834. ac_aux_dir=$ac_dir
  3835. ac_install_sh="$ac_aux_dir/$ac_t -c"
  3836. break 2
  3837. fi
  3838. done
  3839. done
  3840. if test -z "$ac_aux_dir"; then
  3841. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3842. fi
  3843. # These three variables are undocumented and unsupported,
  3844. # and are intended to be withdrawn in a future Autoconf release.
  3845. # They can cause serious problems if a builder's source tree is in a directory
  3846. # whose full name contains unusual characters.
  3847. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3848. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3849. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3850. # Make sure we can run config.sub.
  3851. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3852. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3854. $as_echo_n "checking build system type... " >&6; }
  3855. if test "${ac_cv_build+set}" = set; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. ac_build_alias=$build_alias
  3859. test "x$ac_build_alias" = x &&
  3860. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3861. test "x$ac_build_alias" = x &&
  3862. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3863. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3864. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3865. fi
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3867. $as_echo "$ac_cv_build" >&6; }
  3868. case $ac_cv_build in
  3869. *-*-*) ;;
  3870. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3871. esac
  3872. build=$ac_cv_build
  3873. ac_save_IFS=$IFS; IFS='-'
  3874. set x $ac_cv_build
  3875. shift
  3876. build_cpu=$1
  3877. build_vendor=$2
  3878. shift; shift
  3879. # Remember, the first character of IFS is used to create $*,
  3880. # except with old shells:
  3881. build_os=$*
  3882. IFS=$ac_save_IFS
  3883. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3885. $as_echo_n "checking host system type... " >&6; }
  3886. if test "${ac_cv_host+set}" = set; then :
  3887. $as_echo_n "(cached) " >&6
  3888. else
  3889. if test "x$host_alias" = x; then
  3890. ac_cv_host=$ac_cv_build
  3891. else
  3892. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3893. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3894. fi
  3895. fi
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3897. $as_echo "$ac_cv_host" >&6; }
  3898. case $ac_cv_host in
  3899. *-*-*) ;;
  3900. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3901. esac
  3902. host=$ac_cv_host
  3903. ac_save_IFS=$IFS; IFS='-'
  3904. set x $ac_cv_host
  3905. shift
  3906. host_cpu=$1
  3907. host_vendor=$2
  3908. shift; shift
  3909. # Remember, the first character of IFS is used to create $*,
  3910. # except with old shells:
  3911. host_os=$*
  3912. IFS=$ac_save_IFS
  3913. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3915. $as_echo_n "checking target system type... " >&6; }
  3916. if test "${ac_cv_target+set}" = set; then :
  3917. $as_echo_n "(cached) " >&6
  3918. else
  3919. if test "x$target_alias" = x; then
  3920. ac_cv_target=$ac_cv_host
  3921. else
  3922. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3923. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3924. fi
  3925. fi
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3927. $as_echo "$ac_cv_target" >&6; }
  3928. case $ac_cv_target in
  3929. *-*-*) ;;
  3930. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  3931. esac
  3932. target=$ac_cv_target
  3933. ac_save_IFS=$IFS; IFS='-'
  3934. set x $ac_cv_target
  3935. shift
  3936. target_cpu=$1
  3937. target_vendor=$2
  3938. shift; shift
  3939. # Remember, the first character of IFS is used to create $*,
  3940. # except with old shells:
  3941. target_os=$*
  3942. IFS=$ac_save_IFS
  3943. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3944. # The aliases save the names the user supplied, while $host etc.
  3945. # will get canonicalized.
  3946. test -n "$target_alias" &&
  3947. test "$program_prefix$program_suffix$program_transform_name" = \
  3948. NONENONEs,x,x, &&
  3949. program_prefix=${target_alias}-
  3950. ac_ext=c
  3951. ac_cpp='$CPP $CPPFLAGS'
  3952. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3953. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3954. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3956. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3957. # On Suns, sometimes $CPP names a directory.
  3958. if test -n "$CPP" && test -d "$CPP"; then
  3959. CPP=
  3960. fi
  3961. if test -z "$CPP"; then
  3962. if test "${ac_cv_prog_CPP+set}" = set; then :
  3963. $as_echo_n "(cached) " >&6
  3964. else
  3965. # Double quotes because CPP needs to be expanded
  3966. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3967. do
  3968. ac_preproc_ok=false
  3969. for ac_c_preproc_warn_flag in '' yes
  3970. do
  3971. # Use a header file that comes with gcc, so configuring glibc
  3972. # with a fresh cross-compiler works.
  3973. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3974. # <limits.h> exists even on freestanding compilers.
  3975. # On the NeXT, cc -E runs the code through the compiler's parser,
  3976. # not just through cpp. "Syntax error" is here to catch this case.
  3977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3978. /* end confdefs.h. */
  3979. #ifdef __STDC__
  3980. # include <limits.h>
  3981. #else
  3982. # include <assert.h>
  3983. #endif
  3984. Syntax error
  3985. _ACEOF
  3986. if ac_fn_c_try_cpp "$LINENO"; then :
  3987. else
  3988. # Broken: fails on valid input.
  3989. continue
  3990. fi
  3991. rm -f conftest.err conftest.$ac_ext
  3992. # OK, works on sane cases. Now check whether nonexistent headers
  3993. # can be detected and how.
  3994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3995. /* end confdefs.h. */
  3996. #include <ac_nonexistent.h>
  3997. _ACEOF
  3998. if ac_fn_c_try_cpp "$LINENO"; then :
  3999. # Broken: success on invalid input.
  4000. continue
  4001. else
  4002. # Passes both tests.
  4003. ac_preproc_ok=:
  4004. break
  4005. fi
  4006. rm -f conftest.err conftest.$ac_ext
  4007. done
  4008. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4009. rm -f conftest.err conftest.$ac_ext
  4010. if $ac_preproc_ok; then :
  4011. break
  4012. fi
  4013. done
  4014. ac_cv_prog_CPP=$CPP
  4015. fi
  4016. CPP=$ac_cv_prog_CPP
  4017. else
  4018. ac_cv_prog_CPP=$CPP
  4019. fi
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4021. $as_echo "$CPP" >&6; }
  4022. ac_preproc_ok=false
  4023. for ac_c_preproc_warn_flag in '' yes
  4024. do
  4025. # Use a header file that comes with gcc, so configuring glibc
  4026. # with a fresh cross-compiler works.
  4027. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4028. # <limits.h> exists even on freestanding compilers.
  4029. # On the NeXT, cc -E runs the code through the compiler's parser,
  4030. # not just through cpp. "Syntax error" is here to catch this case.
  4031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4032. /* end confdefs.h. */
  4033. #ifdef __STDC__
  4034. # include <limits.h>
  4035. #else
  4036. # include <assert.h>
  4037. #endif
  4038. Syntax error
  4039. _ACEOF
  4040. if ac_fn_c_try_cpp "$LINENO"; then :
  4041. else
  4042. # Broken: fails on valid input.
  4043. continue
  4044. fi
  4045. rm -f conftest.err conftest.$ac_ext
  4046. # OK, works on sane cases. Now check whether nonexistent headers
  4047. # can be detected and how.
  4048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4049. /* end confdefs.h. */
  4050. #include <ac_nonexistent.h>
  4051. _ACEOF
  4052. if ac_fn_c_try_cpp "$LINENO"; then :
  4053. # Broken: success on invalid input.
  4054. continue
  4055. else
  4056. # Passes both tests.
  4057. ac_preproc_ok=:
  4058. break
  4059. fi
  4060. rm -f conftest.err conftest.$ac_ext
  4061. done
  4062. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4063. rm -f conftest.err conftest.$ac_ext
  4064. if $ac_preproc_ok; then :
  4065. else
  4066. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4067. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4068. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4069. See \`config.log' for more details." "$LINENO" 5; }
  4070. fi
  4071. ac_ext=c
  4072. ac_cpp='$CPP $CPPFLAGS'
  4073. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4074. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4075. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4077. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4078. if test "${ac_cv_path_GREP+set}" = set; then :
  4079. $as_echo_n "(cached) " >&6
  4080. else
  4081. if test -z "$GREP"; then
  4082. ac_path_GREP_found=false
  4083. # Loop through the user's path and test for each of PROGNAME-LIST
  4084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4085. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4086. do
  4087. IFS=$as_save_IFS
  4088. test -z "$as_dir" && as_dir=.
  4089. for ac_prog in grep ggrep; do
  4090. for ac_exec_ext in '' $ac_executable_extensions; do
  4091. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4092. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4093. # Check for GNU ac_path_GREP and select it if it is found.
  4094. # Check for GNU $ac_path_GREP
  4095. case `"$ac_path_GREP" --version 2>&1` in
  4096. *GNU*)
  4097. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4098. *)
  4099. ac_count=0
  4100. $as_echo_n 0123456789 >"conftest.in"
  4101. while :
  4102. do
  4103. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4104. mv "conftest.tmp" "conftest.in"
  4105. cp "conftest.in" "conftest.nl"
  4106. $as_echo 'GREP' >> "conftest.nl"
  4107. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4108. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4109. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4110. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4111. # Best one so far, save it but keep looking for a better one
  4112. ac_cv_path_GREP="$ac_path_GREP"
  4113. ac_path_GREP_max=$ac_count
  4114. fi
  4115. # 10*(2^10) chars as input seems more than enough
  4116. test $ac_count -gt 10 && break
  4117. done
  4118. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4119. esac
  4120. $ac_path_GREP_found && break 3
  4121. done
  4122. done
  4123. done
  4124. IFS=$as_save_IFS
  4125. if test -z "$ac_cv_path_GREP"; then
  4126. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4127. fi
  4128. else
  4129. ac_cv_path_GREP=$GREP
  4130. fi
  4131. fi
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4133. $as_echo "$ac_cv_path_GREP" >&6; }
  4134. GREP="$ac_cv_path_GREP"
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4136. $as_echo_n "checking for egrep... " >&6; }
  4137. if test "${ac_cv_path_EGREP+set}" = set; then :
  4138. $as_echo_n "(cached) " >&6
  4139. else
  4140. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4141. then ac_cv_path_EGREP="$GREP -E"
  4142. else
  4143. if test -z "$EGREP"; then
  4144. ac_path_EGREP_found=false
  4145. # Loop through the user's path and test for each of PROGNAME-LIST
  4146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4147. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4148. do
  4149. IFS=$as_save_IFS
  4150. test -z "$as_dir" && as_dir=.
  4151. for ac_prog in egrep; do
  4152. for ac_exec_ext in '' $ac_executable_extensions; do
  4153. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4154. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4155. # Check for GNU ac_path_EGREP and select it if it is found.
  4156. # Check for GNU $ac_path_EGREP
  4157. case `"$ac_path_EGREP" --version 2>&1` in
  4158. *GNU*)
  4159. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4160. *)
  4161. ac_count=0
  4162. $as_echo_n 0123456789 >"conftest.in"
  4163. while :
  4164. do
  4165. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4166. mv "conftest.tmp" "conftest.in"
  4167. cp "conftest.in" "conftest.nl"
  4168. $as_echo 'EGREP' >> "conftest.nl"
  4169. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4170. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4171. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4172. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4173. # Best one so far, save it but keep looking for a better one
  4174. ac_cv_path_EGREP="$ac_path_EGREP"
  4175. ac_path_EGREP_max=$ac_count
  4176. fi
  4177. # 10*(2^10) chars as input seems more than enough
  4178. test $ac_count -gt 10 && break
  4179. done
  4180. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4181. esac
  4182. $ac_path_EGREP_found && break 3
  4183. done
  4184. done
  4185. done
  4186. IFS=$as_save_IFS
  4187. if test -z "$ac_cv_path_EGREP"; then
  4188. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4189. fi
  4190. else
  4191. ac_cv_path_EGREP=$EGREP
  4192. fi
  4193. fi
  4194. fi
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4196. $as_echo "$ac_cv_path_EGREP" >&6; }
  4197. EGREP="$ac_cv_path_EGREP"
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4199. $as_echo_n "checking for ANSI C header files... " >&6; }
  4200. if test "${ac_cv_header_stdc+set}" = set; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4204. /* end confdefs.h. */
  4205. #include <stdlib.h>
  4206. #include <stdarg.h>
  4207. #include <string.h>
  4208. #include <float.h>
  4209. int
  4210. main ()
  4211. {
  4212. ;
  4213. return 0;
  4214. }
  4215. _ACEOF
  4216. if ac_fn_c_try_compile "$LINENO"; then :
  4217. ac_cv_header_stdc=yes
  4218. else
  4219. ac_cv_header_stdc=no
  4220. fi
  4221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4222. if test $ac_cv_header_stdc = yes; then
  4223. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4225. /* end confdefs.h. */
  4226. #include <string.h>
  4227. _ACEOF
  4228. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4229. $EGREP "memchr" >/dev/null 2>&1; then :
  4230. else
  4231. ac_cv_header_stdc=no
  4232. fi
  4233. rm -f conftest*
  4234. fi
  4235. if test $ac_cv_header_stdc = yes; then
  4236. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4238. /* end confdefs.h. */
  4239. #include <stdlib.h>
  4240. _ACEOF
  4241. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4242. $EGREP "free" >/dev/null 2>&1; then :
  4243. else
  4244. ac_cv_header_stdc=no
  4245. fi
  4246. rm -f conftest*
  4247. fi
  4248. if test $ac_cv_header_stdc = yes; then
  4249. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4250. if test "$cross_compiling" = yes; then :
  4251. :
  4252. else
  4253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4254. /* end confdefs.h. */
  4255. #include <ctype.h>
  4256. #include <stdlib.h>
  4257. #if ((' ' & 0x0FF) == 0x020)
  4258. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4259. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4260. #else
  4261. # define ISLOWER(c) \
  4262. (('a' <= (c) && (c) <= 'i') \
  4263. || ('j' <= (c) && (c) <= 'r') \
  4264. || ('s' <= (c) && (c) <= 'z'))
  4265. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4266. #endif
  4267. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4268. int
  4269. main ()
  4270. {
  4271. int i;
  4272. for (i = 0; i < 256; i++)
  4273. if (XOR (islower (i), ISLOWER (i))
  4274. || toupper (i) != TOUPPER (i))
  4275. return 2;
  4276. return 0;
  4277. }
  4278. _ACEOF
  4279. if ac_fn_c_try_run "$LINENO"; then :
  4280. else
  4281. ac_cv_header_stdc=no
  4282. fi
  4283. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4284. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4285. fi
  4286. fi
  4287. fi
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4289. $as_echo "$ac_cv_header_stdc" >&6; }
  4290. if test $ac_cv_header_stdc = yes; then
  4291. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4292. fi
  4293. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4294. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4295. inttypes.h stdint.h unistd.h
  4296. do :
  4297. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4298. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4299. "
  4300. eval as_val=\$$as_ac_Header
  4301. if test "x$as_val" = x""yes; then :
  4302. cat >>confdefs.h <<_ACEOF
  4303. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4304. _ACEOF
  4305. fi
  4306. done
  4307. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4308. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4309. MINIX=yes
  4310. else
  4311. MINIX=
  4312. fi
  4313. if test "$MINIX" = yes; then
  4314. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4315. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4316. $as_echo "#define _MINIX 1" >>confdefs.h
  4317. fi
  4318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4319. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4320. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4321. $as_echo_n "(cached) " >&6
  4322. else
  4323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4324. /* end confdefs.h. */
  4325. # define __EXTENSIONS__ 1
  4326. $ac_includes_default
  4327. int
  4328. main ()
  4329. {
  4330. ;
  4331. return 0;
  4332. }
  4333. _ACEOF
  4334. if ac_fn_c_try_compile "$LINENO"; then :
  4335. ac_cv_safe_to_define___extensions__=yes
  4336. else
  4337. ac_cv_safe_to_define___extensions__=no
  4338. fi
  4339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4340. fi
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4342. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4343. test $ac_cv_safe_to_define___extensions__ = yes &&
  4344. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4345. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4346. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4347. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4348. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4349. test "$program_prefix" != NONE &&
  4350. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4351. # Use a double $ so make ignores it.
  4352. test "$program_suffix" != NONE &&
  4353. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4354. # Double any \ or $.
  4355. # By default was `s,x,x', remove it if useless.
  4356. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4357. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4358. # Find a good install program. We prefer a C program (faster),
  4359. # so one script is as good as another. But avoid the broken or
  4360. # incompatible versions:
  4361. # SysV /etc/install, /usr/sbin/install
  4362. # SunOS /usr/etc/install
  4363. # IRIX /sbin/install
  4364. # AIX /bin/install
  4365. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4366. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4367. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4368. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4369. # OS/2's system install, which has a completely different semantic
  4370. # ./install, which can be erroneously created by make from ./install.sh.
  4371. # Reject install programs that cannot install multiple files.
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4373. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4374. if test -z "$INSTALL"; then
  4375. if test "${ac_cv_path_install+set}" = set; then :
  4376. $as_echo_n "(cached) " >&6
  4377. else
  4378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4379. for as_dir in $PATH
  4380. do
  4381. IFS=$as_save_IFS
  4382. test -z "$as_dir" && as_dir=.
  4383. # Account for people who put trailing slashes in PATH elements.
  4384. case $as_dir/ in #((
  4385. ./ | .// | /[cC]/* | \
  4386. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4387. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4388. /usr/ucb/* ) ;;
  4389. *)
  4390. # OSF1 and SCO ODT 3.0 have their own names for install.
  4391. # Don't use installbsd from OSF since it installs stuff as root
  4392. # by default.
  4393. for ac_prog in ginstall scoinst install; do
  4394. for ac_exec_ext in '' $ac_executable_extensions; do
  4395. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4396. if test $ac_prog = install &&
  4397. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4398. # AIX install. It has an incompatible calling convention.
  4399. :
  4400. elif test $ac_prog = install &&
  4401. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4402. # program-specific install script used by HP pwplus--don't use.
  4403. :
  4404. else
  4405. rm -rf conftest.one conftest.two conftest.dir
  4406. echo one > conftest.one
  4407. echo two > conftest.two
  4408. mkdir conftest.dir
  4409. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4410. test -s conftest.one && test -s conftest.two &&
  4411. test -s conftest.dir/conftest.one &&
  4412. test -s conftest.dir/conftest.two
  4413. then
  4414. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4415. break 3
  4416. fi
  4417. fi
  4418. fi
  4419. done
  4420. done
  4421. ;;
  4422. esac
  4423. done
  4424. IFS=$as_save_IFS
  4425. rm -rf conftest.one conftest.two conftest.dir
  4426. fi
  4427. if test "${ac_cv_path_install+set}" = set; then
  4428. INSTALL=$ac_cv_path_install
  4429. else
  4430. # As a last resort, use the slow shell script. Don't cache a
  4431. # value for INSTALL within a source directory, because that will
  4432. # break other packages using the cache if that directory is
  4433. # removed, or if the value is a relative name.
  4434. INSTALL=$ac_install_sh
  4435. fi
  4436. fi
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4438. $as_echo "$INSTALL" >&6; }
  4439. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4440. # It thinks the first close brace ends the variable substitution.
  4441. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4442. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4443. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4444. rm -rf .tst 2>/dev/null
  4445. mkdir .tst 2>/dev/null
  4446. if test -d .tst; then
  4447. am__leading_dot=.
  4448. else
  4449. am__leading_dot=_
  4450. fi
  4451. rmdir .tst 2>/dev/null
  4452. DEPDIR="${am__leading_dot}deps"
  4453. case `pwd` in
  4454. *\ * | *\ *)
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4456. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4457. esac
  4458. macro_version='2.2.7a'
  4459. macro_revision='1.3134'
  4460. ltmain="$ac_aux_dir/ltmain.sh"
  4461. # Backslashify metacharacters that are still active within
  4462. # double-quoted strings.
  4463. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4464. # Same as above, but do not quote variable references.
  4465. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4466. # Sed substitution to delay expansion of an escaped shell variable in a
  4467. # double_quote_subst'ed string.
  4468. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4469. # Sed substitution to delay expansion of an escaped single quote.
  4470. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4471. # Sed substitution to avoid accidental globbing in evaled expressions
  4472. no_glob_subst='s/\*/\\\*/g'
  4473. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4474. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4475. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4477. $as_echo_n "checking how to print strings... " >&6; }
  4478. # Test print first, because it will be a builtin if present.
  4479. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4480. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4481. ECHO='print -r --'
  4482. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4483. ECHO='printf %s\n'
  4484. else
  4485. # Use this function as a fallback that always works.
  4486. func_fallback_echo ()
  4487. {
  4488. eval 'cat <<_LTECHO_EOF
  4489. $1
  4490. _LTECHO_EOF'
  4491. }
  4492. ECHO='func_fallback_echo'
  4493. fi
  4494. # func_echo_all arg...
  4495. # Invoke $ECHO with all args, space-separated.
  4496. func_echo_all ()
  4497. {
  4498. $ECHO ""
  4499. }
  4500. case "$ECHO" in
  4501. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4502. $as_echo "printf" >&6; } ;;
  4503. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4504. $as_echo "print -r" >&6; } ;;
  4505. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4506. $as_echo "cat" >&6; } ;;
  4507. esac
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4509. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4510. if test "${ac_cv_path_SED+set}" = set; then :
  4511. $as_echo_n "(cached) " >&6
  4512. else
  4513. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4514. for ac_i in 1 2 3 4 5 6 7; do
  4515. ac_script="$ac_script$as_nl$ac_script"
  4516. done
  4517. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4518. { ac_script=; unset ac_script;}
  4519. if test -z "$SED"; then
  4520. ac_path_SED_found=false
  4521. # Loop through the user's path and test for each of PROGNAME-LIST
  4522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4523. for as_dir in $PATH
  4524. do
  4525. IFS=$as_save_IFS
  4526. test -z "$as_dir" && as_dir=.
  4527. for ac_prog in sed gsed; do
  4528. for ac_exec_ext in '' $ac_executable_extensions; do
  4529. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4530. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4531. # Check for GNU ac_path_SED and select it if it is found.
  4532. # Check for GNU $ac_path_SED
  4533. case `"$ac_path_SED" --version 2>&1` in
  4534. *GNU*)
  4535. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4536. *)
  4537. ac_count=0
  4538. $as_echo_n 0123456789 >"conftest.in"
  4539. while :
  4540. do
  4541. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4542. mv "conftest.tmp" "conftest.in"
  4543. cp "conftest.in" "conftest.nl"
  4544. $as_echo '' >> "conftest.nl"
  4545. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4546. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4547. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4548. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4549. # Best one so far, save it but keep looking for a better one
  4550. ac_cv_path_SED="$ac_path_SED"
  4551. ac_path_SED_max=$ac_count
  4552. fi
  4553. # 10*(2^10) chars as input seems more than enough
  4554. test $ac_count -gt 10 && break
  4555. done
  4556. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4557. esac
  4558. $ac_path_SED_found && break 3
  4559. done
  4560. done
  4561. done
  4562. IFS=$as_save_IFS
  4563. if test -z "$ac_cv_path_SED"; then
  4564. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4565. fi
  4566. else
  4567. ac_cv_path_SED=$SED
  4568. fi
  4569. fi
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4571. $as_echo "$ac_cv_path_SED" >&6; }
  4572. SED="$ac_cv_path_SED"
  4573. rm -f conftest.sed
  4574. test -z "$SED" && SED=sed
  4575. Xsed="$SED -e 1s/^X//"
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4577. $as_echo_n "checking for fgrep... " >&6; }
  4578. if test "${ac_cv_path_FGREP+set}" = set; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4582. then ac_cv_path_FGREP="$GREP -F"
  4583. else
  4584. if test -z "$FGREP"; then
  4585. ac_path_FGREP_found=false
  4586. # Loop through the user's path and test for each of PROGNAME-LIST
  4587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4588. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4589. do
  4590. IFS=$as_save_IFS
  4591. test -z "$as_dir" && as_dir=.
  4592. for ac_prog in fgrep; do
  4593. for ac_exec_ext in '' $ac_executable_extensions; do
  4594. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4595. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4596. # Check for GNU ac_path_FGREP and select it if it is found.
  4597. # Check for GNU $ac_path_FGREP
  4598. case `"$ac_path_FGREP" --version 2>&1` in
  4599. *GNU*)
  4600. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4601. *)
  4602. ac_count=0
  4603. $as_echo_n 0123456789 >"conftest.in"
  4604. while :
  4605. do
  4606. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4607. mv "conftest.tmp" "conftest.in"
  4608. cp "conftest.in" "conftest.nl"
  4609. $as_echo 'FGREP' >> "conftest.nl"
  4610. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4611. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4612. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4613. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4614. # Best one so far, save it but keep looking for a better one
  4615. ac_cv_path_FGREP="$ac_path_FGREP"
  4616. ac_path_FGREP_max=$ac_count
  4617. fi
  4618. # 10*(2^10) chars as input seems more than enough
  4619. test $ac_count -gt 10 && break
  4620. done
  4621. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4622. esac
  4623. $ac_path_FGREP_found && break 3
  4624. done
  4625. done
  4626. done
  4627. IFS=$as_save_IFS
  4628. if test -z "$ac_cv_path_FGREP"; then
  4629. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4630. fi
  4631. else
  4632. ac_cv_path_FGREP=$FGREP
  4633. fi
  4634. fi
  4635. fi
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4637. $as_echo "$ac_cv_path_FGREP" >&6; }
  4638. FGREP="$ac_cv_path_FGREP"
  4639. test -z "$GREP" && GREP=grep
  4640. # Check whether --with-gnu-ld was given.
  4641. if test "${with_gnu_ld+set}" = set; then :
  4642. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4643. else
  4644. with_gnu_ld=no
  4645. fi
  4646. ac_prog=ld
  4647. if test "$GCC" = yes; then
  4648. # Check if gcc -print-prog-name=ld gives a path.
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4650. $as_echo_n "checking for ld used by $CC... " >&6; }
  4651. case $host in
  4652. *-*-mingw*)
  4653. # gcc leaves a trailing carriage return which upsets mingw
  4654. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4655. *)
  4656. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4657. esac
  4658. case $ac_prog in
  4659. # Accept absolute paths.
  4660. [\\/]* | ?:[\\/]*)
  4661. re_direlt='/[^/][^/]*/\.\./'
  4662. # Canonicalize the pathname of ld
  4663. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4664. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4665. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4666. done
  4667. test -z "$LD" && LD="$ac_prog"
  4668. ;;
  4669. "")
  4670. # If it fails, then pretend we aren't using GCC.
  4671. ac_prog=ld
  4672. ;;
  4673. *)
  4674. # If it is relative, then search for the first ld in PATH.
  4675. with_gnu_ld=unknown
  4676. ;;
  4677. esac
  4678. elif test "$with_gnu_ld" = yes; then
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4680. $as_echo_n "checking for GNU ld... " >&6; }
  4681. else
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4683. $as_echo_n "checking for non-GNU ld... " >&6; }
  4684. fi
  4685. if test "${lt_cv_path_LD+set}" = set; then :
  4686. $as_echo_n "(cached) " >&6
  4687. else
  4688. if test -z "$LD"; then
  4689. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4690. for ac_dir in $PATH; do
  4691. IFS="$lt_save_ifs"
  4692. test -z "$ac_dir" && ac_dir=.
  4693. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4694. lt_cv_path_LD="$ac_dir/$ac_prog"
  4695. # Check to see if the program is GNU ld. I'd rather use --version,
  4696. # but apparently some variants of GNU ld only accept -v.
  4697. # Break only if it was the GNU/non-GNU ld that we prefer.
  4698. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4699. *GNU* | *'with BFD'*)
  4700. test "$with_gnu_ld" != no && break
  4701. ;;
  4702. *)
  4703. test "$with_gnu_ld" != yes && break
  4704. ;;
  4705. esac
  4706. fi
  4707. done
  4708. IFS="$lt_save_ifs"
  4709. else
  4710. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4711. fi
  4712. fi
  4713. LD="$lt_cv_path_LD"
  4714. if test -n "$LD"; then
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4716. $as_echo "$LD" >&6; }
  4717. else
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4719. $as_echo "no" >&6; }
  4720. fi
  4721. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4723. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4724. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4725. $as_echo_n "(cached) " >&6
  4726. else
  4727. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4728. case `$LD -v 2>&1 </dev/null` in
  4729. *GNU* | *'with BFD'*)
  4730. lt_cv_prog_gnu_ld=yes
  4731. ;;
  4732. *)
  4733. lt_cv_prog_gnu_ld=no
  4734. ;;
  4735. esac
  4736. fi
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4738. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4739. with_gnu_ld=$lt_cv_prog_gnu_ld
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4741. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4742. if test "${lt_cv_path_NM+set}" = set; then :
  4743. $as_echo_n "(cached) " >&6
  4744. else
  4745. if test -n "$NM"; then
  4746. # Let the user override the test.
  4747. lt_cv_path_NM="$NM"
  4748. else
  4749. lt_nm_to_check="${ac_tool_prefix}nm"
  4750. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4751. lt_nm_to_check="$lt_nm_to_check nm"
  4752. fi
  4753. for lt_tmp_nm in $lt_nm_to_check; do
  4754. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4755. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4756. IFS="$lt_save_ifs"
  4757. test -z "$ac_dir" && ac_dir=.
  4758. tmp_nm="$ac_dir/$lt_tmp_nm"
  4759. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4760. # Check to see if the nm accepts a BSD-compat flag.
  4761. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4762. # nm: unknown option "B" ignored
  4763. # Tru64's nm complains that /dev/null is an invalid object file
  4764. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4765. */dev/null* | *'Invalid file or object type'*)
  4766. lt_cv_path_NM="$tmp_nm -B"
  4767. break
  4768. ;;
  4769. *)
  4770. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4771. */dev/null*)
  4772. lt_cv_path_NM="$tmp_nm -p"
  4773. break
  4774. ;;
  4775. *)
  4776. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4777. continue # so that we can try to find one that supports BSD flags
  4778. ;;
  4779. esac
  4780. ;;
  4781. esac
  4782. fi
  4783. done
  4784. IFS="$lt_save_ifs"
  4785. done
  4786. : ${lt_cv_path_NM=no}
  4787. fi
  4788. fi
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4790. $as_echo "$lt_cv_path_NM" >&6; }
  4791. if test "$lt_cv_path_NM" != "no"; then
  4792. NM="$lt_cv_path_NM"
  4793. else
  4794. # Didn't find any BSD compatible name lister, look for dumpbin.
  4795. if test -n "$DUMPBIN"; then :
  4796. # Let the user override the test.
  4797. else
  4798. if test -n "$ac_tool_prefix"; then
  4799. for ac_prog in dumpbin "link -dump"
  4800. do
  4801. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4802. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4804. $as_echo_n "checking for $ac_word... " >&6; }
  4805. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4806. $as_echo_n "(cached) " >&6
  4807. else
  4808. if test -n "$DUMPBIN"; then
  4809. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4810. else
  4811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4812. for as_dir in $PATH
  4813. do
  4814. IFS=$as_save_IFS
  4815. test -z "$as_dir" && as_dir=.
  4816. for ac_exec_ext in '' $ac_executable_extensions; do
  4817. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4818. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4820. break 2
  4821. fi
  4822. done
  4823. done
  4824. IFS=$as_save_IFS
  4825. fi
  4826. fi
  4827. DUMPBIN=$ac_cv_prog_DUMPBIN
  4828. if test -n "$DUMPBIN"; then
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4830. $as_echo "$DUMPBIN" >&6; }
  4831. else
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4833. $as_echo "no" >&6; }
  4834. fi
  4835. test -n "$DUMPBIN" && break
  4836. done
  4837. fi
  4838. if test -z "$DUMPBIN"; then
  4839. ac_ct_DUMPBIN=$DUMPBIN
  4840. for ac_prog in dumpbin "link -dump"
  4841. do
  4842. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4843. set dummy $ac_prog; ac_word=$2
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4845. $as_echo_n "checking for $ac_word... " >&6; }
  4846. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4847. $as_echo_n "(cached) " >&6
  4848. else
  4849. if test -n "$ac_ct_DUMPBIN"; then
  4850. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4851. else
  4852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4853. for as_dir in $PATH
  4854. do
  4855. IFS=$as_save_IFS
  4856. test -z "$as_dir" && as_dir=.
  4857. for ac_exec_ext in '' $ac_executable_extensions; do
  4858. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4859. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4861. break 2
  4862. fi
  4863. done
  4864. done
  4865. IFS=$as_save_IFS
  4866. fi
  4867. fi
  4868. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4869. if test -n "$ac_ct_DUMPBIN"; then
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4871. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4872. else
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4874. $as_echo "no" >&6; }
  4875. fi
  4876. test -n "$ac_ct_DUMPBIN" && break
  4877. done
  4878. if test "x$ac_ct_DUMPBIN" = x; then
  4879. DUMPBIN=":"
  4880. else
  4881. case $cross_compiling:$ac_tool_warned in
  4882. yes:)
  4883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4884. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4885. ac_tool_warned=yes ;;
  4886. esac
  4887. DUMPBIN=$ac_ct_DUMPBIN
  4888. fi
  4889. fi
  4890. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4891. *COFF*)
  4892. DUMPBIN="$DUMPBIN -symbols"
  4893. ;;
  4894. *)
  4895. DUMPBIN=:
  4896. ;;
  4897. esac
  4898. fi
  4899. if test "$DUMPBIN" != ":"; then
  4900. NM="$DUMPBIN"
  4901. fi
  4902. fi
  4903. test -z "$NM" && NM=nm
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4905. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4906. if test "${lt_cv_nm_interface+set}" = set; then :
  4907. $as_echo_n "(cached) " >&6
  4908. else
  4909. lt_cv_nm_interface="BSD nm"
  4910. echo "int some_variable = 0;" > conftest.$ac_ext
  4911. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4912. (eval "$ac_compile" 2>conftest.err)
  4913. cat conftest.err >&5
  4914. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4915. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4916. cat conftest.err >&5
  4917. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4918. cat conftest.out >&5
  4919. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4920. lt_cv_nm_interface="MS dumpbin"
  4921. fi
  4922. rm -f conftest*
  4923. fi
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4925. $as_echo "$lt_cv_nm_interface" >&6; }
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4927. $as_echo_n "checking whether ln -s works... " >&6; }
  4928. LN_S=$as_ln_s
  4929. if test "$LN_S" = "ln -s"; then
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4931. $as_echo "yes" >&6; }
  4932. else
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4934. $as_echo "no, using $LN_S" >&6; }
  4935. fi
  4936. # find the maximum length of command line arguments
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4938. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4939. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4940. $as_echo_n "(cached) " >&6
  4941. else
  4942. i=0
  4943. teststring="ABCD"
  4944. case $build_os in
  4945. msdosdjgpp*)
  4946. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4947. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4948. # during glob expansion). Even if it were fixed, the result of this
  4949. # check would be larger than it should be.
  4950. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4951. ;;
  4952. gnu*)
  4953. # Under GNU Hurd, this test is not required because there is
  4954. # no limit to the length of command line arguments.
  4955. # Libtool will interpret -1 as no limit whatsoever
  4956. lt_cv_sys_max_cmd_len=-1;
  4957. ;;
  4958. cygwin* | mingw* | cegcc*)
  4959. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4960. # about 5 minutes as the teststring grows exponentially.
  4961. # Worse, since 9x/ME are not pre-emptively multitasking,
  4962. # you end up with a "frozen" computer, even though with patience
  4963. # the test eventually succeeds (with a max line length of 256k).
  4964. # Instead, let's just punt: use the minimum linelength reported by
  4965. # all of the supported platforms: 8192 (on NT/2K/XP).
  4966. lt_cv_sys_max_cmd_len=8192;
  4967. ;;
  4968. mint*)
  4969. # On MiNT this can take a long time and run out of memory.
  4970. lt_cv_sys_max_cmd_len=8192;
  4971. ;;
  4972. amigaos*)
  4973. # On AmigaOS with pdksh, this test takes hours, literally.
  4974. # So we just punt and use a minimum line length of 8192.
  4975. lt_cv_sys_max_cmd_len=8192;
  4976. ;;
  4977. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4978. # This has been around since 386BSD, at least. Likely further.
  4979. if test -x /sbin/sysctl; then
  4980. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4981. elif test -x /usr/sbin/sysctl; then
  4982. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4983. else
  4984. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4985. fi
  4986. # And add a safety zone
  4987. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4988. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4989. ;;
  4990. interix*)
  4991. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4992. lt_cv_sys_max_cmd_len=196608
  4993. ;;
  4994. osf*)
  4995. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4996. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4997. # nice to cause kernel panics so lets avoid the loop below.
  4998. # First set a reasonable default.
  4999. lt_cv_sys_max_cmd_len=16384
  5000. #
  5001. if test -x /sbin/sysconfig; then
  5002. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5003. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5004. esac
  5005. fi
  5006. ;;
  5007. sco3.2v5*)
  5008. lt_cv_sys_max_cmd_len=102400
  5009. ;;
  5010. sysv5* | sco5v6* | sysv4.2uw2*)
  5011. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5012. if test -n "$kargmax"; then
  5013. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5014. else
  5015. lt_cv_sys_max_cmd_len=32768
  5016. fi
  5017. ;;
  5018. *)
  5019. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5020. if test -n "$lt_cv_sys_max_cmd_len"; then
  5021. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5022. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5023. else
  5024. # Make teststring a little bigger before we do anything with it.
  5025. # a 1K string should be a reasonable start.
  5026. for i in 1 2 3 4 5 6 7 8 ; do
  5027. teststring=$teststring$teststring
  5028. done
  5029. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5030. # If test is not a shell built-in, we'll probably end up computing a
  5031. # maximum length that is only half of the actual maximum length, but
  5032. # we can't tell.
  5033. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5034. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5035. test $i != 17 # 1/2 MB should be enough
  5036. do
  5037. i=`expr $i + 1`
  5038. teststring=$teststring$teststring
  5039. done
  5040. # Only check the string length outside the loop.
  5041. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5042. teststring=
  5043. # Add a significant safety factor because C++ compilers can tack on
  5044. # massive amounts of additional arguments before passing them to the
  5045. # linker. It appears as though 1/2 is a usable value.
  5046. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5047. fi
  5048. ;;
  5049. esac
  5050. fi
  5051. if test -n $lt_cv_sys_max_cmd_len ; then
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5053. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5054. else
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5056. $as_echo "none" >&6; }
  5057. fi
  5058. max_cmd_len=$lt_cv_sys_max_cmd_len
  5059. : ${CP="cp -f"}
  5060. : ${MV="mv -f"}
  5061. : ${RM="rm -f"}
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5063. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5064. # Try some XSI features
  5065. xsi_shell=no
  5066. ( _lt_dummy="a/b/c"
  5067. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5068. = c,a/b,, \
  5069. && eval 'test $(( 1 + 1 )) -eq 2 \
  5070. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5071. && xsi_shell=yes
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5073. $as_echo "$xsi_shell" >&6; }
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5075. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5076. lt_shell_append=no
  5077. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5078. >/dev/null 2>&1 \
  5079. && lt_shell_append=yes
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5081. $as_echo "$lt_shell_append" >&6; }
  5082. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5083. lt_unset=unset
  5084. else
  5085. lt_unset=false
  5086. fi
  5087. # test EBCDIC or ASCII
  5088. case `echo X|tr X '\101'` in
  5089. A) # ASCII based system
  5090. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5091. lt_SP2NL='tr \040 \012'
  5092. lt_NL2SP='tr \015\012 \040\040'
  5093. ;;
  5094. *) # EBCDIC based system
  5095. lt_SP2NL='tr \100 \n'
  5096. lt_NL2SP='tr \r\n \100\100'
  5097. ;;
  5098. esac
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5100. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5101. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5102. $as_echo_n "(cached) " >&6
  5103. else
  5104. lt_cv_ld_reload_flag='-r'
  5105. fi
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5107. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5108. reload_flag=$lt_cv_ld_reload_flag
  5109. case $reload_flag in
  5110. "" | " "*) ;;
  5111. *) reload_flag=" $reload_flag" ;;
  5112. esac
  5113. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5114. case $host_os in
  5115. darwin*)
  5116. if test "$GCC" = yes; then
  5117. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5118. else
  5119. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5120. fi
  5121. ;;
  5122. esac
  5123. if test -n "$ac_tool_prefix"; then
  5124. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5125. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5127. $as_echo_n "checking for $ac_word... " >&6; }
  5128. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5129. $as_echo_n "(cached) " >&6
  5130. else
  5131. if test -n "$OBJDUMP"; then
  5132. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5133. else
  5134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5135. for as_dir in $PATH
  5136. do
  5137. IFS=$as_save_IFS
  5138. test -z "$as_dir" && as_dir=.
  5139. for ac_exec_ext in '' $ac_executable_extensions; do
  5140. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5141. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5142. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5143. break 2
  5144. fi
  5145. done
  5146. done
  5147. IFS=$as_save_IFS
  5148. fi
  5149. fi
  5150. OBJDUMP=$ac_cv_prog_OBJDUMP
  5151. if test -n "$OBJDUMP"; then
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5153. $as_echo "$OBJDUMP" >&6; }
  5154. else
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5156. $as_echo "no" >&6; }
  5157. fi
  5158. fi
  5159. if test -z "$ac_cv_prog_OBJDUMP"; then
  5160. ac_ct_OBJDUMP=$OBJDUMP
  5161. # Extract the first word of "objdump", so it can be a program name with args.
  5162. set dummy objdump; ac_word=$2
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5164. $as_echo_n "checking for $ac_word... " >&6; }
  5165. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5166. $as_echo_n "(cached) " >&6
  5167. else
  5168. if test -n "$ac_ct_OBJDUMP"; then
  5169. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5170. else
  5171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5172. for as_dir in $PATH
  5173. do
  5174. IFS=$as_save_IFS
  5175. test -z "$as_dir" && as_dir=.
  5176. for ac_exec_ext in '' $ac_executable_extensions; do
  5177. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5178. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5180. break 2
  5181. fi
  5182. done
  5183. done
  5184. IFS=$as_save_IFS
  5185. fi
  5186. fi
  5187. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5188. if test -n "$ac_ct_OBJDUMP"; then
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5190. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5191. else
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5193. $as_echo "no" >&6; }
  5194. fi
  5195. if test "x$ac_ct_OBJDUMP" = x; then
  5196. OBJDUMP="false"
  5197. else
  5198. case $cross_compiling:$ac_tool_warned in
  5199. yes:)
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5201. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5202. ac_tool_warned=yes ;;
  5203. esac
  5204. OBJDUMP=$ac_ct_OBJDUMP
  5205. fi
  5206. else
  5207. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5208. fi
  5209. test -z "$OBJDUMP" && OBJDUMP=objdump
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5211. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5212. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5213. $as_echo_n "(cached) " >&6
  5214. else
  5215. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5216. lt_cv_file_magic_test_file=
  5217. lt_cv_deplibs_check_method='unknown'
  5218. # Need to set the preceding variable on all platforms that support
  5219. # interlibrary dependencies.
  5220. # 'none' -- dependencies not supported.
  5221. # `unknown' -- same as none, but documents that we really don't know.
  5222. # 'pass_all' -- all dependencies passed with no checks.
  5223. # 'test_compile' -- check by making test program.
  5224. # 'file_magic [[regex]]' -- check by looking for files in library path
  5225. # which responds to the $file_magic_cmd with a given extended regex.
  5226. # If you have `file' or equivalent on your system and you're not sure
  5227. # whether `pass_all' will *always* work, you probably want this one.
  5228. case $host_os in
  5229. aix[4-9]*)
  5230. lt_cv_deplibs_check_method=pass_all
  5231. ;;
  5232. beos*)
  5233. lt_cv_deplibs_check_method=pass_all
  5234. ;;
  5235. bsdi[45]*)
  5236. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5237. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5238. lt_cv_file_magic_test_file=/shlib/libc.so
  5239. ;;
  5240. cygwin*)
  5241. # func_win32_libid is a shell function defined in ltmain.sh
  5242. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5243. lt_cv_file_magic_cmd='func_win32_libid'
  5244. ;;
  5245. mingw* | pw32*)
  5246. # Base MSYS/MinGW do not provide the 'file' command needed by
  5247. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5248. # unless we find 'file', for example because we are cross-compiling.
  5249. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5250. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5251. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5252. lt_cv_file_magic_cmd='func_win32_libid'
  5253. else
  5254. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5255. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5256. fi
  5257. ;;
  5258. cegcc*)
  5259. # use the weaker test based on 'objdump'. See mingw*.
  5260. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5261. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5262. ;;
  5263. darwin* | rhapsody*)
  5264. lt_cv_deplibs_check_method=pass_all
  5265. ;;
  5266. freebsd* | dragonfly*)
  5267. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5268. case $host_cpu in
  5269. i*86 )
  5270. # Not sure whether the presence of OpenBSD here was a mistake.
  5271. # Let's accept both of them until this is cleared up.
  5272. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5273. lt_cv_file_magic_cmd=/usr/bin/file
  5274. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5275. ;;
  5276. esac
  5277. else
  5278. lt_cv_deplibs_check_method=pass_all
  5279. fi
  5280. ;;
  5281. gnu*)
  5282. lt_cv_deplibs_check_method=pass_all
  5283. ;;
  5284. haiku*)
  5285. lt_cv_deplibs_check_method=pass_all
  5286. ;;
  5287. hpux10.20* | hpux11*)
  5288. lt_cv_file_magic_cmd=/usr/bin/file
  5289. case $host_cpu in
  5290. ia64*)
  5291. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5292. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5293. ;;
  5294. hppa*64*)
  5295. 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]'
  5296. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5297. ;;
  5298. *)
  5299. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5300. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5301. ;;
  5302. esac
  5303. ;;
  5304. interix[3-9]*)
  5305. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5306. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5307. ;;
  5308. irix5* | irix6* | nonstopux*)
  5309. case $LD in
  5310. *-32|*"-32 ") libmagic=32-bit;;
  5311. *-n32|*"-n32 ") libmagic=N32;;
  5312. *-64|*"-64 ") libmagic=64-bit;;
  5313. *) libmagic=never-match;;
  5314. esac
  5315. lt_cv_deplibs_check_method=pass_all
  5316. ;;
  5317. # This must be Linux ELF.
  5318. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5319. lt_cv_deplibs_check_method=pass_all
  5320. ;;
  5321. netbsd*)
  5322. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5323. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5324. else
  5325. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5326. fi
  5327. ;;
  5328. newos6*)
  5329. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5330. lt_cv_file_magic_cmd=/usr/bin/file
  5331. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5332. ;;
  5333. *nto* | *qnx*)
  5334. lt_cv_deplibs_check_method=pass_all
  5335. ;;
  5336. openbsd*)
  5337. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5338. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5339. else
  5340. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5341. fi
  5342. ;;
  5343. osf3* | osf4* | osf5*)
  5344. lt_cv_deplibs_check_method=pass_all
  5345. ;;
  5346. rdos*)
  5347. lt_cv_deplibs_check_method=pass_all
  5348. ;;
  5349. solaris*)
  5350. lt_cv_deplibs_check_method=pass_all
  5351. ;;
  5352. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5353. lt_cv_deplibs_check_method=pass_all
  5354. ;;
  5355. sysv4 | sysv4.3*)
  5356. case $host_vendor in
  5357. motorola)
  5358. 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]'
  5359. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5360. ;;
  5361. ncr)
  5362. lt_cv_deplibs_check_method=pass_all
  5363. ;;
  5364. sequent)
  5365. lt_cv_file_magic_cmd='/bin/file'
  5366. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5367. ;;
  5368. sni)
  5369. lt_cv_file_magic_cmd='/bin/file'
  5370. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5371. lt_cv_file_magic_test_file=/lib/libc.so
  5372. ;;
  5373. siemens)
  5374. lt_cv_deplibs_check_method=pass_all
  5375. ;;
  5376. pc)
  5377. lt_cv_deplibs_check_method=pass_all
  5378. ;;
  5379. esac
  5380. ;;
  5381. tpf*)
  5382. lt_cv_deplibs_check_method=pass_all
  5383. ;;
  5384. esac
  5385. fi
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5387. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5388. file_magic_cmd=$lt_cv_file_magic_cmd
  5389. deplibs_check_method=$lt_cv_deplibs_check_method
  5390. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5391. if test -n "$ac_tool_prefix"; then
  5392. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5393. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5395. $as_echo_n "checking for $ac_word... " >&6; }
  5396. if test "${ac_cv_prog_AR+set}" = set; then :
  5397. $as_echo_n "(cached) " >&6
  5398. else
  5399. if test -n "$AR"; then
  5400. ac_cv_prog_AR="$AR" # Let the user override the test.
  5401. else
  5402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5403. for as_dir in $PATH
  5404. do
  5405. IFS=$as_save_IFS
  5406. test -z "$as_dir" && as_dir=.
  5407. for ac_exec_ext in '' $ac_executable_extensions; do
  5408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5409. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5411. break 2
  5412. fi
  5413. done
  5414. done
  5415. IFS=$as_save_IFS
  5416. fi
  5417. fi
  5418. AR=$ac_cv_prog_AR
  5419. if test -n "$AR"; then
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5421. $as_echo "$AR" >&6; }
  5422. else
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5424. $as_echo "no" >&6; }
  5425. fi
  5426. fi
  5427. if test -z "$ac_cv_prog_AR"; then
  5428. ac_ct_AR=$AR
  5429. # Extract the first word of "ar", so it can be a program name with args.
  5430. set dummy ar; ac_word=$2
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5432. $as_echo_n "checking for $ac_word... " >&6; }
  5433. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5434. $as_echo_n "(cached) " >&6
  5435. else
  5436. if test -n "$ac_ct_AR"; then
  5437. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5438. else
  5439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5440. for as_dir in $PATH
  5441. do
  5442. IFS=$as_save_IFS
  5443. test -z "$as_dir" && as_dir=.
  5444. for ac_exec_ext in '' $ac_executable_extensions; do
  5445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5446. ac_cv_prog_ac_ct_AR="ar"
  5447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5448. break 2
  5449. fi
  5450. done
  5451. done
  5452. IFS=$as_save_IFS
  5453. fi
  5454. fi
  5455. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5456. if test -n "$ac_ct_AR"; then
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5458. $as_echo "$ac_ct_AR" >&6; }
  5459. else
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5461. $as_echo "no" >&6; }
  5462. fi
  5463. if test "x$ac_ct_AR" = x; then
  5464. AR="false"
  5465. else
  5466. case $cross_compiling:$ac_tool_warned in
  5467. yes:)
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5469. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5470. ac_tool_warned=yes ;;
  5471. esac
  5472. AR=$ac_ct_AR
  5473. fi
  5474. else
  5475. AR="$ac_cv_prog_AR"
  5476. fi
  5477. test -z "$AR" && AR=ar
  5478. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5479. if test -n "$ac_tool_prefix"; then
  5480. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5481. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5483. $as_echo_n "checking for $ac_word... " >&6; }
  5484. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5485. $as_echo_n "(cached) " >&6
  5486. else
  5487. if test -n "$STRIP"; then
  5488. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5489. else
  5490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5491. for as_dir in $PATH
  5492. do
  5493. IFS=$as_save_IFS
  5494. test -z "$as_dir" && as_dir=.
  5495. for ac_exec_ext in '' $ac_executable_extensions; do
  5496. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5497. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5499. break 2
  5500. fi
  5501. done
  5502. done
  5503. IFS=$as_save_IFS
  5504. fi
  5505. fi
  5506. STRIP=$ac_cv_prog_STRIP
  5507. if test -n "$STRIP"; then
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5509. $as_echo "$STRIP" >&6; }
  5510. else
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5512. $as_echo "no" >&6; }
  5513. fi
  5514. fi
  5515. if test -z "$ac_cv_prog_STRIP"; then
  5516. ac_ct_STRIP=$STRIP
  5517. # Extract the first word of "strip", so it can be a program name with args.
  5518. set dummy strip; ac_word=$2
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5520. $as_echo_n "checking for $ac_word... " >&6; }
  5521. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5522. $as_echo_n "(cached) " >&6
  5523. else
  5524. if test -n "$ac_ct_STRIP"; then
  5525. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5526. else
  5527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5528. for as_dir in $PATH
  5529. do
  5530. IFS=$as_save_IFS
  5531. test -z "$as_dir" && as_dir=.
  5532. for ac_exec_ext in '' $ac_executable_extensions; do
  5533. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5534. ac_cv_prog_ac_ct_STRIP="strip"
  5535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5536. break 2
  5537. fi
  5538. done
  5539. done
  5540. IFS=$as_save_IFS
  5541. fi
  5542. fi
  5543. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5544. if test -n "$ac_ct_STRIP"; then
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5546. $as_echo "$ac_ct_STRIP" >&6; }
  5547. else
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5549. $as_echo "no" >&6; }
  5550. fi
  5551. if test "x$ac_ct_STRIP" = x; then
  5552. STRIP=":"
  5553. else
  5554. case $cross_compiling:$ac_tool_warned in
  5555. yes:)
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5557. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5558. ac_tool_warned=yes ;;
  5559. esac
  5560. STRIP=$ac_ct_STRIP
  5561. fi
  5562. else
  5563. STRIP="$ac_cv_prog_STRIP"
  5564. fi
  5565. test -z "$STRIP" && STRIP=:
  5566. if test -n "$ac_tool_prefix"; then
  5567. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5568. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5570. $as_echo_n "checking for $ac_word... " >&6; }
  5571. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5572. $as_echo_n "(cached) " >&6
  5573. else
  5574. if test -n "$RANLIB"; then
  5575. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5576. else
  5577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5578. for as_dir in $PATH
  5579. do
  5580. IFS=$as_save_IFS
  5581. test -z "$as_dir" && as_dir=.
  5582. for ac_exec_ext in '' $ac_executable_extensions; do
  5583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5584. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5586. break 2
  5587. fi
  5588. done
  5589. done
  5590. IFS=$as_save_IFS
  5591. fi
  5592. fi
  5593. RANLIB=$ac_cv_prog_RANLIB
  5594. if test -n "$RANLIB"; then
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5596. $as_echo "$RANLIB" >&6; }
  5597. else
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5599. $as_echo "no" >&6; }
  5600. fi
  5601. fi
  5602. if test -z "$ac_cv_prog_RANLIB"; then
  5603. ac_ct_RANLIB=$RANLIB
  5604. # Extract the first word of "ranlib", so it can be a program name with args.
  5605. set dummy ranlib; ac_word=$2
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5607. $as_echo_n "checking for $ac_word... " >&6; }
  5608. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5609. $as_echo_n "(cached) " >&6
  5610. else
  5611. if test -n "$ac_ct_RANLIB"; then
  5612. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5613. else
  5614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5615. for as_dir in $PATH
  5616. do
  5617. IFS=$as_save_IFS
  5618. test -z "$as_dir" && as_dir=.
  5619. for ac_exec_ext in '' $ac_executable_extensions; do
  5620. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5621. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5623. break 2
  5624. fi
  5625. done
  5626. done
  5627. IFS=$as_save_IFS
  5628. fi
  5629. fi
  5630. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5631. if test -n "$ac_ct_RANLIB"; then
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5633. $as_echo "$ac_ct_RANLIB" >&6; }
  5634. else
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5636. $as_echo "no" >&6; }
  5637. fi
  5638. if test "x$ac_ct_RANLIB" = x; then
  5639. RANLIB=":"
  5640. else
  5641. case $cross_compiling:$ac_tool_warned in
  5642. yes:)
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5645. ac_tool_warned=yes ;;
  5646. esac
  5647. RANLIB=$ac_ct_RANLIB
  5648. fi
  5649. else
  5650. RANLIB="$ac_cv_prog_RANLIB"
  5651. fi
  5652. test -z "$RANLIB" && RANLIB=:
  5653. # Determine commands to create old-style static archives.
  5654. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5655. old_postinstall_cmds='chmod 644 $oldlib'
  5656. old_postuninstall_cmds=
  5657. if test -n "$RANLIB"; then
  5658. case $host_os in
  5659. openbsd*)
  5660. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5661. ;;
  5662. *)
  5663. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5664. ;;
  5665. esac
  5666. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5667. fi
  5668. case $host_os in
  5669. darwin*)
  5670. lock_old_archive_extraction=yes ;;
  5671. *)
  5672. lock_old_archive_extraction=no ;;
  5673. esac
  5674. for ac_prog in gawk mawk nawk awk
  5675. do
  5676. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5677. set dummy $ac_prog; ac_word=$2
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5679. $as_echo_n "checking for $ac_word... " >&6; }
  5680. if test "${ac_cv_prog_AWK+set}" = set; then :
  5681. $as_echo_n "(cached) " >&6
  5682. else
  5683. if test -n "$AWK"; then
  5684. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5685. else
  5686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5687. for as_dir in $PATH
  5688. do
  5689. IFS=$as_save_IFS
  5690. test -z "$as_dir" && as_dir=.
  5691. for ac_exec_ext in '' $ac_executable_extensions; do
  5692. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5693. ac_cv_prog_AWK="$ac_prog"
  5694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5695. break 2
  5696. fi
  5697. done
  5698. done
  5699. IFS=$as_save_IFS
  5700. fi
  5701. fi
  5702. AWK=$ac_cv_prog_AWK
  5703. if test -n "$AWK"; then
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5705. $as_echo "$AWK" >&6; }
  5706. else
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5708. $as_echo "no" >&6; }
  5709. fi
  5710. test -n "$AWK" && break
  5711. done
  5712. # If no C compiler was specified, use CC.
  5713. LTCC=${LTCC-"$CC"}
  5714. # If no C compiler flags were specified, use CFLAGS.
  5715. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5716. # Allow CC to be a program name with arguments.
  5717. compiler=$CC
  5718. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5720. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5721. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5722. $as_echo_n "(cached) " >&6
  5723. else
  5724. # These are sane defaults that work on at least a few old systems.
  5725. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5726. # Character class describing NM global symbol codes.
  5727. symcode='[BCDEGRST]'
  5728. # Regexp to match symbols that can be accessed directly from C.
  5729. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5730. # Define system-specific variables.
  5731. case $host_os in
  5732. aix*)
  5733. symcode='[BCDT]'
  5734. ;;
  5735. cygwin* | mingw* | pw32* | cegcc*)
  5736. symcode='[ABCDGISTW]'
  5737. ;;
  5738. hpux*)
  5739. if test "$host_cpu" = ia64; then
  5740. symcode='[ABCDEGRST]'
  5741. fi
  5742. ;;
  5743. irix* | nonstopux*)
  5744. symcode='[BCDEGRST]'
  5745. ;;
  5746. osf*)
  5747. symcode='[BCDEGQRST]'
  5748. ;;
  5749. solaris*)
  5750. symcode='[BDRT]'
  5751. ;;
  5752. sco3.2v5*)
  5753. symcode='[DT]'
  5754. ;;
  5755. sysv4.2uw2*)
  5756. symcode='[DT]'
  5757. ;;
  5758. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5759. symcode='[ABDT]'
  5760. ;;
  5761. sysv4)
  5762. symcode='[DFNSTU]'
  5763. ;;
  5764. esac
  5765. # If we're using GNU nm, then use its standard symbol codes.
  5766. case `$NM -V 2>&1` in
  5767. *GNU* | *'with BFD'*)
  5768. symcode='[ABCDGIRSTW]' ;;
  5769. esac
  5770. # Transform an extracted symbol line into a proper C declaration.
  5771. # Some systems (esp. on ia64) link data and code symbols differently,
  5772. # so use this general approach.
  5773. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5774. # Transform an extracted symbol line into symbol name and symbol address
  5775. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5776. 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'"
  5777. # Handle CRLF in mingw tool chain
  5778. opt_cr=
  5779. case $build_os in
  5780. mingw*)
  5781. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5782. ;;
  5783. esac
  5784. # Try without a prefix underscore, then with it.
  5785. for ac_symprfx in "" "_"; do
  5786. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5787. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5788. # Write the raw and C identifiers.
  5789. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5790. # Fake it for dumpbin and say T for any non-static function
  5791. # and D for any global variable.
  5792. # Also find C++ and __fastcall symbols from MSVC++,
  5793. # which start with @ or ?.
  5794. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5795. " {last_section=section; section=\$ 3};"\
  5796. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5797. " \$ 0!~/External *\|/{next};"\
  5798. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5799. " {if(hide[section]) next};"\
  5800. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5801. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5802. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5803. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5804. " ' prfx=^$ac_symprfx"
  5805. else
  5806. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5807. fi
  5808. # Check to see that the pipe works correctly.
  5809. pipe_works=no
  5810. rm -f conftest*
  5811. cat > conftest.$ac_ext <<_LT_EOF
  5812. #ifdef __cplusplus
  5813. extern "C" {
  5814. #endif
  5815. char nm_test_var;
  5816. void nm_test_func(void);
  5817. void nm_test_func(void){}
  5818. #ifdef __cplusplus
  5819. }
  5820. #endif
  5821. int main(){nm_test_var='a';nm_test_func();return(0);}
  5822. _LT_EOF
  5823. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5824. (eval $ac_compile) 2>&5
  5825. ac_status=$?
  5826. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5827. test $ac_status = 0; }; then
  5828. # Now try to grab the symbols.
  5829. nlist=conftest.nm
  5830. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5831. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5832. ac_status=$?
  5833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5834. test $ac_status = 0; } && test -s "$nlist"; then
  5835. # Try sorting and uniquifying the output.
  5836. if sort "$nlist" | uniq > "$nlist"T; then
  5837. mv -f "$nlist"T "$nlist"
  5838. else
  5839. rm -f "$nlist"T
  5840. fi
  5841. # Make sure that we snagged all the symbols we need.
  5842. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5843. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5844. cat <<_LT_EOF > conftest.$ac_ext
  5845. #ifdef __cplusplus
  5846. extern "C" {
  5847. #endif
  5848. _LT_EOF
  5849. # Now generate the symbol file.
  5850. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5851. cat <<_LT_EOF >> conftest.$ac_ext
  5852. /* The mapping between symbol names and symbols. */
  5853. const struct {
  5854. const char *name;
  5855. void *address;
  5856. }
  5857. lt__PROGRAM__LTX_preloaded_symbols[] =
  5858. {
  5859. { "@PROGRAM@", (void *) 0 },
  5860. _LT_EOF
  5861. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5862. cat <<\_LT_EOF >> conftest.$ac_ext
  5863. {0, (void *) 0}
  5864. };
  5865. /* This works around a problem in FreeBSD linker */
  5866. #ifdef FREEBSD_WORKAROUND
  5867. static const void *lt_preloaded_setup() {
  5868. return lt__PROGRAM__LTX_preloaded_symbols;
  5869. }
  5870. #endif
  5871. #ifdef __cplusplus
  5872. }
  5873. #endif
  5874. _LT_EOF
  5875. # Now try linking the two files.
  5876. mv conftest.$ac_objext conftstm.$ac_objext
  5877. lt_save_LIBS="$LIBS"
  5878. lt_save_CFLAGS="$CFLAGS"
  5879. LIBS="conftstm.$ac_objext"
  5880. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5881. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5882. (eval $ac_link) 2>&5
  5883. ac_status=$?
  5884. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5885. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5886. pipe_works=yes
  5887. fi
  5888. LIBS="$lt_save_LIBS"
  5889. CFLAGS="$lt_save_CFLAGS"
  5890. else
  5891. echo "cannot find nm_test_func in $nlist" >&5
  5892. fi
  5893. else
  5894. echo "cannot find nm_test_var in $nlist" >&5
  5895. fi
  5896. else
  5897. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5898. fi
  5899. else
  5900. echo "$progname: failed program was:" >&5
  5901. cat conftest.$ac_ext >&5
  5902. fi
  5903. rm -rf conftest* conftst*
  5904. # Do not use the global_symbol_pipe unless it works.
  5905. if test "$pipe_works" = yes; then
  5906. break
  5907. else
  5908. lt_cv_sys_global_symbol_pipe=
  5909. fi
  5910. done
  5911. fi
  5912. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5913. lt_cv_sys_global_symbol_to_cdecl=
  5914. fi
  5915. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5917. $as_echo "failed" >&6; }
  5918. else
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5920. $as_echo "ok" >&6; }
  5921. fi
  5922. # Check whether --enable-libtool-lock was given.
  5923. if test "${enable_libtool_lock+set}" = set; then :
  5924. enableval=$enable_libtool_lock;
  5925. fi
  5926. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5927. # Some flags need to be propagated to the compiler or linker for good
  5928. # libtool support.
  5929. case $host in
  5930. ia64-*-hpux*)
  5931. # Find out which ABI we are using.
  5932. echo 'int i;' > conftest.$ac_ext
  5933. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5934. (eval $ac_compile) 2>&5
  5935. ac_status=$?
  5936. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5937. test $ac_status = 0; }; then
  5938. case `/usr/bin/file conftest.$ac_objext` in
  5939. *ELF-32*)
  5940. HPUX_IA64_MODE="32"
  5941. ;;
  5942. *ELF-64*)
  5943. HPUX_IA64_MODE="64"
  5944. ;;
  5945. esac
  5946. fi
  5947. rm -rf conftest*
  5948. ;;
  5949. *-*-irix6*)
  5950. # Find out which ABI we are using.
  5951. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5952. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5953. (eval $ac_compile) 2>&5
  5954. ac_status=$?
  5955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5956. test $ac_status = 0; }; then
  5957. if test "$lt_cv_prog_gnu_ld" = yes; then
  5958. case `/usr/bin/file conftest.$ac_objext` in
  5959. *32-bit*)
  5960. LD="${LD-ld} -melf32bsmip"
  5961. ;;
  5962. *N32*)
  5963. LD="${LD-ld} -melf32bmipn32"
  5964. ;;
  5965. *64-bit*)
  5966. LD="${LD-ld} -melf64bmip"
  5967. ;;
  5968. esac
  5969. else
  5970. case `/usr/bin/file conftest.$ac_objext` in
  5971. *32-bit*)
  5972. LD="${LD-ld} -32"
  5973. ;;
  5974. *N32*)
  5975. LD="${LD-ld} -n32"
  5976. ;;
  5977. *64-bit*)
  5978. LD="${LD-ld} -64"
  5979. ;;
  5980. esac
  5981. fi
  5982. fi
  5983. rm -rf conftest*
  5984. ;;
  5985. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5986. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5987. # Find out which ABI we are using.
  5988. echo 'int i;' > conftest.$ac_ext
  5989. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5990. (eval $ac_compile) 2>&5
  5991. ac_status=$?
  5992. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5993. test $ac_status = 0; }; then
  5994. case `/usr/bin/file conftest.o` in
  5995. *32-bit*)
  5996. case $host in
  5997. x86_64-*kfreebsd*-gnu)
  5998. LD="${LD-ld} -m elf_i386_fbsd"
  5999. ;;
  6000. x86_64-*linux*)
  6001. case `/usr/bin/file conftest.o` in
  6002. *x86-64*)
  6003. LD="${LD-ld} -m elf32_x86_64"
  6004. ;;
  6005. *)
  6006. LD="${LD-ld} -m elf_i386"
  6007. ;;
  6008. esac
  6009. ;;
  6010. powerpc64le-*linux*)
  6011. LD="${LD-ld} -m elf32lppclinux"
  6012. ;;
  6013. powerpc64-*linux*)
  6014. LD="${LD-ld} -m elf32ppclinux"
  6015. ;;
  6016. s390x-*linux*)
  6017. LD="${LD-ld} -m elf_s390"
  6018. ;;
  6019. sparc64-*linux*)
  6020. LD="${LD-ld} -m elf32_sparc"
  6021. ;;
  6022. esac
  6023. ;;
  6024. *64-bit*)
  6025. case $host in
  6026. x86_64-*kfreebsd*-gnu)
  6027. LD="${LD-ld} -m elf_x86_64_fbsd"
  6028. ;;
  6029. x86_64-*linux*)
  6030. LD="${LD-ld} -m elf_x86_64"
  6031. ;;
  6032. powerpcle-*linux*)
  6033. LD="${LD-ld} -m elf64lppc"
  6034. ;;
  6035. powerpc-*linux*)
  6036. LD="${LD-ld} -m elf64ppc"
  6037. ;;
  6038. s390*-*linux*|s390*-*tpf*)
  6039. LD="${LD-ld} -m elf64_s390"
  6040. ;;
  6041. sparc*-*linux*)
  6042. LD="${LD-ld} -m elf64_sparc"
  6043. ;;
  6044. esac
  6045. ;;
  6046. esac
  6047. fi
  6048. rm -rf conftest*
  6049. ;;
  6050. *-*-sco3.2v5*)
  6051. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6052. SAVE_CFLAGS="$CFLAGS"
  6053. CFLAGS="$CFLAGS -belf"
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6055. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6056. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6057. $as_echo_n "(cached) " >&6
  6058. else
  6059. ac_ext=c
  6060. ac_cpp='$CPP $CPPFLAGS'
  6061. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6062. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6063. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6065. /* end confdefs.h. */
  6066. int
  6067. main ()
  6068. {
  6069. ;
  6070. return 0;
  6071. }
  6072. _ACEOF
  6073. if ac_fn_c_try_link "$LINENO"; then :
  6074. lt_cv_cc_needs_belf=yes
  6075. else
  6076. lt_cv_cc_needs_belf=no
  6077. fi
  6078. rm -f core conftest.err conftest.$ac_objext \
  6079. conftest$ac_exeext conftest.$ac_ext
  6080. ac_ext=c
  6081. ac_cpp='$CPP $CPPFLAGS'
  6082. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6083. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6084. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6085. fi
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6087. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6088. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6089. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6090. CFLAGS="$SAVE_CFLAGS"
  6091. fi
  6092. ;;
  6093. sparc*-*solaris*)
  6094. # Find out which ABI we are using.
  6095. echo 'int i;' > conftest.$ac_ext
  6096. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6097. (eval $ac_compile) 2>&5
  6098. ac_status=$?
  6099. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6100. test $ac_status = 0; }; then
  6101. case `/usr/bin/file conftest.o` in
  6102. *64-bit*)
  6103. case $lt_cv_prog_gnu_ld in
  6104. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6105. *)
  6106. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6107. LD="${LD-ld} -64"
  6108. fi
  6109. ;;
  6110. esac
  6111. ;;
  6112. esac
  6113. fi
  6114. rm -rf conftest*
  6115. ;;
  6116. esac
  6117. need_locks="$enable_libtool_lock"
  6118. case $host_os in
  6119. rhapsody* | darwin*)
  6120. if test -n "$ac_tool_prefix"; then
  6121. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6122. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6124. $as_echo_n "checking for $ac_word... " >&6; }
  6125. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6126. $as_echo_n "(cached) " >&6
  6127. else
  6128. if test -n "$DSYMUTIL"; then
  6129. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6130. else
  6131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6132. for as_dir in $PATH
  6133. do
  6134. IFS=$as_save_IFS
  6135. test -z "$as_dir" && as_dir=.
  6136. for ac_exec_ext in '' $ac_executable_extensions; do
  6137. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6138. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6140. break 2
  6141. fi
  6142. done
  6143. done
  6144. IFS=$as_save_IFS
  6145. fi
  6146. fi
  6147. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6148. if test -n "$DSYMUTIL"; then
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6150. $as_echo "$DSYMUTIL" >&6; }
  6151. else
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6153. $as_echo "no" >&6; }
  6154. fi
  6155. fi
  6156. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6157. ac_ct_DSYMUTIL=$DSYMUTIL
  6158. # Extract the first word of "dsymutil", so it can be a program name with args.
  6159. set dummy dsymutil; ac_word=$2
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6161. $as_echo_n "checking for $ac_word... " >&6; }
  6162. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6163. $as_echo_n "(cached) " >&6
  6164. else
  6165. if test -n "$ac_ct_DSYMUTIL"; then
  6166. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6167. else
  6168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6169. for as_dir in $PATH
  6170. do
  6171. IFS=$as_save_IFS
  6172. test -z "$as_dir" && as_dir=.
  6173. for ac_exec_ext in '' $ac_executable_extensions; do
  6174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6175. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6177. break 2
  6178. fi
  6179. done
  6180. done
  6181. IFS=$as_save_IFS
  6182. fi
  6183. fi
  6184. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6185. if test -n "$ac_ct_DSYMUTIL"; then
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6187. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6188. else
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6190. $as_echo "no" >&6; }
  6191. fi
  6192. if test "x$ac_ct_DSYMUTIL" = x; then
  6193. DSYMUTIL=":"
  6194. else
  6195. case $cross_compiling:$ac_tool_warned in
  6196. yes:)
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6198. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6199. ac_tool_warned=yes ;;
  6200. esac
  6201. DSYMUTIL=$ac_ct_DSYMUTIL
  6202. fi
  6203. else
  6204. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6205. fi
  6206. if test -n "$ac_tool_prefix"; then
  6207. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6208. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6210. $as_echo_n "checking for $ac_word... " >&6; }
  6211. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6212. $as_echo_n "(cached) " >&6
  6213. else
  6214. if test -n "$NMEDIT"; then
  6215. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6216. else
  6217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6218. for as_dir in $PATH
  6219. do
  6220. IFS=$as_save_IFS
  6221. test -z "$as_dir" && as_dir=.
  6222. for ac_exec_ext in '' $ac_executable_extensions; do
  6223. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6224. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6226. break 2
  6227. fi
  6228. done
  6229. done
  6230. IFS=$as_save_IFS
  6231. fi
  6232. fi
  6233. NMEDIT=$ac_cv_prog_NMEDIT
  6234. if test -n "$NMEDIT"; then
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6236. $as_echo "$NMEDIT" >&6; }
  6237. else
  6238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6239. $as_echo "no" >&6; }
  6240. fi
  6241. fi
  6242. if test -z "$ac_cv_prog_NMEDIT"; then
  6243. ac_ct_NMEDIT=$NMEDIT
  6244. # Extract the first word of "nmedit", so it can be a program name with args.
  6245. set dummy nmedit; ac_word=$2
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6247. $as_echo_n "checking for $ac_word... " >&6; }
  6248. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6249. $as_echo_n "(cached) " >&6
  6250. else
  6251. if test -n "$ac_ct_NMEDIT"; then
  6252. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6253. else
  6254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6255. for as_dir in $PATH
  6256. do
  6257. IFS=$as_save_IFS
  6258. test -z "$as_dir" && as_dir=.
  6259. for ac_exec_ext in '' $ac_executable_extensions; do
  6260. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6261. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6263. break 2
  6264. fi
  6265. done
  6266. done
  6267. IFS=$as_save_IFS
  6268. fi
  6269. fi
  6270. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6271. if test -n "$ac_ct_NMEDIT"; then
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6273. $as_echo "$ac_ct_NMEDIT" >&6; }
  6274. else
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6276. $as_echo "no" >&6; }
  6277. fi
  6278. if test "x$ac_ct_NMEDIT" = x; then
  6279. NMEDIT=":"
  6280. else
  6281. case $cross_compiling:$ac_tool_warned in
  6282. yes:)
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6284. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6285. ac_tool_warned=yes ;;
  6286. esac
  6287. NMEDIT=$ac_ct_NMEDIT
  6288. fi
  6289. else
  6290. NMEDIT="$ac_cv_prog_NMEDIT"
  6291. fi
  6292. if test -n "$ac_tool_prefix"; then
  6293. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6294. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6296. $as_echo_n "checking for $ac_word... " >&6; }
  6297. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6298. $as_echo_n "(cached) " >&6
  6299. else
  6300. if test -n "$LIPO"; then
  6301. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6302. else
  6303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6304. for as_dir in $PATH
  6305. do
  6306. IFS=$as_save_IFS
  6307. test -z "$as_dir" && as_dir=.
  6308. for ac_exec_ext in '' $ac_executable_extensions; do
  6309. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6310. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6312. break 2
  6313. fi
  6314. done
  6315. done
  6316. IFS=$as_save_IFS
  6317. fi
  6318. fi
  6319. LIPO=$ac_cv_prog_LIPO
  6320. if test -n "$LIPO"; then
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6322. $as_echo "$LIPO" >&6; }
  6323. else
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6325. $as_echo "no" >&6; }
  6326. fi
  6327. fi
  6328. if test -z "$ac_cv_prog_LIPO"; then
  6329. ac_ct_LIPO=$LIPO
  6330. # Extract the first word of "lipo", so it can be a program name with args.
  6331. set dummy lipo; ac_word=$2
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6333. $as_echo_n "checking for $ac_word... " >&6; }
  6334. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6335. $as_echo_n "(cached) " >&6
  6336. else
  6337. if test -n "$ac_ct_LIPO"; then
  6338. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6339. else
  6340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6341. for as_dir in $PATH
  6342. do
  6343. IFS=$as_save_IFS
  6344. test -z "$as_dir" && as_dir=.
  6345. for ac_exec_ext in '' $ac_executable_extensions; do
  6346. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6347. ac_cv_prog_ac_ct_LIPO="lipo"
  6348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6349. break 2
  6350. fi
  6351. done
  6352. done
  6353. IFS=$as_save_IFS
  6354. fi
  6355. fi
  6356. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6357. if test -n "$ac_ct_LIPO"; then
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6359. $as_echo "$ac_ct_LIPO" >&6; }
  6360. else
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6362. $as_echo "no" >&6; }
  6363. fi
  6364. if test "x$ac_ct_LIPO" = x; then
  6365. LIPO=":"
  6366. else
  6367. case $cross_compiling:$ac_tool_warned in
  6368. yes:)
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6370. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6371. ac_tool_warned=yes ;;
  6372. esac
  6373. LIPO=$ac_ct_LIPO
  6374. fi
  6375. else
  6376. LIPO="$ac_cv_prog_LIPO"
  6377. fi
  6378. if test -n "$ac_tool_prefix"; then
  6379. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6380. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6382. $as_echo_n "checking for $ac_word... " >&6; }
  6383. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6384. $as_echo_n "(cached) " >&6
  6385. else
  6386. if test -n "$OTOOL"; then
  6387. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6388. else
  6389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6390. for as_dir in $PATH
  6391. do
  6392. IFS=$as_save_IFS
  6393. test -z "$as_dir" && as_dir=.
  6394. for ac_exec_ext in '' $ac_executable_extensions; do
  6395. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6396. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6397. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6398. break 2
  6399. fi
  6400. done
  6401. done
  6402. IFS=$as_save_IFS
  6403. fi
  6404. fi
  6405. OTOOL=$ac_cv_prog_OTOOL
  6406. if test -n "$OTOOL"; then
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6408. $as_echo "$OTOOL" >&6; }
  6409. else
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6411. $as_echo "no" >&6; }
  6412. fi
  6413. fi
  6414. if test -z "$ac_cv_prog_OTOOL"; then
  6415. ac_ct_OTOOL=$OTOOL
  6416. # Extract the first word of "otool", so it can be a program name with args.
  6417. set dummy otool; ac_word=$2
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6419. $as_echo_n "checking for $ac_word... " >&6; }
  6420. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6421. $as_echo_n "(cached) " >&6
  6422. else
  6423. if test -n "$ac_ct_OTOOL"; then
  6424. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6425. else
  6426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6427. for as_dir in $PATH
  6428. do
  6429. IFS=$as_save_IFS
  6430. test -z "$as_dir" && as_dir=.
  6431. for ac_exec_ext in '' $ac_executable_extensions; do
  6432. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6433. ac_cv_prog_ac_ct_OTOOL="otool"
  6434. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6435. break 2
  6436. fi
  6437. done
  6438. done
  6439. IFS=$as_save_IFS
  6440. fi
  6441. fi
  6442. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6443. if test -n "$ac_ct_OTOOL"; then
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6445. $as_echo "$ac_ct_OTOOL" >&6; }
  6446. else
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6448. $as_echo "no" >&6; }
  6449. fi
  6450. if test "x$ac_ct_OTOOL" = x; then
  6451. OTOOL=":"
  6452. else
  6453. case $cross_compiling:$ac_tool_warned in
  6454. yes:)
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6456. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6457. ac_tool_warned=yes ;;
  6458. esac
  6459. OTOOL=$ac_ct_OTOOL
  6460. fi
  6461. else
  6462. OTOOL="$ac_cv_prog_OTOOL"
  6463. fi
  6464. if test -n "$ac_tool_prefix"; then
  6465. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6466. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6468. $as_echo_n "checking for $ac_word... " >&6; }
  6469. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6470. $as_echo_n "(cached) " >&6
  6471. else
  6472. if test -n "$OTOOL64"; then
  6473. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6474. else
  6475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6476. for as_dir in $PATH
  6477. do
  6478. IFS=$as_save_IFS
  6479. test -z "$as_dir" && as_dir=.
  6480. for ac_exec_ext in '' $ac_executable_extensions; do
  6481. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6482. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6484. break 2
  6485. fi
  6486. done
  6487. done
  6488. IFS=$as_save_IFS
  6489. fi
  6490. fi
  6491. OTOOL64=$ac_cv_prog_OTOOL64
  6492. if test -n "$OTOOL64"; then
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6494. $as_echo "$OTOOL64" >&6; }
  6495. else
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6497. $as_echo "no" >&6; }
  6498. fi
  6499. fi
  6500. if test -z "$ac_cv_prog_OTOOL64"; then
  6501. ac_ct_OTOOL64=$OTOOL64
  6502. # Extract the first word of "otool64", so it can be a program name with args.
  6503. set dummy otool64; ac_word=$2
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6505. $as_echo_n "checking for $ac_word... " >&6; }
  6506. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6507. $as_echo_n "(cached) " >&6
  6508. else
  6509. if test -n "$ac_ct_OTOOL64"; then
  6510. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6511. else
  6512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6513. for as_dir in $PATH
  6514. do
  6515. IFS=$as_save_IFS
  6516. test -z "$as_dir" && as_dir=.
  6517. for ac_exec_ext in '' $ac_executable_extensions; do
  6518. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6519. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6521. break 2
  6522. fi
  6523. done
  6524. done
  6525. IFS=$as_save_IFS
  6526. fi
  6527. fi
  6528. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6529. if test -n "$ac_ct_OTOOL64"; then
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6531. $as_echo "$ac_ct_OTOOL64" >&6; }
  6532. else
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6534. $as_echo "no" >&6; }
  6535. fi
  6536. if test "x$ac_ct_OTOOL64" = x; then
  6537. OTOOL64=":"
  6538. else
  6539. case $cross_compiling:$ac_tool_warned in
  6540. yes:)
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6542. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6543. ac_tool_warned=yes ;;
  6544. esac
  6545. OTOOL64=$ac_ct_OTOOL64
  6546. fi
  6547. else
  6548. OTOOL64="$ac_cv_prog_OTOOL64"
  6549. fi
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6551. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6552. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6553. $as_echo_n "(cached) " >&6
  6554. else
  6555. lt_cv_apple_cc_single_mod=no
  6556. if test -z "${LT_MULTI_MODULE}"; then
  6557. # By default we will add the -single_module flag. You can override
  6558. # by either setting the environment variable LT_MULTI_MODULE
  6559. # non-empty at configure time, or by adding -multi_module to the
  6560. # link flags.
  6561. rm -rf libconftest.dylib*
  6562. echo "int foo(void){return 1;}" > conftest.c
  6563. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6564. -dynamiclib -Wl,-single_module conftest.c" >&5
  6565. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6566. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6567. _lt_result=$?
  6568. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6569. lt_cv_apple_cc_single_mod=yes
  6570. else
  6571. cat conftest.err >&5
  6572. fi
  6573. rm -rf libconftest.dylib*
  6574. rm -f conftest.*
  6575. fi
  6576. fi
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6578. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6580. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6581. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6582. $as_echo_n "(cached) " >&6
  6583. else
  6584. lt_cv_ld_exported_symbols_list=no
  6585. save_LDFLAGS=$LDFLAGS
  6586. echo "_main" > conftest.sym
  6587. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6589. /* end confdefs.h. */
  6590. int
  6591. main ()
  6592. {
  6593. ;
  6594. return 0;
  6595. }
  6596. _ACEOF
  6597. if ac_fn_c_try_link "$LINENO"; then :
  6598. lt_cv_ld_exported_symbols_list=yes
  6599. else
  6600. lt_cv_ld_exported_symbols_list=no
  6601. fi
  6602. rm -f core conftest.err conftest.$ac_objext \
  6603. conftest$ac_exeext conftest.$ac_ext
  6604. LDFLAGS="$save_LDFLAGS"
  6605. fi
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6607. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6609. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6610. if test "${lt_cv_ld_force_load+set}" = set; then :
  6611. $as_echo_n "(cached) " >&6
  6612. else
  6613. lt_cv_ld_force_load=no
  6614. cat > conftest.c << _LT_EOF
  6615. int forced_loaded() { return 2;}
  6616. _LT_EOF
  6617. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6618. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6619. echo "$AR cru libconftest.a conftest.o" >&5
  6620. $AR cru libconftest.a conftest.o 2>&5
  6621. cat > conftest.c << _LT_EOF
  6622. int main() { return 0;}
  6623. _LT_EOF
  6624. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6625. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6626. _lt_result=$?
  6627. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6628. lt_cv_ld_force_load=yes
  6629. else
  6630. cat conftest.err >&5
  6631. fi
  6632. rm -f conftest.err libconftest.a conftest conftest.c
  6633. rm -rf conftest.dSYM
  6634. fi
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6636. $as_echo "$lt_cv_ld_force_load" >&6; }
  6637. case $host_os in
  6638. rhapsody* | darwin1.[012])
  6639. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6640. darwin1.*)
  6641. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6642. darwin*) # darwin 5.x on
  6643. # if running on 10.5 or later, the deployment target defaults
  6644. # to the OS version, if on x86, and 10.4, the deployment
  6645. # target defaults to 10.4. Don't you love it?
  6646. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6647. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6648. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6649. 10.[012][,.]*)
  6650. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6651. 10.*)
  6652. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6653. esac
  6654. ;;
  6655. esac
  6656. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6657. _lt_dar_single_mod='$single_module'
  6658. fi
  6659. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6660. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6661. else
  6662. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6663. fi
  6664. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6665. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6666. else
  6667. _lt_dsymutil=
  6668. fi
  6669. ;;
  6670. esac
  6671. for ac_header in dlfcn.h
  6672. do :
  6673. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6674. "
  6675. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6676. cat >>confdefs.h <<_ACEOF
  6677. #define HAVE_DLFCN_H 1
  6678. _ACEOF
  6679. fi
  6680. done
  6681. # autoconf.info says this should be called right after AC_INIT.
  6682. ac_config_headers="$ac_config_headers config.h:config.in"
  6683. # Put a plausible default for CC_FOR_BUILD in Makefile.
  6684. if test "x$cross_compiling" = "xno"; then
  6685. CC_FOR_BUILD='$(CC)'
  6686. else
  6687. CC_FOR_BUILD=gcc
  6688. fi
  6689. AR=${AR-ar}
  6690. if test -n "$ac_tool_prefix"; then
  6691. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6692. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6694. $as_echo_n "checking for $ac_word... " >&6; }
  6695. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6696. $as_echo_n "(cached) " >&6
  6697. else
  6698. if test -n "$RANLIB"; then
  6699. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6700. else
  6701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6702. for as_dir in $PATH
  6703. do
  6704. IFS=$as_save_IFS
  6705. test -z "$as_dir" && as_dir=.
  6706. for ac_exec_ext in '' $ac_executable_extensions; do
  6707. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6708. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6710. break 2
  6711. fi
  6712. done
  6713. done
  6714. IFS=$as_save_IFS
  6715. fi
  6716. fi
  6717. RANLIB=$ac_cv_prog_RANLIB
  6718. if test -n "$RANLIB"; then
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6720. $as_echo "$RANLIB" >&6; }
  6721. else
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6723. $as_echo "no" >&6; }
  6724. fi
  6725. fi
  6726. if test -z "$ac_cv_prog_RANLIB"; then
  6727. ac_ct_RANLIB=$RANLIB
  6728. # Extract the first word of "ranlib", so it can be a program name with args.
  6729. set dummy ranlib; ac_word=$2
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6731. $as_echo_n "checking for $ac_word... " >&6; }
  6732. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6733. $as_echo_n "(cached) " >&6
  6734. else
  6735. if test -n "$ac_ct_RANLIB"; then
  6736. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6737. else
  6738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6739. for as_dir in $PATH
  6740. do
  6741. IFS=$as_save_IFS
  6742. test -z "$as_dir" && as_dir=.
  6743. for ac_exec_ext in '' $ac_executable_extensions; do
  6744. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6745. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6747. break 2
  6748. fi
  6749. done
  6750. done
  6751. IFS=$as_save_IFS
  6752. fi
  6753. fi
  6754. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6755. if test -n "$ac_ct_RANLIB"; then
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6757. $as_echo "$ac_ct_RANLIB" >&6; }
  6758. else
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6760. $as_echo "no" >&6; }
  6761. fi
  6762. if test "x$ac_ct_RANLIB" = x; then
  6763. RANLIB=":"
  6764. else
  6765. case $cross_compiling:$ac_tool_warned in
  6766. yes:)
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6769. ac_tool_warned=yes ;;
  6770. esac
  6771. RANLIB=$ac_ct_RANLIB
  6772. fi
  6773. else
  6774. RANLIB="$ac_cv_prog_RANLIB"
  6775. fi
  6776. # Some of the common include files depend on bfd.h, and bfd.h checks
  6777. # that config.h is included first by testing that the PACKAGE macro
  6778. # is defined.
  6779. PACKAGE=sim
  6780. cat >>confdefs.h <<_ACEOF
  6781. #define PACKAGE "$PACKAGE"
  6782. _ACEOF
  6783. # Dependency checking.
  6784. ac_config_commands="$ac_config_commands depdir"
  6785. depcc="$CC" am_compiler_list=
  6786. am_depcomp=$ac_aux_dir/depcomp
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6788. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6789. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  6790. $as_echo_n "(cached) " >&6
  6791. else
  6792. if test -f "$am_depcomp"; then
  6793. # We make a subdir and do the tests there. Otherwise we can end up
  6794. # making bogus files that we don't know about and never remove. For
  6795. # instance it was reported that on HP-UX the gcc test will end up
  6796. # making a dummy file named `D' -- because `-MD' means `put the output
  6797. # in D'.
  6798. mkdir conftest.dir
  6799. # Copy depcomp to subdir because otherwise we won't find it if we're
  6800. # using a relative directory.
  6801. cp "$am_depcomp" conftest.dir
  6802. cd conftest.dir
  6803. # We will build objects and dependencies in a subdirectory because
  6804. # it helps to detect inapplicable dependency modes. For instance
  6805. # both Tru64's cc and ICC support -MD to output dependencies as a
  6806. # side effect of compilation, but ICC will put the dependencies in
  6807. # the current directory while Tru64 will put them in the object
  6808. # directory.
  6809. mkdir sub
  6810. am_cv_CC_dependencies_compiler_type=none
  6811. if test "$am_compiler_list" = ""; then
  6812. am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6813. fi
  6814. for depmode in $am_compiler_list; do
  6815. if test $depmode = none; then break; fi
  6816. $as_echo "$as_me:$LINENO: trying $depmode" >&5
  6817. # Setup a source with many dependencies, because some compilers
  6818. # like to wrap large dependency lists on column 80 (with \), and
  6819. # we should not choose a depcomp mode which is confused by this.
  6820. #
  6821. # We need to recreate these files for each test, as the compiler may
  6822. # overwrite some of them when testing with obscure command lines.
  6823. # This happens at least with the AIX C compiler.
  6824. : > sub/conftest.c
  6825. for i in 1 2 3 4 5 6; do
  6826. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6827. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6828. # Solaris 8's {/usr,}/bin/sh.
  6829. touch sub/conftst$i.h
  6830. done
  6831. echo "include sub/conftest.Po" > confmf
  6832. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6833. # mode. It turns out that the SunPro C++ compiler does not properly
  6834. # handle `-M -o', and we need to detect this.
  6835. depcmd="depmode=$depmode \
  6836. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6837. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6838. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
  6839. echo "| $depcmd" | sed -e 's/ */ /g' >&5
  6840. if env $depcmd > conftest.err 2>&1 &&
  6841. grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
  6842. grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
  6843. ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
  6844. # icc doesn't choke on unknown options, it will just issue warnings
  6845. # or remarks (even with -Werror). So we grep stderr for any message
  6846. # that says an option was ignored or not supported.
  6847. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6848. # icc: Command line warning: ignoring option '-M'; no argument required
  6849. # The diagnosis changed in icc 8.0:
  6850. # icc: Command line remark: option '-MP' not supported
  6851. if (grep 'ignoring option' conftest.err ||
  6852. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6853. am_cv_CC_dependencies_compiler_type=$depmode
  6854. $as_echo "$as_me:$LINENO: success" >&5
  6855. break
  6856. fi
  6857. fi
  6858. $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
  6859. sed -e 's/^/| /' < conftest.err >&5
  6860. done
  6861. cd ..
  6862. rm -rf conftest.dir
  6863. else
  6864. am_cv_CC_dependencies_compiler_type=none
  6865. fi
  6866. fi
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  6868. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  6869. if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
  6870. then as_fn_error "no usable dependency style found" "$LINENO" 5
  6871. else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  6872. fi
  6873. # Check for the 'make' the user wants to use.
  6874. for ac_prog in make
  6875. do
  6876. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6877. set dummy $ac_prog; ac_word=$2
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6879. $as_echo_n "checking for $ac_word... " >&6; }
  6880. if test "${ac_cv_prog_MAKE+set}" = set; then :
  6881. $as_echo_n "(cached) " >&6
  6882. else
  6883. if test -n "$MAKE"; then
  6884. ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
  6885. else
  6886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6887. for as_dir in $PATH
  6888. do
  6889. IFS=$as_save_IFS
  6890. test -z "$as_dir" && as_dir=.
  6891. for ac_exec_ext in '' $ac_executable_extensions; do
  6892. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6893. ac_cv_prog_MAKE="$ac_prog"
  6894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6895. break 2
  6896. fi
  6897. done
  6898. done
  6899. IFS=$as_save_IFS
  6900. fi
  6901. fi
  6902. MAKE=$ac_cv_prog_MAKE
  6903. if test -n "$MAKE"; then
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
  6905. $as_echo "$MAKE" >&6; }
  6906. else
  6907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6908. $as_echo "no" >&6; }
  6909. fi
  6910. test -n "$MAKE" && break
  6911. done
  6912. MAKE_IS_GNU=
  6913. case "`$MAKE --version 2>&1 | sed 1q`" in
  6914. *GNU*)
  6915. MAKE_IS_GNU=yes
  6916. ;;
  6917. esac
  6918. if test "$MAKE_IS_GNU" = yes; then
  6919. GMAKE_TRUE=
  6920. GMAKE_FALSE='#'
  6921. else
  6922. GMAKE_TRUE='#'
  6923. GMAKE_FALSE=
  6924. fi
  6925. ALL_LINGUAS=
  6926. # If we haven't got the data from the intl directory,
  6927. # assume NLS is disabled.
  6928. USE_NLS=no
  6929. LIBINTL=
  6930. LIBINTL_DEP=
  6931. INCINTL=
  6932. XGETTEXT=
  6933. GMSGFMT=
  6934. POSUB=
  6935. if test -f ../../intl/config.intl; then
  6936. . ../../intl/config.intl
  6937. fi
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  6939. $as_echo_n "checking whether NLS is requested... " >&6; }
  6940. if test x"$USE_NLS" != xyes; then
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6942. $as_echo "no" >&6; }
  6943. else
  6944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6945. $as_echo "yes" >&6; }
  6946. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  6948. $as_echo_n "checking for catalogs to be installed... " >&6; }
  6949. # Look for .po and .gmo files in the source directory.
  6950. CATALOGS=
  6951. XLINGUAS=
  6952. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  6953. # If there aren't any .gmo files the shell will give us the
  6954. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  6955. # weeded out.
  6956. case "$cat" in *\**)
  6957. continue;;
  6958. esac
  6959. # The quadruple backslash is collapsed to a double backslash
  6960. # by the backticks, then collapsed again by the double quotes,
  6961. # leaving us with one backslash in the sed expression (right
  6962. # before the dot that mustn't act as a wildcard).
  6963. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  6964. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  6965. # The user is allowed to set LINGUAS to a list of languages to
  6966. # install catalogs for. If it's empty that means "all of them."
  6967. if test "x$LINGUAS" = x; then
  6968. CATALOGS="$CATALOGS $cat"
  6969. XLINGUAS="$XLINGUAS $lang"
  6970. else
  6971. case "$LINGUAS" in *$lang*)
  6972. CATALOGS="$CATALOGS $cat"
  6973. XLINGUAS="$XLINGUAS $lang"
  6974. ;;
  6975. esac
  6976. fi
  6977. done
  6978. LINGUAS="$XLINGUAS"
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  6980. $as_echo "$LINGUAS" >&6; }
  6981. DATADIRNAME=share
  6982. INSTOBJEXT=.mo
  6983. GENCAT=gencat
  6984. CATOBJEXT=.gmo
  6985. fi
  6986. # Check for common headers.
  6987. # FIXME: Seems to me this can cause problems for i386-windows hosts.
  6988. # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
  6989. for ac_header in stdlib.h string.h strings.h unistd.h time.h
  6990. do :
  6991. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6992. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6993. eval as_val=\$$as_ac_Header
  6994. if test "x$as_val" = x""yes; then :
  6995. cat >>confdefs.h <<_ACEOF
  6996. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6997. _ACEOF
  6998. fi
  6999. done
  7000. for ac_header in sys/time.h sys/resource.h
  7001. do :
  7002. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7003. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7004. eval as_val=\$$as_ac_Header
  7005. if test "x$as_val" = x""yes; then :
  7006. cat >>confdefs.h <<_ACEOF
  7007. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7008. _ACEOF
  7009. fi
  7010. done
  7011. for ac_header in fcntl.h fpu_control.h
  7012. do :
  7013. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7014. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7015. eval as_val=\$$as_ac_Header
  7016. if test "x$as_val" = x""yes; then :
  7017. cat >>confdefs.h <<_ACEOF
  7018. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7019. _ACEOF
  7020. fi
  7021. done
  7022. for ac_header in dlfcn.h errno.h sys/stat.h
  7023. do :
  7024. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7025. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7026. eval as_val=\$$as_ac_Header
  7027. if test "x$as_val" = x""yes; then :
  7028. cat >>confdefs.h <<_ACEOF
  7029. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7030. _ACEOF
  7031. fi
  7032. done
  7033. for ac_func in getrusage time sigaction __setfpucw
  7034. do :
  7035. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7036. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7037. eval as_val=\$$as_ac_var
  7038. if test "x$as_val" = x""yes; then :
  7039. cat >>confdefs.h <<_ACEOF
  7040. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7041. _ACEOF
  7042. fi
  7043. done
  7044. # Check for socket libraries
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
  7046. $as_echo_n "checking for bind in -lsocket... " >&6; }
  7047. if test "${ac_cv_lib_socket_bind+set}" = set; then :
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. ac_check_lib_save_LIBS=$LIBS
  7051. LIBS="-lsocket $LIBS"
  7052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7053. /* end confdefs.h. */
  7054. /* Override any GCC internal prototype to avoid an error.
  7055. Use char because int might match the return type of a GCC
  7056. builtin and then its argument prototype would still apply. */
  7057. #ifdef __cplusplus
  7058. extern "C"
  7059. #endif
  7060. char bind ();
  7061. int
  7062. main ()
  7063. {
  7064. return bind ();
  7065. ;
  7066. return 0;
  7067. }
  7068. _ACEOF
  7069. if ac_fn_c_try_link "$LINENO"; then :
  7070. ac_cv_lib_socket_bind=yes
  7071. else
  7072. ac_cv_lib_socket_bind=no
  7073. fi
  7074. rm -f core conftest.err conftest.$ac_objext \
  7075. conftest$ac_exeext conftest.$ac_ext
  7076. LIBS=$ac_check_lib_save_LIBS
  7077. fi
  7078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
  7079. $as_echo "$ac_cv_lib_socket_bind" >&6; }
  7080. if test "x$ac_cv_lib_socket_bind" = x""yes; then :
  7081. cat >>confdefs.h <<_ACEOF
  7082. #define HAVE_LIBSOCKET 1
  7083. _ACEOF
  7084. LIBS="-lsocket $LIBS"
  7085. fi
  7086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  7087. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  7088. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  7089. $as_echo_n "(cached) " >&6
  7090. else
  7091. ac_check_lib_save_LIBS=$LIBS
  7092. LIBS="-lnsl $LIBS"
  7093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7094. /* end confdefs.h. */
  7095. /* Override any GCC internal prototype to avoid an error.
  7096. Use char because int might match the return type of a GCC
  7097. builtin and then its argument prototype would still apply. */
  7098. #ifdef __cplusplus
  7099. extern "C"
  7100. #endif
  7101. char gethostbyname ();
  7102. int
  7103. main ()
  7104. {
  7105. return gethostbyname ();
  7106. ;
  7107. return 0;
  7108. }
  7109. _ACEOF
  7110. if ac_fn_c_try_link "$LINENO"; then :
  7111. ac_cv_lib_nsl_gethostbyname=yes
  7112. else
  7113. ac_cv_lib_nsl_gethostbyname=no
  7114. fi
  7115. rm -f core conftest.err conftest.$ac_objext \
  7116. conftest$ac_exeext conftest.$ac_ext
  7117. LIBS=$ac_check_lib_save_LIBS
  7118. fi
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  7120. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  7121. if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  7122. cat >>confdefs.h <<_ACEOF
  7123. #define HAVE_LIBNSL 1
  7124. _ACEOF
  7125. LIBS="-lnsl $LIBS"
  7126. fi
  7127. # BFD conditionally uses zlib, so we must link it in if libbfd does, by
  7128. # using the same condition.
  7129. # Use the system's zlib library.
  7130. zlibdir="-L\$(top_builddir)/../zlib"
  7131. zlibinc="-I\$(top_srcdir)/../zlib"
  7132. # Check whether --with-system-zlib was given.
  7133. if test "${with_system_zlib+set}" = set; then :
  7134. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  7135. zlibdir=
  7136. zlibinc=
  7137. fi
  7138. fi
  7139. # BFD uses libdl when when plugins enabled.
  7140. maybe_plugins=no
  7141. for ac_header in dlfcn.h
  7142. do :
  7143. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7144. "
  7145. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7146. cat >>confdefs.h <<_ACEOF
  7147. #define HAVE_DLFCN_H 1
  7148. _ACEOF
  7149. maybe_plugins=yes
  7150. fi
  7151. done
  7152. for ac_header in windows.h
  7153. do :
  7154. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  7155. "
  7156. if test "x$ac_cv_header_windows_h" = x""yes; then :
  7157. cat >>confdefs.h <<_ACEOF
  7158. #define HAVE_WINDOWS_H 1
  7159. _ACEOF
  7160. maybe_plugins=yes
  7161. fi
  7162. done
  7163. # Check whether --enable-plugins was given.
  7164. if test "${enable_plugins+set}" = set; then :
  7165. enableval=$enable_plugins; case "${enableval}" in
  7166. no) plugins=no ;;
  7167. *) plugins=yes
  7168. if test "$maybe_plugins" != "yes" ; then
  7169. as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  7170. fi ;;
  7171. esac
  7172. else
  7173. plugins=$maybe_plugins
  7174. fi
  7175. if test "$plugins" = "yes"; then
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  7177. $as_echo_n "checking for library containing dlopen... " >&6; }
  7178. if test "${ac_cv_search_dlopen+set}" = set; then :
  7179. $as_echo_n "(cached) " >&6
  7180. else
  7181. ac_func_search_save_LIBS=$LIBS
  7182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7183. /* end confdefs.h. */
  7184. /* Override any GCC internal prototype to avoid an error.
  7185. Use char because int might match the return type of a GCC
  7186. builtin and then its argument prototype would still apply. */
  7187. #ifdef __cplusplus
  7188. extern "C"
  7189. #endif
  7190. char dlopen ();
  7191. int
  7192. main ()
  7193. {
  7194. return dlopen ();
  7195. ;
  7196. return 0;
  7197. }
  7198. _ACEOF
  7199. for ac_lib in '' dl; do
  7200. if test -z "$ac_lib"; then
  7201. ac_res="none required"
  7202. else
  7203. ac_res=-l$ac_lib
  7204. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7205. fi
  7206. if ac_fn_c_try_link "$LINENO"; then :
  7207. ac_cv_search_dlopen=$ac_res
  7208. fi
  7209. rm -f core conftest.err conftest.$ac_objext \
  7210. conftest$ac_exeext
  7211. if test "${ac_cv_search_dlopen+set}" = set; then :
  7212. break
  7213. fi
  7214. done
  7215. if test "${ac_cv_search_dlopen+set}" = set; then :
  7216. else
  7217. ac_cv_search_dlopen=no
  7218. fi
  7219. rm conftest.$ac_ext
  7220. LIBS=$ac_func_search_save_LIBS
  7221. fi
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  7223. $as_echo "$ac_cv_search_dlopen" >&6; }
  7224. ac_res=$ac_cv_search_dlopen
  7225. if test "$ac_res" != no; then :
  7226. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7227. fi
  7228. fi
  7229. if test "$plugins" = yes; then
  7230. PLUGINS_TRUE=
  7231. PLUGINS_FALSE='#'
  7232. else
  7233. PLUGINS_TRUE='#'
  7234. PLUGINS_FALSE=
  7235. fi
  7236. # Set options
  7237. enable_dlopen=yes
  7238. enable_win32_dll=no
  7239. # Check whether --enable-shared was given.
  7240. if test "${enable_shared+set}" = set; then :
  7241. enableval=$enable_shared; p=${PACKAGE-default}
  7242. case $enableval in
  7243. yes) enable_shared=yes ;;
  7244. no) enable_shared=no ;;
  7245. *)
  7246. enable_shared=no
  7247. # Look at the argument we got. We use all the common list separators.
  7248. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7249. for pkg in $enableval; do
  7250. IFS="$lt_save_ifs"
  7251. if test "X$pkg" = "X$p"; then
  7252. enable_shared=yes
  7253. fi
  7254. done
  7255. IFS="$lt_save_ifs"
  7256. ;;
  7257. esac
  7258. else
  7259. enable_shared=yes
  7260. fi
  7261. # Check whether --enable-static was given.
  7262. if test "${enable_static+set}" = set; then :
  7263. enableval=$enable_static; p=${PACKAGE-default}
  7264. case $enableval in
  7265. yes) enable_static=yes ;;
  7266. no) enable_static=no ;;
  7267. *)
  7268. enable_static=no
  7269. # Look at the argument we got. We use all the common list separators.
  7270. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7271. for pkg in $enableval; do
  7272. IFS="$lt_save_ifs"
  7273. if test "X$pkg" = "X$p"; then
  7274. enable_static=yes
  7275. fi
  7276. done
  7277. IFS="$lt_save_ifs"
  7278. ;;
  7279. esac
  7280. else
  7281. enable_static=yes
  7282. fi
  7283. # Check whether --with-pic was given.
  7284. if test "${with_pic+set}" = set; then :
  7285. withval=$with_pic; pic_mode="$withval"
  7286. else
  7287. pic_mode=default
  7288. fi
  7289. test -z "$pic_mode" && pic_mode=default
  7290. # Check whether --enable-fast-install was given.
  7291. if test "${enable_fast_install+set}" = set; then :
  7292. enableval=$enable_fast_install; p=${PACKAGE-default}
  7293. case $enableval in
  7294. yes) enable_fast_install=yes ;;
  7295. no) enable_fast_install=no ;;
  7296. *)
  7297. enable_fast_install=no
  7298. # Look at the argument we got. We use all the common list separators.
  7299. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7300. for pkg in $enableval; do
  7301. IFS="$lt_save_ifs"
  7302. if test "X$pkg" = "X$p"; then
  7303. enable_fast_install=yes
  7304. fi
  7305. done
  7306. IFS="$lt_save_ifs"
  7307. ;;
  7308. esac
  7309. else
  7310. enable_fast_install=yes
  7311. fi
  7312. # This can be used to rebuild libtool when needed
  7313. LIBTOOL_DEPS="$ltmain"
  7314. # Always use our own libtool.
  7315. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7316. test -z "$LN_S" && LN_S="ln -s"
  7317. if test -n "${ZSH_VERSION+set}" ; then
  7318. setopt NO_GLOB_SUBST
  7319. fi
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7321. $as_echo_n "checking for objdir... " >&6; }
  7322. if test "${lt_cv_objdir+set}" = set; then :
  7323. $as_echo_n "(cached) " >&6
  7324. else
  7325. rm -f .libs 2>/dev/null
  7326. mkdir .libs 2>/dev/null
  7327. if test -d .libs; then
  7328. lt_cv_objdir=.libs
  7329. else
  7330. # MS-DOS does not allow filenames that begin with a dot.
  7331. lt_cv_objdir=_libs
  7332. fi
  7333. rmdir .libs 2>/dev/null
  7334. fi
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7336. $as_echo "$lt_cv_objdir" >&6; }
  7337. objdir=$lt_cv_objdir
  7338. cat >>confdefs.h <<_ACEOF
  7339. #define LT_OBJDIR "$lt_cv_objdir/"
  7340. _ACEOF
  7341. case $host_os in
  7342. aix3*)
  7343. # AIX sometimes has problems with the GCC collect2 program. For some
  7344. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7345. # vanish in a puff of smoke.
  7346. if test "X${COLLECT_NAMES+set}" != Xset; then
  7347. COLLECT_NAMES=
  7348. export COLLECT_NAMES
  7349. fi
  7350. ;;
  7351. esac
  7352. # Global variables:
  7353. ofile=libtool
  7354. can_build_shared=yes
  7355. # All known linkers require a `.a' archive for static linking (except MSVC,
  7356. # which needs '.lib').
  7357. libext=a
  7358. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7359. old_CC="$CC"
  7360. old_CFLAGS="$CFLAGS"
  7361. # Set sane defaults for various variables
  7362. test -z "$CC" && CC=cc
  7363. test -z "$LTCC" && LTCC=$CC
  7364. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7365. test -z "$LD" && LD=ld
  7366. test -z "$ac_objext" && ac_objext=o
  7367. for cc_temp in $compiler""; do
  7368. case $cc_temp in
  7369. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7370. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7371. \-*) ;;
  7372. *) break;;
  7373. esac
  7374. done
  7375. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7376. # Only perform the check for file, if the check method requires it
  7377. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7378. case $deplibs_check_method in
  7379. file_magic*)
  7380. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7382. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7383. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7384. $as_echo_n "(cached) " >&6
  7385. else
  7386. case $MAGIC_CMD in
  7387. [\\/*] | ?:[\\/]*)
  7388. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7389. ;;
  7390. *)
  7391. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7392. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7393. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7394. for ac_dir in $ac_dummy; do
  7395. IFS="$lt_save_ifs"
  7396. test -z "$ac_dir" && ac_dir=.
  7397. if test -f $ac_dir/${ac_tool_prefix}file; then
  7398. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7399. if test -n "$file_magic_test_file"; then
  7400. case $deplibs_check_method in
  7401. "file_magic "*)
  7402. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7403. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7404. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7405. $EGREP "$file_magic_regex" > /dev/null; then
  7406. :
  7407. else
  7408. cat <<_LT_EOF 1>&2
  7409. *** Warning: the command libtool uses to detect shared libraries,
  7410. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7411. *** The result is that libtool may fail to recognize shared libraries
  7412. *** as such. This will affect the creation of libtool libraries that
  7413. *** depend on shared libraries, but programs linked with such libtool
  7414. *** libraries will work regardless of this problem. Nevertheless, you
  7415. *** may want to report the problem to your system manager and/or to
  7416. *** bug-libtool@gnu.org
  7417. _LT_EOF
  7418. fi ;;
  7419. esac
  7420. fi
  7421. break
  7422. fi
  7423. done
  7424. IFS="$lt_save_ifs"
  7425. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7426. ;;
  7427. esac
  7428. fi
  7429. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7430. if test -n "$MAGIC_CMD"; then
  7431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7432. $as_echo "$MAGIC_CMD" >&6; }
  7433. else
  7434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7435. $as_echo "no" >&6; }
  7436. fi
  7437. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7438. if test -n "$ac_tool_prefix"; then
  7439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7440. $as_echo_n "checking for file... " >&6; }
  7441. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7442. $as_echo_n "(cached) " >&6
  7443. else
  7444. case $MAGIC_CMD in
  7445. [\\/*] | ?:[\\/]*)
  7446. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7447. ;;
  7448. *)
  7449. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7450. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7451. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7452. for ac_dir in $ac_dummy; do
  7453. IFS="$lt_save_ifs"
  7454. test -z "$ac_dir" && ac_dir=.
  7455. if test -f $ac_dir/file; then
  7456. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7457. if test -n "$file_magic_test_file"; then
  7458. case $deplibs_check_method in
  7459. "file_magic "*)
  7460. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7461. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7462. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7463. $EGREP "$file_magic_regex" > /dev/null; then
  7464. :
  7465. else
  7466. cat <<_LT_EOF 1>&2
  7467. *** Warning: the command libtool uses to detect shared libraries,
  7468. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7469. *** The result is that libtool may fail to recognize shared libraries
  7470. *** as such. This will affect the creation of libtool libraries that
  7471. *** depend on shared libraries, but programs linked with such libtool
  7472. *** libraries will work regardless of this problem. Nevertheless, you
  7473. *** may want to report the problem to your system manager and/or to
  7474. *** bug-libtool@gnu.org
  7475. _LT_EOF
  7476. fi ;;
  7477. esac
  7478. fi
  7479. break
  7480. fi
  7481. done
  7482. IFS="$lt_save_ifs"
  7483. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7484. ;;
  7485. esac
  7486. fi
  7487. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7488. if test -n "$MAGIC_CMD"; then
  7489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7490. $as_echo "$MAGIC_CMD" >&6; }
  7491. else
  7492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7493. $as_echo "no" >&6; }
  7494. fi
  7495. else
  7496. MAGIC_CMD=:
  7497. fi
  7498. fi
  7499. fi
  7500. ;;
  7501. esac
  7502. # Use C for the default configuration in the libtool script
  7503. lt_save_CC="$CC"
  7504. ac_ext=c
  7505. ac_cpp='$CPP $CPPFLAGS'
  7506. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7507. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7508. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7509. # Source file extension for C test sources.
  7510. ac_ext=c
  7511. # Object file extension for compiled C test sources.
  7512. objext=o
  7513. objext=$objext
  7514. # Code to be used in simple compile tests
  7515. lt_simple_compile_test_code="int some_variable = 0;"
  7516. # Code to be used in simple link tests
  7517. lt_simple_link_test_code='int main(){return(0);}'
  7518. # If no C compiler was specified, use CC.
  7519. LTCC=${LTCC-"$CC"}
  7520. # If no C compiler flags were specified, use CFLAGS.
  7521. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7522. # Allow CC to be a program name with arguments.
  7523. compiler=$CC
  7524. # Save the default compiler, since it gets overwritten when the other
  7525. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7526. compiler_DEFAULT=$CC
  7527. # save warnings/boilerplate of simple test code
  7528. ac_outfile=conftest.$ac_objext
  7529. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7530. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7531. _lt_compiler_boilerplate=`cat conftest.err`
  7532. $RM conftest*
  7533. ac_outfile=conftest.$ac_objext
  7534. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7535. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7536. _lt_linker_boilerplate=`cat conftest.err`
  7537. $RM -r conftest*
  7538. ## CAVEAT EMPTOR:
  7539. ## There is no encapsulation within the following macros, do not change
  7540. ## the running order or otherwise move them around unless you know exactly
  7541. ## what you are doing...
  7542. if test -n "$compiler"; then
  7543. lt_prog_compiler_no_builtin_flag=
  7544. if test "$GCC" = yes; then
  7545. case $cc_basename in
  7546. nvcc*)
  7547. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7548. *)
  7549. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7550. esac
  7551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7552. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7553. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7554. $as_echo_n "(cached) " >&6
  7555. else
  7556. lt_cv_prog_compiler_rtti_exceptions=no
  7557. ac_outfile=conftest.$ac_objext
  7558. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7559. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7560. # Insert the option either (1) after the last *FLAGS variable, or
  7561. # (2) before a word containing "conftest.", or (3) at the end.
  7562. # Note that $ac_compile itself does not contain backslashes and begins
  7563. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7564. # The option is referenced via a variable to avoid confusing sed.
  7565. lt_compile=`echo "$ac_compile" | $SED \
  7566. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7567. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7568. -e 's:$: $lt_compiler_flag:'`
  7569. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7570. (eval "$lt_compile" 2>conftest.err)
  7571. ac_status=$?
  7572. cat conftest.err >&5
  7573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7574. if (exit $ac_status) && test -s "$ac_outfile"; then
  7575. # The compiler can only warn and ignore the option if not recognized
  7576. # So say no if there are warnings other than the usual output.
  7577. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7578. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7579. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7580. lt_cv_prog_compiler_rtti_exceptions=yes
  7581. fi
  7582. fi
  7583. $RM conftest*
  7584. fi
  7585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7586. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7587. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7588. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7589. else
  7590. :
  7591. fi
  7592. fi
  7593. lt_prog_compiler_wl=
  7594. lt_prog_compiler_pic=
  7595. lt_prog_compiler_static=
  7596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7597. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7598. if test "$GCC" = yes; then
  7599. lt_prog_compiler_wl='-Wl,'
  7600. lt_prog_compiler_static='-static'
  7601. case $host_os in
  7602. aix*)
  7603. # All AIX code is PIC.
  7604. if test "$host_cpu" = ia64; then
  7605. # AIX 5 now supports IA64 processor
  7606. lt_prog_compiler_static='-Bstatic'
  7607. fi
  7608. lt_prog_compiler_pic='-fPIC'
  7609. ;;
  7610. amigaos*)
  7611. case $host_cpu in
  7612. powerpc)
  7613. # see comment about AmigaOS4 .so support
  7614. lt_prog_compiler_pic='-fPIC'
  7615. ;;
  7616. m68k)
  7617. # FIXME: we need at least 68020 code to build shared libraries, but
  7618. # adding the `-m68020' flag to GCC prevents building anything better,
  7619. # like `-m68040'.
  7620. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7621. ;;
  7622. esac
  7623. ;;
  7624. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7625. # PIC is the default for these OSes.
  7626. ;;
  7627. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7628. # This hack is so that the source file can tell whether it is being
  7629. # built for inclusion in a dll (and should export symbols for example).
  7630. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7631. # (--disable-auto-import) libraries
  7632. lt_prog_compiler_pic='-DDLL_EXPORT'
  7633. ;;
  7634. darwin* | rhapsody*)
  7635. # PIC is the default on this platform
  7636. # Common symbols not allowed in MH_DYLIB files
  7637. lt_prog_compiler_pic='-fno-common'
  7638. ;;
  7639. haiku*)
  7640. # PIC is the default for Haiku.
  7641. # The "-static" flag exists, but is broken.
  7642. lt_prog_compiler_static=
  7643. ;;
  7644. hpux*)
  7645. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7646. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7647. # sets the default TLS model and affects inlining.
  7648. case $host_cpu in
  7649. hppa*64*)
  7650. # +Z the default
  7651. ;;
  7652. *)
  7653. lt_prog_compiler_pic='-fPIC'
  7654. ;;
  7655. esac
  7656. ;;
  7657. interix[3-9]*)
  7658. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7659. # Instead, we relocate shared libraries at runtime.
  7660. ;;
  7661. msdosdjgpp*)
  7662. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7663. # on systems that don't support them.
  7664. lt_prog_compiler_can_build_shared=no
  7665. enable_shared=no
  7666. ;;
  7667. *nto* | *qnx*)
  7668. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7669. # it will coredump.
  7670. lt_prog_compiler_pic='-fPIC -shared'
  7671. ;;
  7672. sysv4*MP*)
  7673. if test -d /usr/nec; then
  7674. lt_prog_compiler_pic=-Kconform_pic
  7675. fi
  7676. ;;
  7677. *)
  7678. lt_prog_compiler_pic='-fPIC'
  7679. ;;
  7680. esac
  7681. case $cc_basename in
  7682. nvcc*) # Cuda Compiler Driver 2.2
  7683. lt_prog_compiler_wl='-Xlinker '
  7684. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7685. ;;
  7686. esac
  7687. else
  7688. # PORTME Check for flag to pass linker flags through the system compiler.
  7689. case $host_os in
  7690. aix*)
  7691. lt_prog_compiler_wl='-Wl,'
  7692. if test "$host_cpu" = ia64; then
  7693. # AIX 5 now supports IA64 processor
  7694. lt_prog_compiler_static='-Bstatic'
  7695. else
  7696. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7697. fi
  7698. ;;
  7699. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7700. # This hack is so that the source file can tell whether it is being
  7701. # built for inclusion in a dll (and should export symbols for example).
  7702. lt_prog_compiler_pic='-DDLL_EXPORT'
  7703. ;;
  7704. hpux9* | hpux10* | hpux11*)
  7705. lt_prog_compiler_wl='-Wl,'
  7706. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7707. # not for PA HP-UX.
  7708. case $host_cpu in
  7709. hppa*64*|ia64*)
  7710. # +Z the default
  7711. ;;
  7712. *)
  7713. lt_prog_compiler_pic='+Z'
  7714. ;;
  7715. esac
  7716. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7717. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7718. ;;
  7719. irix5* | irix6* | nonstopux*)
  7720. lt_prog_compiler_wl='-Wl,'
  7721. # PIC (with -KPIC) is the default.
  7722. lt_prog_compiler_static='-non_shared'
  7723. ;;
  7724. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7725. case $cc_basename in
  7726. # old Intel for x86_64 which still supported -KPIC.
  7727. ecc*)
  7728. lt_prog_compiler_wl='-Wl,'
  7729. lt_prog_compiler_pic='-KPIC'
  7730. lt_prog_compiler_static='-static'
  7731. ;;
  7732. # icc used to be incompatible with GCC.
  7733. # ICC 10 doesn't accept -KPIC any more.
  7734. icc* | ifort*)
  7735. lt_prog_compiler_wl='-Wl,'
  7736. lt_prog_compiler_pic='-fPIC'
  7737. lt_prog_compiler_static='-static'
  7738. ;;
  7739. # Lahey Fortran 8.1.
  7740. lf95*)
  7741. lt_prog_compiler_wl='-Wl,'
  7742. lt_prog_compiler_pic='--shared'
  7743. lt_prog_compiler_static='--static'
  7744. ;;
  7745. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7746. # Portland Group compilers (*not* the Pentium gcc compiler,
  7747. # which looks to be a dead project)
  7748. lt_prog_compiler_wl='-Wl,'
  7749. lt_prog_compiler_pic='-fpic'
  7750. lt_prog_compiler_static='-Bstatic'
  7751. ;;
  7752. ccc*)
  7753. lt_prog_compiler_wl='-Wl,'
  7754. # All Alpha code is PIC.
  7755. lt_prog_compiler_static='-non_shared'
  7756. ;;
  7757. xl* | bgxl* | bgf* | mpixl*)
  7758. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7759. lt_prog_compiler_wl='-Wl,'
  7760. lt_prog_compiler_pic='-qpic'
  7761. lt_prog_compiler_static='-qstaticlink'
  7762. ;;
  7763. *)
  7764. case `$CC -V 2>&1 | sed 5q` in
  7765. *Sun\ F* | *Sun*Fortran*)
  7766. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7767. lt_prog_compiler_pic='-KPIC'
  7768. lt_prog_compiler_static='-Bstatic'
  7769. lt_prog_compiler_wl=''
  7770. ;;
  7771. *Sun\ C*)
  7772. # Sun C 5.9
  7773. lt_prog_compiler_pic='-KPIC'
  7774. lt_prog_compiler_static='-Bstatic'
  7775. lt_prog_compiler_wl='-Wl,'
  7776. ;;
  7777. esac
  7778. ;;
  7779. esac
  7780. ;;
  7781. newsos6)
  7782. lt_prog_compiler_pic='-KPIC'
  7783. lt_prog_compiler_static='-Bstatic'
  7784. ;;
  7785. *nto* | *qnx*)
  7786. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7787. # it will coredump.
  7788. lt_prog_compiler_pic='-fPIC -shared'
  7789. ;;
  7790. osf3* | osf4* | osf5*)
  7791. lt_prog_compiler_wl='-Wl,'
  7792. # All OSF/1 code is PIC.
  7793. lt_prog_compiler_static='-non_shared'
  7794. ;;
  7795. rdos*)
  7796. lt_prog_compiler_static='-non_shared'
  7797. ;;
  7798. solaris*)
  7799. lt_prog_compiler_pic='-KPIC'
  7800. lt_prog_compiler_static='-Bstatic'
  7801. case $cc_basename in
  7802. f77* | f90* | f95*)
  7803. lt_prog_compiler_wl='-Qoption ld ';;
  7804. *)
  7805. lt_prog_compiler_wl='-Wl,';;
  7806. esac
  7807. ;;
  7808. sunos4*)
  7809. lt_prog_compiler_wl='-Qoption ld '
  7810. lt_prog_compiler_pic='-PIC'
  7811. lt_prog_compiler_static='-Bstatic'
  7812. ;;
  7813. sysv4 | sysv4.2uw2* | sysv4.3*)
  7814. lt_prog_compiler_wl='-Wl,'
  7815. lt_prog_compiler_pic='-KPIC'
  7816. lt_prog_compiler_static='-Bstatic'
  7817. ;;
  7818. sysv4*MP*)
  7819. if test -d /usr/nec ;then
  7820. lt_prog_compiler_pic='-Kconform_pic'
  7821. lt_prog_compiler_static='-Bstatic'
  7822. fi
  7823. ;;
  7824. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7825. lt_prog_compiler_wl='-Wl,'
  7826. lt_prog_compiler_pic='-KPIC'
  7827. lt_prog_compiler_static='-Bstatic'
  7828. ;;
  7829. unicos*)
  7830. lt_prog_compiler_wl='-Wl,'
  7831. lt_prog_compiler_can_build_shared=no
  7832. ;;
  7833. uts4*)
  7834. lt_prog_compiler_pic='-pic'
  7835. lt_prog_compiler_static='-Bstatic'
  7836. ;;
  7837. *)
  7838. lt_prog_compiler_can_build_shared=no
  7839. ;;
  7840. esac
  7841. fi
  7842. case $host_os in
  7843. # For platforms which do not support PIC, -DPIC is meaningless:
  7844. *djgpp*)
  7845. lt_prog_compiler_pic=
  7846. ;;
  7847. *)
  7848. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7849. ;;
  7850. esac
  7851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7852. $as_echo "$lt_prog_compiler_pic" >&6; }
  7853. #
  7854. # Check to make sure the PIC flag actually works.
  7855. #
  7856. if test -n "$lt_prog_compiler_pic"; then
  7857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7858. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7859. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7860. $as_echo_n "(cached) " >&6
  7861. else
  7862. lt_cv_prog_compiler_pic_works=no
  7863. ac_outfile=conftest.$ac_objext
  7864. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7865. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7866. # Insert the option either (1) after the last *FLAGS variable, or
  7867. # (2) before a word containing "conftest.", or (3) at the end.
  7868. # Note that $ac_compile itself does not contain backslashes and begins
  7869. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7870. # The option is referenced via a variable to avoid confusing sed.
  7871. lt_compile=`echo "$ac_compile" | $SED \
  7872. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7873. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7874. -e 's:$: $lt_compiler_flag:'`
  7875. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7876. (eval "$lt_compile" 2>conftest.err)
  7877. ac_status=$?
  7878. cat conftest.err >&5
  7879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7880. if (exit $ac_status) && test -s "$ac_outfile"; then
  7881. # The compiler can only warn and ignore the option if not recognized
  7882. # So say no if there are warnings other than the usual output.
  7883. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7884. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7885. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7886. lt_cv_prog_compiler_pic_works=yes
  7887. fi
  7888. fi
  7889. $RM conftest*
  7890. fi
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7892. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7893. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7894. case $lt_prog_compiler_pic in
  7895. "" | " "*) ;;
  7896. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7897. esac
  7898. else
  7899. lt_prog_compiler_pic=
  7900. lt_prog_compiler_can_build_shared=no
  7901. fi
  7902. fi
  7903. #
  7904. # Check to make sure the static flag actually works.
  7905. #
  7906. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7908. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7909. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7910. $as_echo_n "(cached) " >&6
  7911. else
  7912. lt_cv_prog_compiler_static_works=no
  7913. save_LDFLAGS="$LDFLAGS"
  7914. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7915. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7916. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7917. # The linker can only warn and ignore the option if not recognized
  7918. # So say no if there are warnings
  7919. if test -s conftest.err; then
  7920. # Append any errors to the config.log.
  7921. cat conftest.err 1>&5
  7922. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7923. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7924. if diff conftest.exp conftest.er2 >/dev/null; then
  7925. lt_cv_prog_compiler_static_works=yes
  7926. fi
  7927. else
  7928. lt_cv_prog_compiler_static_works=yes
  7929. fi
  7930. fi
  7931. $RM -r conftest*
  7932. LDFLAGS="$save_LDFLAGS"
  7933. fi
  7934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7935. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7936. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7937. :
  7938. else
  7939. lt_prog_compiler_static=
  7940. fi
  7941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7942. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7943. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7944. $as_echo_n "(cached) " >&6
  7945. else
  7946. lt_cv_prog_compiler_c_o=no
  7947. $RM -r conftest 2>/dev/null
  7948. mkdir conftest
  7949. cd conftest
  7950. mkdir out
  7951. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7952. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7953. # Insert the option either (1) after the last *FLAGS variable, or
  7954. # (2) before a word containing "conftest.", or (3) at the end.
  7955. # Note that $ac_compile itself does not contain backslashes and begins
  7956. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7957. lt_compile=`echo "$ac_compile" | $SED \
  7958. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7959. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7960. -e 's:$: $lt_compiler_flag:'`
  7961. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7962. (eval "$lt_compile" 2>out/conftest.err)
  7963. ac_status=$?
  7964. cat out/conftest.err >&5
  7965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7966. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7967. then
  7968. # The compiler can only warn and ignore the option if not recognized
  7969. # So say no if there are warnings
  7970. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7971. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7972. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7973. lt_cv_prog_compiler_c_o=yes
  7974. fi
  7975. fi
  7976. chmod u+w . 2>&5
  7977. $RM conftest*
  7978. # SGI C++ compiler will create directory out/ii_files/ for
  7979. # template instantiation
  7980. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7981. $RM out/* && rmdir out
  7982. cd ..
  7983. $RM -r conftest
  7984. $RM conftest*
  7985. fi
  7986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7987. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7989. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7990. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7991. $as_echo_n "(cached) " >&6
  7992. else
  7993. lt_cv_prog_compiler_c_o=no
  7994. $RM -r conftest 2>/dev/null
  7995. mkdir conftest
  7996. cd conftest
  7997. mkdir out
  7998. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7999. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8000. # Insert the option either (1) after the last *FLAGS variable, or
  8001. # (2) before a word containing "conftest.", or (3) at the end.
  8002. # Note that $ac_compile itself does not contain backslashes and begins
  8003. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8004. lt_compile=`echo "$ac_compile" | $SED \
  8005. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8006. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8007. -e 's:$: $lt_compiler_flag:'`
  8008. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8009. (eval "$lt_compile" 2>out/conftest.err)
  8010. ac_status=$?
  8011. cat out/conftest.err >&5
  8012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8013. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8014. then
  8015. # The compiler can only warn and ignore the option if not recognized
  8016. # So say no if there are warnings
  8017. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8018. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8019. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8020. lt_cv_prog_compiler_c_o=yes
  8021. fi
  8022. fi
  8023. chmod u+w . 2>&5
  8024. $RM conftest*
  8025. # SGI C++ compiler will create directory out/ii_files/ for
  8026. # template instantiation
  8027. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8028. $RM out/* && rmdir out
  8029. cd ..
  8030. $RM -r conftest
  8031. $RM conftest*
  8032. fi
  8033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8034. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8035. hard_links="nottested"
  8036. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8037. # do not overwrite the value of need_locks provided by the user
  8038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8039. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8040. hard_links=yes
  8041. $RM conftest*
  8042. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8043. touch conftest.a
  8044. ln conftest.a conftest.b 2>&5 || hard_links=no
  8045. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8047. $as_echo "$hard_links" >&6; }
  8048. if test "$hard_links" = no; then
  8049. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8050. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8051. need_locks=warn
  8052. fi
  8053. else
  8054. need_locks=no
  8055. fi
  8056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8057. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8058. runpath_var=
  8059. allow_undefined_flag=
  8060. always_export_symbols=no
  8061. archive_cmds=
  8062. archive_expsym_cmds=
  8063. compiler_needs_object=no
  8064. enable_shared_with_static_runtimes=no
  8065. export_dynamic_flag_spec=
  8066. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8067. hardcode_automatic=no
  8068. hardcode_direct=no
  8069. hardcode_direct_absolute=no
  8070. hardcode_libdir_flag_spec=
  8071. hardcode_libdir_flag_spec_ld=
  8072. hardcode_libdir_separator=
  8073. hardcode_minus_L=no
  8074. hardcode_shlibpath_var=unsupported
  8075. inherit_rpath=no
  8076. link_all_deplibs=unknown
  8077. module_cmds=
  8078. module_expsym_cmds=
  8079. old_archive_from_new_cmds=
  8080. old_archive_from_expsyms_cmds=
  8081. thread_safe_flag_spec=
  8082. whole_archive_flag_spec=
  8083. # include_expsyms should be a list of space-separated symbols to be *always*
  8084. # included in the symbol list
  8085. include_expsyms=
  8086. # exclude_expsyms can be an extended regexp of symbols to exclude
  8087. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8088. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8089. # as well as any symbol that contains `d'.
  8090. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8091. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8092. # platforms (ab)use it in PIC code, but their linkers get confused if
  8093. # the symbol is explicitly referenced. Since portable code cannot
  8094. # rely on this symbol name, it's probably fine to never include it in
  8095. # preloaded symbol tables.
  8096. # Exclude shared library initialization/finalization symbols.
  8097. extract_expsyms_cmds=
  8098. case $host_os in
  8099. cygwin* | mingw* | pw32* | cegcc*)
  8100. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8101. # When not using gcc, we currently assume that we are using
  8102. # Microsoft Visual C++.
  8103. if test "$GCC" != yes; then
  8104. with_gnu_ld=no
  8105. fi
  8106. ;;
  8107. interix*)
  8108. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8109. with_gnu_ld=yes
  8110. ;;
  8111. openbsd*)
  8112. with_gnu_ld=no
  8113. ;;
  8114. esac
  8115. ld_shlibs=yes
  8116. # On some targets, GNU ld is compatible enough with the native linker
  8117. # that we're better off using the native interface for both.
  8118. lt_use_gnu_ld_interface=no
  8119. if test "$with_gnu_ld" = yes; then
  8120. case $host_os in
  8121. aix*)
  8122. # The AIX port of GNU ld has always aspired to compatibility
  8123. # with the native linker. However, as the warning in the GNU ld
  8124. # block says, versions before 2.19.5* couldn't really create working
  8125. # shared libraries, regardless of the interface used.
  8126. case `$LD -v 2>&1` in
  8127. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8128. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8129. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8130. *)
  8131. lt_use_gnu_ld_interface=yes
  8132. ;;
  8133. esac
  8134. ;;
  8135. *)
  8136. lt_use_gnu_ld_interface=yes
  8137. ;;
  8138. esac
  8139. fi
  8140. if test "$lt_use_gnu_ld_interface" = yes; then
  8141. # If archive_cmds runs LD, not CC, wlarc should be empty
  8142. wlarc='${wl}'
  8143. # Set some defaults for GNU ld with shared library support. These
  8144. # are reset later if shared libraries are not supported. Putting them
  8145. # here allows them to be overridden if necessary.
  8146. runpath_var=LD_RUN_PATH
  8147. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8148. export_dynamic_flag_spec='${wl}--export-dynamic'
  8149. # ancient GNU ld didn't support --whole-archive et. al.
  8150. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8151. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8152. else
  8153. whole_archive_flag_spec=
  8154. fi
  8155. supports_anon_versioning=no
  8156. case `$LD -v 2>&1` in
  8157. *GNU\ gold*) supports_anon_versioning=yes ;;
  8158. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8159. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8160. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8161. *\ 2.11.*) ;; # other 2.11 versions
  8162. *) supports_anon_versioning=yes ;;
  8163. esac
  8164. # See if GNU ld supports shared libraries.
  8165. case $host_os in
  8166. aix[3-9]*)
  8167. # On AIX/PPC, the GNU linker is very broken
  8168. if test "$host_cpu" != ia64; then
  8169. ld_shlibs=no
  8170. cat <<_LT_EOF 1>&2
  8171. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8172. *** to be unable to reliably create shared libraries on AIX.
  8173. *** Therefore, libtool is disabling shared libraries support. If you
  8174. *** really care for shared libraries, you may want to install binutils
  8175. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8176. *** You will then need to restart the configuration process.
  8177. _LT_EOF
  8178. fi
  8179. ;;
  8180. amigaos*)
  8181. case $host_cpu in
  8182. powerpc)
  8183. # see comment about AmigaOS4 .so support
  8184. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8185. archive_expsym_cmds=''
  8186. ;;
  8187. m68k)
  8188. 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)'
  8189. hardcode_libdir_flag_spec='-L$libdir'
  8190. hardcode_minus_L=yes
  8191. ;;
  8192. esac
  8193. ;;
  8194. beos*)
  8195. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8196. allow_undefined_flag=unsupported
  8197. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8198. # support --undefined. This deserves some investigation. FIXME
  8199. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8200. else
  8201. ld_shlibs=no
  8202. fi
  8203. ;;
  8204. cygwin* | mingw* | pw32* | cegcc*)
  8205. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8206. # as there is no search path for DLLs.
  8207. hardcode_libdir_flag_spec='-L$libdir'
  8208. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8209. allow_undefined_flag=unsupported
  8210. always_export_symbols=no
  8211. enable_shared_with_static_runtimes=yes
  8212. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8213. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8214. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8215. # If the export-symbols file already is a .def file (1st line
  8216. # is EXPORTS), use it as is; otherwise, prepend...
  8217. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8218. cp $export_symbols $output_objdir/$soname.def;
  8219. else
  8220. echo EXPORTS > $output_objdir/$soname.def;
  8221. cat $export_symbols >> $output_objdir/$soname.def;
  8222. fi~
  8223. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8224. else
  8225. ld_shlibs=no
  8226. fi
  8227. ;;
  8228. haiku*)
  8229. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8230. link_all_deplibs=yes
  8231. ;;
  8232. interix[3-9]*)
  8233. hardcode_direct=no
  8234. hardcode_shlibpath_var=no
  8235. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8236. export_dynamic_flag_spec='${wl}-E'
  8237. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8238. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8239. # default) and relocated if they conflict, which is a slow very memory
  8240. # consuming and fragmenting process. To avoid this, we pick a random,
  8241. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8242. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8243. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8244. 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'
  8245. ;;
  8246. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8247. tmp_diet=no
  8248. if test "$host_os" = linux-dietlibc; then
  8249. case $cc_basename in
  8250. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8251. esac
  8252. fi
  8253. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8254. && test "$tmp_diet" = no
  8255. then
  8256. tmp_addflag=' $pic_flag'
  8257. tmp_sharedflag='-shared'
  8258. case $cc_basename,$host_cpu in
  8259. pgcc*) # Portland Group C compiler
  8260. 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'
  8261. tmp_addflag=' $pic_flag'
  8262. ;;
  8263. pgf77* | pgf90* | pgf95* | pgfortran*)
  8264. # Portland Group f77 and f90 compilers
  8265. 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'
  8266. tmp_addflag=' $pic_flag -Mnomain' ;;
  8267. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8268. tmp_addflag=' -i_dynamic' ;;
  8269. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8270. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8271. ifc* | ifort*) # Intel Fortran compiler
  8272. tmp_addflag=' -nofor_main' ;;
  8273. lf95*) # Lahey Fortran 8.1
  8274. whole_archive_flag_spec=
  8275. tmp_sharedflag='--shared' ;;
  8276. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8277. tmp_sharedflag='-qmkshrobj'
  8278. tmp_addflag= ;;
  8279. nvcc*) # Cuda Compiler Driver 2.2
  8280. 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'
  8281. compiler_needs_object=yes
  8282. ;;
  8283. esac
  8284. case `$CC -V 2>&1 | sed 5q` in
  8285. *Sun\ C*) # Sun C 5.9
  8286. 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'
  8287. compiler_needs_object=yes
  8288. tmp_sharedflag='-G' ;;
  8289. *Sun\ F*) # Sun Fortran 8.3
  8290. tmp_sharedflag='-G' ;;
  8291. esac
  8292. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8293. if test "x$supports_anon_versioning" = xyes; then
  8294. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8295. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8296. echo "local: *; };" >> $output_objdir/$libname.ver~
  8297. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8298. fi
  8299. case $cc_basename in
  8300. xlf* | bgf* | bgxlf* | mpixlf*)
  8301. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8302. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8303. hardcode_libdir_flag_spec=
  8304. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8305. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8306. if test "x$supports_anon_versioning" = xyes; then
  8307. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8308. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8309. echo "local: *; };" >> $output_objdir/$libname.ver~
  8310. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8311. fi
  8312. ;;
  8313. esac
  8314. else
  8315. ld_shlibs=no
  8316. fi
  8317. ;;
  8318. netbsd*)
  8319. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8320. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8321. wlarc=
  8322. else
  8323. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8324. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8325. fi
  8326. ;;
  8327. solaris*)
  8328. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8329. ld_shlibs=no
  8330. cat <<_LT_EOF 1>&2
  8331. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8332. *** create shared libraries on Solaris systems. Therefore, libtool
  8333. *** is disabling shared libraries support. We urge you to upgrade GNU
  8334. *** binutils to release 2.9.1 or newer. Another option is to modify
  8335. *** your PATH or compiler configuration so that the native linker is
  8336. *** used, and then restart.
  8337. _LT_EOF
  8338. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8339. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8340. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8341. else
  8342. ld_shlibs=no
  8343. fi
  8344. ;;
  8345. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8346. case `$LD -v 2>&1` in
  8347. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8348. ld_shlibs=no
  8349. cat <<_LT_EOF 1>&2
  8350. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8351. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8352. *** is disabling shared libraries support. We urge you to upgrade GNU
  8353. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8354. *** your PATH or compiler configuration so that the native linker is
  8355. *** used, and then restart.
  8356. _LT_EOF
  8357. ;;
  8358. *)
  8359. # For security reasons, it is highly recommended that you always
  8360. # use absolute paths for naming shared libraries, and exclude the
  8361. # DT_RUNPATH tag from executables and libraries. But doing so
  8362. # requires that you compile everything twice, which is a pain.
  8363. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8364. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8365. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8366. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8367. else
  8368. ld_shlibs=no
  8369. fi
  8370. ;;
  8371. esac
  8372. ;;
  8373. sunos4*)
  8374. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8375. wlarc=
  8376. hardcode_direct=yes
  8377. hardcode_shlibpath_var=no
  8378. ;;
  8379. *)
  8380. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8381. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8382. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8383. else
  8384. ld_shlibs=no
  8385. fi
  8386. ;;
  8387. esac
  8388. if test "$ld_shlibs" = no; then
  8389. runpath_var=
  8390. hardcode_libdir_flag_spec=
  8391. export_dynamic_flag_spec=
  8392. whole_archive_flag_spec=
  8393. fi
  8394. else
  8395. # PORTME fill in a description of your system's linker (not GNU ld)
  8396. case $host_os in
  8397. aix3*)
  8398. allow_undefined_flag=unsupported
  8399. always_export_symbols=yes
  8400. 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'
  8401. # Note: this linker hardcodes the directories in LIBPATH if there
  8402. # are no directories specified by -L.
  8403. hardcode_minus_L=yes
  8404. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8405. # Neither direct hardcoding nor static linking is supported with a
  8406. # broken collect2.
  8407. hardcode_direct=unsupported
  8408. fi
  8409. ;;
  8410. aix[4-9]*)
  8411. if test "$host_cpu" = ia64; then
  8412. # On IA64, the linker does run time linking by default, so we don't
  8413. # have to do anything special.
  8414. aix_use_runtimelinking=no
  8415. exp_sym_flag='-Bexport'
  8416. no_entry_flag=""
  8417. else
  8418. # If we're using GNU nm, then we don't want the "-C" option.
  8419. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8420. # Also, AIX nm treats weak defined symbols like other global
  8421. # defined symbols, whereas GNU nm marks them as "W".
  8422. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8423. 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'
  8424. else
  8425. 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'
  8426. fi
  8427. aix_use_runtimelinking=no
  8428. # Test if we are trying to use run time linking or normal
  8429. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8430. # need to do runtime linking.
  8431. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8432. for ld_flag in $LDFLAGS; do
  8433. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8434. aix_use_runtimelinking=yes
  8435. break
  8436. fi
  8437. done
  8438. ;;
  8439. esac
  8440. exp_sym_flag='-bexport'
  8441. no_entry_flag='-bnoentry'
  8442. fi
  8443. # When large executables or shared objects are built, AIX ld can
  8444. # have problems creating the table of contents. If linking a library
  8445. # or program results in "error TOC overflow" add -mminimal-toc to
  8446. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8447. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8448. archive_cmds=''
  8449. hardcode_direct=yes
  8450. hardcode_direct_absolute=yes
  8451. hardcode_libdir_separator=':'
  8452. link_all_deplibs=yes
  8453. file_list_spec='${wl}-f,'
  8454. if test "$GCC" = yes; then
  8455. case $host_os in aix4.[012]|aix4.[012].*)
  8456. # We only want to do this on AIX 4.2 and lower, the check
  8457. # below for broken collect2 doesn't work under 4.3+
  8458. collect2name=`${CC} -print-prog-name=collect2`
  8459. if test -f "$collect2name" &&
  8460. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8461. then
  8462. # We have reworked collect2
  8463. :
  8464. else
  8465. # We have old collect2
  8466. hardcode_direct=unsupported
  8467. # It fails to find uninstalled libraries when the uninstalled
  8468. # path is not listed in the libpath. Setting hardcode_minus_L
  8469. # to unsupported forces relinking
  8470. hardcode_minus_L=yes
  8471. hardcode_libdir_flag_spec='-L$libdir'
  8472. hardcode_libdir_separator=
  8473. fi
  8474. ;;
  8475. esac
  8476. shared_flag='-shared'
  8477. if test "$aix_use_runtimelinking" = yes; then
  8478. shared_flag="$shared_flag "'${wl}-G'
  8479. fi
  8480. else
  8481. # not using gcc
  8482. if test "$host_cpu" = ia64; then
  8483. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8484. # chokes on -Wl,-G. The following line is correct:
  8485. shared_flag='-G'
  8486. else
  8487. if test "$aix_use_runtimelinking" = yes; then
  8488. shared_flag='${wl}-G'
  8489. else
  8490. shared_flag='${wl}-bM:SRE'
  8491. fi
  8492. fi
  8493. fi
  8494. export_dynamic_flag_spec='${wl}-bexpall'
  8495. # It seems that -bexpall does not export symbols beginning with
  8496. # underscore (_), so it is better to generate a list of symbols to export.
  8497. always_export_symbols=yes
  8498. if test "$aix_use_runtimelinking" = yes; then
  8499. # Warning - without using the other runtime loading flags (-brtl),
  8500. # -berok will link without error, but may produce a broken library.
  8501. allow_undefined_flag='-berok'
  8502. # Determine the default libpath from the value encoded in an
  8503. # empty executable.
  8504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8505. /* end confdefs.h. */
  8506. int
  8507. main ()
  8508. {
  8509. ;
  8510. return 0;
  8511. }
  8512. _ACEOF
  8513. if ac_fn_c_try_link "$LINENO"; then :
  8514. lt_aix_libpath_sed='
  8515. /Import File Strings/,/^$/ {
  8516. /^0/ {
  8517. s/^0 *\(.*\)$/\1/
  8518. p
  8519. }
  8520. }'
  8521. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8522. # Check for a 64-bit object if we didn't find anything.
  8523. if test -z "$aix_libpath"; then
  8524. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8525. fi
  8526. fi
  8527. rm -f core conftest.err conftest.$ac_objext \
  8528. conftest$ac_exeext conftest.$ac_ext
  8529. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8530. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8531. 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"
  8532. else
  8533. if test "$host_cpu" = ia64; then
  8534. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8535. allow_undefined_flag="-z nodefs"
  8536. 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"
  8537. else
  8538. # Determine the default libpath from the value encoded in an
  8539. # empty executable.
  8540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8541. /* end confdefs.h. */
  8542. int
  8543. main ()
  8544. {
  8545. ;
  8546. return 0;
  8547. }
  8548. _ACEOF
  8549. if ac_fn_c_try_link "$LINENO"; then :
  8550. lt_aix_libpath_sed='
  8551. /Import File Strings/,/^$/ {
  8552. /^0/ {
  8553. s/^0 *\(.*\)$/\1/
  8554. p
  8555. }
  8556. }'
  8557. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8558. # Check for a 64-bit object if we didn't find anything.
  8559. if test -z "$aix_libpath"; then
  8560. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8561. fi
  8562. fi
  8563. rm -f core conftest.err conftest.$ac_objext \
  8564. conftest$ac_exeext conftest.$ac_ext
  8565. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8566. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8567. # Warning - without using the other run time loading flags,
  8568. # -berok will link without error, but may produce a broken library.
  8569. no_undefined_flag=' ${wl}-bernotok'
  8570. allow_undefined_flag=' ${wl}-berok'
  8571. if test "$with_gnu_ld" = yes; then
  8572. # We only use this code for GNU lds that support --whole-archive.
  8573. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8574. else
  8575. # Exported symbols can be pulled into shared objects from archives
  8576. whole_archive_flag_spec='$convenience'
  8577. fi
  8578. archive_cmds_need_lc=yes
  8579. # This is similar to how AIX traditionally builds its shared libraries.
  8580. 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'
  8581. fi
  8582. fi
  8583. ;;
  8584. amigaos*)
  8585. case $host_cpu in
  8586. powerpc)
  8587. # see comment about AmigaOS4 .so support
  8588. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8589. archive_expsym_cmds=''
  8590. ;;
  8591. m68k)
  8592. 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)'
  8593. hardcode_libdir_flag_spec='-L$libdir'
  8594. hardcode_minus_L=yes
  8595. ;;
  8596. esac
  8597. ;;
  8598. bsdi[45]*)
  8599. export_dynamic_flag_spec=-rdynamic
  8600. ;;
  8601. cygwin* | mingw* | pw32* | cegcc*)
  8602. # When not using gcc, we currently assume that we are using
  8603. # Microsoft Visual C++.
  8604. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8605. # no search path for DLLs.
  8606. hardcode_libdir_flag_spec=' '
  8607. allow_undefined_flag=unsupported
  8608. # Tell ltmain to make .lib files, not .a files.
  8609. libext=lib
  8610. # Tell ltmain to make .dll files, not .so files.
  8611. shrext_cmds=".dll"
  8612. # FIXME: Setting linknames here is a bad hack.
  8613. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8614. # The linker will automatically build a .lib file if we build a DLL.
  8615. old_archive_from_new_cmds='true'
  8616. # FIXME: Should let the user specify the lib program.
  8617. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8618. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8619. enable_shared_with_static_runtimes=yes
  8620. ;;
  8621. darwin* | rhapsody*)
  8622. archive_cmds_need_lc=no
  8623. hardcode_direct=no
  8624. hardcode_automatic=yes
  8625. hardcode_shlibpath_var=unsupported
  8626. if test "$lt_cv_ld_force_load" = "yes"; then
  8627. 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\"`'
  8628. else
  8629. whole_archive_flag_spec=''
  8630. fi
  8631. link_all_deplibs=yes
  8632. allow_undefined_flag="$_lt_dar_allow_undefined"
  8633. case $cc_basename in
  8634. ifort*) _lt_dar_can_shared=yes ;;
  8635. *) _lt_dar_can_shared=$GCC ;;
  8636. esac
  8637. if test "$_lt_dar_can_shared" = "yes"; then
  8638. output_verbose_link_cmd=func_echo_all
  8639. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8640. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8641. 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}"
  8642. 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}"
  8643. else
  8644. ld_shlibs=no
  8645. fi
  8646. ;;
  8647. dgux*)
  8648. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8649. hardcode_libdir_flag_spec='-L$libdir'
  8650. hardcode_shlibpath_var=no
  8651. ;;
  8652. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8653. # support. Future versions do this automatically, but an explicit c++rt0.o
  8654. # does not break anything, and helps significantly (at the cost of a little
  8655. # extra space).
  8656. freebsd2.2*)
  8657. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8658. hardcode_libdir_flag_spec='-R$libdir'
  8659. hardcode_direct=yes
  8660. hardcode_shlibpath_var=no
  8661. ;;
  8662. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8663. freebsd2.*)
  8664. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8665. hardcode_direct=yes
  8666. hardcode_minus_L=yes
  8667. hardcode_shlibpath_var=no
  8668. ;;
  8669. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8670. freebsd* | dragonfly*)
  8671. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8672. hardcode_libdir_flag_spec='-R$libdir'
  8673. hardcode_direct=yes
  8674. hardcode_shlibpath_var=no
  8675. ;;
  8676. hpux9*)
  8677. if test "$GCC" = yes; then
  8678. 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'
  8679. else
  8680. 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'
  8681. fi
  8682. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8683. hardcode_libdir_separator=:
  8684. hardcode_direct=yes
  8685. # hardcode_minus_L: Not really in the search PATH,
  8686. # but as the default location of the library.
  8687. hardcode_minus_L=yes
  8688. export_dynamic_flag_spec='${wl}-E'
  8689. ;;
  8690. hpux10*)
  8691. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8692. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8693. else
  8694. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8695. fi
  8696. if test "$with_gnu_ld" = no; then
  8697. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8698. hardcode_libdir_flag_spec_ld='+b $libdir'
  8699. hardcode_libdir_separator=:
  8700. hardcode_direct=yes
  8701. hardcode_direct_absolute=yes
  8702. export_dynamic_flag_spec='${wl}-E'
  8703. # hardcode_minus_L: Not really in the search PATH,
  8704. # but as the default location of the library.
  8705. hardcode_minus_L=yes
  8706. fi
  8707. ;;
  8708. hpux11*)
  8709. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8710. case $host_cpu in
  8711. hppa*64*)
  8712. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8713. ;;
  8714. ia64*)
  8715. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8716. ;;
  8717. *)
  8718. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8719. ;;
  8720. esac
  8721. else
  8722. case $host_cpu in
  8723. hppa*64*)
  8724. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8725. ;;
  8726. ia64*)
  8727. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8728. ;;
  8729. *)
  8730. # Older versions of the 11.00 compiler do not understand -b yet
  8731. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8733. $as_echo_n "checking if $CC understands -b... " >&6; }
  8734. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8735. $as_echo_n "(cached) " >&6
  8736. else
  8737. lt_cv_prog_compiler__b=no
  8738. save_LDFLAGS="$LDFLAGS"
  8739. LDFLAGS="$LDFLAGS -b"
  8740. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8741. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8742. # The linker can only warn and ignore the option if not recognized
  8743. # So say no if there are warnings
  8744. if test -s conftest.err; then
  8745. # Append any errors to the config.log.
  8746. cat conftest.err 1>&5
  8747. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8748. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8749. if diff conftest.exp conftest.er2 >/dev/null; then
  8750. lt_cv_prog_compiler__b=yes
  8751. fi
  8752. else
  8753. lt_cv_prog_compiler__b=yes
  8754. fi
  8755. fi
  8756. $RM -r conftest*
  8757. LDFLAGS="$save_LDFLAGS"
  8758. fi
  8759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8760. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8761. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8762. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8763. else
  8764. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8765. fi
  8766. ;;
  8767. esac
  8768. fi
  8769. if test "$with_gnu_ld" = no; then
  8770. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8771. hardcode_libdir_separator=:
  8772. case $host_cpu in
  8773. hppa*64*|ia64*)
  8774. hardcode_direct=no
  8775. hardcode_shlibpath_var=no
  8776. ;;
  8777. *)
  8778. hardcode_direct=yes
  8779. hardcode_direct_absolute=yes
  8780. export_dynamic_flag_spec='${wl}-E'
  8781. # hardcode_minus_L: Not really in the search PATH,
  8782. # but as the default location of the library.
  8783. hardcode_minus_L=yes
  8784. ;;
  8785. esac
  8786. fi
  8787. ;;
  8788. irix5* | irix6* | nonstopux*)
  8789. if test "$GCC" = yes; then
  8790. 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'
  8791. # Try to use the -exported_symbol ld option, if it does not
  8792. # work, assume that -exports_file does not work either and
  8793. # implicitly export all symbols.
  8794. save_LDFLAGS="$LDFLAGS"
  8795. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8797. /* end confdefs.h. */
  8798. int foo(void) {}
  8799. _ACEOF
  8800. if ac_fn_c_try_link "$LINENO"; then :
  8801. 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'
  8802. fi
  8803. rm -f core conftest.err conftest.$ac_objext \
  8804. conftest$ac_exeext conftest.$ac_ext
  8805. LDFLAGS="$save_LDFLAGS"
  8806. else
  8807. 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'
  8808. 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'
  8809. fi
  8810. archive_cmds_need_lc='no'
  8811. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8812. hardcode_libdir_separator=:
  8813. inherit_rpath=yes
  8814. link_all_deplibs=yes
  8815. ;;
  8816. netbsd*)
  8817. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8818. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8819. else
  8820. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8821. fi
  8822. hardcode_libdir_flag_spec='-R$libdir'
  8823. hardcode_direct=yes
  8824. hardcode_shlibpath_var=no
  8825. ;;
  8826. newsos6)
  8827. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8828. hardcode_direct=yes
  8829. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8830. hardcode_libdir_separator=:
  8831. hardcode_shlibpath_var=no
  8832. ;;
  8833. *nto* | *qnx*)
  8834. ;;
  8835. openbsd*)
  8836. if test -f /usr/libexec/ld.so; then
  8837. hardcode_direct=yes
  8838. hardcode_shlibpath_var=no
  8839. hardcode_direct_absolute=yes
  8840. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8841. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8842. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8843. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8844. export_dynamic_flag_spec='${wl}-E'
  8845. else
  8846. case $host_os in
  8847. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8848. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8849. hardcode_libdir_flag_spec='-R$libdir'
  8850. ;;
  8851. *)
  8852. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8853. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8854. ;;
  8855. esac
  8856. fi
  8857. else
  8858. ld_shlibs=no
  8859. fi
  8860. ;;
  8861. os2*)
  8862. hardcode_libdir_flag_spec='-L$libdir'
  8863. hardcode_minus_L=yes
  8864. allow_undefined_flag=unsupported
  8865. 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'
  8866. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8867. ;;
  8868. osf3*)
  8869. if test "$GCC" = yes; then
  8870. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8871. 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'
  8872. else
  8873. allow_undefined_flag=' -expect_unresolved \*'
  8874. 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'
  8875. fi
  8876. archive_cmds_need_lc='no'
  8877. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8878. hardcode_libdir_separator=:
  8879. ;;
  8880. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8881. if test "$GCC" = yes; then
  8882. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8883. 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'
  8884. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8885. else
  8886. allow_undefined_flag=' -expect_unresolved \*'
  8887. 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'
  8888. 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~
  8889. $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'
  8890. # Both c and cxx compiler support -rpath directly
  8891. hardcode_libdir_flag_spec='-rpath $libdir'
  8892. fi
  8893. archive_cmds_need_lc='no'
  8894. hardcode_libdir_separator=:
  8895. ;;
  8896. solaris*)
  8897. no_undefined_flag=' -z defs'
  8898. if test "$GCC" = yes; then
  8899. wlarc='${wl}'
  8900. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8901. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8902. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8903. else
  8904. case `$CC -V 2>&1` in
  8905. *"Compilers 5.0"*)
  8906. wlarc=''
  8907. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8908. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8909. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8910. ;;
  8911. *)
  8912. wlarc='${wl}'
  8913. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8914. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8915. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8916. ;;
  8917. esac
  8918. fi
  8919. hardcode_libdir_flag_spec='-R$libdir'
  8920. hardcode_shlibpath_var=no
  8921. case $host_os in
  8922. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8923. *)
  8924. # The compiler driver will combine and reorder linker options,
  8925. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8926. # but is careful enough not to reorder.
  8927. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8928. if test "$GCC" = yes; then
  8929. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8930. else
  8931. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8932. fi
  8933. ;;
  8934. esac
  8935. link_all_deplibs=yes
  8936. ;;
  8937. sunos4*)
  8938. if test "x$host_vendor" = xsequent; then
  8939. # Use $CC to link under sequent, because it throws in some extra .o
  8940. # files that make .init and .fini sections work.
  8941. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8942. else
  8943. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8944. fi
  8945. hardcode_libdir_flag_spec='-L$libdir'
  8946. hardcode_direct=yes
  8947. hardcode_minus_L=yes
  8948. hardcode_shlibpath_var=no
  8949. ;;
  8950. sysv4)
  8951. case $host_vendor in
  8952. sni)
  8953. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8954. hardcode_direct=yes # is this really true???
  8955. ;;
  8956. siemens)
  8957. ## LD is ld it makes a PLAMLIB
  8958. ## CC just makes a GrossModule.
  8959. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8960. reload_cmds='$CC -r -o $output$reload_objs'
  8961. hardcode_direct=no
  8962. ;;
  8963. motorola)
  8964. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8965. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8966. ;;
  8967. esac
  8968. runpath_var='LD_RUN_PATH'
  8969. hardcode_shlibpath_var=no
  8970. ;;
  8971. sysv4.3*)
  8972. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8973. hardcode_shlibpath_var=no
  8974. export_dynamic_flag_spec='-Bexport'
  8975. ;;
  8976. sysv4*MP*)
  8977. if test -d /usr/nec; then
  8978. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8979. hardcode_shlibpath_var=no
  8980. runpath_var=LD_RUN_PATH
  8981. hardcode_runpath_var=yes
  8982. ld_shlibs=yes
  8983. fi
  8984. ;;
  8985. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8986. no_undefined_flag='${wl}-z,text'
  8987. archive_cmds_need_lc=no
  8988. hardcode_shlibpath_var=no
  8989. runpath_var='LD_RUN_PATH'
  8990. if test "$GCC" = yes; then
  8991. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8992. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8993. else
  8994. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8995. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8996. fi
  8997. ;;
  8998. sysv5* | sco3.2v5* | sco5v6*)
  8999. # Note: We can NOT use -z defs as we might desire, because we do not
  9000. # link with -lc, and that would cause any symbols used from libc to
  9001. # always be unresolved, which means just about no library would
  9002. # ever link correctly. If we're not using GNU ld we use -z text
  9003. # though, which does catch some bad symbols but isn't as heavy-handed
  9004. # as -z defs.
  9005. no_undefined_flag='${wl}-z,text'
  9006. allow_undefined_flag='${wl}-z,nodefs'
  9007. archive_cmds_need_lc=no
  9008. hardcode_shlibpath_var=no
  9009. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9010. hardcode_libdir_separator=':'
  9011. link_all_deplibs=yes
  9012. export_dynamic_flag_spec='${wl}-Bexport'
  9013. runpath_var='LD_RUN_PATH'
  9014. if test "$GCC" = yes; then
  9015. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9016. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9017. else
  9018. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9019. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9020. fi
  9021. ;;
  9022. uts4*)
  9023. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9024. hardcode_libdir_flag_spec='-L$libdir'
  9025. hardcode_shlibpath_var=no
  9026. ;;
  9027. *)
  9028. ld_shlibs=no
  9029. ;;
  9030. esac
  9031. if test x$host_vendor = xsni; then
  9032. case $host in
  9033. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9034. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9035. ;;
  9036. esac
  9037. fi
  9038. fi
  9039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9040. $as_echo "$ld_shlibs" >&6; }
  9041. test "$ld_shlibs" = no && can_build_shared=no
  9042. with_gnu_ld=$with_gnu_ld
  9043. #
  9044. # Do we need to explicitly link libc?
  9045. #
  9046. case "x$archive_cmds_need_lc" in
  9047. x|xyes)
  9048. # Assume -lc should be added
  9049. archive_cmds_need_lc=yes
  9050. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9051. case $archive_cmds in
  9052. *'~'*)
  9053. # FIXME: we may have to deal with multi-command sequences.
  9054. ;;
  9055. '$CC '*)
  9056. # Test whether the compiler implicitly links with -lc since on some
  9057. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9058. # to ld, don't add -lc before -lgcc.
  9059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9060. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9061. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  9062. $as_echo_n "(cached) " >&6
  9063. else
  9064. $RM conftest*
  9065. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9066. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9067. (eval $ac_compile) 2>&5
  9068. ac_status=$?
  9069. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9070. test $ac_status = 0; } 2>conftest.err; then
  9071. soname=conftest
  9072. lib=conftest
  9073. libobjs=conftest.$ac_objext
  9074. deplibs=
  9075. wl=$lt_prog_compiler_wl
  9076. pic_flag=$lt_prog_compiler_pic
  9077. compiler_flags=-v
  9078. linker_flags=-v
  9079. verstring=
  9080. output_objdir=.
  9081. libname=conftest
  9082. lt_save_allow_undefined_flag=$allow_undefined_flag
  9083. allow_undefined_flag=
  9084. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9085. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9086. ac_status=$?
  9087. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9088. test $ac_status = 0; }
  9089. then
  9090. lt_cv_archive_cmds_need_lc=no
  9091. else
  9092. lt_cv_archive_cmds_need_lc=yes
  9093. fi
  9094. allow_undefined_flag=$lt_save_allow_undefined_flag
  9095. else
  9096. cat conftest.err 1>&5
  9097. fi
  9098. $RM conftest*
  9099. fi
  9100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9101. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9102. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9103. ;;
  9104. esac
  9105. fi
  9106. ;;
  9107. esac
  9108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9109. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9110. if test "$GCC" = yes; then
  9111. case $host_os in
  9112. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9113. *) lt_awk_arg="/^libraries:/" ;;
  9114. esac
  9115. case $host_os in
  9116. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9117. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9118. esac
  9119. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9120. case $lt_search_path_spec in
  9121. *\;*)
  9122. # if the path contains ";" then we assume it to be the separator
  9123. # otherwise default to the standard path separator (i.e. ":") - it is
  9124. # assumed that no part of a normal pathname contains ";" but that should
  9125. # okay in the real world where ";" in dirpaths is itself problematic.
  9126. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9127. ;;
  9128. *)
  9129. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9130. ;;
  9131. esac
  9132. # Ok, now we have the path, separated by spaces, we can step through it
  9133. # and add multilib dir if necessary.
  9134. lt_tmp_lt_search_path_spec=
  9135. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9136. for lt_sys_path in $lt_search_path_spec; do
  9137. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9138. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9139. else
  9140. test -d "$lt_sys_path" && \
  9141. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9142. fi
  9143. done
  9144. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9145. BEGIN {RS=" "; FS="/|\n";} {
  9146. lt_foo="";
  9147. lt_count=0;
  9148. for (lt_i = NF; lt_i > 0; lt_i--) {
  9149. if ($lt_i != "" && $lt_i != ".") {
  9150. if ($lt_i == "..") {
  9151. lt_count++;
  9152. } else {
  9153. if (lt_count == 0) {
  9154. lt_foo="/" $lt_i lt_foo;
  9155. } else {
  9156. lt_count--;
  9157. }
  9158. }
  9159. }
  9160. }
  9161. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9162. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9163. }'`
  9164. # AWK program above erroneously prepends '/' to C:/dos/paths
  9165. # for these hosts.
  9166. case $host_os in
  9167. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9168. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9169. esac
  9170. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9171. else
  9172. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9173. fi
  9174. library_names_spec=
  9175. libname_spec='lib$name'
  9176. soname_spec=
  9177. shrext_cmds=".so"
  9178. postinstall_cmds=
  9179. postuninstall_cmds=
  9180. finish_cmds=
  9181. finish_eval=
  9182. shlibpath_var=
  9183. shlibpath_overrides_runpath=unknown
  9184. version_type=none
  9185. dynamic_linker="$host_os ld.so"
  9186. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9187. need_lib_prefix=unknown
  9188. hardcode_into_libs=no
  9189. # when you set need_version to no, make sure it does not cause -set_version
  9190. # flags to be left without arguments
  9191. need_version=unknown
  9192. case $host_os in
  9193. aix3*)
  9194. version_type=linux
  9195. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9196. shlibpath_var=LIBPATH
  9197. # AIX 3 has no versioning support, so we append a major version to the name.
  9198. soname_spec='${libname}${release}${shared_ext}$major'
  9199. ;;
  9200. aix[4-9]*)
  9201. version_type=linux
  9202. need_lib_prefix=no
  9203. need_version=no
  9204. hardcode_into_libs=yes
  9205. if test "$host_cpu" = ia64; then
  9206. # AIX 5 supports IA64
  9207. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9208. shlibpath_var=LD_LIBRARY_PATH
  9209. else
  9210. # With GCC up to 2.95.x, collect2 would create an import file
  9211. # for dependence libraries. The import file would start with
  9212. # the line `#! .'. This would cause the generated library to
  9213. # depend on `.', always an invalid library. This was fixed in
  9214. # development snapshots of GCC prior to 3.0.
  9215. case $host_os in
  9216. aix4 | aix4.[01] | aix4.[01].*)
  9217. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9218. echo ' yes '
  9219. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9220. :
  9221. else
  9222. can_build_shared=no
  9223. fi
  9224. ;;
  9225. esac
  9226. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9227. # soname into executable. Probably we can add versioning support to
  9228. # collect2, so additional links can be useful in future.
  9229. if test "$aix_use_runtimelinking" = yes; then
  9230. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9231. # instead of lib<name>.a to let people know that these are not
  9232. # typical AIX shared libraries.
  9233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9234. else
  9235. # We preserve .a as extension for shared libraries through AIX4.2
  9236. # and later when we are not doing run time linking.
  9237. library_names_spec='${libname}${release}.a $libname.a'
  9238. soname_spec='${libname}${release}${shared_ext}$major'
  9239. fi
  9240. shlibpath_var=LIBPATH
  9241. fi
  9242. ;;
  9243. amigaos*)
  9244. case $host_cpu in
  9245. powerpc)
  9246. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9247. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9249. ;;
  9250. m68k)
  9251. library_names_spec='$libname.ixlibrary $libname.a'
  9252. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9253. 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'
  9254. ;;
  9255. esac
  9256. ;;
  9257. beos*)
  9258. library_names_spec='${libname}${shared_ext}'
  9259. dynamic_linker="$host_os ld.so"
  9260. shlibpath_var=LIBRARY_PATH
  9261. ;;
  9262. bsdi[45]*)
  9263. version_type=linux
  9264. need_version=no
  9265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9266. soname_spec='${libname}${release}${shared_ext}$major'
  9267. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9268. shlibpath_var=LD_LIBRARY_PATH
  9269. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9270. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9271. # the default ld.so.conf also contains /usr/contrib/lib and
  9272. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9273. # libtool to hard-code these into programs
  9274. ;;
  9275. cygwin* | mingw* | pw32* | cegcc*)
  9276. version_type=windows
  9277. shrext_cmds=".dll"
  9278. need_version=no
  9279. need_lib_prefix=no
  9280. case $GCC,$host_os in
  9281. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9282. library_names_spec='$libname.dll.a'
  9283. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9284. postinstall_cmds='base_file=`basename \${file}`~
  9285. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9286. dldir=$destdir/`dirname \$dlpath`~
  9287. test -d \$dldir || mkdir -p \$dldir~
  9288. $install_prog $dir/$dlname \$dldir/$dlname~
  9289. chmod a+x \$dldir/$dlname~
  9290. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9291. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9292. fi'
  9293. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9294. dlpath=$dir/\$dldll~
  9295. $RM \$dlpath'
  9296. shlibpath_overrides_runpath=yes
  9297. case $host_os in
  9298. cygwin*)
  9299. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9300. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9301. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9302. ;;
  9303. mingw* | cegcc*)
  9304. # MinGW DLLs use traditional 'lib' prefix
  9305. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9306. ;;
  9307. pw32*)
  9308. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9309. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9310. ;;
  9311. esac
  9312. ;;
  9313. *)
  9314. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9315. ;;
  9316. esac
  9317. dynamic_linker='Win32 ld.exe'
  9318. # FIXME: first we should search . and the directory the executable is in
  9319. shlibpath_var=PATH
  9320. ;;
  9321. darwin* | rhapsody*)
  9322. dynamic_linker="$host_os dyld"
  9323. version_type=darwin
  9324. need_lib_prefix=no
  9325. need_version=no
  9326. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9327. soname_spec='${libname}${release}${major}$shared_ext'
  9328. shlibpath_overrides_runpath=yes
  9329. shlibpath_var=DYLD_LIBRARY_PATH
  9330. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9331. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9332. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9333. ;;
  9334. dgux*)
  9335. version_type=linux
  9336. need_lib_prefix=no
  9337. need_version=no
  9338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9339. soname_spec='${libname}${release}${shared_ext}$major'
  9340. shlibpath_var=LD_LIBRARY_PATH
  9341. ;;
  9342. freebsd* | dragonfly*)
  9343. # DragonFly does not have aout. When/if they implement a new
  9344. # versioning mechanism, adjust this.
  9345. if test -x /usr/bin/objformat; then
  9346. objformat=`/usr/bin/objformat`
  9347. else
  9348. case $host_os in
  9349. freebsd[23].*) objformat=aout ;;
  9350. *) objformat=elf ;;
  9351. esac
  9352. fi
  9353. version_type=freebsd-$objformat
  9354. case $version_type in
  9355. freebsd-elf*)
  9356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9357. need_version=no
  9358. need_lib_prefix=no
  9359. ;;
  9360. freebsd-*)
  9361. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9362. need_version=yes
  9363. ;;
  9364. esac
  9365. shlibpath_var=LD_LIBRARY_PATH
  9366. case $host_os in
  9367. freebsd2.*)
  9368. shlibpath_overrides_runpath=yes
  9369. ;;
  9370. freebsd3.[01]* | freebsdelf3.[01]*)
  9371. shlibpath_overrides_runpath=yes
  9372. hardcode_into_libs=yes
  9373. ;;
  9374. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9375. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9376. shlibpath_overrides_runpath=no
  9377. hardcode_into_libs=yes
  9378. ;;
  9379. *) # from 4.6 on, and DragonFly
  9380. shlibpath_overrides_runpath=yes
  9381. hardcode_into_libs=yes
  9382. ;;
  9383. esac
  9384. ;;
  9385. gnu*)
  9386. version_type=linux
  9387. need_lib_prefix=no
  9388. need_version=no
  9389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9390. soname_spec='${libname}${release}${shared_ext}$major'
  9391. shlibpath_var=LD_LIBRARY_PATH
  9392. hardcode_into_libs=yes
  9393. ;;
  9394. haiku*)
  9395. version_type=linux
  9396. need_lib_prefix=no
  9397. need_version=no
  9398. dynamic_linker="$host_os runtime_loader"
  9399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9400. soname_spec='${libname}${release}${shared_ext}$major'
  9401. shlibpath_var=LIBRARY_PATH
  9402. shlibpath_overrides_runpath=yes
  9403. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9404. hardcode_into_libs=yes
  9405. ;;
  9406. hpux9* | hpux10* | hpux11*)
  9407. # Give a soname corresponding to the major version so that dld.sl refuses to
  9408. # link against other versions.
  9409. version_type=sunos
  9410. need_lib_prefix=no
  9411. need_version=no
  9412. case $host_cpu in
  9413. ia64*)
  9414. shrext_cmds='.so'
  9415. hardcode_into_libs=yes
  9416. dynamic_linker="$host_os dld.so"
  9417. shlibpath_var=LD_LIBRARY_PATH
  9418. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9420. soname_spec='${libname}${release}${shared_ext}$major'
  9421. if test "X$HPUX_IA64_MODE" = X32; then
  9422. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9423. else
  9424. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9425. fi
  9426. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9427. ;;
  9428. hppa*64*)
  9429. shrext_cmds='.sl'
  9430. hardcode_into_libs=yes
  9431. dynamic_linker="$host_os dld.sl"
  9432. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9433. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9435. soname_spec='${libname}${release}${shared_ext}$major'
  9436. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9437. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9438. ;;
  9439. *)
  9440. shrext_cmds='.sl'
  9441. dynamic_linker="$host_os dld.sl"
  9442. shlibpath_var=SHLIB_PATH
  9443. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9445. soname_spec='${libname}${release}${shared_ext}$major'
  9446. ;;
  9447. esac
  9448. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9449. postinstall_cmds='chmod 555 $lib'
  9450. # or fails outright, so override atomically:
  9451. install_override_mode=555
  9452. ;;
  9453. interix[3-9]*)
  9454. version_type=linux
  9455. need_lib_prefix=no
  9456. need_version=no
  9457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9458. soname_spec='${libname}${release}${shared_ext}$major'
  9459. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9460. shlibpath_var=LD_LIBRARY_PATH
  9461. shlibpath_overrides_runpath=no
  9462. hardcode_into_libs=yes
  9463. ;;
  9464. irix5* | irix6* | nonstopux*)
  9465. case $host_os in
  9466. nonstopux*) version_type=nonstopux ;;
  9467. *)
  9468. if test "$lt_cv_prog_gnu_ld" = yes; then
  9469. version_type=linux
  9470. else
  9471. version_type=irix
  9472. fi ;;
  9473. esac
  9474. need_lib_prefix=no
  9475. need_version=no
  9476. soname_spec='${libname}${release}${shared_ext}$major'
  9477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9478. case $host_os in
  9479. irix5* | nonstopux*)
  9480. libsuff= shlibsuff=
  9481. ;;
  9482. *)
  9483. case $LD in # libtool.m4 will add one of these switches to LD
  9484. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9485. libsuff= shlibsuff= libmagic=32-bit;;
  9486. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9487. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9488. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9489. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9490. *) libsuff= shlibsuff= libmagic=never-match;;
  9491. esac
  9492. ;;
  9493. esac
  9494. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9495. shlibpath_overrides_runpath=no
  9496. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9497. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9498. hardcode_into_libs=yes
  9499. ;;
  9500. # No shared lib support for Linux oldld, aout, or coff.
  9501. linux*oldld* | linux*aout* | linux*coff*)
  9502. dynamic_linker=no
  9503. ;;
  9504. # This must be Linux ELF.
  9505. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9506. version_type=linux
  9507. need_lib_prefix=no
  9508. need_version=no
  9509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9510. soname_spec='${libname}${release}${shared_ext}$major'
  9511. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9512. shlibpath_var=LD_LIBRARY_PATH
  9513. shlibpath_overrides_runpath=no
  9514. # Some binutils ld are patched to set DT_RUNPATH
  9515. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9516. $as_echo_n "(cached) " >&6
  9517. else
  9518. lt_cv_shlibpath_overrides_runpath=no
  9519. save_LDFLAGS=$LDFLAGS
  9520. save_libdir=$libdir
  9521. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9522. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9524. /* end confdefs.h. */
  9525. int
  9526. main ()
  9527. {
  9528. ;
  9529. return 0;
  9530. }
  9531. _ACEOF
  9532. if ac_fn_c_try_link "$LINENO"; then :
  9533. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9534. lt_cv_shlibpath_overrides_runpath=yes
  9535. fi
  9536. fi
  9537. rm -f core conftest.err conftest.$ac_objext \
  9538. conftest$ac_exeext conftest.$ac_ext
  9539. LDFLAGS=$save_LDFLAGS
  9540. libdir=$save_libdir
  9541. fi
  9542. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9543. # This implies no fast_install, which is unacceptable.
  9544. # Some rework will be needed to allow for fast_install
  9545. # before this can be enabled.
  9546. hardcode_into_libs=yes
  9547. # Append ld.so.conf contents to the search path
  9548. if test -f /etc/ld.so.conf; then
  9549. 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' ' '`
  9550. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9551. fi
  9552. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9553. # powerpc, because MkLinux only supported shared libraries with the
  9554. # GNU dynamic linker. Since this was broken with cross compilers,
  9555. # most powerpc-linux boxes support dynamic linking these days and
  9556. # people can always --disable-shared, the test was removed, and we
  9557. # assume the GNU/Linux dynamic linker is in use.
  9558. dynamic_linker='GNU/Linux ld.so'
  9559. ;;
  9560. netbsd*)
  9561. version_type=sunos
  9562. need_lib_prefix=no
  9563. need_version=no
  9564. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9565. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9566. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9567. dynamic_linker='NetBSD (a.out) ld.so'
  9568. else
  9569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9570. soname_spec='${libname}${release}${shared_ext}$major'
  9571. dynamic_linker='NetBSD ld.elf_so'
  9572. fi
  9573. shlibpath_var=LD_LIBRARY_PATH
  9574. shlibpath_overrides_runpath=yes
  9575. hardcode_into_libs=yes
  9576. ;;
  9577. newsos6)
  9578. version_type=linux
  9579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9580. shlibpath_var=LD_LIBRARY_PATH
  9581. shlibpath_overrides_runpath=yes
  9582. ;;
  9583. *nto* | *qnx*)
  9584. version_type=qnx
  9585. need_lib_prefix=no
  9586. need_version=no
  9587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9588. soname_spec='${libname}${release}${shared_ext}$major'
  9589. shlibpath_var=LD_LIBRARY_PATH
  9590. shlibpath_overrides_runpath=no
  9591. hardcode_into_libs=yes
  9592. dynamic_linker='ldqnx.so'
  9593. ;;
  9594. openbsd*)
  9595. version_type=sunos
  9596. sys_lib_dlsearch_path_spec="/usr/lib"
  9597. need_lib_prefix=no
  9598. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9599. case $host_os in
  9600. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9601. *) need_version=no ;;
  9602. esac
  9603. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9604. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9605. shlibpath_var=LD_LIBRARY_PATH
  9606. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9607. case $host_os in
  9608. openbsd2.[89] | openbsd2.[89].*)
  9609. shlibpath_overrides_runpath=no
  9610. ;;
  9611. *)
  9612. shlibpath_overrides_runpath=yes
  9613. ;;
  9614. esac
  9615. else
  9616. shlibpath_overrides_runpath=yes
  9617. fi
  9618. ;;
  9619. os2*)
  9620. libname_spec='$name'
  9621. shrext_cmds=".dll"
  9622. need_lib_prefix=no
  9623. library_names_spec='$libname${shared_ext} $libname.a'
  9624. dynamic_linker='OS/2 ld.exe'
  9625. shlibpath_var=LIBPATH
  9626. ;;
  9627. osf3* | osf4* | osf5*)
  9628. version_type=osf
  9629. need_lib_prefix=no
  9630. need_version=no
  9631. soname_spec='${libname}${release}${shared_ext}$major'
  9632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9633. shlibpath_var=LD_LIBRARY_PATH
  9634. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9635. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9636. ;;
  9637. rdos*)
  9638. dynamic_linker=no
  9639. ;;
  9640. solaris*)
  9641. version_type=linux
  9642. need_lib_prefix=no
  9643. need_version=no
  9644. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9645. soname_spec='${libname}${release}${shared_ext}$major'
  9646. shlibpath_var=LD_LIBRARY_PATH
  9647. shlibpath_overrides_runpath=yes
  9648. hardcode_into_libs=yes
  9649. # ldd complains unless libraries are executable
  9650. postinstall_cmds='chmod +x $lib'
  9651. ;;
  9652. sunos4*)
  9653. version_type=sunos
  9654. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9655. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9656. shlibpath_var=LD_LIBRARY_PATH
  9657. shlibpath_overrides_runpath=yes
  9658. if test "$with_gnu_ld" = yes; then
  9659. need_lib_prefix=no
  9660. fi
  9661. need_version=yes
  9662. ;;
  9663. sysv4 | sysv4.3*)
  9664. version_type=linux
  9665. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9666. soname_spec='${libname}${release}${shared_ext}$major'
  9667. shlibpath_var=LD_LIBRARY_PATH
  9668. case $host_vendor in
  9669. sni)
  9670. shlibpath_overrides_runpath=no
  9671. need_lib_prefix=no
  9672. runpath_var=LD_RUN_PATH
  9673. ;;
  9674. siemens)
  9675. need_lib_prefix=no
  9676. ;;
  9677. motorola)
  9678. need_lib_prefix=no
  9679. need_version=no
  9680. shlibpath_overrides_runpath=no
  9681. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9682. ;;
  9683. esac
  9684. ;;
  9685. sysv4*MP*)
  9686. if test -d /usr/nec ;then
  9687. version_type=linux
  9688. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9689. soname_spec='$libname${shared_ext}.$major'
  9690. shlibpath_var=LD_LIBRARY_PATH
  9691. fi
  9692. ;;
  9693. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9694. version_type=freebsd-elf
  9695. need_lib_prefix=no
  9696. need_version=no
  9697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9698. soname_spec='${libname}${release}${shared_ext}$major'
  9699. shlibpath_var=LD_LIBRARY_PATH
  9700. shlibpath_overrides_runpath=yes
  9701. hardcode_into_libs=yes
  9702. if test "$with_gnu_ld" = yes; then
  9703. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9704. else
  9705. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9706. case $host_os in
  9707. sco3.2v5*)
  9708. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9709. ;;
  9710. esac
  9711. fi
  9712. sys_lib_dlsearch_path_spec='/usr/lib'
  9713. ;;
  9714. tpf*)
  9715. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9716. version_type=linux
  9717. need_lib_prefix=no
  9718. need_version=no
  9719. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9720. shlibpath_var=LD_LIBRARY_PATH
  9721. shlibpath_overrides_runpath=no
  9722. hardcode_into_libs=yes
  9723. ;;
  9724. uts4*)
  9725. version_type=linux
  9726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9727. soname_spec='${libname}${release}${shared_ext}$major'
  9728. shlibpath_var=LD_LIBRARY_PATH
  9729. ;;
  9730. *)
  9731. dynamic_linker=no
  9732. ;;
  9733. esac
  9734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9735. $as_echo "$dynamic_linker" >&6; }
  9736. test "$dynamic_linker" = no && can_build_shared=no
  9737. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9738. if test "$GCC" = yes; then
  9739. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9740. fi
  9741. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9742. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9743. fi
  9744. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9745. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9746. fi
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9748. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9749. hardcode_action=
  9750. if test -n "$hardcode_libdir_flag_spec" ||
  9751. test -n "$runpath_var" ||
  9752. test "X$hardcode_automatic" = "Xyes" ; then
  9753. # We can hardcode non-existent directories.
  9754. if test "$hardcode_direct" != no &&
  9755. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9756. # have to relink, otherwise we might link with an installed library
  9757. # when we should be linking with a yet-to-be-installed one
  9758. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9759. test "$hardcode_minus_L" != no; then
  9760. # Linking always hardcodes the temporary library directory.
  9761. hardcode_action=relink
  9762. else
  9763. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9764. hardcode_action=immediate
  9765. fi
  9766. else
  9767. # We cannot hardcode anything, or else we can only hardcode existing
  9768. # directories.
  9769. hardcode_action=unsupported
  9770. fi
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9772. $as_echo "$hardcode_action" >&6; }
  9773. if test "$hardcode_action" = relink ||
  9774. test "$inherit_rpath" = yes; then
  9775. # Fast installation is not supported
  9776. enable_fast_install=no
  9777. elif test "$shlibpath_overrides_runpath" = yes ||
  9778. test "$enable_shared" = no; then
  9779. # Fast installation is not necessary
  9780. enable_fast_install=needless
  9781. fi
  9782. if test "x$enable_dlopen" != xyes; then
  9783. enable_dlopen=unknown
  9784. enable_dlopen_self=unknown
  9785. enable_dlopen_self_static=unknown
  9786. else
  9787. lt_cv_dlopen=no
  9788. lt_cv_dlopen_libs=
  9789. case $host_os in
  9790. beos*)
  9791. lt_cv_dlopen="load_add_on"
  9792. lt_cv_dlopen_libs=
  9793. lt_cv_dlopen_self=yes
  9794. ;;
  9795. mingw* | pw32* | cegcc*)
  9796. lt_cv_dlopen="LoadLibrary"
  9797. lt_cv_dlopen_libs=
  9798. ;;
  9799. cygwin*)
  9800. lt_cv_dlopen="dlopen"
  9801. lt_cv_dlopen_libs=
  9802. ;;
  9803. darwin*)
  9804. # if libdl is installed we need to link against it
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9806. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9807. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9808. $as_echo_n "(cached) " >&6
  9809. else
  9810. ac_check_lib_save_LIBS=$LIBS
  9811. LIBS="-ldl $LIBS"
  9812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9813. /* end confdefs.h. */
  9814. /* Override any GCC internal prototype to avoid an error.
  9815. Use char because int might match the return type of a GCC
  9816. builtin and then its argument prototype would still apply. */
  9817. #ifdef __cplusplus
  9818. extern "C"
  9819. #endif
  9820. char dlopen ();
  9821. int
  9822. main ()
  9823. {
  9824. return dlopen ();
  9825. ;
  9826. return 0;
  9827. }
  9828. _ACEOF
  9829. if ac_fn_c_try_link "$LINENO"; then :
  9830. ac_cv_lib_dl_dlopen=yes
  9831. else
  9832. ac_cv_lib_dl_dlopen=no
  9833. fi
  9834. rm -f core conftest.err conftest.$ac_objext \
  9835. conftest$ac_exeext conftest.$ac_ext
  9836. LIBS=$ac_check_lib_save_LIBS
  9837. fi
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9839. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9840. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9841. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9842. else
  9843. lt_cv_dlopen="dyld"
  9844. lt_cv_dlopen_libs=
  9845. lt_cv_dlopen_self=yes
  9846. fi
  9847. ;;
  9848. *)
  9849. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9850. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9851. lt_cv_dlopen="shl_load"
  9852. else
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9854. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9855. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9856. $as_echo_n "(cached) " >&6
  9857. else
  9858. ac_check_lib_save_LIBS=$LIBS
  9859. LIBS="-ldld $LIBS"
  9860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9861. /* end confdefs.h. */
  9862. /* Override any GCC internal prototype to avoid an error.
  9863. Use char because int might match the return type of a GCC
  9864. builtin and then its argument prototype would still apply. */
  9865. #ifdef __cplusplus
  9866. extern "C"
  9867. #endif
  9868. char shl_load ();
  9869. int
  9870. main ()
  9871. {
  9872. return shl_load ();
  9873. ;
  9874. return 0;
  9875. }
  9876. _ACEOF
  9877. if ac_fn_c_try_link "$LINENO"; then :
  9878. ac_cv_lib_dld_shl_load=yes
  9879. else
  9880. ac_cv_lib_dld_shl_load=no
  9881. fi
  9882. rm -f core conftest.err conftest.$ac_objext \
  9883. conftest$ac_exeext conftest.$ac_ext
  9884. LIBS=$ac_check_lib_save_LIBS
  9885. fi
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9887. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9888. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9889. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9890. else
  9891. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9892. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9893. lt_cv_dlopen="dlopen"
  9894. else
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9896. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9897. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9898. $as_echo_n "(cached) " >&6
  9899. else
  9900. ac_check_lib_save_LIBS=$LIBS
  9901. LIBS="-ldl $LIBS"
  9902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9903. /* end confdefs.h. */
  9904. /* Override any GCC internal prototype to avoid an error.
  9905. Use char because int might match the return type of a GCC
  9906. builtin and then its argument prototype would still apply. */
  9907. #ifdef __cplusplus
  9908. extern "C"
  9909. #endif
  9910. char dlopen ();
  9911. int
  9912. main ()
  9913. {
  9914. return dlopen ();
  9915. ;
  9916. return 0;
  9917. }
  9918. _ACEOF
  9919. if ac_fn_c_try_link "$LINENO"; then :
  9920. ac_cv_lib_dl_dlopen=yes
  9921. else
  9922. ac_cv_lib_dl_dlopen=no
  9923. fi
  9924. rm -f core conftest.err conftest.$ac_objext \
  9925. conftest$ac_exeext conftest.$ac_ext
  9926. LIBS=$ac_check_lib_save_LIBS
  9927. fi
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9929. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9930. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9931. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9932. else
  9933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9934. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9935. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9936. $as_echo_n "(cached) " >&6
  9937. else
  9938. ac_check_lib_save_LIBS=$LIBS
  9939. LIBS="-lsvld $LIBS"
  9940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9941. /* end confdefs.h. */
  9942. /* Override any GCC internal prototype to avoid an error.
  9943. Use char because int might match the return type of a GCC
  9944. builtin and then its argument prototype would still apply. */
  9945. #ifdef __cplusplus
  9946. extern "C"
  9947. #endif
  9948. char dlopen ();
  9949. int
  9950. main ()
  9951. {
  9952. return dlopen ();
  9953. ;
  9954. return 0;
  9955. }
  9956. _ACEOF
  9957. if ac_fn_c_try_link "$LINENO"; then :
  9958. ac_cv_lib_svld_dlopen=yes
  9959. else
  9960. ac_cv_lib_svld_dlopen=no
  9961. fi
  9962. rm -f core conftest.err conftest.$ac_objext \
  9963. conftest$ac_exeext conftest.$ac_ext
  9964. LIBS=$ac_check_lib_save_LIBS
  9965. fi
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9967. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9968. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9969. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9970. else
  9971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9972. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9973. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9974. $as_echo_n "(cached) " >&6
  9975. else
  9976. ac_check_lib_save_LIBS=$LIBS
  9977. LIBS="-ldld $LIBS"
  9978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9979. /* end confdefs.h. */
  9980. /* Override any GCC internal prototype to avoid an error.
  9981. Use char because int might match the return type of a GCC
  9982. builtin and then its argument prototype would still apply. */
  9983. #ifdef __cplusplus
  9984. extern "C"
  9985. #endif
  9986. char dld_link ();
  9987. int
  9988. main ()
  9989. {
  9990. return dld_link ();
  9991. ;
  9992. return 0;
  9993. }
  9994. _ACEOF
  9995. if ac_fn_c_try_link "$LINENO"; then :
  9996. ac_cv_lib_dld_dld_link=yes
  9997. else
  9998. ac_cv_lib_dld_dld_link=no
  9999. fi
  10000. rm -f core conftest.err conftest.$ac_objext \
  10001. conftest$ac_exeext conftest.$ac_ext
  10002. LIBS=$ac_check_lib_save_LIBS
  10003. fi
  10004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10005. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10006. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10007. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10008. fi
  10009. fi
  10010. fi
  10011. fi
  10012. fi
  10013. fi
  10014. ;;
  10015. esac
  10016. if test "x$lt_cv_dlopen" != xno; then
  10017. enable_dlopen=yes
  10018. else
  10019. enable_dlopen=no
  10020. fi
  10021. case $lt_cv_dlopen in
  10022. dlopen)
  10023. save_CPPFLAGS="$CPPFLAGS"
  10024. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10025. save_LDFLAGS="$LDFLAGS"
  10026. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10027. save_LIBS="$LIBS"
  10028. LIBS="$lt_cv_dlopen_libs $LIBS"
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10030. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10031. if test "${lt_cv_dlopen_self+set}" = set; then :
  10032. $as_echo_n "(cached) " >&6
  10033. else
  10034. if test "$cross_compiling" = yes; then :
  10035. lt_cv_dlopen_self=cross
  10036. else
  10037. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10038. lt_status=$lt_dlunknown
  10039. cat > conftest.$ac_ext <<_LT_EOF
  10040. #line 12326 "configure"
  10041. #include "confdefs.h"
  10042. #if HAVE_DLFCN_H
  10043. #include <dlfcn.h>
  10044. #endif
  10045. #include <stdio.h>
  10046. #ifdef RTLD_GLOBAL
  10047. # define LT_DLGLOBAL RTLD_GLOBAL
  10048. #else
  10049. # ifdef DL_GLOBAL
  10050. # define LT_DLGLOBAL DL_GLOBAL
  10051. # else
  10052. # define LT_DLGLOBAL 0
  10053. # endif
  10054. #endif
  10055. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10056. find out it does not work in some platform. */
  10057. #ifndef LT_DLLAZY_OR_NOW
  10058. # ifdef RTLD_LAZY
  10059. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10060. # else
  10061. # ifdef DL_LAZY
  10062. # define LT_DLLAZY_OR_NOW DL_LAZY
  10063. # else
  10064. # ifdef RTLD_NOW
  10065. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10066. # else
  10067. # ifdef DL_NOW
  10068. # define LT_DLLAZY_OR_NOW DL_NOW
  10069. # else
  10070. # define LT_DLLAZY_OR_NOW 0
  10071. # endif
  10072. # endif
  10073. # endif
  10074. # endif
  10075. #endif
  10076. /* When -fvisbility=hidden is used, assume the code has been annotated
  10077. correspondingly for the symbols needed. */
  10078. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10079. void fnord () __attribute__((visibility("default")));
  10080. #endif
  10081. void fnord () { int i=42; }
  10082. int main ()
  10083. {
  10084. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10085. int status = $lt_dlunknown;
  10086. if (self)
  10087. {
  10088. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10089. else
  10090. {
  10091. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10092. else puts (dlerror ());
  10093. }
  10094. /* dlclose (self); */
  10095. }
  10096. else
  10097. puts (dlerror ());
  10098. return status;
  10099. }
  10100. _LT_EOF
  10101. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10102. (eval $ac_link) 2>&5
  10103. ac_status=$?
  10104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10105. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10106. (./conftest; exit; ) >&5 2>/dev/null
  10107. lt_status=$?
  10108. case x$lt_status in
  10109. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10110. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10111. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10112. esac
  10113. else :
  10114. # compilation failed
  10115. lt_cv_dlopen_self=no
  10116. fi
  10117. fi
  10118. rm -fr conftest*
  10119. fi
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10121. $as_echo "$lt_cv_dlopen_self" >&6; }
  10122. if test "x$lt_cv_dlopen_self" = xyes; then
  10123. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10125. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10126. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10127. $as_echo_n "(cached) " >&6
  10128. else
  10129. if test "$cross_compiling" = yes; then :
  10130. lt_cv_dlopen_self_static=cross
  10131. else
  10132. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10133. lt_status=$lt_dlunknown
  10134. cat > conftest.$ac_ext <<_LT_EOF
  10135. #line 12432 "configure"
  10136. #include "confdefs.h"
  10137. #if HAVE_DLFCN_H
  10138. #include <dlfcn.h>
  10139. #endif
  10140. #include <stdio.h>
  10141. #ifdef RTLD_GLOBAL
  10142. # define LT_DLGLOBAL RTLD_GLOBAL
  10143. #else
  10144. # ifdef DL_GLOBAL
  10145. # define LT_DLGLOBAL DL_GLOBAL
  10146. # else
  10147. # define LT_DLGLOBAL 0
  10148. # endif
  10149. #endif
  10150. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10151. find out it does not work in some platform. */
  10152. #ifndef LT_DLLAZY_OR_NOW
  10153. # ifdef RTLD_LAZY
  10154. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10155. # else
  10156. # ifdef DL_LAZY
  10157. # define LT_DLLAZY_OR_NOW DL_LAZY
  10158. # else
  10159. # ifdef RTLD_NOW
  10160. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10161. # else
  10162. # ifdef DL_NOW
  10163. # define LT_DLLAZY_OR_NOW DL_NOW
  10164. # else
  10165. # define LT_DLLAZY_OR_NOW 0
  10166. # endif
  10167. # endif
  10168. # endif
  10169. # endif
  10170. #endif
  10171. /* When -fvisbility=hidden is used, assume the code has been annotated
  10172. correspondingly for the symbols needed. */
  10173. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10174. void fnord () __attribute__((visibility("default")));
  10175. #endif
  10176. void fnord () { int i=42; }
  10177. int main ()
  10178. {
  10179. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10180. int status = $lt_dlunknown;
  10181. if (self)
  10182. {
  10183. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10184. else
  10185. {
  10186. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10187. else puts (dlerror ());
  10188. }
  10189. /* dlclose (self); */
  10190. }
  10191. else
  10192. puts (dlerror ());
  10193. return status;
  10194. }
  10195. _LT_EOF
  10196. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10197. (eval $ac_link) 2>&5
  10198. ac_status=$?
  10199. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10200. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10201. (./conftest; exit; ) >&5 2>/dev/null
  10202. lt_status=$?
  10203. case x$lt_status in
  10204. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10205. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10206. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10207. esac
  10208. else :
  10209. # compilation failed
  10210. lt_cv_dlopen_self_static=no
  10211. fi
  10212. fi
  10213. rm -fr conftest*
  10214. fi
  10215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10216. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10217. fi
  10218. CPPFLAGS="$save_CPPFLAGS"
  10219. LDFLAGS="$save_LDFLAGS"
  10220. LIBS="$save_LIBS"
  10221. ;;
  10222. esac
  10223. case $lt_cv_dlopen_self in
  10224. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10225. *) enable_dlopen_self=unknown ;;
  10226. esac
  10227. case $lt_cv_dlopen_self_static in
  10228. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10229. *) enable_dlopen_self_static=unknown ;;
  10230. esac
  10231. fi
  10232. striplib=
  10233. old_striplib=
  10234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10235. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10236. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10237. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10238. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10240. $as_echo "yes" >&6; }
  10241. else
  10242. # FIXME - insert some real tests, host_os isn't really good enough
  10243. case $host_os in
  10244. darwin*)
  10245. if test -n "$STRIP" ; then
  10246. striplib="$STRIP -x"
  10247. old_striplib="$STRIP -S"
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10249. $as_echo "yes" >&6; }
  10250. else
  10251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10252. $as_echo "no" >&6; }
  10253. fi
  10254. ;;
  10255. *)
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10257. $as_echo "no" >&6; }
  10258. ;;
  10259. esac
  10260. fi
  10261. # Report which library types will actually be built
  10262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10263. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10265. $as_echo "$can_build_shared" >&6; }
  10266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10267. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10268. test "$can_build_shared" = "no" && enable_shared=no
  10269. # On AIX, shared libraries and static libraries use the same namespace, and
  10270. # are all built from PIC.
  10271. case $host_os in
  10272. aix3*)
  10273. test "$enable_shared" = yes && enable_static=no
  10274. if test -n "$RANLIB"; then
  10275. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10276. postinstall_cmds='$RANLIB $lib'
  10277. fi
  10278. ;;
  10279. aix[4-9]*)
  10280. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10281. test "$enable_shared" = yes && enable_static=no
  10282. fi
  10283. ;;
  10284. esac
  10285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10286. $as_echo "$enable_shared" >&6; }
  10287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10288. $as_echo_n "checking whether to build static libraries... " >&6; }
  10289. # Make sure either enable_shared or enable_static is yes.
  10290. test "$enable_shared" = yes || enable_static=yes
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10292. $as_echo "$enable_static" >&6; }
  10293. fi
  10294. ac_ext=c
  10295. ac_cpp='$CPP $CPPFLAGS'
  10296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10299. CC="$lt_save_CC"
  10300. ac_config_commands="$ac_config_commands libtool"
  10301. # Only expand once:
  10302. . ${srcdir}/../../bfd/configure.host
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10304. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10305. # Check whether --enable-maintainer-mode was given.
  10306. if test "${enable_maintainer_mode+set}" = set; then :
  10307. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10308. else
  10309. USE_MAINTAINER_MODE=no
  10310. fi
  10311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10312. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10313. if test $USE_MAINTAINER_MODE = yes; then
  10314. MAINTAINER_MODE_TRUE=
  10315. MAINTAINER_MODE_FALSE='#'
  10316. else
  10317. MAINTAINER_MODE_TRUE='#'
  10318. MAINTAINER_MODE_FALSE=
  10319. fi
  10320. MAINT=$MAINTAINER_MODE_TRUE
  10321. # Check whether --enable-sim-bswap was given.
  10322. if test "${enable_sim_bswap+set}" = set; then :
  10323. enableval=$enable_sim_bswap; case "${enableval}" in
  10324. yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
  10325. no) sim_bswap="-DWITH_BSWAP=0";;
  10326. *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
  10327. esac
  10328. if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
  10329. echo "Setting bswap flags = $sim_bswap" 6>&1
  10330. fi
  10331. else
  10332. sim_bswap=""
  10333. fi
  10334. # Check whether --enable-sim-cflags was given.
  10335. if test "${enable_sim_cflags+set}" = set; then :
  10336. enableval=$enable_sim_cflags; case "${enableval}" in
  10337. yes) sim_cflags="-O2 -fomit-frame-pointer";;
  10338. trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
  10339. no) sim_cflags="";;
  10340. *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10341. esac
  10342. if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
  10343. echo "Setting sim cflags = $sim_cflags" 6>&1
  10344. fi
  10345. else
  10346. sim_cflags=""
  10347. fi
  10348. # Check whether --enable-sim-debug was given.
  10349. if test "${enable_sim_debug+set}" = set; then :
  10350. enableval=$enable_sim_debug; case "${enableval}" in
  10351. yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
  10352. no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
  10353. *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
  10354. esac
  10355. if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
  10356. echo "Setting sim debug = $sim_debug" 6>&1
  10357. fi
  10358. else
  10359. sim_debug=""
  10360. fi
  10361. # Check whether --enable-sim-stdio was given.
  10362. if test "${enable_sim_stdio+set}" = set; then :
  10363. enableval=$enable_sim_stdio; case "${enableval}" in
  10364. yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
  10365. no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
  10366. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
  10367. esac
  10368. if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
  10369. echo "Setting stdio flags = $sim_stdio" 6>&1
  10370. fi
  10371. else
  10372. sim_stdio=""
  10373. fi
  10374. # Check whether --enable-sim-trace was given.
  10375. if test "${enable_sim_trace+set}" = set; then :
  10376. enableval=$enable_sim_trace; case "${enableval}" in
  10377. yes) sim_trace="-DWITH_TRACE=-1";;
  10378. no) sim_trace="-DWITH_TRACE=0";;
  10379. [-0-9]*)
  10380. sim_trace="-DWITH_TRACE='(${enableval})'";;
  10381. [[:lower:]]*)
  10382. sim_trace=""
  10383. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10384. if test x"$sim_trace" = x; then
  10385. sim_trace="-DWITH_TRACE='(TRACE_$x"
  10386. else
  10387. sim_trace="${sim_trace}|TRACE_$x"
  10388. fi
  10389. done
  10390. sim_trace="$sim_trace)'" ;;
  10391. esac
  10392. if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
  10393. echo "Setting sim trace = $sim_trace" 6>&1
  10394. fi
  10395. else
  10396. sim_trace=""
  10397. fi
  10398. # Check whether --enable-sim-profile was given.
  10399. if test "${enable_sim_profile+set}" = set; then :
  10400. enableval=$enable_sim_profile; case "${enableval}" in
  10401. yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
  10402. no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
  10403. [-0-9]*)
  10404. sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
  10405. [a-z]*)
  10406. sim_profile=""
  10407. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10408. if test x"$sim_profile" = x; then
  10409. sim_profile="-DWITH_PROFILE='(PROFILE_$x"
  10410. else
  10411. sim_profile="${sim_profile}|PROFILE_$x"
  10412. fi
  10413. done
  10414. sim_profile="$sim_profile)'" ;;
  10415. esac
  10416. if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
  10417. echo "Setting sim profile = $sim_profile" 6>&1
  10418. fi
  10419. else
  10420. sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
  10421. fi
  10422. # Check whether --with-pkgversion was given.
  10423. if test "${with_pkgversion+set}" = set; then :
  10424. withval=$with_pkgversion; case "$withval" in
  10425. yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
  10426. no) PKGVERSION= ;;
  10427. *) PKGVERSION="($withval) " ;;
  10428. esac
  10429. else
  10430. PKGVERSION="(SIM) "
  10431. fi
  10432. # Check whether --with-bugurl was given.
  10433. if test "${with_bugurl+set}" = set; then :
  10434. withval=$with_bugurl; case "$withval" in
  10435. yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
  10436. no) BUGURL=
  10437. ;;
  10438. *) BUGURL="$withval"
  10439. ;;
  10440. esac
  10441. else
  10442. BUGURL="http://www.gnu.org/software/gdb/bugs/"
  10443. fi
  10444. case ${BUGURL} in
  10445. "")
  10446. REPORT_BUGS_TO=
  10447. REPORT_BUGS_TEXI=
  10448. ;;
  10449. *)
  10450. REPORT_BUGS_TO="<$BUGURL>"
  10451. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  10452. ;;
  10453. esac;
  10454. cat >>confdefs.h <<_ACEOF
  10455. #define PKGVERSION "$PKGVERSION"
  10456. _ACEOF
  10457. cat >>confdefs.h <<_ACEOF
  10458. #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
  10459. _ACEOF
  10460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  10461. $as_echo_n "checking return type of signal handlers... " >&6; }
  10462. if test "${ac_cv_type_signal+set}" = set; then :
  10463. $as_echo_n "(cached) " >&6
  10464. else
  10465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10466. /* end confdefs.h. */
  10467. #include <sys/types.h>
  10468. #include <signal.h>
  10469. int
  10470. main ()
  10471. {
  10472. return *(signal (0, 0)) (0) == 1;
  10473. ;
  10474. return 0;
  10475. }
  10476. _ACEOF
  10477. if ac_fn_c_try_compile "$LINENO"; then :
  10478. ac_cv_type_signal=int
  10479. else
  10480. ac_cv_type_signal=void
  10481. fi
  10482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10483. fi
  10484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  10485. $as_echo "$ac_cv_type_signal" >&6; }
  10486. cat >>confdefs.h <<_ACEOF
  10487. #define RETSIGTYPE $ac_cv_type_signal
  10488. _ACEOF
  10489. sim_link_files=
  10490. sim_link_links=
  10491. # targ-vals.def points to the libc macro description file.
  10492. case "${target}" in
  10493. *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
  10494. esac
  10495. sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
  10496. sim_link_links="${sim_link_links} targ-vals.def"
  10497. wire_endian="BIG_ENDIAN"
  10498. default_endian=""
  10499. # Check whether --enable-sim-endian was given.
  10500. if test "${enable_sim_endian+set}" = set; then :
  10501. enableval=$enable_sim_endian; case "${enableval}" in
  10502. b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
  10503. l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
  10504. yes) if test x"$wire_endian" != x; then
  10505. sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
  10506. else
  10507. if test x"$default_endian" != x; then
  10508. sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
  10509. else
  10510. echo "No hard-wired endian for target $target" 1>&6
  10511. sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
  10512. fi
  10513. fi;;
  10514. no) if test x"$default_endian" != x; then
  10515. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
  10516. else
  10517. if test x"$wire_endian" != x; then
  10518. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
  10519. else
  10520. echo "No default endian for target $target" 1>&6
  10521. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
  10522. fi
  10523. fi;;
  10524. *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
  10525. esac
  10526. if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
  10527. echo "Setting endian flags = $sim_endian" 6>&1
  10528. fi
  10529. else
  10530. if test x"$default_endian" != x; then
  10531. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
  10532. else
  10533. if test x"$wire_endian" != x; then
  10534. sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
  10535. else
  10536. sim_endian=
  10537. fi
  10538. fi
  10539. fi
  10540. wire_alignment="STRICT_ALIGNMENT"
  10541. default_alignment=""
  10542. # Check whether --enable-sim-alignment was given.
  10543. if test "${enable_sim_alignment+set}" = set; then :
  10544. enableval=$enable_sim_alignment; case "${enableval}" in
  10545. strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
  10546. nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
  10547. forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
  10548. yes) if test x"$wire_alignment" != x; then
  10549. sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
  10550. else
  10551. if test x"$default_alignment" != x; then
  10552. sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
  10553. else
  10554. echo "No hard-wired alignment for target $target" 1>&6
  10555. sim_alignment="-DWITH_ALIGNMENT=0"
  10556. fi
  10557. fi;;
  10558. no) if test x"$default_alignment" != x; then
  10559. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
  10560. else
  10561. if test x"$wire_alignment" != x; then
  10562. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
  10563. else
  10564. echo "No default alignment for target $target" 1>&6
  10565. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
  10566. fi
  10567. fi;;
  10568. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
  10569. esac
  10570. if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
  10571. echo "Setting alignment flags = $sim_alignment" 6>&1
  10572. fi
  10573. else
  10574. if test x"$default_alignment" != x; then
  10575. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
  10576. else
  10577. if test x"$wire_alignment" != x; then
  10578. sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
  10579. else
  10580. sim_alignment=
  10581. fi
  10582. fi
  10583. fi
  10584. # Check whether --enable-sim-hostendian was given.
  10585. if test "${enable_sim_hostendian+set}" = set; then :
  10586. enableval=$enable_sim_hostendian; case "${enableval}" in
  10587. no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
  10588. b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
  10589. l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
  10590. *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
  10591. esac
  10592. if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
  10593. echo "Setting hostendian flags = $sim_hostendian" 6>&1
  10594. fi
  10595. else
  10596. if test "x$cross_compiling" = "xno"; then
  10597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  10598. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  10599. if test "${ac_cv_c_bigendian+set}" = set; then :
  10600. $as_echo_n "(cached) " >&6
  10601. else
  10602. ac_cv_c_bigendian=unknown
  10603. # See if we're dealing with a universal compiler.
  10604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10605. /* end confdefs.h. */
  10606. #ifndef __APPLE_CC__
  10607. not a universal capable compiler
  10608. #endif
  10609. typedef int dummy;
  10610. _ACEOF
  10611. if ac_fn_c_try_compile "$LINENO"; then :
  10612. # Check for potential -arch flags. It is not universal unless
  10613. # there are at least two -arch flags with different values.
  10614. ac_arch=
  10615. ac_prev=
  10616. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  10617. if test -n "$ac_prev"; then
  10618. case $ac_word in
  10619. i?86 | x86_64 | ppc | ppc64)
  10620. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  10621. ac_arch=$ac_word
  10622. else
  10623. ac_cv_c_bigendian=universal
  10624. break
  10625. fi
  10626. ;;
  10627. esac
  10628. ac_prev=
  10629. elif test "x$ac_word" = "x-arch"; then
  10630. ac_prev=arch
  10631. fi
  10632. done
  10633. fi
  10634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10635. if test $ac_cv_c_bigendian = unknown; then
  10636. # See if sys/param.h defines the BYTE_ORDER macro.
  10637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10638. /* end confdefs.h. */
  10639. #include <sys/types.h>
  10640. #include <sys/param.h>
  10641. int
  10642. main ()
  10643. {
  10644. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  10645. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  10646. && LITTLE_ENDIAN)
  10647. bogus endian macros
  10648. #endif
  10649. ;
  10650. return 0;
  10651. }
  10652. _ACEOF
  10653. if ac_fn_c_try_compile "$LINENO"; then :
  10654. # It does; now see whether it defined to BIG_ENDIAN or not.
  10655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10656. /* end confdefs.h. */
  10657. #include <sys/types.h>
  10658. #include <sys/param.h>
  10659. int
  10660. main ()
  10661. {
  10662. #if BYTE_ORDER != BIG_ENDIAN
  10663. not big endian
  10664. #endif
  10665. ;
  10666. return 0;
  10667. }
  10668. _ACEOF
  10669. if ac_fn_c_try_compile "$LINENO"; then :
  10670. ac_cv_c_bigendian=yes
  10671. else
  10672. ac_cv_c_bigendian=no
  10673. fi
  10674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10675. fi
  10676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10677. fi
  10678. if test $ac_cv_c_bigendian = unknown; then
  10679. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  10680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10681. /* end confdefs.h. */
  10682. #include <limits.h>
  10683. int
  10684. main ()
  10685. {
  10686. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  10687. bogus endian macros
  10688. #endif
  10689. ;
  10690. return 0;
  10691. }
  10692. _ACEOF
  10693. if ac_fn_c_try_compile "$LINENO"; then :
  10694. # It does; now see whether it defined to _BIG_ENDIAN or not.
  10695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10696. /* end confdefs.h. */
  10697. #include <limits.h>
  10698. int
  10699. main ()
  10700. {
  10701. #ifndef _BIG_ENDIAN
  10702. not big endian
  10703. #endif
  10704. ;
  10705. return 0;
  10706. }
  10707. _ACEOF
  10708. if ac_fn_c_try_compile "$LINENO"; then :
  10709. ac_cv_c_bigendian=yes
  10710. else
  10711. ac_cv_c_bigendian=no
  10712. fi
  10713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10714. fi
  10715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10716. fi
  10717. if test $ac_cv_c_bigendian = unknown; then
  10718. # Compile a test program.
  10719. if test "$cross_compiling" = yes; then :
  10720. # Try to guess by grepping values from an object file.
  10721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10722. /* end confdefs.h. */
  10723. short int ascii_mm[] =
  10724. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  10725. short int ascii_ii[] =
  10726. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  10727. int use_ascii (int i) {
  10728. return ascii_mm[i] + ascii_ii[i];
  10729. }
  10730. short int ebcdic_ii[] =
  10731. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  10732. short int ebcdic_mm[] =
  10733. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  10734. int use_ebcdic (int i) {
  10735. return ebcdic_mm[i] + ebcdic_ii[i];
  10736. }
  10737. extern int foo;
  10738. int
  10739. main ()
  10740. {
  10741. return use_ascii (foo) == use_ebcdic (foo);
  10742. ;
  10743. return 0;
  10744. }
  10745. _ACEOF
  10746. if ac_fn_c_try_compile "$LINENO"; then :
  10747. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  10748. ac_cv_c_bigendian=yes
  10749. fi
  10750. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  10751. if test "$ac_cv_c_bigendian" = unknown; then
  10752. ac_cv_c_bigendian=no
  10753. else
  10754. # finding both strings is unlikely to happen, but who knows?
  10755. ac_cv_c_bigendian=unknown
  10756. fi
  10757. fi
  10758. fi
  10759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10760. else
  10761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10762. /* end confdefs.h. */
  10763. $ac_includes_default
  10764. int
  10765. main ()
  10766. {
  10767. /* Are we little or big endian? From Harbison&Steele. */
  10768. union
  10769. {
  10770. long int l;
  10771. char c[sizeof (long int)];
  10772. } u;
  10773. u.l = 1;
  10774. return u.c[sizeof (long int) - 1] == 1;
  10775. ;
  10776. return 0;
  10777. }
  10778. _ACEOF
  10779. if ac_fn_c_try_run "$LINENO"; then :
  10780. ac_cv_c_bigendian=no
  10781. else
  10782. ac_cv_c_bigendian=yes
  10783. fi
  10784. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10785. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10786. fi
  10787. fi
  10788. fi
  10789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  10790. $as_echo "$ac_cv_c_bigendian" >&6; }
  10791. case $ac_cv_c_bigendian in #(
  10792. yes)
  10793. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  10794. ;; #(
  10795. no)
  10796. ;; #(
  10797. universal)
  10798. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  10799. ;; #(
  10800. *)
  10801. as_fn_error "unknown endianness
  10802. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  10803. esac
  10804. if test $ac_cv_c_bigendian = yes; then
  10805. sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
  10806. else
  10807. sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
  10808. fi
  10809. else
  10810. sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
  10811. fi
  10812. fi
  10813. default_sim_scache="16384"
  10814. # Check whether --enable-sim-scache was given.
  10815. if test "${enable_sim_scache+set}" = set; then :
  10816. enableval=$enable_sim_scache; case "${enableval}" in
  10817. yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
  10818. no) sim_scache="-DWITH_SCACHE=0" ;;
  10819. [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
  10820. *) as_fn_error "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;
  10821. sim_scache="";;
  10822. esac
  10823. if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
  10824. echo "Setting scache size = $sim_scache" 6>&1
  10825. fi
  10826. else
  10827. sim_scache="-DWITH_SCACHE=${default_sim_scache}"
  10828. fi
  10829. default_sim_default_model="iq2000"
  10830. # Check whether --enable-sim-default-model was given.
  10831. if test "${enable_sim_default_model+set}" = set; then :
  10832. enableval=$enable_sim_default_model; case "${enableval}" in
  10833. yes|no) as_fn_error "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
  10834. *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
  10835. esac
  10836. if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
  10837. echo "Setting default model = $sim_default_model" 6>&1
  10838. fi
  10839. else
  10840. sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
  10841. fi
  10842. # Check whether --enable-sim-environment was given.
  10843. if test "${enable_sim_environment+set}" = set; then :
  10844. enableval=$enable_sim_environment; case "${enableval}" in
  10845. all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
  10846. user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
  10847. virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
  10848. operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
  10849. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-environment\"" "$LINENO" 5;
  10850. sim_environment="";;
  10851. esac
  10852. if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
  10853. echo "Setting sim environment = $sim_environment" 6>&1
  10854. fi
  10855. else
  10856. sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
  10857. fi
  10858. default_sim_inline=""
  10859. # Check whether --enable-sim-inline was given.
  10860. if test "${enable_sim_inline+set}" = set; then :
  10861. enableval=$enable_sim_inline; sim_inline=""
  10862. case "$enableval" in
  10863. no) sim_inline="-DDEFAULT_INLINE=0";;
  10864. 0) sim_inline="-DDEFAULT_INLINE=0";;
  10865. yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
  10866. 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
  10867. *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10868. new_flag=""
  10869. case "$x" in
  10870. *_INLINE=*) new_flag="-D$x";;
  10871. *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
  10872. *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
  10873. *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
  10874. esac
  10875. if test x"$sim_inline" = x""; then
  10876. sim_inline="$new_flag"
  10877. else
  10878. sim_inline="$sim_inline $new_flag"
  10879. fi
  10880. done;;
  10881. esac
  10882. if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
  10883. echo "Setting inline flags = $sim_inline" 6>&1
  10884. fi
  10885. else
  10886. if test "x$cross_compiling" = "xno"; then
  10887. if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
  10888. sim_inline="${default_sim_inline}"
  10889. if test x"$silent" != x"yes"; then
  10890. echo "Setting inline flags = $sim_inline" 6>&1
  10891. fi
  10892. else
  10893. sim_inline=""
  10894. fi
  10895. else
  10896. sim_inline="-DDEFAULT_INLINE=0"
  10897. fi
  10898. fi
  10899. cgen_maint=no
  10900. cgen=guile
  10901. cgendir='$(srcdir)/../../cgen'
  10902. # Check whether --enable-cgen-maint was given.
  10903. if test "${enable_cgen_maint+set}" = set; then :
  10904. enableval=$enable_cgen_maint; case "${enableval}" in
  10905. yes) cgen_maint=yes ;;
  10906. no) cgen_maint=no ;;
  10907. *)
  10908. # argument is cgen install directory (not implemented yet).
  10909. # Having a `share' directory might be more appropriate for the .scm,
  10910. # .cpu, etc. files.
  10911. cgendir=${cgen_maint}/lib/cgen
  10912. cgen=guile
  10913. ;;
  10914. esac
  10915. fi
  10916. if test x${cgen_maint} != xno ; then
  10917. CGEN_MAINT=''
  10918. else
  10919. CGEN_MAINT='#'
  10920. fi
  10921. if test """"; then
  10922. hardware=""""
  10923. else
  10924. hardware="cfi core pal glue"
  10925. fi
  10926. hardware="$hardware """
  10927. sim_hw_cflags="-DWITH_HW=1"
  10928. sim_hw="$hardware"
  10929. sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
  10930. # Check whether --enable-sim-hardware was given.
  10931. if test "${enable_sim_hardware+set}" = set; then :
  10932. enableval=$enable_sim_hardware;
  10933. else
  10934. enable_sim_hardware="yes"
  10935. fi
  10936. case ${enable_sim_hardware} in
  10937. yes|no) ;;
  10938. ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
  10939. *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
  10940. *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
  10941. esac
  10942. if test "$enable_sim_hardware" = no; then
  10943. sim_hw_objs=
  10944. sim_hw_cflags="-DWITH_HW=0"
  10945. sim_hw=
  10946. else
  10947. sim_hw_cflags="-DWITH_HW=1"
  10948. # remove duplicates
  10949. sim_hw=""
  10950. sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
  10951. for i in $hardware ; do
  10952. case " $sim_hw " in
  10953. *" $i "*) ;;
  10954. *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
  10955. esac
  10956. done
  10957. # mingw does not support sockser
  10958. case ${host} in
  10959. *mingw*) ;;
  10960. *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
  10961. # that you instatiate. Instead, other code will call into it directly.
  10962. # At some point, we should convert it over.
  10963. sim_hw_objs="$sim_hw_objs dv-sockser.o"
  10964. cat >>confdefs.h <<_ACEOF
  10965. #define HAVE_DV_SOCKSER 1
  10966. _ACEOF
  10967. ;;
  10968. esac
  10969. if test x"$silent" != x"yes"; then
  10970. echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
  10971. fi
  10972. case " $hardware " in
  10973. *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
  10974. $as_echo_n "checking for log2 in -lm... " >&6; }
  10975. if test "${ac_cv_lib_m_log2+set}" = set; then :
  10976. $as_echo_n "(cached) " >&6
  10977. else
  10978. ac_check_lib_save_LIBS=$LIBS
  10979. LIBS="-lm $LIBS"
  10980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10981. /* end confdefs.h. */
  10982. /* Override any GCC internal prototype to avoid an error.
  10983. Use char because int might match the return type of a GCC
  10984. builtin and then its argument prototype would still apply. */
  10985. #ifdef __cplusplus
  10986. extern "C"
  10987. #endif
  10988. char log2 ();
  10989. int
  10990. main ()
  10991. {
  10992. return log2 ();
  10993. ;
  10994. return 0;
  10995. }
  10996. _ACEOF
  10997. if ac_fn_c_try_link "$LINENO"; then :
  10998. ac_cv_lib_m_log2=yes
  10999. else
  11000. ac_cv_lib_m_log2=no
  11001. fi
  11002. rm -f core conftest.err conftest.$ac_objext \
  11003. conftest$ac_exeext conftest.$ac_ext
  11004. LIBS=$ac_check_lib_save_LIBS
  11005. fi
  11006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
  11007. $as_echo "$ac_cv_lib_m_log2" >&6; }
  11008. if test "x$ac_cv_lib_m_log2" = x""yes; then :
  11009. cat >>confdefs.h <<_ACEOF
  11010. #define HAVE_LIBM 1
  11011. _ACEOF
  11012. LIBS="-lm $LIBS"
  11013. fi
  11014. ;;
  11015. esac
  11016. fi
  11017. ac_sources="$sim_link_files"
  11018. ac_dests="$sim_link_links"
  11019. while test -n "$ac_sources"; do
  11020. set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  11021. set $ac_sources; ac_source=$1; shift; ac_sources=$*
  11022. ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
  11023. done
  11024. ac_config_links="$ac_config_links $ac_config_links_1"
  11025. cgen_breaks=""
  11026. if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
  11027. cgen_breaks="break cgen_rtx_error";
  11028. fi
  11029. ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
  11030. ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
  11031. ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
  11032. ac_config_commands="$ac_config_commands Makefile"
  11033. ac_config_commands="$ac_config_commands stamp-h"
  11034. cat >confcache <<\_ACEOF
  11035. # This file is a shell script that caches the results of configure
  11036. # tests run on this system so they can be shared between configure
  11037. # scripts and configure runs, see configure's option --config-cache.
  11038. # It is not useful on other systems. If it contains results you don't
  11039. # want to keep, you may remove or edit it.
  11040. #
  11041. # config.status only pays attention to the cache file if you give it
  11042. # the --recheck option to rerun configure.
  11043. #
  11044. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11045. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11046. # following values.
  11047. _ACEOF
  11048. # The following way of writing the cache mishandles newlines in values,
  11049. # but we know of no workaround that is simple, portable, and efficient.
  11050. # So, we kill variables containing newlines.
  11051. # Ultrix sh set writes to stderr and can't be redirected directly,
  11052. # and sets the high bit in the cache file unless we assign to the vars.
  11053. (
  11054. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11055. eval ac_val=\$$ac_var
  11056. case $ac_val in #(
  11057. *${as_nl}*)
  11058. case $ac_var in #(
  11059. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11060. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11061. esac
  11062. case $ac_var in #(
  11063. _ | IFS | as_nl) ;; #(
  11064. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11065. *) { eval $ac_var=; unset $ac_var;} ;;
  11066. esac ;;
  11067. esac
  11068. done
  11069. (set) 2>&1 |
  11070. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11071. *${as_nl}ac_space=\ *)
  11072. # `set' does not quote correctly, so add quotes: double-quote
  11073. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11074. sed -n \
  11075. "s/'/'\\\\''/g;
  11076. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11077. ;; #(
  11078. *)
  11079. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11080. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11081. ;;
  11082. esac |
  11083. sort
  11084. ) |
  11085. sed '
  11086. /^ac_cv_env_/b end
  11087. t clear
  11088. :clear
  11089. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11090. t end
  11091. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11092. :end' >>confcache
  11093. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11094. if test -w "$cache_file"; then
  11095. test "x$cache_file" != "x/dev/null" &&
  11096. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11097. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11098. cat confcache >$cache_file
  11099. else
  11100. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11101. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11102. fi
  11103. fi
  11104. rm -f confcache
  11105. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11106. # Let make expand exec_prefix.
  11107. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11108. DEFS=-DHAVE_CONFIG_H
  11109. ac_libobjs=
  11110. ac_ltlibobjs=
  11111. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11112. # 1. Remove the extension, and $U if already installed.
  11113. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11114. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11115. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11116. # will be set to the directory where LIBOBJS objects are built.
  11117. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11118. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11119. done
  11120. LIBOBJS=$ac_libobjs
  11121. LTLIBOBJS=$ac_ltlibobjs
  11122. if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
  11123. as_fn_error "conditional \"GMAKE\" was never defined.
  11124. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11125. fi
  11126. if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
  11127. as_fn_error "conditional \"PLUGINS\" was never defined.
  11128. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11129. fi
  11130. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11131. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  11132. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11133. fi
  11134. : ${CONFIG_STATUS=./config.status}
  11135. ac_write_fail=0
  11136. ac_clean_files_save=$ac_clean_files
  11137. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11138. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11139. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11140. as_write_fail=0
  11141. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11142. #! $SHELL
  11143. # Generated by $as_me.
  11144. # Run this file to recreate the current configuration.
  11145. # Compiler output produced by configure, useful for debugging
  11146. # configure, is in config.log if it exists.
  11147. debug=false
  11148. ac_cs_recheck=false
  11149. ac_cs_silent=false
  11150. SHELL=\${CONFIG_SHELL-$SHELL}
  11151. export SHELL
  11152. _ASEOF
  11153. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11154. ## -------------------- ##
  11155. ## M4sh Initialization. ##
  11156. ## -------------------- ##
  11157. # Be more Bourne compatible
  11158. DUALCASE=1; export DUALCASE # for MKS sh
  11159. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11160. emulate sh
  11161. NULLCMD=:
  11162. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11163. # is contrary to our usage. Disable this feature.
  11164. alias -g '${1+"$@"}'='"$@"'
  11165. setopt NO_GLOB_SUBST
  11166. else
  11167. case `(set -o) 2>/dev/null` in #(
  11168. *posix*) :
  11169. set -o posix ;; #(
  11170. *) :
  11171. ;;
  11172. esac
  11173. fi
  11174. as_nl='
  11175. '
  11176. export as_nl
  11177. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11178. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11179. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11180. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11181. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11182. # but without wasting forks for bash or zsh.
  11183. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11184. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11185. as_echo='print -r --'
  11186. as_echo_n='print -rn --'
  11187. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11188. as_echo='printf %s\n'
  11189. as_echo_n='printf %s'
  11190. else
  11191. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11192. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11193. as_echo_n='/usr/ucb/echo -n'
  11194. else
  11195. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11196. as_echo_n_body='eval
  11197. arg=$1;
  11198. case $arg in #(
  11199. *"$as_nl"*)
  11200. expr "X$arg" : "X\\(.*\\)$as_nl";
  11201. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11202. esac;
  11203. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11204. '
  11205. export as_echo_n_body
  11206. as_echo_n='sh -c $as_echo_n_body as_echo'
  11207. fi
  11208. export as_echo_body
  11209. as_echo='sh -c $as_echo_body as_echo'
  11210. fi
  11211. # The user is always right.
  11212. if test "${PATH_SEPARATOR+set}" != set; then
  11213. PATH_SEPARATOR=:
  11214. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11215. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11216. PATH_SEPARATOR=';'
  11217. }
  11218. fi
  11219. # IFS
  11220. # We need space, tab and new line, in precisely that order. Quoting is
  11221. # there to prevent editors from complaining about space-tab.
  11222. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11223. # splitting by setting IFS to empty value.)
  11224. IFS=" "" $as_nl"
  11225. # Find who we are. Look in the path if we contain no directory separator.
  11226. case $0 in #((
  11227. *[\\/]* ) as_myself=$0 ;;
  11228. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11229. for as_dir in $PATH
  11230. do
  11231. IFS=$as_save_IFS
  11232. test -z "$as_dir" && as_dir=.
  11233. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11234. done
  11235. IFS=$as_save_IFS
  11236. ;;
  11237. esac
  11238. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11239. # in which case we are not to be found in the path.
  11240. if test "x$as_myself" = x; then
  11241. as_myself=$0
  11242. fi
  11243. if test ! -f "$as_myself"; then
  11244. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11245. exit 1
  11246. fi
  11247. # Unset variables that we do not need and which cause bugs (e.g. in
  11248. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11249. # suppresses any "Segmentation fault" message there. '((' could
  11250. # trigger a bug in pdksh 5.2.14.
  11251. for as_var in BASH_ENV ENV MAIL MAILPATH
  11252. do eval test x\${$as_var+set} = xset \
  11253. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11254. done
  11255. PS1='$ '
  11256. PS2='> '
  11257. PS4='+ '
  11258. # NLS nuisances.
  11259. LC_ALL=C
  11260. export LC_ALL
  11261. LANGUAGE=C
  11262. export LANGUAGE
  11263. # CDPATH.
  11264. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11265. # as_fn_error ERROR [LINENO LOG_FD]
  11266. # ---------------------------------
  11267. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11268. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11269. # script with status $?, using 1 if that was 0.
  11270. as_fn_error ()
  11271. {
  11272. as_status=$?; test $as_status -eq 0 && as_status=1
  11273. if test "$3"; then
  11274. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11275. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  11276. fi
  11277. $as_echo "$as_me: error: $1" >&2
  11278. as_fn_exit $as_status
  11279. } # as_fn_error
  11280. # as_fn_set_status STATUS
  11281. # -----------------------
  11282. # Set $? to STATUS, without forking.
  11283. as_fn_set_status ()
  11284. {
  11285. return $1
  11286. } # as_fn_set_status
  11287. # as_fn_exit STATUS
  11288. # -----------------
  11289. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11290. as_fn_exit ()
  11291. {
  11292. set +e
  11293. as_fn_set_status $1
  11294. exit $1
  11295. } # as_fn_exit
  11296. # as_fn_unset VAR
  11297. # ---------------
  11298. # Portably unset VAR.
  11299. as_fn_unset ()
  11300. {
  11301. { eval $1=; unset $1;}
  11302. }
  11303. as_unset=as_fn_unset
  11304. # as_fn_append VAR VALUE
  11305. # ----------------------
  11306. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11307. # advantage of any shell optimizations that allow amortized linear growth over
  11308. # repeated appends, instead of the typical quadratic growth present in naive
  11309. # implementations.
  11310. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11311. eval 'as_fn_append ()
  11312. {
  11313. eval $1+=\$2
  11314. }'
  11315. else
  11316. as_fn_append ()
  11317. {
  11318. eval $1=\$$1\$2
  11319. }
  11320. fi # as_fn_append
  11321. # as_fn_arith ARG...
  11322. # ------------------
  11323. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11324. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11325. # must be portable across $(()) and expr.
  11326. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11327. eval 'as_fn_arith ()
  11328. {
  11329. as_val=$(( $* ))
  11330. }'
  11331. else
  11332. as_fn_arith ()
  11333. {
  11334. as_val=`expr "$@" || test $? -eq 1`
  11335. }
  11336. fi # as_fn_arith
  11337. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11338. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11339. as_expr=expr
  11340. else
  11341. as_expr=false
  11342. fi
  11343. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11344. as_basename=basename
  11345. else
  11346. as_basename=false
  11347. fi
  11348. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11349. as_dirname=dirname
  11350. else
  11351. as_dirname=false
  11352. fi
  11353. as_me=`$as_basename -- "$0" ||
  11354. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11355. X"$0" : 'X\(//\)$' \| \
  11356. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11357. $as_echo X/"$0" |
  11358. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11359. s//\1/
  11360. q
  11361. }
  11362. /^X\/\(\/\/\)$/{
  11363. s//\1/
  11364. q
  11365. }
  11366. /^X\/\(\/\).*/{
  11367. s//\1/
  11368. q
  11369. }
  11370. s/.*/./; q'`
  11371. # Avoid depending upon Character Ranges.
  11372. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11373. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11374. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11375. as_cr_digits='0123456789'
  11376. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11377. ECHO_C= ECHO_N= ECHO_T=
  11378. case `echo -n x` in #(((((
  11379. -n*)
  11380. case `echo 'xy\c'` in
  11381. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11382. xy) ECHO_C='\c';;
  11383. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11384. ECHO_T=' ';;
  11385. esac;;
  11386. *)
  11387. ECHO_N='-n';;
  11388. esac
  11389. rm -f conf$$ conf$$.exe conf$$.file
  11390. if test -d conf$$.dir; then
  11391. rm -f conf$$.dir/conf$$.file
  11392. else
  11393. rm -f conf$$.dir
  11394. mkdir conf$$.dir 2>/dev/null
  11395. fi
  11396. if (echo >conf$$.file) 2>/dev/null; then
  11397. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11398. as_ln_s='ln -s'
  11399. # ... but there are two gotchas:
  11400. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11401. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11402. # In both cases, we have to default to `cp -p'.
  11403. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11404. as_ln_s='cp -p'
  11405. elif ln conf$$.file conf$$ 2>/dev/null; then
  11406. as_ln_s=ln
  11407. else
  11408. as_ln_s='cp -p'
  11409. fi
  11410. else
  11411. as_ln_s='cp -p'
  11412. fi
  11413. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11414. rmdir conf$$.dir 2>/dev/null
  11415. # as_fn_mkdir_p
  11416. # -------------
  11417. # Create "$as_dir" as a directory, including parents if necessary.
  11418. as_fn_mkdir_p ()
  11419. {
  11420. case $as_dir in #(
  11421. -*) as_dir=./$as_dir;;
  11422. esac
  11423. test -d "$as_dir" || eval $as_mkdir_p || {
  11424. as_dirs=
  11425. while :; do
  11426. case $as_dir in #(
  11427. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11428. *) as_qdir=$as_dir;;
  11429. esac
  11430. as_dirs="'$as_qdir' $as_dirs"
  11431. as_dir=`$as_dirname -- "$as_dir" ||
  11432. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11433. X"$as_dir" : 'X\(//\)[^/]' \| \
  11434. X"$as_dir" : 'X\(//\)$' \| \
  11435. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11436. $as_echo X"$as_dir" |
  11437. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11438. s//\1/
  11439. q
  11440. }
  11441. /^X\(\/\/\)[^/].*/{
  11442. s//\1/
  11443. q
  11444. }
  11445. /^X\(\/\/\)$/{
  11446. s//\1/
  11447. q
  11448. }
  11449. /^X\(\/\).*/{
  11450. s//\1/
  11451. q
  11452. }
  11453. s/.*/./; q'`
  11454. test -d "$as_dir" && break
  11455. done
  11456. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11457. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  11458. } # as_fn_mkdir_p
  11459. if mkdir -p . 2>/dev/null; then
  11460. as_mkdir_p='mkdir -p "$as_dir"'
  11461. else
  11462. test -d ./-p && rmdir ./-p
  11463. as_mkdir_p=false
  11464. fi
  11465. if test -x / >/dev/null 2>&1; then
  11466. as_test_x='test -x'
  11467. else
  11468. if ls -dL / >/dev/null 2>&1; then
  11469. as_ls_L_option=L
  11470. else
  11471. as_ls_L_option=
  11472. fi
  11473. as_test_x='
  11474. eval sh -c '\''
  11475. if test -d "$1"; then
  11476. test -d "$1/.";
  11477. else
  11478. case $1 in #(
  11479. -*)set "./$1";;
  11480. esac;
  11481. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11482. ???[sx]*):;;*)false;;esac;fi
  11483. '\'' sh
  11484. '
  11485. fi
  11486. as_executable_p=$as_test_x
  11487. # Sed expression to map a string onto a valid CPP name.
  11488. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11489. # Sed expression to map a string onto a valid variable name.
  11490. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11491. exec 6>&1
  11492. ## ----------------------------------- ##
  11493. ## Main body of $CONFIG_STATUS script. ##
  11494. ## ----------------------------------- ##
  11495. _ASEOF
  11496. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11497. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11498. # Save the log message, to keep $0 and so on meaningful, and to
  11499. # report actual input values of CONFIG_FILES etc. instead of their
  11500. # values after options handling.
  11501. ac_log="
  11502. This file was extended by $as_me, which was
  11503. generated by GNU Autoconf 2.64. Invocation command line was
  11504. CONFIG_FILES = $CONFIG_FILES
  11505. CONFIG_HEADERS = $CONFIG_HEADERS
  11506. CONFIG_LINKS = $CONFIG_LINKS
  11507. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11508. $ $0 $@
  11509. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11510. "
  11511. _ACEOF
  11512. case $ac_config_files in *"
  11513. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11514. esac
  11515. case $ac_config_headers in *"
  11516. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11517. esac
  11518. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11519. # Files that config.status was made for.
  11520. config_files="$ac_config_files"
  11521. config_headers="$ac_config_headers"
  11522. config_links="$ac_config_links"
  11523. config_commands="$ac_config_commands"
  11524. _ACEOF
  11525. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11526. ac_cs_usage="\
  11527. \`$as_me' instantiates files and other configuration actions
  11528. from templates according to the current configuration. Unless the files
  11529. and actions are specified as TAGs, all are instantiated by default.
  11530. Usage: $0 [OPTION]... [TAG]...
  11531. -h, --help print this help, then exit
  11532. -V, --version print version number and configuration settings, then exit
  11533. -q, --quiet, --silent
  11534. do not print progress messages
  11535. -d, --debug don't remove temporary files
  11536. --recheck update $as_me by reconfiguring in the same conditions
  11537. --file=FILE[:TEMPLATE]
  11538. instantiate the configuration file FILE
  11539. --header=FILE[:TEMPLATE]
  11540. instantiate the configuration header FILE
  11541. Configuration files:
  11542. $config_files
  11543. Configuration headers:
  11544. $config_headers
  11545. Configuration links:
  11546. $config_links
  11547. Configuration commands:
  11548. $config_commands
  11549. Report bugs to the package provider."
  11550. _ACEOF
  11551. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11552. ac_cs_version="\\
  11553. config.status
  11554. configured by $0, generated by GNU Autoconf 2.64,
  11555. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11556. Copyright (C) 2009 Free Software Foundation, Inc.
  11557. This config.status script is free software; the Free Software Foundation
  11558. gives unlimited permission to copy, distribute and modify it."
  11559. ac_pwd='$ac_pwd'
  11560. srcdir='$srcdir'
  11561. INSTALL='$INSTALL'
  11562. AWK='$AWK'
  11563. test -n "\$AWK" || AWK=awk
  11564. _ACEOF
  11565. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11566. # The default lists apply if the user does not specify any file.
  11567. ac_need_defaults=:
  11568. while test $# != 0
  11569. do
  11570. case $1 in
  11571. --*=*)
  11572. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11573. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11574. ac_shift=:
  11575. ;;
  11576. *)
  11577. ac_option=$1
  11578. ac_optarg=$2
  11579. ac_shift=shift
  11580. ;;
  11581. esac
  11582. case $ac_option in
  11583. # Handling of the options.
  11584. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11585. ac_cs_recheck=: ;;
  11586. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11587. $as_echo "$ac_cs_version"; exit ;;
  11588. --debug | --debu | --deb | --de | --d | -d )
  11589. debug=: ;;
  11590. --file | --fil | --fi | --f )
  11591. $ac_shift
  11592. case $ac_optarg in
  11593. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11594. esac
  11595. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11596. ac_need_defaults=false;;
  11597. --header | --heade | --head | --hea )
  11598. $ac_shift
  11599. case $ac_optarg in
  11600. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11601. esac
  11602. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11603. ac_need_defaults=false;;
  11604. --he | --h)
  11605. # Conflict between --help and --header
  11606. as_fn_error "ambiguous option: \`$1'
  11607. Try \`$0 --help' for more information.";;
  11608. --help | --hel | -h )
  11609. $as_echo "$ac_cs_usage"; exit ;;
  11610. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11611. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11612. ac_cs_silent=: ;;
  11613. # This is an error.
  11614. -*) as_fn_error "unrecognized option: \`$1'
  11615. Try \`$0 --help' for more information." ;;
  11616. *) as_fn_append ac_config_targets " $1"
  11617. ac_need_defaults=false ;;
  11618. esac
  11619. shift
  11620. done
  11621. ac_configure_extra_args=
  11622. if $ac_cs_silent; then
  11623. exec 6>/dev/null
  11624. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11625. fi
  11626. _ACEOF
  11627. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11628. if \$ac_cs_recheck; then
  11629. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11630. shift
  11631. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11632. CONFIG_SHELL='$SHELL'
  11633. export CONFIG_SHELL
  11634. exec "\$@"
  11635. fi
  11636. _ACEOF
  11637. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11638. exec 5>>config.log
  11639. {
  11640. echo
  11641. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11642. ## Running $as_me. ##
  11643. _ASBOX
  11644. $as_echo "$ac_log"
  11645. } >&5
  11646. _ACEOF
  11647. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11648. #
  11649. # INIT-COMMANDS
  11650. #
  11651. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  11652. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11653. # if CDPATH is set.
  11654. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11655. sed_quote_subst='$sed_quote_subst'
  11656. double_quote_subst='$double_quote_subst'
  11657. delay_variable_subst='$delay_variable_subst'
  11658. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11659. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11660. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11661. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11662. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11663. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11664. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11665. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11666. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11667. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11668. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11669. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11670. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11671. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11672. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11673. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11674. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11675. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11676. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11677. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11678. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11679. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11680. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11681. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11682. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11683. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11684. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11685. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11686. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11687. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11688. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11689. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11690. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11691. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11692. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11693. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11694. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11695. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11696. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11697. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11698. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11699. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11700. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11701. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11702. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11703. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11704. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11705. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11706. 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"`'
  11707. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11708. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11709. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11710. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11711. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11712. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11713. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11714. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11715. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11716. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11717. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11718. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11719. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11720. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11721. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11722. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11723. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11724. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11725. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11726. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11727. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11728. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11729. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11730. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11731. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11732. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11733. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11734. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11735. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11736. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11737. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11738. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  11739. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11740. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11741. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11742. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11743. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11744. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11745. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11746. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11747. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  11748. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11749. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11750. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11751. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11752. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11753. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11754. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11755. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11756. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11757. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11758. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11759. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11760. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11761. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11762. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11763. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11764. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11765. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11766. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11767. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11768. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11769. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11770. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11771. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11772. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11773. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11774. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11775. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11776. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11777. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11778. LTCC='$LTCC'
  11779. LTCFLAGS='$LTCFLAGS'
  11780. compiler='$compiler_DEFAULT'
  11781. # A function that is used when there is no print builtin or printf.
  11782. func_fallback_echo ()
  11783. {
  11784. eval 'cat <<_LTECHO_EOF
  11785. \$1
  11786. _LTECHO_EOF'
  11787. }
  11788. # Quote evaled strings.
  11789. for var in SHELL \
  11790. ECHO \
  11791. SED \
  11792. GREP \
  11793. EGREP \
  11794. FGREP \
  11795. LD \
  11796. NM \
  11797. LN_S \
  11798. lt_SP2NL \
  11799. lt_NL2SP \
  11800. reload_flag \
  11801. OBJDUMP \
  11802. deplibs_check_method \
  11803. file_magic_cmd \
  11804. AR \
  11805. AR_FLAGS \
  11806. STRIP \
  11807. RANLIB \
  11808. CC \
  11809. CFLAGS \
  11810. compiler \
  11811. lt_cv_sys_global_symbol_pipe \
  11812. lt_cv_sys_global_symbol_to_cdecl \
  11813. lt_cv_sys_global_symbol_to_c_name_address \
  11814. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11815. lt_prog_compiler_no_builtin_flag \
  11816. lt_prog_compiler_wl \
  11817. lt_prog_compiler_pic \
  11818. lt_prog_compiler_static \
  11819. lt_cv_prog_compiler_c_o \
  11820. need_locks \
  11821. DSYMUTIL \
  11822. NMEDIT \
  11823. LIPO \
  11824. OTOOL \
  11825. OTOOL64 \
  11826. shrext_cmds \
  11827. export_dynamic_flag_spec \
  11828. whole_archive_flag_spec \
  11829. compiler_needs_object \
  11830. with_gnu_ld \
  11831. allow_undefined_flag \
  11832. no_undefined_flag \
  11833. hardcode_libdir_flag_spec \
  11834. hardcode_libdir_flag_spec_ld \
  11835. hardcode_libdir_separator \
  11836. fix_srcfile_path \
  11837. exclude_expsyms \
  11838. include_expsyms \
  11839. file_list_spec \
  11840. variables_saved_for_relink \
  11841. libname_spec \
  11842. library_names_spec \
  11843. soname_spec \
  11844. install_override_mode \
  11845. finish_eval \
  11846. old_striplib \
  11847. striplib; do
  11848. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11849. *[\\\\\\\`\\"\\\$]*)
  11850. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11851. ;;
  11852. *)
  11853. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11854. ;;
  11855. esac
  11856. done
  11857. # Double-quote double-evaled strings.
  11858. for var in reload_cmds \
  11859. old_postinstall_cmds \
  11860. old_postuninstall_cmds \
  11861. old_archive_cmds \
  11862. extract_expsyms_cmds \
  11863. old_archive_from_new_cmds \
  11864. old_archive_from_expsyms_cmds \
  11865. archive_cmds \
  11866. archive_expsym_cmds \
  11867. module_cmds \
  11868. module_expsym_cmds \
  11869. export_symbols_cmds \
  11870. prelink_cmds \
  11871. postinstall_cmds \
  11872. postuninstall_cmds \
  11873. finish_cmds \
  11874. sys_lib_search_path_spec \
  11875. sys_lib_dlsearch_path_spec; do
  11876. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11877. *[\\\\\\\`\\"\\\$]*)
  11878. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11879. ;;
  11880. *)
  11881. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11882. ;;
  11883. esac
  11884. done
  11885. ac_aux_dir='$ac_aux_dir'
  11886. xsi_shell='$xsi_shell'
  11887. lt_shell_append='$lt_shell_append'
  11888. # See if we are running on zsh, and set the options which allow our
  11889. # commands through without removal of \ escapes INIT.
  11890. if test -n "\${ZSH_VERSION+set}" ; then
  11891. setopt NO_GLOB_SUBST
  11892. fi
  11893. PACKAGE='$PACKAGE'
  11894. VERSION='$VERSION'
  11895. TIMESTAMP='$TIMESTAMP'
  11896. RM='$RM'
  11897. ofile='$ofile'
  11898. _ACEOF
  11899. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11900. # Handling of arguments.
  11901. for ac_config_target in $ac_config_targets
  11902. do
  11903. case $ac_config_target in
  11904. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  11905. "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  11906. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11907. "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
  11908. "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
  11909. "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
  11910. ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
  11911. "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
  11912. "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
  11913. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11914. esac
  11915. done
  11916. # If the user did not use the arguments to specify the items to instantiate,
  11917. # then the envvar interface is used. Set only those that are not.
  11918. # We use the long form for the default assignment because of an extremely
  11919. # bizarre bug on SunOS 4.1.3.
  11920. if $ac_need_defaults; then
  11921. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11922. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11923. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  11924. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11925. fi
  11926. # Have a temporary directory for convenience. Make it in the build tree
  11927. # simply because there is no reason against having it here, and in addition,
  11928. # creating and moving files from /tmp can sometimes cause problems.
  11929. # Hook for its removal unless debugging.
  11930. # Note that there is a small window in which the directory will not be cleaned:
  11931. # after its creation but before its name has been assigned to `$tmp'.
  11932. $debug ||
  11933. {
  11934. tmp=
  11935. trap 'exit_status=$?
  11936. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11937. ' 0
  11938. trap 'as_fn_exit 1' 1 2 13 15
  11939. }
  11940. # Create a (secure) tmp directory for tmp files.
  11941. {
  11942. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11943. test -n "$tmp" && test -d "$tmp"
  11944. } ||
  11945. {
  11946. tmp=./conf$$-$RANDOM
  11947. (umask 077 && mkdir "$tmp")
  11948. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  11949. # Set up the scripts for CONFIG_FILES section.
  11950. # No need to generate them if there are no CONFIG_FILES.
  11951. # This happens for instance with `./config.status config.h'.
  11952. if test -n "$CONFIG_FILES"; then
  11953. ac_cr=`echo X | tr X '\015'`
  11954. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11955. # But we know of no other shell where ac_cr would be empty at this
  11956. # point, so we can use a bashism as a fallback.
  11957. if test "x$ac_cr" = x; then
  11958. eval ac_cr=\$\'\\r\'
  11959. fi
  11960. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11961. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11962. ac_cs_awk_cr='\r'
  11963. else
  11964. ac_cs_awk_cr=$ac_cr
  11965. fi
  11966. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  11967. _ACEOF
  11968. {
  11969. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11970. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11971. echo "_ACEOF"
  11972. } >conf$$subs.sh ||
  11973. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11974. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  11975. ac_delim='%!_!# '
  11976. for ac_last_try in false false false false false :; do
  11977. . ./conf$$subs.sh ||
  11978. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11979. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11980. if test $ac_delim_n = $ac_delim_num; then
  11981. break
  11982. elif $ac_last_try; then
  11983. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11984. else
  11985. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11986. fi
  11987. done
  11988. rm -f conf$$subs.sh
  11989. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11990. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  11991. _ACEOF
  11992. sed -n '
  11993. h
  11994. s/^/S["/; s/!.*/"]=/
  11995. p
  11996. g
  11997. s/^[^!]*!//
  11998. :repl
  11999. t repl
  12000. s/'"$ac_delim"'$//
  12001. t delim
  12002. :nl
  12003. h
  12004. s/\(.\{148\}\).*/\1/
  12005. t more1
  12006. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12007. p
  12008. n
  12009. b repl
  12010. :more1
  12011. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12012. p
  12013. g
  12014. s/.\{148\}//
  12015. t nl
  12016. :delim
  12017. h
  12018. s/\(.\{148\}\).*/\1/
  12019. t more2
  12020. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12021. p
  12022. b
  12023. :more2
  12024. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12025. p
  12026. g
  12027. s/.\{148\}//
  12028. t delim
  12029. ' <conf$$subs.awk | sed '
  12030. /^[^""]/{
  12031. N
  12032. s/\n//
  12033. }
  12034. ' >>$CONFIG_STATUS || ac_write_fail=1
  12035. rm -f conf$$subs.awk
  12036. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12037. _ACAWK
  12038. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  12039. for (key in S) S_is_set[key] = 1
  12040. FS = ""
  12041. }
  12042. {
  12043. line = $ 0
  12044. nfields = split(line, field, "@")
  12045. substed = 0
  12046. len = length(field[1])
  12047. for (i = 2; i < nfields; i++) {
  12048. key = field[i]
  12049. keylen = length(key)
  12050. if (S_is_set[key]) {
  12051. value = S[key]
  12052. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12053. len += length(value) + length(field[++i])
  12054. substed = 1
  12055. } else
  12056. len += 1 + keylen
  12057. }
  12058. print line
  12059. }
  12060. _ACAWK
  12061. _ACEOF
  12062. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12063. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12064. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12065. else
  12066. cat
  12067. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12068. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  12069. _ACEOF
  12070. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12071. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12072. # trailing colons and then remove the whole line if VPATH becomes empty
  12073. # (actually we leave an empty line to preserve line numbers).
  12074. if test "x$srcdir" = x.; then
  12075. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12076. s/:*\$(srcdir):*/:/
  12077. s/:*\${srcdir}:*/:/
  12078. s/:*@srcdir@:*/:/
  12079. s/^\([^=]*=[ ]*\):*/\1/
  12080. s/:*$//
  12081. s/^[^=]*=[ ]*$//
  12082. }'
  12083. fi
  12084. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12085. fi # test -n "$CONFIG_FILES"
  12086. # Set up the scripts for CONFIG_HEADERS section.
  12087. # No need to generate them if there are no CONFIG_HEADERS.
  12088. # This happens for instance with `./config.status Makefile'.
  12089. if test -n "$CONFIG_HEADERS"; then
  12090. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12091. BEGIN {
  12092. _ACEOF
  12093. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12094. # here-document in config.status, that substitutes the proper values into
  12095. # config.h.in to produce config.h.
  12096. # Create a delimiter string that does not exist in confdefs.h, to ease
  12097. # handling of long lines.
  12098. ac_delim='%!_!# '
  12099. for ac_last_try in false false :; do
  12100. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12101. if test -z "$ac_t"; then
  12102. break
  12103. elif $ac_last_try; then
  12104. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  12105. else
  12106. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12107. fi
  12108. done
  12109. # For the awk script, D is an array of macro values keyed by name,
  12110. # likewise P contains macro parameters if any. Preserve backslash
  12111. # newline sequences.
  12112. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12113. sed -n '
  12114. s/.\{148\}/&'"$ac_delim"'/g
  12115. t rset
  12116. :rset
  12117. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12118. t def
  12119. d
  12120. :def
  12121. s/\\$//
  12122. t bsnl
  12123. s/["\\]/\\&/g
  12124. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12125. D["\1"]=" \3"/p
  12126. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12127. d
  12128. :bsnl
  12129. s/["\\]/\\&/g
  12130. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12131. D["\1"]=" \3\\\\\\n"\\/p
  12132. t cont
  12133. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12134. t cont
  12135. d
  12136. :cont
  12137. n
  12138. s/.\{148\}/&'"$ac_delim"'/g
  12139. t clear
  12140. :clear
  12141. s/\\$//
  12142. t bsnlc
  12143. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12144. d
  12145. :bsnlc
  12146. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12147. b cont
  12148. ' <confdefs.h | sed '
  12149. s/'"$ac_delim"'/"\\\
  12150. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12151. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12152. for (key in D) D_is_set[key] = 1
  12153. FS = ""
  12154. }
  12155. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12156. line = \$ 0
  12157. split(line, arg, " ")
  12158. if (arg[1] == "#") {
  12159. defundef = arg[2]
  12160. mac1 = arg[3]
  12161. } else {
  12162. defundef = substr(arg[1], 2)
  12163. mac1 = arg[2]
  12164. }
  12165. split(mac1, mac2, "(") #)
  12166. macro = mac2[1]
  12167. prefix = substr(line, 1, index(line, defundef) - 1)
  12168. if (D_is_set[macro]) {
  12169. # Preserve the white space surrounding the "#".
  12170. print prefix "define", macro P[macro] D[macro]
  12171. next
  12172. } else {
  12173. # Replace #undef with comments. This is necessary, for example,
  12174. # in the case of _POSIX_SOURCE, which is predefined and required
  12175. # on some systems where configure will not decide to define it.
  12176. if (defundef == "undef") {
  12177. print "/*", prefix defundef, macro, "*/"
  12178. next
  12179. }
  12180. }
  12181. }
  12182. { print }
  12183. _ACAWK
  12184. _ACEOF
  12185. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12186. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  12187. fi # test -n "$CONFIG_HEADERS"
  12188. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  12189. shift
  12190. for ac_tag
  12191. do
  12192. case $ac_tag in
  12193. :[FHLC]) ac_mode=$ac_tag; continue;;
  12194. esac
  12195. case $ac_mode$ac_tag in
  12196. :[FHL]*:*);;
  12197. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12198. :[FH]-) ac_tag=-:-;;
  12199. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12200. esac
  12201. ac_save_IFS=$IFS
  12202. IFS=:
  12203. set x $ac_tag
  12204. IFS=$ac_save_IFS
  12205. shift
  12206. ac_file=$1
  12207. shift
  12208. case $ac_mode in
  12209. :L) ac_source=$1;;
  12210. :[FH])
  12211. ac_file_inputs=
  12212. for ac_f
  12213. do
  12214. case $ac_f in
  12215. -) ac_f="$tmp/stdin";;
  12216. *) # Look for the file first in the build tree, then in the source tree
  12217. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12218. # because $ac_f cannot contain `:'.
  12219. test -f "$ac_f" ||
  12220. case $ac_f in
  12221. [\\/$]*) false;;
  12222. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12223. esac ||
  12224. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12225. esac
  12226. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12227. as_fn_append ac_file_inputs " '$ac_f'"
  12228. done
  12229. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12230. # use $as_me), people would be surprised to read:
  12231. # /* config.h. Generated by config.status. */
  12232. configure_input='Generated from '`
  12233. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12234. `' by configure.'
  12235. if test x"$ac_file" != x-; then
  12236. configure_input="$ac_file. $configure_input"
  12237. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12238. $as_echo "$as_me: creating $ac_file" >&6;}
  12239. fi
  12240. # Neutralize special characters interpreted by sed in replacement strings.
  12241. case $configure_input in #(
  12242. *\&* | *\|* | *\\* )
  12243. ac_sed_conf_input=`$as_echo "$configure_input" |
  12244. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12245. *) ac_sed_conf_input=$configure_input;;
  12246. esac
  12247. case $ac_tag in
  12248. *:-:* | *:-) cat >"$tmp/stdin" \
  12249. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  12250. esac
  12251. ;;
  12252. esac
  12253. ac_dir=`$as_dirname -- "$ac_file" ||
  12254. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12255. X"$ac_file" : 'X\(//\)[^/]' \| \
  12256. X"$ac_file" : 'X\(//\)$' \| \
  12257. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12258. $as_echo X"$ac_file" |
  12259. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12260. s//\1/
  12261. q
  12262. }
  12263. /^X\(\/\/\)[^/].*/{
  12264. s//\1/
  12265. q
  12266. }
  12267. /^X\(\/\/\)$/{
  12268. s//\1/
  12269. q
  12270. }
  12271. /^X\(\/\).*/{
  12272. s//\1/
  12273. q
  12274. }
  12275. s/.*/./; q'`
  12276. as_dir="$ac_dir"; as_fn_mkdir_p
  12277. ac_builddir=.
  12278. case "$ac_dir" in
  12279. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12280. *)
  12281. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12282. # A ".." for each directory in $ac_dir_suffix.
  12283. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12284. case $ac_top_builddir_sub in
  12285. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12286. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12287. esac ;;
  12288. esac
  12289. ac_abs_top_builddir=$ac_pwd
  12290. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12291. # for backward compatibility:
  12292. ac_top_builddir=$ac_top_build_prefix
  12293. case $srcdir in
  12294. .) # We are building in place.
  12295. ac_srcdir=.
  12296. ac_top_srcdir=$ac_top_builddir_sub
  12297. ac_abs_top_srcdir=$ac_pwd ;;
  12298. [\\/]* | ?:[\\/]* ) # Absolute name.
  12299. ac_srcdir=$srcdir$ac_dir_suffix;
  12300. ac_top_srcdir=$srcdir
  12301. ac_abs_top_srcdir=$srcdir ;;
  12302. *) # Relative name.
  12303. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12304. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12305. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12306. esac
  12307. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12308. case $ac_mode in
  12309. :F)
  12310. #
  12311. # CONFIG_FILE
  12312. #
  12313. case $INSTALL in
  12314. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12315. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12316. esac
  12317. _ACEOF
  12318. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12319. # If the template does not know about datarootdir, expand it.
  12320. # FIXME: This hack should be removed a few years after 2.60.
  12321. ac_datarootdir_hack=; ac_datarootdir_seen=
  12322. ac_sed_dataroot='
  12323. /datarootdir/ {
  12324. p
  12325. q
  12326. }
  12327. /@datadir@/p
  12328. /@docdir@/p
  12329. /@infodir@/p
  12330. /@localedir@/p
  12331. /@mandir@/p'
  12332. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12333. *datarootdir*) ac_datarootdir_seen=yes;;
  12334. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12335. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12336. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12337. _ACEOF
  12338. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12339. ac_datarootdir_hack='
  12340. s&@datadir@&$datadir&g
  12341. s&@docdir@&$docdir&g
  12342. s&@infodir@&$infodir&g
  12343. s&@localedir@&$localedir&g
  12344. s&@mandir@&$mandir&g
  12345. s&\\\${datarootdir}&$datarootdir&g' ;;
  12346. esac
  12347. _ACEOF
  12348. # Neutralize VPATH when `$srcdir' = `.'.
  12349. # Shell code in configure.ac might set extrasub.
  12350. # FIXME: do we really want to maintain this feature?
  12351. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12352. ac_sed_extra="$ac_vpsub
  12353. $extrasub
  12354. _ACEOF
  12355. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12356. :t
  12357. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12358. s|@configure_input@|$ac_sed_conf_input|;t t
  12359. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12360. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12361. s&@srcdir@&$ac_srcdir&;t t
  12362. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12363. s&@top_srcdir@&$ac_top_srcdir&;t t
  12364. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12365. s&@builddir@&$ac_builddir&;t t
  12366. s&@abs_builddir@&$ac_abs_builddir&;t t
  12367. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12368. s&@INSTALL@&$ac_INSTALL&;t t
  12369. $ac_datarootdir_hack
  12370. "
  12371. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12372. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12373. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12374. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12375. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12377. which seems to be undefined. Please make sure it is defined." >&5
  12378. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12379. which seems to be undefined. Please make sure it is defined." >&2;}
  12380. rm -f "$tmp/stdin"
  12381. case $ac_file in
  12382. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12383. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12384. esac \
  12385. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12386. ;;
  12387. :H)
  12388. #
  12389. # CONFIG_HEADER
  12390. #
  12391. if test x"$ac_file" != x-; then
  12392. {
  12393. $as_echo "/* $configure_input */" \
  12394. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12395. } >"$tmp/config.h" \
  12396. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12397. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12398. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12399. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12400. else
  12401. rm -f "$ac_file"
  12402. mv "$tmp/config.h" "$ac_file" \
  12403. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12404. fi
  12405. else
  12406. $as_echo "/* $configure_input */" \
  12407. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12408. || as_fn_error "could not create -" "$LINENO" 5
  12409. fi
  12410. ;;
  12411. :L)
  12412. #
  12413. # CONFIG_LINK
  12414. #
  12415. if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  12416. :
  12417. else
  12418. # Prefer the file from the source tree if names are identical.
  12419. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  12420. ac_source=$srcdir/$ac_source
  12421. fi
  12422. { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  12423. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  12424. if test ! -r "$ac_source"; then
  12425. as_fn_error "$ac_source: file not found" "$LINENO" 5
  12426. fi
  12427. rm -f "$ac_file"
  12428. # Try a relative symlink, then a hard link, then a copy.
  12429. case $srcdir in
  12430. [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  12431. *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  12432. esac
  12433. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  12434. ln "$ac_source" "$ac_file" 2>/dev/null ||
  12435. cp -p "$ac_source" "$ac_file" ||
  12436. as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  12437. fi
  12438. ;;
  12439. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12440. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12441. ;;
  12442. esac
  12443. case $ac_file$ac_mode in
  12444. "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  12445. "libtool":C)
  12446. # See if we are running on zsh, and set the options which allow our
  12447. # commands through without removal of \ escapes.
  12448. if test -n "${ZSH_VERSION+set}" ; then
  12449. setopt NO_GLOB_SUBST
  12450. fi
  12451. cfgfile="${ofile}T"
  12452. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12453. $RM "$cfgfile"
  12454. cat <<_LT_EOF >> "$cfgfile"
  12455. #! $SHELL
  12456. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12457. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12458. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12459. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12460. #
  12461. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12462. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  12463. # Written by Gordon Matzigkeit, 1996
  12464. #
  12465. # This file is part of GNU Libtool.
  12466. #
  12467. # GNU Libtool is free software; you can redistribute it and/or
  12468. # modify it under the terms of the GNU General Public License as
  12469. # published by the Free Software Foundation; either version 2 of
  12470. # the License, or (at your option) any later version.
  12471. #
  12472. # As a special exception to the GNU General Public License,
  12473. # if you distribute this file as part of a program or library that
  12474. # is built using GNU Libtool, you may include this file under the
  12475. # same distribution terms that you use for the rest of that program.
  12476. #
  12477. # GNU Libtool is distributed in the hope that it will be useful,
  12478. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12479. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12480. # GNU General Public License for more details.
  12481. #
  12482. # You should have received a copy of the GNU General Public License
  12483. # along with GNU Libtool; see the file COPYING. If not, a copy
  12484. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12485. # obtained by writing to the Free Software Foundation, Inc.,
  12486. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12487. # The names of the tagged configurations supported by this script.
  12488. available_tags=""
  12489. # ### BEGIN LIBTOOL CONFIG
  12490. # Which release of libtool.m4 was used?
  12491. macro_version=$macro_version
  12492. macro_revision=$macro_revision
  12493. # Whether or not to build shared libraries.
  12494. build_libtool_libs=$enable_shared
  12495. # Whether or not to build static libraries.
  12496. build_old_libs=$enable_static
  12497. # What type of objects to build.
  12498. pic_mode=$pic_mode
  12499. # Whether or not to optimize for fast installation.
  12500. fast_install=$enable_fast_install
  12501. # Shell to use when invoking shell scripts.
  12502. SHELL=$lt_SHELL
  12503. # An echo program that protects backslashes.
  12504. ECHO=$lt_ECHO
  12505. # The host system.
  12506. host_alias=$host_alias
  12507. host=$host
  12508. host_os=$host_os
  12509. # The build system.
  12510. build_alias=$build_alias
  12511. build=$build
  12512. build_os=$build_os
  12513. # A sed program that does not truncate output.
  12514. SED=$lt_SED
  12515. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12516. Xsed="\$SED -e 1s/^X//"
  12517. # A grep program that handles long lines.
  12518. GREP=$lt_GREP
  12519. # An ERE matcher.
  12520. EGREP=$lt_EGREP
  12521. # A literal string matcher.
  12522. FGREP=$lt_FGREP
  12523. # A BSD- or MS-compatible name lister.
  12524. NM=$lt_NM
  12525. # Whether we need soft or hard links.
  12526. LN_S=$lt_LN_S
  12527. # What is the maximum length of a command?
  12528. max_cmd_len=$max_cmd_len
  12529. # Object file suffix (normally "o").
  12530. objext=$ac_objext
  12531. # Executable file suffix (normally "").
  12532. exeext=$exeext
  12533. # whether the shell understands "unset".
  12534. lt_unset=$lt_unset
  12535. # turn spaces into newlines.
  12536. SP2NL=$lt_lt_SP2NL
  12537. # turn newlines into spaces.
  12538. NL2SP=$lt_lt_NL2SP
  12539. # An object symbol dumper.
  12540. OBJDUMP=$lt_OBJDUMP
  12541. # Method to check whether dependent libraries are shared objects.
  12542. deplibs_check_method=$lt_deplibs_check_method
  12543. # Command to use when deplibs_check_method == "file_magic".
  12544. file_magic_cmd=$lt_file_magic_cmd
  12545. # The archiver.
  12546. AR=$lt_AR
  12547. AR_FLAGS=$lt_AR_FLAGS
  12548. # A symbol stripping program.
  12549. STRIP=$lt_STRIP
  12550. # Commands used to install an old-style archive.
  12551. RANLIB=$lt_RANLIB
  12552. old_postinstall_cmds=$lt_old_postinstall_cmds
  12553. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12554. # Whether to use a lock for old archive extraction.
  12555. lock_old_archive_extraction=$lock_old_archive_extraction
  12556. # A C compiler.
  12557. LTCC=$lt_CC
  12558. # LTCC compiler flags.
  12559. LTCFLAGS=$lt_CFLAGS
  12560. # Take the output of nm and produce a listing of raw symbols and C names.
  12561. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12562. # Transform the output of nm in a proper C declaration.
  12563. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12564. # Transform the output of nm in a C name address pair.
  12565. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12566. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12567. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12568. # The name of the directory that contains temporary libtool files.
  12569. objdir=$objdir
  12570. # Used to examine libraries when file_magic_cmd begins with "file".
  12571. MAGIC_CMD=$MAGIC_CMD
  12572. # Must we lock files when doing compilation?
  12573. need_locks=$lt_need_locks
  12574. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12575. DSYMUTIL=$lt_DSYMUTIL
  12576. # Tool to change global to local symbols on Mac OS X.
  12577. NMEDIT=$lt_NMEDIT
  12578. # Tool to manipulate fat objects and archives on Mac OS X.
  12579. LIPO=$lt_LIPO
  12580. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12581. OTOOL=$lt_OTOOL
  12582. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12583. OTOOL64=$lt_OTOOL64
  12584. # Old archive suffix (normally "a").
  12585. libext=$libext
  12586. # Shared library suffix (normally ".so").
  12587. shrext_cmds=$lt_shrext_cmds
  12588. # The commands to extract the exported symbol list from a shared archive.
  12589. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12590. # Variables whose values should be saved in libtool wrapper scripts and
  12591. # restored at link time.
  12592. variables_saved_for_relink=$lt_variables_saved_for_relink
  12593. # Do we need the "lib" prefix for modules?
  12594. need_lib_prefix=$need_lib_prefix
  12595. # Do we need a version for libraries?
  12596. need_version=$need_version
  12597. # Library versioning type.
  12598. version_type=$version_type
  12599. # Shared library runtime path variable.
  12600. runpath_var=$runpath_var
  12601. # Shared library path variable.
  12602. shlibpath_var=$shlibpath_var
  12603. # Is shlibpath searched before the hard-coded library search path?
  12604. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12605. # Format of library name prefix.
  12606. libname_spec=$lt_libname_spec
  12607. # List of archive names. First name is the real one, the rest are links.
  12608. # The last name is the one that the linker finds with -lNAME
  12609. library_names_spec=$lt_library_names_spec
  12610. # The coded name of the library, if different from the real name.
  12611. soname_spec=$lt_soname_spec
  12612. # Permission mode override for installation of shared libraries.
  12613. install_override_mode=$lt_install_override_mode
  12614. # Command to use after installation of a shared archive.
  12615. postinstall_cmds=$lt_postinstall_cmds
  12616. # Command to use after uninstallation of a shared archive.
  12617. postuninstall_cmds=$lt_postuninstall_cmds
  12618. # Commands used to finish a libtool library installation in a directory.
  12619. finish_cmds=$lt_finish_cmds
  12620. # As "finish_cmds", except a single script fragment to be evaled but
  12621. # not shown.
  12622. finish_eval=$lt_finish_eval
  12623. # Whether we should hardcode library paths into libraries.
  12624. hardcode_into_libs=$hardcode_into_libs
  12625. # Compile-time system search path for libraries.
  12626. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12627. # Run-time system search path for libraries.
  12628. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12629. # Whether dlopen is supported.
  12630. dlopen_support=$enable_dlopen
  12631. # Whether dlopen of programs is supported.
  12632. dlopen_self=$enable_dlopen_self
  12633. # Whether dlopen of statically linked programs is supported.
  12634. dlopen_self_static=$enable_dlopen_self_static
  12635. # Commands to strip libraries.
  12636. old_striplib=$lt_old_striplib
  12637. striplib=$lt_striplib
  12638. # The linker used to build libraries.
  12639. LD=$lt_LD
  12640. # How to create reloadable object files.
  12641. reload_flag=$lt_reload_flag
  12642. reload_cmds=$lt_reload_cmds
  12643. # Commands used to build an old-style archive.
  12644. old_archive_cmds=$lt_old_archive_cmds
  12645. # A language specific compiler.
  12646. CC=$lt_compiler
  12647. # Is the compiler the GNU compiler?
  12648. with_gcc=$GCC
  12649. # Compiler flag to turn off builtin functions.
  12650. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12651. # How to pass a linker flag through the compiler.
  12652. wl=$lt_lt_prog_compiler_wl
  12653. # Additional compiler flags for building library objects.
  12654. pic_flag=$lt_lt_prog_compiler_pic
  12655. # Compiler flag to prevent dynamic linking.
  12656. link_static_flag=$lt_lt_prog_compiler_static
  12657. # Does compiler simultaneously support -c and -o options?
  12658. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12659. # Whether or not to add -lc for building shared libraries.
  12660. build_libtool_need_lc=$archive_cmds_need_lc
  12661. # Whether or not to disallow shared libs when runtime libs are static.
  12662. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12663. # Compiler flag to allow reflexive dlopens.
  12664. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12665. # Compiler flag to generate shared objects directly from archives.
  12666. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12667. # Whether the compiler copes with passing no objects directly.
  12668. compiler_needs_object=$lt_compiler_needs_object
  12669. # Create an old-style archive from a shared archive.
  12670. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12671. # Create a temporary old-style archive to link instead of a shared archive.
  12672. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12673. # Commands used to build a shared archive.
  12674. archive_cmds=$lt_archive_cmds
  12675. archive_expsym_cmds=$lt_archive_expsym_cmds
  12676. # Commands used to build a loadable module if different from building
  12677. # a shared archive.
  12678. module_cmds=$lt_module_cmds
  12679. module_expsym_cmds=$lt_module_expsym_cmds
  12680. # Whether we are building with GNU ld or not.
  12681. with_gnu_ld=$lt_with_gnu_ld
  12682. # Flag that allows shared libraries with undefined symbols to be built.
  12683. allow_undefined_flag=$lt_allow_undefined_flag
  12684. # Flag that enforces no undefined symbols.
  12685. no_undefined_flag=$lt_no_undefined_flag
  12686. # Flag to hardcode \$libdir into a binary during linking.
  12687. # This must work even if \$libdir does not exist
  12688. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12689. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12690. # during linking. This must work even if \$libdir does not exist.
  12691. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12692. # Whether we need a single "-rpath" flag with a separated argument.
  12693. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12694. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12695. # DIR into the resulting binary.
  12696. hardcode_direct=$hardcode_direct
  12697. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12698. # DIR into the resulting binary and the resulting library dependency is
  12699. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12700. # library is relocated.
  12701. hardcode_direct_absolute=$hardcode_direct_absolute
  12702. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12703. # into the resulting binary.
  12704. hardcode_minus_L=$hardcode_minus_L
  12705. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12706. # into the resulting binary.
  12707. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12708. # Set to "yes" if building a shared library automatically hardcodes DIR
  12709. # into the library and all subsequent libraries and executables linked
  12710. # against it.
  12711. hardcode_automatic=$hardcode_automatic
  12712. # Set to yes if linker adds runtime paths of dependent libraries
  12713. # to runtime path list.
  12714. inherit_rpath=$inherit_rpath
  12715. # Whether libtool must link a program against all its dependency libraries.
  12716. link_all_deplibs=$link_all_deplibs
  12717. # Fix the shell variable \$srcfile for the compiler.
  12718. fix_srcfile_path=$lt_fix_srcfile_path
  12719. # Set to "yes" if exported symbols are required.
  12720. always_export_symbols=$always_export_symbols
  12721. # The commands to list exported symbols.
  12722. export_symbols_cmds=$lt_export_symbols_cmds
  12723. # Symbols that should not be listed in the preloaded symbols.
  12724. exclude_expsyms=$lt_exclude_expsyms
  12725. # Symbols that must always be exported.
  12726. include_expsyms=$lt_include_expsyms
  12727. # Commands necessary for linking programs (against libraries) with templates.
  12728. prelink_cmds=$lt_prelink_cmds
  12729. # Specify filename containing input files.
  12730. file_list_spec=$lt_file_list_spec
  12731. # How to hardcode a shared library path into an executable.
  12732. hardcode_action=$hardcode_action
  12733. # ### END LIBTOOL CONFIG
  12734. _LT_EOF
  12735. case $host_os in
  12736. aix3*)
  12737. cat <<\_LT_EOF >> "$cfgfile"
  12738. # AIX sometimes has problems with the GCC collect2 program. For some
  12739. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12740. # vanish in a puff of smoke.
  12741. if test "X${COLLECT_NAMES+set}" != Xset; then
  12742. COLLECT_NAMES=
  12743. export COLLECT_NAMES
  12744. fi
  12745. _LT_EOF
  12746. ;;
  12747. esac
  12748. ltmain="$ac_aux_dir/ltmain.sh"
  12749. # We use sed instead of cat because bash on DJGPP gets confused if
  12750. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12751. # text mode, it properly converts lines to CR/LF. This bash problem
  12752. # is reportedly fixed, but why not run on old versions too?
  12753. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12754. || (rm -f "$cfgfile"; exit 1)
  12755. case $xsi_shell in
  12756. yes)
  12757. cat << \_LT_EOF >> "$cfgfile"
  12758. # func_dirname file append nondir_replacement
  12759. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12760. # otherwise set result to NONDIR_REPLACEMENT.
  12761. func_dirname ()
  12762. {
  12763. case ${1} in
  12764. */*) func_dirname_result="${1%/*}${2}" ;;
  12765. * ) func_dirname_result="${3}" ;;
  12766. esac
  12767. }
  12768. # func_basename file
  12769. func_basename ()
  12770. {
  12771. func_basename_result="${1##*/}"
  12772. }
  12773. # func_dirname_and_basename file append nondir_replacement
  12774. # perform func_basename and func_dirname in a single function
  12775. # call:
  12776. # dirname: Compute the dirname of FILE. If nonempty,
  12777. # add APPEND to the result, otherwise set result
  12778. # to NONDIR_REPLACEMENT.
  12779. # value returned in "$func_dirname_result"
  12780. # basename: Compute filename of FILE.
  12781. # value retuned in "$func_basename_result"
  12782. # Implementation must be kept synchronized with func_dirname
  12783. # and func_basename. For efficiency, we do not delegate to
  12784. # those functions but instead duplicate the functionality here.
  12785. func_dirname_and_basename ()
  12786. {
  12787. case ${1} in
  12788. */*) func_dirname_result="${1%/*}${2}" ;;
  12789. * ) func_dirname_result="${3}" ;;
  12790. esac
  12791. func_basename_result="${1##*/}"
  12792. }
  12793. # func_stripname prefix suffix name
  12794. # strip PREFIX and SUFFIX off of NAME.
  12795. # PREFIX and SUFFIX must not contain globbing or regex special
  12796. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12797. # dot (in which case that matches only a dot).
  12798. func_stripname ()
  12799. {
  12800. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12801. # positional parameters, so assign one to ordinary parameter first.
  12802. func_stripname_result=${3}
  12803. func_stripname_result=${func_stripname_result#"${1}"}
  12804. func_stripname_result=${func_stripname_result%"${2}"}
  12805. }
  12806. # func_opt_split
  12807. func_opt_split ()
  12808. {
  12809. func_opt_split_opt=${1%%=*}
  12810. func_opt_split_arg=${1#*=}
  12811. }
  12812. # func_lo2o object
  12813. func_lo2o ()
  12814. {
  12815. case ${1} in
  12816. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12817. *) func_lo2o_result=${1} ;;
  12818. esac
  12819. }
  12820. # func_xform libobj-or-source
  12821. func_xform ()
  12822. {
  12823. func_xform_result=${1%.*}.lo
  12824. }
  12825. # func_arith arithmetic-term...
  12826. func_arith ()
  12827. {
  12828. func_arith_result=$(( $* ))
  12829. }
  12830. # func_len string
  12831. # STRING may not start with a hyphen.
  12832. func_len ()
  12833. {
  12834. func_len_result=${#1}
  12835. }
  12836. _LT_EOF
  12837. ;;
  12838. *) # Bourne compatible functions.
  12839. cat << \_LT_EOF >> "$cfgfile"
  12840. # func_dirname file append nondir_replacement
  12841. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12842. # otherwise set result to NONDIR_REPLACEMENT.
  12843. func_dirname ()
  12844. {
  12845. # Extract subdirectory from the argument.
  12846. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  12847. if test "X$func_dirname_result" = "X${1}"; then
  12848. func_dirname_result="${3}"
  12849. else
  12850. func_dirname_result="$func_dirname_result${2}"
  12851. fi
  12852. }
  12853. # func_basename file
  12854. func_basename ()
  12855. {
  12856. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  12857. }
  12858. # func_stripname prefix suffix name
  12859. # strip PREFIX and SUFFIX off of NAME.
  12860. # PREFIX and SUFFIX must not contain globbing or regex special
  12861. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12862. # dot (in which case that matches only a dot).
  12863. # func_strip_suffix prefix name
  12864. func_stripname ()
  12865. {
  12866. case ${2} in
  12867. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12868. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12869. esac
  12870. }
  12871. # sed scripts:
  12872. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12873. my_sed_long_arg='1s/^-[^=]*=//'
  12874. # func_opt_split
  12875. func_opt_split ()
  12876. {
  12877. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  12878. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  12879. }
  12880. # func_lo2o object
  12881. func_lo2o ()
  12882. {
  12883. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  12884. }
  12885. # func_xform libobj-or-source
  12886. func_xform ()
  12887. {
  12888. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  12889. }
  12890. # func_arith arithmetic-term...
  12891. func_arith ()
  12892. {
  12893. func_arith_result=`expr "$@"`
  12894. }
  12895. # func_len string
  12896. # STRING may not start with a hyphen.
  12897. func_len ()
  12898. {
  12899. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12900. }
  12901. _LT_EOF
  12902. esac
  12903. case $lt_shell_append in
  12904. yes)
  12905. cat << \_LT_EOF >> "$cfgfile"
  12906. # func_append var value
  12907. # Append VALUE to the end of shell variable VAR.
  12908. func_append ()
  12909. {
  12910. eval "$1+=\$2"
  12911. }
  12912. _LT_EOF
  12913. ;;
  12914. *)
  12915. cat << \_LT_EOF >> "$cfgfile"
  12916. # func_append var value
  12917. # Append VALUE to the end of shell variable VAR.
  12918. func_append ()
  12919. {
  12920. eval "$1=\$$1\$2"
  12921. }
  12922. _LT_EOF
  12923. ;;
  12924. esac
  12925. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12926. || (rm -f "$cfgfile"; exit 1)
  12927. mv -f "$cfgfile" "$ofile" ||
  12928. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12929. chmod +x "$ofile"
  12930. ;;
  12931. "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
  12932. rm -f Makesim1.tmp Makesim2.tmp Makefile
  12933. sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
  12934. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
  12935. sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
  12936. -e '/^## COMMON_POST_/ r Makesim2.tmp' \
  12937. <Makefile.sim >Makefile
  12938. rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
  12939. ;;
  12940. "stamp-h":C) echo > stamp-h ;;
  12941. esac
  12942. done # for ac_tag
  12943. as_fn_exit 0
  12944. _ACEOF
  12945. ac_clean_files=$ac_clean_files_save
  12946. test $ac_write_fail = 0 ||
  12947. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12948. # configure is writing to config.log, and then calls config.status.
  12949. # config.status does its own redirection, appending to config.log.
  12950. # Unfortunately, on DOS this fails, as config.log is still kept open
  12951. # by configure, so config.status won't be able to write to it; its
  12952. # output is simply discarded. So we exec the FD to /dev/null,
  12953. # effectively closing config.log, so it can be properly (re)opened and
  12954. # appended to by config.status. When coming back to configure, we
  12955. # need to make the FD available again.
  12956. if test "$no_create" != yes; then
  12957. ac_cs_success=:
  12958. ac_config_status_args=
  12959. test "$silent" = yes &&
  12960. ac_config_status_args="$ac_config_status_args --quiet"
  12961. exec 5>/dev/null
  12962. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12963. exec 5>>config.log
  12964. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12965. # would make configure fail if this is the last instruction.
  12966. $ac_cs_success || as_fn_exit $?
  12967. fi
  12968. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12970. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12971. fi