configure 450 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780
  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. DTC
  554. REPORT_BUGS_TEXI
  555. REPORT_BUGS_TO
  556. PKGVERSION
  557. sim_profile
  558. sim_trace
  559. sim_stdio
  560. sim_debug
  561. sim_cflags
  562. sim_bswap
  563. MAINT
  564. MAINTAINER_MODE_FALSE
  565. MAINTAINER_MODE_TRUE
  566. lt_cv_dlopen_libs
  567. OTOOL64
  568. OTOOL
  569. LIPO
  570. NMEDIT
  571. DSYMUTIL
  572. AWK
  573. STRIP
  574. OBJDUMP
  575. LN_S
  576. NM
  577. ac_ct_DUMPBIN
  578. DUMPBIN
  579. LD
  580. FGREP
  581. SED
  582. LIBTOOL
  583. PLUGINS_FALSE
  584. PLUGINS_TRUE
  585. zlibinc
  586. zlibdir
  587. CATOBJEXT
  588. GENCAT
  589. INSTOBJEXT
  590. DATADIRNAME
  591. CATALOGS
  592. POSUB
  593. GMSGFMT
  594. XGETTEXT
  595. INCINTL
  596. LIBINTL_DEP
  597. LIBINTL
  598. USE_NLS
  599. GMAKE_FALSE
  600. GMAKE_TRUE
  601. MAKE
  602. CCDEPMODE
  603. DEPDIR
  604. am__leading_dot
  605. PACKAGE
  606. RANLIB
  607. AR
  608. HDEFINES
  609. CC_FOR_BUILD
  610. INSTALL_DATA
  611. INSTALL_SCRIPT
  612. INSTALL_PROGRAM
  613. EGREP
  614. GREP
  615. CPP
  616. target_os
  617. target_vendor
  618. target_cpu
  619. target
  620. host_os
  621. host_vendor
  622. host_cpu
  623. host
  624. build_os
  625. build_vendor
  626. build_cpu
  627. build
  628. OBJEXT
  629. EXEEXT
  630. ac_ct_CC
  631. CPPFLAGS
  632. LDFLAGS
  633. CFLAGS
  634. CC
  635. WERROR_CFLAGS
  636. WARN_CFLAGS
  637. sim_xor_endian
  638. sim_stdcall
  639. sim_smp
  640. sim_reserved_bits
  641. sim_regparm
  642. sim_packages
  643. sim_inline
  644. sim_hw
  645. sim_hw_objs
  646. sim_hw_cflags
  647. sim_default_model
  648. sim_scache
  649. sim_float
  650. sim_hostendian
  651. sim_endian
  652. sim_bitsize
  653. sim_assert
  654. sim_alignment
  655. sim_environment
  656. target_alias
  657. host_alias
  658. build_alias
  659. LIBS
  660. ECHO_T
  661. ECHO_N
  662. ECHO_C
  663. DEFS
  664. mandir
  665. localedir
  666. libdir
  667. psdir
  668. pdfdir
  669. dvidir
  670. htmldir
  671. infodir
  672. docdir
  673. oldincludedir
  674. includedir
  675. localstatedir
  676. sharedstatedir
  677. sysconfdir
  678. datadir
  679. datarootdir
  680. libexecdir
  681. sbindir
  682. bindir
  683. program_transform_name
  684. prefix
  685. exec_prefix
  686. PACKAGE_URL
  687. PACKAGE_BUGREPORT
  688. PACKAGE_STRING
  689. PACKAGE_VERSION
  690. PACKAGE_TARNAME
  691. PACKAGE_NAME
  692. PATH_SEPARATOR
  693. SHELL'
  694. ac_subst_files=''
  695. ac_user_opts='
  696. enable_option_checking
  697. with_system_zlib
  698. enable_plugins
  699. enable_shared
  700. enable_static
  701. with_pic
  702. enable_fast_install
  703. with_gnu_ld
  704. enable_libtool_lock
  705. enable_maintainer_mode
  706. enable_sim_bswap
  707. enable_sim_cflags
  708. enable_sim_debug
  709. enable_sim_stdio
  710. enable_sim_trace
  711. enable_sim_profile
  712. with_pkgversion
  713. with_bugurl
  714. enable_sim_endian
  715. enable_sim_alignment
  716. enable_sim_hostendian
  717. enable_sim_environment
  718. enable_sim_inline
  719. enable_werror
  720. enable_build_warnings
  721. enable_sim_build_warnings
  722. '
  723. ac_precious_vars='build_alias
  724. host_alias
  725. target_alias
  726. CC
  727. CFLAGS
  728. LDFLAGS
  729. LIBS
  730. CPPFLAGS
  731. CPP'
  732. # Initialize some variables set by options.
  733. ac_init_help=
  734. ac_init_version=false
  735. ac_unrecognized_opts=
  736. ac_unrecognized_sep=
  737. # The variables have the same names as the options, with
  738. # dashes changed to underlines.
  739. cache_file=/dev/null
  740. exec_prefix=NONE
  741. no_create=
  742. no_recursion=
  743. prefix=NONE
  744. program_prefix=NONE
  745. program_suffix=NONE
  746. program_transform_name=s,x,x,
  747. silent=
  748. site=
  749. srcdir=
  750. verbose=
  751. x_includes=NONE
  752. x_libraries=NONE
  753. # Installation directory options.
  754. # These are left unexpanded so users can "make install exec_prefix=/foo"
  755. # and all the variables that are supposed to be based on exec_prefix
  756. # by default will actually change.
  757. # Use braces instead of parens because sh, perl, etc. also accept them.
  758. # (The list follows the same order as the GNU Coding Standards.)
  759. bindir='${exec_prefix}/bin'
  760. sbindir='${exec_prefix}/sbin'
  761. libexecdir='${exec_prefix}/libexec'
  762. datarootdir='${prefix}/share'
  763. datadir='${datarootdir}'
  764. sysconfdir='${prefix}/etc'
  765. sharedstatedir='${prefix}/com'
  766. localstatedir='${prefix}/var'
  767. includedir='${prefix}/include'
  768. oldincludedir='/usr/include'
  769. docdir='${datarootdir}/doc/${PACKAGE}'
  770. infodir='${datarootdir}/info'
  771. htmldir='${docdir}'
  772. dvidir='${docdir}'
  773. pdfdir='${docdir}'
  774. psdir='${docdir}'
  775. libdir='${exec_prefix}/lib'
  776. localedir='${datarootdir}/locale'
  777. mandir='${datarootdir}/man'
  778. ac_prev=
  779. ac_dashdash=
  780. for ac_option
  781. do
  782. # If the previous option needs an argument, assign it.
  783. if test -n "$ac_prev"; then
  784. eval $ac_prev=\$ac_option
  785. ac_prev=
  786. continue
  787. fi
  788. case $ac_option in
  789. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  790. *) ac_optarg=yes ;;
  791. esac
  792. # Accept the important Cygnus configure options, so we can diagnose typos.
  793. case $ac_dashdash$ac_option in
  794. --)
  795. ac_dashdash=yes ;;
  796. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  797. ac_prev=bindir ;;
  798. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  799. bindir=$ac_optarg ;;
  800. -build | --build | --buil | --bui | --bu)
  801. ac_prev=build_alias ;;
  802. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  803. build_alias=$ac_optarg ;;
  804. -cache-file | --cache-file | --cache-fil | --cache-fi \
  805. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  806. ac_prev=cache_file ;;
  807. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  808. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  809. cache_file=$ac_optarg ;;
  810. --config-cache | -C)
  811. cache_file=config.cache ;;
  812. -datadir | --datadir | --datadi | --datad)
  813. ac_prev=datadir ;;
  814. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  815. datadir=$ac_optarg ;;
  816. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  817. | --dataroo | --dataro | --datar)
  818. ac_prev=datarootdir ;;
  819. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  820. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  821. datarootdir=$ac_optarg ;;
  822. -disable-* | --disable-*)
  823. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  824. # Reject names that are not valid shell variable names.
  825. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  826. as_fn_error "invalid feature name: $ac_useropt"
  827. ac_useropt_orig=$ac_useropt
  828. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  829. case $ac_user_opts in
  830. *"
  831. "enable_$ac_useropt"
  832. "*) ;;
  833. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  834. ac_unrecognized_sep=', ';;
  835. esac
  836. eval enable_$ac_useropt=no ;;
  837. -docdir | --docdir | --docdi | --doc | --do)
  838. ac_prev=docdir ;;
  839. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  840. docdir=$ac_optarg ;;
  841. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  842. ac_prev=dvidir ;;
  843. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  844. dvidir=$ac_optarg ;;
  845. -enable-* | --enable-*)
  846. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  847. # Reject names that are not valid shell variable names.
  848. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  849. as_fn_error "invalid feature name: $ac_useropt"
  850. ac_useropt_orig=$ac_useropt
  851. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  852. case $ac_user_opts in
  853. *"
  854. "enable_$ac_useropt"
  855. "*) ;;
  856. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  857. ac_unrecognized_sep=', ';;
  858. esac
  859. eval enable_$ac_useropt=\$ac_optarg ;;
  860. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  861. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  862. | --exec | --exe | --ex)
  863. ac_prev=exec_prefix ;;
  864. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  865. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  866. | --exec=* | --exe=* | --ex=*)
  867. exec_prefix=$ac_optarg ;;
  868. -gas | --gas | --ga | --g)
  869. # Obsolete; use --with-gas.
  870. with_gas=yes ;;
  871. -help | --help | --hel | --he | -h)
  872. ac_init_help=long ;;
  873. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  874. ac_init_help=recursive ;;
  875. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  876. ac_init_help=short ;;
  877. -host | --host | --hos | --ho)
  878. ac_prev=host_alias ;;
  879. -host=* | --host=* | --hos=* | --ho=*)
  880. host_alias=$ac_optarg ;;
  881. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  882. ac_prev=htmldir ;;
  883. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  884. | --ht=*)
  885. htmldir=$ac_optarg ;;
  886. -includedir | --includedir | --includedi | --included | --include \
  887. | --includ | --inclu | --incl | --inc)
  888. ac_prev=includedir ;;
  889. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  890. | --includ=* | --inclu=* | --incl=* | --inc=*)
  891. includedir=$ac_optarg ;;
  892. -infodir | --infodir | --infodi | --infod | --info | --inf)
  893. ac_prev=infodir ;;
  894. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  895. infodir=$ac_optarg ;;
  896. -libdir | --libdir | --libdi | --libd)
  897. ac_prev=libdir ;;
  898. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  899. libdir=$ac_optarg ;;
  900. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  901. | --libexe | --libex | --libe)
  902. ac_prev=libexecdir ;;
  903. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  904. | --libexe=* | --libex=* | --libe=*)
  905. libexecdir=$ac_optarg ;;
  906. -localedir | --localedir | --localedi | --localed | --locale)
  907. ac_prev=localedir ;;
  908. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  909. localedir=$ac_optarg ;;
  910. -localstatedir | --localstatedir | --localstatedi | --localstated \
  911. | --localstate | --localstat | --localsta | --localst | --locals)
  912. ac_prev=localstatedir ;;
  913. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  914. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  915. localstatedir=$ac_optarg ;;
  916. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  917. ac_prev=mandir ;;
  918. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  919. mandir=$ac_optarg ;;
  920. -nfp | --nfp | --nf)
  921. # Obsolete; use --without-fp.
  922. with_fp=no ;;
  923. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  924. | --no-cr | --no-c | -n)
  925. no_create=yes ;;
  926. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  927. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  928. no_recursion=yes ;;
  929. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  930. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  931. | --oldin | --oldi | --old | --ol | --o)
  932. ac_prev=oldincludedir ;;
  933. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  934. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  935. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  936. oldincludedir=$ac_optarg ;;
  937. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  938. ac_prev=prefix ;;
  939. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  940. prefix=$ac_optarg ;;
  941. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  942. | --program-pre | --program-pr | --program-p)
  943. ac_prev=program_prefix ;;
  944. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  945. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  946. program_prefix=$ac_optarg ;;
  947. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  948. | --program-suf | --program-su | --program-s)
  949. ac_prev=program_suffix ;;
  950. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  951. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  952. program_suffix=$ac_optarg ;;
  953. -program-transform-name | --program-transform-name \
  954. | --program-transform-nam | --program-transform-na \
  955. | --program-transform-n | --program-transform- \
  956. | --program-transform | --program-transfor \
  957. | --program-transfo | --program-transf \
  958. | --program-trans | --program-tran \
  959. | --progr-tra | --program-tr | --program-t)
  960. ac_prev=program_transform_name ;;
  961. -program-transform-name=* | --program-transform-name=* \
  962. | --program-transform-nam=* | --program-transform-na=* \
  963. | --program-transform-n=* | --program-transform-=* \
  964. | --program-transform=* | --program-transfor=* \
  965. | --program-transfo=* | --program-transf=* \
  966. | --program-trans=* | --program-tran=* \
  967. | --progr-tra=* | --program-tr=* | --program-t=*)
  968. program_transform_name=$ac_optarg ;;
  969. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  970. ac_prev=pdfdir ;;
  971. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  972. pdfdir=$ac_optarg ;;
  973. -psdir | --psdir | --psdi | --psd | --ps)
  974. ac_prev=psdir ;;
  975. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  976. psdir=$ac_optarg ;;
  977. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  978. | -silent | --silent | --silen | --sile | --sil)
  979. silent=yes ;;
  980. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  981. ac_prev=sbindir ;;
  982. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  983. | --sbi=* | --sb=*)
  984. sbindir=$ac_optarg ;;
  985. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  986. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  987. | --sharedst | --shareds | --shared | --share | --shar \
  988. | --sha | --sh)
  989. ac_prev=sharedstatedir ;;
  990. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  991. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  992. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  993. | --sha=* | --sh=*)
  994. sharedstatedir=$ac_optarg ;;
  995. -site | --site | --sit)
  996. ac_prev=site ;;
  997. -site=* | --site=* | --sit=*)
  998. site=$ac_optarg ;;
  999. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1000. ac_prev=srcdir ;;
  1001. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1002. srcdir=$ac_optarg ;;
  1003. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1004. | --syscon | --sysco | --sysc | --sys | --sy)
  1005. ac_prev=sysconfdir ;;
  1006. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1007. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1008. sysconfdir=$ac_optarg ;;
  1009. -target | --target | --targe | --targ | --tar | --ta | --t)
  1010. ac_prev=target_alias ;;
  1011. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1012. target_alias=$ac_optarg ;;
  1013. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1014. verbose=yes ;;
  1015. -version | --version | --versio | --versi | --vers | -V)
  1016. ac_init_version=: ;;
  1017. -with-* | --with-*)
  1018. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1019. # Reject names that are not valid shell variable names.
  1020. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1021. as_fn_error "invalid package name: $ac_useropt"
  1022. ac_useropt_orig=$ac_useropt
  1023. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1024. case $ac_user_opts in
  1025. *"
  1026. "with_$ac_useropt"
  1027. "*) ;;
  1028. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1029. ac_unrecognized_sep=', ';;
  1030. esac
  1031. eval with_$ac_useropt=\$ac_optarg ;;
  1032. -without-* | --without-*)
  1033. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1034. # Reject names that are not valid shell variable names.
  1035. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1036. as_fn_error "invalid package name: $ac_useropt"
  1037. ac_useropt_orig=$ac_useropt
  1038. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1039. case $ac_user_opts in
  1040. *"
  1041. "with_$ac_useropt"
  1042. "*) ;;
  1043. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1044. ac_unrecognized_sep=', ';;
  1045. esac
  1046. eval with_$ac_useropt=no ;;
  1047. --x)
  1048. # Obsolete; use --with-x.
  1049. with_x=yes ;;
  1050. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1051. | --x-incl | --x-inc | --x-in | --x-i)
  1052. ac_prev=x_includes ;;
  1053. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1054. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1055. x_includes=$ac_optarg ;;
  1056. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1057. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1058. ac_prev=x_libraries ;;
  1059. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1060. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1061. x_libraries=$ac_optarg ;;
  1062. -*) as_fn_error "unrecognized option: \`$ac_option'
  1063. Try \`$0 --help' for more information."
  1064. ;;
  1065. *=*)
  1066. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1067. # Reject names that are not valid shell variable names.
  1068. case $ac_envvar in #(
  1069. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1070. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1071. esac
  1072. eval $ac_envvar=\$ac_optarg
  1073. export $ac_envvar ;;
  1074. *)
  1075. # FIXME: should be removed in autoconf 3.0.
  1076. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1077. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1078. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1079. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1080. ;;
  1081. esac
  1082. done
  1083. if test -n "$ac_prev"; then
  1084. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1085. as_fn_error "missing argument to $ac_option"
  1086. fi
  1087. if test -n "$ac_unrecognized_opts"; then
  1088. case $enable_option_checking in
  1089. no) ;;
  1090. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1091. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1092. esac
  1093. fi
  1094. # Check all directory arguments for consistency.
  1095. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1096. datadir sysconfdir sharedstatedir localstatedir includedir \
  1097. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1098. libdir localedir mandir
  1099. do
  1100. eval ac_val=\$$ac_var
  1101. # Remove trailing slashes.
  1102. case $ac_val in
  1103. */ )
  1104. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1105. eval $ac_var=\$ac_val;;
  1106. esac
  1107. # Be sure to have absolute directory names.
  1108. case $ac_val in
  1109. [\\/$]* | ?:[\\/]* ) continue;;
  1110. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1111. esac
  1112. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1113. done
  1114. # There might be people who depend on the old broken behavior: `$host'
  1115. # used to hold the argument of --host etc.
  1116. # FIXME: To remove some day.
  1117. build=$build_alias
  1118. host=$host_alias
  1119. target=$target_alias
  1120. # FIXME: To remove some day.
  1121. if test "x$host_alias" != x; then
  1122. if test "x$build_alias" = x; then
  1123. cross_compiling=maybe
  1124. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1125. If a cross compiler is detected then cross compile mode will be used." >&2
  1126. elif test "x$build_alias" != "x$host_alias"; then
  1127. cross_compiling=yes
  1128. fi
  1129. fi
  1130. ac_tool_prefix=
  1131. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1132. test "$silent" = yes && exec 6>/dev/null
  1133. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1134. ac_ls_di=`ls -di .` &&
  1135. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1136. as_fn_error "working directory cannot be determined"
  1137. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1138. as_fn_error "pwd does not report name of working directory"
  1139. # Find the source files, if location was not specified.
  1140. if test -z "$srcdir"; then
  1141. ac_srcdir_defaulted=yes
  1142. # Try the directory containing this script, then the parent directory.
  1143. ac_confdir=`$as_dirname -- "$as_myself" ||
  1144. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1145. X"$as_myself" : 'X\(//\)[^/]' \| \
  1146. X"$as_myself" : 'X\(//\)$' \| \
  1147. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1148. $as_echo X"$as_myself" |
  1149. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1150. s//\1/
  1151. q
  1152. }
  1153. /^X\(\/\/\)[^/].*/{
  1154. s//\1/
  1155. q
  1156. }
  1157. /^X\(\/\/\)$/{
  1158. s//\1/
  1159. q
  1160. }
  1161. /^X\(\/\).*/{
  1162. s//\1/
  1163. q
  1164. }
  1165. s/.*/./; q'`
  1166. srcdir=$ac_confdir
  1167. if test ! -r "$srcdir/$ac_unique_file"; then
  1168. srcdir=..
  1169. fi
  1170. else
  1171. ac_srcdir_defaulted=no
  1172. fi
  1173. if test ! -r "$srcdir/$ac_unique_file"; then
  1174. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1175. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1176. fi
  1177. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1178. ac_abs_confdir=`(
  1179. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1180. pwd)`
  1181. # When building in place, set srcdir=.
  1182. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1183. srcdir=.
  1184. fi
  1185. # Remove unnecessary trailing slashes from srcdir.
  1186. # Double slashes in file names in object file debugging info
  1187. # mess up M-x gdb in Emacs.
  1188. case $srcdir in
  1189. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1190. esac
  1191. for ac_var in $ac_precious_vars; do
  1192. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1193. eval ac_env_${ac_var}_value=\$${ac_var}
  1194. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1195. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1196. done
  1197. #
  1198. # Report the --help message.
  1199. #
  1200. if test "$ac_init_help" = "long"; then
  1201. # Omit some internal or obsolete options to make the list less imposing.
  1202. # This message is too long to be a string in the A/UX 3.1 sh.
  1203. cat <<_ACEOF
  1204. \`configure' configures this package to adapt to many kinds of systems.
  1205. Usage: $0 [OPTION]... [VAR=VALUE]...
  1206. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1207. VAR=VALUE. See below for descriptions of some of the useful variables.
  1208. Defaults for the options are specified in brackets.
  1209. Configuration:
  1210. -h, --help display this help and exit
  1211. --help=short display options specific to this package
  1212. --help=recursive display the short help of all the included packages
  1213. -V, --version display version information and exit
  1214. -q, --quiet, --silent do not print \`checking...' messages
  1215. --cache-file=FILE cache test results in FILE [disabled]
  1216. -C, --config-cache alias for \`--cache-file=config.cache'
  1217. -n, --no-create do not create output files
  1218. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1219. Installation directories:
  1220. --prefix=PREFIX install architecture-independent files in PREFIX
  1221. [$ac_default_prefix]
  1222. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1223. [PREFIX]
  1224. By default, \`make install' will install all the files in
  1225. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1226. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1227. for instance \`--prefix=\$HOME'.
  1228. For better control, use the options below.
  1229. Fine tuning of the installation directories:
  1230. --bindir=DIR user executables [EPREFIX/bin]
  1231. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1232. --libexecdir=DIR program executables [EPREFIX/libexec]
  1233. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1234. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1235. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1236. --libdir=DIR object code libraries [EPREFIX/lib]
  1237. --includedir=DIR C header files [PREFIX/include]
  1238. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1239. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1240. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1241. --infodir=DIR info documentation [DATAROOTDIR/info]
  1242. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1243. --mandir=DIR man documentation [DATAROOTDIR/man]
  1244. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1245. --htmldir=DIR html documentation [DOCDIR]
  1246. --dvidir=DIR dvi documentation [DOCDIR]
  1247. --pdfdir=DIR pdf documentation [DOCDIR]
  1248. --psdir=DIR ps documentation [DOCDIR]
  1249. _ACEOF
  1250. cat <<\_ACEOF
  1251. Program names:
  1252. --program-prefix=PREFIX prepend PREFIX to installed program names
  1253. --program-suffix=SUFFIX append SUFFIX to installed program names
  1254. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1255. System types:
  1256. --build=BUILD configure for building on BUILD [guessed]
  1257. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1258. --target=TARGET configure for building compilers for TARGET [HOST]
  1259. _ACEOF
  1260. fi
  1261. if test -n "$ac_init_help"; then
  1262. cat <<\_ACEOF
  1263. Optional Features:
  1264. --disable-option-checking ignore unrecognized --enable/--with options
  1265. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1266. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1267. --enable-plugins Enable support for plugins
  1268. --enable-shared[=PKGS] build shared libraries [default=yes]
  1269. --enable-static[=PKGS] build static libraries [default=yes]
  1270. --enable-fast-install[=PKGS]
  1271. optimize for fast installation [default=yes]
  1272. --disable-libtool-lock avoid locking (might break parallel builds)
  1273. --enable-maintainer-mode enable make rules and dependencies not useful
  1274. (and sometimes confusing) to the casual installer
  1275. --enable-sim-bswap Use Host specific BSWAP instruction
  1276. --enable-sim-cflags=opts
  1277. Extra CFLAGS for use in building simulator
  1278. --enable-sim-debug=opts Enable debugging flags (for developers of the sim
  1279. itself)
  1280. --enable-sim-stdio Specify whether to use stdio for console
  1281. input/output
  1282. --enable-sim-trace=opts Enable tracing of simulated programs
  1283. --enable-sim-profile=opts
  1284. Enable profiling flags
  1285. --enable-sim-endian=endian
  1286. Specify target byte endian orientation
  1287. --enable-sim-alignment=align
  1288. Specify strict, nonstrict or forced alignment of
  1289. memory accesses
  1290. --enable-sim-hostendian=end
  1291. Specify host byte endian orientation
  1292. --enable-sim-environment=environment
  1293. Specify mixed, user, virtual or operating
  1294. environment
  1295. --enable-sim-inline=inlines
  1296. Specify which functions should be inlined
  1297. --enable-werror treat compile warnings as errors
  1298. --enable-build-warnings enable build-time compiler warnings if gcc is used
  1299. --enable-sim-build-warnings
  1300. enable SIM specific build-time compiler warnings if
  1301. gcc is used
  1302. Optional Packages:
  1303. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1304. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1305. --with-system-zlib use installed libz
  1306. --with-pic try to use only PIC/non-PIC objects [default=use
  1307. both]
  1308. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1309. --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
  1310. --with-bugurl=URL Direct users to URL to report a bug
  1311. Some influential environment variables:
  1312. CC C compiler command
  1313. CFLAGS C compiler flags
  1314. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1315. nonstandard directory <lib dir>
  1316. LIBS libraries to pass to the linker, e.g. -l<library>
  1317. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1318. you have headers in a nonstandard directory <include dir>
  1319. CPP C preprocessor
  1320. Use these variables to override the choices made by `configure' or to help
  1321. it to find libraries and programs with nonstandard names/locations.
  1322. Report bugs to the package provider.
  1323. _ACEOF
  1324. ac_status=$?
  1325. fi
  1326. if test "$ac_init_help" = "recursive"; then
  1327. # If there are subdirs, report their specific --help.
  1328. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1329. test -d "$ac_dir" ||
  1330. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1331. continue
  1332. ac_builddir=.
  1333. case "$ac_dir" in
  1334. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1335. *)
  1336. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1337. # A ".." for each directory in $ac_dir_suffix.
  1338. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1339. case $ac_top_builddir_sub in
  1340. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1341. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1342. esac ;;
  1343. esac
  1344. ac_abs_top_builddir=$ac_pwd
  1345. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1346. # for backward compatibility:
  1347. ac_top_builddir=$ac_top_build_prefix
  1348. case $srcdir in
  1349. .) # We are building in place.
  1350. ac_srcdir=.
  1351. ac_top_srcdir=$ac_top_builddir_sub
  1352. ac_abs_top_srcdir=$ac_pwd ;;
  1353. [\\/]* | ?:[\\/]* ) # Absolute name.
  1354. ac_srcdir=$srcdir$ac_dir_suffix;
  1355. ac_top_srcdir=$srcdir
  1356. ac_abs_top_srcdir=$srcdir ;;
  1357. *) # Relative name.
  1358. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1359. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1360. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1361. esac
  1362. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1363. cd "$ac_dir" || { ac_status=$?; continue; }
  1364. # Check for guested configure.
  1365. if test -f "$ac_srcdir/configure.gnu"; then
  1366. echo &&
  1367. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1368. elif test -f "$ac_srcdir/configure"; then
  1369. echo &&
  1370. $SHELL "$ac_srcdir/configure" --help=recursive
  1371. else
  1372. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1373. fi || ac_status=$?
  1374. cd "$ac_pwd" || { ac_status=$?; break; }
  1375. done
  1376. fi
  1377. test -n "$ac_init_help" && exit $ac_status
  1378. if $ac_init_version; then
  1379. cat <<\_ACEOF
  1380. configure
  1381. generated by GNU Autoconf 2.64
  1382. Copyright (C) 2009 Free Software Foundation, Inc.
  1383. This configure script is free software; the Free Software Foundation
  1384. gives unlimited permission to copy, distribute and modify it.
  1385. _ACEOF
  1386. exit
  1387. fi
  1388. ## ------------------------ ##
  1389. ## Autoconf initialization. ##
  1390. ## ------------------------ ##
  1391. # ac_fn_c_try_compile LINENO
  1392. # --------------------------
  1393. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1394. ac_fn_c_try_compile ()
  1395. {
  1396. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1397. rm -f conftest.$ac_objext
  1398. if { { ac_try="$ac_compile"
  1399. case "(($ac_try" in
  1400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1401. *) ac_try_echo=$ac_try;;
  1402. esac
  1403. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1404. $as_echo "$ac_try_echo"; } >&5
  1405. (eval "$ac_compile") 2>conftest.err
  1406. ac_status=$?
  1407. if test -s conftest.err; then
  1408. grep -v '^ *+' conftest.err >conftest.er1
  1409. cat conftest.er1 >&5
  1410. mv -f conftest.er1 conftest.err
  1411. fi
  1412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1413. test $ac_status = 0; } && {
  1414. test -z "$ac_c_werror_flag" ||
  1415. test ! -s conftest.err
  1416. } && test -s conftest.$ac_objext; then :
  1417. ac_retval=0
  1418. else
  1419. $as_echo "$as_me: failed program was:" >&5
  1420. sed 's/^/| /' conftest.$ac_ext >&5
  1421. ac_retval=1
  1422. fi
  1423. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1424. return $ac_retval
  1425. } # ac_fn_c_try_compile
  1426. # ac_fn_c_try_cpp LINENO
  1427. # ----------------------
  1428. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1429. ac_fn_c_try_cpp ()
  1430. {
  1431. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1432. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1433. case "(($ac_try" in
  1434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1435. *) ac_try_echo=$ac_try;;
  1436. esac
  1437. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1438. $as_echo "$ac_try_echo"; } >&5
  1439. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1440. ac_status=$?
  1441. if test -s conftest.err; then
  1442. grep -v '^ *+' conftest.err >conftest.er1
  1443. cat conftest.er1 >&5
  1444. mv -f conftest.er1 conftest.err
  1445. fi
  1446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1447. test $ac_status = 0; } >/dev/null && {
  1448. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1449. test ! -s conftest.err
  1450. }; then :
  1451. ac_retval=0
  1452. else
  1453. $as_echo "$as_me: failed program was:" >&5
  1454. sed 's/^/| /' conftest.$ac_ext >&5
  1455. ac_retval=1
  1456. fi
  1457. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1458. return $ac_retval
  1459. } # ac_fn_c_try_cpp
  1460. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1461. # -------------------------------------------------------
  1462. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1463. # the include files in INCLUDES and setting the cache variable VAR
  1464. # accordingly.
  1465. ac_fn_c_check_header_mongrel ()
  1466. {
  1467. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1468. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1470. $as_echo_n "checking for $2... " >&6; }
  1471. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1472. $as_echo_n "(cached) " >&6
  1473. fi
  1474. eval ac_res=\$$3
  1475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1476. $as_echo "$ac_res" >&6; }
  1477. else
  1478. # Is the header compilable?
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1480. $as_echo_n "checking $2 usability... " >&6; }
  1481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1482. /* end confdefs.h. */
  1483. $4
  1484. #include <$2>
  1485. _ACEOF
  1486. if ac_fn_c_try_compile "$LINENO"; then :
  1487. ac_header_compiler=yes
  1488. else
  1489. ac_header_compiler=no
  1490. fi
  1491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1493. $as_echo "$ac_header_compiler" >&6; }
  1494. # Is the header present?
  1495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1496. $as_echo_n "checking $2 presence... " >&6; }
  1497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1498. /* end confdefs.h. */
  1499. #include <$2>
  1500. _ACEOF
  1501. if ac_fn_c_try_cpp "$LINENO"; then :
  1502. ac_header_preproc=yes
  1503. else
  1504. ac_header_preproc=no
  1505. fi
  1506. rm -f conftest.err conftest.$ac_ext
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1508. $as_echo "$ac_header_preproc" >&6; }
  1509. # So? What about this header?
  1510. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1511. yes:no: )
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1513. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1515. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1516. ;;
  1517. no:yes:* )
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1519. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1521. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1523. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1525. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1527. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1528. ;;
  1529. esac
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1531. $as_echo_n "checking for $2... " >&6; }
  1532. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1533. $as_echo_n "(cached) " >&6
  1534. else
  1535. eval "$3=\$ac_header_compiler"
  1536. fi
  1537. eval ac_res=\$$3
  1538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1539. $as_echo "$ac_res" >&6; }
  1540. fi
  1541. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1542. } # ac_fn_c_check_header_mongrel
  1543. # ac_fn_c_try_run LINENO
  1544. # ----------------------
  1545. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1546. # that executables *can* be run.
  1547. ac_fn_c_try_run ()
  1548. {
  1549. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1550. if { { ac_try="$ac_link"
  1551. case "(($ac_try" in
  1552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1553. *) ac_try_echo=$ac_try;;
  1554. esac
  1555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1556. $as_echo "$ac_try_echo"; } >&5
  1557. (eval "$ac_link") 2>&5
  1558. ac_status=$?
  1559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1560. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1561. { { case "(($ac_try" in
  1562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1563. *) ac_try_echo=$ac_try;;
  1564. esac
  1565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1566. $as_echo "$ac_try_echo"; } >&5
  1567. (eval "$ac_try") 2>&5
  1568. ac_status=$?
  1569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1570. test $ac_status = 0; }; }; then :
  1571. ac_retval=0
  1572. else
  1573. $as_echo "$as_me: program exited with status $ac_status" >&5
  1574. $as_echo "$as_me: failed program was:" >&5
  1575. sed 's/^/| /' conftest.$ac_ext >&5
  1576. ac_retval=$ac_status
  1577. fi
  1578. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1579. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1580. return $ac_retval
  1581. } # ac_fn_c_try_run
  1582. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1583. # -------------------------------------------------------
  1584. # Tests whether HEADER exists and can be compiled using the include files in
  1585. # INCLUDES, setting the cache variable VAR accordingly.
  1586. ac_fn_c_check_header_compile ()
  1587. {
  1588. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1590. $as_echo_n "checking for $2... " >&6; }
  1591. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1592. $as_echo_n "(cached) " >&6
  1593. else
  1594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1595. /* end confdefs.h. */
  1596. $4
  1597. #include <$2>
  1598. _ACEOF
  1599. if ac_fn_c_try_compile "$LINENO"; then :
  1600. eval "$3=yes"
  1601. else
  1602. eval "$3=no"
  1603. fi
  1604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1605. fi
  1606. eval ac_res=\$$3
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1608. $as_echo "$ac_res" >&6; }
  1609. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1610. } # ac_fn_c_check_header_compile
  1611. # ac_fn_c_try_link LINENO
  1612. # -----------------------
  1613. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1614. ac_fn_c_try_link ()
  1615. {
  1616. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1617. rm -f conftest.$ac_objext conftest$ac_exeext
  1618. if { { ac_try="$ac_link"
  1619. case "(($ac_try" in
  1620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1621. *) ac_try_echo=$ac_try;;
  1622. esac
  1623. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1624. $as_echo "$ac_try_echo"; } >&5
  1625. (eval "$ac_link") 2>conftest.err
  1626. ac_status=$?
  1627. if test -s conftest.err; then
  1628. grep -v '^ *+' conftest.err >conftest.er1
  1629. cat conftest.er1 >&5
  1630. mv -f conftest.er1 conftest.err
  1631. fi
  1632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1633. test $ac_status = 0; } && {
  1634. test -z "$ac_c_werror_flag" ||
  1635. test ! -s conftest.err
  1636. } && test -s conftest$ac_exeext && {
  1637. test "$cross_compiling" = yes ||
  1638. $as_test_x conftest$ac_exeext
  1639. }; then :
  1640. ac_retval=0
  1641. else
  1642. $as_echo "$as_me: failed program was:" >&5
  1643. sed 's/^/| /' conftest.$ac_ext >&5
  1644. ac_retval=1
  1645. fi
  1646. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1647. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1648. # interfere with the next link command; also delete a directory that is
  1649. # left behind by Apple's compiler. We do this before executing the actions.
  1650. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1651. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1652. return $ac_retval
  1653. } # ac_fn_c_try_link
  1654. # ac_fn_c_check_func LINENO FUNC VAR
  1655. # ----------------------------------
  1656. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1657. ac_fn_c_check_func ()
  1658. {
  1659. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1661. $as_echo_n "checking for $2... " >&6; }
  1662. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1663. $as_echo_n "(cached) " >&6
  1664. else
  1665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1666. /* end confdefs.h. */
  1667. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1668. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1669. #define $2 innocuous_$2
  1670. /* System header to define __stub macros and hopefully few prototypes,
  1671. which can conflict with char $2 (); below.
  1672. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1673. <limits.h> exists even on freestanding compilers. */
  1674. #ifdef __STDC__
  1675. # include <limits.h>
  1676. #else
  1677. # include <assert.h>
  1678. #endif
  1679. #undef $2
  1680. /* Override any GCC internal prototype to avoid an error.
  1681. Use char because int might match the return type of a GCC
  1682. builtin and then its argument prototype would still apply. */
  1683. #ifdef __cplusplus
  1684. extern "C"
  1685. #endif
  1686. char $2 ();
  1687. /* The GNU C library defines this for functions which it implements
  1688. to always fail with ENOSYS. Some functions are actually named
  1689. something starting with __ and the normal name is an alias. */
  1690. #if defined __stub_$2 || defined __stub___$2
  1691. choke me
  1692. #endif
  1693. int
  1694. main ()
  1695. {
  1696. return $2 ();
  1697. ;
  1698. return 0;
  1699. }
  1700. _ACEOF
  1701. if ac_fn_c_try_link "$LINENO"; then :
  1702. eval "$3=yes"
  1703. else
  1704. eval "$3=no"
  1705. fi
  1706. rm -f core conftest.err conftest.$ac_objext \
  1707. conftest$ac_exeext conftest.$ac_ext
  1708. fi
  1709. eval ac_res=\$$3
  1710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1711. $as_echo "$ac_res" >&6; }
  1712. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1713. } # ac_fn_c_check_func
  1714. cat >config.log <<_ACEOF
  1715. This file contains any messages produced by compilers while
  1716. running configure, to aid debugging if configure makes a mistake.
  1717. It was created by $as_me, which was
  1718. generated by GNU Autoconf 2.64. Invocation command line was
  1719. $ $0 $@
  1720. _ACEOF
  1721. exec 5>>config.log
  1722. {
  1723. cat <<_ASUNAME
  1724. ## --------- ##
  1725. ## Platform. ##
  1726. ## --------- ##
  1727. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1728. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1729. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1730. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1731. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1732. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1733. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1734. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1735. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1736. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1737. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1738. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1739. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1740. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1741. _ASUNAME
  1742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1743. for as_dir in $PATH
  1744. do
  1745. IFS=$as_save_IFS
  1746. test -z "$as_dir" && as_dir=.
  1747. $as_echo "PATH: $as_dir"
  1748. done
  1749. IFS=$as_save_IFS
  1750. } >&5
  1751. cat >&5 <<_ACEOF
  1752. ## ----------- ##
  1753. ## Core tests. ##
  1754. ## ----------- ##
  1755. _ACEOF
  1756. # Keep a trace of the command line.
  1757. # Strip out --no-create and --no-recursion so they do not pile up.
  1758. # Strip out --silent because we don't want to record it for future runs.
  1759. # Also quote any args containing shell meta-characters.
  1760. # Make two passes to allow for proper duplicate-argument suppression.
  1761. ac_configure_args=
  1762. ac_configure_args0=
  1763. ac_configure_args1=
  1764. ac_must_keep_next=false
  1765. for ac_pass in 1 2
  1766. do
  1767. for ac_arg
  1768. do
  1769. case $ac_arg in
  1770. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1771. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1772. | -silent | --silent | --silen | --sile | --sil)
  1773. continue ;;
  1774. *\'*)
  1775. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1776. esac
  1777. case $ac_pass in
  1778. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1779. 2)
  1780. as_fn_append ac_configure_args1 " '$ac_arg'"
  1781. if test $ac_must_keep_next = true; then
  1782. ac_must_keep_next=false # Got value, back to normal.
  1783. else
  1784. case $ac_arg in
  1785. *=* | --config-cache | -C | -disable-* | --disable-* \
  1786. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1787. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1788. | -with-* | --with-* | -without-* | --without-* | --x)
  1789. case "$ac_configure_args0 " in
  1790. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1791. esac
  1792. ;;
  1793. -* ) ac_must_keep_next=true ;;
  1794. esac
  1795. fi
  1796. as_fn_append ac_configure_args " '$ac_arg'"
  1797. ;;
  1798. esac
  1799. done
  1800. done
  1801. { ac_configure_args0=; unset ac_configure_args0;}
  1802. { ac_configure_args1=; unset ac_configure_args1;}
  1803. # When interrupted or exit'd, cleanup temporary files, and complete
  1804. # config.log. We remove comments because anyway the quotes in there
  1805. # would cause problems or look ugly.
  1806. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1807. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1808. trap 'exit_status=$?
  1809. # Save into config.log some information that might help in debugging.
  1810. {
  1811. echo
  1812. cat <<\_ASBOX
  1813. ## ---------------- ##
  1814. ## Cache variables. ##
  1815. ## ---------------- ##
  1816. _ASBOX
  1817. echo
  1818. # The following way of writing the cache mishandles newlines in values,
  1819. (
  1820. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1821. eval ac_val=\$$ac_var
  1822. case $ac_val in #(
  1823. *${as_nl}*)
  1824. case $ac_var in #(
  1825. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1826. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1827. esac
  1828. case $ac_var in #(
  1829. _ | IFS | as_nl) ;; #(
  1830. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1831. *) { eval $ac_var=; unset $ac_var;} ;;
  1832. esac ;;
  1833. esac
  1834. done
  1835. (set) 2>&1 |
  1836. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1837. *${as_nl}ac_space=\ *)
  1838. sed -n \
  1839. "s/'\''/'\''\\\\'\'''\''/g;
  1840. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1841. ;; #(
  1842. *)
  1843. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1844. ;;
  1845. esac |
  1846. sort
  1847. )
  1848. echo
  1849. cat <<\_ASBOX
  1850. ## ----------------- ##
  1851. ## Output variables. ##
  1852. ## ----------------- ##
  1853. _ASBOX
  1854. echo
  1855. for ac_var in $ac_subst_vars
  1856. do
  1857. eval ac_val=\$$ac_var
  1858. case $ac_val in
  1859. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1860. esac
  1861. $as_echo "$ac_var='\''$ac_val'\''"
  1862. done | sort
  1863. echo
  1864. if test -n "$ac_subst_files"; then
  1865. cat <<\_ASBOX
  1866. ## ------------------- ##
  1867. ## File substitutions. ##
  1868. ## ------------------- ##
  1869. _ASBOX
  1870. echo
  1871. for ac_var in $ac_subst_files
  1872. do
  1873. eval ac_val=\$$ac_var
  1874. case $ac_val in
  1875. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1876. esac
  1877. $as_echo "$ac_var='\''$ac_val'\''"
  1878. done | sort
  1879. echo
  1880. fi
  1881. if test -s confdefs.h; then
  1882. cat <<\_ASBOX
  1883. ## ----------- ##
  1884. ## confdefs.h. ##
  1885. ## ----------- ##
  1886. _ASBOX
  1887. echo
  1888. cat confdefs.h
  1889. echo
  1890. fi
  1891. test "$ac_signal" != 0 &&
  1892. $as_echo "$as_me: caught signal $ac_signal"
  1893. $as_echo "$as_me: exit $exit_status"
  1894. } >&5
  1895. rm -f core *.core core.conftest.* &&
  1896. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1897. exit $exit_status
  1898. ' 0
  1899. for ac_signal in 1 2 13 15; do
  1900. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1901. done
  1902. ac_signal=0
  1903. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1904. rm -f -r conftest* confdefs.h
  1905. $as_echo "/* confdefs.h */" > confdefs.h
  1906. # Predefined preprocessor variables.
  1907. cat >>confdefs.h <<_ACEOF
  1908. #define PACKAGE_NAME "$PACKAGE_NAME"
  1909. _ACEOF
  1910. cat >>confdefs.h <<_ACEOF
  1911. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1912. _ACEOF
  1913. cat >>confdefs.h <<_ACEOF
  1914. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1915. _ACEOF
  1916. cat >>confdefs.h <<_ACEOF
  1917. #define PACKAGE_STRING "$PACKAGE_STRING"
  1918. _ACEOF
  1919. cat >>confdefs.h <<_ACEOF
  1920. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1921. _ACEOF
  1922. cat >>confdefs.h <<_ACEOF
  1923. #define PACKAGE_URL "$PACKAGE_URL"
  1924. _ACEOF
  1925. # Let the site file select an alternate cache file if it wants to.
  1926. # Prefer an explicitly selected file to automatically selected ones.
  1927. ac_site_file1=NONE
  1928. ac_site_file2=NONE
  1929. if test -n "$CONFIG_SITE"; then
  1930. ac_site_file1=$CONFIG_SITE
  1931. elif test "x$prefix" != xNONE; then
  1932. ac_site_file1=$prefix/share/config.site
  1933. ac_site_file2=$prefix/etc/config.site
  1934. else
  1935. ac_site_file1=$ac_default_prefix/share/config.site
  1936. ac_site_file2=$ac_default_prefix/etc/config.site
  1937. fi
  1938. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1939. do
  1940. test "x$ac_site_file" = xNONE && continue
  1941. if test -r "$ac_site_file"; then
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1943. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1944. sed 's/^/| /' "$ac_site_file" >&5
  1945. . "$ac_site_file"
  1946. fi
  1947. done
  1948. if test -r "$cache_file"; then
  1949. # Some versions of bash will fail to source /dev/null (special
  1950. # files actually), so we avoid doing that.
  1951. if test -f "$cache_file"; then
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1953. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1954. case $cache_file in
  1955. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1956. *) . "./$cache_file";;
  1957. esac
  1958. fi
  1959. else
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1961. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1962. >$cache_file
  1963. fi
  1964. # Check that the precious variables saved in the cache have kept the same
  1965. # value.
  1966. ac_cache_corrupted=false
  1967. for ac_var in $ac_precious_vars; do
  1968. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1969. eval ac_new_set=\$ac_env_${ac_var}_set
  1970. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1971. eval ac_new_val=\$ac_env_${ac_var}_value
  1972. case $ac_old_set,$ac_new_set in
  1973. set,)
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1975. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1976. ac_cache_corrupted=: ;;
  1977. ,set)
  1978. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1979. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1980. ac_cache_corrupted=: ;;
  1981. ,);;
  1982. *)
  1983. if test "x$ac_old_val" != "x$ac_new_val"; then
  1984. # differences in whitespace do not lead to failure.
  1985. ac_old_val_w=`echo x $ac_old_val`
  1986. ac_new_val_w=`echo x $ac_new_val`
  1987. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1989. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1990. ac_cache_corrupted=:
  1991. else
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1993. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1994. eval $ac_var=\$ac_old_val
  1995. fi
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1997. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1999. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2000. fi;;
  2001. esac
  2002. # Pass precious variables to config.status.
  2003. if test "$ac_new_set" = set; then
  2004. case $ac_new_val in
  2005. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2006. *) ac_arg=$ac_var=$ac_new_val ;;
  2007. esac
  2008. case " $ac_configure_args " in
  2009. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2010. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2011. esac
  2012. fi
  2013. done
  2014. if $ac_cache_corrupted; then
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2016. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2018. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2019. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2020. fi
  2021. ## -------------------- ##
  2022. ## Main body of script. ##
  2023. ## -------------------- ##
  2024. ac_ext=c
  2025. ac_cpp='$CPP $CPPFLAGS'
  2026. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2027. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2028. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2029. # This file contains common code used by all simulators.
  2030. #
  2031. # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
  2032. # directory. It is intended to be invoked before any target specific stuff.
  2033. # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
  2034. # It is intended to be invoked last.
  2035. #
  2036. # The simulator's configure.ac should look like:
  2037. #
  2038. # dnl Process this file with autoconf to produce a configure script.
  2039. # AC_PREREQ(2.64)dnl
  2040. # AC_INIT(Makefile.in)
  2041. # sinclude(../common/aclocal.m4)
  2042. #
  2043. # SIM_AC_COMMON
  2044. #
  2045. # ... target specific stuff ...
  2046. #
  2047. # SIM_AC_OUTPUT
  2048. # Include global overrides and fixes for Autoconf.
  2049. # _AC_CHECK_DECL_BODY
  2050. # -------------------
  2051. # Shell function body for AC_CHECK_DECL.
  2052. # _AC_CHECK_DECL_BODY
  2053. # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
  2054. # INCLUDES)
  2055. # -------------------------------------------------------------
  2056. # Helper to AC_CHECK_DECLS, which generates the check for a single
  2057. # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
  2058. # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
  2059. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  2060. #
  2061. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  2062. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  2063. # Written by Gordon Matzigkeit, 1996
  2064. #
  2065. # This file is free software; the Free Software Foundation gives
  2066. # unlimited permission to copy and/or distribute it, with or without
  2067. # modifications, as long as this notice is preserved.
  2068. # serial 56 LT_INIT
  2069. # LT_PREREQ(VERSION)
  2070. # ------------------
  2071. # Complain and exit if this libtool version is less that VERSION.
  2072. # _LT_CHECK_BUILDDIR
  2073. # ------------------
  2074. # Complain if the absolute build directory name contains unusual characters
  2075. # LT_INIT([OPTIONS])
  2076. # ------------------
  2077. # LT_INIT
  2078. # Old names:
  2079. # This is what autoupdate's m4 run will expand. It fires
  2080. # the warning (with _au_warn_XXX), outputs it into the
  2081. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2082. # the replacement expansion.
  2083. # This is an auxiliary macro that is also run when
  2084. # autoupdate runs m4. It simply calls m4_warning, but
  2085. # we need a wrapper so that each warning is emitted only
  2086. # once. We break the quoting in m4_warning's argument in
  2087. # order to expand this macro's arguments, not AU_DEFUN's.
  2088. # Finally, this is the expansion that is picked up by
  2089. # autoconf. It tells the user to run autoupdate, and
  2090. # then outputs the replacement expansion. We do not care
  2091. # about autoupdate's warning because that contains
  2092. # information on what to do *after* running autoupdate.
  2093. # This is what autoupdate's m4 run will expand. It fires
  2094. # the warning (with _au_warn_XXX), outputs it into the
  2095. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2096. # the replacement expansion.
  2097. # This is an auxiliary macro that is also run when
  2098. # autoupdate runs m4. It simply calls m4_warning, but
  2099. # we need a wrapper so that each warning is emitted only
  2100. # once. We break the quoting in m4_warning's argument in
  2101. # order to expand this macro's arguments, not AU_DEFUN's.
  2102. # Finally, this is the expansion that is picked up by
  2103. # autoconf. It tells the user to run autoupdate, and
  2104. # then outputs the replacement expansion. We do not care
  2105. # about autoupdate's warning because that contains
  2106. # information on what to do *after* running autoupdate.
  2107. # _LT_CC_BASENAME(CC)
  2108. # -------------------
  2109. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  2110. # _LT_FILEUTILS_DEFAULTS
  2111. # ----------------------
  2112. # It is okay to use these file commands and assume they have been set
  2113. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  2114. # _LT_FILEUTILS_DEFAULTS
  2115. # _LT_SETUP
  2116. # ---------
  2117. # _LT_SETUP
  2118. # _LT_PREPARE_SED_QUOTE_VARS
  2119. # --------------------------
  2120. # Define a few sed substitution that help us do robust quoting.
  2121. # _LT_PROG_LTMAIN
  2122. # ---------------
  2123. # Note that this code is called both from `configure', and `config.status'
  2124. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  2125. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  2126. # so we pass a copy along to make sure it has a sensible value anyway.
  2127. # _LT_PROG_LTMAIN
  2128. ## ------------------------------------- ##
  2129. ## Accumulate code for creating libtool. ##
  2130. ## ------------------------------------- ##
  2131. # So that we can recreate a full libtool script including additional
  2132. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  2133. # in macros and then make a single call at the end using the `libtool'
  2134. # label.
  2135. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  2136. # ----------------------------------------
  2137. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2138. # Initialize.
  2139. # _LT_CONFIG_LIBTOOL([COMMANDS])
  2140. # ------------------------------
  2141. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2142. # Initialize.
  2143. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  2144. # -----------------------------------------------------
  2145. # _LT_FORMAT_COMMENT([COMMENT])
  2146. # -----------------------------
  2147. # Add leading comment marks to the start of each line, and a trailing
  2148. # full-stop to the whole comment if one is not present already.
  2149. ## ------------------------ ##
  2150. ## FIXME: Eliminate VARNAME ##
  2151. ## ------------------------ ##
  2152. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  2153. # -------------------------------------------------------------------
  2154. # CONFIGNAME is the name given to the value in the libtool script.
  2155. # VARNAME is the (base) name used in the configure script.
  2156. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  2157. # VARNAME. Any other value will be used directly.
  2158. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  2159. # --------------------------------------------------------
  2160. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  2161. # ------------------------------------------------
  2162. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  2163. # ---------------------------------------------------------
  2164. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  2165. # --------------------------------------------------
  2166. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  2167. # ---------------------------------------------------
  2168. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  2169. # ---------------------------------------------------
  2170. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  2171. # ------------------------------------------------
  2172. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  2173. # ------------------------------------
  2174. # Quote a variable value, and forward it to `config.status' so that its
  2175. # declaration there will have the same value as in `configure'. VARNAME
  2176. # must have a single quote delimited value for this to work.
  2177. # _LT_CONFIG_STATUS_DECLARATIONS
  2178. # ------------------------------
  2179. # We delimit libtool config variables with single quotes, so when
  2180. # we write them to config.status, we have to be sure to quote all
  2181. # embedded single quotes properly. In configure, this macro expands
  2182. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  2183. #
  2184. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  2185. # _LT_LIBTOOL_TAGS
  2186. # ----------------
  2187. # Output comment and list of tags supported by the script
  2188. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  2189. # -----------------------------------
  2190. # Extract the dictionary values for VARNAME (optionally with TAG) and
  2191. # expand to a commented shell variable setting:
  2192. #
  2193. # # Some comment about what VAR is for.
  2194. # visible_name=$lt_internal_name
  2195. # _LT_LIBTOOL_CONFIG_VARS
  2196. # -----------------------
  2197. # Produce commented declarations of non-tagged libtool config variables
  2198. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  2199. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  2200. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  2201. # _LT_LIBTOOL_TAG_VARS(TAG)
  2202. # -------------------------
  2203. # _LT_TAGVAR(VARNAME, [TAGNAME])
  2204. # ------------------------------
  2205. # _LT_CONFIG_COMMANDS
  2206. # -------------------
  2207. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  2208. # variables for single and double quote escaping we saved from calls
  2209. # to _LT_DECL, we can put quote escaped variables declarations
  2210. # into `config.status', and then the shell code to quote escape them in
  2211. # for loops in `config.status'. Finally, any additional code accumulated
  2212. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  2213. #_LT_CONFIG_COMMANDS
  2214. # Initialize.
  2215. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  2216. # ------------------------------------
  2217. # Generate a child script FILE with all initialization necessary to
  2218. # reuse the environment learned by the parent script, and make the
  2219. # file executable. If COMMENT is supplied, it is inserted after the
  2220. # `#!' sequence but before initialization text begins. After this
  2221. # macro, additional text can be appended to FILE to form the body of
  2222. # the child script. The macro ends with non-zero status if the
  2223. # file could not be fully written (such as if the disk is full).
  2224. # _LT_GENERATED_FILE_INIT
  2225. # LT_OUTPUT
  2226. # ---------
  2227. # This macro allows early generation of the libtool script (before
  2228. # AC_OUTPUT is called), incase it is used in configure for compilation
  2229. # tests.
  2230. # LT_OUTPUT
  2231. # _LT_CONFIG(TAG)
  2232. # ---------------
  2233. # If TAG is the built-in tag, create an initial libtool script with a
  2234. # default configuration from the untagged config vars. Otherwise add code
  2235. # to config.status for appending the configuration named by TAG from the
  2236. # matching tagged config vars.
  2237. # _LT_CONFIG
  2238. # LT_SUPPORTED_TAG(TAG)
  2239. # ---------------------
  2240. # Trace this macro to discover what tags are supported by the libtool
  2241. # --tag option, using:
  2242. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  2243. # C support is built-in for now
  2244. # LT_LANG(LANG)
  2245. # -------------
  2246. # Enable libtool support for the given language if not already enabled.
  2247. # LT_LANG
  2248. # _LT_LANG(LANGNAME)
  2249. # ------------------
  2250. # _LT_LANG
  2251. # _LT_LANG_DEFAULT_CONFIG
  2252. # -----------------------
  2253. # _LT_LANG_DEFAULT_CONFIG
  2254. # Obsolete macros:
  2255. # This is what autoupdate's m4 run will expand. It fires
  2256. # the warning (with _au_warn_XXX), outputs it into the
  2257. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2258. # the replacement expansion.
  2259. # This is an auxiliary macro that is also run when
  2260. # autoupdate runs m4. It simply calls m4_warning, but
  2261. # we need a wrapper so that each warning is emitted only
  2262. # once. We break the quoting in m4_warning's argument in
  2263. # order to expand this macro's arguments, not AU_DEFUN's.
  2264. # Finally, this is the expansion that is picked up by
  2265. # autoconf. It tells the user to run autoupdate, and
  2266. # then outputs the replacement expansion. We do not care
  2267. # about autoupdate's warning because that contains
  2268. # information on what to do *after* running autoupdate.
  2269. # This is what autoupdate's m4 run will expand. It fires
  2270. # the warning (with _au_warn_XXX), outputs it into the
  2271. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2272. # the replacement expansion.
  2273. # This is an auxiliary macro that is also run when
  2274. # autoupdate runs m4. It simply calls m4_warning, but
  2275. # we need a wrapper so that each warning is emitted only
  2276. # once. We break the quoting in m4_warning's argument in
  2277. # order to expand this macro's arguments, not AU_DEFUN's.
  2278. # Finally, this is the expansion that is picked up by
  2279. # autoconf. It tells the user to run autoupdate, and
  2280. # then outputs the replacement expansion. We do not care
  2281. # about autoupdate's warning because that contains
  2282. # information on what to do *after* running autoupdate.
  2283. # This is what autoupdate's m4 run will expand. It fires
  2284. # the warning (with _au_warn_XXX), outputs it into the
  2285. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2286. # the replacement expansion.
  2287. # This is an auxiliary macro that is also run when
  2288. # autoupdate runs m4. It simply calls m4_warning, but
  2289. # we need a wrapper so that each warning is emitted only
  2290. # once. We break the quoting in m4_warning's argument in
  2291. # order to expand this macro's arguments, not AU_DEFUN's.
  2292. # Finally, this is the expansion that is picked up by
  2293. # autoconf. It tells the user to run autoupdate, and
  2294. # then outputs the replacement expansion. We do not care
  2295. # about autoupdate's warning because that contains
  2296. # information on what to do *after* running autoupdate.
  2297. # This is what autoupdate's m4 run will expand. It fires
  2298. # the warning (with _au_warn_XXX), outputs it into the
  2299. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2300. # the replacement expansion.
  2301. # This is an auxiliary macro that is also run when
  2302. # autoupdate runs m4. It simply calls m4_warning, but
  2303. # we need a wrapper so that each warning is emitted only
  2304. # once. We break the quoting in m4_warning's argument in
  2305. # order to expand this macro's arguments, not AU_DEFUN's.
  2306. # Finally, this is the expansion that is picked up by
  2307. # autoconf. It tells the user to run autoupdate, and
  2308. # then outputs the replacement expansion. We do not care
  2309. # about autoupdate's warning because that contains
  2310. # information on what to do *after* running autoupdate.
  2311. # This is what autoupdate's m4 run will expand. It fires
  2312. # the warning (with _au_warn_XXX), outputs it into the
  2313. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2314. # the replacement expansion.
  2315. # This is an auxiliary macro that is also run when
  2316. # autoupdate runs m4. It simply calls m4_warning, but
  2317. # we need a wrapper so that each warning is emitted only
  2318. # once. We break the quoting in m4_warning's argument in
  2319. # order to expand this macro's arguments, not AU_DEFUN's.
  2320. # Finally, this is the expansion that is picked up by
  2321. # autoconf. It tells the user to run autoupdate, and
  2322. # then outputs the replacement expansion. We do not care
  2323. # about autoupdate's warning because that contains
  2324. # information on what to do *after* running autoupdate.
  2325. # _LT_TAG_COMPILER
  2326. # ----------------
  2327. # _LT_TAG_COMPILER
  2328. # _LT_COMPILER_BOILERPLATE
  2329. # ------------------------
  2330. # Check for compiler boilerplate output or warnings with
  2331. # the simple compiler test code.
  2332. # _LT_COMPILER_BOILERPLATE
  2333. # _LT_LINKER_BOILERPLATE
  2334. # ----------------------
  2335. # Check for linker boilerplate output or warnings with
  2336. # the simple link test code.
  2337. # _LT_LINKER_BOILERPLATE
  2338. # _LT_REQUIRED_DARWIN_CHECKS
  2339. # -------------------------
  2340. # _LT_DARWIN_LINKER_FEATURES
  2341. # --------------------------
  2342. # Checks for linker and compiler features on darwin
  2343. # _LT_SYS_MODULE_PATH_AIX
  2344. # -----------------------
  2345. # Links a minimal program and checks the executable
  2346. # for the system default hardcoded library path. In most cases,
  2347. # this is /usr/lib:/lib, but when the MPI compilers are used
  2348. # the location of the communication and MPI libs are included too.
  2349. # If we don't find anything, use the default library path according
  2350. # to the aix ld manual.
  2351. # _LT_SYS_MODULE_PATH_AIX
  2352. # _LT_SHELL_INIT(ARG)
  2353. # -------------------
  2354. # _LT_SHELL_INIT
  2355. # _LT_PROG_ECHO_BACKSLASH
  2356. # -----------------------
  2357. # Find how we can fake an echo command that does not interpret backslash.
  2358. # In particular, with Autoconf 2.60 or later we add some code to the start
  2359. # of the generated configure script which will find a shell with a builtin
  2360. # printf (which we can use as an echo command).
  2361. # _LT_PROG_ECHO_BACKSLASH
  2362. # _LT_ENABLE_LOCK
  2363. # ---------------
  2364. # _LT_ENABLE_LOCK
  2365. # _LT_CMD_OLD_ARCHIVE
  2366. # -------------------
  2367. # _LT_CMD_OLD_ARCHIVE
  2368. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2369. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2370. # ----------------------------------------------------------------
  2371. # Check whether the given compiler option works
  2372. # _LT_COMPILER_OPTION
  2373. # Old name:
  2374. # This is what autoupdate's m4 run will expand. It fires
  2375. # the warning (with _au_warn_XXX), outputs it into the
  2376. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2377. # the replacement expansion.
  2378. # This is an auxiliary macro that is also run when
  2379. # autoupdate runs m4. It simply calls m4_warning, but
  2380. # we need a wrapper so that each warning is emitted only
  2381. # once. We break the quoting in m4_warning's argument in
  2382. # order to expand this macro's arguments, not AU_DEFUN's.
  2383. # Finally, this is the expansion that is picked up by
  2384. # autoconf. It tells the user to run autoupdate, and
  2385. # then outputs the replacement expansion. We do not care
  2386. # about autoupdate's warning because that contains
  2387. # information on what to do *after* running autoupdate.
  2388. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2389. # [ACTION-SUCCESS], [ACTION-FAILURE])
  2390. # ----------------------------------------------------
  2391. # Check whether the given linker option works
  2392. # _LT_LINKER_OPTION
  2393. # Old name:
  2394. # This is what autoupdate's m4 run will expand. It fires
  2395. # the warning (with _au_warn_XXX), outputs it into the
  2396. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2397. # the replacement expansion.
  2398. # This is an auxiliary macro that is also run when
  2399. # autoupdate runs m4. It simply calls m4_warning, but
  2400. # we need a wrapper so that each warning is emitted only
  2401. # once. We break the quoting in m4_warning's argument in
  2402. # order to expand this macro's arguments, not AU_DEFUN's.
  2403. # Finally, this is the expansion that is picked up by
  2404. # autoconf. It tells the user to run autoupdate, and
  2405. # then outputs the replacement expansion. We do not care
  2406. # about autoupdate's warning because that contains
  2407. # information on what to do *after* running autoupdate.
  2408. # LT_CMD_MAX_LEN
  2409. #---------------
  2410. # LT_CMD_MAX_LEN
  2411. # Old name:
  2412. # This is what autoupdate's m4 run will expand. It fires
  2413. # the warning (with _au_warn_XXX), outputs it into the
  2414. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2415. # the replacement expansion.
  2416. # This is an auxiliary macro that is also run when
  2417. # autoupdate runs m4. It simply calls m4_warning, but
  2418. # we need a wrapper so that each warning is emitted only
  2419. # once. We break the quoting in m4_warning's argument in
  2420. # order to expand this macro's arguments, not AU_DEFUN's.
  2421. # Finally, this is the expansion that is picked up by
  2422. # autoconf. It tells the user to run autoupdate, and
  2423. # then outputs the replacement expansion. We do not care
  2424. # about autoupdate's warning because that contains
  2425. # information on what to do *after* running autoupdate.
  2426. # _LT_HEADER_DLFCN
  2427. # ----------------
  2428. # _LT_HEADER_DLFCN
  2429. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2430. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2431. # ----------------------------------------------------------------
  2432. # _LT_TRY_DLOPEN_SELF
  2433. # LT_SYS_DLOPEN_SELF
  2434. # ------------------
  2435. # LT_SYS_DLOPEN_SELF
  2436. # Old name:
  2437. # This is what autoupdate's m4 run will expand. It fires
  2438. # the warning (with _au_warn_XXX), outputs it into the
  2439. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2440. # the replacement expansion.
  2441. # This is an auxiliary macro that is also run when
  2442. # autoupdate runs m4. It simply calls m4_warning, but
  2443. # we need a wrapper so that each warning is emitted only
  2444. # once. We break the quoting in m4_warning's argument in
  2445. # order to expand this macro's arguments, not AU_DEFUN's.
  2446. # Finally, this is the expansion that is picked up by
  2447. # autoconf. It tells the user to run autoupdate, and
  2448. # then outputs the replacement expansion. We do not care
  2449. # about autoupdate's warning because that contains
  2450. # information on what to do *after* running autoupdate.
  2451. # _LT_COMPILER_C_O([TAGNAME])
  2452. # ---------------------------
  2453. # Check to see if options -c and -o are simultaneously supported by compiler.
  2454. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2455. # _LT_COMPILER_C_O
  2456. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2457. # ----------------------------------
  2458. # Check to see if we can do hard links to lock some files if needed
  2459. # _LT_COMPILER_FILE_LOCKS
  2460. # _LT_CHECK_OBJDIR
  2461. # ----------------
  2462. # _LT_CHECK_OBJDIR
  2463. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2464. # --------------------------------------
  2465. # Check hardcoding attributes.
  2466. # _LT_LINKER_HARDCODE_LIBPATH
  2467. # _LT_CMD_STRIPLIB
  2468. # ----------------
  2469. # _LT_CMD_STRIPLIB
  2470. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2471. # -----------------------------
  2472. # PORTME Fill in your ld.so characteristics
  2473. # _LT_SYS_DYNAMIC_LINKER
  2474. # _LT_PATH_TOOL_PREFIX(TOOL)
  2475. # --------------------------
  2476. # find a file program which can recognize shared library
  2477. # _LT_PATH_TOOL_PREFIX
  2478. # Old name:
  2479. # This is what autoupdate's m4 run will expand. It fires
  2480. # the warning (with _au_warn_XXX), outputs it into the
  2481. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2482. # the replacement expansion.
  2483. # This is an auxiliary macro that is also run when
  2484. # autoupdate runs m4. It simply calls m4_warning, but
  2485. # we need a wrapper so that each warning is emitted only
  2486. # once. We break the quoting in m4_warning's argument in
  2487. # order to expand this macro's arguments, not AU_DEFUN's.
  2488. # Finally, this is the expansion that is picked up by
  2489. # autoconf. It tells the user to run autoupdate, and
  2490. # then outputs the replacement expansion. We do not care
  2491. # about autoupdate's warning because that contains
  2492. # information on what to do *after* running autoupdate.
  2493. # _LT_PATH_MAGIC
  2494. # --------------
  2495. # find a file program which can recognize a shared library
  2496. # _LT_PATH_MAGIC
  2497. # LT_PATH_LD
  2498. # ----------
  2499. # find the pathname to the GNU or non-GNU linker
  2500. # LT_PATH_LD
  2501. # Old names:
  2502. # This is what autoupdate's m4 run will expand. It fires
  2503. # the warning (with _au_warn_XXX), outputs it into the
  2504. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2505. # the replacement expansion.
  2506. # This is an auxiliary macro that is also run when
  2507. # autoupdate runs m4. It simply calls m4_warning, but
  2508. # we need a wrapper so that each warning is emitted only
  2509. # once. We break the quoting in m4_warning's argument in
  2510. # order to expand this macro's arguments, not AU_DEFUN's.
  2511. # Finally, this is the expansion that is picked up by
  2512. # autoconf. It tells the user to run autoupdate, and
  2513. # then outputs the replacement expansion. We do not care
  2514. # about autoupdate's warning because that contains
  2515. # information on what to do *after* running autoupdate.
  2516. # This is what autoupdate's m4 run will expand. It fires
  2517. # the warning (with _au_warn_XXX), outputs it into the
  2518. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2519. # the replacement expansion.
  2520. # This is an auxiliary macro that is also run when
  2521. # autoupdate runs m4. It simply calls m4_warning, but
  2522. # we need a wrapper so that each warning is emitted only
  2523. # once. We break the quoting in m4_warning's argument in
  2524. # order to expand this macro's arguments, not AU_DEFUN's.
  2525. # Finally, this is the expansion that is picked up by
  2526. # autoconf. It tells the user to run autoupdate, and
  2527. # then outputs the replacement expansion. We do not care
  2528. # about autoupdate's warning because that contains
  2529. # information on what to do *after* running autoupdate.
  2530. # _LT_PATH_LD_GNU
  2531. #- --------------
  2532. # _LT_PATH_LD_GNU
  2533. # _LT_CMD_RELOAD
  2534. # --------------
  2535. # find reload flag for linker
  2536. # -- PORTME Some linkers may need a different reload flag.
  2537. # _LT_CMD_RELOAD
  2538. # _LT_CHECK_MAGIC_METHOD
  2539. # ----------------------
  2540. # how to check for library dependencies
  2541. # -- PORTME fill in with the dynamic library characteristics
  2542. # _LT_CHECK_MAGIC_METHOD
  2543. # LT_PATH_NM
  2544. # ----------
  2545. # find the pathname to a BSD- or MS-compatible name lister
  2546. # LT_PATH_NM
  2547. # Old names:
  2548. # This is what autoupdate's m4 run will expand. It fires
  2549. # the warning (with _au_warn_XXX), outputs it into the
  2550. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2551. # the replacement expansion.
  2552. # This is an auxiliary macro that is also run when
  2553. # autoupdate runs m4. It simply calls m4_warning, but
  2554. # we need a wrapper so that each warning is emitted only
  2555. # once. We break the quoting in m4_warning's argument in
  2556. # order to expand this macro's arguments, not AU_DEFUN's.
  2557. # Finally, this is the expansion that is picked up by
  2558. # autoconf. It tells the user to run autoupdate, and
  2559. # then outputs the replacement expansion. We do not care
  2560. # about autoupdate's warning because that contains
  2561. # information on what to do *after* running autoupdate.
  2562. # This is what autoupdate's m4 run will expand. It fires
  2563. # the warning (with _au_warn_XXX), outputs it into the
  2564. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2565. # the replacement expansion.
  2566. # This is an auxiliary macro that is also run when
  2567. # autoupdate runs m4. It simply calls m4_warning, but
  2568. # we need a wrapper so that each warning is emitted only
  2569. # once. We break the quoting in m4_warning's argument in
  2570. # order to expand this macro's arguments, not AU_DEFUN's.
  2571. # Finally, this is the expansion that is picked up by
  2572. # autoconf. It tells the user to run autoupdate, and
  2573. # then outputs the replacement expansion. We do not care
  2574. # about autoupdate's warning because that contains
  2575. # information on what to do *after* running autoupdate.
  2576. # LT_LIB_M
  2577. # --------
  2578. # check for math library
  2579. # LT_LIB_M
  2580. # Old name:
  2581. # This is what autoupdate's m4 run will expand. It fires
  2582. # the warning (with _au_warn_XXX), outputs it into the
  2583. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2584. # the replacement expansion.
  2585. # This is an auxiliary macro that is also run when
  2586. # autoupdate runs m4. It simply calls m4_warning, but
  2587. # we need a wrapper so that each warning is emitted only
  2588. # once. We break the quoting in m4_warning's argument in
  2589. # order to expand this macro's arguments, not AU_DEFUN's.
  2590. # Finally, this is the expansion that is picked up by
  2591. # autoconf. It tells the user to run autoupdate, and
  2592. # then outputs the replacement expansion. We do not care
  2593. # about autoupdate's warning because that contains
  2594. # information on what to do *after* running autoupdate.
  2595. # _LT_COMPILER_NO_RTTI([TAGNAME])
  2596. # -------------------------------
  2597. # _LT_COMPILER_NO_RTTI
  2598. # _LT_CMD_GLOBAL_SYMBOLS
  2599. # ----------------------
  2600. # _LT_CMD_GLOBAL_SYMBOLS
  2601. # _LT_COMPILER_PIC([TAGNAME])
  2602. # ---------------------------
  2603. # _LT_COMPILER_PIC
  2604. # _LT_LINKER_SHLIBS([TAGNAME])
  2605. # ----------------------------
  2606. # See if the linker supports building shared libraries.
  2607. # _LT_LINKER_SHLIBS
  2608. # _LT_LANG_C_CONFIG([TAG])
  2609. # ------------------------
  2610. # Ensure that the configuration variables for a C compiler are suitably
  2611. # defined. These variables are subsequently used by _LT_CONFIG to write
  2612. # the compiler configuration to `libtool'.
  2613. # _LT_LANG_C_CONFIG
  2614. # _LT_LANG_CXX_CONFIG([TAG])
  2615. # --------------------------
  2616. # Ensure that the configuration variables for a C++ compiler are suitably
  2617. # defined. These variables are subsequently used by _LT_CONFIG to write
  2618. # the compiler configuration to `libtool'.
  2619. # _LT_LANG_CXX_CONFIG
  2620. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  2621. # ---------------------------------
  2622. # Figure out "hidden" library dependencies from verbose
  2623. # compiler output when linking a shared library.
  2624. # Parse the compiler output and extract the necessary
  2625. # objects, libraries and library flags.
  2626. # _LT_SYS_HIDDEN_LIBDEPS
  2627. # _LT_LANG_F77_CONFIG([TAG])
  2628. # --------------------------
  2629. # Ensure that the configuration variables for a Fortran 77 compiler are
  2630. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2631. # to write the compiler configuration to `libtool'.
  2632. # _LT_LANG_F77_CONFIG
  2633. # _LT_LANG_FC_CONFIG([TAG])
  2634. # -------------------------
  2635. # Ensure that the configuration variables for a Fortran compiler are
  2636. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2637. # to write the compiler configuration to `libtool'.
  2638. # _LT_LANG_FC_CONFIG
  2639. # _LT_LANG_GCJ_CONFIG([TAG])
  2640. # --------------------------
  2641. # Ensure that the configuration variables for the GNU Java Compiler compiler
  2642. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2643. # to write the compiler configuration to `libtool'.
  2644. # _LT_LANG_GCJ_CONFIG
  2645. # _LT_LANG_RC_CONFIG([TAG])
  2646. # -------------------------
  2647. # Ensure that the configuration variables for the Windows resource compiler
  2648. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2649. # to write the compiler configuration to `libtool'.
  2650. # _LT_LANG_RC_CONFIG
  2651. # LT_PROG_GCJ
  2652. # -----------
  2653. # Old name:
  2654. # This is what autoupdate's m4 run will expand. It fires
  2655. # the warning (with _au_warn_XXX), outputs it into the
  2656. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2657. # the replacement expansion.
  2658. # This is an auxiliary macro that is also run when
  2659. # autoupdate runs m4. It simply calls m4_warning, but
  2660. # we need a wrapper so that each warning is emitted only
  2661. # once. We break the quoting in m4_warning's argument in
  2662. # order to expand this macro's arguments, not AU_DEFUN's.
  2663. # Finally, this is the expansion that is picked up by
  2664. # autoconf. It tells the user to run autoupdate, and
  2665. # then outputs the replacement expansion. We do not care
  2666. # about autoupdate's warning because that contains
  2667. # information on what to do *after* running autoupdate.
  2668. # LT_PROG_RC
  2669. # ----------
  2670. # Old name:
  2671. # This is what autoupdate's m4 run will expand. It fires
  2672. # the warning (with _au_warn_XXX), outputs it into the
  2673. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2674. # the replacement expansion.
  2675. # This is an auxiliary macro that is also run when
  2676. # autoupdate runs m4. It simply calls m4_warning, but
  2677. # we need a wrapper so that each warning is emitted only
  2678. # once. We break the quoting in m4_warning's argument in
  2679. # order to expand this macro's arguments, not AU_DEFUN's.
  2680. # Finally, this is the expansion that is picked up by
  2681. # autoconf. It tells the user to run autoupdate, and
  2682. # then outputs the replacement expansion. We do not care
  2683. # about autoupdate's warning because that contains
  2684. # information on what to do *after* running autoupdate.
  2685. # _LT_DECL_EGREP
  2686. # --------------
  2687. # If we don't have a new enough Autoconf to choose the best grep
  2688. # available, choose the one first in the user's PATH.
  2689. # _LT_DECL_OBJDUMP
  2690. # --------------
  2691. # If we don't have a new enough Autoconf to choose the best objdump
  2692. # available, choose the one first in the user's PATH.
  2693. # _LT_DECL_SED
  2694. # ------------
  2695. # Check for a fully-functional sed program, that truncates
  2696. # as few characters as possible. Prefer GNU sed if found.
  2697. # _LT_DECL_SED
  2698. #m4_ifndef
  2699. # Old name:
  2700. # This is what autoupdate's m4 run will expand. It fires
  2701. # the warning (with _au_warn_XXX), outputs it into the
  2702. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2703. # the replacement expansion.
  2704. # This is an auxiliary macro that is also run when
  2705. # autoupdate runs m4. It simply calls m4_warning, but
  2706. # we need a wrapper so that each warning is emitted only
  2707. # once. We break the quoting in m4_warning's argument in
  2708. # order to expand this macro's arguments, not AU_DEFUN's.
  2709. # Finally, this is the expansion that is picked up by
  2710. # autoconf. It tells the user to run autoupdate, and
  2711. # then outputs the replacement expansion. We do not care
  2712. # about autoupdate's warning because that contains
  2713. # information on what to do *after* running autoupdate.
  2714. # _LT_CHECK_SHELL_FEATURES
  2715. # ------------------------
  2716. # Find out whether the shell is Bourne or XSI compatible,
  2717. # or has some other useful features.
  2718. # _LT_CHECK_SHELL_FEATURES
  2719. # _LT_PROG_XSI_SHELLFNS
  2720. # ---------------------
  2721. # Bourne and XSI compatible variants of some useful shell functions.
  2722. # Helper functions for option handling. -*- Autoconf -*-
  2723. #
  2724. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  2725. # Inc.
  2726. # Written by Gary V. Vaughan, 2004
  2727. #
  2728. # This file is free software; the Free Software Foundation gives
  2729. # unlimited permission to copy and/or distribute it, with or without
  2730. # modifications, as long as this notice is preserved.
  2731. # serial 6 ltoptions.m4
  2732. # This is to help aclocal find these macros, as it can't see m4_define.
  2733. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  2734. # ------------------------------------------
  2735. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  2736. # ---------------------------------------
  2737. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  2738. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  2739. # saved as a flag.
  2740. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  2741. # ------------------------------------------------------------
  2742. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  2743. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  2744. # -------------------------------------------------------
  2745. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  2746. # are set.
  2747. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  2748. # ----------------------------------------
  2749. # OPTION-LIST is a space-separated list of Libtool options associated
  2750. # with MACRO-NAME. If any OPTION has a matching handler declared with
  2751. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  2752. # the unknown option and exit.
  2753. # _LT_SET_OPTIONS
  2754. ## --------------------------------- ##
  2755. ## Macros to handle LT_INIT options. ##
  2756. ## --------------------------------- ##
  2757. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  2758. # -----------------------------------------
  2759. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  2760. # -----------------------------------------------
  2761. # LT_OPTION_DEFINE
  2762. # dlopen
  2763. # ------
  2764. # This is what autoupdate's m4 run will expand. It fires
  2765. # the warning (with _au_warn_XXX), outputs it into the
  2766. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2767. # the replacement expansion.
  2768. # This is an auxiliary macro that is also run when
  2769. # autoupdate runs m4. It simply calls m4_warning, but
  2770. # we need a wrapper so that each warning is emitted only
  2771. # once. We break the quoting in m4_warning's argument in
  2772. # order to expand this macro's arguments, not AU_DEFUN's.
  2773. # Finally, this is the expansion that is picked up by
  2774. # autoconf. It tells the user to run autoupdate, and
  2775. # then outputs the replacement expansion. We do not care
  2776. # about autoupdate's warning because that contains
  2777. # information on what to do *after* running autoupdate.
  2778. # win32-dll
  2779. # ---------
  2780. # Declare package support for building win32 dll's.
  2781. # win32-dll
  2782. # This is what autoupdate's m4 run will expand. It fires
  2783. # the warning (with _au_warn_XXX), outputs it into the
  2784. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2785. # the replacement expansion.
  2786. # This is an auxiliary macro that is also run when
  2787. # autoupdate runs m4. It simply calls m4_warning, but
  2788. # we need a wrapper so that each warning is emitted only
  2789. # once. We break the quoting in m4_warning's argument in
  2790. # order to expand this macro's arguments, not AU_DEFUN's.
  2791. # Finally, this is the expansion that is picked up by
  2792. # autoconf. It tells the user to run autoupdate, and
  2793. # then outputs the replacement expansion. We do not care
  2794. # about autoupdate's warning because that contains
  2795. # information on what to do *after* running autoupdate.
  2796. # _LT_ENABLE_SHARED([DEFAULT])
  2797. # ----------------------------
  2798. # implement the --enable-shared flag, and supports the `shared' and
  2799. # `disable-shared' LT_INIT options.
  2800. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2801. # _LT_ENABLE_SHARED
  2802. # Old names:
  2803. # This is what autoupdate's m4 run will expand. It fires
  2804. # the warning (with _au_warn_XXX), outputs it into the
  2805. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2806. # the replacement expansion.
  2807. # This is an auxiliary macro that is also run when
  2808. # autoupdate runs m4. It simply calls m4_warning, but
  2809. # we need a wrapper so that each warning is emitted only
  2810. # once. We break the quoting in m4_warning's argument in
  2811. # order to expand this macro's arguments, not AU_DEFUN's.
  2812. # Finally, this is the expansion that is picked up by
  2813. # autoconf. It tells the user to run autoupdate, and
  2814. # then outputs the replacement expansion. We do not care
  2815. # about autoupdate's warning because that contains
  2816. # information on what to do *after* running autoupdate.
  2817. # This is what autoupdate's m4 run will expand. It fires
  2818. # the warning (with _au_warn_XXX), outputs it into the
  2819. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2820. # the replacement expansion.
  2821. # This is an auxiliary macro that is also run when
  2822. # autoupdate runs m4. It simply calls m4_warning, but
  2823. # we need a wrapper so that each warning is emitted only
  2824. # once. We break the quoting in m4_warning's argument in
  2825. # order to expand this macro's arguments, not AU_DEFUN's.
  2826. # Finally, this is the expansion that is picked up by
  2827. # autoconf. It tells the user to run autoupdate, and
  2828. # then outputs the replacement expansion. We do not care
  2829. # about autoupdate's warning because that contains
  2830. # information on what to do *after* running autoupdate.
  2831. # _LT_ENABLE_STATIC([DEFAULT])
  2832. # ----------------------------
  2833. # implement the --enable-static flag, and support the `static' and
  2834. # `disable-static' LT_INIT options.
  2835. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2836. # _LT_ENABLE_STATIC
  2837. # Old names:
  2838. # This is what autoupdate's m4 run will expand. It fires
  2839. # the warning (with _au_warn_XXX), outputs it into the
  2840. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2841. # the replacement expansion.
  2842. # This is an auxiliary macro that is also run when
  2843. # autoupdate runs m4. It simply calls m4_warning, but
  2844. # we need a wrapper so that each warning is emitted only
  2845. # once. We break the quoting in m4_warning's argument in
  2846. # order to expand this macro's arguments, not AU_DEFUN's.
  2847. # Finally, this is the expansion that is picked up by
  2848. # autoconf. It tells the user to run autoupdate, and
  2849. # then outputs the replacement expansion. We do not care
  2850. # about autoupdate's warning because that contains
  2851. # information on what to do *after* running autoupdate.
  2852. # This is what autoupdate's m4 run will expand. It fires
  2853. # the warning (with _au_warn_XXX), outputs it into the
  2854. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2855. # the replacement expansion.
  2856. # This is an auxiliary macro that is also run when
  2857. # autoupdate runs m4. It simply calls m4_warning, but
  2858. # we need a wrapper so that each warning is emitted only
  2859. # once. We break the quoting in m4_warning's argument in
  2860. # order to expand this macro's arguments, not AU_DEFUN's.
  2861. # Finally, this is the expansion that is picked up by
  2862. # autoconf. It tells the user to run autoupdate, and
  2863. # then outputs the replacement expansion. We do not care
  2864. # about autoupdate's warning because that contains
  2865. # information on what to do *after* running autoupdate.
  2866. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  2867. # ----------------------------------
  2868. # implement the --enable-fast-install flag, and support the `fast-install'
  2869. # and `disable-fast-install' LT_INIT options.
  2870. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2871. # _LT_ENABLE_FAST_INSTALL
  2872. # Old names:
  2873. # This is what autoupdate's m4 run will expand. It fires
  2874. # the warning (with _au_warn_XXX), outputs it into the
  2875. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2876. # the replacement expansion.
  2877. # This is an auxiliary macro that is also run when
  2878. # autoupdate runs m4. It simply calls m4_warning, but
  2879. # we need a wrapper so that each warning is emitted only
  2880. # once. We break the quoting in m4_warning's argument in
  2881. # order to expand this macro's arguments, not AU_DEFUN's.
  2882. # Finally, this is the expansion that is picked up by
  2883. # autoconf. It tells the user to run autoupdate, and
  2884. # then outputs the replacement expansion. We do not care
  2885. # about autoupdate's warning because that contains
  2886. # information on what to do *after* running autoupdate.
  2887. # This is what autoupdate's m4 run will expand. It fires
  2888. # the warning (with _au_warn_XXX), outputs it into the
  2889. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2890. # the replacement expansion.
  2891. # This is an auxiliary macro that is also run when
  2892. # autoupdate runs m4. It simply calls m4_warning, but
  2893. # we need a wrapper so that each warning is emitted only
  2894. # once. We break the quoting in m4_warning's argument in
  2895. # order to expand this macro's arguments, not AU_DEFUN's.
  2896. # Finally, this is the expansion that is picked up by
  2897. # autoconf. It tells the user to run autoupdate, and
  2898. # then outputs the replacement expansion. We do not care
  2899. # about autoupdate's warning because that contains
  2900. # information on what to do *after* running autoupdate.
  2901. # _LT_WITH_PIC([MODE])
  2902. # --------------------
  2903. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  2904. # LT_INIT options.
  2905. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2906. # _LT_WITH_PIC
  2907. # Old name:
  2908. # This is what autoupdate's m4 run will expand. It fires
  2909. # the warning (with _au_warn_XXX), outputs it into the
  2910. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2911. # the replacement expansion.
  2912. # This is an auxiliary macro that is also run when
  2913. # autoupdate runs m4. It simply calls m4_warning, but
  2914. # we need a wrapper so that each warning is emitted only
  2915. # once. We break the quoting in m4_warning's argument in
  2916. # order to expand this macro's arguments, not AU_DEFUN's.
  2917. # Finally, this is the expansion that is picked up by
  2918. # autoconf. It tells the user to run autoupdate, and
  2919. # then outputs the replacement expansion. We do not care
  2920. # about autoupdate's warning because that contains
  2921. # information on what to do *after* running autoupdate.
  2922. ## ----------------- ##
  2923. ## LTDL_INIT Options ##
  2924. ## ----------------- ##
  2925. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  2926. #
  2927. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  2928. # Written by Gary V. Vaughan, 2004
  2929. #
  2930. # This file is free software; the Free Software Foundation gives
  2931. # unlimited permission to copy and/or distribute it, with or without
  2932. # modifications, as long as this notice is preserved.
  2933. # serial 6 ltsugar.m4
  2934. # This is to help aclocal find these macros, as it can't see m4_define.
  2935. # lt_join(SEP, ARG1, [ARG2...])
  2936. # -----------------------------
  2937. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  2938. # associated separator.
  2939. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  2940. # versions in m4sugar had bugs.
  2941. # lt_car(LIST)
  2942. # lt_cdr(LIST)
  2943. # ------------
  2944. # Manipulate m4 lists.
  2945. # These macros are necessary as long as will still need to support
  2946. # Autoconf-2.59 which quotes differently.
  2947. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  2948. # ------------------------------------------
  2949. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  2950. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  2951. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  2952. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  2953. # than defined and empty).
  2954. #
  2955. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  2956. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  2957. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  2958. # ----------------------------------------------------------
  2959. # Produce a SEP delimited list of all paired combinations of elements of
  2960. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  2961. # has the form PREFIXmINFIXSUFFIXn.
  2962. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  2963. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  2964. # -----------------------------------------------------------------------
  2965. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  2966. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  2967. # lt_dict_add(DICT, KEY, VALUE)
  2968. # -----------------------------
  2969. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  2970. # --------------------------------------------
  2971. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  2972. # ----------------------------------
  2973. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  2974. # -----------------------------------------------------------------
  2975. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  2976. # --------------------------------------------------------------
  2977. # ltversion.m4 -- version numbers -*- Autoconf -*-
  2978. #
  2979. # Copyright (C) 2004 Free Software Foundation, Inc.
  2980. # Written by Scott James Remnant, 2004
  2981. #
  2982. # This file is free software; the Free Software Foundation gives
  2983. # unlimited permission to copy and/or distribute it, with or without
  2984. # modifications, as long as this notice is preserved.
  2985. # Generated from ltversion.in.
  2986. # serial 3134 ltversion.m4
  2987. # This file is part of GNU Libtool
  2988. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  2989. #
  2990. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  2991. # Written by Scott James Remnant, 2004.
  2992. #
  2993. # This file is free software; the Free Software Foundation gives
  2994. # unlimited permission to copy and/or distribute it, with or without
  2995. # modifications, as long as this notice is preserved.
  2996. # serial 4 lt~obsolete.m4
  2997. # These exist entirely to fool aclocal when bootstrapping libtool.
  2998. #
  2999. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  3000. # which have later been changed to m4_define as they aren't part of the
  3001. # exported API, or moved to Autoconf or Automake where they belong.
  3002. #
  3003. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  3004. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  3005. # using a macro with the same name in our local m4/libtool.m4 it'll
  3006. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  3007. # and doesn't know about Autoconf macros at all.)
  3008. #
  3009. # So we provide this file, which has a silly filename so it's always
  3010. # included after everything else. This provides aclocal with the
  3011. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  3012. # because those macros already exist, or will be overwritten later.
  3013. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  3014. #
  3015. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  3016. # Yes, that means every name once taken will need to remain here until
  3017. # we give up compatibility with versions before 1.7, at which point
  3018. # we need to keep only those names which we still refer to.
  3019. # This is to help aclocal find these macros, as it can't see m4_define.
  3020. ## -*- Autoconf -*-
  3021. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
  3022. # Free Software Foundation, Inc.
  3023. #
  3024. # This file is free software; the Free Software Foundation
  3025. # gives unlimited permission to copy and/or distribute it,
  3026. # with or without modifications, as long as this notice is preserved.
  3027. # serial 8
  3028. # Based on depend.m4 from automake 1.9, modified for standalone use in
  3029. # an environment where GNU make is required.
  3030. # ZW_PROG_COMPILER_DEPENDENCIES
  3031. # -----------------------------
  3032. # Variant of _AM_DEPENDENCIES which just does the dependency probe and
  3033. # sets fooDEPMODE accordingly. Cache-variable compatible with
  3034. # original; not side-effect compatible. As the users of this macro
  3035. # may require accurate dependencies for correct builds, it does *not*
  3036. # honor --disable-dependency-checking, and failure to detect a usable
  3037. # method is an error. depcomp is assumed to be located in
  3038. # $ac_aux_dir.
  3039. #
  3040. # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
  3041. # AM_SET_DEPDIR
  3042. # -------------
  3043. # Choose a directory name for dependency files.
  3044. # ZW_CREATE_DEPDIR
  3045. # ----------------
  3046. # As AM_SET_DEPDIR, but also create the directory at config.status time.
  3047. sim_inline="-DDEFAULT_INLINE=0"
  3048. # intl sister-directory configuration rules.
  3049. #
  3050. # The idea behind this macro is that there's no need to repeat all the
  3051. # autoconf probes done by the intl directory - it's already done them
  3052. # for us. In fact, there's no need even to look at the cache for the
  3053. # answers. All we need to do is nab a few pieces of information.
  3054. # The intl directory is set up to make this easy, by generating a
  3055. # small file which can be sourced as a shell script; then we produce
  3056. # the necessary substitutions and definitions for this directory.
  3057. # Autoconf M4 include file defining utility macros for complex Canadian
  3058. # cross builds.
  3059. ####
  3060. # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
  3061. # or AC_INIT.
  3062. # These demand that AC_CANONICAL_SYSTEM be called beforehand.
  3063. ####
  3064. # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3065. # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
  3066. ####
  3067. # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3068. # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
  3069. # Backported from Autoconf 2.5x; can go away when and if
  3070. # we switch. Put the OS path separator in $PATH_SEPARATOR.
  3071. # ACX_HAVE_GCC_FOR_TARGET
  3072. # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
  3073. # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
  3074. # Searching for installed target binutils. We need to take extra care,
  3075. # else we may find the wrong assembler, linker, etc., and lose.
  3076. #
  3077. # First try --with-build-time-tools, if specified.
  3078. #
  3079. # For build != host, we ask the installed GCC for the name of the tool it
  3080. # uses, and accept it if it is an absolute path. This is because the
  3081. # only good choice for a compiler is the same GCC version that is being
  3082. # installed (or we couldn't make target libraries), and we assume that
  3083. # on the host system we'll have not only the same GCC version, but also
  3084. # the same binutils version.
  3085. #
  3086. # For build == host, search the same directories that the installed
  3087. # compiler will search. We used to do this for the assembler, linker,
  3088. # and nm only; for simplicity of configuration, however, we extend this
  3089. # criterion to tools (such as ar and ranlib) that are never invoked by
  3090. # the compiler, to avoid mismatches.
  3091. #
  3092. # Also note we have to check MD_EXEC_PREFIX before checking the user's path
  3093. # if build == target. This makes the most sense only when bootstrapping,
  3094. # but we also do so when build != host. In this case, we hope that the
  3095. # build and host systems will have similar contents of MD_EXEC_PREFIX.
  3096. #
  3097. # If we do not find a suitable binary, then try the user's path.
  3098. ###
  3099. # AC_PROG_CPP_WERROR
  3100. # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
  3101. # triggers warnings from the preprocessor. Will be in autoconf 2.58.
  3102. # For now, using this also overrides header checks to use only the
  3103. # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
  3104. # bit harder from here).
  3105. # Eventually autoconf will default to checking headers with the compiler
  3106. # instead, and we'll have to do this differently.
  3107. # AC_PROG_CPP_WERROR
  3108. # Test for GNAT.
  3109. # We require the gnatbind & gnatmake programs, as well as a compiler driver
  3110. # that understands Ada. We use the user's CC setting, already found, and
  3111. # possibly add $1 to the command-line parameters.
  3112. #
  3113. # Sets the shell variable have_gnat to yes or no as appropriate, and
  3114. # substitutes GNATBIND and GNATMAKE.
  3115. ac_ext=c
  3116. ac_cpp='$CPP $CPPFLAGS'
  3117. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3118. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3119. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3120. if test -n "$ac_tool_prefix"; then
  3121. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3122. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3124. $as_echo_n "checking for $ac_word... " >&6; }
  3125. if test "${ac_cv_prog_CC+set}" = set; then :
  3126. $as_echo_n "(cached) " >&6
  3127. else
  3128. if test -n "$CC"; then
  3129. ac_cv_prog_CC="$CC" # Let the user override the test.
  3130. else
  3131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3132. for as_dir in $PATH
  3133. do
  3134. IFS=$as_save_IFS
  3135. test -z "$as_dir" && as_dir=.
  3136. for ac_exec_ext in '' $ac_executable_extensions; do
  3137. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3138. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3140. break 2
  3141. fi
  3142. done
  3143. done
  3144. IFS=$as_save_IFS
  3145. fi
  3146. fi
  3147. CC=$ac_cv_prog_CC
  3148. if test -n "$CC"; then
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3150. $as_echo "$CC" >&6; }
  3151. else
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3153. $as_echo "no" >&6; }
  3154. fi
  3155. fi
  3156. if test -z "$ac_cv_prog_CC"; then
  3157. ac_ct_CC=$CC
  3158. # Extract the first word of "gcc", so it can be a program name with args.
  3159. set dummy gcc; ac_word=$2
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3161. $as_echo_n "checking for $ac_word... " >&6; }
  3162. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3163. $as_echo_n "(cached) " >&6
  3164. else
  3165. if test -n "$ac_ct_CC"; then
  3166. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3167. else
  3168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3169. for as_dir in $PATH
  3170. do
  3171. IFS=$as_save_IFS
  3172. test -z "$as_dir" && as_dir=.
  3173. for ac_exec_ext in '' $ac_executable_extensions; do
  3174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3175. ac_cv_prog_ac_ct_CC="gcc"
  3176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3177. break 2
  3178. fi
  3179. done
  3180. done
  3181. IFS=$as_save_IFS
  3182. fi
  3183. fi
  3184. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3185. if test -n "$ac_ct_CC"; then
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3187. $as_echo "$ac_ct_CC" >&6; }
  3188. else
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3190. $as_echo "no" >&6; }
  3191. fi
  3192. if test "x$ac_ct_CC" = x; then
  3193. CC=""
  3194. else
  3195. case $cross_compiling:$ac_tool_warned in
  3196. yes:)
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3198. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3199. ac_tool_warned=yes ;;
  3200. esac
  3201. CC=$ac_ct_CC
  3202. fi
  3203. else
  3204. CC="$ac_cv_prog_CC"
  3205. fi
  3206. if test -z "$CC"; then
  3207. if test -n "$ac_tool_prefix"; then
  3208. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3209. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3211. $as_echo_n "checking for $ac_word... " >&6; }
  3212. if test "${ac_cv_prog_CC+set}" = set; then :
  3213. $as_echo_n "(cached) " >&6
  3214. else
  3215. if test -n "$CC"; then
  3216. ac_cv_prog_CC="$CC" # Let the user override the test.
  3217. else
  3218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3219. for as_dir in $PATH
  3220. do
  3221. IFS=$as_save_IFS
  3222. test -z "$as_dir" && as_dir=.
  3223. for ac_exec_ext in '' $ac_executable_extensions; do
  3224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3225. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3227. break 2
  3228. fi
  3229. done
  3230. done
  3231. IFS=$as_save_IFS
  3232. fi
  3233. fi
  3234. CC=$ac_cv_prog_CC
  3235. if test -n "$CC"; then
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3237. $as_echo "$CC" >&6; }
  3238. else
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3240. $as_echo "no" >&6; }
  3241. fi
  3242. fi
  3243. fi
  3244. if test -z "$CC"; then
  3245. # Extract the first word of "cc", so it can be a program name with args.
  3246. set dummy cc; ac_word=$2
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3248. $as_echo_n "checking for $ac_word... " >&6; }
  3249. if test "${ac_cv_prog_CC+set}" = set; then :
  3250. $as_echo_n "(cached) " >&6
  3251. else
  3252. if test -n "$CC"; then
  3253. ac_cv_prog_CC="$CC" # Let the user override the test.
  3254. else
  3255. ac_prog_rejected=no
  3256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3257. for as_dir in $PATH
  3258. do
  3259. IFS=$as_save_IFS
  3260. test -z "$as_dir" && as_dir=.
  3261. for ac_exec_ext in '' $ac_executable_extensions; do
  3262. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3263. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3264. ac_prog_rejected=yes
  3265. continue
  3266. fi
  3267. ac_cv_prog_CC="cc"
  3268. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3269. break 2
  3270. fi
  3271. done
  3272. done
  3273. IFS=$as_save_IFS
  3274. if test $ac_prog_rejected = yes; then
  3275. # We found a bogon in the path, so make sure we never use it.
  3276. set dummy $ac_cv_prog_CC
  3277. shift
  3278. if test $# != 0; then
  3279. # We chose a different compiler from the bogus one.
  3280. # However, it has the same basename, so the bogon will be chosen
  3281. # first if we set CC to just the basename; use the full file name.
  3282. shift
  3283. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3284. fi
  3285. fi
  3286. fi
  3287. fi
  3288. CC=$ac_cv_prog_CC
  3289. if test -n "$CC"; then
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3291. $as_echo "$CC" >&6; }
  3292. else
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3294. $as_echo "no" >&6; }
  3295. fi
  3296. fi
  3297. if test -z "$CC"; then
  3298. if test -n "$ac_tool_prefix"; then
  3299. for ac_prog in cl.exe
  3300. do
  3301. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3302. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3304. $as_echo_n "checking for $ac_word... " >&6; }
  3305. if test "${ac_cv_prog_CC+set}" = set; then :
  3306. $as_echo_n "(cached) " >&6
  3307. else
  3308. if test -n "$CC"; then
  3309. ac_cv_prog_CC="$CC" # Let the user override the test.
  3310. else
  3311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3312. for as_dir in $PATH
  3313. do
  3314. IFS=$as_save_IFS
  3315. test -z "$as_dir" && as_dir=.
  3316. for ac_exec_ext in '' $ac_executable_extensions; do
  3317. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3318. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3320. break 2
  3321. fi
  3322. done
  3323. done
  3324. IFS=$as_save_IFS
  3325. fi
  3326. fi
  3327. CC=$ac_cv_prog_CC
  3328. if test -n "$CC"; then
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3330. $as_echo "$CC" >&6; }
  3331. else
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3333. $as_echo "no" >&6; }
  3334. fi
  3335. test -n "$CC" && break
  3336. done
  3337. fi
  3338. if test -z "$CC"; then
  3339. ac_ct_CC=$CC
  3340. for ac_prog in cl.exe
  3341. do
  3342. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3343. set dummy $ac_prog; ac_word=$2
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3345. $as_echo_n "checking for $ac_word... " >&6; }
  3346. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3347. $as_echo_n "(cached) " >&6
  3348. else
  3349. if test -n "$ac_ct_CC"; then
  3350. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3351. else
  3352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3353. for as_dir in $PATH
  3354. do
  3355. IFS=$as_save_IFS
  3356. test -z "$as_dir" && as_dir=.
  3357. for ac_exec_ext in '' $ac_executable_extensions; do
  3358. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3359. ac_cv_prog_ac_ct_CC="$ac_prog"
  3360. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3361. break 2
  3362. fi
  3363. done
  3364. done
  3365. IFS=$as_save_IFS
  3366. fi
  3367. fi
  3368. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3369. if test -n "$ac_ct_CC"; then
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3371. $as_echo "$ac_ct_CC" >&6; }
  3372. else
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3374. $as_echo "no" >&6; }
  3375. fi
  3376. test -n "$ac_ct_CC" && break
  3377. done
  3378. if test "x$ac_ct_CC" = x; then
  3379. CC=""
  3380. else
  3381. case $cross_compiling:$ac_tool_warned in
  3382. yes:)
  3383. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3384. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3385. ac_tool_warned=yes ;;
  3386. esac
  3387. CC=$ac_ct_CC
  3388. fi
  3389. fi
  3390. fi
  3391. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3392. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3393. as_fn_error "no acceptable C compiler found in \$PATH
  3394. See \`config.log' for more details." "$LINENO" 5; }
  3395. # Provide some information about the compiler.
  3396. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3397. set X $ac_compile
  3398. ac_compiler=$2
  3399. for ac_option in --version -v -V -qversion; do
  3400. { { ac_try="$ac_compiler $ac_option >&5"
  3401. case "(($ac_try" in
  3402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3403. *) ac_try_echo=$ac_try;;
  3404. esac
  3405. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3406. $as_echo "$ac_try_echo"; } >&5
  3407. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3408. ac_status=$?
  3409. if test -s conftest.err; then
  3410. sed '10a\
  3411. ... rest of stderr output deleted ...
  3412. 10q' conftest.err >conftest.er1
  3413. cat conftest.er1 >&5
  3414. rm -f conftest.er1 conftest.err
  3415. fi
  3416. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3417. test $ac_status = 0; }
  3418. done
  3419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3420. /* end confdefs.h. */
  3421. int
  3422. main ()
  3423. {
  3424. ;
  3425. return 0;
  3426. }
  3427. _ACEOF
  3428. ac_clean_files_save=$ac_clean_files
  3429. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3430. # Try to create an executable without -o first, disregard a.out.
  3431. # It will help us diagnose broken compilers, and finding out an intuition
  3432. # of exeext.
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3434. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3435. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3436. # The possible output files:
  3437. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3438. ac_rmfiles=
  3439. for ac_file in $ac_files
  3440. do
  3441. case $ac_file in
  3442. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3443. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3444. esac
  3445. done
  3446. rm -f $ac_rmfiles
  3447. if { { ac_try="$ac_link_default"
  3448. case "(($ac_try" in
  3449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3450. *) ac_try_echo=$ac_try;;
  3451. esac
  3452. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3453. $as_echo "$ac_try_echo"; } >&5
  3454. (eval "$ac_link_default") 2>&5
  3455. ac_status=$?
  3456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3457. test $ac_status = 0; }; then :
  3458. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3459. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3460. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3461. # so that the user can short-circuit this test for compilers unknown to
  3462. # Autoconf.
  3463. for ac_file in $ac_files ''
  3464. do
  3465. test -f "$ac_file" || continue
  3466. case $ac_file in
  3467. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3468. ;;
  3469. [ab].out )
  3470. # We found the default executable, but exeext='' is most
  3471. # certainly right.
  3472. break;;
  3473. *.* )
  3474. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3475. then :; else
  3476. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3477. fi
  3478. # We set ac_cv_exeext here because the later test for it is not
  3479. # safe: cross compilers may not add the suffix if given an `-o'
  3480. # argument, so we may need to know it at that point already.
  3481. # Even if this section looks crufty: it has the advantage of
  3482. # actually working.
  3483. break;;
  3484. * )
  3485. break;;
  3486. esac
  3487. done
  3488. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3489. else
  3490. ac_file=''
  3491. fi
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3493. $as_echo "$ac_file" >&6; }
  3494. if test -z "$ac_file"; then :
  3495. $as_echo "$as_me: failed program was:" >&5
  3496. sed 's/^/| /' conftest.$ac_ext >&5
  3497. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3498. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3499. { as_fn_set_status 77
  3500. as_fn_error "C compiler cannot create executables
  3501. See \`config.log' for more details." "$LINENO" 5; }; }
  3502. fi
  3503. ac_exeext=$ac_cv_exeext
  3504. # Check that the compiler produces executables we can run. If not, either
  3505. # the compiler is broken, or we cross compile.
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3507. $as_echo_n "checking whether the C compiler works... " >&6; }
  3508. # If not cross compiling, check that we can run a simple program.
  3509. if test "$cross_compiling" != yes; then
  3510. if { ac_try='./$ac_file'
  3511. { { case "(($ac_try" in
  3512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3513. *) ac_try_echo=$ac_try;;
  3514. esac
  3515. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3516. $as_echo "$ac_try_echo"; } >&5
  3517. (eval "$ac_try") 2>&5
  3518. ac_status=$?
  3519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3520. test $ac_status = 0; }; }; then
  3521. cross_compiling=no
  3522. else
  3523. if test "$cross_compiling" = maybe; then
  3524. cross_compiling=yes
  3525. else
  3526. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3527. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3528. as_fn_error "cannot run C compiled programs.
  3529. If you meant to cross compile, use \`--host'.
  3530. See \`config.log' for more details." "$LINENO" 5; }
  3531. fi
  3532. fi
  3533. fi
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3535. $as_echo "yes" >&6; }
  3536. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3537. ac_clean_files=$ac_clean_files_save
  3538. # Check that the compiler produces executables we can run. If not, either
  3539. # the compiler is broken, or we cross compile.
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3541. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3543. $as_echo "$cross_compiling" >&6; }
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3545. $as_echo_n "checking for suffix of executables... " >&6; }
  3546. if { { ac_try="$ac_link"
  3547. case "(($ac_try" in
  3548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3549. *) ac_try_echo=$ac_try;;
  3550. esac
  3551. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3552. $as_echo "$ac_try_echo"; } >&5
  3553. (eval "$ac_link") 2>&5
  3554. ac_status=$?
  3555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3556. test $ac_status = 0; }; then :
  3557. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3558. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3559. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3560. # `rm'.
  3561. for ac_file in conftest.exe conftest conftest.*; do
  3562. test -f "$ac_file" || continue
  3563. case $ac_file in
  3564. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3565. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3566. break;;
  3567. * ) break;;
  3568. esac
  3569. done
  3570. else
  3571. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3572. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3573. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3574. See \`config.log' for more details." "$LINENO" 5; }
  3575. fi
  3576. rm -f conftest$ac_cv_exeext
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3578. $as_echo "$ac_cv_exeext" >&6; }
  3579. rm -f conftest.$ac_ext
  3580. EXEEXT=$ac_cv_exeext
  3581. ac_exeext=$EXEEXT
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3583. $as_echo_n "checking for suffix of object files... " >&6; }
  3584. if test "${ac_cv_objext+set}" = set; then :
  3585. $as_echo_n "(cached) " >&6
  3586. else
  3587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3588. /* end confdefs.h. */
  3589. int
  3590. main ()
  3591. {
  3592. ;
  3593. return 0;
  3594. }
  3595. _ACEOF
  3596. rm -f conftest.o conftest.obj
  3597. if { { ac_try="$ac_compile"
  3598. case "(($ac_try" in
  3599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3600. *) ac_try_echo=$ac_try;;
  3601. esac
  3602. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3603. $as_echo "$ac_try_echo"; } >&5
  3604. (eval "$ac_compile") 2>&5
  3605. ac_status=$?
  3606. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3607. test $ac_status = 0; }; then :
  3608. for ac_file in conftest.o conftest.obj conftest.*; do
  3609. test -f "$ac_file" || continue;
  3610. case $ac_file in
  3611. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3612. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3613. break;;
  3614. esac
  3615. done
  3616. else
  3617. $as_echo "$as_me: failed program was:" >&5
  3618. sed 's/^/| /' conftest.$ac_ext >&5
  3619. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3620. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3621. as_fn_error "cannot compute suffix of object files: cannot compile
  3622. See \`config.log' for more details." "$LINENO" 5; }
  3623. fi
  3624. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3625. fi
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3627. $as_echo "$ac_cv_objext" >&6; }
  3628. OBJEXT=$ac_cv_objext
  3629. ac_objext=$OBJEXT
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3631. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3632. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3633. $as_echo_n "(cached) " >&6
  3634. else
  3635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3636. /* end confdefs.h. */
  3637. int
  3638. main ()
  3639. {
  3640. #ifndef __GNUC__
  3641. choke me
  3642. #endif
  3643. ;
  3644. return 0;
  3645. }
  3646. _ACEOF
  3647. if ac_fn_c_try_compile "$LINENO"; then :
  3648. ac_compiler_gnu=yes
  3649. else
  3650. ac_compiler_gnu=no
  3651. fi
  3652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3653. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3654. fi
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3656. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3657. if test $ac_compiler_gnu = yes; then
  3658. GCC=yes
  3659. else
  3660. GCC=
  3661. fi
  3662. ac_test_CFLAGS=${CFLAGS+set}
  3663. ac_save_CFLAGS=$CFLAGS
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3665. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3666. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3667. $as_echo_n "(cached) " >&6
  3668. else
  3669. ac_save_c_werror_flag=$ac_c_werror_flag
  3670. ac_c_werror_flag=yes
  3671. ac_cv_prog_cc_g=no
  3672. CFLAGS="-g"
  3673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3674. /* end confdefs.h. */
  3675. int
  3676. main ()
  3677. {
  3678. ;
  3679. return 0;
  3680. }
  3681. _ACEOF
  3682. if ac_fn_c_try_compile "$LINENO"; then :
  3683. ac_cv_prog_cc_g=yes
  3684. else
  3685. CFLAGS=""
  3686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3687. /* end confdefs.h. */
  3688. int
  3689. main ()
  3690. {
  3691. ;
  3692. return 0;
  3693. }
  3694. _ACEOF
  3695. if ac_fn_c_try_compile "$LINENO"; then :
  3696. else
  3697. ac_c_werror_flag=$ac_save_c_werror_flag
  3698. CFLAGS="-g"
  3699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3700. /* end confdefs.h. */
  3701. int
  3702. main ()
  3703. {
  3704. ;
  3705. return 0;
  3706. }
  3707. _ACEOF
  3708. if ac_fn_c_try_compile "$LINENO"; then :
  3709. ac_cv_prog_cc_g=yes
  3710. fi
  3711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3712. fi
  3713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3714. fi
  3715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3716. ac_c_werror_flag=$ac_save_c_werror_flag
  3717. fi
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3719. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3720. if test "$ac_test_CFLAGS" = set; then
  3721. CFLAGS=$ac_save_CFLAGS
  3722. elif test $ac_cv_prog_cc_g = yes; then
  3723. if test "$GCC" = yes; then
  3724. CFLAGS="-g -O2"
  3725. else
  3726. CFLAGS="-g"
  3727. fi
  3728. else
  3729. if test "$GCC" = yes; then
  3730. CFLAGS="-O2"
  3731. else
  3732. CFLAGS=
  3733. fi
  3734. fi
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3736. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3737. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3738. $as_echo_n "(cached) " >&6
  3739. else
  3740. ac_cv_prog_cc_c89=no
  3741. ac_save_CC=$CC
  3742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3743. /* end confdefs.h. */
  3744. #include <stdarg.h>
  3745. #include <stdio.h>
  3746. #include <sys/types.h>
  3747. #include <sys/stat.h>
  3748. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3749. struct buf { int x; };
  3750. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3751. static char *e (p, i)
  3752. char **p;
  3753. int i;
  3754. {
  3755. return p[i];
  3756. }
  3757. static char *f (char * (*g) (char **, int), char **p, ...)
  3758. {
  3759. char *s;
  3760. va_list v;
  3761. va_start (v,p);
  3762. s = g (p, va_arg (v,int));
  3763. va_end (v);
  3764. return s;
  3765. }
  3766. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3767. function prototypes and stuff, but not '\xHH' hex character constants.
  3768. These don't provoke an error unfortunately, instead are silently treated
  3769. as 'x'. The following induces an error, until -std is added to get
  3770. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3771. array size at least. It's necessary to write '\x00'==0 to get something
  3772. that's true only with -std. */
  3773. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3774. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3775. inside strings and character constants. */
  3776. #define FOO(x) 'x'
  3777. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3778. int test (int i, double x);
  3779. struct s1 {int (*f) (int a);};
  3780. struct s2 {int (*f) (double a);};
  3781. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3782. int argc;
  3783. char **argv;
  3784. int
  3785. main ()
  3786. {
  3787. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3788. ;
  3789. return 0;
  3790. }
  3791. _ACEOF
  3792. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3793. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3794. do
  3795. CC="$ac_save_CC $ac_arg"
  3796. if ac_fn_c_try_compile "$LINENO"; then :
  3797. ac_cv_prog_cc_c89=$ac_arg
  3798. fi
  3799. rm -f core conftest.err conftest.$ac_objext
  3800. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3801. done
  3802. rm -f conftest.$ac_ext
  3803. CC=$ac_save_CC
  3804. fi
  3805. # AC_CACHE_VAL
  3806. case "x$ac_cv_prog_cc_c89" in
  3807. x)
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3809. $as_echo "none needed" >&6; } ;;
  3810. xno)
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3812. $as_echo "unsupported" >&6; } ;;
  3813. *)
  3814. CC="$CC $ac_cv_prog_cc_c89"
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3816. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3817. esac
  3818. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3819. fi
  3820. ac_ext=c
  3821. ac_cpp='$CPP $CPPFLAGS'
  3822. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3823. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3824. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3825. ac_aux_dir=
  3826. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3827. for ac_t in install-sh install.sh shtool; do
  3828. if test -f "$ac_dir/$ac_t"; then
  3829. ac_aux_dir=$ac_dir
  3830. ac_install_sh="$ac_aux_dir/$ac_t -c"
  3831. break 2
  3832. fi
  3833. done
  3834. done
  3835. if test -z "$ac_aux_dir"; then
  3836. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3837. fi
  3838. # These three variables are undocumented and unsupported,
  3839. # and are intended to be withdrawn in a future Autoconf release.
  3840. # They can cause serious problems if a builder's source tree is in a directory
  3841. # whose full name contains unusual characters.
  3842. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3843. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3844. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3845. # Make sure we can run config.sub.
  3846. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3847. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3849. $as_echo_n "checking build system type... " >&6; }
  3850. if test "${ac_cv_build+set}" = set; then :
  3851. $as_echo_n "(cached) " >&6
  3852. else
  3853. ac_build_alias=$build_alias
  3854. test "x$ac_build_alias" = x &&
  3855. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3856. test "x$ac_build_alias" = x &&
  3857. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3858. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3859. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3860. fi
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3862. $as_echo "$ac_cv_build" >&6; }
  3863. case $ac_cv_build in
  3864. *-*-*) ;;
  3865. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3866. esac
  3867. build=$ac_cv_build
  3868. ac_save_IFS=$IFS; IFS='-'
  3869. set x $ac_cv_build
  3870. shift
  3871. build_cpu=$1
  3872. build_vendor=$2
  3873. shift; shift
  3874. # Remember, the first character of IFS is used to create $*,
  3875. # except with old shells:
  3876. build_os=$*
  3877. IFS=$ac_save_IFS
  3878. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3880. $as_echo_n "checking host system type... " >&6; }
  3881. if test "${ac_cv_host+set}" = set; then :
  3882. $as_echo_n "(cached) " >&6
  3883. else
  3884. if test "x$host_alias" = x; then
  3885. ac_cv_host=$ac_cv_build
  3886. else
  3887. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3888. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3889. fi
  3890. fi
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3892. $as_echo "$ac_cv_host" >&6; }
  3893. case $ac_cv_host in
  3894. *-*-*) ;;
  3895. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3896. esac
  3897. host=$ac_cv_host
  3898. ac_save_IFS=$IFS; IFS='-'
  3899. set x $ac_cv_host
  3900. shift
  3901. host_cpu=$1
  3902. host_vendor=$2
  3903. shift; shift
  3904. # Remember, the first character of IFS is used to create $*,
  3905. # except with old shells:
  3906. host_os=$*
  3907. IFS=$ac_save_IFS
  3908. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3910. $as_echo_n "checking target system type... " >&6; }
  3911. if test "${ac_cv_target+set}" = set; then :
  3912. $as_echo_n "(cached) " >&6
  3913. else
  3914. if test "x$target_alias" = x; then
  3915. ac_cv_target=$ac_cv_host
  3916. else
  3917. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3918. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3919. fi
  3920. fi
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3922. $as_echo "$ac_cv_target" >&6; }
  3923. case $ac_cv_target in
  3924. *-*-*) ;;
  3925. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  3926. esac
  3927. target=$ac_cv_target
  3928. ac_save_IFS=$IFS; IFS='-'
  3929. set x $ac_cv_target
  3930. shift
  3931. target_cpu=$1
  3932. target_vendor=$2
  3933. shift; shift
  3934. # Remember, the first character of IFS is used to create $*,
  3935. # except with old shells:
  3936. target_os=$*
  3937. IFS=$ac_save_IFS
  3938. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3939. # The aliases save the names the user supplied, while $host etc.
  3940. # will get canonicalized.
  3941. test -n "$target_alias" &&
  3942. test "$program_prefix$program_suffix$program_transform_name" = \
  3943. NONENONEs,x,x, &&
  3944. program_prefix=${target_alias}-
  3945. ac_ext=c
  3946. ac_cpp='$CPP $CPPFLAGS'
  3947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3951. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3952. # On Suns, sometimes $CPP names a directory.
  3953. if test -n "$CPP" && test -d "$CPP"; then
  3954. CPP=
  3955. fi
  3956. if test -z "$CPP"; then
  3957. if test "${ac_cv_prog_CPP+set}" = set; then :
  3958. $as_echo_n "(cached) " >&6
  3959. else
  3960. # Double quotes because CPP needs to be expanded
  3961. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3962. do
  3963. ac_preproc_ok=false
  3964. for ac_c_preproc_warn_flag in '' yes
  3965. do
  3966. # Use a header file that comes with gcc, so configuring glibc
  3967. # with a fresh cross-compiler works.
  3968. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3969. # <limits.h> exists even on freestanding compilers.
  3970. # On the NeXT, cc -E runs the code through the compiler's parser,
  3971. # not just through cpp. "Syntax error" is here to catch this case.
  3972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3973. /* end confdefs.h. */
  3974. #ifdef __STDC__
  3975. # include <limits.h>
  3976. #else
  3977. # include <assert.h>
  3978. #endif
  3979. Syntax error
  3980. _ACEOF
  3981. if ac_fn_c_try_cpp "$LINENO"; then :
  3982. else
  3983. # Broken: fails on valid input.
  3984. continue
  3985. fi
  3986. rm -f conftest.err conftest.$ac_ext
  3987. # OK, works on sane cases. Now check whether nonexistent headers
  3988. # can be detected and how.
  3989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3990. /* end confdefs.h. */
  3991. #include <ac_nonexistent.h>
  3992. _ACEOF
  3993. if ac_fn_c_try_cpp "$LINENO"; then :
  3994. # Broken: success on invalid input.
  3995. continue
  3996. else
  3997. # Passes both tests.
  3998. ac_preproc_ok=:
  3999. break
  4000. fi
  4001. rm -f conftest.err conftest.$ac_ext
  4002. done
  4003. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4004. rm -f conftest.err conftest.$ac_ext
  4005. if $ac_preproc_ok; then :
  4006. break
  4007. fi
  4008. done
  4009. ac_cv_prog_CPP=$CPP
  4010. fi
  4011. CPP=$ac_cv_prog_CPP
  4012. else
  4013. ac_cv_prog_CPP=$CPP
  4014. fi
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4016. $as_echo "$CPP" >&6; }
  4017. ac_preproc_ok=false
  4018. for ac_c_preproc_warn_flag in '' yes
  4019. do
  4020. # Use a header file that comes with gcc, so configuring glibc
  4021. # with a fresh cross-compiler works.
  4022. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4023. # <limits.h> exists even on freestanding compilers.
  4024. # On the NeXT, cc -E runs the code through the compiler's parser,
  4025. # not just through cpp. "Syntax error" is here to catch this case.
  4026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4027. /* end confdefs.h. */
  4028. #ifdef __STDC__
  4029. # include <limits.h>
  4030. #else
  4031. # include <assert.h>
  4032. #endif
  4033. Syntax error
  4034. _ACEOF
  4035. if ac_fn_c_try_cpp "$LINENO"; then :
  4036. else
  4037. # Broken: fails on valid input.
  4038. continue
  4039. fi
  4040. rm -f conftest.err conftest.$ac_ext
  4041. # OK, works on sane cases. Now check whether nonexistent headers
  4042. # can be detected and how.
  4043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4044. /* end confdefs.h. */
  4045. #include <ac_nonexistent.h>
  4046. _ACEOF
  4047. if ac_fn_c_try_cpp "$LINENO"; then :
  4048. # Broken: success on invalid input.
  4049. continue
  4050. else
  4051. # Passes both tests.
  4052. ac_preproc_ok=:
  4053. break
  4054. fi
  4055. rm -f conftest.err conftest.$ac_ext
  4056. done
  4057. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4058. rm -f conftest.err conftest.$ac_ext
  4059. if $ac_preproc_ok; then :
  4060. else
  4061. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4062. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4063. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4064. See \`config.log' for more details." "$LINENO" 5; }
  4065. fi
  4066. ac_ext=c
  4067. ac_cpp='$CPP $CPPFLAGS'
  4068. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4069. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4070. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4072. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4073. if test "${ac_cv_path_GREP+set}" = set; then :
  4074. $as_echo_n "(cached) " >&6
  4075. else
  4076. if test -z "$GREP"; then
  4077. ac_path_GREP_found=false
  4078. # Loop through the user's path and test for each of PROGNAME-LIST
  4079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4080. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4081. do
  4082. IFS=$as_save_IFS
  4083. test -z "$as_dir" && as_dir=.
  4084. for ac_prog in grep ggrep; do
  4085. for ac_exec_ext in '' $ac_executable_extensions; do
  4086. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4087. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4088. # Check for GNU ac_path_GREP and select it if it is found.
  4089. # Check for GNU $ac_path_GREP
  4090. case `"$ac_path_GREP" --version 2>&1` in
  4091. *GNU*)
  4092. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4093. *)
  4094. ac_count=0
  4095. $as_echo_n 0123456789 >"conftest.in"
  4096. while :
  4097. do
  4098. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4099. mv "conftest.tmp" "conftest.in"
  4100. cp "conftest.in" "conftest.nl"
  4101. $as_echo 'GREP' >> "conftest.nl"
  4102. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4103. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4104. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4105. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4106. # Best one so far, save it but keep looking for a better one
  4107. ac_cv_path_GREP="$ac_path_GREP"
  4108. ac_path_GREP_max=$ac_count
  4109. fi
  4110. # 10*(2^10) chars as input seems more than enough
  4111. test $ac_count -gt 10 && break
  4112. done
  4113. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4114. esac
  4115. $ac_path_GREP_found && break 3
  4116. done
  4117. done
  4118. done
  4119. IFS=$as_save_IFS
  4120. if test -z "$ac_cv_path_GREP"; then
  4121. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4122. fi
  4123. else
  4124. ac_cv_path_GREP=$GREP
  4125. fi
  4126. fi
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4128. $as_echo "$ac_cv_path_GREP" >&6; }
  4129. GREP="$ac_cv_path_GREP"
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4131. $as_echo_n "checking for egrep... " >&6; }
  4132. if test "${ac_cv_path_EGREP+set}" = set; then :
  4133. $as_echo_n "(cached) " >&6
  4134. else
  4135. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4136. then ac_cv_path_EGREP="$GREP -E"
  4137. else
  4138. if test -z "$EGREP"; then
  4139. ac_path_EGREP_found=false
  4140. # Loop through the user's path and test for each of PROGNAME-LIST
  4141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4142. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4143. do
  4144. IFS=$as_save_IFS
  4145. test -z "$as_dir" && as_dir=.
  4146. for ac_prog in egrep; do
  4147. for ac_exec_ext in '' $ac_executable_extensions; do
  4148. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4149. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4150. # Check for GNU ac_path_EGREP and select it if it is found.
  4151. # Check for GNU $ac_path_EGREP
  4152. case `"$ac_path_EGREP" --version 2>&1` in
  4153. *GNU*)
  4154. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4155. *)
  4156. ac_count=0
  4157. $as_echo_n 0123456789 >"conftest.in"
  4158. while :
  4159. do
  4160. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4161. mv "conftest.tmp" "conftest.in"
  4162. cp "conftest.in" "conftest.nl"
  4163. $as_echo 'EGREP' >> "conftest.nl"
  4164. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4165. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4166. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4167. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4168. # Best one so far, save it but keep looking for a better one
  4169. ac_cv_path_EGREP="$ac_path_EGREP"
  4170. ac_path_EGREP_max=$ac_count
  4171. fi
  4172. # 10*(2^10) chars as input seems more than enough
  4173. test $ac_count -gt 10 && break
  4174. done
  4175. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4176. esac
  4177. $ac_path_EGREP_found && break 3
  4178. done
  4179. done
  4180. done
  4181. IFS=$as_save_IFS
  4182. if test -z "$ac_cv_path_EGREP"; then
  4183. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4184. fi
  4185. else
  4186. ac_cv_path_EGREP=$EGREP
  4187. fi
  4188. fi
  4189. fi
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4191. $as_echo "$ac_cv_path_EGREP" >&6; }
  4192. EGREP="$ac_cv_path_EGREP"
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4194. $as_echo_n "checking for ANSI C header files... " >&6; }
  4195. if test "${ac_cv_header_stdc+set}" = set; then :
  4196. $as_echo_n "(cached) " >&6
  4197. else
  4198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4199. /* end confdefs.h. */
  4200. #include <stdlib.h>
  4201. #include <stdarg.h>
  4202. #include <string.h>
  4203. #include <float.h>
  4204. int
  4205. main ()
  4206. {
  4207. ;
  4208. return 0;
  4209. }
  4210. _ACEOF
  4211. if ac_fn_c_try_compile "$LINENO"; then :
  4212. ac_cv_header_stdc=yes
  4213. else
  4214. ac_cv_header_stdc=no
  4215. fi
  4216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4217. if test $ac_cv_header_stdc = yes; then
  4218. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4220. /* end confdefs.h. */
  4221. #include <string.h>
  4222. _ACEOF
  4223. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4224. $EGREP "memchr" >/dev/null 2>&1; then :
  4225. else
  4226. ac_cv_header_stdc=no
  4227. fi
  4228. rm -f conftest*
  4229. fi
  4230. if test $ac_cv_header_stdc = yes; then
  4231. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4233. /* end confdefs.h. */
  4234. #include <stdlib.h>
  4235. _ACEOF
  4236. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4237. $EGREP "free" >/dev/null 2>&1; then :
  4238. else
  4239. ac_cv_header_stdc=no
  4240. fi
  4241. rm -f conftest*
  4242. fi
  4243. if test $ac_cv_header_stdc = yes; then
  4244. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4245. if test "$cross_compiling" = yes; then :
  4246. :
  4247. else
  4248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4249. /* end confdefs.h. */
  4250. #include <ctype.h>
  4251. #include <stdlib.h>
  4252. #if ((' ' & 0x0FF) == 0x020)
  4253. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4254. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4255. #else
  4256. # define ISLOWER(c) \
  4257. (('a' <= (c) && (c) <= 'i') \
  4258. || ('j' <= (c) && (c) <= 'r') \
  4259. || ('s' <= (c) && (c) <= 'z'))
  4260. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4261. #endif
  4262. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4263. int
  4264. main ()
  4265. {
  4266. int i;
  4267. for (i = 0; i < 256; i++)
  4268. if (XOR (islower (i), ISLOWER (i))
  4269. || toupper (i) != TOUPPER (i))
  4270. return 2;
  4271. return 0;
  4272. }
  4273. _ACEOF
  4274. if ac_fn_c_try_run "$LINENO"; then :
  4275. else
  4276. ac_cv_header_stdc=no
  4277. fi
  4278. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4279. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4280. fi
  4281. fi
  4282. fi
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4284. $as_echo "$ac_cv_header_stdc" >&6; }
  4285. if test $ac_cv_header_stdc = yes; then
  4286. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4287. fi
  4288. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4289. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4290. inttypes.h stdint.h unistd.h
  4291. do :
  4292. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4293. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4294. "
  4295. eval as_val=\$$as_ac_Header
  4296. if test "x$as_val" = x""yes; then :
  4297. cat >>confdefs.h <<_ACEOF
  4298. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4299. _ACEOF
  4300. fi
  4301. done
  4302. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4303. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4304. MINIX=yes
  4305. else
  4306. MINIX=
  4307. fi
  4308. if test "$MINIX" = yes; then
  4309. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4310. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4311. $as_echo "#define _MINIX 1" >>confdefs.h
  4312. fi
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4314. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4315. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4316. $as_echo_n "(cached) " >&6
  4317. else
  4318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4319. /* end confdefs.h. */
  4320. # define __EXTENSIONS__ 1
  4321. $ac_includes_default
  4322. int
  4323. main ()
  4324. {
  4325. ;
  4326. return 0;
  4327. }
  4328. _ACEOF
  4329. if ac_fn_c_try_compile "$LINENO"; then :
  4330. ac_cv_safe_to_define___extensions__=yes
  4331. else
  4332. ac_cv_safe_to_define___extensions__=no
  4333. fi
  4334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4335. fi
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4337. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4338. test $ac_cv_safe_to_define___extensions__ = yes &&
  4339. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4340. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4341. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4342. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4343. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4344. test "$program_prefix" != NONE &&
  4345. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4346. # Use a double $ so make ignores it.
  4347. test "$program_suffix" != NONE &&
  4348. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4349. # Double any \ or $.
  4350. # By default was `s,x,x', remove it if useless.
  4351. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4352. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4353. # Find a good install program. We prefer a C program (faster),
  4354. # so one script is as good as another. But avoid the broken or
  4355. # incompatible versions:
  4356. # SysV /etc/install, /usr/sbin/install
  4357. # SunOS /usr/etc/install
  4358. # IRIX /sbin/install
  4359. # AIX /bin/install
  4360. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4361. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4362. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4363. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4364. # OS/2's system install, which has a completely different semantic
  4365. # ./install, which can be erroneously created by make from ./install.sh.
  4366. # Reject install programs that cannot install multiple files.
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4368. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4369. if test -z "$INSTALL"; then
  4370. if test "${ac_cv_path_install+set}" = set; then :
  4371. $as_echo_n "(cached) " >&6
  4372. else
  4373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4374. for as_dir in $PATH
  4375. do
  4376. IFS=$as_save_IFS
  4377. test -z "$as_dir" && as_dir=.
  4378. # Account for people who put trailing slashes in PATH elements.
  4379. case $as_dir/ in #((
  4380. ./ | .// | /[cC]/* | \
  4381. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4382. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4383. /usr/ucb/* ) ;;
  4384. *)
  4385. # OSF1 and SCO ODT 3.0 have their own names for install.
  4386. # Don't use installbsd from OSF since it installs stuff as root
  4387. # by default.
  4388. for ac_prog in ginstall scoinst install; do
  4389. for ac_exec_ext in '' $ac_executable_extensions; do
  4390. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4391. if test $ac_prog = install &&
  4392. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4393. # AIX install. It has an incompatible calling convention.
  4394. :
  4395. elif test $ac_prog = install &&
  4396. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4397. # program-specific install script used by HP pwplus--don't use.
  4398. :
  4399. else
  4400. rm -rf conftest.one conftest.two conftest.dir
  4401. echo one > conftest.one
  4402. echo two > conftest.two
  4403. mkdir conftest.dir
  4404. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4405. test -s conftest.one && test -s conftest.two &&
  4406. test -s conftest.dir/conftest.one &&
  4407. test -s conftest.dir/conftest.two
  4408. then
  4409. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4410. break 3
  4411. fi
  4412. fi
  4413. fi
  4414. done
  4415. done
  4416. ;;
  4417. esac
  4418. done
  4419. IFS=$as_save_IFS
  4420. rm -rf conftest.one conftest.two conftest.dir
  4421. fi
  4422. if test "${ac_cv_path_install+set}" = set; then
  4423. INSTALL=$ac_cv_path_install
  4424. else
  4425. # As a last resort, use the slow shell script. Don't cache a
  4426. # value for INSTALL within a source directory, because that will
  4427. # break other packages using the cache if that directory is
  4428. # removed, or if the value is a relative name.
  4429. INSTALL=$ac_install_sh
  4430. fi
  4431. fi
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4433. $as_echo "$INSTALL" >&6; }
  4434. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4435. # It thinks the first close brace ends the variable substitution.
  4436. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4437. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4438. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4439. rm -rf .tst 2>/dev/null
  4440. mkdir .tst 2>/dev/null
  4441. if test -d .tst; then
  4442. am__leading_dot=.
  4443. else
  4444. am__leading_dot=_
  4445. fi
  4446. rmdir .tst 2>/dev/null
  4447. DEPDIR="${am__leading_dot}deps"
  4448. case `pwd` in
  4449. *\ * | *\ *)
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4451. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4452. esac
  4453. macro_version='2.2.7a'
  4454. macro_revision='1.3134'
  4455. ltmain="$ac_aux_dir/ltmain.sh"
  4456. # Backslashify metacharacters that are still active within
  4457. # double-quoted strings.
  4458. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4459. # Same as above, but do not quote variable references.
  4460. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4461. # Sed substitution to delay expansion of an escaped shell variable in a
  4462. # double_quote_subst'ed string.
  4463. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4464. # Sed substitution to delay expansion of an escaped single quote.
  4465. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4466. # Sed substitution to avoid accidental globbing in evaled expressions
  4467. no_glob_subst='s/\*/\\\*/g'
  4468. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4469. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4470. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4472. $as_echo_n "checking how to print strings... " >&6; }
  4473. # Test print first, because it will be a builtin if present.
  4474. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4475. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4476. ECHO='print -r --'
  4477. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4478. ECHO='printf %s\n'
  4479. else
  4480. # Use this function as a fallback that always works.
  4481. func_fallback_echo ()
  4482. {
  4483. eval 'cat <<_LTECHO_EOF
  4484. $1
  4485. _LTECHO_EOF'
  4486. }
  4487. ECHO='func_fallback_echo'
  4488. fi
  4489. # func_echo_all arg...
  4490. # Invoke $ECHO with all args, space-separated.
  4491. func_echo_all ()
  4492. {
  4493. $ECHO ""
  4494. }
  4495. case "$ECHO" in
  4496. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4497. $as_echo "printf" >&6; } ;;
  4498. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4499. $as_echo "print -r" >&6; } ;;
  4500. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4501. $as_echo "cat" >&6; } ;;
  4502. esac
  4503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4504. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4505. if test "${ac_cv_path_SED+set}" = set; then :
  4506. $as_echo_n "(cached) " >&6
  4507. else
  4508. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4509. for ac_i in 1 2 3 4 5 6 7; do
  4510. ac_script="$ac_script$as_nl$ac_script"
  4511. done
  4512. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4513. { ac_script=; unset ac_script;}
  4514. if test -z "$SED"; then
  4515. ac_path_SED_found=false
  4516. # Loop through the user's path and test for each of PROGNAME-LIST
  4517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4518. for as_dir in $PATH
  4519. do
  4520. IFS=$as_save_IFS
  4521. test -z "$as_dir" && as_dir=.
  4522. for ac_prog in sed gsed; do
  4523. for ac_exec_ext in '' $ac_executable_extensions; do
  4524. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4525. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4526. # Check for GNU ac_path_SED and select it if it is found.
  4527. # Check for GNU $ac_path_SED
  4528. case `"$ac_path_SED" --version 2>&1` in
  4529. *GNU*)
  4530. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4531. *)
  4532. ac_count=0
  4533. $as_echo_n 0123456789 >"conftest.in"
  4534. while :
  4535. do
  4536. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4537. mv "conftest.tmp" "conftest.in"
  4538. cp "conftest.in" "conftest.nl"
  4539. $as_echo '' >> "conftest.nl"
  4540. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4541. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4542. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4543. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4544. # Best one so far, save it but keep looking for a better one
  4545. ac_cv_path_SED="$ac_path_SED"
  4546. ac_path_SED_max=$ac_count
  4547. fi
  4548. # 10*(2^10) chars as input seems more than enough
  4549. test $ac_count -gt 10 && break
  4550. done
  4551. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4552. esac
  4553. $ac_path_SED_found && break 3
  4554. done
  4555. done
  4556. done
  4557. IFS=$as_save_IFS
  4558. if test -z "$ac_cv_path_SED"; then
  4559. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4560. fi
  4561. else
  4562. ac_cv_path_SED=$SED
  4563. fi
  4564. fi
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4566. $as_echo "$ac_cv_path_SED" >&6; }
  4567. SED="$ac_cv_path_SED"
  4568. rm -f conftest.sed
  4569. test -z "$SED" && SED=sed
  4570. Xsed="$SED -e 1s/^X//"
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4572. $as_echo_n "checking for fgrep... " >&6; }
  4573. if test "${ac_cv_path_FGREP+set}" = set; then :
  4574. $as_echo_n "(cached) " >&6
  4575. else
  4576. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4577. then ac_cv_path_FGREP="$GREP -F"
  4578. else
  4579. if test -z "$FGREP"; then
  4580. ac_path_FGREP_found=false
  4581. # Loop through the user's path and test for each of PROGNAME-LIST
  4582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4583. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4584. do
  4585. IFS=$as_save_IFS
  4586. test -z "$as_dir" && as_dir=.
  4587. for ac_prog in fgrep; do
  4588. for ac_exec_ext in '' $ac_executable_extensions; do
  4589. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4590. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4591. # Check for GNU ac_path_FGREP and select it if it is found.
  4592. # Check for GNU $ac_path_FGREP
  4593. case `"$ac_path_FGREP" --version 2>&1` in
  4594. *GNU*)
  4595. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4596. *)
  4597. ac_count=0
  4598. $as_echo_n 0123456789 >"conftest.in"
  4599. while :
  4600. do
  4601. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4602. mv "conftest.tmp" "conftest.in"
  4603. cp "conftest.in" "conftest.nl"
  4604. $as_echo 'FGREP' >> "conftest.nl"
  4605. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4606. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4607. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4608. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4609. # Best one so far, save it but keep looking for a better one
  4610. ac_cv_path_FGREP="$ac_path_FGREP"
  4611. ac_path_FGREP_max=$ac_count
  4612. fi
  4613. # 10*(2^10) chars as input seems more than enough
  4614. test $ac_count -gt 10 && break
  4615. done
  4616. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4617. esac
  4618. $ac_path_FGREP_found && break 3
  4619. done
  4620. done
  4621. done
  4622. IFS=$as_save_IFS
  4623. if test -z "$ac_cv_path_FGREP"; then
  4624. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4625. fi
  4626. else
  4627. ac_cv_path_FGREP=$FGREP
  4628. fi
  4629. fi
  4630. fi
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4632. $as_echo "$ac_cv_path_FGREP" >&6; }
  4633. FGREP="$ac_cv_path_FGREP"
  4634. test -z "$GREP" && GREP=grep
  4635. # Check whether --with-gnu-ld was given.
  4636. if test "${with_gnu_ld+set}" = set; then :
  4637. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4638. else
  4639. with_gnu_ld=no
  4640. fi
  4641. ac_prog=ld
  4642. if test "$GCC" = yes; then
  4643. # Check if gcc -print-prog-name=ld gives a path.
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4645. $as_echo_n "checking for ld used by $CC... " >&6; }
  4646. case $host in
  4647. *-*-mingw*)
  4648. # gcc leaves a trailing carriage return which upsets mingw
  4649. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4650. *)
  4651. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4652. esac
  4653. case $ac_prog in
  4654. # Accept absolute paths.
  4655. [\\/]* | ?:[\\/]*)
  4656. re_direlt='/[^/][^/]*/\.\./'
  4657. # Canonicalize the pathname of ld
  4658. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4659. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4660. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4661. done
  4662. test -z "$LD" && LD="$ac_prog"
  4663. ;;
  4664. "")
  4665. # If it fails, then pretend we aren't using GCC.
  4666. ac_prog=ld
  4667. ;;
  4668. *)
  4669. # If it is relative, then search for the first ld in PATH.
  4670. with_gnu_ld=unknown
  4671. ;;
  4672. esac
  4673. elif test "$with_gnu_ld" = yes; then
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4675. $as_echo_n "checking for GNU ld... " >&6; }
  4676. else
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4678. $as_echo_n "checking for non-GNU ld... " >&6; }
  4679. fi
  4680. if test "${lt_cv_path_LD+set}" = set; then :
  4681. $as_echo_n "(cached) " >&6
  4682. else
  4683. if test -z "$LD"; then
  4684. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4685. for ac_dir in $PATH; do
  4686. IFS="$lt_save_ifs"
  4687. test -z "$ac_dir" && ac_dir=.
  4688. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4689. lt_cv_path_LD="$ac_dir/$ac_prog"
  4690. # Check to see if the program is GNU ld. I'd rather use --version,
  4691. # but apparently some variants of GNU ld only accept -v.
  4692. # Break only if it was the GNU/non-GNU ld that we prefer.
  4693. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4694. *GNU* | *'with BFD'*)
  4695. test "$with_gnu_ld" != no && break
  4696. ;;
  4697. *)
  4698. test "$with_gnu_ld" != yes && break
  4699. ;;
  4700. esac
  4701. fi
  4702. done
  4703. IFS="$lt_save_ifs"
  4704. else
  4705. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4706. fi
  4707. fi
  4708. LD="$lt_cv_path_LD"
  4709. if test -n "$LD"; then
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4711. $as_echo "$LD" >&6; }
  4712. else
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4714. $as_echo "no" >&6; }
  4715. fi
  4716. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4718. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4719. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4720. $as_echo_n "(cached) " >&6
  4721. else
  4722. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4723. case `$LD -v 2>&1 </dev/null` in
  4724. *GNU* | *'with BFD'*)
  4725. lt_cv_prog_gnu_ld=yes
  4726. ;;
  4727. *)
  4728. lt_cv_prog_gnu_ld=no
  4729. ;;
  4730. esac
  4731. fi
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4733. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4734. with_gnu_ld=$lt_cv_prog_gnu_ld
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4736. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4737. if test "${lt_cv_path_NM+set}" = set; then :
  4738. $as_echo_n "(cached) " >&6
  4739. else
  4740. if test -n "$NM"; then
  4741. # Let the user override the test.
  4742. lt_cv_path_NM="$NM"
  4743. else
  4744. lt_nm_to_check="${ac_tool_prefix}nm"
  4745. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4746. lt_nm_to_check="$lt_nm_to_check nm"
  4747. fi
  4748. for lt_tmp_nm in $lt_nm_to_check; do
  4749. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4750. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4751. IFS="$lt_save_ifs"
  4752. test -z "$ac_dir" && ac_dir=.
  4753. tmp_nm="$ac_dir/$lt_tmp_nm"
  4754. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4755. # Check to see if the nm accepts a BSD-compat flag.
  4756. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4757. # nm: unknown option "B" ignored
  4758. # Tru64's nm complains that /dev/null is an invalid object file
  4759. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4760. */dev/null* | *'Invalid file or object type'*)
  4761. lt_cv_path_NM="$tmp_nm -B"
  4762. break
  4763. ;;
  4764. *)
  4765. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4766. */dev/null*)
  4767. lt_cv_path_NM="$tmp_nm -p"
  4768. break
  4769. ;;
  4770. *)
  4771. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4772. continue # so that we can try to find one that supports BSD flags
  4773. ;;
  4774. esac
  4775. ;;
  4776. esac
  4777. fi
  4778. done
  4779. IFS="$lt_save_ifs"
  4780. done
  4781. : ${lt_cv_path_NM=no}
  4782. fi
  4783. fi
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4785. $as_echo "$lt_cv_path_NM" >&6; }
  4786. if test "$lt_cv_path_NM" != "no"; then
  4787. NM="$lt_cv_path_NM"
  4788. else
  4789. # Didn't find any BSD compatible name lister, look for dumpbin.
  4790. if test -n "$DUMPBIN"; then :
  4791. # Let the user override the test.
  4792. else
  4793. if test -n "$ac_tool_prefix"; then
  4794. for ac_prog in dumpbin "link -dump"
  4795. do
  4796. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4797. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4799. $as_echo_n "checking for $ac_word... " >&6; }
  4800. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4801. $as_echo_n "(cached) " >&6
  4802. else
  4803. if test -n "$DUMPBIN"; then
  4804. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4805. else
  4806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4807. for as_dir in $PATH
  4808. do
  4809. IFS=$as_save_IFS
  4810. test -z "$as_dir" && as_dir=.
  4811. for ac_exec_ext in '' $ac_executable_extensions; do
  4812. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4813. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4815. break 2
  4816. fi
  4817. done
  4818. done
  4819. IFS=$as_save_IFS
  4820. fi
  4821. fi
  4822. DUMPBIN=$ac_cv_prog_DUMPBIN
  4823. if test -n "$DUMPBIN"; then
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4825. $as_echo "$DUMPBIN" >&6; }
  4826. else
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4828. $as_echo "no" >&6; }
  4829. fi
  4830. test -n "$DUMPBIN" && break
  4831. done
  4832. fi
  4833. if test -z "$DUMPBIN"; then
  4834. ac_ct_DUMPBIN=$DUMPBIN
  4835. for ac_prog in dumpbin "link -dump"
  4836. do
  4837. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4838. set dummy $ac_prog; ac_word=$2
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4840. $as_echo_n "checking for $ac_word... " >&6; }
  4841. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4842. $as_echo_n "(cached) " >&6
  4843. else
  4844. if test -n "$ac_ct_DUMPBIN"; then
  4845. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4846. else
  4847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4848. for as_dir in $PATH
  4849. do
  4850. IFS=$as_save_IFS
  4851. test -z "$as_dir" && as_dir=.
  4852. for ac_exec_ext in '' $ac_executable_extensions; do
  4853. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4854. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4855. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4856. break 2
  4857. fi
  4858. done
  4859. done
  4860. IFS=$as_save_IFS
  4861. fi
  4862. fi
  4863. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4864. if test -n "$ac_ct_DUMPBIN"; then
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4866. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4867. else
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4869. $as_echo "no" >&6; }
  4870. fi
  4871. test -n "$ac_ct_DUMPBIN" && break
  4872. done
  4873. if test "x$ac_ct_DUMPBIN" = x; then
  4874. DUMPBIN=":"
  4875. else
  4876. case $cross_compiling:$ac_tool_warned in
  4877. yes:)
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4879. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4880. ac_tool_warned=yes ;;
  4881. esac
  4882. DUMPBIN=$ac_ct_DUMPBIN
  4883. fi
  4884. fi
  4885. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4886. *COFF*)
  4887. DUMPBIN="$DUMPBIN -symbols"
  4888. ;;
  4889. *)
  4890. DUMPBIN=:
  4891. ;;
  4892. esac
  4893. fi
  4894. if test "$DUMPBIN" != ":"; then
  4895. NM="$DUMPBIN"
  4896. fi
  4897. fi
  4898. test -z "$NM" && NM=nm
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4900. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4901. if test "${lt_cv_nm_interface+set}" = set; then :
  4902. $as_echo_n "(cached) " >&6
  4903. else
  4904. lt_cv_nm_interface="BSD nm"
  4905. echo "int some_variable = 0;" > conftest.$ac_ext
  4906. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4907. (eval "$ac_compile" 2>conftest.err)
  4908. cat conftest.err >&5
  4909. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4910. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4911. cat conftest.err >&5
  4912. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4913. cat conftest.out >&5
  4914. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4915. lt_cv_nm_interface="MS dumpbin"
  4916. fi
  4917. rm -f conftest*
  4918. fi
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4920. $as_echo "$lt_cv_nm_interface" >&6; }
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4922. $as_echo_n "checking whether ln -s works... " >&6; }
  4923. LN_S=$as_ln_s
  4924. if test "$LN_S" = "ln -s"; then
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4926. $as_echo "yes" >&6; }
  4927. else
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4929. $as_echo "no, using $LN_S" >&6; }
  4930. fi
  4931. # find the maximum length of command line arguments
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4933. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4934. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4935. $as_echo_n "(cached) " >&6
  4936. else
  4937. i=0
  4938. teststring="ABCD"
  4939. case $build_os in
  4940. msdosdjgpp*)
  4941. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4942. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4943. # during glob expansion). Even if it were fixed, the result of this
  4944. # check would be larger than it should be.
  4945. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4946. ;;
  4947. gnu*)
  4948. # Under GNU Hurd, this test is not required because there is
  4949. # no limit to the length of command line arguments.
  4950. # Libtool will interpret -1 as no limit whatsoever
  4951. lt_cv_sys_max_cmd_len=-1;
  4952. ;;
  4953. cygwin* | mingw* | cegcc*)
  4954. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4955. # about 5 minutes as the teststring grows exponentially.
  4956. # Worse, since 9x/ME are not pre-emptively multitasking,
  4957. # you end up with a "frozen" computer, even though with patience
  4958. # the test eventually succeeds (with a max line length of 256k).
  4959. # Instead, let's just punt: use the minimum linelength reported by
  4960. # all of the supported platforms: 8192 (on NT/2K/XP).
  4961. lt_cv_sys_max_cmd_len=8192;
  4962. ;;
  4963. mint*)
  4964. # On MiNT this can take a long time and run out of memory.
  4965. lt_cv_sys_max_cmd_len=8192;
  4966. ;;
  4967. amigaos*)
  4968. # On AmigaOS with pdksh, this test takes hours, literally.
  4969. # So we just punt and use a minimum line length of 8192.
  4970. lt_cv_sys_max_cmd_len=8192;
  4971. ;;
  4972. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4973. # This has been around since 386BSD, at least. Likely further.
  4974. if test -x /sbin/sysctl; then
  4975. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4976. elif test -x /usr/sbin/sysctl; then
  4977. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4978. else
  4979. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4980. fi
  4981. # And add a safety zone
  4982. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4983. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4984. ;;
  4985. interix*)
  4986. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4987. lt_cv_sys_max_cmd_len=196608
  4988. ;;
  4989. osf*)
  4990. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4991. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4992. # nice to cause kernel panics so lets avoid the loop below.
  4993. # First set a reasonable default.
  4994. lt_cv_sys_max_cmd_len=16384
  4995. #
  4996. if test -x /sbin/sysconfig; then
  4997. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4998. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4999. esac
  5000. fi
  5001. ;;
  5002. sco3.2v5*)
  5003. lt_cv_sys_max_cmd_len=102400
  5004. ;;
  5005. sysv5* | sco5v6* | sysv4.2uw2*)
  5006. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5007. if test -n "$kargmax"; then
  5008. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5009. else
  5010. lt_cv_sys_max_cmd_len=32768
  5011. fi
  5012. ;;
  5013. *)
  5014. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5015. if test -n "$lt_cv_sys_max_cmd_len"; then
  5016. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5017. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5018. else
  5019. # Make teststring a little bigger before we do anything with it.
  5020. # a 1K string should be a reasonable start.
  5021. for i in 1 2 3 4 5 6 7 8 ; do
  5022. teststring=$teststring$teststring
  5023. done
  5024. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5025. # If test is not a shell built-in, we'll probably end up computing a
  5026. # maximum length that is only half of the actual maximum length, but
  5027. # we can't tell.
  5028. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5029. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5030. test $i != 17 # 1/2 MB should be enough
  5031. do
  5032. i=`expr $i + 1`
  5033. teststring=$teststring$teststring
  5034. done
  5035. # Only check the string length outside the loop.
  5036. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5037. teststring=
  5038. # Add a significant safety factor because C++ compilers can tack on
  5039. # massive amounts of additional arguments before passing them to the
  5040. # linker. It appears as though 1/2 is a usable value.
  5041. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5042. fi
  5043. ;;
  5044. esac
  5045. fi
  5046. if test -n $lt_cv_sys_max_cmd_len ; then
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5048. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5049. else
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5051. $as_echo "none" >&6; }
  5052. fi
  5053. max_cmd_len=$lt_cv_sys_max_cmd_len
  5054. : ${CP="cp -f"}
  5055. : ${MV="mv -f"}
  5056. : ${RM="rm -f"}
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5058. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5059. # Try some XSI features
  5060. xsi_shell=no
  5061. ( _lt_dummy="a/b/c"
  5062. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5063. = c,a/b,, \
  5064. && eval 'test $(( 1 + 1 )) -eq 2 \
  5065. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5066. && xsi_shell=yes
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5068. $as_echo "$xsi_shell" >&6; }
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5070. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5071. lt_shell_append=no
  5072. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5073. >/dev/null 2>&1 \
  5074. && lt_shell_append=yes
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5076. $as_echo "$lt_shell_append" >&6; }
  5077. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5078. lt_unset=unset
  5079. else
  5080. lt_unset=false
  5081. fi
  5082. # test EBCDIC or ASCII
  5083. case `echo X|tr X '\101'` in
  5084. A) # ASCII based system
  5085. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5086. lt_SP2NL='tr \040 \012'
  5087. lt_NL2SP='tr \015\012 \040\040'
  5088. ;;
  5089. *) # EBCDIC based system
  5090. lt_SP2NL='tr \100 \n'
  5091. lt_NL2SP='tr \r\n \100\100'
  5092. ;;
  5093. esac
  5094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5095. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5096. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5097. $as_echo_n "(cached) " >&6
  5098. else
  5099. lt_cv_ld_reload_flag='-r'
  5100. fi
  5101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5102. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5103. reload_flag=$lt_cv_ld_reload_flag
  5104. case $reload_flag in
  5105. "" | " "*) ;;
  5106. *) reload_flag=" $reload_flag" ;;
  5107. esac
  5108. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5109. case $host_os in
  5110. darwin*)
  5111. if test "$GCC" = yes; then
  5112. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5113. else
  5114. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5115. fi
  5116. ;;
  5117. esac
  5118. if test -n "$ac_tool_prefix"; then
  5119. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5120. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5122. $as_echo_n "checking for $ac_word... " >&6; }
  5123. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5124. $as_echo_n "(cached) " >&6
  5125. else
  5126. if test -n "$OBJDUMP"; then
  5127. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5128. else
  5129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5130. for as_dir in $PATH
  5131. do
  5132. IFS=$as_save_IFS
  5133. test -z "$as_dir" && as_dir=.
  5134. for ac_exec_ext in '' $ac_executable_extensions; do
  5135. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5136. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5138. break 2
  5139. fi
  5140. done
  5141. done
  5142. IFS=$as_save_IFS
  5143. fi
  5144. fi
  5145. OBJDUMP=$ac_cv_prog_OBJDUMP
  5146. if test -n "$OBJDUMP"; then
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5148. $as_echo "$OBJDUMP" >&6; }
  5149. else
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5151. $as_echo "no" >&6; }
  5152. fi
  5153. fi
  5154. if test -z "$ac_cv_prog_OBJDUMP"; then
  5155. ac_ct_OBJDUMP=$OBJDUMP
  5156. # Extract the first word of "objdump", so it can be a program name with args.
  5157. set dummy objdump; ac_word=$2
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5159. $as_echo_n "checking for $ac_word... " >&6; }
  5160. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5161. $as_echo_n "(cached) " >&6
  5162. else
  5163. if test -n "$ac_ct_OBJDUMP"; then
  5164. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5165. else
  5166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5167. for as_dir in $PATH
  5168. do
  5169. IFS=$as_save_IFS
  5170. test -z "$as_dir" && as_dir=.
  5171. for ac_exec_ext in '' $ac_executable_extensions; do
  5172. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5173. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5175. break 2
  5176. fi
  5177. done
  5178. done
  5179. IFS=$as_save_IFS
  5180. fi
  5181. fi
  5182. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5183. if test -n "$ac_ct_OBJDUMP"; then
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5185. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5186. else
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5188. $as_echo "no" >&6; }
  5189. fi
  5190. if test "x$ac_ct_OBJDUMP" = x; then
  5191. OBJDUMP="false"
  5192. else
  5193. case $cross_compiling:$ac_tool_warned in
  5194. yes:)
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5196. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5197. ac_tool_warned=yes ;;
  5198. esac
  5199. OBJDUMP=$ac_ct_OBJDUMP
  5200. fi
  5201. else
  5202. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5203. fi
  5204. test -z "$OBJDUMP" && OBJDUMP=objdump
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5206. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5207. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5208. $as_echo_n "(cached) " >&6
  5209. else
  5210. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5211. lt_cv_file_magic_test_file=
  5212. lt_cv_deplibs_check_method='unknown'
  5213. # Need to set the preceding variable on all platforms that support
  5214. # interlibrary dependencies.
  5215. # 'none' -- dependencies not supported.
  5216. # `unknown' -- same as none, but documents that we really don't know.
  5217. # 'pass_all' -- all dependencies passed with no checks.
  5218. # 'test_compile' -- check by making test program.
  5219. # 'file_magic [[regex]]' -- check by looking for files in library path
  5220. # which responds to the $file_magic_cmd with a given extended regex.
  5221. # If you have `file' or equivalent on your system and you're not sure
  5222. # whether `pass_all' will *always* work, you probably want this one.
  5223. case $host_os in
  5224. aix[4-9]*)
  5225. lt_cv_deplibs_check_method=pass_all
  5226. ;;
  5227. beos*)
  5228. lt_cv_deplibs_check_method=pass_all
  5229. ;;
  5230. bsdi[45]*)
  5231. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5232. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5233. lt_cv_file_magic_test_file=/shlib/libc.so
  5234. ;;
  5235. cygwin*)
  5236. # func_win32_libid is a shell function defined in ltmain.sh
  5237. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5238. lt_cv_file_magic_cmd='func_win32_libid'
  5239. ;;
  5240. mingw* | pw32*)
  5241. # Base MSYS/MinGW do not provide the 'file' command needed by
  5242. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5243. # unless we find 'file', for example because we are cross-compiling.
  5244. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5245. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5246. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5247. lt_cv_file_magic_cmd='func_win32_libid'
  5248. else
  5249. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5250. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5251. fi
  5252. ;;
  5253. cegcc*)
  5254. # use the weaker test based on 'objdump'. See mingw*.
  5255. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5256. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5257. ;;
  5258. darwin* | rhapsody*)
  5259. lt_cv_deplibs_check_method=pass_all
  5260. ;;
  5261. freebsd* | dragonfly*)
  5262. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5263. case $host_cpu in
  5264. i*86 )
  5265. # Not sure whether the presence of OpenBSD here was a mistake.
  5266. # Let's accept both of them until this is cleared up.
  5267. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5268. lt_cv_file_magic_cmd=/usr/bin/file
  5269. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5270. ;;
  5271. esac
  5272. else
  5273. lt_cv_deplibs_check_method=pass_all
  5274. fi
  5275. ;;
  5276. gnu*)
  5277. lt_cv_deplibs_check_method=pass_all
  5278. ;;
  5279. haiku*)
  5280. lt_cv_deplibs_check_method=pass_all
  5281. ;;
  5282. hpux10.20* | hpux11*)
  5283. lt_cv_file_magic_cmd=/usr/bin/file
  5284. case $host_cpu in
  5285. ia64*)
  5286. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5287. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5288. ;;
  5289. hppa*64*)
  5290. 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]'
  5291. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5292. ;;
  5293. *)
  5294. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5295. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5296. ;;
  5297. esac
  5298. ;;
  5299. interix[3-9]*)
  5300. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5301. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5302. ;;
  5303. irix5* | irix6* | nonstopux*)
  5304. case $LD in
  5305. *-32|*"-32 ") libmagic=32-bit;;
  5306. *-n32|*"-n32 ") libmagic=N32;;
  5307. *-64|*"-64 ") libmagic=64-bit;;
  5308. *) libmagic=never-match;;
  5309. esac
  5310. lt_cv_deplibs_check_method=pass_all
  5311. ;;
  5312. # This must be Linux ELF.
  5313. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5314. lt_cv_deplibs_check_method=pass_all
  5315. ;;
  5316. netbsd*)
  5317. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5318. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5319. else
  5320. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5321. fi
  5322. ;;
  5323. newos6*)
  5324. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5325. lt_cv_file_magic_cmd=/usr/bin/file
  5326. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5327. ;;
  5328. *nto* | *qnx*)
  5329. lt_cv_deplibs_check_method=pass_all
  5330. ;;
  5331. openbsd*)
  5332. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5333. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5334. else
  5335. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5336. fi
  5337. ;;
  5338. osf3* | osf4* | osf5*)
  5339. lt_cv_deplibs_check_method=pass_all
  5340. ;;
  5341. rdos*)
  5342. lt_cv_deplibs_check_method=pass_all
  5343. ;;
  5344. solaris*)
  5345. lt_cv_deplibs_check_method=pass_all
  5346. ;;
  5347. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5348. lt_cv_deplibs_check_method=pass_all
  5349. ;;
  5350. sysv4 | sysv4.3*)
  5351. case $host_vendor in
  5352. motorola)
  5353. 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]'
  5354. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5355. ;;
  5356. ncr)
  5357. lt_cv_deplibs_check_method=pass_all
  5358. ;;
  5359. sequent)
  5360. lt_cv_file_magic_cmd='/bin/file'
  5361. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5362. ;;
  5363. sni)
  5364. lt_cv_file_magic_cmd='/bin/file'
  5365. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5366. lt_cv_file_magic_test_file=/lib/libc.so
  5367. ;;
  5368. siemens)
  5369. lt_cv_deplibs_check_method=pass_all
  5370. ;;
  5371. pc)
  5372. lt_cv_deplibs_check_method=pass_all
  5373. ;;
  5374. esac
  5375. ;;
  5376. tpf*)
  5377. lt_cv_deplibs_check_method=pass_all
  5378. ;;
  5379. esac
  5380. fi
  5381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5382. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5383. file_magic_cmd=$lt_cv_file_magic_cmd
  5384. deplibs_check_method=$lt_cv_deplibs_check_method
  5385. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5386. if test -n "$ac_tool_prefix"; then
  5387. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5388. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5390. $as_echo_n "checking for $ac_word... " >&6; }
  5391. if test "${ac_cv_prog_AR+set}" = set; then :
  5392. $as_echo_n "(cached) " >&6
  5393. else
  5394. if test -n "$AR"; then
  5395. ac_cv_prog_AR="$AR" # Let the user override the test.
  5396. else
  5397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5398. for as_dir in $PATH
  5399. do
  5400. IFS=$as_save_IFS
  5401. test -z "$as_dir" && as_dir=.
  5402. for ac_exec_ext in '' $ac_executable_extensions; do
  5403. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5404. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5406. break 2
  5407. fi
  5408. done
  5409. done
  5410. IFS=$as_save_IFS
  5411. fi
  5412. fi
  5413. AR=$ac_cv_prog_AR
  5414. if test -n "$AR"; then
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5416. $as_echo "$AR" >&6; }
  5417. else
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5419. $as_echo "no" >&6; }
  5420. fi
  5421. fi
  5422. if test -z "$ac_cv_prog_AR"; then
  5423. ac_ct_AR=$AR
  5424. # Extract the first word of "ar", so it can be a program name with args.
  5425. set dummy ar; ac_word=$2
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5427. $as_echo_n "checking for $ac_word... " >&6; }
  5428. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5429. $as_echo_n "(cached) " >&6
  5430. else
  5431. if test -n "$ac_ct_AR"; then
  5432. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5433. else
  5434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5435. for as_dir in $PATH
  5436. do
  5437. IFS=$as_save_IFS
  5438. test -z "$as_dir" && as_dir=.
  5439. for ac_exec_ext in '' $ac_executable_extensions; do
  5440. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5441. ac_cv_prog_ac_ct_AR="ar"
  5442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5443. break 2
  5444. fi
  5445. done
  5446. done
  5447. IFS=$as_save_IFS
  5448. fi
  5449. fi
  5450. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5451. if test -n "$ac_ct_AR"; then
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5453. $as_echo "$ac_ct_AR" >&6; }
  5454. else
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5456. $as_echo "no" >&6; }
  5457. fi
  5458. if test "x$ac_ct_AR" = x; then
  5459. AR="false"
  5460. else
  5461. case $cross_compiling:$ac_tool_warned in
  5462. yes:)
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5464. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5465. ac_tool_warned=yes ;;
  5466. esac
  5467. AR=$ac_ct_AR
  5468. fi
  5469. else
  5470. AR="$ac_cv_prog_AR"
  5471. fi
  5472. test -z "$AR" && AR=ar
  5473. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5474. if test -n "$ac_tool_prefix"; then
  5475. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5476. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5478. $as_echo_n "checking for $ac_word... " >&6; }
  5479. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5480. $as_echo_n "(cached) " >&6
  5481. else
  5482. if test -n "$STRIP"; then
  5483. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5484. else
  5485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5486. for as_dir in $PATH
  5487. do
  5488. IFS=$as_save_IFS
  5489. test -z "$as_dir" && as_dir=.
  5490. for ac_exec_ext in '' $ac_executable_extensions; do
  5491. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5492. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5494. break 2
  5495. fi
  5496. done
  5497. done
  5498. IFS=$as_save_IFS
  5499. fi
  5500. fi
  5501. STRIP=$ac_cv_prog_STRIP
  5502. if test -n "$STRIP"; then
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5504. $as_echo "$STRIP" >&6; }
  5505. else
  5506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5507. $as_echo "no" >&6; }
  5508. fi
  5509. fi
  5510. if test -z "$ac_cv_prog_STRIP"; then
  5511. ac_ct_STRIP=$STRIP
  5512. # Extract the first word of "strip", so it can be a program name with args.
  5513. set dummy strip; ac_word=$2
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5515. $as_echo_n "checking for $ac_word... " >&6; }
  5516. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5517. $as_echo_n "(cached) " >&6
  5518. else
  5519. if test -n "$ac_ct_STRIP"; then
  5520. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5521. else
  5522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5523. for as_dir in $PATH
  5524. do
  5525. IFS=$as_save_IFS
  5526. test -z "$as_dir" && as_dir=.
  5527. for ac_exec_ext in '' $ac_executable_extensions; do
  5528. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5529. ac_cv_prog_ac_ct_STRIP="strip"
  5530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5531. break 2
  5532. fi
  5533. done
  5534. done
  5535. IFS=$as_save_IFS
  5536. fi
  5537. fi
  5538. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5539. if test -n "$ac_ct_STRIP"; then
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5541. $as_echo "$ac_ct_STRIP" >&6; }
  5542. else
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5544. $as_echo "no" >&6; }
  5545. fi
  5546. if test "x$ac_ct_STRIP" = x; then
  5547. STRIP=":"
  5548. else
  5549. case $cross_compiling:$ac_tool_warned in
  5550. yes:)
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5552. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5553. ac_tool_warned=yes ;;
  5554. esac
  5555. STRIP=$ac_ct_STRIP
  5556. fi
  5557. else
  5558. STRIP="$ac_cv_prog_STRIP"
  5559. fi
  5560. test -z "$STRIP" && STRIP=:
  5561. if test -n "$ac_tool_prefix"; then
  5562. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5563. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5565. $as_echo_n "checking for $ac_word... " >&6; }
  5566. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5567. $as_echo_n "(cached) " >&6
  5568. else
  5569. if test -n "$RANLIB"; then
  5570. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5571. else
  5572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5573. for as_dir in $PATH
  5574. do
  5575. IFS=$as_save_IFS
  5576. test -z "$as_dir" && as_dir=.
  5577. for ac_exec_ext in '' $ac_executable_extensions; do
  5578. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5579. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5580. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5581. break 2
  5582. fi
  5583. done
  5584. done
  5585. IFS=$as_save_IFS
  5586. fi
  5587. fi
  5588. RANLIB=$ac_cv_prog_RANLIB
  5589. if test -n "$RANLIB"; then
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5591. $as_echo "$RANLIB" >&6; }
  5592. else
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5594. $as_echo "no" >&6; }
  5595. fi
  5596. fi
  5597. if test -z "$ac_cv_prog_RANLIB"; then
  5598. ac_ct_RANLIB=$RANLIB
  5599. # Extract the first word of "ranlib", so it can be a program name with args.
  5600. set dummy ranlib; ac_word=$2
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5602. $as_echo_n "checking for $ac_word... " >&6; }
  5603. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5604. $as_echo_n "(cached) " >&6
  5605. else
  5606. if test -n "$ac_ct_RANLIB"; then
  5607. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5608. else
  5609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5610. for as_dir in $PATH
  5611. do
  5612. IFS=$as_save_IFS
  5613. test -z "$as_dir" && as_dir=.
  5614. for ac_exec_ext in '' $ac_executable_extensions; do
  5615. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5616. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5618. break 2
  5619. fi
  5620. done
  5621. done
  5622. IFS=$as_save_IFS
  5623. fi
  5624. fi
  5625. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5626. if test -n "$ac_ct_RANLIB"; then
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5628. $as_echo "$ac_ct_RANLIB" >&6; }
  5629. else
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5631. $as_echo "no" >&6; }
  5632. fi
  5633. if test "x$ac_ct_RANLIB" = x; then
  5634. RANLIB=":"
  5635. else
  5636. case $cross_compiling:$ac_tool_warned in
  5637. yes:)
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5639. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5640. ac_tool_warned=yes ;;
  5641. esac
  5642. RANLIB=$ac_ct_RANLIB
  5643. fi
  5644. else
  5645. RANLIB="$ac_cv_prog_RANLIB"
  5646. fi
  5647. test -z "$RANLIB" && RANLIB=:
  5648. # Determine commands to create old-style static archives.
  5649. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5650. old_postinstall_cmds='chmod 644 $oldlib'
  5651. old_postuninstall_cmds=
  5652. if test -n "$RANLIB"; then
  5653. case $host_os in
  5654. openbsd*)
  5655. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5656. ;;
  5657. *)
  5658. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5659. ;;
  5660. esac
  5661. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5662. fi
  5663. case $host_os in
  5664. darwin*)
  5665. lock_old_archive_extraction=yes ;;
  5666. *)
  5667. lock_old_archive_extraction=no ;;
  5668. esac
  5669. for ac_prog in gawk mawk nawk awk
  5670. do
  5671. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5672. set dummy $ac_prog; ac_word=$2
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5674. $as_echo_n "checking for $ac_word... " >&6; }
  5675. if test "${ac_cv_prog_AWK+set}" = set; then :
  5676. $as_echo_n "(cached) " >&6
  5677. else
  5678. if test -n "$AWK"; then
  5679. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5680. else
  5681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5682. for as_dir in $PATH
  5683. do
  5684. IFS=$as_save_IFS
  5685. test -z "$as_dir" && as_dir=.
  5686. for ac_exec_ext in '' $ac_executable_extensions; do
  5687. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5688. ac_cv_prog_AWK="$ac_prog"
  5689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5690. break 2
  5691. fi
  5692. done
  5693. done
  5694. IFS=$as_save_IFS
  5695. fi
  5696. fi
  5697. AWK=$ac_cv_prog_AWK
  5698. if test -n "$AWK"; then
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5700. $as_echo "$AWK" >&6; }
  5701. else
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5703. $as_echo "no" >&6; }
  5704. fi
  5705. test -n "$AWK" && break
  5706. done
  5707. # If no C compiler was specified, use CC.
  5708. LTCC=${LTCC-"$CC"}
  5709. # If no C compiler flags were specified, use CFLAGS.
  5710. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5711. # Allow CC to be a program name with arguments.
  5712. compiler=$CC
  5713. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5715. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5716. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5717. $as_echo_n "(cached) " >&6
  5718. else
  5719. # These are sane defaults that work on at least a few old systems.
  5720. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5721. # Character class describing NM global symbol codes.
  5722. symcode='[BCDEGRST]'
  5723. # Regexp to match symbols that can be accessed directly from C.
  5724. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5725. # Define system-specific variables.
  5726. case $host_os in
  5727. aix*)
  5728. symcode='[BCDT]'
  5729. ;;
  5730. cygwin* | mingw* | pw32* | cegcc*)
  5731. symcode='[ABCDGISTW]'
  5732. ;;
  5733. hpux*)
  5734. if test "$host_cpu" = ia64; then
  5735. symcode='[ABCDEGRST]'
  5736. fi
  5737. ;;
  5738. irix* | nonstopux*)
  5739. symcode='[BCDEGRST]'
  5740. ;;
  5741. osf*)
  5742. symcode='[BCDEGQRST]'
  5743. ;;
  5744. solaris*)
  5745. symcode='[BDRT]'
  5746. ;;
  5747. sco3.2v5*)
  5748. symcode='[DT]'
  5749. ;;
  5750. sysv4.2uw2*)
  5751. symcode='[DT]'
  5752. ;;
  5753. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5754. symcode='[ABDT]'
  5755. ;;
  5756. sysv4)
  5757. symcode='[DFNSTU]'
  5758. ;;
  5759. esac
  5760. # If we're using GNU nm, then use its standard symbol codes.
  5761. case `$NM -V 2>&1` in
  5762. *GNU* | *'with BFD'*)
  5763. symcode='[ABCDGIRSTW]' ;;
  5764. esac
  5765. # Transform an extracted symbol line into a proper C declaration.
  5766. # Some systems (esp. on ia64) link data and code symbols differently,
  5767. # so use this general approach.
  5768. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5769. # Transform an extracted symbol line into symbol name and symbol address
  5770. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5771. 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'"
  5772. # Handle CRLF in mingw tool chain
  5773. opt_cr=
  5774. case $build_os in
  5775. mingw*)
  5776. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5777. ;;
  5778. esac
  5779. # Try without a prefix underscore, then with it.
  5780. for ac_symprfx in "" "_"; do
  5781. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5782. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5783. # Write the raw and C identifiers.
  5784. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5785. # Fake it for dumpbin and say T for any non-static function
  5786. # and D for any global variable.
  5787. # Also find C++ and __fastcall symbols from MSVC++,
  5788. # which start with @ or ?.
  5789. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5790. " {last_section=section; section=\$ 3};"\
  5791. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5792. " \$ 0!~/External *\|/{next};"\
  5793. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5794. " {if(hide[section]) next};"\
  5795. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5796. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5797. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5798. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5799. " ' prfx=^$ac_symprfx"
  5800. else
  5801. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5802. fi
  5803. # Check to see that the pipe works correctly.
  5804. pipe_works=no
  5805. rm -f conftest*
  5806. cat > conftest.$ac_ext <<_LT_EOF
  5807. #ifdef __cplusplus
  5808. extern "C" {
  5809. #endif
  5810. char nm_test_var;
  5811. void nm_test_func(void);
  5812. void nm_test_func(void){}
  5813. #ifdef __cplusplus
  5814. }
  5815. #endif
  5816. int main(){nm_test_var='a';nm_test_func();return(0);}
  5817. _LT_EOF
  5818. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5819. (eval $ac_compile) 2>&5
  5820. ac_status=$?
  5821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5822. test $ac_status = 0; }; then
  5823. # Now try to grab the symbols.
  5824. nlist=conftest.nm
  5825. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5826. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5827. ac_status=$?
  5828. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5829. test $ac_status = 0; } && test -s "$nlist"; then
  5830. # Try sorting and uniquifying the output.
  5831. if sort "$nlist" | uniq > "$nlist"T; then
  5832. mv -f "$nlist"T "$nlist"
  5833. else
  5834. rm -f "$nlist"T
  5835. fi
  5836. # Make sure that we snagged all the symbols we need.
  5837. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5838. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5839. cat <<_LT_EOF > conftest.$ac_ext
  5840. #ifdef __cplusplus
  5841. extern "C" {
  5842. #endif
  5843. _LT_EOF
  5844. # Now generate the symbol file.
  5845. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5846. cat <<_LT_EOF >> conftest.$ac_ext
  5847. /* The mapping between symbol names and symbols. */
  5848. const struct {
  5849. const char *name;
  5850. void *address;
  5851. }
  5852. lt__PROGRAM__LTX_preloaded_symbols[] =
  5853. {
  5854. { "@PROGRAM@", (void *) 0 },
  5855. _LT_EOF
  5856. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5857. cat <<\_LT_EOF >> conftest.$ac_ext
  5858. {0, (void *) 0}
  5859. };
  5860. /* This works around a problem in FreeBSD linker */
  5861. #ifdef FREEBSD_WORKAROUND
  5862. static const void *lt_preloaded_setup() {
  5863. return lt__PROGRAM__LTX_preloaded_symbols;
  5864. }
  5865. #endif
  5866. #ifdef __cplusplus
  5867. }
  5868. #endif
  5869. _LT_EOF
  5870. # Now try linking the two files.
  5871. mv conftest.$ac_objext conftstm.$ac_objext
  5872. lt_save_LIBS="$LIBS"
  5873. lt_save_CFLAGS="$CFLAGS"
  5874. LIBS="conftstm.$ac_objext"
  5875. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5876. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5877. (eval $ac_link) 2>&5
  5878. ac_status=$?
  5879. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5880. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5881. pipe_works=yes
  5882. fi
  5883. LIBS="$lt_save_LIBS"
  5884. CFLAGS="$lt_save_CFLAGS"
  5885. else
  5886. echo "cannot find nm_test_func in $nlist" >&5
  5887. fi
  5888. else
  5889. echo "cannot find nm_test_var in $nlist" >&5
  5890. fi
  5891. else
  5892. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5893. fi
  5894. else
  5895. echo "$progname: failed program was:" >&5
  5896. cat conftest.$ac_ext >&5
  5897. fi
  5898. rm -rf conftest* conftst*
  5899. # Do not use the global_symbol_pipe unless it works.
  5900. if test "$pipe_works" = yes; then
  5901. break
  5902. else
  5903. lt_cv_sys_global_symbol_pipe=
  5904. fi
  5905. done
  5906. fi
  5907. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5908. lt_cv_sys_global_symbol_to_cdecl=
  5909. fi
  5910. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5912. $as_echo "failed" >&6; }
  5913. else
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5915. $as_echo "ok" >&6; }
  5916. fi
  5917. # Check whether --enable-libtool-lock was given.
  5918. if test "${enable_libtool_lock+set}" = set; then :
  5919. enableval=$enable_libtool_lock;
  5920. fi
  5921. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5922. # Some flags need to be propagated to the compiler or linker for good
  5923. # libtool support.
  5924. case $host in
  5925. ia64-*-hpux*)
  5926. # Find out which ABI we are using.
  5927. echo 'int i;' > conftest.$ac_ext
  5928. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5929. (eval $ac_compile) 2>&5
  5930. ac_status=$?
  5931. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5932. test $ac_status = 0; }; then
  5933. case `/usr/bin/file conftest.$ac_objext` in
  5934. *ELF-32*)
  5935. HPUX_IA64_MODE="32"
  5936. ;;
  5937. *ELF-64*)
  5938. HPUX_IA64_MODE="64"
  5939. ;;
  5940. esac
  5941. fi
  5942. rm -rf conftest*
  5943. ;;
  5944. *-*-irix6*)
  5945. # Find out which ABI we are using.
  5946. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5947. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5948. (eval $ac_compile) 2>&5
  5949. ac_status=$?
  5950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5951. test $ac_status = 0; }; then
  5952. if test "$lt_cv_prog_gnu_ld" = yes; then
  5953. case `/usr/bin/file conftest.$ac_objext` in
  5954. *32-bit*)
  5955. LD="${LD-ld} -melf32bsmip"
  5956. ;;
  5957. *N32*)
  5958. LD="${LD-ld} -melf32bmipn32"
  5959. ;;
  5960. *64-bit*)
  5961. LD="${LD-ld} -melf64bmip"
  5962. ;;
  5963. esac
  5964. else
  5965. case `/usr/bin/file conftest.$ac_objext` in
  5966. *32-bit*)
  5967. LD="${LD-ld} -32"
  5968. ;;
  5969. *N32*)
  5970. LD="${LD-ld} -n32"
  5971. ;;
  5972. *64-bit*)
  5973. LD="${LD-ld} -64"
  5974. ;;
  5975. esac
  5976. fi
  5977. fi
  5978. rm -rf conftest*
  5979. ;;
  5980. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5981. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5982. # Find out which ABI we are using.
  5983. echo 'int i;' > conftest.$ac_ext
  5984. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5985. (eval $ac_compile) 2>&5
  5986. ac_status=$?
  5987. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5988. test $ac_status = 0; }; then
  5989. case `/usr/bin/file conftest.o` in
  5990. *32-bit*)
  5991. case $host in
  5992. x86_64-*kfreebsd*-gnu)
  5993. LD="${LD-ld} -m elf_i386_fbsd"
  5994. ;;
  5995. x86_64-*linux*)
  5996. case `/usr/bin/file conftest.o` in
  5997. *x86-64*)
  5998. LD="${LD-ld} -m elf32_x86_64"
  5999. ;;
  6000. *)
  6001. LD="${LD-ld} -m elf_i386"
  6002. ;;
  6003. esac
  6004. ;;
  6005. powerpc64le-*linux*)
  6006. LD="${LD-ld} -m elf32lppclinux"
  6007. ;;
  6008. powerpc64-*linux*)
  6009. LD="${LD-ld} -m elf32ppclinux"
  6010. ;;
  6011. s390x-*linux*)
  6012. LD="${LD-ld} -m elf_s390"
  6013. ;;
  6014. sparc64-*linux*)
  6015. LD="${LD-ld} -m elf32_sparc"
  6016. ;;
  6017. esac
  6018. ;;
  6019. *64-bit*)
  6020. case $host in
  6021. x86_64-*kfreebsd*-gnu)
  6022. LD="${LD-ld} -m elf_x86_64_fbsd"
  6023. ;;
  6024. x86_64-*linux*)
  6025. LD="${LD-ld} -m elf_x86_64"
  6026. ;;
  6027. powerpcle-*linux*)
  6028. LD="${LD-ld} -m elf64lppc"
  6029. ;;
  6030. powerpc-*linux*)
  6031. LD="${LD-ld} -m elf64ppc"
  6032. ;;
  6033. s390*-*linux*|s390*-*tpf*)
  6034. LD="${LD-ld} -m elf64_s390"
  6035. ;;
  6036. sparc*-*linux*)
  6037. LD="${LD-ld} -m elf64_sparc"
  6038. ;;
  6039. esac
  6040. ;;
  6041. esac
  6042. fi
  6043. rm -rf conftest*
  6044. ;;
  6045. *-*-sco3.2v5*)
  6046. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6047. SAVE_CFLAGS="$CFLAGS"
  6048. CFLAGS="$CFLAGS -belf"
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6050. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6051. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6052. $as_echo_n "(cached) " >&6
  6053. else
  6054. ac_ext=c
  6055. ac_cpp='$CPP $CPPFLAGS'
  6056. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6057. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6058. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6060. /* end confdefs.h. */
  6061. int
  6062. main ()
  6063. {
  6064. ;
  6065. return 0;
  6066. }
  6067. _ACEOF
  6068. if ac_fn_c_try_link "$LINENO"; then :
  6069. lt_cv_cc_needs_belf=yes
  6070. else
  6071. lt_cv_cc_needs_belf=no
  6072. fi
  6073. rm -f core conftest.err conftest.$ac_objext \
  6074. conftest$ac_exeext conftest.$ac_ext
  6075. ac_ext=c
  6076. ac_cpp='$CPP $CPPFLAGS'
  6077. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6078. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6079. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6080. fi
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6082. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6083. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6084. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6085. CFLAGS="$SAVE_CFLAGS"
  6086. fi
  6087. ;;
  6088. sparc*-*solaris*)
  6089. # Find out which ABI we are using.
  6090. echo 'int i;' > conftest.$ac_ext
  6091. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6092. (eval $ac_compile) 2>&5
  6093. ac_status=$?
  6094. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6095. test $ac_status = 0; }; then
  6096. case `/usr/bin/file conftest.o` in
  6097. *64-bit*)
  6098. case $lt_cv_prog_gnu_ld in
  6099. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6100. *)
  6101. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6102. LD="${LD-ld} -64"
  6103. fi
  6104. ;;
  6105. esac
  6106. ;;
  6107. esac
  6108. fi
  6109. rm -rf conftest*
  6110. ;;
  6111. esac
  6112. need_locks="$enable_libtool_lock"
  6113. case $host_os in
  6114. rhapsody* | darwin*)
  6115. if test -n "$ac_tool_prefix"; then
  6116. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6117. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6119. $as_echo_n "checking for $ac_word... " >&6; }
  6120. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6121. $as_echo_n "(cached) " >&6
  6122. else
  6123. if test -n "$DSYMUTIL"; then
  6124. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6125. else
  6126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6127. for as_dir in $PATH
  6128. do
  6129. IFS=$as_save_IFS
  6130. test -z "$as_dir" && as_dir=.
  6131. for ac_exec_ext in '' $ac_executable_extensions; do
  6132. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6133. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6135. break 2
  6136. fi
  6137. done
  6138. done
  6139. IFS=$as_save_IFS
  6140. fi
  6141. fi
  6142. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6143. if test -n "$DSYMUTIL"; then
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6145. $as_echo "$DSYMUTIL" >&6; }
  6146. else
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6148. $as_echo "no" >&6; }
  6149. fi
  6150. fi
  6151. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6152. ac_ct_DSYMUTIL=$DSYMUTIL
  6153. # Extract the first word of "dsymutil", so it can be a program name with args.
  6154. set dummy dsymutil; ac_word=$2
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6156. $as_echo_n "checking for $ac_word... " >&6; }
  6157. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6158. $as_echo_n "(cached) " >&6
  6159. else
  6160. if test -n "$ac_ct_DSYMUTIL"; then
  6161. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6162. else
  6163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6164. for as_dir in $PATH
  6165. do
  6166. IFS=$as_save_IFS
  6167. test -z "$as_dir" && as_dir=.
  6168. for ac_exec_ext in '' $ac_executable_extensions; do
  6169. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6170. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6171. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6172. break 2
  6173. fi
  6174. done
  6175. done
  6176. IFS=$as_save_IFS
  6177. fi
  6178. fi
  6179. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6180. if test -n "$ac_ct_DSYMUTIL"; then
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6182. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6183. else
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6185. $as_echo "no" >&6; }
  6186. fi
  6187. if test "x$ac_ct_DSYMUTIL" = x; then
  6188. DSYMUTIL=":"
  6189. else
  6190. case $cross_compiling:$ac_tool_warned in
  6191. yes:)
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6193. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6194. ac_tool_warned=yes ;;
  6195. esac
  6196. DSYMUTIL=$ac_ct_DSYMUTIL
  6197. fi
  6198. else
  6199. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6200. fi
  6201. if test -n "$ac_tool_prefix"; then
  6202. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6203. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6205. $as_echo_n "checking for $ac_word... " >&6; }
  6206. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6207. $as_echo_n "(cached) " >&6
  6208. else
  6209. if test -n "$NMEDIT"; then
  6210. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6211. else
  6212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6213. for as_dir in $PATH
  6214. do
  6215. IFS=$as_save_IFS
  6216. test -z "$as_dir" && as_dir=.
  6217. for ac_exec_ext in '' $ac_executable_extensions; do
  6218. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6219. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6221. break 2
  6222. fi
  6223. done
  6224. done
  6225. IFS=$as_save_IFS
  6226. fi
  6227. fi
  6228. NMEDIT=$ac_cv_prog_NMEDIT
  6229. if test -n "$NMEDIT"; then
  6230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6231. $as_echo "$NMEDIT" >&6; }
  6232. else
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6234. $as_echo "no" >&6; }
  6235. fi
  6236. fi
  6237. if test -z "$ac_cv_prog_NMEDIT"; then
  6238. ac_ct_NMEDIT=$NMEDIT
  6239. # Extract the first word of "nmedit", so it can be a program name with args.
  6240. set dummy nmedit; ac_word=$2
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6242. $as_echo_n "checking for $ac_word... " >&6; }
  6243. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6244. $as_echo_n "(cached) " >&6
  6245. else
  6246. if test -n "$ac_ct_NMEDIT"; then
  6247. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6248. else
  6249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6250. for as_dir in $PATH
  6251. do
  6252. IFS=$as_save_IFS
  6253. test -z "$as_dir" && as_dir=.
  6254. for ac_exec_ext in '' $ac_executable_extensions; do
  6255. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6256. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6258. break 2
  6259. fi
  6260. done
  6261. done
  6262. IFS=$as_save_IFS
  6263. fi
  6264. fi
  6265. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6266. if test -n "$ac_ct_NMEDIT"; then
  6267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6268. $as_echo "$ac_ct_NMEDIT" >&6; }
  6269. else
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6271. $as_echo "no" >&6; }
  6272. fi
  6273. if test "x$ac_ct_NMEDIT" = x; then
  6274. NMEDIT=":"
  6275. else
  6276. case $cross_compiling:$ac_tool_warned in
  6277. yes:)
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6279. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6280. ac_tool_warned=yes ;;
  6281. esac
  6282. NMEDIT=$ac_ct_NMEDIT
  6283. fi
  6284. else
  6285. NMEDIT="$ac_cv_prog_NMEDIT"
  6286. fi
  6287. if test -n "$ac_tool_prefix"; then
  6288. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6289. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6291. $as_echo_n "checking for $ac_word... " >&6; }
  6292. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6293. $as_echo_n "(cached) " >&6
  6294. else
  6295. if test -n "$LIPO"; then
  6296. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6297. else
  6298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6299. for as_dir in $PATH
  6300. do
  6301. IFS=$as_save_IFS
  6302. test -z "$as_dir" && as_dir=.
  6303. for ac_exec_ext in '' $ac_executable_extensions; do
  6304. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6305. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6306. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6307. break 2
  6308. fi
  6309. done
  6310. done
  6311. IFS=$as_save_IFS
  6312. fi
  6313. fi
  6314. LIPO=$ac_cv_prog_LIPO
  6315. if test -n "$LIPO"; then
  6316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6317. $as_echo "$LIPO" >&6; }
  6318. else
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6320. $as_echo "no" >&6; }
  6321. fi
  6322. fi
  6323. if test -z "$ac_cv_prog_LIPO"; then
  6324. ac_ct_LIPO=$LIPO
  6325. # Extract the first word of "lipo", so it can be a program name with args.
  6326. set dummy lipo; ac_word=$2
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6328. $as_echo_n "checking for $ac_word... " >&6; }
  6329. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6330. $as_echo_n "(cached) " >&6
  6331. else
  6332. if test -n "$ac_ct_LIPO"; then
  6333. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6334. else
  6335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6336. for as_dir in $PATH
  6337. do
  6338. IFS=$as_save_IFS
  6339. test -z "$as_dir" && as_dir=.
  6340. for ac_exec_ext in '' $ac_executable_extensions; do
  6341. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6342. ac_cv_prog_ac_ct_LIPO="lipo"
  6343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6344. break 2
  6345. fi
  6346. done
  6347. done
  6348. IFS=$as_save_IFS
  6349. fi
  6350. fi
  6351. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6352. if test -n "$ac_ct_LIPO"; then
  6353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6354. $as_echo "$ac_ct_LIPO" >&6; }
  6355. else
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6357. $as_echo "no" >&6; }
  6358. fi
  6359. if test "x$ac_ct_LIPO" = x; then
  6360. LIPO=":"
  6361. else
  6362. case $cross_compiling:$ac_tool_warned in
  6363. yes:)
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6365. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6366. ac_tool_warned=yes ;;
  6367. esac
  6368. LIPO=$ac_ct_LIPO
  6369. fi
  6370. else
  6371. LIPO="$ac_cv_prog_LIPO"
  6372. fi
  6373. if test -n "$ac_tool_prefix"; then
  6374. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6375. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6377. $as_echo_n "checking for $ac_word... " >&6; }
  6378. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6379. $as_echo_n "(cached) " >&6
  6380. else
  6381. if test -n "$OTOOL"; then
  6382. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6383. else
  6384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6385. for as_dir in $PATH
  6386. do
  6387. IFS=$as_save_IFS
  6388. test -z "$as_dir" && as_dir=.
  6389. for ac_exec_ext in '' $ac_executable_extensions; do
  6390. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6391. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6393. break 2
  6394. fi
  6395. done
  6396. done
  6397. IFS=$as_save_IFS
  6398. fi
  6399. fi
  6400. OTOOL=$ac_cv_prog_OTOOL
  6401. if test -n "$OTOOL"; then
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6403. $as_echo "$OTOOL" >&6; }
  6404. else
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6406. $as_echo "no" >&6; }
  6407. fi
  6408. fi
  6409. if test -z "$ac_cv_prog_OTOOL"; then
  6410. ac_ct_OTOOL=$OTOOL
  6411. # Extract the first word of "otool", so it can be a program name with args.
  6412. set dummy otool; ac_word=$2
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6414. $as_echo_n "checking for $ac_word... " >&6; }
  6415. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6416. $as_echo_n "(cached) " >&6
  6417. else
  6418. if test -n "$ac_ct_OTOOL"; then
  6419. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6420. else
  6421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6422. for as_dir in $PATH
  6423. do
  6424. IFS=$as_save_IFS
  6425. test -z "$as_dir" && as_dir=.
  6426. for ac_exec_ext in '' $ac_executable_extensions; do
  6427. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6428. ac_cv_prog_ac_ct_OTOOL="otool"
  6429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6430. break 2
  6431. fi
  6432. done
  6433. done
  6434. IFS=$as_save_IFS
  6435. fi
  6436. fi
  6437. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6438. if test -n "$ac_ct_OTOOL"; then
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6440. $as_echo "$ac_ct_OTOOL" >&6; }
  6441. else
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6443. $as_echo "no" >&6; }
  6444. fi
  6445. if test "x$ac_ct_OTOOL" = x; then
  6446. OTOOL=":"
  6447. else
  6448. case $cross_compiling:$ac_tool_warned in
  6449. yes:)
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6451. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6452. ac_tool_warned=yes ;;
  6453. esac
  6454. OTOOL=$ac_ct_OTOOL
  6455. fi
  6456. else
  6457. OTOOL="$ac_cv_prog_OTOOL"
  6458. fi
  6459. if test -n "$ac_tool_prefix"; then
  6460. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6461. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6463. $as_echo_n "checking for $ac_word... " >&6; }
  6464. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6465. $as_echo_n "(cached) " >&6
  6466. else
  6467. if test -n "$OTOOL64"; then
  6468. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6469. else
  6470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6471. for as_dir in $PATH
  6472. do
  6473. IFS=$as_save_IFS
  6474. test -z "$as_dir" && as_dir=.
  6475. for ac_exec_ext in '' $ac_executable_extensions; do
  6476. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6477. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6479. break 2
  6480. fi
  6481. done
  6482. done
  6483. IFS=$as_save_IFS
  6484. fi
  6485. fi
  6486. OTOOL64=$ac_cv_prog_OTOOL64
  6487. if test -n "$OTOOL64"; then
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6489. $as_echo "$OTOOL64" >&6; }
  6490. else
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6492. $as_echo "no" >&6; }
  6493. fi
  6494. fi
  6495. if test -z "$ac_cv_prog_OTOOL64"; then
  6496. ac_ct_OTOOL64=$OTOOL64
  6497. # Extract the first word of "otool64", so it can be a program name with args.
  6498. set dummy otool64; ac_word=$2
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6500. $as_echo_n "checking for $ac_word... " >&6; }
  6501. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6502. $as_echo_n "(cached) " >&6
  6503. else
  6504. if test -n "$ac_ct_OTOOL64"; then
  6505. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6506. else
  6507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6508. for as_dir in $PATH
  6509. do
  6510. IFS=$as_save_IFS
  6511. test -z "$as_dir" && as_dir=.
  6512. for ac_exec_ext in '' $ac_executable_extensions; do
  6513. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6514. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6516. break 2
  6517. fi
  6518. done
  6519. done
  6520. IFS=$as_save_IFS
  6521. fi
  6522. fi
  6523. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6524. if test -n "$ac_ct_OTOOL64"; then
  6525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6526. $as_echo "$ac_ct_OTOOL64" >&6; }
  6527. else
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6529. $as_echo "no" >&6; }
  6530. fi
  6531. if test "x$ac_ct_OTOOL64" = x; then
  6532. OTOOL64=":"
  6533. else
  6534. case $cross_compiling:$ac_tool_warned in
  6535. yes:)
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6537. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6538. ac_tool_warned=yes ;;
  6539. esac
  6540. OTOOL64=$ac_ct_OTOOL64
  6541. fi
  6542. else
  6543. OTOOL64="$ac_cv_prog_OTOOL64"
  6544. fi
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6546. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6547. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6548. $as_echo_n "(cached) " >&6
  6549. else
  6550. lt_cv_apple_cc_single_mod=no
  6551. if test -z "${LT_MULTI_MODULE}"; then
  6552. # By default we will add the -single_module flag. You can override
  6553. # by either setting the environment variable LT_MULTI_MODULE
  6554. # non-empty at configure time, or by adding -multi_module to the
  6555. # link flags.
  6556. rm -rf libconftest.dylib*
  6557. echo "int foo(void){return 1;}" > conftest.c
  6558. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6559. -dynamiclib -Wl,-single_module conftest.c" >&5
  6560. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6561. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6562. _lt_result=$?
  6563. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6564. lt_cv_apple_cc_single_mod=yes
  6565. else
  6566. cat conftest.err >&5
  6567. fi
  6568. rm -rf libconftest.dylib*
  6569. rm -f conftest.*
  6570. fi
  6571. fi
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6573. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6575. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6576. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6577. $as_echo_n "(cached) " >&6
  6578. else
  6579. lt_cv_ld_exported_symbols_list=no
  6580. save_LDFLAGS=$LDFLAGS
  6581. echo "_main" > conftest.sym
  6582. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6584. /* end confdefs.h. */
  6585. int
  6586. main ()
  6587. {
  6588. ;
  6589. return 0;
  6590. }
  6591. _ACEOF
  6592. if ac_fn_c_try_link "$LINENO"; then :
  6593. lt_cv_ld_exported_symbols_list=yes
  6594. else
  6595. lt_cv_ld_exported_symbols_list=no
  6596. fi
  6597. rm -f core conftest.err conftest.$ac_objext \
  6598. conftest$ac_exeext conftest.$ac_ext
  6599. LDFLAGS="$save_LDFLAGS"
  6600. fi
  6601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6602. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6604. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6605. if test "${lt_cv_ld_force_load+set}" = set; then :
  6606. $as_echo_n "(cached) " >&6
  6607. else
  6608. lt_cv_ld_force_load=no
  6609. cat > conftest.c << _LT_EOF
  6610. int forced_loaded() { return 2;}
  6611. _LT_EOF
  6612. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6613. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6614. echo "$AR cru libconftest.a conftest.o" >&5
  6615. $AR cru libconftest.a conftest.o 2>&5
  6616. cat > conftest.c << _LT_EOF
  6617. int main() { return 0;}
  6618. _LT_EOF
  6619. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6620. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6621. _lt_result=$?
  6622. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6623. lt_cv_ld_force_load=yes
  6624. else
  6625. cat conftest.err >&5
  6626. fi
  6627. rm -f conftest.err libconftest.a conftest conftest.c
  6628. rm -rf conftest.dSYM
  6629. fi
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6631. $as_echo "$lt_cv_ld_force_load" >&6; }
  6632. case $host_os in
  6633. rhapsody* | darwin1.[012])
  6634. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6635. darwin1.*)
  6636. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6637. darwin*) # darwin 5.x on
  6638. # if running on 10.5 or later, the deployment target defaults
  6639. # to the OS version, if on x86, and 10.4, the deployment
  6640. # target defaults to 10.4. Don't you love it?
  6641. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6642. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6643. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6644. 10.[012][,.]*)
  6645. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6646. 10.*)
  6647. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6648. esac
  6649. ;;
  6650. esac
  6651. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6652. _lt_dar_single_mod='$single_module'
  6653. fi
  6654. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6655. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6656. else
  6657. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6658. fi
  6659. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6660. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6661. else
  6662. _lt_dsymutil=
  6663. fi
  6664. ;;
  6665. esac
  6666. for ac_header in dlfcn.h
  6667. do :
  6668. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6669. "
  6670. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6671. cat >>confdefs.h <<_ACEOF
  6672. #define HAVE_DLFCN_H 1
  6673. _ACEOF
  6674. fi
  6675. done
  6676. # autoconf.info says this should be called right after AC_INIT.
  6677. ac_config_headers="$ac_config_headers config.h:config.in"
  6678. # Put a plausible default for CC_FOR_BUILD in Makefile.
  6679. if test "x$cross_compiling" = "xno"; then
  6680. CC_FOR_BUILD='$(CC)'
  6681. else
  6682. CC_FOR_BUILD=gcc
  6683. fi
  6684. AR=${AR-ar}
  6685. if test -n "$ac_tool_prefix"; then
  6686. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6687. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6689. $as_echo_n "checking for $ac_word... " >&6; }
  6690. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6691. $as_echo_n "(cached) " >&6
  6692. else
  6693. if test -n "$RANLIB"; then
  6694. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6695. else
  6696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6697. for as_dir in $PATH
  6698. do
  6699. IFS=$as_save_IFS
  6700. test -z "$as_dir" && as_dir=.
  6701. for ac_exec_ext in '' $ac_executable_extensions; do
  6702. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6703. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6704. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6705. break 2
  6706. fi
  6707. done
  6708. done
  6709. IFS=$as_save_IFS
  6710. fi
  6711. fi
  6712. RANLIB=$ac_cv_prog_RANLIB
  6713. if test -n "$RANLIB"; then
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6715. $as_echo "$RANLIB" >&6; }
  6716. else
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6718. $as_echo "no" >&6; }
  6719. fi
  6720. fi
  6721. if test -z "$ac_cv_prog_RANLIB"; then
  6722. ac_ct_RANLIB=$RANLIB
  6723. # Extract the first word of "ranlib", so it can be a program name with args.
  6724. set dummy ranlib; ac_word=$2
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6726. $as_echo_n "checking for $ac_word... " >&6; }
  6727. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6728. $as_echo_n "(cached) " >&6
  6729. else
  6730. if test -n "$ac_ct_RANLIB"; then
  6731. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6732. else
  6733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6734. for as_dir in $PATH
  6735. do
  6736. IFS=$as_save_IFS
  6737. test -z "$as_dir" && as_dir=.
  6738. for ac_exec_ext in '' $ac_executable_extensions; do
  6739. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6740. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6742. break 2
  6743. fi
  6744. done
  6745. done
  6746. IFS=$as_save_IFS
  6747. fi
  6748. fi
  6749. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6750. if test -n "$ac_ct_RANLIB"; then
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6752. $as_echo "$ac_ct_RANLIB" >&6; }
  6753. else
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6755. $as_echo "no" >&6; }
  6756. fi
  6757. if test "x$ac_ct_RANLIB" = x; then
  6758. RANLIB=":"
  6759. else
  6760. case $cross_compiling:$ac_tool_warned in
  6761. yes:)
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6763. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6764. ac_tool_warned=yes ;;
  6765. esac
  6766. RANLIB=$ac_ct_RANLIB
  6767. fi
  6768. else
  6769. RANLIB="$ac_cv_prog_RANLIB"
  6770. fi
  6771. # Some of the common include files depend on bfd.h, and bfd.h checks
  6772. # that config.h is included first by testing that the PACKAGE macro
  6773. # is defined.
  6774. PACKAGE=sim
  6775. cat >>confdefs.h <<_ACEOF
  6776. #define PACKAGE "$PACKAGE"
  6777. _ACEOF
  6778. # Dependency checking.
  6779. ac_config_commands="$ac_config_commands depdir"
  6780. depcc="$CC" am_compiler_list=
  6781. am_depcomp=$ac_aux_dir/depcomp
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6783. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6784. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  6785. $as_echo_n "(cached) " >&6
  6786. else
  6787. if test -f "$am_depcomp"; then
  6788. # We make a subdir and do the tests there. Otherwise we can end up
  6789. # making bogus files that we don't know about and never remove. For
  6790. # instance it was reported that on HP-UX the gcc test will end up
  6791. # making a dummy file named `D' -- because `-MD' means `put the output
  6792. # in D'.
  6793. mkdir conftest.dir
  6794. # Copy depcomp to subdir because otherwise we won't find it if we're
  6795. # using a relative directory.
  6796. cp "$am_depcomp" conftest.dir
  6797. cd conftest.dir
  6798. # We will build objects and dependencies in a subdirectory because
  6799. # it helps to detect inapplicable dependency modes. For instance
  6800. # both Tru64's cc and ICC support -MD to output dependencies as a
  6801. # side effect of compilation, but ICC will put the dependencies in
  6802. # the current directory while Tru64 will put them in the object
  6803. # directory.
  6804. mkdir sub
  6805. am_cv_CC_dependencies_compiler_type=none
  6806. if test "$am_compiler_list" = ""; then
  6807. am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6808. fi
  6809. for depmode in $am_compiler_list; do
  6810. if test $depmode = none; then break; fi
  6811. $as_echo "$as_me:$LINENO: trying $depmode" >&5
  6812. # Setup a source with many dependencies, because some compilers
  6813. # like to wrap large dependency lists on column 80 (with \), and
  6814. # we should not choose a depcomp mode which is confused by this.
  6815. #
  6816. # We need to recreate these files for each test, as the compiler may
  6817. # overwrite some of them when testing with obscure command lines.
  6818. # This happens at least with the AIX C compiler.
  6819. : > sub/conftest.c
  6820. for i in 1 2 3 4 5 6; do
  6821. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6822. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6823. # Solaris 8's {/usr,}/bin/sh.
  6824. touch sub/conftst$i.h
  6825. done
  6826. echo "include sub/conftest.Po" > confmf
  6827. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6828. # mode. It turns out that the SunPro C++ compiler does not properly
  6829. # handle `-M -o', and we need to detect this.
  6830. depcmd="depmode=$depmode \
  6831. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6832. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6833. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
  6834. echo "| $depcmd" | sed -e 's/ */ /g' >&5
  6835. if env $depcmd > conftest.err 2>&1 &&
  6836. grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
  6837. grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
  6838. ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
  6839. # icc doesn't choke on unknown options, it will just issue warnings
  6840. # or remarks (even with -Werror). So we grep stderr for any message
  6841. # that says an option was ignored or not supported.
  6842. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6843. # icc: Command line warning: ignoring option '-M'; no argument required
  6844. # The diagnosis changed in icc 8.0:
  6845. # icc: Command line remark: option '-MP' not supported
  6846. if (grep 'ignoring option' conftest.err ||
  6847. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6848. am_cv_CC_dependencies_compiler_type=$depmode
  6849. $as_echo "$as_me:$LINENO: success" >&5
  6850. break
  6851. fi
  6852. fi
  6853. $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
  6854. sed -e 's/^/| /' < conftest.err >&5
  6855. done
  6856. cd ..
  6857. rm -rf conftest.dir
  6858. else
  6859. am_cv_CC_dependencies_compiler_type=none
  6860. fi
  6861. fi
  6862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  6863. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  6864. if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
  6865. then as_fn_error "no usable dependency style found" "$LINENO" 5
  6866. else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  6867. fi
  6868. # Check for the 'make' the user wants to use.
  6869. for ac_prog in make
  6870. do
  6871. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6872. set dummy $ac_prog; ac_word=$2
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6874. $as_echo_n "checking for $ac_word... " >&6; }
  6875. if test "${ac_cv_prog_MAKE+set}" = set; then :
  6876. $as_echo_n "(cached) " >&6
  6877. else
  6878. if test -n "$MAKE"; then
  6879. ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
  6880. else
  6881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6882. for as_dir in $PATH
  6883. do
  6884. IFS=$as_save_IFS
  6885. test -z "$as_dir" && as_dir=.
  6886. for ac_exec_ext in '' $ac_executable_extensions; do
  6887. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6888. ac_cv_prog_MAKE="$ac_prog"
  6889. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6890. break 2
  6891. fi
  6892. done
  6893. done
  6894. IFS=$as_save_IFS
  6895. fi
  6896. fi
  6897. MAKE=$ac_cv_prog_MAKE
  6898. if test -n "$MAKE"; then
  6899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
  6900. $as_echo "$MAKE" >&6; }
  6901. else
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6903. $as_echo "no" >&6; }
  6904. fi
  6905. test -n "$MAKE" && break
  6906. done
  6907. MAKE_IS_GNU=
  6908. case "`$MAKE --version 2>&1 | sed 1q`" in
  6909. *GNU*)
  6910. MAKE_IS_GNU=yes
  6911. ;;
  6912. esac
  6913. if test "$MAKE_IS_GNU" = yes; then
  6914. GMAKE_TRUE=
  6915. GMAKE_FALSE='#'
  6916. else
  6917. GMAKE_TRUE='#'
  6918. GMAKE_FALSE=
  6919. fi
  6920. ALL_LINGUAS=
  6921. # If we haven't got the data from the intl directory,
  6922. # assume NLS is disabled.
  6923. USE_NLS=no
  6924. LIBINTL=
  6925. LIBINTL_DEP=
  6926. INCINTL=
  6927. XGETTEXT=
  6928. GMSGFMT=
  6929. POSUB=
  6930. if test -f ../../intl/config.intl; then
  6931. . ../../intl/config.intl
  6932. fi
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  6934. $as_echo_n "checking whether NLS is requested... " >&6; }
  6935. if test x"$USE_NLS" != xyes; then
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6937. $as_echo "no" >&6; }
  6938. else
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6940. $as_echo "yes" >&6; }
  6941. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  6943. $as_echo_n "checking for catalogs to be installed... " >&6; }
  6944. # Look for .po and .gmo files in the source directory.
  6945. CATALOGS=
  6946. XLINGUAS=
  6947. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  6948. # If there aren't any .gmo files the shell will give us the
  6949. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  6950. # weeded out.
  6951. case "$cat" in *\**)
  6952. continue;;
  6953. esac
  6954. # The quadruple backslash is collapsed to a double backslash
  6955. # by the backticks, then collapsed again by the double quotes,
  6956. # leaving us with one backslash in the sed expression (right
  6957. # before the dot that mustn't act as a wildcard).
  6958. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  6959. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  6960. # The user is allowed to set LINGUAS to a list of languages to
  6961. # install catalogs for. If it's empty that means "all of them."
  6962. if test "x$LINGUAS" = x; then
  6963. CATALOGS="$CATALOGS $cat"
  6964. XLINGUAS="$XLINGUAS $lang"
  6965. else
  6966. case "$LINGUAS" in *$lang*)
  6967. CATALOGS="$CATALOGS $cat"
  6968. XLINGUAS="$XLINGUAS $lang"
  6969. ;;
  6970. esac
  6971. fi
  6972. done
  6973. LINGUAS="$XLINGUAS"
  6974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  6975. $as_echo "$LINGUAS" >&6; }
  6976. DATADIRNAME=share
  6977. INSTOBJEXT=.mo
  6978. GENCAT=gencat
  6979. CATOBJEXT=.gmo
  6980. fi
  6981. # Check for common headers.
  6982. # FIXME: Seems to me this can cause problems for i386-windows hosts.
  6983. # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
  6984. for ac_header in stdlib.h string.h strings.h unistd.h time.h
  6985. do :
  6986. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6987. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6988. eval as_val=\$$as_ac_Header
  6989. if test "x$as_val" = x""yes; then :
  6990. cat >>confdefs.h <<_ACEOF
  6991. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6992. _ACEOF
  6993. fi
  6994. done
  6995. for ac_header in sys/time.h sys/resource.h
  6996. do :
  6997. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6998. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6999. eval as_val=\$$as_ac_Header
  7000. if test "x$as_val" = x""yes; then :
  7001. cat >>confdefs.h <<_ACEOF
  7002. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7003. _ACEOF
  7004. fi
  7005. done
  7006. for ac_header in fcntl.h fpu_control.h
  7007. do :
  7008. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7009. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7010. eval as_val=\$$as_ac_Header
  7011. if test "x$as_val" = x""yes; then :
  7012. cat >>confdefs.h <<_ACEOF
  7013. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7014. _ACEOF
  7015. fi
  7016. done
  7017. for ac_header in dlfcn.h errno.h sys/stat.h
  7018. do :
  7019. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7020. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7021. eval as_val=\$$as_ac_Header
  7022. if test "x$as_val" = x""yes; then :
  7023. cat >>confdefs.h <<_ACEOF
  7024. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7025. _ACEOF
  7026. fi
  7027. done
  7028. for ac_func in getrusage time sigaction __setfpucw
  7029. do :
  7030. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7031. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7032. eval as_val=\$$as_ac_var
  7033. if test "x$as_val" = x""yes; then :
  7034. cat >>confdefs.h <<_ACEOF
  7035. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7036. _ACEOF
  7037. fi
  7038. done
  7039. # Check for socket libraries
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
  7041. $as_echo_n "checking for bind in -lsocket... " >&6; }
  7042. if test "${ac_cv_lib_socket_bind+set}" = set; then :
  7043. $as_echo_n "(cached) " >&6
  7044. else
  7045. ac_check_lib_save_LIBS=$LIBS
  7046. LIBS="-lsocket $LIBS"
  7047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7048. /* end confdefs.h. */
  7049. /* Override any GCC internal prototype to avoid an error.
  7050. Use char because int might match the return type of a GCC
  7051. builtin and then its argument prototype would still apply. */
  7052. #ifdef __cplusplus
  7053. extern "C"
  7054. #endif
  7055. char bind ();
  7056. int
  7057. main ()
  7058. {
  7059. return bind ();
  7060. ;
  7061. return 0;
  7062. }
  7063. _ACEOF
  7064. if ac_fn_c_try_link "$LINENO"; then :
  7065. ac_cv_lib_socket_bind=yes
  7066. else
  7067. ac_cv_lib_socket_bind=no
  7068. fi
  7069. rm -f core conftest.err conftest.$ac_objext \
  7070. conftest$ac_exeext conftest.$ac_ext
  7071. LIBS=$ac_check_lib_save_LIBS
  7072. fi
  7073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
  7074. $as_echo "$ac_cv_lib_socket_bind" >&6; }
  7075. if test "x$ac_cv_lib_socket_bind" = x""yes; then :
  7076. cat >>confdefs.h <<_ACEOF
  7077. #define HAVE_LIBSOCKET 1
  7078. _ACEOF
  7079. LIBS="-lsocket $LIBS"
  7080. fi
  7081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  7082. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  7083. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  7084. $as_echo_n "(cached) " >&6
  7085. else
  7086. ac_check_lib_save_LIBS=$LIBS
  7087. LIBS="-lnsl $LIBS"
  7088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7089. /* end confdefs.h. */
  7090. /* Override any GCC internal prototype to avoid an error.
  7091. Use char because int might match the return type of a GCC
  7092. builtin and then its argument prototype would still apply. */
  7093. #ifdef __cplusplus
  7094. extern "C"
  7095. #endif
  7096. char gethostbyname ();
  7097. int
  7098. main ()
  7099. {
  7100. return gethostbyname ();
  7101. ;
  7102. return 0;
  7103. }
  7104. _ACEOF
  7105. if ac_fn_c_try_link "$LINENO"; then :
  7106. ac_cv_lib_nsl_gethostbyname=yes
  7107. else
  7108. ac_cv_lib_nsl_gethostbyname=no
  7109. fi
  7110. rm -f core conftest.err conftest.$ac_objext \
  7111. conftest$ac_exeext conftest.$ac_ext
  7112. LIBS=$ac_check_lib_save_LIBS
  7113. fi
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  7115. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  7116. if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  7117. cat >>confdefs.h <<_ACEOF
  7118. #define HAVE_LIBNSL 1
  7119. _ACEOF
  7120. LIBS="-lnsl $LIBS"
  7121. fi
  7122. # BFD conditionally uses zlib, so we must link it in if libbfd does, by
  7123. # using the same condition.
  7124. # Use the system's zlib library.
  7125. zlibdir="-L\$(top_builddir)/../zlib"
  7126. zlibinc="-I\$(top_srcdir)/../zlib"
  7127. # Check whether --with-system-zlib was given.
  7128. if test "${with_system_zlib+set}" = set; then :
  7129. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  7130. zlibdir=
  7131. zlibinc=
  7132. fi
  7133. fi
  7134. # BFD uses libdl when when plugins enabled.
  7135. maybe_plugins=no
  7136. for ac_header in dlfcn.h
  7137. do :
  7138. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7139. "
  7140. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7141. cat >>confdefs.h <<_ACEOF
  7142. #define HAVE_DLFCN_H 1
  7143. _ACEOF
  7144. maybe_plugins=yes
  7145. fi
  7146. done
  7147. for ac_header in windows.h
  7148. do :
  7149. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  7150. "
  7151. if test "x$ac_cv_header_windows_h" = x""yes; then :
  7152. cat >>confdefs.h <<_ACEOF
  7153. #define HAVE_WINDOWS_H 1
  7154. _ACEOF
  7155. maybe_plugins=yes
  7156. fi
  7157. done
  7158. # Check whether --enable-plugins was given.
  7159. if test "${enable_plugins+set}" = set; then :
  7160. enableval=$enable_plugins; case "${enableval}" in
  7161. no) plugins=no ;;
  7162. *) plugins=yes
  7163. if test "$maybe_plugins" != "yes" ; then
  7164. as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  7165. fi ;;
  7166. esac
  7167. else
  7168. plugins=$maybe_plugins
  7169. fi
  7170. if test "$plugins" = "yes"; then
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  7172. $as_echo_n "checking for library containing dlopen... " >&6; }
  7173. if test "${ac_cv_search_dlopen+set}" = set; then :
  7174. $as_echo_n "(cached) " >&6
  7175. else
  7176. ac_func_search_save_LIBS=$LIBS
  7177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7178. /* end confdefs.h. */
  7179. /* Override any GCC internal prototype to avoid an error.
  7180. Use char because int might match the return type of a GCC
  7181. builtin and then its argument prototype would still apply. */
  7182. #ifdef __cplusplus
  7183. extern "C"
  7184. #endif
  7185. char dlopen ();
  7186. int
  7187. main ()
  7188. {
  7189. return dlopen ();
  7190. ;
  7191. return 0;
  7192. }
  7193. _ACEOF
  7194. for ac_lib in '' dl; do
  7195. if test -z "$ac_lib"; then
  7196. ac_res="none required"
  7197. else
  7198. ac_res=-l$ac_lib
  7199. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7200. fi
  7201. if ac_fn_c_try_link "$LINENO"; then :
  7202. ac_cv_search_dlopen=$ac_res
  7203. fi
  7204. rm -f core conftest.err conftest.$ac_objext \
  7205. conftest$ac_exeext
  7206. if test "${ac_cv_search_dlopen+set}" = set; then :
  7207. break
  7208. fi
  7209. done
  7210. if test "${ac_cv_search_dlopen+set}" = set; then :
  7211. else
  7212. ac_cv_search_dlopen=no
  7213. fi
  7214. rm conftest.$ac_ext
  7215. LIBS=$ac_func_search_save_LIBS
  7216. fi
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  7218. $as_echo "$ac_cv_search_dlopen" >&6; }
  7219. ac_res=$ac_cv_search_dlopen
  7220. if test "$ac_res" != no; then :
  7221. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7222. fi
  7223. fi
  7224. if test "$plugins" = yes; then
  7225. PLUGINS_TRUE=
  7226. PLUGINS_FALSE='#'
  7227. else
  7228. PLUGINS_TRUE='#'
  7229. PLUGINS_FALSE=
  7230. fi
  7231. # Set options
  7232. enable_dlopen=yes
  7233. enable_win32_dll=no
  7234. # Check whether --enable-shared was given.
  7235. if test "${enable_shared+set}" = set; then :
  7236. enableval=$enable_shared; p=${PACKAGE-default}
  7237. case $enableval in
  7238. yes) enable_shared=yes ;;
  7239. no) enable_shared=no ;;
  7240. *)
  7241. enable_shared=no
  7242. # Look at the argument we got. We use all the common list separators.
  7243. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7244. for pkg in $enableval; do
  7245. IFS="$lt_save_ifs"
  7246. if test "X$pkg" = "X$p"; then
  7247. enable_shared=yes
  7248. fi
  7249. done
  7250. IFS="$lt_save_ifs"
  7251. ;;
  7252. esac
  7253. else
  7254. enable_shared=yes
  7255. fi
  7256. # Check whether --enable-static was given.
  7257. if test "${enable_static+set}" = set; then :
  7258. enableval=$enable_static; p=${PACKAGE-default}
  7259. case $enableval in
  7260. yes) enable_static=yes ;;
  7261. no) enable_static=no ;;
  7262. *)
  7263. enable_static=no
  7264. # Look at the argument we got. We use all the common list separators.
  7265. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7266. for pkg in $enableval; do
  7267. IFS="$lt_save_ifs"
  7268. if test "X$pkg" = "X$p"; then
  7269. enable_static=yes
  7270. fi
  7271. done
  7272. IFS="$lt_save_ifs"
  7273. ;;
  7274. esac
  7275. else
  7276. enable_static=yes
  7277. fi
  7278. # Check whether --with-pic was given.
  7279. if test "${with_pic+set}" = set; then :
  7280. withval=$with_pic; pic_mode="$withval"
  7281. else
  7282. pic_mode=default
  7283. fi
  7284. test -z "$pic_mode" && pic_mode=default
  7285. # Check whether --enable-fast-install was given.
  7286. if test "${enable_fast_install+set}" = set; then :
  7287. enableval=$enable_fast_install; p=${PACKAGE-default}
  7288. case $enableval in
  7289. yes) enable_fast_install=yes ;;
  7290. no) enable_fast_install=no ;;
  7291. *)
  7292. enable_fast_install=no
  7293. # Look at the argument we got. We use all the common list separators.
  7294. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7295. for pkg in $enableval; do
  7296. IFS="$lt_save_ifs"
  7297. if test "X$pkg" = "X$p"; then
  7298. enable_fast_install=yes
  7299. fi
  7300. done
  7301. IFS="$lt_save_ifs"
  7302. ;;
  7303. esac
  7304. else
  7305. enable_fast_install=yes
  7306. fi
  7307. # This can be used to rebuild libtool when needed
  7308. LIBTOOL_DEPS="$ltmain"
  7309. # Always use our own libtool.
  7310. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7311. test -z "$LN_S" && LN_S="ln -s"
  7312. if test -n "${ZSH_VERSION+set}" ; then
  7313. setopt NO_GLOB_SUBST
  7314. fi
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7316. $as_echo_n "checking for objdir... " >&6; }
  7317. if test "${lt_cv_objdir+set}" = set; then :
  7318. $as_echo_n "(cached) " >&6
  7319. else
  7320. rm -f .libs 2>/dev/null
  7321. mkdir .libs 2>/dev/null
  7322. if test -d .libs; then
  7323. lt_cv_objdir=.libs
  7324. else
  7325. # MS-DOS does not allow filenames that begin with a dot.
  7326. lt_cv_objdir=_libs
  7327. fi
  7328. rmdir .libs 2>/dev/null
  7329. fi
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7331. $as_echo "$lt_cv_objdir" >&6; }
  7332. objdir=$lt_cv_objdir
  7333. cat >>confdefs.h <<_ACEOF
  7334. #define LT_OBJDIR "$lt_cv_objdir/"
  7335. _ACEOF
  7336. case $host_os in
  7337. aix3*)
  7338. # AIX sometimes has problems with the GCC collect2 program. For some
  7339. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7340. # vanish in a puff of smoke.
  7341. if test "X${COLLECT_NAMES+set}" != Xset; then
  7342. COLLECT_NAMES=
  7343. export COLLECT_NAMES
  7344. fi
  7345. ;;
  7346. esac
  7347. # Global variables:
  7348. ofile=libtool
  7349. can_build_shared=yes
  7350. # All known linkers require a `.a' archive for static linking (except MSVC,
  7351. # which needs '.lib').
  7352. libext=a
  7353. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7354. old_CC="$CC"
  7355. old_CFLAGS="$CFLAGS"
  7356. # Set sane defaults for various variables
  7357. test -z "$CC" && CC=cc
  7358. test -z "$LTCC" && LTCC=$CC
  7359. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7360. test -z "$LD" && LD=ld
  7361. test -z "$ac_objext" && ac_objext=o
  7362. for cc_temp in $compiler""; do
  7363. case $cc_temp in
  7364. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7365. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7366. \-*) ;;
  7367. *) break;;
  7368. esac
  7369. done
  7370. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7371. # Only perform the check for file, if the check method requires it
  7372. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7373. case $deplibs_check_method in
  7374. file_magic*)
  7375. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7377. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7378. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7379. $as_echo_n "(cached) " >&6
  7380. else
  7381. case $MAGIC_CMD in
  7382. [\\/*] | ?:[\\/]*)
  7383. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7384. ;;
  7385. *)
  7386. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7387. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7388. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7389. for ac_dir in $ac_dummy; do
  7390. IFS="$lt_save_ifs"
  7391. test -z "$ac_dir" && ac_dir=.
  7392. if test -f $ac_dir/${ac_tool_prefix}file; then
  7393. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7394. if test -n "$file_magic_test_file"; then
  7395. case $deplibs_check_method in
  7396. "file_magic "*)
  7397. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7398. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7399. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7400. $EGREP "$file_magic_regex" > /dev/null; then
  7401. :
  7402. else
  7403. cat <<_LT_EOF 1>&2
  7404. *** Warning: the command libtool uses to detect shared libraries,
  7405. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7406. *** The result is that libtool may fail to recognize shared libraries
  7407. *** as such. This will affect the creation of libtool libraries that
  7408. *** depend on shared libraries, but programs linked with such libtool
  7409. *** libraries will work regardless of this problem. Nevertheless, you
  7410. *** may want to report the problem to your system manager and/or to
  7411. *** bug-libtool@gnu.org
  7412. _LT_EOF
  7413. fi ;;
  7414. esac
  7415. fi
  7416. break
  7417. fi
  7418. done
  7419. IFS="$lt_save_ifs"
  7420. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7421. ;;
  7422. esac
  7423. fi
  7424. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7425. if test -n "$MAGIC_CMD"; then
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7427. $as_echo "$MAGIC_CMD" >&6; }
  7428. else
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7430. $as_echo "no" >&6; }
  7431. fi
  7432. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7433. if test -n "$ac_tool_prefix"; then
  7434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7435. $as_echo_n "checking for file... " >&6; }
  7436. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7437. $as_echo_n "(cached) " >&6
  7438. else
  7439. case $MAGIC_CMD in
  7440. [\\/*] | ?:[\\/]*)
  7441. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7442. ;;
  7443. *)
  7444. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7445. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7446. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7447. for ac_dir in $ac_dummy; do
  7448. IFS="$lt_save_ifs"
  7449. test -z "$ac_dir" && ac_dir=.
  7450. if test -f $ac_dir/file; then
  7451. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7452. if test -n "$file_magic_test_file"; then
  7453. case $deplibs_check_method in
  7454. "file_magic "*)
  7455. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7456. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7457. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7458. $EGREP "$file_magic_regex" > /dev/null; then
  7459. :
  7460. else
  7461. cat <<_LT_EOF 1>&2
  7462. *** Warning: the command libtool uses to detect shared libraries,
  7463. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7464. *** The result is that libtool may fail to recognize shared libraries
  7465. *** as such. This will affect the creation of libtool libraries that
  7466. *** depend on shared libraries, but programs linked with such libtool
  7467. *** libraries will work regardless of this problem. Nevertheless, you
  7468. *** may want to report the problem to your system manager and/or to
  7469. *** bug-libtool@gnu.org
  7470. _LT_EOF
  7471. fi ;;
  7472. esac
  7473. fi
  7474. break
  7475. fi
  7476. done
  7477. IFS="$lt_save_ifs"
  7478. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7479. ;;
  7480. esac
  7481. fi
  7482. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7483. if test -n "$MAGIC_CMD"; then
  7484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7485. $as_echo "$MAGIC_CMD" >&6; }
  7486. else
  7487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7488. $as_echo "no" >&6; }
  7489. fi
  7490. else
  7491. MAGIC_CMD=:
  7492. fi
  7493. fi
  7494. fi
  7495. ;;
  7496. esac
  7497. # Use C for the default configuration in the libtool script
  7498. lt_save_CC="$CC"
  7499. ac_ext=c
  7500. ac_cpp='$CPP $CPPFLAGS'
  7501. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7502. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7503. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7504. # Source file extension for C test sources.
  7505. ac_ext=c
  7506. # Object file extension for compiled C test sources.
  7507. objext=o
  7508. objext=$objext
  7509. # Code to be used in simple compile tests
  7510. lt_simple_compile_test_code="int some_variable = 0;"
  7511. # Code to be used in simple link tests
  7512. lt_simple_link_test_code='int main(){return(0);}'
  7513. # If no C compiler was specified, use CC.
  7514. LTCC=${LTCC-"$CC"}
  7515. # If no C compiler flags were specified, use CFLAGS.
  7516. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7517. # Allow CC to be a program name with arguments.
  7518. compiler=$CC
  7519. # Save the default compiler, since it gets overwritten when the other
  7520. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7521. compiler_DEFAULT=$CC
  7522. # save warnings/boilerplate of simple test code
  7523. ac_outfile=conftest.$ac_objext
  7524. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7525. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7526. _lt_compiler_boilerplate=`cat conftest.err`
  7527. $RM conftest*
  7528. ac_outfile=conftest.$ac_objext
  7529. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7530. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7531. _lt_linker_boilerplate=`cat conftest.err`
  7532. $RM -r conftest*
  7533. ## CAVEAT EMPTOR:
  7534. ## There is no encapsulation within the following macros, do not change
  7535. ## the running order or otherwise move them around unless you know exactly
  7536. ## what you are doing...
  7537. if test -n "$compiler"; then
  7538. lt_prog_compiler_no_builtin_flag=
  7539. if test "$GCC" = yes; then
  7540. case $cc_basename in
  7541. nvcc*)
  7542. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7543. *)
  7544. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7545. esac
  7546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7547. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7548. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7549. $as_echo_n "(cached) " >&6
  7550. else
  7551. lt_cv_prog_compiler_rtti_exceptions=no
  7552. ac_outfile=conftest.$ac_objext
  7553. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7554. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7555. # Insert the option either (1) after the last *FLAGS variable, or
  7556. # (2) before a word containing "conftest.", or (3) at the end.
  7557. # Note that $ac_compile itself does not contain backslashes and begins
  7558. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7559. # The option is referenced via a variable to avoid confusing sed.
  7560. lt_compile=`echo "$ac_compile" | $SED \
  7561. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7562. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7563. -e 's:$: $lt_compiler_flag:'`
  7564. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7565. (eval "$lt_compile" 2>conftest.err)
  7566. ac_status=$?
  7567. cat conftest.err >&5
  7568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7569. if (exit $ac_status) && test -s "$ac_outfile"; then
  7570. # The compiler can only warn and ignore the option if not recognized
  7571. # So say no if there are warnings other than the usual output.
  7572. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7573. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7574. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7575. lt_cv_prog_compiler_rtti_exceptions=yes
  7576. fi
  7577. fi
  7578. $RM conftest*
  7579. fi
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7581. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7582. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7583. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7584. else
  7585. :
  7586. fi
  7587. fi
  7588. lt_prog_compiler_wl=
  7589. lt_prog_compiler_pic=
  7590. lt_prog_compiler_static=
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7592. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7593. if test "$GCC" = yes; then
  7594. lt_prog_compiler_wl='-Wl,'
  7595. lt_prog_compiler_static='-static'
  7596. case $host_os in
  7597. aix*)
  7598. # All AIX code is PIC.
  7599. if test "$host_cpu" = ia64; then
  7600. # AIX 5 now supports IA64 processor
  7601. lt_prog_compiler_static='-Bstatic'
  7602. fi
  7603. lt_prog_compiler_pic='-fPIC'
  7604. ;;
  7605. amigaos*)
  7606. case $host_cpu in
  7607. powerpc)
  7608. # see comment about AmigaOS4 .so support
  7609. lt_prog_compiler_pic='-fPIC'
  7610. ;;
  7611. m68k)
  7612. # FIXME: we need at least 68020 code to build shared libraries, but
  7613. # adding the `-m68020' flag to GCC prevents building anything better,
  7614. # like `-m68040'.
  7615. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7616. ;;
  7617. esac
  7618. ;;
  7619. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7620. # PIC is the default for these OSes.
  7621. ;;
  7622. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7623. # This hack is so that the source file can tell whether it is being
  7624. # built for inclusion in a dll (and should export symbols for example).
  7625. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7626. # (--disable-auto-import) libraries
  7627. lt_prog_compiler_pic='-DDLL_EXPORT'
  7628. ;;
  7629. darwin* | rhapsody*)
  7630. # PIC is the default on this platform
  7631. # Common symbols not allowed in MH_DYLIB files
  7632. lt_prog_compiler_pic='-fno-common'
  7633. ;;
  7634. haiku*)
  7635. # PIC is the default for Haiku.
  7636. # The "-static" flag exists, but is broken.
  7637. lt_prog_compiler_static=
  7638. ;;
  7639. hpux*)
  7640. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7641. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7642. # sets the default TLS model and affects inlining.
  7643. case $host_cpu in
  7644. hppa*64*)
  7645. # +Z the default
  7646. ;;
  7647. *)
  7648. lt_prog_compiler_pic='-fPIC'
  7649. ;;
  7650. esac
  7651. ;;
  7652. interix[3-9]*)
  7653. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7654. # Instead, we relocate shared libraries at runtime.
  7655. ;;
  7656. msdosdjgpp*)
  7657. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7658. # on systems that don't support them.
  7659. lt_prog_compiler_can_build_shared=no
  7660. enable_shared=no
  7661. ;;
  7662. *nto* | *qnx*)
  7663. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7664. # it will coredump.
  7665. lt_prog_compiler_pic='-fPIC -shared'
  7666. ;;
  7667. sysv4*MP*)
  7668. if test -d /usr/nec; then
  7669. lt_prog_compiler_pic=-Kconform_pic
  7670. fi
  7671. ;;
  7672. *)
  7673. lt_prog_compiler_pic='-fPIC'
  7674. ;;
  7675. esac
  7676. case $cc_basename in
  7677. nvcc*) # Cuda Compiler Driver 2.2
  7678. lt_prog_compiler_wl='-Xlinker '
  7679. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7680. ;;
  7681. esac
  7682. else
  7683. # PORTME Check for flag to pass linker flags through the system compiler.
  7684. case $host_os in
  7685. aix*)
  7686. lt_prog_compiler_wl='-Wl,'
  7687. if test "$host_cpu" = ia64; then
  7688. # AIX 5 now supports IA64 processor
  7689. lt_prog_compiler_static='-Bstatic'
  7690. else
  7691. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7692. fi
  7693. ;;
  7694. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7695. # This hack is so that the source file can tell whether it is being
  7696. # built for inclusion in a dll (and should export symbols for example).
  7697. lt_prog_compiler_pic='-DDLL_EXPORT'
  7698. ;;
  7699. hpux9* | hpux10* | hpux11*)
  7700. lt_prog_compiler_wl='-Wl,'
  7701. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7702. # not for PA HP-UX.
  7703. case $host_cpu in
  7704. hppa*64*|ia64*)
  7705. # +Z the default
  7706. ;;
  7707. *)
  7708. lt_prog_compiler_pic='+Z'
  7709. ;;
  7710. esac
  7711. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7712. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7713. ;;
  7714. irix5* | irix6* | nonstopux*)
  7715. lt_prog_compiler_wl='-Wl,'
  7716. # PIC (with -KPIC) is the default.
  7717. lt_prog_compiler_static='-non_shared'
  7718. ;;
  7719. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7720. case $cc_basename in
  7721. # old Intel for x86_64 which still supported -KPIC.
  7722. ecc*)
  7723. lt_prog_compiler_wl='-Wl,'
  7724. lt_prog_compiler_pic='-KPIC'
  7725. lt_prog_compiler_static='-static'
  7726. ;;
  7727. # icc used to be incompatible with GCC.
  7728. # ICC 10 doesn't accept -KPIC any more.
  7729. icc* | ifort*)
  7730. lt_prog_compiler_wl='-Wl,'
  7731. lt_prog_compiler_pic='-fPIC'
  7732. lt_prog_compiler_static='-static'
  7733. ;;
  7734. # Lahey Fortran 8.1.
  7735. lf95*)
  7736. lt_prog_compiler_wl='-Wl,'
  7737. lt_prog_compiler_pic='--shared'
  7738. lt_prog_compiler_static='--static'
  7739. ;;
  7740. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7741. # Portland Group compilers (*not* the Pentium gcc compiler,
  7742. # which looks to be a dead project)
  7743. lt_prog_compiler_wl='-Wl,'
  7744. lt_prog_compiler_pic='-fpic'
  7745. lt_prog_compiler_static='-Bstatic'
  7746. ;;
  7747. ccc*)
  7748. lt_prog_compiler_wl='-Wl,'
  7749. # All Alpha code is PIC.
  7750. lt_prog_compiler_static='-non_shared'
  7751. ;;
  7752. xl* | bgxl* | bgf* | mpixl*)
  7753. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7754. lt_prog_compiler_wl='-Wl,'
  7755. lt_prog_compiler_pic='-qpic'
  7756. lt_prog_compiler_static='-qstaticlink'
  7757. ;;
  7758. *)
  7759. case `$CC -V 2>&1 | sed 5q` in
  7760. *Sun\ F* | *Sun*Fortran*)
  7761. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7762. lt_prog_compiler_pic='-KPIC'
  7763. lt_prog_compiler_static='-Bstatic'
  7764. lt_prog_compiler_wl=''
  7765. ;;
  7766. *Sun\ C*)
  7767. # Sun C 5.9
  7768. lt_prog_compiler_pic='-KPIC'
  7769. lt_prog_compiler_static='-Bstatic'
  7770. lt_prog_compiler_wl='-Wl,'
  7771. ;;
  7772. esac
  7773. ;;
  7774. esac
  7775. ;;
  7776. newsos6)
  7777. lt_prog_compiler_pic='-KPIC'
  7778. lt_prog_compiler_static='-Bstatic'
  7779. ;;
  7780. *nto* | *qnx*)
  7781. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7782. # it will coredump.
  7783. lt_prog_compiler_pic='-fPIC -shared'
  7784. ;;
  7785. osf3* | osf4* | osf5*)
  7786. lt_prog_compiler_wl='-Wl,'
  7787. # All OSF/1 code is PIC.
  7788. lt_prog_compiler_static='-non_shared'
  7789. ;;
  7790. rdos*)
  7791. lt_prog_compiler_static='-non_shared'
  7792. ;;
  7793. solaris*)
  7794. lt_prog_compiler_pic='-KPIC'
  7795. lt_prog_compiler_static='-Bstatic'
  7796. case $cc_basename in
  7797. f77* | f90* | f95*)
  7798. lt_prog_compiler_wl='-Qoption ld ';;
  7799. *)
  7800. lt_prog_compiler_wl='-Wl,';;
  7801. esac
  7802. ;;
  7803. sunos4*)
  7804. lt_prog_compiler_wl='-Qoption ld '
  7805. lt_prog_compiler_pic='-PIC'
  7806. lt_prog_compiler_static='-Bstatic'
  7807. ;;
  7808. sysv4 | sysv4.2uw2* | sysv4.3*)
  7809. lt_prog_compiler_wl='-Wl,'
  7810. lt_prog_compiler_pic='-KPIC'
  7811. lt_prog_compiler_static='-Bstatic'
  7812. ;;
  7813. sysv4*MP*)
  7814. if test -d /usr/nec ;then
  7815. lt_prog_compiler_pic='-Kconform_pic'
  7816. lt_prog_compiler_static='-Bstatic'
  7817. fi
  7818. ;;
  7819. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7820. lt_prog_compiler_wl='-Wl,'
  7821. lt_prog_compiler_pic='-KPIC'
  7822. lt_prog_compiler_static='-Bstatic'
  7823. ;;
  7824. unicos*)
  7825. lt_prog_compiler_wl='-Wl,'
  7826. lt_prog_compiler_can_build_shared=no
  7827. ;;
  7828. uts4*)
  7829. lt_prog_compiler_pic='-pic'
  7830. lt_prog_compiler_static='-Bstatic'
  7831. ;;
  7832. *)
  7833. lt_prog_compiler_can_build_shared=no
  7834. ;;
  7835. esac
  7836. fi
  7837. case $host_os in
  7838. # For platforms which do not support PIC, -DPIC is meaningless:
  7839. *djgpp*)
  7840. lt_prog_compiler_pic=
  7841. ;;
  7842. *)
  7843. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7844. ;;
  7845. esac
  7846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7847. $as_echo "$lt_prog_compiler_pic" >&6; }
  7848. #
  7849. # Check to make sure the PIC flag actually works.
  7850. #
  7851. if test -n "$lt_prog_compiler_pic"; then
  7852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7853. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7854. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7855. $as_echo_n "(cached) " >&6
  7856. else
  7857. lt_cv_prog_compiler_pic_works=no
  7858. ac_outfile=conftest.$ac_objext
  7859. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7860. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7861. # Insert the option either (1) after the last *FLAGS variable, or
  7862. # (2) before a word containing "conftest.", or (3) at the end.
  7863. # Note that $ac_compile itself does not contain backslashes and begins
  7864. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7865. # The option is referenced via a variable to avoid confusing sed.
  7866. lt_compile=`echo "$ac_compile" | $SED \
  7867. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7868. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7869. -e 's:$: $lt_compiler_flag:'`
  7870. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7871. (eval "$lt_compile" 2>conftest.err)
  7872. ac_status=$?
  7873. cat conftest.err >&5
  7874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7875. if (exit $ac_status) && test -s "$ac_outfile"; then
  7876. # The compiler can only warn and ignore the option if not recognized
  7877. # So say no if there are warnings other than the usual output.
  7878. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7879. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7880. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7881. lt_cv_prog_compiler_pic_works=yes
  7882. fi
  7883. fi
  7884. $RM conftest*
  7885. fi
  7886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7887. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7888. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7889. case $lt_prog_compiler_pic in
  7890. "" | " "*) ;;
  7891. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7892. esac
  7893. else
  7894. lt_prog_compiler_pic=
  7895. lt_prog_compiler_can_build_shared=no
  7896. fi
  7897. fi
  7898. #
  7899. # Check to make sure the static flag actually works.
  7900. #
  7901. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7903. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7904. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7905. $as_echo_n "(cached) " >&6
  7906. else
  7907. lt_cv_prog_compiler_static_works=no
  7908. save_LDFLAGS="$LDFLAGS"
  7909. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7910. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7911. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7912. # The linker can only warn and ignore the option if not recognized
  7913. # So say no if there are warnings
  7914. if test -s conftest.err; then
  7915. # Append any errors to the config.log.
  7916. cat conftest.err 1>&5
  7917. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7918. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7919. if diff conftest.exp conftest.er2 >/dev/null; then
  7920. lt_cv_prog_compiler_static_works=yes
  7921. fi
  7922. else
  7923. lt_cv_prog_compiler_static_works=yes
  7924. fi
  7925. fi
  7926. $RM -r conftest*
  7927. LDFLAGS="$save_LDFLAGS"
  7928. fi
  7929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7930. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7931. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7932. :
  7933. else
  7934. lt_prog_compiler_static=
  7935. fi
  7936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7937. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7938. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7939. $as_echo_n "(cached) " >&6
  7940. else
  7941. lt_cv_prog_compiler_c_o=no
  7942. $RM -r conftest 2>/dev/null
  7943. mkdir conftest
  7944. cd conftest
  7945. mkdir out
  7946. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7947. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7948. # Insert the option either (1) after the last *FLAGS variable, or
  7949. # (2) before a word containing "conftest.", or (3) at the end.
  7950. # Note that $ac_compile itself does not contain backslashes and begins
  7951. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7952. lt_compile=`echo "$ac_compile" | $SED \
  7953. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7954. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7955. -e 's:$: $lt_compiler_flag:'`
  7956. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7957. (eval "$lt_compile" 2>out/conftest.err)
  7958. ac_status=$?
  7959. cat out/conftest.err >&5
  7960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7961. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7962. then
  7963. # The compiler can only warn and ignore the option if not recognized
  7964. # So say no if there are warnings
  7965. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7966. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7967. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7968. lt_cv_prog_compiler_c_o=yes
  7969. fi
  7970. fi
  7971. chmod u+w . 2>&5
  7972. $RM conftest*
  7973. # SGI C++ compiler will create directory out/ii_files/ for
  7974. # template instantiation
  7975. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7976. $RM out/* && rmdir out
  7977. cd ..
  7978. $RM -r conftest
  7979. $RM conftest*
  7980. fi
  7981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7982. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7984. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7985. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7986. $as_echo_n "(cached) " >&6
  7987. else
  7988. lt_cv_prog_compiler_c_o=no
  7989. $RM -r conftest 2>/dev/null
  7990. mkdir conftest
  7991. cd conftest
  7992. mkdir out
  7993. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7994. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7995. # Insert the option either (1) after the last *FLAGS variable, or
  7996. # (2) before a word containing "conftest.", or (3) at the end.
  7997. # Note that $ac_compile itself does not contain backslashes and begins
  7998. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7999. lt_compile=`echo "$ac_compile" | $SED \
  8000. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8001. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8002. -e 's:$: $lt_compiler_flag:'`
  8003. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8004. (eval "$lt_compile" 2>out/conftest.err)
  8005. ac_status=$?
  8006. cat out/conftest.err >&5
  8007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8008. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8009. then
  8010. # The compiler can only warn and ignore the option if not recognized
  8011. # So say no if there are warnings
  8012. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8013. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8014. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8015. lt_cv_prog_compiler_c_o=yes
  8016. fi
  8017. fi
  8018. chmod u+w . 2>&5
  8019. $RM conftest*
  8020. # SGI C++ compiler will create directory out/ii_files/ for
  8021. # template instantiation
  8022. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8023. $RM out/* && rmdir out
  8024. cd ..
  8025. $RM -r conftest
  8026. $RM conftest*
  8027. fi
  8028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8029. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8030. hard_links="nottested"
  8031. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8032. # do not overwrite the value of need_locks provided by the user
  8033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8034. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8035. hard_links=yes
  8036. $RM conftest*
  8037. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8038. touch conftest.a
  8039. ln conftest.a conftest.b 2>&5 || hard_links=no
  8040. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8042. $as_echo "$hard_links" >&6; }
  8043. if test "$hard_links" = no; then
  8044. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8045. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8046. need_locks=warn
  8047. fi
  8048. else
  8049. need_locks=no
  8050. fi
  8051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8052. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8053. runpath_var=
  8054. allow_undefined_flag=
  8055. always_export_symbols=no
  8056. archive_cmds=
  8057. archive_expsym_cmds=
  8058. compiler_needs_object=no
  8059. enable_shared_with_static_runtimes=no
  8060. export_dynamic_flag_spec=
  8061. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8062. hardcode_automatic=no
  8063. hardcode_direct=no
  8064. hardcode_direct_absolute=no
  8065. hardcode_libdir_flag_spec=
  8066. hardcode_libdir_flag_spec_ld=
  8067. hardcode_libdir_separator=
  8068. hardcode_minus_L=no
  8069. hardcode_shlibpath_var=unsupported
  8070. inherit_rpath=no
  8071. link_all_deplibs=unknown
  8072. module_cmds=
  8073. module_expsym_cmds=
  8074. old_archive_from_new_cmds=
  8075. old_archive_from_expsyms_cmds=
  8076. thread_safe_flag_spec=
  8077. whole_archive_flag_spec=
  8078. # include_expsyms should be a list of space-separated symbols to be *always*
  8079. # included in the symbol list
  8080. include_expsyms=
  8081. # exclude_expsyms can be an extended regexp of symbols to exclude
  8082. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8083. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8084. # as well as any symbol that contains `d'.
  8085. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8086. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8087. # platforms (ab)use it in PIC code, but their linkers get confused if
  8088. # the symbol is explicitly referenced. Since portable code cannot
  8089. # rely on this symbol name, it's probably fine to never include it in
  8090. # preloaded symbol tables.
  8091. # Exclude shared library initialization/finalization symbols.
  8092. extract_expsyms_cmds=
  8093. case $host_os in
  8094. cygwin* | mingw* | pw32* | cegcc*)
  8095. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8096. # When not using gcc, we currently assume that we are using
  8097. # Microsoft Visual C++.
  8098. if test "$GCC" != yes; then
  8099. with_gnu_ld=no
  8100. fi
  8101. ;;
  8102. interix*)
  8103. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8104. with_gnu_ld=yes
  8105. ;;
  8106. openbsd*)
  8107. with_gnu_ld=no
  8108. ;;
  8109. esac
  8110. ld_shlibs=yes
  8111. # On some targets, GNU ld is compatible enough with the native linker
  8112. # that we're better off using the native interface for both.
  8113. lt_use_gnu_ld_interface=no
  8114. if test "$with_gnu_ld" = yes; then
  8115. case $host_os in
  8116. aix*)
  8117. # The AIX port of GNU ld has always aspired to compatibility
  8118. # with the native linker. However, as the warning in the GNU ld
  8119. # block says, versions before 2.19.5* couldn't really create working
  8120. # shared libraries, regardless of the interface used.
  8121. case `$LD -v 2>&1` in
  8122. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8123. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8124. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8125. *)
  8126. lt_use_gnu_ld_interface=yes
  8127. ;;
  8128. esac
  8129. ;;
  8130. *)
  8131. lt_use_gnu_ld_interface=yes
  8132. ;;
  8133. esac
  8134. fi
  8135. if test "$lt_use_gnu_ld_interface" = yes; then
  8136. # If archive_cmds runs LD, not CC, wlarc should be empty
  8137. wlarc='${wl}'
  8138. # Set some defaults for GNU ld with shared library support. These
  8139. # are reset later if shared libraries are not supported. Putting them
  8140. # here allows them to be overridden if necessary.
  8141. runpath_var=LD_RUN_PATH
  8142. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8143. export_dynamic_flag_spec='${wl}--export-dynamic'
  8144. # ancient GNU ld didn't support --whole-archive et. al.
  8145. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8146. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8147. else
  8148. whole_archive_flag_spec=
  8149. fi
  8150. supports_anon_versioning=no
  8151. case `$LD -v 2>&1` in
  8152. *GNU\ gold*) supports_anon_versioning=yes ;;
  8153. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8154. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8155. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8156. *\ 2.11.*) ;; # other 2.11 versions
  8157. *) supports_anon_versioning=yes ;;
  8158. esac
  8159. # See if GNU ld supports shared libraries.
  8160. case $host_os in
  8161. aix[3-9]*)
  8162. # On AIX/PPC, the GNU linker is very broken
  8163. if test "$host_cpu" != ia64; then
  8164. ld_shlibs=no
  8165. cat <<_LT_EOF 1>&2
  8166. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8167. *** to be unable to reliably create shared libraries on AIX.
  8168. *** Therefore, libtool is disabling shared libraries support. If you
  8169. *** really care for shared libraries, you may want to install binutils
  8170. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8171. *** You will then need to restart the configuration process.
  8172. _LT_EOF
  8173. fi
  8174. ;;
  8175. amigaos*)
  8176. case $host_cpu in
  8177. powerpc)
  8178. # see comment about AmigaOS4 .so support
  8179. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8180. archive_expsym_cmds=''
  8181. ;;
  8182. m68k)
  8183. 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)'
  8184. hardcode_libdir_flag_spec='-L$libdir'
  8185. hardcode_minus_L=yes
  8186. ;;
  8187. esac
  8188. ;;
  8189. beos*)
  8190. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8191. allow_undefined_flag=unsupported
  8192. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8193. # support --undefined. This deserves some investigation. FIXME
  8194. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8195. else
  8196. ld_shlibs=no
  8197. fi
  8198. ;;
  8199. cygwin* | mingw* | pw32* | cegcc*)
  8200. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8201. # as there is no search path for DLLs.
  8202. hardcode_libdir_flag_spec='-L$libdir'
  8203. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8204. allow_undefined_flag=unsupported
  8205. always_export_symbols=no
  8206. enable_shared_with_static_runtimes=yes
  8207. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8208. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8209. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8210. # If the export-symbols file already is a .def file (1st line
  8211. # is EXPORTS), use it as is; otherwise, prepend...
  8212. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8213. cp $export_symbols $output_objdir/$soname.def;
  8214. else
  8215. echo EXPORTS > $output_objdir/$soname.def;
  8216. cat $export_symbols >> $output_objdir/$soname.def;
  8217. fi~
  8218. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8219. else
  8220. ld_shlibs=no
  8221. fi
  8222. ;;
  8223. haiku*)
  8224. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8225. link_all_deplibs=yes
  8226. ;;
  8227. interix[3-9]*)
  8228. hardcode_direct=no
  8229. hardcode_shlibpath_var=no
  8230. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8231. export_dynamic_flag_spec='${wl}-E'
  8232. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8233. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8234. # default) and relocated if they conflict, which is a slow very memory
  8235. # consuming and fragmenting process. To avoid this, we pick a random,
  8236. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8237. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8238. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8239. 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'
  8240. ;;
  8241. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8242. tmp_diet=no
  8243. if test "$host_os" = linux-dietlibc; then
  8244. case $cc_basename in
  8245. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8246. esac
  8247. fi
  8248. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8249. && test "$tmp_diet" = no
  8250. then
  8251. tmp_addflag=' $pic_flag'
  8252. tmp_sharedflag='-shared'
  8253. case $cc_basename,$host_cpu in
  8254. pgcc*) # Portland Group C compiler
  8255. 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'
  8256. tmp_addflag=' $pic_flag'
  8257. ;;
  8258. pgf77* | pgf90* | pgf95* | pgfortran*)
  8259. # Portland Group f77 and f90 compilers
  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 -Mnomain' ;;
  8262. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8263. tmp_addflag=' -i_dynamic' ;;
  8264. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8265. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8266. ifc* | ifort*) # Intel Fortran compiler
  8267. tmp_addflag=' -nofor_main' ;;
  8268. lf95*) # Lahey Fortran 8.1
  8269. whole_archive_flag_spec=
  8270. tmp_sharedflag='--shared' ;;
  8271. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8272. tmp_sharedflag='-qmkshrobj'
  8273. tmp_addflag= ;;
  8274. nvcc*) # Cuda Compiler Driver 2.2
  8275. 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'
  8276. compiler_needs_object=yes
  8277. ;;
  8278. esac
  8279. case `$CC -V 2>&1 | sed 5q` in
  8280. *Sun\ C*) # Sun C 5.9
  8281. 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'
  8282. compiler_needs_object=yes
  8283. tmp_sharedflag='-G' ;;
  8284. *Sun\ F*) # Sun Fortran 8.3
  8285. tmp_sharedflag='-G' ;;
  8286. esac
  8287. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8288. if test "x$supports_anon_versioning" = xyes; then
  8289. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8290. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8291. echo "local: *; };" >> $output_objdir/$libname.ver~
  8292. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8293. fi
  8294. case $cc_basename in
  8295. xlf* | bgf* | bgxlf* | mpixlf*)
  8296. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8297. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8298. hardcode_libdir_flag_spec=
  8299. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8300. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8301. if test "x$supports_anon_versioning" = xyes; then
  8302. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8303. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8304. echo "local: *; };" >> $output_objdir/$libname.ver~
  8305. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8306. fi
  8307. ;;
  8308. esac
  8309. else
  8310. ld_shlibs=no
  8311. fi
  8312. ;;
  8313. netbsd*)
  8314. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8315. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8316. wlarc=
  8317. else
  8318. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8319. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8320. fi
  8321. ;;
  8322. solaris*)
  8323. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8324. ld_shlibs=no
  8325. cat <<_LT_EOF 1>&2
  8326. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8327. *** create shared libraries on Solaris systems. Therefore, libtool
  8328. *** is disabling shared libraries support. We urge you to upgrade GNU
  8329. *** binutils to release 2.9.1 or newer. Another option is to modify
  8330. *** your PATH or compiler configuration so that the native linker is
  8331. *** used, and then restart.
  8332. _LT_EOF
  8333. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8334. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8335. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8336. else
  8337. ld_shlibs=no
  8338. fi
  8339. ;;
  8340. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8341. case `$LD -v 2>&1` in
  8342. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8343. ld_shlibs=no
  8344. cat <<_LT_EOF 1>&2
  8345. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8346. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8347. *** is disabling shared libraries support. We urge you to upgrade GNU
  8348. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8349. *** your PATH or compiler configuration so that the native linker is
  8350. *** used, and then restart.
  8351. _LT_EOF
  8352. ;;
  8353. *)
  8354. # For security reasons, it is highly recommended that you always
  8355. # use absolute paths for naming shared libraries, and exclude the
  8356. # DT_RUNPATH tag from executables and libraries. But doing so
  8357. # requires that you compile everything twice, which is a pain.
  8358. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8359. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8360. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8361. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8362. else
  8363. ld_shlibs=no
  8364. fi
  8365. ;;
  8366. esac
  8367. ;;
  8368. sunos4*)
  8369. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8370. wlarc=
  8371. hardcode_direct=yes
  8372. hardcode_shlibpath_var=no
  8373. ;;
  8374. *)
  8375. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8376. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8377. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8378. else
  8379. ld_shlibs=no
  8380. fi
  8381. ;;
  8382. esac
  8383. if test "$ld_shlibs" = no; then
  8384. runpath_var=
  8385. hardcode_libdir_flag_spec=
  8386. export_dynamic_flag_spec=
  8387. whole_archive_flag_spec=
  8388. fi
  8389. else
  8390. # PORTME fill in a description of your system's linker (not GNU ld)
  8391. case $host_os in
  8392. aix3*)
  8393. allow_undefined_flag=unsupported
  8394. always_export_symbols=yes
  8395. 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'
  8396. # Note: this linker hardcodes the directories in LIBPATH if there
  8397. # are no directories specified by -L.
  8398. hardcode_minus_L=yes
  8399. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8400. # Neither direct hardcoding nor static linking is supported with a
  8401. # broken collect2.
  8402. hardcode_direct=unsupported
  8403. fi
  8404. ;;
  8405. aix[4-9]*)
  8406. if test "$host_cpu" = ia64; then
  8407. # On IA64, the linker does run time linking by default, so we don't
  8408. # have to do anything special.
  8409. aix_use_runtimelinking=no
  8410. exp_sym_flag='-Bexport'
  8411. no_entry_flag=""
  8412. else
  8413. # If we're using GNU nm, then we don't want the "-C" option.
  8414. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8415. # Also, AIX nm treats weak defined symbols like other global
  8416. # defined symbols, whereas GNU nm marks them as "W".
  8417. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8418. 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'
  8419. else
  8420. 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'
  8421. fi
  8422. aix_use_runtimelinking=no
  8423. # Test if we are trying to use run time linking or normal
  8424. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8425. # need to do runtime linking.
  8426. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8427. for ld_flag in $LDFLAGS; do
  8428. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8429. aix_use_runtimelinking=yes
  8430. break
  8431. fi
  8432. done
  8433. ;;
  8434. esac
  8435. exp_sym_flag='-bexport'
  8436. no_entry_flag='-bnoentry'
  8437. fi
  8438. # When large executables or shared objects are built, AIX ld can
  8439. # have problems creating the table of contents. If linking a library
  8440. # or program results in "error TOC overflow" add -mminimal-toc to
  8441. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8442. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8443. archive_cmds=''
  8444. hardcode_direct=yes
  8445. hardcode_direct_absolute=yes
  8446. hardcode_libdir_separator=':'
  8447. link_all_deplibs=yes
  8448. file_list_spec='${wl}-f,'
  8449. if test "$GCC" = yes; then
  8450. case $host_os in aix4.[012]|aix4.[012].*)
  8451. # We only want to do this on AIX 4.2 and lower, the check
  8452. # below for broken collect2 doesn't work under 4.3+
  8453. collect2name=`${CC} -print-prog-name=collect2`
  8454. if test -f "$collect2name" &&
  8455. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8456. then
  8457. # We have reworked collect2
  8458. :
  8459. else
  8460. # We have old collect2
  8461. hardcode_direct=unsupported
  8462. # It fails to find uninstalled libraries when the uninstalled
  8463. # path is not listed in the libpath. Setting hardcode_minus_L
  8464. # to unsupported forces relinking
  8465. hardcode_minus_L=yes
  8466. hardcode_libdir_flag_spec='-L$libdir'
  8467. hardcode_libdir_separator=
  8468. fi
  8469. ;;
  8470. esac
  8471. shared_flag='-shared'
  8472. if test "$aix_use_runtimelinking" = yes; then
  8473. shared_flag="$shared_flag "'${wl}-G'
  8474. fi
  8475. else
  8476. # not using gcc
  8477. if test "$host_cpu" = ia64; then
  8478. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8479. # chokes on -Wl,-G. The following line is correct:
  8480. shared_flag='-G'
  8481. else
  8482. if test "$aix_use_runtimelinking" = yes; then
  8483. shared_flag='${wl}-G'
  8484. else
  8485. shared_flag='${wl}-bM:SRE'
  8486. fi
  8487. fi
  8488. fi
  8489. export_dynamic_flag_spec='${wl}-bexpall'
  8490. # It seems that -bexpall does not export symbols beginning with
  8491. # underscore (_), so it is better to generate a list of symbols to export.
  8492. always_export_symbols=yes
  8493. if test "$aix_use_runtimelinking" = yes; then
  8494. # Warning - without using the other runtime loading flags (-brtl),
  8495. # -berok will link without error, but may produce a broken library.
  8496. allow_undefined_flag='-berok'
  8497. # Determine the default libpath from the value encoded in an
  8498. # empty executable.
  8499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8500. /* end confdefs.h. */
  8501. int
  8502. main ()
  8503. {
  8504. ;
  8505. return 0;
  8506. }
  8507. _ACEOF
  8508. if ac_fn_c_try_link "$LINENO"; then :
  8509. lt_aix_libpath_sed='
  8510. /Import File Strings/,/^$/ {
  8511. /^0/ {
  8512. s/^0 *\(.*\)$/\1/
  8513. p
  8514. }
  8515. }'
  8516. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8517. # Check for a 64-bit object if we didn't find anything.
  8518. if test -z "$aix_libpath"; then
  8519. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8520. fi
  8521. fi
  8522. rm -f core conftest.err conftest.$ac_objext \
  8523. conftest$ac_exeext conftest.$ac_ext
  8524. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8525. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8526. 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"
  8527. else
  8528. if test "$host_cpu" = ia64; then
  8529. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8530. allow_undefined_flag="-z nodefs"
  8531. 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"
  8532. else
  8533. # Determine the default libpath from the value encoded in an
  8534. # empty executable.
  8535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8536. /* end confdefs.h. */
  8537. int
  8538. main ()
  8539. {
  8540. ;
  8541. return 0;
  8542. }
  8543. _ACEOF
  8544. if ac_fn_c_try_link "$LINENO"; then :
  8545. lt_aix_libpath_sed='
  8546. /Import File Strings/,/^$/ {
  8547. /^0/ {
  8548. s/^0 *\(.*\)$/\1/
  8549. p
  8550. }
  8551. }'
  8552. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8553. # Check for a 64-bit object if we didn't find anything.
  8554. if test -z "$aix_libpath"; then
  8555. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8556. fi
  8557. fi
  8558. rm -f core conftest.err conftest.$ac_objext \
  8559. conftest$ac_exeext conftest.$ac_ext
  8560. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8561. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8562. # Warning - without using the other run time loading flags,
  8563. # -berok will link without error, but may produce a broken library.
  8564. no_undefined_flag=' ${wl}-bernotok'
  8565. allow_undefined_flag=' ${wl}-berok'
  8566. if test "$with_gnu_ld" = yes; then
  8567. # We only use this code for GNU lds that support --whole-archive.
  8568. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8569. else
  8570. # Exported symbols can be pulled into shared objects from archives
  8571. whole_archive_flag_spec='$convenience'
  8572. fi
  8573. archive_cmds_need_lc=yes
  8574. # This is similar to how AIX traditionally builds its shared libraries.
  8575. 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'
  8576. fi
  8577. fi
  8578. ;;
  8579. amigaos*)
  8580. case $host_cpu in
  8581. powerpc)
  8582. # see comment about AmigaOS4 .so support
  8583. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8584. archive_expsym_cmds=''
  8585. ;;
  8586. m68k)
  8587. 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)'
  8588. hardcode_libdir_flag_spec='-L$libdir'
  8589. hardcode_minus_L=yes
  8590. ;;
  8591. esac
  8592. ;;
  8593. bsdi[45]*)
  8594. export_dynamic_flag_spec=-rdynamic
  8595. ;;
  8596. cygwin* | mingw* | pw32* | cegcc*)
  8597. # When not using gcc, we currently assume that we are using
  8598. # Microsoft Visual C++.
  8599. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8600. # no search path for DLLs.
  8601. hardcode_libdir_flag_spec=' '
  8602. allow_undefined_flag=unsupported
  8603. # Tell ltmain to make .lib files, not .a files.
  8604. libext=lib
  8605. # Tell ltmain to make .dll files, not .so files.
  8606. shrext_cmds=".dll"
  8607. # FIXME: Setting linknames here is a bad hack.
  8608. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8609. # The linker will automatically build a .lib file if we build a DLL.
  8610. old_archive_from_new_cmds='true'
  8611. # FIXME: Should let the user specify the lib program.
  8612. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8613. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8614. enable_shared_with_static_runtimes=yes
  8615. ;;
  8616. darwin* | rhapsody*)
  8617. archive_cmds_need_lc=no
  8618. hardcode_direct=no
  8619. hardcode_automatic=yes
  8620. hardcode_shlibpath_var=unsupported
  8621. if test "$lt_cv_ld_force_load" = "yes"; then
  8622. 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\"`'
  8623. else
  8624. whole_archive_flag_spec=''
  8625. fi
  8626. link_all_deplibs=yes
  8627. allow_undefined_flag="$_lt_dar_allow_undefined"
  8628. case $cc_basename in
  8629. ifort*) _lt_dar_can_shared=yes ;;
  8630. *) _lt_dar_can_shared=$GCC ;;
  8631. esac
  8632. if test "$_lt_dar_can_shared" = "yes"; then
  8633. output_verbose_link_cmd=func_echo_all
  8634. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8635. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8636. 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}"
  8637. 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}"
  8638. else
  8639. ld_shlibs=no
  8640. fi
  8641. ;;
  8642. dgux*)
  8643. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8644. hardcode_libdir_flag_spec='-L$libdir'
  8645. hardcode_shlibpath_var=no
  8646. ;;
  8647. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8648. # support. Future versions do this automatically, but an explicit c++rt0.o
  8649. # does not break anything, and helps significantly (at the cost of a little
  8650. # extra space).
  8651. freebsd2.2*)
  8652. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8653. hardcode_libdir_flag_spec='-R$libdir'
  8654. hardcode_direct=yes
  8655. hardcode_shlibpath_var=no
  8656. ;;
  8657. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8658. freebsd2.*)
  8659. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8660. hardcode_direct=yes
  8661. hardcode_minus_L=yes
  8662. hardcode_shlibpath_var=no
  8663. ;;
  8664. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8665. freebsd* | dragonfly*)
  8666. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8667. hardcode_libdir_flag_spec='-R$libdir'
  8668. hardcode_direct=yes
  8669. hardcode_shlibpath_var=no
  8670. ;;
  8671. hpux9*)
  8672. if test "$GCC" = yes; then
  8673. 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'
  8674. else
  8675. 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'
  8676. fi
  8677. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8678. hardcode_libdir_separator=:
  8679. hardcode_direct=yes
  8680. # hardcode_minus_L: Not really in the search PATH,
  8681. # but as the default location of the library.
  8682. hardcode_minus_L=yes
  8683. export_dynamic_flag_spec='${wl}-E'
  8684. ;;
  8685. hpux10*)
  8686. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8687. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8688. else
  8689. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8690. fi
  8691. if test "$with_gnu_ld" = no; then
  8692. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8693. hardcode_libdir_flag_spec_ld='+b $libdir'
  8694. hardcode_libdir_separator=:
  8695. hardcode_direct=yes
  8696. hardcode_direct_absolute=yes
  8697. export_dynamic_flag_spec='${wl}-E'
  8698. # hardcode_minus_L: Not really in the search PATH,
  8699. # but as the default location of the library.
  8700. hardcode_minus_L=yes
  8701. fi
  8702. ;;
  8703. hpux11*)
  8704. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8705. case $host_cpu in
  8706. hppa*64*)
  8707. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8708. ;;
  8709. ia64*)
  8710. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8711. ;;
  8712. *)
  8713. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8714. ;;
  8715. esac
  8716. else
  8717. case $host_cpu in
  8718. hppa*64*)
  8719. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8720. ;;
  8721. ia64*)
  8722. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8723. ;;
  8724. *)
  8725. # Older versions of the 11.00 compiler do not understand -b yet
  8726. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8728. $as_echo_n "checking if $CC understands -b... " >&6; }
  8729. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8730. $as_echo_n "(cached) " >&6
  8731. else
  8732. lt_cv_prog_compiler__b=no
  8733. save_LDFLAGS="$LDFLAGS"
  8734. LDFLAGS="$LDFLAGS -b"
  8735. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8736. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8737. # The linker can only warn and ignore the option if not recognized
  8738. # So say no if there are warnings
  8739. if test -s conftest.err; then
  8740. # Append any errors to the config.log.
  8741. cat conftest.err 1>&5
  8742. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8743. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8744. if diff conftest.exp conftest.er2 >/dev/null; then
  8745. lt_cv_prog_compiler__b=yes
  8746. fi
  8747. else
  8748. lt_cv_prog_compiler__b=yes
  8749. fi
  8750. fi
  8751. $RM -r conftest*
  8752. LDFLAGS="$save_LDFLAGS"
  8753. fi
  8754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8755. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8756. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8757. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8758. else
  8759. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8760. fi
  8761. ;;
  8762. esac
  8763. fi
  8764. if test "$with_gnu_ld" = no; then
  8765. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8766. hardcode_libdir_separator=:
  8767. case $host_cpu in
  8768. hppa*64*|ia64*)
  8769. hardcode_direct=no
  8770. hardcode_shlibpath_var=no
  8771. ;;
  8772. *)
  8773. hardcode_direct=yes
  8774. hardcode_direct_absolute=yes
  8775. export_dynamic_flag_spec='${wl}-E'
  8776. # hardcode_minus_L: Not really in the search PATH,
  8777. # but as the default location of the library.
  8778. hardcode_minus_L=yes
  8779. ;;
  8780. esac
  8781. fi
  8782. ;;
  8783. irix5* | irix6* | nonstopux*)
  8784. if test "$GCC" = yes; then
  8785. 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'
  8786. # Try to use the -exported_symbol ld option, if it does not
  8787. # work, assume that -exports_file does not work either and
  8788. # implicitly export all symbols.
  8789. save_LDFLAGS="$LDFLAGS"
  8790. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8792. /* end confdefs.h. */
  8793. int foo(void) {}
  8794. _ACEOF
  8795. if ac_fn_c_try_link "$LINENO"; then :
  8796. 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'
  8797. fi
  8798. rm -f core conftest.err conftest.$ac_objext \
  8799. conftest$ac_exeext conftest.$ac_ext
  8800. LDFLAGS="$save_LDFLAGS"
  8801. else
  8802. 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'
  8803. 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'
  8804. fi
  8805. archive_cmds_need_lc='no'
  8806. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8807. hardcode_libdir_separator=:
  8808. inherit_rpath=yes
  8809. link_all_deplibs=yes
  8810. ;;
  8811. netbsd*)
  8812. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8813. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8814. else
  8815. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8816. fi
  8817. hardcode_libdir_flag_spec='-R$libdir'
  8818. hardcode_direct=yes
  8819. hardcode_shlibpath_var=no
  8820. ;;
  8821. newsos6)
  8822. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8823. hardcode_direct=yes
  8824. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8825. hardcode_libdir_separator=:
  8826. hardcode_shlibpath_var=no
  8827. ;;
  8828. *nto* | *qnx*)
  8829. ;;
  8830. openbsd*)
  8831. if test -f /usr/libexec/ld.so; then
  8832. hardcode_direct=yes
  8833. hardcode_shlibpath_var=no
  8834. hardcode_direct_absolute=yes
  8835. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8836. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8837. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8838. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8839. export_dynamic_flag_spec='${wl}-E'
  8840. else
  8841. case $host_os in
  8842. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8843. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8844. hardcode_libdir_flag_spec='-R$libdir'
  8845. ;;
  8846. *)
  8847. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8848. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8849. ;;
  8850. esac
  8851. fi
  8852. else
  8853. ld_shlibs=no
  8854. fi
  8855. ;;
  8856. os2*)
  8857. hardcode_libdir_flag_spec='-L$libdir'
  8858. hardcode_minus_L=yes
  8859. allow_undefined_flag=unsupported
  8860. 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'
  8861. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8862. ;;
  8863. osf3*)
  8864. if test "$GCC" = yes; then
  8865. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8866. 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'
  8867. else
  8868. allow_undefined_flag=' -expect_unresolved \*'
  8869. 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'
  8870. fi
  8871. archive_cmds_need_lc='no'
  8872. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8873. hardcode_libdir_separator=:
  8874. ;;
  8875. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8876. if test "$GCC" = yes; then
  8877. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8878. 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'
  8879. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8880. else
  8881. allow_undefined_flag=' -expect_unresolved \*'
  8882. 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'
  8883. 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~
  8884. $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'
  8885. # Both c and cxx compiler support -rpath directly
  8886. hardcode_libdir_flag_spec='-rpath $libdir'
  8887. fi
  8888. archive_cmds_need_lc='no'
  8889. hardcode_libdir_separator=:
  8890. ;;
  8891. solaris*)
  8892. no_undefined_flag=' -z defs'
  8893. if test "$GCC" = yes; then
  8894. wlarc='${wl}'
  8895. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8896. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8897. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8898. else
  8899. case `$CC -V 2>&1` in
  8900. *"Compilers 5.0"*)
  8901. wlarc=''
  8902. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8903. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8904. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8905. ;;
  8906. *)
  8907. wlarc='${wl}'
  8908. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8909. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8910. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8911. ;;
  8912. esac
  8913. fi
  8914. hardcode_libdir_flag_spec='-R$libdir'
  8915. hardcode_shlibpath_var=no
  8916. case $host_os in
  8917. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8918. *)
  8919. # The compiler driver will combine and reorder linker options,
  8920. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8921. # but is careful enough not to reorder.
  8922. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8923. if test "$GCC" = yes; then
  8924. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8925. else
  8926. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8927. fi
  8928. ;;
  8929. esac
  8930. link_all_deplibs=yes
  8931. ;;
  8932. sunos4*)
  8933. if test "x$host_vendor" = xsequent; then
  8934. # Use $CC to link under sequent, because it throws in some extra .o
  8935. # files that make .init and .fini sections work.
  8936. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8937. else
  8938. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8939. fi
  8940. hardcode_libdir_flag_spec='-L$libdir'
  8941. hardcode_direct=yes
  8942. hardcode_minus_L=yes
  8943. hardcode_shlibpath_var=no
  8944. ;;
  8945. sysv4)
  8946. case $host_vendor in
  8947. sni)
  8948. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8949. hardcode_direct=yes # is this really true???
  8950. ;;
  8951. siemens)
  8952. ## LD is ld it makes a PLAMLIB
  8953. ## CC just makes a GrossModule.
  8954. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8955. reload_cmds='$CC -r -o $output$reload_objs'
  8956. hardcode_direct=no
  8957. ;;
  8958. motorola)
  8959. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8960. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8961. ;;
  8962. esac
  8963. runpath_var='LD_RUN_PATH'
  8964. hardcode_shlibpath_var=no
  8965. ;;
  8966. sysv4.3*)
  8967. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8968. hardcode_shlibpath_var=no
  8969. export_dynamic_flag_spec='-Bexport'
  8970. ;;
  8971. sysv4*MP*)
  8972. if test -d /usr/nec; then
  8973. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8974. hardcode_shlibpath_var=no
  8975. runpath_var=LD_RUN_PATH
  8976. hardcode_runpath_var=yes
  8977. ld_shlibs=yes
  8978. fi
  8979. ;;
  8980. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8981. no_undefined_flag='${wl}-z,text'
  8982. archive_cmds_need_lc=no
  8983. hardcode_shlibpath_var=no
  8984. runpath_var='LD_RUN_PATH'
  8985. if test "$GCC" = yes; then
  8986. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8987. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8988. else
  8989. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8990. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8991. fi
  8992. ;;
  8993. sysv5* | sco3.2v5* | sco5v6*)
  8994. # Note: We can NOT use -z defs as we might desire, because we do not
  8995. # link with -lc, and that would cause any symbols used from libc to
  8996. # always be unresolved, which means just about no library would
  8997. # ever link correctly. If we're not using GNU ld we use -z text
  8998. # though, which does catch some bad symbols but isn't as heavy-handed
  8999. # as -z defs.
  9000. no_undefined_flag='${wl}-z,text'
  9001. allow_undefined_flag='${wl}-z,nodefs'
  9002. archive_cmds_need_lc=no
  9003. hardcode_shlibpath_var=no
  9004. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9005. hardcode_libdir_separator=':'
  9006. link_all_deplibs=yes
  9007. export_dynamic_flag_spec='${wl}-Bexport'
  9008. runpath_var='LD_RUN_PATH'
  9009. if test "$GCC" = yes; then
  9010. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9011. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9012. else
  9013. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9014. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9015. fi
  9016. ;;
  9017. uts4*)
  9018. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9019. hardcode_libdir_flag_spec='-L$libdir'
  9020. hardcode_shlibpath_var=no
  9021. ;;
  9022. *)
  9023. ld_shlibs=no
  9024. ;;
  9025. esac
  9026. if test x$host_vendor = xsni; then
  9027. case $host in
  9028. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9029. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9030. ;;
  9031. esac
  9032. fi
  9033. fi
  9034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9035. $as_echo "$ld_shlibs" >&6; }
  9036. test "$ld_shlibs" = no && can_build_shared=no
  9037. with_gnu_ld=$with_gnu_ld
  9038. #
  9039. # Do we need to explicitly link libc?
  9040. #
  9041. case "x$archive_cmds_need_lc" in
  9042. x|xyes)
  9043. # Assume -lc should be added
  9044. archive_cmds_need_lc=yes
  9045. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9046. case $archive_cmds in
  9047. *'~'*)
  9048. # FIXME: we may have to deal with multi-command sequences.
  9049. ;;
  9050. '$CC '*)
  9051. # Test whether the compiler implicitly links with -lc since on some
  9052. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9053. # to ld, don't add -lc before -lgcc.
  9054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9055. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9056. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  9057. $as_echo_n "(cached) " >&6
  9058. else
  9059. $RM conftest*
  9060. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9061. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9062. (eval $ac_compile) 2>&5
  9063. ac_status=$?
  9064. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9065. test $ac_status = 0; } 2>conftest.err; then
  9066. soname=conftest
  9067. lib=conftest
  9068. libobjs=conftest.$ac_objext
  9069. deplibs=
  9070. wl=$lt_prog_compiler_wl
  9071. pic_flag=$lt_prog_compiler_pic
  9072. compiler_flags=-v
  9073. linker_flags=-v
  9074. verstring=
  9075. output_objdir=.
  9076. libname=conftest
  9077. lt_save_allow_undefined_flag=$allow_undefined_flag
  9078. allow_undefined_flag=
  9079. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9080. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9081. ac_status=$?
  9082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9083. test $ac_status = 0; }
  9084. then
  9085. lt_cv_archive_cmds_need_lc=no
  9086. else
  9087. lt_cv_archive_cmds_need_lc=yes
  9088. fi
  9089. allow_undefined_flag=$lt_save_allow_undefined_flag
  9090. else
  9091. cat conftest.err 1>&5
  9092. fi
  9093. $RM conftest*
  9094. fi
  9095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9096. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9097. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9098. ;;
  9099. esac
  9100. fi
  9101. ;;
  9102. esac
  9103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9104. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9105. if test "$GCC" = yes; then
  9106. case $host_os in
  9107. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9108. *) lt_awk_arg="/^libraries:/" ;;
  9109. esac
  9110. case $host_os in
  9111. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9112. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9113. esac
  9114. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9115. case $lt_search_path_spec in
  9116. *\;*)
  9117. # if the path contains ";" then we assume it to be the separator
  9118. # otherwise default to the standard path separator (i.e. ":") - it is
  9119. # assumed that no part of a normal pathname contains ";" but that should
  9120. # okay in the real world where ";" in dirpaths is itself problematic.
  9121. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9122. ;;
  9123. *)
  9124. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9125. ;;
  9126. esac
  9127. # Ok, now we have the path, separated by spaces, we can step through it
  9128. # and add multilib dir if necessary.
  9129. lt_tmp_lt_search_path_spec=
  9130. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9131. for lt_sys_path in $lt_search_path_spec; do
  9132. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9133. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9134. else
  9135. test -d "$lt_sys_path" && \
  9136. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9137. fi
  9138. done
  9139. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9140. BEGIN {RS=" "; FS="/|\n";} {
  9141. lt_foo="";
  9142. lt_count=0;
  9143. for (lt_i = NF; lt_i > 0; lt_i--) {
  9144. if ($lt_i != "" && $lt_i != ".") {
  9145. if ($lt_i == "..") {
  9146. lt_count++;
  9147. } else {
  9148. if (lt_count == 0) {
  9149. lt_foo="/" $lt_i lt_foo;
  9150. } else {
  9151. lt_count--;
  9152. }
  9153. }
  9154. }
  9155. }
  9156. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9157. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9158. }'`
  9159. # AWK program above erroneously prepends '/' to C:/dos/paths
  9160. # for these hosts.
  9161. case $host_os in
  9162. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9163. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9164. esac
  9165. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9166. else
  9167. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9168. fi
  9169. library_names_spec=
  9170. libname_spec='lib$name'
  9171. soname_spec=
  9172. shrext_cmds=".so"
  9173. postinstall_cmds=
  9174. postuninstall_cmds=
  9175. finish_cmds=
  9176. finish_eval=
  9177. shlibpath_var=
  9178. shlibpath_overrides_runpath=unknown
  9179. version_type=none
  9180. dynamic_linker="$host_os ld.so"
  9181. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9182. need_lib_prefix=unknown
  9183. hardcode_into_libs=no
  9184. # when you set need_version to no, make sure it does not cause -set_version
  9185. # flags to be left without arguments
  9186. need_version=unknown
  9187. case $host_os in
  9188. aix3*)
  9189. version_type=linux
  9190. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9191. shlibpath_var=LIBPATH
  9192. # AIX 3 has no versioning support, so we append a major version to the name.
  9193. soname_spec='${libname}${release}${shared_ext}$major'
  9194. ;;
  9195. aix[4-9]*)
  9196. version_type=linux
  9197. need_lib_prefix=no
  9198. need_version=no
  9199. hardcode_into_libs=yes
  9200. if test "$host_cpu" = ia64; then
  9201. # AIX 5 supports IA64
  9202. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9203. shlibpath_var=LD_LIBRARY_PATH
  9204. else
  9205. # With GCC up to 2.95.x, collect2 would create an import file
  9206. # for dependence libraries. The import file would start with
  9207. # the line `#! .'. This would cause the generated library to
  9208. # depend on `.', always an invalid library. This was fixed in
  9209. # development snapshots of GCC prior to 3.0.
  9210. case $host_os in
  9211. aix4 | aix4.[01] | aix4.[01].*)
  9212. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9213. echo ' yes '
  9214. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9215. :
  9216. else
  9217. can_build_shared=no
  9218. fi
  9219. ;;
  9220. esac
  9221. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9222. # soname into executable. Probably we can add versioning support to
  9223. # collect2, so additional links can be useful in future.
  9224. if test "$aix_use_runtimelinking" = yes; then
  9225. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9226. # instead of lib<name>.a to let people know that these are not
  9227. # typical AIX shared libraries.
  9228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9229. else
  9230. # We preserve .a as extension for shared libraries through AIX4.2
  9231. # and later when we are not doing run time linking.
  9232. library_names_spec='${libname}${release}.a $libname.a'
  9233. soname_spec='${libname}${release}${shared_ext}$major'
  9234. fi
  9235. shlibpath_var=LIBPATH
  9236. fi
  9237. ;;
  9238. amigaos*)
  9239. case $host_cpu in
  9240. powerpc)
  9241. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9242. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9244. ;;
  9245. m68k)
  9246. library_names_spec='$libname.ixlibrary $libname.a'
  9247. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9248. 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'
  9249. ;;
  9250. esac
  9251. ;;
  9252. beos*)
  9253. library_names_spec='${libname}${shared_ext}'
  9254. dynamic_linker="$host_os ld.so"
  9255. shlibpath_var=LIBRARY_PATH
  9256. ;;
  9257. bsdi[45]*)
  9258. version_type=linux
  9259. need_version=no
  9260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9261. soname_spec='${libname}${release}${shared_ext}$major'
  9262. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9263. shlibpath_var=LD_LIBRARY_PATH
  9264. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9265. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9266. # the default ld.so.conf also contains /usr/contrib/lib and
  9267. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9268. # libtool to hard-code these into programs
  9269. ;;
  9270. cygwin* | mingw* | pw32* | cegcc*)
  9271. version_type=windows
  9272. shrext_cmds=".dll"
  9273. need_version=no
  9274. need_lib_prefix=no
  9275. case $GCC,$host_os in
  9276. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9277. library_names_spec='$libname.dll.a'
  9278. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9279. postinstall_cmds='base_file=`basename \${file}`~
  9280. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9281. dldir=$destdir/`dirname \$dlpath`~
  9282. test -d \$dldir || mkdir -p \$dldir~
  9283. $install_prog $dir/$dlname \$dldir/$dlname~
  9284. chmod a+x \$dldir/$dlname~
  9285. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9286. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9287. fi'
  9288. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9289. dlpath=$dir/\$dldll~
  9290. $RM \$dlpath'
  9291. shlibpath_overrides_runpath=yes
  9292. case $host_os in
  9293. cygwin*)
  9294. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9295. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9296. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9297. ;;
  9298. mingw* | cegcc*)
  9299. # MinGW DLLs use traditional 'lib' prefix
  9300. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9301. ;;
  9302. pw32*)
  9303. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9304. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9305. ;;
  9306. esac
  9307. ;;
  9308. *)
  9309. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9310. ;;
  9311. esac
  9312. dynamic_linker='Win32 ld.exe'
  9313. # FIXME: first we should search . and the directory the executable is in
  9314. shlibpath_var=PATH
  9315. ;;
  9316. darwin* | rhapsody*)
  9317. dynamic_linker="$host_os dyld"
  9318. version_type=darwin
  9319. need_lib_prefix=no
  9320. need_version=no
  9321. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9322. soname_spec='${libname}${release}${major}$shared_ext'
  9323. shlibpath_overrides_runpath=yes
  9324. shlibpath_var=DYLD_LIBRARY_PATH
  9325. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9326. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9327. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9328. ;;
  9329. dgux*)
  9330. version_type=linux
  9331. need_lib_prefix=no
  9332. need_version=no
  9333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9334. soname_spec='${libname}${release}${shared_ext}$major'
  9335. shlibpath_var=LD_LIBRARY_PATH
  9336. ;;
  9337. freebsd* | dragonfly*)
  9338. # DragonFly does not have aout. When/if they implement a new
  9339. # versioning mechanism, adjust this.
  9340. if test -x /usr/bin/objformat; then
  9341. objformat=`/usr/bin/objformat`
  9342. else
  9343. case $host_os in
  9344. freebsd[23].*) objformat=aout ;;
  9345. *) objformat=elf ;;
  9346. esac
  9347. fi
  9348. version_type=freebsd-$objformat
  9349. case $version_type in
  9350. freebsd-elf*)
  9351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9352. need_version=no
  9353. need_lib_prefix=no
  9354. ;;
  9355. freebsd-*)
  9356. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9357. need_version=yes
  9358. ;;
  9359. esac
  9360. shlibpath_var=LD_LIBRARY_PATH
  9361. case $host_os in
  9362. freebsd2.*)
  9363. shlibpath_overrides_runpath=yes
  9364. ;;
  9365. freebsd3.[01]* | freebsdelf3.[01]*)
  9366. shlibpath_overrides_runpath=yes
  9367. hardcode_into_libs=yes
  9368. ;;
  9369. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9370. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9371. shlibpath_overrides_runpath=no
  9372. hardcode_into_libs=yes
  9373. ;;
  9374. *) # from 4.6 on, and DragonFly
  9375. shlibpath_overrides_runpath=yes
  9376. hardcode_into_libs=yes
  9377. ;;
  9378. esac
  9379. ;;
  9380. gnu*)
  9381. version_type=linux
  9382. need_lib_prefix=no
  9383. need_version=no
  9384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9385. soname_spec='${libname}${release}${shared_ext}$major'
  9386. shlibpath_var=LD_LIBRARY_PATH
  9387. hardcode_into_libs=yes
  9388. ;;
  9389. haiku*)
  9390. version_type=linux
  9391. need_lib_prefix=no
  9392. need_version=no
  9393. dynamic_linker="$host_os runtime_loader"
  9394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9395. soname_spec='${libname}${release}${shared_ext}$major'
  9396. shlibpath_var=LIBRARY_PATH
  9397. shlibpath_overrides_runpath=yes
  9398. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9399. hardcode_into_libs=yes
  9400. ;;
  9401. hpux9* | hpux10* | hpux11*)
  9402. # Give a soname corresponding to the major version so that dld.sl refuses to
  9403. # link against other versions.
  9404. version_type=sunos
  9405. need_lib_prefix=no
  9406. need_version=no
  9407. case $host_cpu in
  9408. ia64*)
  9409. shrext_cmds='.so'
  9410. hardcode_into_libs=yes
  9411. dynamic_linker="$host_os dld.so"
  9412. shlibpath_var=LD_LIBRARY_PATH
  9413. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9415. soname_spec='${libname}${release}${shared_ext}$major'
  9416. if test "X$HPUX_IA64_MODE" = X32; then
  9417. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9418. else
  9419. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9420. fi
  9421. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9422. ;;
  9423. hppa*64*)
  9424. shrext_cmds='.sl'
  9425. hardcode_into_libs=yes
  9426. dynamic_linker="$host_os dld.sl"
  9427. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9428. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9429. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9430. soname_spec='${libname}${release}${shared_ext}$major'
  9431. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9432. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9433. ;;
  9434. *)
  9435. shrext_cmds='.sl'
  9436. dynamic_linker="$host_os dld.sl"
  9437. shlibpath_var=SHLIB_PATH
  9438. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9440. soname_spec='${libname}${release}${shared_ext}$major'
  9441. ;;
  9442. esac
  9443. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9444. postinstall_cmds='chmod 555 $lib'
  9445. # or fails outright, so override atomically:
  9446. install_override_mode=555
  9447. ;;
  9448. interix[3-9]*)
  9449. version_type=linux
  9450. need_lib_prefix=no
  9451. need_version=no
  9452. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9453. soname_spec='${libname}${release}${shared_ext}$major'
  9454. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9455. shlibpath_var=LD_LIBRARY_PATH
  9456. shlibpath_overrides_runpath=no
  9457. hardcode_into_libs=yes
  9458. ;;
  9459. irix5* | irix6* | nonstopux*)
  9460. case $host_os in
  9461. nonstopux*) version_type=nonstopux ;;
  9462. *)
  9463. if test "$lt_cv_prog_gnu_ld" = yes; then
  9464. version_type=linux
  9465. else
  9466. version_type=irix
  9467. fi ;;
  9468. esac
  9469. need_lib_prefix=no
  9470. need_version=no
  9471. soname_spec='${libname}${release}${shared_ext}$major'
  9472. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9473. case $host_os in
  9474. irix5* | nonstopux*)
  9475. libsuff= shlibsuff=
  9476. ;;
  9477. *)
  9478. case $LD in # libtool.m4 will add one of these switches to LD
  9479. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9480. libsuff= shlibsuff= libmagic=32-bit;;
  9481. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9482. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9483. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9484. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9485. *) libsuff= shlibsuff= libmagic=never-match;;
  9486. esac
  9487. ;;
  9488. esac
  9489. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9490. shlibpath_overrides_runpath=no
  9491. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9492. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9493. hardcode_into_libs=yes
  9494. ;;
  9495. # No shared lib support for Linux oldld, aout, or coff.
  9496. linux*oldld* | linux*aout* | linux*coff*)
  9497. dynamic_linker=no
  9498. ;;
  9499. # This must be Linux ELF.
  9500. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9501. version_type=linux
  9502. need_lib_prefix=no
  9503. need_version=no
  9504. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9505. soname_spec='${libname}${release}${shared_ext}$major'
  9506. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9507. shlibpath_var=LD_LIBRARY_PATH
  9508. shlibpath_overrides_runpath=no
  9509. # Some binutils ld are patched to set DT_RUNPATH
  9510. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9511. $as_echo_n "(cached) " >&6
  9512. else
  9513. lt_cv_shlibpath_overrides_runpath=no
  9514. save_LDFLAGS=$LDFLAGS
  9515. save_libdir=$libdir
  9516. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9517. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9519. /* end confdefs.h. */
  9520. int
  9521. main ()
  9522. {
  9523. ;
  9524. return 0;
  9525. }
  9526. _ACEOF
  9527. if ac_fn_c_try_link "$LINENO"; then :
  9528. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9529. lt_cv_shlibpath_overrides_runpath=yes
  9530. fi
  9531. fi
  9532. rm -f core conftest.err conftest.$ac_objext \
  9533. conftest$ac_exeext conftest.$ac_ext
  9534. LDFLAGS=$save_LDFLAGS
  9535. libdir=$save_libdir
  9536. fi
  9537. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9538. # This implies no fast_install, which is unacceptable.
  9539. # Some rework will be needed to allow for fast_install
  9540. # before this can be enabled.
  9541. hardcode_into_libs=yes
  9542. # Append ld.so.conf contents to the search path
  9543. if test -f /etc/ld.so.conf; then
  9544. 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' ' '`
  9545. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9546. fi
  9547. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9548. # powerpc, because MkLinux only supported shared libraries with the
  9549. # GNU dynamic linker. Since this was broken with cross compilers,
  9550. # most powerpc-linux boxes support dynamic linking these days and
  9551. # people can always --disable-shared, the test was removed, and we
  9552. # assume the GNU/Linux dynamic linker is in use.
  9553. dynamic_linker='GNU/Linux ld.so'
  9554. ;;
  9555. netbsd*)
  9556. version_type=sunos
  9557. need_lib_prefix=no
  9558. need_version=no
  9559. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9561. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9562. dynamic_linker='NetBSD (a.out) ld.so'
  9563. else
  9564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9565. soname_spec='${libname}${release}${shared_ext}$major'
  9566. dynamic_linker='NetBSD ld.elf_so'
  9567. fi
  9568. shlibpath_var=LD_LIBRARY_PATH
  9569. shlibpath_overrides_runpath=yes
  9570. hardcode_into_libs=yes
  9571. ;;
  9572. newsos6)
  9573. version_type=linux
  9574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9575. shlibpath_var=LD_LIBRARY_PATH
  9576. shlibpath_overrides_runpath=yes
  9577. ;;
  9578. *nto* | *qnx*)
  9579. version_type=qnx
  9580. need_lib_prefix=no
  9581. need_version=no
  9582. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9583. soname_spec='${libname}${release}${shared_ext}$major'
  9584. shlibpath_var=LD_LIBRARY_PATH
  9585. shlibpath_overrides_runpath=no
  9586. hardcode_into_libs=yes
  9587. dynamic_linker='ldqnx.so'
  9588. ;;
  9589. openbsd*)
  9590. version_type=sunos
  9591. sys_lib_dlsearch_path_spec="/usr/lib"
  9592. need_lib_prefix=no
  9593. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9594. case $host_os in
  9595. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9596. *) need_version=no ;;
  9597. esac
  9598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9599. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9600. shlibpath_var=LD_LIBRARY_PATH
  9601. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9602. case $host_os in
  9603. openbsd2.[89] | openbsd2.[89].*)
  9604. shlibpath_overrides_runpath=no
  9605. ;;
  9606. *)
  9607. shlibpath_overrides_runpath=yes
  9608. ;;
  9609. esac
  9610. else
  9611. shlibpath_overrides_runpath=yes
  9612. fi
  9613. ;;
  9614. os2*)
  9615. libname_spec='$name'
  9616. shrext_cmds=".dll"
  9617. need_lib_prefix=no
  9618. library_names_spec='$libname${shared_ext} $libname.a'
  9619. dynamic_linker='OS/2 ld.exe'
  9620. shlibpath_var=LIBPATH
  9621. ;;
  9622. osf3* | osf4* | osf5*)
  9623. version_type=osf
  9624. need_lib_prefix=no
  9625. need_version=no
  9626. soname_spec='${libname}${release}${shared_ext}$major'
  9627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9628. shlibpath_var=LD_LIBRARY_PATH
  9629. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9630. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9631. ;;
  9632. rdos*)
  9633. dynamic_linker=no
  9634. ;;
  9635. solaris*)
  9636. version_type=linux
  9637. need_lib_prefix=no
  9638. need_version=no
  9639. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9640. soname_spec='${libname}${release}${shared_ext}$major'
  9641. shlibpath_var=LD_LIBRARY_PATH
  9642. shlibpath_overrides_runpath=yes
  9643. hardcode_into_libs=yes
  9644. # ldd complains unless libraries are executable
  9645. postinstall_cmds='chmod +x $lib'
  9646. ;;
  9647. sunos4*)
  9648. version_type=sunos
  9649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9650. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9651. shlibpath_var=LD_LIBRARY_PATH
  9652. shlibpath_overrides_runpath=yes
  9653. if test "$with_gnu_ld" = yes; then
  9654. need_lib_prefix=no
  9655. fi
  9656. need_version=yes
  9657. ;;
  9658. sysv4 | sysv4.3*)
  9659. version_type=linux
  9660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9661. soname_spec='${libname}${release}${shared_ext}$major'
  9662. shlibpath_var=LD_LIBRARY_PATH
  9663. case $host_vendor in
  9664. sni)
  9665. shlibpath_overrides_runpath=no
  9666. need_lib_prefix=no
  9667. runpath_var=LD_RUN_PATH
  9668. ;;
  9669. siemens)
  9670. need_lib_prefix=no
  9671. ;;
  9672. motorola)
  9673. need_lib_prefix=no
  9674. need_version=no
  9675. shlibpath_overrides_runpath=no
  9676. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9677. ;;
  9678. esac
  9679. ;;
  9680. sysv4*MP*)
  9681. if test -d /usr/nec ;then
  9682. version_type=linux
  9683. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9684. soname_spec='$libname${shared_ext}.$major'
  9685. shlibpath_var=LD_LIBRARY_PATH
  9686. fi
  9687. ;;
  9688. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9689. version_type=freebsd-elf
  9690. need_lib_prefix=no
  9691. need_version=no
  9692. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9693. soname_spec='${libname}${release}${shared_ext}$major'
  9694. shlibpath_var=LD_LIBRARY_PATH
  9695. shlibpath_overrides_runpath=yes
  9696. hardcode_into_libs=yes
  9697. if test "$with_gnu_ld" = yes; then
  9698. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9699. else
  9700. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9701. case $host_os in
  9702. sco3.2v5*)
  9703. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9704. ;;
  9705. esac
  9706. fi
  9707. sys_lib_dlsearch_path_spec='/usr/lib'
  9708. ;;
  9709. tpf*)
  9710. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9711. version_type=linux
  9712. need_lib_prefix=no
  9713. need_version=no
  9714. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9715. shlibpath_var=LD_LIBRARY_PATH
  9716. shlibpath_overrides_runpath=no
  9717. hardcode_into_libs=yes
  9718. ;;
  9719. uts4*)
  9720. version_type=linux
  9721. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9722. soname_spec='${libname}${release}${shared_ext}$major'
  9723. shlibpath_var=LD_LIBRARY_PATH
  9724. ;;
  9725. *)
  9726. dynamic_linker=no
  9727. ;;
  9728. esac
  9729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9730. $as_echo "$dynamic_linker" >&6; }
  9731. test "$dynamic_linker" = no && can_build_shared=no
  9732. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9733. if test "$GCC" = yes; then
  9734. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9735. fi
  9736. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9737. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9738. fi
  9739. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9740. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9741. fi
  9742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9743. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9744. hardcode_action=
  9745. if test -n "$hardcode_libdir_flag_spec" ||
  9746. test -n "$runpath_var" ||
  9747. test "X$hardcode_automatic" = "Xyes" ; then
  9748. # We can hardcode non-existent directories.
  9749. if test "$hardcode_direct" != no &&
  9750. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9751. # have to relink, otherwise we might link with an installed library
  9752. # when we should be linking with a yet-to-be-installed one
  9753. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9754. test "$hardcode_minus_L" != no; then
  9755. # Linking always hardcodes the temporary library directory.
  9756. hardcode_action=relink
  9757. else
  9758. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9759. hardcode_action=immediate
  9760. fi
  9761. else
  9762. # We cannot hardcode anything, or else we can only hardcode existing
  9763. # directories.
  9764. hardcode_action=unsupported
  9765. fi
  9766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9767. $as_echo "$hardcode_action" >&6; }
  9768. if test "$hardcode_action" = relink ||
  9769. test "$inherit_rpath" = yes; then
  9770. # Fast installation is not supported
  9771. enable_fast_install=no
  9772. elif test "$shlibpath_overrides_runpath" = yes ||
  9773. test "$enable_shared" = no; then
  9774. # Fast installation is not necessary
  9775. enable_fast_install=needless
  9776. fi
  9777. if test "x$enable_dlopen" != xyes; then
  9778. enable_dlopen=unknown
  9779. enable_dlopen_self=unknown
  9780. enable_dlopen_self_static=unknown
  9781. else
  9782. lt_cv_dlopen=no
  9783. lt_cv_dlopen_libs=
  9784. case $host_os in
  9785. beos*)
  9786. lt_cv_dlopen="load_add_on"
  9787. lt_cv_dlopen_libs=
  9788. lt_cv_dlopen_self=yes
  9789. ;;
  9790. mingw* | pw32* | cegcc*)
  9791. lt_cv_dlopen="LoadLibrary"
  9792. lt_cv_dlopen_libs=
  9793. ;;
  9794. cygwin*)
  9795. lt_cv_dlopen="dlopen"
  9796. lt_cv_dlopen_libs=
  9797. ;;
  9798. darwin*)
  9799. # if libdl is installed we need to link against it
  9800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9801. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9802. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9803. $as_echo_n "(cached) " >&6
  9804. else
  9805. ac_check_lib_save_LIBS=$LIBS
  9806. LIBS="-ldl $LIBS"
  9807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9808. /* end confdefs.h. */
  9809. /* Override any GCC internal prototype to avoid an error.
  9810. Use char because int might match the return type of a GCC
  9811. builtin and then its argument prototype would still apply. */
  9812. #ifdef __cplusplus
  9813. extern "C"
  9814. #endif
  9815. char dlopen ();
  9816. int
  9817. main ()
  9818. {
  9819. return dlopen ();
  9820. ;
  9821. return 0;
  9822. }
  9823. _ACEOF
  9824. if ac_fn_c_try_link "$LINENO"; then :
  9825. ac_cv_lib_dl_dlopen=yes
  9826. else
  9827. ac_cv_lib_dl_dlopen=no
  9828. fi
  9829. rm -f core conftest.err conftest.$ac_objext \
  9830. conftest$ac_exeext conftest.$ac_ext
  9831. LIBS=$ac_check_lib_save_LIBS
  9832. fi
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9834. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9835. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9836. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9837. else
  9838. lt_cv_dlopen="dyld"
  9839. lt_cv_dlopen_libs=
  9840. lt_cv_dlopen_self=yes
  9841. fi
  9842. ;;
  9843. *)
  9844. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9845. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9846. lt_cv_dlopen="shl_load"
  9847. else
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9849. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9850. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9851. $as_echo_n "(cached) " >&6
  9852. else
  9853. ac_check_lib_save_LIBS=$LIBS
  9854. LIBS="-ldld $LIBS"
  9855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9856. /* end confdefs.h. */
  9857. /* Override any GCC internal prototype to avoid an error.
  9858. Use char because int might match the return type of a GCC
  9859. builtin and then its argument prototype would still apply. */
  9860. #ifdef __cplusplus
  9861. extern "C"
  9862. #endif
  9863. char shl_load ();
  9864. int
  9865. main ()
  9866. {
  9867. return shl_load ();
  9868. ;
  9869. return 0;
  9870. }
  9871. _ACEOF
  9872. if ac_fn_c_try_link "$LINENO"; then :
  9873. ac_cv_lib_dld_shl_load=yes
  9874. else
  9875. ac_cv_lib_dld_shl_load=no
  9876. fi
  9877. rm -f core conftest.err conftest.$ac_objext \
  9878. conftest$ac_exeext conftest.$ac_ext
  9879. LIBS=$ac_check_lib_save_LIBS
  9880. fi
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9882. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9883. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9884. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9885. else
  9886. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9887. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9888. lt_cv_dlopen="dlopen"
  9889. else
  9890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9891. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9892. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9893. $as_echo_n "(cached) " >&6
  9894. else
  9895. ac_check_lib_save_LIBS=$LIBS
  9896. LIBS="-ldl $LIBS"
  9897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9898. /* end confdefs.h. */
  9899. /* Override any GCC internal prototype to avoid an error.
  9900. Use char because int might match the return type of a GCC
  9901. builtin and then its argument prototype would still apply. */
  9902. #ifdef __cplusplus
  9903. extern "C"
  9904. #endif
  9905. char dlopen ();
  9906. int
  9907. main ()
  9908. {
  9909. return dlopen ();
  9910. ;
  9911. return 0;
  9912. }
  9913. _ACEOF
  9914. if ac_fn_c_try_link "$LINENO"; then :
  9915. ac_cv_lib_dl_dlopen=yes
  9916. else
  9917. ac_cv_lib_dl_dlopen=no
  9918. fi
  9919. rm -f core conftest.err conftest.$ac_objext \
  9920. conftest$ac_exeext conftest.$ac_ext
  9921. LIBS=$ac_check_lib_save_LIBS
  9922. fi
  9923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9924. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9925. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9926. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9927. else
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9929. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9930. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9931. $as_echo_n "(cached) " >&6
  9932. else
  9933. ac_check_lib_save_LIBS=$LIBS
  9934. LIBS="-lsvld $LIBS"
  9935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9936. /* end confdefs.h. */
  9937. /* Override any GCC internal prototype to avoid an error.
  9938. Use char because int might match the return type of a GCC
  9939. builtin and then its argument prototype would still apply. */
  9940. #ifdef __cplusplus
  9941. extern "C"
  9942. #endif
  9943. char dlopen ();
  9944. int
  9945. main ()
  9946. {
  9947. return dlopen ();
  9948. ;
  9949. return 0;
  9950. }
  9951. _ACEOF
  9952. if ac_fn_c_try_link "$LINENO"; then :
  9953. ac_cv_lib_svld_dlopen=yes
  9954. else
  9955. ac_cv_lib_svld_dlopen=no
  9956. fi
  9957. rm -f core conftest.err conftest.$ac_objext \
  9958. conftest$ac_exeext conftest.$ac_ext
  9959. LIBS=$ac_check_lib_save_LIBS
  9960. fi
  9961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9962. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9963. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9964. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9965. else
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9967. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9968. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9969. $as_echo_n "(cached) " >&6
  9970. else
  9971. ac_check_lib_save_LIBS=$LIBS
  9972. LIBS="-ldld $LIBS"
  9973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9974. /* end confdefs.h. */
  9975. /* Override any GCC internal prototype to avoid an error.
  9976. Use char because int might match the return type of a GCC
  9977. builtin and then its argument prototype would still apply. */
  9978. #ifdef __cplusplus
  9979. extern "C"
  9980. #endif
  9981. char dld_link ();
  9982. int
  9983. main ()
  9984. {
  9985. return dld_link ();
  9986. ;
  9987. return 0;
  9988. }
  9989. _ACEOF
  9990. if ac_fn_c_try_link "$LINENO"; then :
  9991. ac_cv_lib_dld_dld_link=yes
  9992. else
  9993. ac_cv_lib_dld_dld_link=no
  9994. fi
  9995. rm -f core conftest.err conftest.$ac_objext \
  9996. conftest$ac_exeext conftest.$ac_ext
  9997. LIBS=$ac_check_lib_save_LIBS
  9998. fi
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10000. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10001. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10002. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10003. fi
  10004. fi
  10005. fi
  10006. fi
  10007. fi
  10008. fi
  10009. ;;
  10010. esac
  10011. if test "x$lt_cv_dlopen" != xno; then
  10012. enable_dlopen=yes
  10013. else
  10014. enable_dlopen=no
  10015. fi
  10016. case $lt_cv_dlopen in
  10017. dlopen)
  10018. save_CPPFLAGS="$CPPFLAGS"
  10019. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10020. save_LDFLAGS="$LDFLAGS"
  10021. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10022. save_LIBS="$LIBS"
  10023. LIBS="$lt_cv_dlopen_libs $LIBS"
  10024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10025. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10026. if test "${lt_cv_dlopen_self+set}" = set; then :
  10027. $as_echo_n "(cached) " >&6
  10028. else
  10029. if test "$cross_compiling" = yes; then :
  10030. lt_cv_dlopen_self=cross
  10031. else
  10032. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10033. lt_status=$lt_dlunknown
  10034. cat > conftest.$ac_ext <<_LT_EOF
  10035. #line 12321 "configure"
  10036. #include "confdefs.h"
  10037. #if HAVE_DLFCN_H
  10038. #include <dlfcn.h>
  10039. #endif
  10040. #include <stdio.h>
  10041. #ifdef RTLD_GLOBAL
  10042. # define LT_DLGLOBAL RTLD_GLOBAL
  10043. #else
  10044. # ifdef DL_GLOBAL
  10045. # define LT_DLGLOBAL DL_GLOBAL
  10046. # else
  10047. # define LT_DLGLOBAL 0
  10048. # endif
  10049. #endif
  10050. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10051. find out it does not work in some platform. */
  10052. #ifndef LT_DLLAZY_OR_NOW
  10053. # ifdef RTLD_LAZY
  10054. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10055. # else
  10056. # ifdef DL_LAZY
  10057. # define LT_DLLAZY_OR_NOW DL_LAZY
  10058. # else
  10059. # ifdef RTLD_NOW
  10060. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10061. # else
  10062. # ifdef DL_NOW
  10063. # define LT_DLLAZY_OR_NOW DL_NOW
  10064. # else
  10065. # define LT_DLLAZY_OR_NOW 0
  10066. # endif
  10067. # endif
  10068. # endif
  10069. # endif
  10070. #endif
  10071. /* When -fvisbility=hidden is used, assume the code has been annotated
  10072. correspondingly for the symbols needed. */
  10073. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10074. void fnord () __attribute__((visibility("default")));
  10075. #endif
  10076. void fnord () { int i=42; }
  10077. int main ()
  10078. {
  10079. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10080. int status = $lt_dlunknown;
  10081. if (self)
  10082. {
  10083. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10084. else
  10085. {
  10086. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10087. else puts (dlerror ());
  10088. }
  10089. /* dlclose (self); */
  10090. }
  10091. else
  10092. puts (dlerror ());
  10093. return status;
  10094. }
  10095. _LT_EOF
  10096. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10097. (eval $ac_link) 2>&5
  10098. ac_status=$?
  10099. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10100. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10101. (./conftest; exit; ) >&5 2>/dev/null
  10102. lt_status=$?
  10103. case x$lt_status in
  10104. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10105. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10106. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10107. esac
  10108. else :
  10109. # compilation failed
  10110. lt_cv_dlopen_self=no
  10111. fi
  10112. fi
  10113. rm -fr conftest*
  10114. fi
  10115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10116. $as_echo "$lt_cv_dlopen_self" >&6; }
  10117. if test "x$lt_cv_dlopen_self" = xyes; then
  10118. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10120. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10121. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10122. $as_echo_n "(cached) " >&6
  10123. else
  10124. if test "$cross_compiling" = yes; then :
  10125. lt_cv_dlopen_self_static=cross
  10126. else
  10127. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10128. lt_status=$lt_dlunknown
  10129. cat > conftest.$ac_ext <<_LT_EOF
  10130. #line 12427 "configure"
  10131. #include "confdefs.h"
  10132. #if HAVE_DLFCN_H
  10133. #include <dlfcn.h>
  10134. #endif
  10135. #include <stdio.h>
  10136. #ifdef RTLD_GLOBAL
  10137. # define LT_DLGLOBAL RTLD_GLOBAL
  10138. #else
  10139. # ifdef DL_GLOBAL
  10140. # define LT_DLGLOBAL DL_GLOBAL
  10141. # else
  10142. # define LT_DLGLOBAL 0
  10143. # endif
  10144. #endif
  10145. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10146. find out it does not work in some platform. */
  10147. #ifndef LT_DLLAZY_OR_NOW
  10148. # ifdef RTLD_LAZY
  10149. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10150. # else
  10151. # ifdef DL_LAZY
  10152. # define LT_DLLAZY_OR_NOW DL_LAZY
  10153. # else
  10154. # ifdef RTLD_NOW
  10155. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10156. # else
  10157. # ifdef DL_NOW
  10158. # define LT_DLLAZY_OR_NOW DL_NOW
  10159. # else
  10160. # define LT_DLLAZY_OR_NOW 0
  10161. # endif
  10162. # endif
  10163. # endif
  10164. # endif
  10165. #endif
  10166. /* When -fvisbility=hidden is used, assume the code has been annotated
  10167. correspondingly for the symbols needed. */
  10168. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10169. void fnord () __attribute__((visibility("default")));
  10170. #endif
  10171. void fnord () { int i=42; }
  10172. int main ()
  10173. {
  10174. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10175. int status = $lt_dlunknown;
  10176. if (self)
  10177. {
  10178. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10179. else
  10180. {
  10181. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10182. else puts (dlerror ());
  10183. }
  10184. /* dlclose (self); */
  10185. }
  10186. else
  10187. puts (dlerror ());
  10188. return status;
  10189. }
  10190. _LT_EOF
  10191. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10192. (eval $ac_link) 2>&5
  10193. ac_status=$?
  10194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10195. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10196. (./conftest; exit; ) >&5 2>/dev/null
  10197. lt_status=$?
  10198. case x$lt_status in
  10199. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10200. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10201. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10202. esac
  10203. else :
  10204. # compilation failed
  10205. lt_cv_dlopen_self_static=no
  10206. fi
  10207. fi
  10208. rm -fr conftest*
  10209. fi
  10210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10211. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10212. fi
  10213. CPPFLAGS="$save_CPPFLAGS"
  10214. LDFLAGS="$save_LDFLAGS"
  10215. LIBS="$save_LIBS"
  10216. ;;
  10217. esac
  10218. case $lt_cv_dlopen_self in
  10219. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10220. *) enable_dlopen_self=unknown ;;
  10221. esac
  10222. case $lt_cv_dlopen_self_static in
  10223. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10224. *) enable_dlopen_self_static=unknown ;;
  10225. esac
  10226. fi
  10227. striplib=
  10228. old_striplib=
  10229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10230. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10231. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10232. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10233. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10235. $as_echo "yes" >&6; }
  10236. else
  10237. # FIXME - insert some real tests, host_os isn't really good enough
  10238. case $host_os in
  10239. darwin*)
  10240. if test -n "$STRIP" ; then
  10241. striplib="$STRIP -x"
  10242. old_striplib="$STRIP -S"
  10243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10244. $as_echo "yes" >&6; }
  10245. else
  10246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10247. $as_echo "no" >&6; }
  10248. fi
  10249. ;;
  10250. *)
  10251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10252. $as_echo "no" >&6; }
  10253. ;;
  10254. esac
  10255. fi
  10256. # Report which library types will actually be built
  10257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10258. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10260. $as_echo "$can_build_shared" >&6; }
  10261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10262. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10263. test "$can_build_shared" = "no" && enable_shared=no
  10264. # On AIX, shared libraries and static libraries use the same namespace, and
  10265. # are all built from PIC.
  10266. case $host_os in
  10267. aix3*)
  10268. test "$enable_shared" = yes && enable_static=no
  10269. if test -n "$RANLIB"; then
  10270. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10271. postinstall_cmds='$RANLIB $lib'
  10272. fi
  10273. ;;
  10274. aix[4-9]*)
  10275. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10276. test "$enable_shared" = yes && enable_static=no
  10277. fi
  10278. ;;
  10279. esac
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10281. $as_echo "$enable_shared" >&6; }
  10282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10283. $as_echo_n "checking whether to build static libraries... " >&6; }
  10284. # Make sure either enable_shared or enable_static is yes.
  10285. test "$enable_shared" = yes || enable_static=yes
  10286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10287. $as_echo "$enable_static" >&6; }
  10288. fi
  10289. ac_ext=c
  10290. ac_cpp='$CPP $CPPFLAGS'
  10291. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10292. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10293. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10294. CC="$lt_save_CC"
  10295. ac_config_commands="$ac_config_commands libtool"
  10296. # Only expand once:
  10297. . ${srcdir}/../../bfd/configure.host
  10298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10299. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10300. # Check whether --enable-maintainer-mode was given.
  10301. if test "${enable_maintainer_mode+set}" = set; then :
  10302. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10303. else
  10304. USE_MAINTAINER_MODE=no
  10305. fi
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10307. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10308. if test $USE_MAINTAINER_MODE = yes; then
  10309. MAINTAINER_MODE_TRUE=
  10310. MAINTAINER_MODE_FALSE='#'
  10311. else
  10312. MAINTAINER_MODE_TRUE='#'
  10313. MAINTAINER_MODE_FALSE=
  10314. fi
  10315. MAINT=$MAINTAINER_MODE_TRUE
  10316. # Check whether --enable-sim-bswap was given.
  10317. if test "${enable_sim_bswap+set}" = set; then :
  10318. enableval=$enable_sim_bswap; case "${enableval}" in
  10319. yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
  10320. no) sim_bswap="-DWITH_BSWAP=0";;
  10321. *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
  10322. esac
  10323. if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
  10324. echo "Setting bswap flags = $sim_bswap" 6>&1
  10325. fi
  10326. else
  10327. sim_bswap=""
  10328. fi
  10329. # Check whether --enable-sim-cflags was given.
  10330. if test "${enable_sim_cflags+set}" = set; then :
  10331. enableval=$enable_sim_cflags; case "${enableval}" in
  10332. yes) sim_cflags="-O2 -fomit-frame-pointer";;
  10333. trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
  10334. no) sim_cflags="";;
  10335. *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10336. esac
  10337. if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
  10338. echo "Setting sim cflags = $sim_cflags" 6>&1
  10339. fi
  10340. else
  10341. sim_cflags=""
  10342. fi
  10343. # Check whether --enable-sim-debug was given.
  10344. if test "${enable_sim_debug+set}" = set; then :
  10345. enableval=$enable_sim_debug; case "${enableval}" in
  10346. yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
  10347. no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
  10348. *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
  10349. esac
  10350. if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
  10351. echo "Setting sim debug = $sim_debug" 6>&1
  10352. fi
  10353. else
  10354. sim_debug=""
  10355. fi
  10356. # Check whether --enable-sim-stdio was given.
  10357. if test "${enable_sim_stdio+set}" = set; then :
  10358. enableval=$enable_sim_stdio; case "${enableval}" in
  10359. yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
  10360. no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
  10361. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
  10362. esac
  10363. if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
  10364. echo "Setting stdio flags = $sim_stdio" 6>&1
  10365. fi
  10366. else
  10367. sim_stdio=""
  10368. fi
  10369. # Check whether --enable-sim-trace was given.
  10370. if test "${enable_sim_trace+set}" = set; then :
  10371. enableval=$enable_sim_trace; case "${enableval}" in
  10372. yes) sim_trace="-DWITH_TRACE=-1";;
  10373. no) sim_trace="-DWITH_TRACE=0";;
  10374. [-0-9]*)
  10375. sim_trace="-DWITH_TRACE='(${enableval})'";;
  10376. [[:lower:]]*)
  10377. sim_trace=""
  10378. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10379. if test x"$sim_trace" = x; then
  10380. sim_trace="-DWITH_TRACE='(TRACE_$x"
  10381. else
  10382. sim_trace="${sim_trace}|TRACE_$x"
  10383. fi
  10384. done
  10385. sim_trace="$sim_trace)'" ;;
  10386. esac
  10387. if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
  10388. echo "Setting sim trace = $sim_trace" 6>&1
  10389. fi
  10390. else
  10391. sim_trace=""
  10392. fi
  10393. # Check whether --enable-sim-profile was given.
  10394. if test "${enable_sim_profile+set}" = set; then :
  10395. enableval=$enable_sim_profile; case "${enableval}" in
  10396. yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
  10397. no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
  10398. [-0-9]*)
  10399. sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
  10400. [a-z]*)
  10401. sim_profile=""
  10402. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10403. if test x"$sim_profile" = x; then
  10404. sim_profile="-DWITH_PROFILE='(PROFILE_$x"
  10405. else
  10406. sim_profile="${sim_profile}|PROFILE_$x"
  10407. fi
  10408. done
  10409. sim_profile="$sim_profile)'" ;;
  10410. esac
  10411. if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
  10412. echo "Setting sim profile = $sim_profile" 6>&1
  10413. fi
  10414. else
  10415. sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
  10416. fi
  10417. # Check whether --with-pkgversion was given.
  10418. if test "${with_pkgversion+set}" = set; then :
  10419. withval=$with_pkgversion; case "$withval" in
  10420. yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
  10421. no) PKGVERSION= ;;
  10422. *) PKGVERSION="($withval) " ;;
  10423. esac
  10424. else
  10425. PKGVERSION="(SIM) "
  10426. fi
  10427. # Check whether --with-bugurl was given.
  10428. if test "${with_bugurl+set}" = set; then :
  10429. withval=$with_bugurl; case "$withval" in
  10430. yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
  10431. no) BUGURL=
  10432. ;;
  10433. *) BUGURL="$withval"
  10434. ;;
  10435. esac
  10436. else
  10437. BUGURL="http://www.gnu.org/software/gdb/bugs/"
  10438. fi
  10439. case ${BUGURL} in
  10440. "")
  10441. REPORT_BUGS_TO=
  10442. REPORT_BUGS_TEXI=
  10443. ;;
  10444. *)
  10445. REPORT_BUGS_TO="<$BUGURL>"
  10446. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  10447. ;;
  10448. esac;
  10449. cat >>confdefs.h <<_ACEOF
  10450. #define PKGVERSION "$PKGVERSION"
  10451. _ACEOF
  10452. cat >>confdefs.h <<_ACEOF
  10453. #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
  10454. _ACEOF
  10455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  10456. $as_echo_n "checking return type of signal handlers... " >&6; }
  10457. if test "${ac_cv_type_signal+set}" = set; then :
  10458. $as_echo_n "(cached) " >&6
  10459. else
  10460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10461. /* end confdefs.h. */
  10462. #include <sys/types.h>
  10463. #include <signal.h>
  10464. int
  10465. main ()
  10466. {
  10467. return *(signal (0, 0)) (0) == 1;
  10468. ;
  10469. return 0;
  10470. }
  10471. _ACEOF
  10472. if ac_fn_c_try_compile "$LINENO"; then :
  10473. ac_cv_type_signal=int
  10474. else
  10475. ac_cv_type_signal=void
  10476. fi
  10477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10478. fi
  10479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  10480. $as_echo "$ac_cv_type_signal" >&6; }
  10481. cat >>confdefs.h <<_ACEOF
  10482. #define RETSIGTYPE $ac_cv_type_signal
  10483. _ACEOF
  10484. sim_link_files=
  10485. sim_link_links=
  10486. # targ-vals.def points to the libc macro description file.
  10487. case "${target}" in
  10488. *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
  10489. esac
  10490. sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
  10491. sim_link_links="${sim_link_links} targ-vals.def"
  10492. if test -n "$ac_tool_prefix"; then
  10493. # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
  10494. set dummy ${ac_tool_prefix}dtc; ac_word=$2
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10496. $as_echo_n "checking for $ac_word... " >&6; }
  10497. if test "${ac_cv_prog_DTC+set}" = set; then :
  10498. $as_echo_n "(cached) " >&6
  10499. else
  10500. if test -n "$DTC"; then
  10501. ac_cv_prog_DTC="$DTC" # Let the user override the test.
  10502. else
  10503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10504. for as_dir in $PATH
  10505. do
  10506. IFS=$as_save_IFS
  10507. test -z "$as_dir" && as_dir=.
  10508. for ac_exec_ext in '' $ac_executable_extensions; do
  10509. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10510. ac_cv_prog_DTC="${ac_tool_prefix}dtc"
  10511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10512. break 2
  10513. fi
  10514. done
  10515. done
  10516. IFS=$as_save_IFS
  10517. fi
  10518. fi
  10519. DTC=$ac_cv_prog_DTC
  10520. if test -n "$DTC"; then
  10521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
  10522. $as_echo "$DTC" >&6; }
  10523. else
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10525. $as_echo "no" >&6; }
  10526. fi
  10527. fi
  10528. if test -z "$ac_cv_prog_DTC"; then
  10529. ac_ct_DTC=$DTC
  10530. # Extract the first word of "dtc", so it can be a program name with args.
  10531. set dummy dtc; ac_word=$2
  10532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10533. $as_echo_n "checking for $ac_word... " >&6; }
  10534. if test "${ac_cv_prog_ac_ct_DTC+set}" = set; then :
  10535. $as_echo_n "(cached) " >&6
  10536. else
  10537. if test -n "$ac_ct_DTC"; then
  10538. ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
  10539. else
  10540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10541. for as_dir in $PATH
  10542. do
  10543. IFS=$as_save_IFS
  10544. test -z "$as_dir" && as_dir=.
  10545. for ac_exec_ext in '' $ac_executable_extensions; do
  10546. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10547. ac_cv_prog_ac_ct_DTC="dtc"
  10548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10549. break 2
  10550. fi
  10551. done
  10552. done
  10553. IFS=$as_save_IFS
  10554. fi
  10555. fi
  10556. ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
  10557. if test -n "$ac_ct_DTC"; then
  10558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
  10559. $as_echo "$ac_ct_DTC" >&6; }
  10560. else
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10562. $as_echo "no" >&6; }
  10563. fi
  10564. if test "x$ac_ct_DTC" = x; then
  10565. DTC=""
  10566. else
  10567. case $cross_compiling:$ac_tool_warned in
  10568. yes:)
  10569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10570. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10571. ac_tool_warned=yes ;;
  10572. esac
  10573. DTC=$ac_ct_DTC
  10574. fi
  10575. else
  10576. DTC="$ac_cv_prog_DTC"
  10577. fi
  10578. wire_endian="BIG_ENDIAN"
  10579. default_endian=""
  10580. # Check whether --enable-sim-endian was given.
  10581. if test "${enable_sim_endian+set}" = set; then :
  10582. enableval=$enable_sim_endian; case "${enableval}" in
  10583. b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
  10584. l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
  10585. yes) if test x"$wire_endian" != x; then
  10586. sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
  10587. else
  10588. if test x"$default_endian" != x; then
  10589. sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
  10590. else
  10591. echo "No hard-wired endian for target $target" 1>&6
  10592. sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
  10593. fi
  10594. fi;;
  10595. no) if test x"$default_endian" != x; then
  10596. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
  10597. else
  10598. if test x"$wire_endian" != x; then
  10599. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
  10600. else
  10601. echo "No default endian for target $target" 1>&6
  10602. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
  10603. fi
  10604. fi;;
  10605. *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
  10606. esac
  10607. if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
  10608. echo "Setting endian flags = $sim_endian" 6>&1
  10609. fi
  10610. else
  10611. if test x"$default_endian" != x; then
  10612. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
  10613. else
  10614. if test x"$wire_endian" != x; then
  10615. sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
  10616. else
  10617. sim_endian=
  10618. fi
  10619. fi
  10620. fi
  10621. wire_alignment="STRICT_ALIGNMENT"
  10622. default_alignment=""
  10623. # Check whether --enable-sim-alignment was given.
  10624. if test "${enable_sim_alignment+set}" = set; then :
  10625. enableval=$enable_sim_alignment; case "${enableval}" in
  10626. strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
  10627. nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
  10628. forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
  10629. yes) if test x"$wire_alignment" != x; then
  10630. sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
  10631. else
  10632. if test x"$default_alignment" != x; then
  10633. sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
  10634. else
  10635. echo "No hard-wired alignment for target $target" 1>&6
  10636. sim_alignment="-DWITH_ALIGNMENT=0"
  10637. fi
  10638. fi;;
  10639. no) if test x"$default_alignment" != x; then
  10640. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
  10641. else
  10642. if test x"$wire_alignment" != x; then
  10643. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
  10644. else
  10645. echo "No default alignment for target $target" 1>&6
  10646. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
  10647. fi
  10648. fi;;
  10649. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
  10650. esac
  10651. if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
  10652. echo "Setting alignment flags = $sim_alignment" 6>&1
  10653. fi
  10654. else
  10655. if test x"$default_alignment" != x; then
  10656. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
  10657. else
  10658. if test x"$wire_alignment" != x; then
  10659. sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
  10660. else
  10661. sim_alignment=
  10662. fi
  10663. fi
  10664. fi
  10665. # Check whether --enable-sim-hostendian was given.
  10666. if test "${enable_sim_hostendian+set}" = set; then :
  10667. enableval=$enable_sim_hostendian; case "${enableval}" in
  10668. no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
  10669. b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
  10670. l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
  10671. *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
  10672. esac
  10673. if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
  10674. echo "Setting hostendian flags = $sim_hostendian" 6>&1
  10675. fi
  10676. else
  10677. if test "x$cross_compiling" = "xno"; then
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  10679. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  10680. if test "${ac_cv_c_bigendian+set}" = set; then :
  10681. $as_echo_n "(cached) " >&6
  10682. else
  10683. ac_cv_c_bigendian=unknown
  10684. # See if we're dealing with a universal compiler.
  10685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10686. /* end confdefs.h. */
  10687. #ifndef __APPLE_CC__
  10688. not a universal capable compiler
  10689. #endif
  10690. typedef int dummy;
  10691. _ACEOF
  10692. if ac_fn_c_try_compile "$LINENO"; then :
  10693. # Check for potential -arch flags. It is not universal unless
  10694. # there are at least two -arch flags with different values.
  10695. ac_arch=
  10696. ac_prev=
  10697. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  10698. if test -n "$ac_prev"; then
  10699. case $ac_word in
  10700. i?86 | x86_64 | ppc | ppc64)
  10701. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  10702. ac_arch=$ac_word
  10703. else
  10704. ac_cv_c_bigendian=universal
  10705. break
  10706. fi
  10707. ;;
  10708. esac
  10709. ac_prev=
  10710. elif test "x$ac_word" = "x-arch"; then
  10711. ac_prev=arch
  10712. fi
  10713. done
  10714. fi
  10715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10716. if test $ac_cv_c_bigendian = unknown; then
  10717. # See if sys/param.h defines the BYTE_ORDER macro.
  10718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10719. /* end confdefs.h. */
  10720. #include <sys/types.h>
  10721. #include <sys/param.h>
  10722. int
  10723. main ()
  10724. {
  10725. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  10726. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  10727. && LITTLE_ENDIAN)
  10728. bogus endian macros
  10729. #endif
  10730. ;
  10731. return 0;
  10732. }
  10733. _ACEOF
  10734. if ac_fn_c_try_compile "$LINENO"; then :
  10735. # It does; now see whether it defined to BIG_ENDIAN or not.
  10736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10737. /* end confdefs.h. */
  10738. #include <sys/types.h>
  10739. #include <sys/param.h>
  10740. int
  10741. main ()
  10742. {
  10743. #if BYTE_ORDER != BIG_ENDIAN
  10744. not big endian
  10745. #endif
  10746. ;
  10747. return 0;
  10748. }
  10749. _ACEOF
  10750. if ac_fn_c_try_compile "$LINENO"; then :
  10751. ac_cv_c_bigendian=yes
  10752. else
  10753. ac_cv_c_bigendian=no
  10754. fi
  10755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10756. fi
  10757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10758. fi
  10759. if test $ac_cv_c_bigendian = unknown; then
  10760. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  10761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10762. /* end confdefs.h. */
  10763. #include <limits.h>
  10764. int
  10765. main ()
  10766. {
  10767. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  10768. bogus endian macros
  10769. #endif
  10770. ;
  10771. return 0;
  10772. }
  10773. _ACEOF
  10774. if ac_fn_c_try_compile "$LINENO"; then :
  10775. # It does; now see whether it defined to _BIG_ENDIAN or not.
  10776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10777. /* end confdefs.h. */
  10778. #include <limits.h>
  10779. int
  10780. main ()
  10781. {
  10782. #ifndef _BIG_ENDIAN
  10783. not big endian
  10784. #endif
  10785. ;
  10786. return 0;
  10787. }
  10788. _ACEOF
  10789. if ac_fn_c_try_compile "$LINENO"; then :
  10790. ac_cv_c_bigendian=yes
  10791. else
  10792. ac_cv_c_bigendian=no
  10793. fi
  10794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10795. fi
  10796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10797. fi
  10798. if test $ac_cv_c_bigendian = unknown; then
  10799. # Compile a test program.
  10800. if test "$cross_compiling" = yes; then :
  10801. # Try to guess by grepping values from an object file.
  10802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10803. /* end confdefs.h. */
  10804. short int ascii_mm[] =
  10805. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  10806. short int ascii_ii[] =
  10807. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  10808. int use_ascii (int i) {
  10809. return ascii_mm[i] + ascii_ii[i];
  10810. }
  10811. short int ebcdic_ii[] =
  10812. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  10813. short int ebcdic_mm[] =
  10814. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  10815. int use_ebcdic (int i) {
  10816. return ebcdic_mm[i] + ebcdic_ii[i];
  10817. }
  10818. extern int foo;
  10819. int
  10820. main ()
  10821. {
  10822. return use_ascii (foo) == use_ebcdic (foo);
  10823. ;
  10824. return 0;
  10825. }
  10826. _ACEOF
  10827. if ac_fn_c_try_compile "$LINENO"; then :
  10828. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  10829. ac_cv_c_bigendian=yes
  10830. fi
  10831. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  10832. if test "$ac_cv_c_bigendian" = unknown; then
  10833. ac_cv_c_bigendian=no
  10834. else
  10835. # finding both strings is unlikely to happen, but who knows?
  10836. ac_cv_c_bigendian=unknown
  10837. fi
  10838. fi
  10839. fi
  10840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10841. else
  10842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10843. /* end confdefs.h. */
  10844. $ac_includes_default
  10845. int
  10846. main ()
  10847. {
  10848. /* Are we little or big endian? From Harbison&Steele. */
  10849. union
  10850. {
  10851. long int l;
  10852. char c[sizeof (long int)];
  10853. } u;
  10854. u.l = 1;
  10855. return u.c[sizeof (long int) - 1] == 1;
  10856. ;
  10857. return 0;
  10858. }
  10859. _ACEOF
  10860. if ac_fn_c_try_run "$LINENO"; then :
  10861. ac_cv_c_bigendian=no
  10862. else
  10863. ac_cv_c_bigendian=yes
  10864. fi
  10865. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10866. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10867. fi
  10868. fi
  10869. fi
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  10871. $as_echo "$ac_cv_c_bigendian" >&6; }
  10872. case $ac_cv_c_bigendian in #(
  10873. yes)
  10874. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  10875. ;; #(
  10876. no)
  10877. ;; #(
  10878. universal)
  10879. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  10880. ;; #(
  10881. *)
  10882. as_fn_error "unknown endianness
  10883. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  10884. esac
  10885. if test $ac_cv_c_bigendian = yes; then
  10886. sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
  10887. else
  10888. sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
  10889. fi
  10890. else
  10891. sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
  10892. fi
  10893. fi
  10894. # Check whether --enable-sim-environment was given.
  10895. if test "${enable_sim_environment+set}" = set; then :
  10896. enableval=$enable_sim_environment; case "${enableval}" in
  10897. all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
  10898. user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
  10899. virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
  10900. operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
  10901. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-environment\"" "$LINENO" 5;
  10902. sim_environment="";;
  10903. esac
  10904. if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
  10905. echo "Setting sim environment = $sim_environment" 6>&1
  10906. fi
  10907. else
  10908. sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
  10909. fi
  10910. default_sim_inline=""
  10911. # Check whether --enable-sim-inline was given.
  10912. if test "${enable_sim_inline+set}" = set; then :
  10913. enableval=$enable_sim_inline; sim_inline=""
  10914. case "$enableval" in
  10915. no) sim_inline="-DDEFAULT_INLINE=0";;
  10916. 0) sim_inline="-DDEFAULT_INLINE=0";;
  10917. yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
  10918. 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
  10919. *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10920. new_flag=""
  10921. case "$x" in
  10922. *_INLINE=*) new_flag="-D$x";;
  10923. *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
  10924. *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
  10925. *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
  10926. esac
  10927. if test x"$sim_inline" = x""; then
  10928. sim_inline="$new_flag"
  10929. else
  10930. sim_inline="$sim_inline $new_flag"
  10931. fi
  10932. done;;
  10933. esac
  10934. if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
  10935. echo "Setting inline flags = $sim_inline" 6>&1
  10936. fi
  10937. else
  10938. if test "x$cross_compiling" = "xno"; then
  10939. if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
  10940. sim_inline="${default_sim_inline}"
  10941. if test x"$silent" != x"yes"; then
  10942. echo "Setting inline flags = $sim_inline" 6>&1
  10943. fi
  10944. else
  10945. sim_inline=""
  10946. fi
  10947. else
  10948. sim_inline="-DDEFAULT_INLINE=0"
  10949. fi
  10950. fi
  10951. # Check whether --enable-werror was given.
  10952. if test "${enable_werror+set}" = set; then :
  10953. enableval=$enable_werror; case "${enableval}" in
  10954. yes | y) ERROR_ON_WARNING="yes" ;;
  10955. no | n) ERROR_ON_WARNING="no" ;;
  10956. *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  10957. esac
  10958. fi
  10959. # Enable -Werror by default when using gcc
  10960. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  10961. ERROR_ON_WARNING=yes
  10962. fi
  10963. WERROR_CFLAGS=""
  10964. if test "${ERROR_ON_WARNING}" = yes ; then
  10965. # NOTE: Disabled in the sim dir due to most sims generating warnings.
  10966. # WERROR_CFLAGS="-Werror"
  10967. true
  10968. fi
  10969. build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
  10970. -Wpointer-sign \
  10971. -Wno-unused -Wunused-value -Wunused-function \
  10972. -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
  10973. -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
  10974. -Wold-style-declaration -Wold-style-definition"
  10975. # Enable -Wno-format by default when using gcc on mingw since many
  10976. # GCC versions complain about %I64.
  10977. case "${host}" in
  10978. *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
  10979. *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
  10980. esac
  10981. # Check whether --enable-build-warnings was given.
  10982. if test "${enable_build_warnings+set}" = set; then :
  10983. enableval=$enable_build_warnings; case "${enableval}" in
  10984. yes) ;;
  10985. no) build_warnings="-w";;
  10986. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10987. build_warnings="${build_warnings} ${t}";;
  10988. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10989. build_warnings="${t} ${build_warnings}";;
  10990. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10991. esac
  10992. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  10993. echo "Setting compiler warning flags = $build_warnings" 6>&1
  10994. fi
  10995. fi
  10996. # Check whether --enable-sim-build-warnings was given.
  10997. if test "${enable_sim_build_warnings+set}" = set; then :
  10998. enableval=$enable_sim_build_warnings; case "${enableval}" in
  10999. yes) ;;
  11000. no) build_warnings="-w";;
  11001. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  11002. build_warnings="${build_warnings} ${t}";;
  11003. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  11004. build_warnings="${t} ${build_warnings}";;
  11005. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  11006. esac
  11007. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  11008. echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
  11009. fi
  11010. fi
  11011. WARN_CFLAGS=""
  11012. if test "x${build_warnings}" != x -a "x$GCC" = xyes
  11013. then
  11014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
  11015. $as_echo_n "checking compiler warning flags... " >&6; }
  11016. # Separate out the -Werror flag as some files just cannot be
  11017. # compiled with it enabled.
  11018. for w in ${build_warnings}; do
  11019. case $w in
  11020. -Werr*) WERROR_CFLAGS=-Werror ;;
  11021. *) # Check that GCC accepts it
  11022. saved_CFLAGS="$CFLAGS"
  11023. CFLAGS="$CFLAGS $w"
  11024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11025. /* end confdefs.h. */
  11026. int
  11027. main ()
  11028. {
  11029. ;
  11030. return 0;
  11031. }
  11032. _ACEOF
  11033. if ac_fn_c_try_compile "$LINENO"; then :
  11034. WARN_CFLAGS="${WARN_CFLAGS} $w"
  11035. fi
  11036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11037. CFLAGS="$saved_CFLAGS"
  11038. esac
  11039. done
  11040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
  11041. $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
  11042. fi
  11043. ac_sources="$sim_link_files"
  11044. ac_dests="$sim_link_links"
  11045. while test -n "$ac_sources"; do
  11046. set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  11047. set $ac_sources; ac_source=$1; shift; ac_sources=$*
  11048. ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
  11049. done
  11050. ac_config_links="$ac_config_links $ac_config_links_1"
  11051. cgen_breaks=""
  11052. if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
  11053. cgen_breaks="break cgen_rtx_error";
  11054. fi
  11055. ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
  11056. ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
  11057. ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
  11058. ac_config_commands="$ac_config_commands Makefile"
  11059. ac_config_commands="$ac_config_commands stamp-h"
  11060. cat >confcache <<\_ACEOF
  11061. # This file is a shell script that caches the results of configure
  11062. # tests run on this system so they can be shared between configure
  11063. # scripts and configure runs, see configure's option --config-cache.
  11064. # It is not useful on other systems. If it contains results you don't
  11065. # want to keep, you may remove or edit it.
  11066. #
  11067. # config.status only pays attention to the cache file if you give it
  11068. # the --recheck option to rerun configure.
  11069. #
  11070. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11071. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11072. # following values.
  11073. _ACEOF
  11074. # The following way of writing the cache mishandles newlines in values,
  11075. # but we know of no workaround that is simple, portable, and efficient.
  11076. # So, we kill variables containing newlines.
  11077. # Ultrix sh set writes to stderr and can't be redirected directly,
  11078. # and sets the high bit in the cache file unless we assign to the vars.
  11079. (
  11080. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11081. eval ac_val=\$$ac_var
  11082. case $ac_val in #(
  11083. *${as_nl}*)
  11084. case $ac_var in #(
  11085. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11086. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11087. esac
  11088. case $ac_var in #(
  11089. _ | IFS | as_nl) ;; #(
  11090. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11091. *) { eval $ac_var=; unset $ac_var;} ;;
  11092. esac ;;
  11093. esac
  11094. done
  11095. (set) 2>&1 |
  11096. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11097. *${as_nl}ac_space=\ *)
  11098. # `set' does not quote correctly, so add quotes: double-quote
  11099. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11100. sed -n \
  11101. "s/'/'\\\\''/g;
  11102. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11103. ;; #(
  11104. *)
  11105. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11106. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11107. ;;
  11108. esac |
  11109. sort
  11110. ) |
  11111. sed '
  11112. /^ac_cv_env_/b end
  11113. t clear
  11114. :clear
  11115. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11116. t end
  11117. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11118. :end' >>confcache
  11119. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11120. if test -w "$cache_file"; then
  11121. test "x$cache_file" != "x/dev/null" &&
  11122. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11123. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11124. cat confcache >$cache_file
  11125. else
  11126. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11127. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11128. fi
  11129. fi
  11130. rm -f confcache
  11131. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11132. # Let make expand exec_prefix.
  11133. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11134. DEFS=-DHAVE_CONFIG_H
  11135. ac_libobjs=
  11136. ac_ltlibobjs=
  11137. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11138. # 1. Remove the extension, and $U if already installed.
  11139. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11140. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11141. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11142. # will be set to the directory where LIBOBJS objects are built.
  11143. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11144. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11145. done
  11146. LIBOBJS=$ac_libobjs
  11147. LTLIBOBJS=$ac_ltlibobjs
  11148. if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
  11149. as_fn_error "conditional \"GMAKE\" was never defined.
  11150. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11151. fi
  11152. if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
  11153. as_fn_error "conditional \"PLUGINS\" was never defined.
  11154. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11155. fi
  11156. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11157. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  11158. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11159. fi
  11160. : ${CONFIG_STATUS=./config.status}
  11161. ac_write_fail=0
  11162. ac_clean_files_save=$ac_clean_files
  11163. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11164. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11165. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11166. as_write_fail=0
  11167. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11168. #! $SHELL
  11169. # Generated by $as_me.
  11170. # Run this file to recreate the current configuration.
  11171. # Compiler output produced by configure, useful for debugging
  11172. # configure, is in config.log if it exists.
  11173. debug=false
  11174. ac_cs_recheck=false
  11175. ac_cs_silent=false
  11176. SHELL=\${CONFIG_SHELL-$SHELL}
  11177. export SHELL
  11178. _ASEOF
  11179. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11180. ## -------------------- ##
  11181. ## M4sh Initialization. ##
  11182. ## -------------------- ##
  11183. # Be more Bourne compatible
  11184. DUALCASE=1; export DUALCASE # for MKS sh
  11185. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11186. emulate sh
  11187. NULLCMD=:
  11188. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11189. # is contrary to our usage. Disable this feature.
  11190. alias -g '${1+"$@"}'='"$@"'
  11191. setopt NO_GLOB_SUBST
  11192. else
  11193. case `(set -o) 2>/dev/null` in #(
  11194. *posix*) :
  11195. set -o posix ;; #(
  11196. *) :
  11197. ;;
  11198. esac
  11199. fi
  11200. as_nl='
  11201. '
  11202. export as_nl
  11203. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11204. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11205. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11206. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11207. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11208. # but without wasting forks for bash or zsh.
  11209. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11210. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11211. as_echo='print -r --'
  11212. as_echo_n='print -rn --'
  11213. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11214. as_echo='printf %s\n'
  11215. as_echo_n='printf %s'
  11216. else
  11217. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11218. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11219. as_echo_n='/usr/ucb/echo -n'
  11220. else
  11221. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11222. as_echo_n_body='eval
  11223. arg=$1;
  11224. case $arg in #(
  11225. *"$as_nl"*)
  11226. expr "X$arg" : "X\\(.*\\)$as_nl";
  11227. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11228. esac;
  11229. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11230. '
  11231. export as_echo_n_body
  11232. as_echo_n='sh -c $as_echo_n_body as_echo'
  11233. fi
  11234. export as_echo_body
  11235. as_echo='sh -c $as_echo_body as_echo'
  11236. fi
  11237. # The user is always right.
  11238. if test "${PATH_SEPARATOR+set}" != set; then
  11239. PATH_SEPARATOR=:
  11240. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11241. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11242. PATH_SEPARATOR=';'
  11243. }
  11244. fi
  11245. # IFS
  11246. # We need space, tab and new line, in precisely that order. Quoting is
  11247. # there to prevent editors from complaining about space-tab.
  11248. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11249. # splitting by setting IFS to empty value.)
  11250. IFS=" "" $as_nl"
  11251. # Find who we are. Look in the path if we contain no directory separator.
  11252. case $0 in #((
  11253. *[\\/]* ) as_myself=$0 ;;
  11254. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11255. for as_dir in $PATH
  11256. do
  11257. IFS=$as_save_IFS
  11258. test -z "$as_dir" && as_dir=.
  11259. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11260. done
  11261. IFS=$as_save_IFS
  11262. ;;
  11263. esac
  11264. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11265. # in which case we are not to be found in the path.
  11266. if test "x$as_myself" = x; then
  11267. as_myself=$0
  11268. fi
  11269. if test ! -f "$as_myself"; then
  11270. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11271. exit 1
  11272. fi
  11273. # Unset variables that we do not need and which cause bugs (e.g. in
  11274. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11275. # suppresses any "Segmentation fault" message there. '((' could
  11276. # trigger a bug in pdksh 5.2.14.
  11277. for as_var in BASH_ENV ENV MAIL MAILPATH
  11278. do eval test x\${$as_var+set} = xset \
  11279. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11280. done
  11281. PS1='$ '
  11282. PS2='> '
  11283. PS4='+ '
  11284. # NLS nuisances.
  11285. LC_ALL=C
  11286. export LC_ALL
  11287. LANGUAGE=C
  11288. export LANGUAGE
  11289. # CDPATH.
  11290. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11291. # as_fn_error ERROR [LINENO LOG_FD]
  11292. # ---------------------------------
  11293. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11294. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11295. # script with status $?, using 1 if that was 0.
  11296. as_fn_error ()
  11297. {
  11298. as_status=$?; test $as_status -eq 0 && as_status=1
  11299. if test "$3"; then
  11300. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11301. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  11302. fi
  11303. $as_echo "$as_me: error: $1" >&2
  11304. as_fn_exit $as_status
  11305. } # as_fn_error
  11306. # as_fn_set_status STATUS
  11307. # -----------------------
  11308. # Set $? to STATUS, without forking.
  11309. as_fn_set_status ()
  11310. {
  11311. return $1
  11312. } # as_fn_set_status
  11313. # as_fn_exit STATUS
  11314. # -----------------
  11315. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11316. as_fn_exit ()
  11317. {
  11318. set +e
  11319. as_fn_set_status $1
  11320. exit $1
  11321. } # as_fn_exit
  11322. # as_fn_unset VAR
  11323. # ---------------
  11324. # Portably unset VAR.
  11325. as_fn_unset ()
  11326. {
  11327. { eval $1=; unset $1;}
  11328. }
  11329. as_unset=as_fn_unset
  11330. # as_fn_append VAR VALUE
  11331. # ----------------------
  11332. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11333. # advantage of any shell optimizations that allow amortized linear growth over
  11334. # repeated appends, instead of the typical quadratic growth present in naive
  11335. # implementations.
  11336. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11337. eval 'as_fn_append ()
  11338. {
  11339. eval $1+=\$2
  11340. }'
  11341. else
  11342. as_fn_append ()
  11343. {
  11344. eval $1=\$$1\$2
  11345. }
  11346. fi # as_fn_append
  11347. # as_fn_arith ARG...
  11348. # ------------------
  11349. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11350. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11351. # must be portable across $(()) and expr.
  11352. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11353. eval 'as_fn_arith ()
  11354. {
  11355. as_val=$(( $* ))
  11356. }'
  11357. else
  11358. as_fn_arith ()
  11359. {
  11360. as_val=`expr "$@" || test $? -eq 1`
  11361. }
  11362. fi # as_fn_arith
  11363. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11364. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11365. as_expr=expr
  11366. else
  11367. as_expr=false
  11368. fi
  11369. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11370. as_basename=basename
  11371. else
  11372. as_basename=false
  11373. fi
  11374. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11375. as_dirname=dirname
  11376. else
  11377. as_dirname=false
  11378. fi
  11379. as_me=`$as_basename -- "$0" ||
  11380. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11381. X"$0" : 'X\(//\)$' \| \
  11382. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11383. $as_echo X/"$0" |
  11384. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11385. s//\1/
  11386. q
  11387. }
  11388. /^X\/\(\/\/\)$/{
  11389. s//\1/
  11390. q
  11391. }
  11392. /^X\/\(\/\).*/{
  11393. s//\1/
  11394. q
  11395. }
  11396. s/.*/./; q'`
  11397. # Avoid depending upon Character Ranges.
  11398. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11399. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11400. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11401. as_cr_digits='0123456789'
  11402. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11403. ECHO_C= ECHO_N= ECHO_T=
  11404. case `echo -n x` in #(((((
  11405. -n*)
  11406. case `echo 'xy\c'` in
  11407. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11408. xy) ECHO_C='\c';;
  11409. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11410. ECHO_T=' ';;
  11411. esac;;
  11412. *)
  11413. ECHO_N='-n';;
  11414. esac
  11415. rm -f conf$$ conf$$.exe conf$$.file
  11416. if test -d conf$$.dir; then
  11417. rm -f conf$$.dir/conf$$.file
  11418. else
  11419. rm -f conf$$.dir
  11420. mkdir conf$$.dir 2>/dev/null
  11421. fi
  11422. if (echo >conf$$.file) 2>/dev/null; then
  11423. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11424. as_ln_s='ln -s'
  11425. # ... but there are two gotchas:
  11426. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11427. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11428. # In both cases, we have to default to `cp -p'.
  11429. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11430. as_ln_s='cp -p'
  11431. elif ln conf$$.file conf$$ 2>/dev/null; then
  11432. as_ln_s=ln
  11433. else
  11434. as_ln_s='cp -p'
  11435. fi
  11436. else
  11437. as_ln_s='cp -p'
  11438. fi
  11439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11440. rmdir conf$$.dir 2>/dev/null
  11441. # as_fn_mkdir_p
  11442. # -------------
  11443. # Create "$as_dir" as a directory, including parents if necessary.
  11444. as_fn_mkdir_p ()
  11445. {
  11446. case $as_dir in #(
  11447. -*) as_dir=./$as_dir;;
  11448. esac
  11449. test -d "$as_dir" || eval $as_mkdir_p || {
  11450. as_dirs=
  11451. while :; do
  11452. case $as_dir in #(
  11453. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11454. *) as_qdir=$as_dir;;
  11455. esac
  11456. as_dirs="'$as_qdir' $as_dirs"
  11457. as_dir=`$as_dirname -- "$as_dir" ||
  11458. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11459. X"$as_dir" : 'X\(//\)[^/]' \| \
  11460. X"$as_dir" : 'X\(//\)$' \| \
  11461. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11462. $as_echo X"$as_dir" |
  11463. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11464. s//\1/
  11465. q
  11466. }
  11467. /^X\(\/\/\)[^/].*/{
  11468. s//\1/
  11469. q
  11470. }
  11471. /^X\(\/\/\)$/{
  11472. s//\1/
  11473. q
  11474. }
  11475. /^X\(\/\).*/{
  11476. s//\1/
  11477. q
  11478. }
  11479. s/.*/./; q'`
  11480. test -d "$as_dir" && break
  11481. done
  11482. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11483. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  11484. } # as_fn_mkdir_p
  11485. if mkdir -p . 2>/dev/null; then
  11486. as_mkdir_p='mkdir -p "$as_dir"'
  11487. else
  11488. test -d ./-p && rmdir ./-p
  11489. as_mkdir_p=false
  11490. fi
  11491. if test -x / >/dev/null 2>&1; then
  11492. as_test_x='test -x'
  11493. else
  11494. if ls -dL / >/dev/null 2>&1; then
  11495. as_ls_L_option=L
  11496. else
  11497. as_ls_L_option=
  11498. fi
  11499. as_test_x='
  11500. eval sh -c '\''
  11501. if test -d "$1"; then
  11502. test -d "$1/.";
  11503. else
  11504. case $1 in #(
  11505. -*)set "./$1";;
  11506. esac;
  11507. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11508. ???[sx]*):;;*)false;;esac;fi
  11509. '\'' sh
  11510. '
  11511. fi
  11512. as_executable_p=$as_test_x
  11513. # Sed expression to map a string onto a valid CPP name.
  11514. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11515. # Sed expression to map a string onto a valid variable name.
  11516. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11517. exec 6>&1
  11518. ## ----------------------------------- ##
  11519. ## Main body of $CONFIG_STATUS script. ##
  11520. ## ----------------------------------- ##
  11521. _ASEOF
  11522. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11523. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11524. # Save the log message, to keep $0 and so on meaningful, and to
  11525. # report actual input values of CONFIG_FILES etc. instead of their
  11526. # values after options handling.
  11527. ac_log="
  11528. This file was extended by $as_me, which was
  11529. generated by GNU Autoconf 2.64. Invocation command line was
  11530. CONFIG_FILES = $CONFIG_FILES
  11531. CONFIG_HEADERS = $CONFIG_HEADERS
  11532. CONFIG_LINKS = $CONFIG_LINKS
  11533. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11534. $ $0 $@
  11535. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11536. "
  11537. _ACEOF
  11538. case $ac_config_files in *"
  11539. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11540. esac
  11541. case $ac_config_headers in *"
  11542. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11543. esac
  11544. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11545. # Files that config.status was made for.
  11546. config_files="$ac_config_files"
  11547. config_headers="$ac_config_headers"
  11548. config_links="$ac_config_links"
  11549. config_commands="$ac_config_commands"
  11550. _ACEOF
  11551. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11552. ac_cs_usage="\
  11553. \`$as_me' instantiates files and other configuration actions
  11554. from templates according to the current configuration. Unless the files
  11555. and actions are specified as TAGs, all are instantiated by default.
  11556. Usage: $0 [OPTION]... [TAG]...
  11557. -h, --help print this help, then exit
  11558. -V, --version print version number and configuration settings, then exit
  11559. -q, --quiet, --silent
  11560. do not print progress messages
  11561. -d, --debug don't remove temporary files
  11562. --recheck update $as_me by reconfiguring in the same conditions
  11563. --file=FILE[:TEMPLATE]
  11564. instantiate the configuration file FILE
  11565. --header=FILE[:TEMPLATE]
  11566. instantiate the configuration header FILE
  11567. Configuration files:
  11568. $config_files
  11569. Configuration headers:
  11570. $config_headers
  11571. Configuration links:
  11572. $config_links
  11573. Configuration commands:
  11574. $config_commands
  11575. Report bugs to the package provider."
  11576. _ACEOF
  11577. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11578. ac_cs_version="\\
  11579. config.status
  11580. configured by $0, generated by GNU Autoconf 2.64,
  11581. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11582. Copyright (C) 2009 Free Software Foundation, Inc.
  11583. This config.status script is free software; the Free Software Foundation
  11584. gives unlimited permission to copy, distribute and modify it."
  11585. ac_pwd='$ac_pwd'
  11586. srcdir='$srcdir'
  11587. INSTALL='$INSTALL'
  11588. AWK='$AWK'
  11589. test -n "\$AWK" || AWK=awk
  11590. _ACEOF
  11591. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11592. # The default lists apply if the user does not specify any file.
  11593. ac_need_defaults=:
  11594. while test $# != 0
  11595. do
  11596. case $1 in
  11597. --*=*)
  11598. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11599. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11600. ac_shift=:
  11601. ;;
  11602. *)
  11603. ac_option=$1
  11604. ac_optarg=$2
  11605. ac_shift=shift
  11606. ;;
  11607. esac
  11608. case $ac_option in
  11609. # Handling of the options.
  11610. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11611. ac_cs_recheck=: ;;
  11612. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11613. $as_echo "$ac_cs_version"; exit ;;
  11614. --debug | --debu | --deb | --de | --d | -d )
  11615. debug=: ;;
  11616. --file | --fil | --fi | --f )
  11617. $ac_shift
  11618. case $ac_optarg in
  11619. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11620. esac
  11621. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11622. ac_need_defaults=false;;
  11623. --header | --heade | --head | --hea )
  11624. $ac_shift
  11625. case $ac_optarg in
  11626. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11627. esac
  11628. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11629. ac_need_defaults=false;;
  11630. --he | --h)
  11631. # Conflict between --help and --header
  11632. as_fn_error "ambiguous option: \`$1'
  11633. Try \`$0 --help' for more information.";;
  11634. --help | --hel | -h )
  11635. $as_echo "$ac_cs_usage"; exit ;;
  11636. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11637. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11638. ac_cs_silent=: ;;
  11639. # This is an error.
  11640. -*) as_fn_error "unrecognized option: \`$1'
  11641. Try \`$0 --help' for more information." ;;
  11642. *) as_fn_append ac_config_targets " $1"
  11643. ac_need_defaults=false ;;
  11644. esac
  11645. shift
  11646. done
  11647. ac_configure_extra_args=
  11648. if $ac_cs_silent; then
  11649. exec 6>/dev/null
  11650. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11651. fi
  11652. _ACEOF
  11653. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11654. if \$ac_cs_recheck; then
  11655. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11656. shift
  11657. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11658. CONFIG_SHELL='$SHELL'
  11659. export CONFIG_SHELL
  11660. exec "\$@"
  11661. fi
  11662. _ACEOF
  11663. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11664. exec 5>>config.log
  11665. {
  11666. echo
  11667. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11668. ## Running $as_me. ##
  11669. _ASBOX
  11670. $as_echo "$ac_log"
  11671. } >&5
  11672. _ACEOF
  11673. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11674. #
  11675. # INIT-COMMANDS
  11676. #
  11677. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  11678. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11679. # if CDPATH is set.
  11680. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11681. sed_quote_subst='$sed_quote_subst'
  11682. double_quote_subst='$double_quote_subst'
  11683. delay_variable_subst='$delay_variable_subst'
  11684. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11685. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11686. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11687. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11688. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11689. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11690. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11691. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11692. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11693. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11694. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11695. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11696. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11697. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11698. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11699. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11700. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11701. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11702. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11703. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11704. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11705. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11706. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11707. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11708. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11709. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11710. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11711. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11712. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11713. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11714. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11715. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11716. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11717. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11718. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11719. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11720. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11721. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11722. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11723. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11724. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11725. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11726. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11727. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11728. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11729. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11730. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11731. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11732. 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"`'
  11733. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11734. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11735. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11736. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11737. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11738. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11739. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11740. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11741. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11742. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11743. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11744. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11745. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11746. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11747. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11748. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11749. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11750. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11751. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11752. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11753. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11754. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11755. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11756. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11757. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11758. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11759. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11760. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11761. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11762. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11763. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11764. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  11765. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11766. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11767. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11768. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11769. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11770. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11771. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11772. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11773. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  11774. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11775. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11776. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11777. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11778. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11779. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11780. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11781. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11782. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11783. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11784. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11785. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11786. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11787. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11788. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11789. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11790. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11791. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11792. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11793. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11794. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11795. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11796. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11797. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11798. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11799. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11800. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11801. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11802. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11803. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11804. LTCC='$LTCC'
  11805. LTCFLAGS='$LTCFLAGS'
  11806. compiler='$compiler_DEFAULT'
  11807. # A function that is used when there is no print builtin or printf.
  11808. func_fallback_echo ()
  11809. {
  11810. eval 'cat <<_LTECHO_EOF
  11811. \$1
  11812. _LTECHO_EOF'
  11813. }
  11814. # Quote evaled strings.
  11815. for var in SHELL \
  11816. ECHO \
  11817. SED \
  11818. GREP \
  11819. EGREP \
  11820. FGREP \
  11821. LD \
  11822. NM \
  11823. LN_S \
  11824. lt_SP2NL \
  11825. lt_NL2SP \
  11826. reload_flag \
  11827. OBJDUMP \
  11828. deplibs_check_method \
  11829. file_magic_cmd \
  11830. AR \
  11831. AR_FLAGS \
  11832. STRIP \
  11833. RANLIB \
  11834. CC \
  11835. CFLAGS \
  11836. compiler \
  11837. lt_cv_sys_global_symbol_pipe \
  11838. lt_cv_sys_global_symbol_to_cdecl \
  11839. lt_cv_sys_global_symbol_to_c_name_address \
  11840. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11841. lt_prog_compiler_no_builtin_flag \
  11842. lt_prog_compiler_wl \
  11843. lt_prog_compiler_pic \
  11844. lt_prog_compiler_static \
  11845. lt_cv_prog_compiler_c_o \
  11846. need_locks \
  11847. DSYMUTIL \
  11848. NMEDIT \
  11849. LIPO \
  11850. OTOOL \
  11851. OTOOL64 \
  11852. shrext_cmds \
  11853. export_dynamic_flag_spec \
  11854. whole_archive_flag_spec \
  11855. compiler_needs_object \
  11856. with_gnu_ld \
  11857. allow_undefined_flag \
  11858. no_undefined_flag \
  11859. hardcode_libdir_flag_spec \
  11860. hardcode_libdir_flag_spec_ld \
  11861. hardcode_libdir_separator \
  11862. fix_srcfile_path \
  11863. exclude_expsyms \
  11864. include_expsyms \
  11865. file_list_spec \
  11866. variables_saved_for_relink \
  11867. libname_spec \
  11868. library_names_spec \
  11869. soname_spec \
  11870. install_override_mode \
  11871. finish_eval \
  11872. old_striplib \
  11873. striplib; do
  11874. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11875. *[\\\\\\\`\\"\\\$]*)
  11876. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11877. ;;
  11878. *)
  11879. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11880. ;;
  11881. esac
  11882. done
  11883. # Double-quote double-evaled strings.
  11884. for var in reload_cmds \
  11885. old_postinstall_cmds \
  11886. old_postuninstall_cmds \
  11887. old_archive_cmds \
  11888. extract_expsyms_cmds \
  11889. old_archive_from_new_cmds \
  11890. old_archive_from_expsyms_cmds \
  11891. archive_cmds \
  11892. archive_expsym_cmds \
  11893. module_cmds \
  11894. module_expsym_cmds \
  11895. export_symbols_cmds \
  11896. prelink_cmds \
  11897. postinstall_cmds \
  11898. postuninstall_cmds \
  11899. finish_cmds \
  11900. sys_lib_search_path_spec \
  11901. sys_lib_dlsearch_path_spec; do
  11902. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11903. *[\\\\\\\`\\"\\\$]*)
  11904. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11905. ;;
  11906. *)
  11907. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11908. ;;
  11909. esac
  11910. done
  11911. ac_aux_dir='$ac_aux_dir'
  11912. xsi_shell='$xsi_shell'
  11913. lt_shell_append='$lt_shell_append'
  11914. # See if we are running on zsh, and set the options which allow our
  11915. # commands through without removal of \ escapes INIT.
  11916. if test -n "\${ZSH_VERSION+set}" ; then
  11917. setopt NO_GLOB_SUBST
  11918. fi
  11919. PACKAGE='$PACKAGE'
  11920. VERSION='$VERSION'
  11921. TIMESTAMP='$TIMESTAMP'
  11922. RM='$RM'
  11923. ofile='$ofile'
  11924. _ACEOF
  11925. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11926. # Handling of arguments.
  11927. for ac_config_target in $ac_config_targets
  11928. do
  11929. case $ac_config_target in
  11930. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  11931. "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  11932. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11933. "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
  11934. "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
  11935. "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
  11936. ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
  11937. "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
  11938. "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
  11939. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11940. esac
  11941. done
  11942. # If the user did not use the arguments to specify the items to instantiate,
  11943. # then the envvar interface is used. Set only those that are not.
  11944. # We use the long form for the default assignment because of an extremely
  11945. # bizarre bug on SunOS 4.1.3.
  11946. if $ac_need_defaults; then
  11947. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11948. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11949. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  11950. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11951. fi
  11952. # Have a temporary directory for convenience. Make it in the build tree
  11953. # simply because there is no reason against having it here, and in addition,
  11954. # creating and moving files from /tmp can sometimes cause problems.
  11955. # Hook for its removal unless debugging.
  11956. # Note that there is a small window in which the directory will not be cleaned:
  11957. # after its creation but before its name has been assigned to `$tmp'.
  11958. $debug ||
  11959. {
  11960. tmp=
  11961. trap 'exit_status=$?
  11962. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11963. ' 0
  11964. trap 'as_fn_exit 1' 1 2 13 15
  11965. }
  11966. # Create a (secure) tmp directory for tmp files.
  11967. {
  11968. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11969. test -n "$tmp" && test -d "$tmp"
  11970. } ||
  11971. {
  11972. tmp=./conf$$-$RANDOM
  11973. (umask 077 && mkdir "$tmp")
  11974. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  11975. # Set up the scripts for CONFIG_FILES section.
  11976. # No need to generate them if there are no CONFIG_FILES.
  11977. # This happens for instance with `./config.status config.h'.
  11978. if test -n "$CONFIG_FILES"; then
  11979. ac_cr=`echo X | tr X '\015'`
  11980. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11981. # But we know of no other shell where ac_cr would be empty at this
  11982. # point, so we can use a bashism as a fallback.
  11983. if test "x$ac_cr" = x; then
  11984. eval ac_cr=\$\'\\r\'
  11985. fi
  11986. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11987. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11988. ac_cs_awk_cr='\r'
  11989. else
  11990. ac_cs_awk_cr=$ac_cr
  11991. fi
  11992. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  11993. _ACEOF
  11994. {
  11995. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11996. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11997. echo "_ACEOF"
  11998. } >conf$$subs.sh ||
  11999. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  12000. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12001. ac_delim='%!_!# '
  12002. for ac_last_try in false false false false false :; do
  12003. . ./conf$$subs.sh ||
  12004. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  12005. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12006. if test $ac_delim_n = $ac_delim_num; then
  12007. break
  12008. elif $ac_last_try; then
  12009. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  12010. else
  12011. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12012. fi
  12013. done
  12014. rm -f conf$$subs.sh
  12015. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12016. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  12017. _ACEOF
  12018. sed -n '
  12019. h
  12020. s/^/S["/; s/!.*/"]=/
  12021. p
  12022. g
  12023. s/^[^!]*!//
  12024. :repl
  12025. t repl
  12026. s/'"$ac_delim"'$//
  12027. t delim
  12028. :nl
  12029. h
  12030. s/\(.\{148\}\).*/\1/
  12031. t more1
  12032. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12033. p
  12034. n
  12035. b repl
  12036. :more1
  12037. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12038. p
  12039. g
  12040. s/.\{148\}//
  12041. t nl
  12042. :delim
  12043. h
  12044. s/\(.\{148\}\).*/\1/
  12045. t more2
  12046. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12047. p
  12048. b
  12049. :more2
  12050. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12051. p
  12052. g
  12053. s/.\{148\}//
  12054. t delim
  12055. ' <conf$$subs.awk | sed '
  12056. /^[^""]/{
  12057. N
  12058. s/\n//
  12059. }
  12060. ' >>$CONFIG_STATUS || ac_write_fail=1
  12061. rm -f conf$$subs.awk
  12062. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12063. _ACAWK
  12064. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  12065. for (key in S) S_is_set[key] = 1
  12066. FS = ""
  12067. }
  12068. {
  12069. line = $ 0
  12070. nfields = split(line, field, "@")
  12071. substed = 0
  12072. len = length(field[1])
  12073. for (i = 2; i < nfields; i++) {
  12074. key = field[i]
  12075. keylen = length(key)
  12076. if (S_is_set[key]) {
  12077. value = S[key]
  12078. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12079. len += length(value) + length(field[++i])
  12080. substed = 1
  12081. } else
  12082. len += 1 + keylen
  12083. }
  12084. print line
  12085. }
  12086. _ACAWK
  12087. _ACEOF
  12088. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12089. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12090. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12091. else
  12092. cat
  12093. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12094. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  12095. _ACEOF
  12096. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12097. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12098. # trailing colons and then remove the whole line if VPATH becomes empty
  12099. # (actually we leave an empty line to preserve line numbers).
  12100. if test "x$srcdir" = x.; then
  12101. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12102. s/:*\$(srcdir):*/:/
  12103. s/:*\${srcdir}:*/:/
  12104. s/:*@srcdir@:*/:/
  12105. s/^\([^=]*=[ ]*\):*/\1/
  12106. s/:*$//
  12107. s/^[^=]*=[ ]*$//
  12108. }'
  12109. fi
  12110. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12111. fi # test -n "$CONFIG_FILES"
  12112. # Set up the scripts for CONFIG_HEADERS section.
  12113. # No need to generate them if there are no CONFIG_HEADERS.
  12114. # This happens for instance with `./config.status Makefile'.
  12115. if test -n "$CONFIG_HEADERS"; then
  12116. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12117. BEGIN {
  12118. _ACEOF
  12119. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12120. # here-document in config.status, that substitutes the proper values into
  12121. # config.h.in to produce config.h.
  12122. # Create a delimiter string that does not exist in confdefs.h, to ease
  12123. # handling of long lines.
  12124. ac_delim='%!_!# '
  12125. for ac_last_try in false false :; do
  12126. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12127. if test -z "$ac_t"; then
  12128. break
  12129. elif $ac_last_try; then
  12130. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  12131. else
  12132. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12133. fi
  12134. done
  12135. # For the awk script, D is an array of macro values keyed by name,
  12136. # likewise P contains macro parameters if any. Preserve backslash
  12137. # newline sequences.
  12138. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12139. sed -n '
  12140. s/.\{148\}/&'"$ac_delim"'/g
  12141. t rset
  12142. :rset
  12143. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12144. t def
  12145. d
  12146. :def
  12147. s/\\$//
  12148. t bsnl
  12149. s/["\\]/\\&/g
  12150. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12151. D["\1"]=" \3"/p
  12152. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12153. d
  12154. :bsnl
  12155. s/["\\]/\\&/g
  12156. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12157. D["\1"]=" \3\\\\\\n"\\/p
  12158. t cont
  12159. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12160. t cont
  12161. d
  12162. :cont
  12163. n
  12164. s/.\{148\}/&'"$ac_delim"'/g
  12165. t clear
  12166. :clear
  12167. s/\\$//
  12168. t bsnlc
  12169. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12170. d
  12171. :bsnlc
  12172. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12173. b cont
  12174. ' <confdefs.h | sed '
  12175. s/'"$ac_delim"'/"\\\
  12176. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12177. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12178. for (key in D) D_is_set[key] = 1
  12179. FS = ""
  12180. }
  12181. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12182. line = \$ 0
  12183. split(line, arg, " ")
  12184. if (arg[1] == "#") {
  12185. defundef = arg[2]
  12186. mac1 = arg[3]
  12187. } else {
  12188. defundef = substr(arg[1], 2)
  12189. mac1 = arg[2]
  12190. }
  12191. split(mac1, mac2, "(") #)
  12192. macro = mac2[1]
  12193. prefix = substr(line, 1, index(line, defundef) - 1)
  12194. if (D_is_set[macro]) {
  12195. # Preserve the white space surrounding the "#".
  12196. print prefix "define", macro P[macro] D[macro]
  12197. next
  12198. } else {
  12199. # Replace #undef with comments. This is necessary, for example,
  12200. # in the case of _POSIX_SOURCE, which is predefined and required
  12201. # on some systems where configure will not decide to define it.
  12202. if (defundef == "undef") {
  12203. print "/*", prefix defundef, macro, "*/"
  12204. next
  12205. }
  12206. }
  12207. }
  12208. { print }
  12209. _ACAWK
  12210. _ACEOF
  12211. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12212. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  12213. fi # test -n "$CONFIG_HEADERS"
  12214. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  12215. shift
  12216. for ac_tag
  12217. do
  12218. case $ac_tag in
  12219. :[FHLC]) ac_mode=$ac_tag; continue;;
  12220. esac
  12221. case $ac_mode$ac_tag in
  12222. :[FHL]*:*);;
  12223. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12224. :[FH]-) ac_tag=-:-;;
  12225. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12226. esac
  12227. ac_save_IFS=$IFS
  12228. IFS=:
  12229. set x $ac_tag
  12230. IFS=$ac_save_IFS
  12231. shift
  12232. ac_file=$1
  12233. shift
  12234. case $ac_mode in
  12235. :L) ac_source=$1;;
  12236. :[FH])
  12237. ac_file_inputs=
  12238. for ac_f
  12239. do
  12240. case $ac_f in
  12241. -) ac_f="$tmp/stdin";;
  12242. *) # Look for the file first in the build tree, then in the source tree
  12243. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12244. # because $ac_f cannot contain `:'.
  12245. test -f "$ac_f" ||
  12246. case $ac_f in
  12247. [\\/$]*) false;;
  12248. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12249. esac ||
  12250. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12251. esac
  12252. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12253. as_fn_append ac_file_inputs " '$ac_f'"
  12254. done
  12255. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12256. # use $as_me), people would be surprised to read:
  12257. # /* config.h. Generated by config.status. */
  12258. configure_input='Generated from '`
  12259. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12260. `' by configure.'
  12261. if test x"$ac_file" != x-; then
  12262. configure_input="$ac_file. $configure_input"
  12263. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12264. $as_echo "$as_me: creating $ac_file" >&6;}
  12265. fi
  12266. # Neutralize special characters interpreted by sed in replacement strings.
  12267. case $configure_input in #(
  12268. *\&* | *\|* | *\\* )
  12269. ac_sed_conf_input=`$as_echo "$configure_input" |
  12270. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12271. *) ac_sed_conf_input=$configure_input;;
  12272. esac
  12273. case $ac_tag in
  12274. *:-:* | *:-) cat >"$tmp/stdin" \
  12275. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  12276. esac
  12277. ;;
  12278. esac
  12279. ac_dir=`$as_dirname -- "$ac_file" ||
  12280. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12281. X"$ac_file" : 'X\(//\)[^/]' \| \
  12282. X"$ac_file" : 'X\(//\)$' \| \
  12283. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12284. $as_echo X"$ac_file" |
  12285. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12286. s//\1/
  12287. q
  12288. }
  12289. /^X\(\/\/\)[^/].*/{
  12290. s//\1/
  12291. q
  12292. }
  12293. /^X\(\/\/\)$/{
  12294. s//\1/
  12295. q
  12296. }
  12297. /^X\(\/\).*/{
  12298. s//\1/
  12299. q
  12300. }
  12301. s/.*/./; q'`
  12302. as_dir="$ac_dir"; as_fn_mkdir_p
  12303. ac_builddir=.
  12304. case "$ac_dir" in
  12305. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12306. *)
  12307. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12308. # A ".." for each directory in $ac_dir_suffix.
  12309. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12310. case $ac_top_builddir_sub in
  12311. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12312. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12313. esac ;;
  12314. esac
  12315. ac_abs_top_builddir=$ac_pwd
  12316. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12317. # for backward compatibility:
  12318. ac_top_builddir=$ac_top_build_prefix
  12319. case $srcdir in
  12320. .) # We are building in place.
  12321. ac_srcdir=.
  12322. ac_top_srcdir=$ac_top_builddir_sub
  12323. ac_abs_top_srcdir=$ac_pwd ;;
  12324. [\\/]* | ?:[\\/]* ) # Absolute name.
  12325. ac_srcdir=$srcdir$ac_dir_suffix;
  12326. ac_top_srcdir=$srcdir
  12327. ac_abs_top_srcdir=$srcdir ;;
  12328. *) # Relative name.
  12329. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12330. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12331. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12332. esac
  12333. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12334. case $ac_mode in
  12335. :F)
  12336. #
  12337. # CONFIG_FILE
  12338. #
  12339. case $INSTALL in
  12340. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12341. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12342. esac
  12343. _ACEOF
  12344. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12345. # If the template does not know about datarootdir, expand it.
  12346. # FIXME: This hack should be removed a few years after 2.60.
  12347. ac_datarootdir_hack=; ac_datarootdir_seen=
  12348. ac_sed_dataroot='
  12349. /datarootdir/ {
  12350. p
  12351. q
  12352. }
  12353. /@datadir@/p
  12354. /@docdir@/p
  12355. /@infodir@/p
  12356. /@localedir@/p
  12357. /@mandir@/p'
  12358. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12359. *datarootdir*) ac_datarootdir_seen=yes;;
  12360. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12361. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12362. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12363. _ACEOF
  12364. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12365. ac_datarootdir_hack='
  12366. s&@datadir@&$datadir&g
  12367. s&@docdir@&$docdir&g
  12368. s&@infodir@&$infodir&g
  12369. s&@localedir@&$localedir&g
  12370. s&@mandir@&$mandir&g
  12371. s&\\\${datarootdir}&$datarootdir&g' ;;
  12372. esac
  12373. _ACEOF
  12374. # Neutralize VPATH when `$srcdir' = `.'.
  12375. # Shell code in configure.ac might set extrasub.
  12376. # FIXME: do we really want to maintain this feature?
  12377. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12378. ac_sed_extra="$ac_vpsub
  12379. $extrasub
  12380. _ACEOF
  12381. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12382. :t
  12383. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12384. s|@configure_input@|$ac_sed_conf_input|;t t
  12385. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12386. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12387. s&@srcdir@&$ac_srcdir&;t t
  12388. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12389. s&@top_srcdir@&$ac_top_srcdir&;t t
  12390. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12391. s&@builddir@&$ac_builddir&;t t
  12392. s&@abs_builddir@&$ac_abs_builddir&;t t
  12393. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12394. s&@INSTALL@&$ac_INSTALL&;t t
  12395. $ac_datarootdir_hack
  12396. "
  12397. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12398. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12399. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12400. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12401. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12402. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12403. which seems to be undefined. Please make sure it is defined." >&5
  12404. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12405. which seems to be undefined. Please make sure it is defined." >&2;}
  12406. rm -f "$tmp/stdin"
  12407. case $ac_file in
  12408. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12409. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12410. esac \
  12411. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12412. ;;
  12413. :H)
  12414. #
  12415. # CONFIG_HEADER
  12416. #
  12417. if test x"$ac_file" != x-; then
  12418. {
  12419. $as_echo "/* $configure_input */" \
  12420. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12421. } >"$tmp/config.h" \
  12422. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12423. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12424. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12425. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12426. else
  12427. rm -f "$ac_file"
  12428. mv "$tmp/config.h" "$ac_file" \
  12429. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12430. fi
  12431. else
  12432. $as_echo "/* $configure_input */" \
  12433. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12434. || as_fn_error "could not create -" "$LINENO" 5
  12435. fi
  12436. ;;
  12437. :L)
  12438. #
  12439. # CONFIG_LINK
  12440. #
  12441. if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  12442. :
  12443. else
  12444. # Prefer the file from the source tree if names are identical.
  12445. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  12446. ac_source=$srcdir/$ac_source
  12447. fi
  12448. { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  12449. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  12450. if test ! -r "$ac_source"; then
  12451. as_fn_error "$ac_source: file not found" "$LINENO" 5
  12452. fi
  12453. rm -f "$ac_file"
  12454. # Try a relative symlink, then a hard link, then a copy.
  12455. case $srcdir in
  12456. [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  12457. *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  12458. esac
  12459. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  12460. ln "$ac_source" "$ac_file" 2>/dev/null ||
  12461. cp -p "$ac_source" "$ac_file" ||
  12462. as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  12463. fi
  12464. ;;
  12465. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12466. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12467. ;;
  12468. esac
  12469. case $ac_file$ac_mode in
  12470. "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  12471. "libtool":C)
  12472. # See if we are running on zsh, and set the options which allow our
  12473. # commands through without removal of \ escapes.
  12474. if test -n "${ZSH_VERSION+set}" ; then
  12475. setopt NO_GLOB_SUBST
  12476. fi
  12477. cfgfile="${ofile}T"
  12478. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12479. $RM "$cfgfile"
  12480. cat <<_LT_EOF >> "$cfgfile"
  12481. #! $SHELL
  12482. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12483. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12484. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12485. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12486. #
  12487. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12488. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  12489. # Written by Gordon Matzigkeit, 1996
  12490. #
  12491. # This file is part of GNU Libtool.
  12492. #
  12493. # GNU Libtool is free software; you can redistribute it and/or
  12494. # modify it under the terms of the GNU General Public License as
  12495. # published by the Free Software Foundation; either version 2 of
  12496. # the License, or (at your option) any later version.
  12497. #
  12498. # As a special exception to the GNU General Public License,
  12499. # if you distribute this file as part of a program or library that
  12500. # is built using GNU Libtool, you may include this file under the
  12501. # same distribution terms that you use for the rest of that program.
  12502. #
  12503. # GNU Libtool is distributed in the hope that it will be useful,
  12504. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12505. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12506. # GNU General Public License for more details.
  12507. #
  12508. # You should have received a copy of the GNU General Public License
  12509. # along with GNU Libtool; see the file COPYING. If not, a copy
  12510. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12511. # obtained by writing to the Free Software Foundation, Inc.,
  12512. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12513. # The names of the tagged configurations supported by this script.
  12514. available_tags=""
  12515. # ### BEGIN LIBTOOL CONFIG
  12516. # Which release of libtool.m4 was used?
  12517. macro_version=$macro_version
  12518. macro_revision=$macro_revision
  12519. # Whether or not to build shared libraries.
  12520. build_libtool_libs=$enable_shared
  12521. # Whether or not to build static libraries.
  12522. build_old_libs=$enable_static
  12523. # What type of objects to build.
  12524. pic_mode=$pic_mode
  12525. # Whether or not to optimize for fast installation.
  12526. fast_install=$enable_fast_install
  12527. # Shell to use when invoking shell scripts.
  12528. SHELL=$lt_SHELL
  12529. # An echo program that protects backslashes.
  12530. ECHO=$lt_ECHO
  12531. # The host system.
  12532. host_alias=$host_alias
  12533. host=$host
  12534. host_os=$host_os
  12535. # The build system.
  12536. build_alias=$build_alias
  12537. build=$build
  12538. build_os=$build_os
  12539. # A sed program that does not truncate output.
  12540. SED=$lt_SED
  12541. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12542. Xsed="\$SED -e 1s/^X//"
  12543. # A grep program that handles long lines.
  12544. GREP=$lt_GREP
  12545. # An ERE matcher.
  12546. EGREP=$lt_EGREP
  12547. # A literal string matcher.
  12548. FGREP=$lt_FGREP
  12549. # A BSD- or MS-compatible name lister.
  12550. NM=$lt_NM
  12551. # Whether we need soft or hard links.
  12552. LN_S=$lt_LN_S
  12553. # What is the maximum length of a command?
  12554. max_cmd_len=$max_cmd_len
  12555. # Object file suffix (normally "o").
  12556. objext=$ac_objext
  12557. # Executable file suffix (normally "").
  12558. exeext=$exeext
  12559. # whether the shell understands "unset".
  12560. lt_unset=$lt_unset
  12561. # turn spaces into newlines.
  12562. SP2NL=$lt_lt_SP2NL
  12563. # turn newlines into spaces.
  12564. NL2SP=$lt_lt_NL2SP
  12565. # An object symbol dumper.
  12566. OBJDUMP=$lt_OBJDUMP
  12567. # Method to check whether dependent libraries are shared objects.
  12568. deplibs_check_method=$lt_deplibs_check_method
  12569. # Command to use when deplibs_check_method == "file_magic".
  12570. file_magic_cmd=$lt_file_magic_cmd
  12571. # The archiver.
  12572. AR=$lt_AR
  12573. AR_FLAGS=$lt_AR_FLAGS
  12574. # A symbol stripping program.
  12575. STRIP=$lt_STRIP
  12576. # Commands used to install an old-style archive.
  12577. RANLIB=$lt_RANLIB
  12578. old_postinstall_cmds=$lt_old_postinstall_cmds
  12579. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12580. # Whether to use a lock for old archive extraction.
  12581. lock_old_archive_extraction=$lock_old_archive_extraction
  12582. # A C compiler.
  12583. LTCC=$lt_CC
  12584. # LTCC compiler flags.
  12585. LTCFLAGS=$lt_CFLAGS
  12586. # Take the output of nm and produce a listing of raw symbols and C names.
  12587. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12588. # Transform the output of nm in a proper C declaration.
  12589. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12590. # Transform the output of nm in a C name address pair.
  12591. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12592. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12593. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12594. # The name of the directory that contains temporary libtool files.
  12595. objdir=$objdir
  12596. # Used to examine libraries when file_magic_cmd begins with "file".
  12597. MAGIC_CMD=$MAGIC_CMD
  12598. # Must we lock files when doing compilation?
  12599. need_locks=$lt_need_locks
  12600. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12601. DSYMUTIL=$lt_DSYMUTIL
  12602. # Tool to change global to local symbols on Mac OS X.
  12603. NMEDIT=$lt_NMEDIT
  12604. # Tool to manipulate fat objects and archives on Mac OS X.
  12605. LIPO=$lt_LIPO
  12606. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12607. OTOOL=$lt_OTOOL
  12608. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12609. OTOOL64=$lt_OTOOL64
  12610. # Old archive suffix (normally "a").
  12611. libext=$libext
  12612. # Shared library suffix (normally ".so").
  12613. shrext_cmds=$lt_shrext_cmds
  12614. # The commands to extract the exported symbol list from a shared archive.
  12615. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12616. # Variables whose values should be saved in libtool wrapper scripts and
  12617. # restored at link time.
  12618. variables_saved_for_relink=$lt_variables_saved_for_relink
  12619. # Do we need the "lib" prefix for modules?
  12620. need_lib_prefix=$need_lib_prefix
  12621. # Do we need a version for libraries?
  12622. need_version=$need_version
  12623. # Library versioning type.
  12624. version_type=$version_type
  12625. # Shared library runtime path variable.
  12626. runpath_var=$runpath_var
  12627. # Shared library path variable.
  12628. shlibpath_var=$shlibpath_var
  12629. # Is shlibpath searched before the hard-coded library search path?
  12630. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12631. # Format of library name prefix.
  12632. libname_spec=$lt_libname_spec
  12633. # List of archive names. First name is the real one, the rest are links.
  12634. # The last name is the one that the linker finds with -lNAME
  12635. library_names_spec=$lt_library_names_spec
  12636. # The coded name of the library, if different from the real name.
  12637. soname_spec=$lt_soname_spec
  12638. # Permission mode override for installation of shared libraries.
  12639. install_override_mode=$lt_install_override_mode
  12640. # Command to use after installation of a shared archive.
  12641. postinstall_cmds=$lt_postinstall_cmds
  12642. # Command to use after uninstallation of a shared archive.
  12643. postuninstall_cmds=$lt_postuninstall_cmds
  12644. # Commands used to finish a libtool library installation in a directory.
  12645. finish_cmds=$lt_finish_cmds
  12646. # As "finish_cmds", except a single script fragment to be evaled but
  12647. # not shown.
  12648. finish_eval=$lt_finish_eval
  12649. # Whether we should hardcode library paths into libraries.
  12650. hardcode_into_libs=$hardcode_into_libs
  12651. # Compile-time system search path for libraries.
  12652. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12653. # Run-time system search path for libraries.
  12654. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12655. # Whether dlopen is supported.
  12656. dlopen_support=$enable_dlopen
  12657. # Whether dlopen of programs is supported.
  12658. dlopen_self=$enable_dlopen_self
  12659. # Whether dlopen of statically linked programs is supported.
  12660. dlopen_self_static=$enable_dlopen_self_static
  12661. # Commands to strip libraries.
  12662. old_striplib=$lt_old_striplib
  12663. striplib=$lt_striplib
  12664. # The linker used to build libraries.
  12665. LD=$lt_LD
  12666. # How to create reloadable object files.
  12667. reload_flag=$lt_reload_flag
  12668. reload_cmds=$lt_reload_cmds
  12669. # Commands used to build an old-style archive.
  12670. old_archive_cmds=$lt_old_archive_cmds
  12671. # A language specific compiler.
  12672. CC=$lt_compiler
  12673. # Is the compiler the GNU compiler?
  12674. with_gcc=$GCC
  12675. # Compiler flag to turn off builtin functions.
  12676. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12677. # How to pass a linker flag through the compiler.
  12678. wl=$lt_lt_prog_compiler_wl
  12679. # Additional compiler flags for building library objects.
  12680. pic_flag=$lt_lt_prog_compiler_pic
  12681. # Compiler flag to prevent dynamic linking.
  12682. link_static_flag=$lt_lt_prog_compiler_static
  12683. # Does compiler simultaneously support -c and -o options?
  12684. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12685. # Whether or not to add -lc for building shared libraries.
  12686. build_libtool_need_lc=$archive_cmds_need_lc
  12687. # Whether or not to disallow shared libs when runtime libs are static.
  12688. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12689. # Compiler flag to allow reflexive dlopens.
  12690. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12691. # Compiler flag to generate shared objects directly from archives.
  12692. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12693. # Whether the compiler copes with passing no objects directly.
  12694. compiler_needs_object=$lt_compiler_needs_object
  12695. # Create an old-style archive from a shared archive.
  12696. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12697. # Create a temporary old-style archive to link instead of a shared archive.
  12698. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12699. # Commands used to build a shared archive.
  12700. archive_cmds=$lt_archive_cmds
  12701. archive_expsym_cmds=$lt_archive_expsym_cmds
  12702. # Commands used to build a loadable module if different from building
  12703. # a shared archive.
  12704. module_cmds=$lt_module_cmds
  12705. module_expsym_cmds=$lt_module_expsym_cmds
  12706. # Whether we are building with GNU ld or not.
  12707. with_gnu_ld=$lt_with_gnu_ld
  12708. # Flag that allows shared libraries with undefined symbols to be built.
  12709. allow_undefined_flag=$lt_allow_undefined_flag
  12710. # Flag that enforces no undefined symbols.
  12711. no_undefined_flag=$lt_no_undefined_flag
  12712. # Flag to hardcode \$libdir into a binary during linking.
  12713. # This must work even if \$libdir does not exist
  12714. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12715. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12716. # during linking. This must work even if \$libdir does not exist.
  12717. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12718. # Whether we need a single "-rpath" flag with a separated argument.
  12719. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12720. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12721. # DIR into the resulting binary.
  12722. hardcode_direct=$hardcode_direct
  12723. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12724. # DIR into the resulting binary and the resulting library dependency is
  12725. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12726. # library is relocated.
  12727. hardcode_direct_absolute=$hardcode_direct_absolute
  12728. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12729. # into the resulting binary.
  12730. hardcode_minus_L=$hardcode_minus_L
  12731. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12732. # into the resulting binary.
  12733. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12734. # Set to "yes" if building a shared library automatically hardcodes DIR
  12735. # into the library and all subsequent libraries and executables linked
  12736. # against it.
  12737. hardcode_automatic=$hardcode_automatic
  12738. # Set to yes if linker adds runtime paths of dependent libraries
  12739. # to runtime path list.
  12740. inherit_rpath=$inherit_rpath
  12741. # Whether libtool must link a program against all its dependency libraries.
  12742. link_all_deplibs=$link_all_deplibs
  12743. # Fix the shell variable \$srcfile for the compiler.
  12744. fix_srcfile_path=$lt_fix_srcfile_path
  12745. # Set to "yes" if exported symbols are required.
  12746. always_export_symbols=$always_export_symbols
  12747. # The commands to list exported symbols.
  12748. export_symbols_cmds=$lt_export_symbols_cmds
  12749. # Symbols that should not be listed in the preloaded symbols.
  12750. exclude_expsyms=$lt_exclude_expsyms
  12751. # Symbols that must always be exported.
  12752. include_expsyms=$lt_include_expsyms
  12753. # Commands necessary for linking programs (against libraries) with templates.
  12754. prelink_cmds=$lt_prelink_cmds
  12755. # Specify filename containing input files.
  12756. file_list_spec=$lt_file_list_spec
  12757. # How to hardcode a shared library path into an executable.
  12758. hardcode_action=$hardcode_action
  12759. # ### END LIBTOOL CONFIG
  12760. _LT_EOF
  12761. case $host_os in
  12762. aix3*)
  12763. cat <<\_LT_EOF >> "$cfgfile"
  12764. # AIX sometimes has problems with the GCC collect2 program. For some
  12765. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12766. # vanish in a puff of smoke.
  12767. if test "X${COLLECT_NAMES+set}" != Xset; then
  12768. COLLECT_NAMES=
  12769. export COLLECT_NAMES
  12770. fi
  12771. _LT_EOF
  12772. ;;
  12773. esac
  12774. ltmain="$ac_aux_dir/ltmain.sh"
  12775. # We use sed instead of cat because bash on DJGPP gets confused if
  12776. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12777. # text mode, it properly converts lines to CR/LF. This bash problem
  12778. # is reportedly fixed, but why not run on old versions too?
  12779. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12780. || (rm -f "$cfgfile"; exit 1)
  12781. case $xsi_shell in
  12782. yes)
  12783. cat << \_LT_EOF >> "$cfgfile"
  12784. # func_dirname file append nondir_replacement
  12785. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12786. # otherwise set result to NONDIR_REPLACEMENT.
  12787. func_dirname ()
  12788. {
  12789. case ${1} in
  12790. */*) func_dirname_result="${1%/*}${2}" ;;
  12791. * ) func_dirname_result="${3}" ;;
  12792. esac
  12793. }
  12794. # func_basename file
  12795. func_basename ()
  12796. {
  12797. func_basename_result="${1##*/}"
  12798. }
  12799. # func_dirname_and_basename file append nondir_replacement
  12800. # perform func_basename and func_dirname in a single function
  12801. # call:
  12802. # dirname: Compute the dirname of FILE. If nonempty,
  12803. # add APPEND to the result, otherwise set result
  12804. # to NONDIR_REPLACEMENT.
  12805. # value returned in "$func_dirname_result"
  12806. # basename: Compute filename of FILE.
  12807. # value retuned in "$func_basename_result"
  12808. # Implementation must be kept synchronized with func_dirname
  12809. # and func_basename. For efficiency, we do not delegate to
  12810. # those functions but instead duplicate the functionality here.
  12811. func_dirname_and_basename ()
  12812. {
  12813. case ${1} in
  12814. */*) func_dirname_result="${1%/*}${2}" ;;
  12815. * ) func_dirname_result="${3}" ;;
  12816. esac
  12817. func_basename_result="${1##*/}"
  12818. }
  12819. # func_stripname prefix suffix name
  12820. # strip PREFIX and SUFFIX off of NAME.
  12821. # PREFIX and SUFFIX must not contain globbing or regex special
  12822. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12823. # dot (in which case that matches only a dot).
  12824. func_stripname ()
  12825. {
  12826. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12827. # positional parameters, so assign one to ordinary parameter first.
  12828. func_stripname_result=${3}
  12829. func_stripname_result=${func_stripname_result#"${1}"}
  12830. func_stripname_result=${func_stripname_result%"${2}"}
  12831. }
  12832. # func_opt_split
  12833. func_opt_split ()
  12834. {
  12835. func_opt_split_opt=${1%%=*}
  12836. func_opt_split_arg=${1#*=}
  12837. }
  12838. # func_lo2o object
  12839. func_lo2o ()
  12840. {
  12841. case ${1} in
  12842. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12843. *) func_lo2o_result=${1} ;;
  12844. esac
  12845. }
  12846. # func_xform libobj-or-source
  12847. func_xform ()
  12848. {
  12849. func_xform_result=${1%.*}.lo
  12850. }
  12851. # func_arith arithmetic-term...
  12852. func_arith ()
  12853. {
  12854. func_arith_result=$(( $* ))
  12855. }
  12856. # func_len string
  12857. # STRING may not start with a hyphen.
  12858. func_len ()
  12859. {
  12860. func_len_result=${#1}
  12861. }
  12862. _LT_EOF
  12863. ;;
  12864. *) # Bourne compatible functions.
  12865. cat << \_LT_EOF >> "$cfgfile"
  12866. # func_dirname file append nondir_replacement
  12867. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12868. # otherwise set result to NONDIR_REPLACEMENT.
  12869. func_dirname ()
  12870. {
  12871. # Extract subdirectory from the argument.
  12872. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  12873. if test "X$func_dirname_result" = "X${1}"; then
  12874. func_dirname_result="${3}"
  12875. else
  12876. func_dirname_result="$func_dirname_result${2}"
  12877. fi
  12878. }
  12879. # func_basename file
  12880. func_basename ()
  12881. {
  12882. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  12883. }
  12884. # func_stripname prefix suffix name
  12885. # strip PREFIX and SUFFIX off of NAME.
  12886. # PREFIX and SUFFIX must not contain globbing or regex special
  12887. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12888. # dot (in which case that matches only a dot).
  12889. # func_strip_suffix prefix name
  12890. func_stripname ()
  12891. {
  12892. case ${2} in
  12893. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12894. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12895. esac
  12896. }
  12897. # sed scripts:
  12898. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12899. my_sed_long_arg='1s/^-[^=]*=//'
  12900. # func_opt_split
  12901. func_opt_split ()
  12902. {
  12903. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  12904. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  12905. }
  12906. # func_lo2o object
  12907. func_lo2o ()
  12908. {
  12909. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  12910. }
  12911. # func_xform libobj-or-source
  12912. func_xform ()
  12913. {
  12914. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  12915. }
  12916. # func_arith arithmetic-term...
  12917. func_arith ()
  12918. {
  12919. func_arith_result=`expr "$@"`
  12920. }
  12921. # func_len string
  12922. # STRING may not start with a hyphen.
  12923. func_len ()
  12924. {
  12925. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12926. }
  12927. _LT_EOF
  12928. esac
  12929. case $lt_shell_append in
  12930. yes)
  12931. cat << \_LT_EOF >> "$cfgfile"
  12932. # func_append var value
  12933. # Append VALUE to the end of shell variable VAR.
  12934. func_append ()
  12935. {
  12936. eval "$1+=\$2"
  12937. }
  12938. _LT_EOF
  12939. ;;
  12940. *)
  12941. cat << \_LT_EOF >> "$cfgfile"
  12942. # func_append var value
  12943. # Append VALUE to the end of shell variable VAR.
  12944. func_append ()
  12945. {
  12946. eval "$1=\$$1\$2"
  12947. }
  12948. _LT_EOF
  12949. ;;
  12950. esac
  12951. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12952. || (rm -f "$cfgfile"; exit 1)
  12953. mv -f "$cfgfile" "$ofile" ||
  12954. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12955. chmod +x "$ofile"
  12956. ;;
  12957. "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
  12958. rm -f Makesim1.tmp Makesim2.tmp Makefile
  12959. sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
  12960. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
  12961. sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
  12962. -e '/^## COMMON_POST_/ r Makesim2.tmp' \
  12963. <Makefile.sim >Makefile
  12964. rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
  12965. ;;
  12966. "stamp-h":C) echo > stamp-h ;;
  12967. esac
  12968. done # for ac_tag
  12969. as_fn_exit 0
  12970. _ACEOF
  12971. ac_clean_files=$ac_clean_files_save
  12972. test $ac_write_fail = 0 ||
  12973. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12974. # configure is writing to config.log, and then calls config.status.
  12975. # config.status does its own redirection, appending to config.log.
  12976. # Unfortunately, on DOS this fails, as config.log is still kept open
  12977. # by configure, so config.status won't be able to write to it; its
  12978. # output is simply discarded. So we exec the FD to /dev/null,
  12979. # effectively closing config.log, so it can be properly (re)opened and
  12980. # appended to by config.status. When coming back to configure, we
  12981. # need to make the FD available again.
  12982. if test "$no_create" != yes; then
  12983. ac_cs_success=:
  12984. ac_config_status_args=
  12985. test "$silent" = yes &&
  12986. ac_config_status_args="$ac_config_status_args --quiet"
  12987. exec 5>/dev/null
  12988. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12989. exec 5>>config.log
  12990. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12991. # would make configure fail if this is the last instruction.
  12992. $ac_cs_success || as_fn_exit $?
  12993. fi
  12994. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12996. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12997. fi