configure 449 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775
  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. sim_extra_cflags
  554. traps_obj
  555. cgen
  556. cgendir
  557. CGEN_MAINT
  558. REPORT_BUGS_TEXI
  559. REPORT_BUGS_TO
  560. PKGVERSION
  561. sim_profile
  562. sim_trace
  563. sim_stdio
  564. sim_debug
  565. sim_cflags
  566. sim_bswap
  567. MAINT
  568. MAINTAINER_MODE_FALSE
  569. MAINTAINER_MODE_TRUE
  570. lt_cv_dlopen_libs
  571. OTOOL64
  572. OTOOL
  573. LIPO
  574. NMEDIT
  575. DSYMUTIL
  576. AWK
  577. STRIP
  578. OBJDUMP
  579. LN_S
  580. NM
  581. ac_ct_DUMPBIN
  582. DUMPBIN
  583. LD
  584. FGREP
  585. SED
  586. LIBTOOL
  587. PLUGINS_FALSE
  588. PLUGINS_TRUE
  589. zlibinc
  590. zlibdir
  591. CATOBJEXT
  592. GENCAT
  593. INSTOBJEXT
  594. DATADIRNAME
  595. CATALOGS
  596. POSUB
  597. GMSGFMT
  598. XGETTEXT
  599. INCINTL
  600. LIBINTL_DEP
  601. LIBINTL
  602. USE_NLS
  603. GMAKE_FALSE
  604. GMAKE_TRUE
  605. MAKE
  606. CCDEPMODE
  607. DEPDIR
  608. am__leading_dot
  609. PACKAGE
  610. RANLIB
  611. AR
  612. HDEFINES
  613. CC_FOR_BUILD
  614. INSTALL_DATA
  615. INSTALL_SCRIPT
  616. INSTALL_PROGRAM
  617. EGREP
  618. GREP
  619. CPP
  620. target_os
  621. target_vendor
  622. target_cpu
  623. target
  624. host_os
  625. host_vendor
  626. host_cpu
  627. host
  628. build_os
  629. build_vendor
  630. build_cpu
  631. build
  632. OBJEXT
  633. EXEEXT
  634. ac_ct_CC
  635. CPPFLAGS
  636. LDFLAGS
  637. CFLAGS
  638. CC
  639. WERROR_CFLAGS
  640. WARN_CFLAGS
  641. sim_xor_endian
  642. sim_stdcall
  643. sim_smp
  644. sim_reserved_bits
  645. sim_regparm
  646. sim_packages
  647. sim_inline
  648. sim_hw
  649. sim_hw_objs
  650. sim_hw_cflags
  651. sim_default_model
  652. sim_scache
  653. sim_float
  654. sim_hostendian
  655. sim_endian
  656. sim_bitsize
  657. sim_assert
  658. sim_alignment
  659. sim_environment
  660. target_alias
  661. host_alias
  662. build_alias
  663. LIBS
  664. ECHO_T
  665. ECHO_N
  666. ECHO_C
  667. DEFS
  668. mandir
  669. localedir
  670. libdir
  671. psdir
  672. pdfdir
  673. dvidir
  674. htmldir
  675. infodir
  676. docdir
  677. oldincludedir
  678. includedir
  679. localstatedir
  680. sharedstatedir
  681. sysconfdir
  682. datadir
  683. datarootdir
  684. libexecdir
  685. sbindir
  686. bindir
  687. program_transform_name
  688. prefix
  689. exec_prefix
  690. PACKAGE_URL
  691. PACKAGE_BUGREPORT
  692. PACKAGE_STRING
  693. PACKAGE_VERSION
  694. PACKAGE_TARNAME
  695. PACKAGE_NAME
  696. PATH_SEPARATOR
  697. SHELL'
  698. ac_subst_files=''
  699. ac_user_opts='
  700. enable_option_checking
  701. with_system_zlib
  702. enable_plugins
  703. enable_shared
  704. enable_static
  705. with_pic
  706. enable_fast_install
  707. with_gnu_ld
  708. enable_libtool_lock
  709. enable_maintainer_mode
  710. enable_sim_bswap
  711. enable_sim_cflags
  712. enable_sim_debug
  713. enable_sim_stdio
  714. enable_sim_trace
  715. enable_sim_profile
  716. with_pkgversion
  717. with_bugurl
  718. enable_sim_endian
  719. enable_sim_alignment
  720. enable_sim_hostendian
  721. enable_sim_scache
  722. enable_sim_default_model
  723. enable_sim_environment
  724. enable_sim_inline
  725. enable_cgen_maint
  726. enable_sim_hardware
  727. '
  728. ac_precious_vars='build_alias
  729. host_alias
  730. target_alias
  731. CC
  732. CFLAGS
  733. LDFLAGS
  734. LIBS
  735. CPPFLAGS
  736. CPP'
  737. # Initialize some variables set by options.
  738. ac_init_help=
  739. ac_init_version=false
  740. ac_unrecognized_opts=
  741. ac_unrecognized_sep=
  742. # The variables have the same names as the options, with
  743. # dashes changed to underlines.
  744. cache_file=/dev/null
  745. exec_prefix=NONE
  746. no_create=
  747. no_recursion=
  748. prefix=NONE
  749. program_prefix=NONE
  750. program_suffix=NONE
  751. program_transform_name=s,x,x,
  752. silent=
  753. site=
  754. srcdir=
  755. verbose=
  756. x_includes=NONE
  757. x_libraries=NONE
  758. # Installation directory options.
  759. # These are left unexpanded so users can "make install exec_prefix=/foo"
  760. # and all the variables that are supposed to be based on exec_prefix
  761. # by default will actually change.
  762. # Use braces instead of parens because sh, perl, etc. also accept them.
  763. # (The list follows the same order as the GNU Coding Standards.)
  764. bindir='${exec_prefix}/bin'
  765. sbindir='${exec_prefix}/sbin'
  766. libexecdir='${exec_prefix}/libexec'
  767. datarootdir='${prefix}/share'
  768. datadir='${datarootdir}'
  769. sysconfdir='${prefix}/etc'
  770. sharedstatedir='${prefix}/com'
  771. localstatedir='${prefix}/var'
  772. includedir='${prefix}/include'
  773. oldincludedir='/usr/include'
  774. docdir='${datarootdir}/doc/${PACKAGE}'
  775. infodir='${datarootdir}/info'
  776. htmldir='${docdir}'
  777. dvidir='${docdir}'
  778. pdfdir='${docdir}'
  779. psdir='${docdir}'
  780. libdir='${exec_prefix}/lib'
  781. localedir='${datarootdir}/locale'
  782. mandir='${datarootdir}/man'
  783. ac_prev=
  784. ac_dashdash=
  785. for ac_option
  786. do
  787. # If the previous option needs an argument, assign it.
  788. if test -n "$ac_prev"; then
  789. eval $ac_prev=\$ac_option
  790. ac_prev=
  791. continue
  792. fi
  793. case $ac_option in
  794. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  795. *) ac_optarg=yes ;;
  796. esac
  797. # Accept the important Cygnus configure options, so we can diagnose typos.
  798. case $ac_dashdash$ac_option in
  799. --)
  800. ac_dashdash=yes ;;
  801. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  802. ac_prev=bindir ;;
  803. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  804. bindir=$ac_optarg ;;
  805. -build | --build | --buil | --bui | --bu)
  806. ac_prev=build_alias ;;
  807. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  808. build_alias=$ac_optarg ;;
  809. -cache-file | --cache-file | --cache-fil | --cache-fi \
  810. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  811. ac_prev=cache_file ;;
  812. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  813. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  814. cache_file=$ac_optarg ;;
  815. --config-cache | -C)
  816. cache_file=config.cache ;;
  817. -datadir | --datadir | --datadi | --datad)
  818. ac_prev=datadir ;;
  819. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  820. datadir=$ac_optarg ;;
  821. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  822. | --dataroo | --dataro | --datar)
  823. ac_prev=datarootdir ;;
  824. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  825. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  826. datarootdir=$ac_optarg ;;
  827. -disable-* | --disable-*)
  828. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  829. # Reject names that are not valid shell variable names.
  830. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  831. as_fn_error "invalid feature name: $ac_useropt"
  832. ac_useropt_orig=$ac_useropt
  833. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  834. case $ac_user_opts in
  835. *"
  836. "enable_$ac_useropt"
  837. "*) ;;
  838. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  839. ac_unrecognized_sep=', ';;
  840. esac
  841. eval enable_$ac_useropt=no ;;
  842. -docdir | --docdir | --docdi | --doc | --do)
  843. ac_prev=docdir ;;
  844. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  845. docdir=$ac_optarg ;;
  846. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  847. ac_prev=dvidir ;;
  848. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  849. dvidir=$ac_optarg ;;
  850. -enable-* | --enable-*)
  851. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  852. # Reject names that are not valid shell variable names.
  853. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  854. as_fn_error "invalid feature name: $ac_useropt"
  855. ac_useropt_orig=$ac_useropt
  856. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  857. case $ac_user_opts in
  858. *"
  859. "enable_$ac_useropt"
  860. "*) ;;
  861. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  862. ac_unrecognized_sep=', ';;
  863. esac
  864. eval enable_$ac_useropt=\$ac_optarg ;;
  865. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  866. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  867. | --exec | --exe | --ex)
  868. ac_prev=exec_prefix ;;
  869. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  870. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  871. | --exec=* | --exe=* | --ex=*)
  872. exec_prefix=$ac_optarg ;;
  873. -gas | --gas | --ga | --g)
  874. # Obsolete; use --with-gas.
  875. with_gas=yes ;;
  876. -help | --help | --hel | --he | -h)
  877. ac_init_help=long ;;
  878. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  879. ac_init_help=recursive ;;
  880. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  881. ac_init_help=short ;;
  882. -host | --host | --hos | --ho)
  883. ac_prev=host_alias ;;
  884. -host=* | --host=* | --hos=* | --ho=*)
  885. host_alias=$ac_optarg ;;
  886. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  887. ac_prev=htmldir ;;
  888. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  889. | --ht=*)
  890. htmldir=$ac_optarg ;;
  891. -includedir | --includedir | --includedi | --included | --include \
  892. | --includ | --inclu | --incl | --inc)
  893. ac_prev=includedir ;;
  894. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  895. | --includ=* | --inclu=* | --incl=* | --inc=*)
  896. includedir=$ac_optarg ;;
  897. -infodir | --infodir | --infodi | --infod | --info | --inf)
  898. ac_prev=infodir ;;
  899. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  900. infodir=$ac_optarg ;;
  901. -libdir | --libdir | --libdi | --libd)
  902. ac_prev=libdir ;;
  903. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  904. libdir=$ac_optarg ;;
  905. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  906. | --libexe | --libex | --libe)
  907. ac_prev=libexecdir ;;
  908. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  909. | --libexe=* | --libex=* | --libe=*)
  910. libexecdir=$ac_optarg ;;
  911. -localedir | --localedir | --localedi | --localed | --locale)
  912. ac_prev=localedir ;;
  913. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  914. localedir=$ac_optarg ;;
  915. -localstatedir | --localstatedir | --localstatedi | --localstated \
  916. | --localstate | --localstat | --localsta | --localst | --locals)
  917. ac_prev=localstatedir ;;
  918. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  919. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  920. localstatedir=$ac_optarg ;;
  921. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  922. ac_prev=mandir ;;
  923. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  924. mandir=$ac_optarg ;;
  925. -nfp | --nfp | --nf)
  926. # Obsolete; use --without-fp.
  927. with_fp=no ;;
  928. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  929. | --no-cr | --no-c | -n)
  930. no_create=yes ;;
  931. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  932. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  933. no_recursion=yes ;;
  934. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  935. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  936. | --oldin | --oldi | --old | --ol | --o)
  937. ac_prev=oldincludedir ;;
  938. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  939. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  940. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  941. oldincludedir=$ac_optarg ;;
  942. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  943. ac_prev=prefix ;;
  944. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  945. prefix=$ac_optarg ;;
  946. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  947. | --program-pre | --program-pr | --program-p)
  948. ac_prev=program_prefix ;;
  949. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  950. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  951. program_prefix=$ac_optarg ;;
  952. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  953. | --program-suf | --program-su | --program-s)
  954. ac_prev=program_suffix ;;
  955. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  956. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  957. program_suffix=$ac_optarg ;;
  958. -program-transform-name | --program-transform-name \
  959. | --program-transform-nam | --program-transform-na \
  960. | --program-transform-n | --program-transform- \
  961. | --program-transform | --program-transfor \
  962. | --program-transfo | --program-transf \
  963. | --program-trans | --program-tran \
  964. | --progr-tra | --program-tr | --program-t)
  965. ac_prev=program_transform_name ;;
  966. -program-transform-name=* | --program-transform-name=* \
  967. | --program-transform-nam=* | --program-transform-na=* \
  968. | --program-transform-n=* | --program-transform-=* \
  969. | --program-transform=* | --program-transfor=* \
  970. | --program-transfo=* | --program-transf=* \
  971. | --program-trans=* | --program-tran=* \
  972. | --progr-tra=* | --program-tr=* | --program-t=*)
  973. program_transform_name=$ac_optarg ;;
  974. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  975. ac_prev=pdfdir ;;
  976. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  977. pdfdir=$ac_optarg ;;
  978. -psdir | --psdir | --psdi | --psd | --ps)
  979. ac_prev=psdir ;;
  980. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  981. psdir=$ac_optarg ;;
  982. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  983. | -silent | --silent | --silen | --sile | --sil)
  984. silent=yes ;;
  985. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  986. ac_prev=sbindir ;;
  987. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  988. | --sbi=* | --sb=*)
  989. sbindir=$ac_optarg ;;
  990. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  991. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  992. | --sharedst | --shareds | --shared | --share | --shar \
  993. | --sha | --sh)
  994. ac_prev=sharedstatedir ;;
  995. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  996. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  997. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  998. | --sha=* | --sh=*)
  999. sharedstatedir=$ac_optarg ;;
  1000. -site | --site | --sit)
  1001. ac_prev=site ;;
  1002. -site=* | --site=* | --sit=*)
  1003. site=$ac_optarg ;;
  1004. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1005. ac_prev=srcdir ;;
  1006. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1007. srcdir=$ac_optarg ;;
  1008. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1009. | --syscon | --sysco | --sysc | --sys | --sy)
  1010. ac_prev=sysconfdir ;;
  1011. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1012. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1013. sysconfdir=$ac_optarg ;;
  1014. -target | --target | --targe | --targ | --tar | --ta | --t)
  1015. ac_prev=target_alias ;;
  1016. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1017. target_alias=$ac_optarg ;;
  1018. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1019. verbose=yes ;;
  1020. -version | --version | --versio | --versi | --vers | -V)
  1021. ac_init_version=: ;;
  1022. -with-* | --with-*)
  1023. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1024. # Reject names that are not valid shell variable names.
  1025. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1026. as_fn_error "invalid package name: $ac_useropt"
  1027. ac_useropt_orig=$ac_useropt
  1028. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1029. case $ac_user_opts in
  1030. *"
  1031. "with_$ac_useropt"
  1032. "*) ;;
  1033. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1034. ac_unrecognized_sep=', ';;
  1035. esac
  1036. eval with_$ac_useropt=\$ac_optarg ;;
  1037. -without-* | --without-*)
  1038. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1039. # Reject names that are not valid shell variable names.
  1040. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1041. as_fn_error "invalid package name: $ac_useropt"
  1042. ac_useropt_orig=$ac_useropt
  1043. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1044. case $ac_user_opts in
  1045. *"
  1046. "with_$ac_useropt"
  1047. "*) ;;
  1048. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1049. ac_unrecognized_sep=', ';;
  1050. esac
  1051. eval with_$ac_useropt=no ;;
  1052. --x)
  1053. # Obsolete; use --with-x.
  1054. with_x=yes ;;
  1055. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1056. | --x-incl | --x-inc | --x-in | --x-i)
  1057. ac_prev=x_includes ;;
  1058. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1059. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1060. x_includes=$ac_optarg ;;
  1061. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1062. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1063. ac_prev=x_libraries ;;
  1064. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1065. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1066. x_libraries=$ac_optarg ;;
  1067. -*) as_fn_error "unrecognized option: \`$ac_option'
  1068. Try \`$0 --help' for more information."
  1069. ;;
  1070. *=*)
  1071. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1072. # Reject names that are not valid shell variable names.
  1073. case $ac_envvar in #(
  1074. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1075. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1076. esac
  1077. eval $ac_envvar=\$ac_optarg
  1078. export $ac_envvar ;;
  1079. *)
  1080. # FIXME: should be removed in autoconf 3.0.
  1081. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1082. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1083. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1084. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1085. ;;
  1086. esac
  1087. done
  1088. if test -n "$ac_prev"; then
  1089. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1090. as_fn_error "missing argument to $ac_option"
  1091. fi
  1092. if test -n "$ac_unrecognized_opts"; then
  1093. case $enable_option_checking in
  1094. no) ;;
  1095. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1096. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1097. esac
  1098. fi
  1099. # Check all directory arguments for consistency.
  1100. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1101. datadir sysconfdir sharedstatedir localstatedir includedir \
  1102. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1103. libdir localedir mandir
  1104. do
  1105. eval ac_val=\$$ac_var
  1106. # Remove trailing slashes.
  1107. case $ac_val in
  1108. */ )
  1109. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1110. eval $ac_var=\$ac_val;;
  1111. esac
  1112. # Be sure to have absolute directory names.
  1113. case $ac_val in
  1114. [\\/$]* | ?:[\\/]* ) continue;;
  1115. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1116. esac
  1117. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1118. done
  1119. # There might be people who depend on the old broken behavior: `$host'
  1120. # used to hold the argument of --host etc.
  1121. # FIXME: To remove some day.
  1122. build=$build_alias
  1123. host=$host_alias
  1124. target=$target_alias
  1125. # FIXME: To remove some day.
  1126. if test "x$host_alias" != x; then
  1127. if test "x$build_alias" = x; then
  1128. cross_compiling=maybe
  1129. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1130. If a cross compiler is detected then cross compile mode will be used." >&2
  1131. elif test "x$build_alias" != "x$host_alias"; then
  1132. cross_compiling=yes
  1133. fi
  1134. fi
  1135. ac_tool_prefix=
  1136. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1137. test "$silent" = yes && exec 6>/dev/null
  1138. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1139. ac_ls_di=`ls -di .` &&
  1140. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1141. as_fn_error "working directory cannot be determined"
  1142. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1143. as_fn_error "pwd does not report name of working directory"
  1144. # Find the source files, if location was not specified.
  1145. if test -z "$srcdir"; then
  1146. ac_srcdir_defaulted=yes
  1147. # Try the directory containing this script, then the parent directory.
  1148. ac_confdir=`$as_dirname -- "$as_myself" ||
  1149. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1150. X"$as_myself" : 'X\(//\)[^/]' \| \
  1151. X"$as_myself" : 'X\(//\)$' \| \
  1152. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1153. $as_echo X"$as_myself" |
  1154. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1155. s//\1/
  1156. q
  1157. }
  1158. /^X\(\/\/\)[^/].*/{
  1159. s//\1/
  1160. q
  1161. }
  1162. /^X\(\/\/\)$/{
  1163. s//\1/
  1164. q
  1165. }
  1166. /^X\(\/\).*/{
  1167. s//\1/
  1168. q
  1169. }
  1170. s/.*/./; q'`
  1171. srcdir=$ac_confdir
  1172. if test ! -r "$srcdir/$ac_unique_file"; then
  1173. srcdir=..
  1174. fi
  1175. else
  1176. ac_srcdir_defaulted=no
  1177. fi
  1178. if test ! -r "$srcdir/$ac_unique_file"; then
  1179. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1180. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1181. fi
  1182. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1183. ac_abs_confdir=`(
  1184. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1185. pwd)`
  1186. # When building in place, set srcdir=.
  1187. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1188. srcdir=.
  1189. fi
  1190. # Remove unnecessary trailing slashes from srcdir.
  1191. # Double slashes in file names in object file debugging info
  1192. # mess up M-x gdb in Emacs.
  1193. case $srcdir in
  1194. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1195. esac
  1196. for ac_var in $ac_precious_vars; do
  1197. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1198. eval ac_env_${ac_var}_value=\$${ac_var}
  1199. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1200. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1201. done
  1202. #
  1203. # Report the --help message.
  1204. #
  1205. if test "$ac_init_help" = "long"; then
  1206. # Omit some internal or obsolete options to make the list less imposing.
  1207. # This message is too long to be a string in the A/UX 3.1 sh.
  1208. cat <<_ACEOF
  1209. \`configure' configures this package to adapt to many kinds of systems.
  1210. Usage: $0 [OPTION]... [VAR=VALUE]...
  1211. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1212. VAR=VALUE. See below for descriptions of some of the useful variables.
  1213. Defaults for the options are specified in brackets.
  1214. Configuration:
  1215. -h, --help display this help and exit
  1216. --help=short display options specific to this package
  1217. --help=recursive display the short help of all the included packages
  1218. -V, --version display version information and exit
  1219. -q, --quiet, --silent do not print \`checking...' messages
  1220. --cache-file=FILE cache test results in FILE [disabled]
  1221. -C, --config-cache alias for \`--cache-file=config.cache'
  1222. -n, --no-create do not create output files
  1223. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1224. Installation directories:
  1225. --prefix=PREFIX install architecture-independent files in PREFIX
  1226. [$ac_default_prefix]
  1227. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1228. [PREFIX]
  1229. By default, \`make install' will install all the files in
  1230. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1231. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1232. for instance \`--prefix=\$HOME'.
  1233. For better control, use the options below.
  1234. Fine tuning of the installation directories:
  1235. --bindir=DIR user executables [EPREFIX/bin]
  1236. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1237. --libexecdir=DIR program executables [EPREFIX/libexec]
  1238. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1239. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1240. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1241. --libdir=DIR object code libraries [EPREFIX/lib]
  1242. --includedir=DIR C header files [PREFIX/include]
  1243. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1244. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1245. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1246. --infodir=DIR info documentation [DATAROOTDIR/info]
  1247. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1248. --mandir=DIR man documentation [DATAROOTDIR/man]
  1249. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1250. --htmldir=DIR html documentation [DOCDIR]
  1251. --dvidir=DIR dvi documentation [DOCDIR]
  1252. --pdfdir=DIR pdf documentation [DOCDIR]
  1253. --psdir=DIR ps documentation [DOCDIR]
  1254. _ACEOF
  1255. cat <<\_ACEOF
  1256. Program names:
  1257. --program-prefix=PREFIX prepend PREFIX to installed program names
  1258. --program-suffix=SUFFIX append SUFFIX to installed program names
  1259. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1260. System types:
  1261. --build=BUILD configure for building on BUILD [guessed]
  1262. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1263. --target=TARGET configure for building compilers for TARGET [HOST]
  1264. _ACEOF
  1265. fi
  1266. if test -n "$ac_init_help"; then
  1267. cat <<\_ACEOF
  1268. Optional Features:
  1269. --disable-option-checking ignore unrecognized --enable/--with options
  1270. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1271. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1272. --enable-plugins Enable support for plugins
  1273. --enable-shared[=PKGS] build shared libraries [default=yes]
  1274. --enable-static[=PKGS] build static libraries [default=yes]
  1275. --enable-fast-install[=PKGS]
  1276. optimize for fast installation [default=yes]
  1277. --disable-libtool-lock avoid locking (might break parallel builds)
  1278. --enable-maintainer-mode enable make rules and dependencies not useful
  1279. (and sometimes confusing) to the casual installer
  1280. --enable-sim-bswap Use Host specific BSWAP instruction
  1281. --enable-sim-cflags=opts
  1282. Extra CFLAGS for use in building simulator
  1283. --enable-sim-debug=opts Enable debugging flags (for developers of the sim
  1284. itself)
  1285. --enable-sim-stdio Specify whether to use stdio for console
  1286. input/output
  1287. --enable-sim-trace=opts Enable tracing of simulated programs
  1288. --enable-sim-profile=opts
  1289. Enable profiling flags
  1290. --enable-sim-endian=endian
  1291. Specify target byte endian orientation
  1292. --enable-sim-alignment=align
  1293. Specify strict, nonstrict or forced alignment of
  1294. memory accesses
  1295. --enable-sim-hostendian=end
  1296. Specify host byte endian orientation
  1297. --enable-sim-scache=size
  1298. Specify simulator execution cache size
  1299. --enable-sim-default-model=model
  1300. Specify default model to simulate
  1301. --enable-sim-environment=environment
  1302. Specify mixed, user, virtual or operating
  1303. environment
  1304. --enable-sim-inline=inlines
  1305. Specify which functions should be inlined
  1306. --enable-cgen-maint=DIR build cgen generated files
  1307. --enable-sim-hardware=LIST
  1308. Specify the hardware to be included in the build.
  1309. Optional Packages:
  1310. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1311. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1312. --with-system-zlib use installed libz
  1313. --with-pic try to use only PIC/non-PIC objects [default=use
  1314. both]
  1315. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1316. --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
  1317. --with-bugurl=URL Direct users to URL to report a bug
  1318. Some influential environment variables:
  1319. CC C compiler command
  1320. CFLAGS C compiler flags
  1321. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1322. nonstandard directory <lib dir>
  1323. LIBS libraries to pass to the linker, e.g. -l<library>
  1324. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1325. you have headers in a nonstandard directory <include dir>
  1326. CPP C preprocessor
  1327. Use these variables to override the choices made by `configure' or to help
  1328. it to find libraries and programs with nonstandard names/locations.
  1329. Report bugs to the package provider.
  1330. _ACEOF
  1331. ac_status=$?
  1332. fi
  1333. if test "$ac_init_help" = "recursive"; then
  1334. # If there are subdirs, report their specific --help.
  1335. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1336. test -d "$ac_dir" ||
  1337. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1338. continue
  1339. ac_builddir=.
  1340. case "$ac_dir" in
  1341. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1342. *)
  1343. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1344. # A ".." for each directory in $ac_dir_suffix.
  1345. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1346. case $ac_top_builddir_sub in
  1347. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1348. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1349. esac ;;
  1350. esac
  1351. ac_abs_top_builddir=$ac_pwd
  1352. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1353. # for backward compatibility:
  1354. ac_top_builddir=$ac_top_build_prefix
  1355. case $srcdir in
  1356. .) # We are building in place.
  1357. ac_srcdir=.
  1358. ac_top_srcdir=$ac_top_builddir_sub
  1359. ac_abs_top_srcdir=$ac_pwd ;;
  1360. [\\/]* | ?:[\\/]* ) # Absolute name.
  1361. ac_srcdir=$srcdir$ac_dir_suffix;
  1362. ac_top_srcdir=$srcdir
  1363. ac_abs_top_srcdir=$srcdir ;;
  1364. *) # Relative name.
  1365. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1366. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1367. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1368. esac
  1369. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1370. cd "$ac_dir" || { ac_status=$?; continue; }
  1371. # Check for guested configure.
  1372. if test -f "$ac_srcdir/configure.gnu"; then
  1373. echo &&
  1374. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1375. elif test -f "$ac_srcdir/configure"; then
  1376. echo &&
  1377. $SHELL "$ac_srcdir/configure" --help=recursive
  1378. else
  1379. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1380. fi || ac_status=$?
  1381. cd "$ac_pwd" || { ac_status=$?; break; }
  1382. done
  1383. fi
  1384. test -n "$ac_init_help" && exit $ac_status
  1385. if $ac_init_version; then
  1386. cat <<\_ACEOF
  1387. configure
  1388. generated by GNU Autoconf 2.64
  1389. Copyright (C) 2009 Free Software Foundation, Inc.
  1390. This configure script is free software; the Free Software Foundation
  1391. gives unlimited permission to copy, distribute and modify it.
  1392. _ACEOF
  1393. exit
  1394. fi
  1395. ## ------------------------ ##
  1396. ## Autoconf initialization. ##
  1397. ## ------------------------ ##
  1398. # ac_fn_c_try_compile LINENO
  1399. # --------------------------
  1400. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1401. ac_fn_c_try_compile ()
  1402. {
  1403. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1404. rm -f conftest.$ac_objext
  1405. if { { ac_try="$ac_compile"
  1406. case "(($ac_try" in
  1407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1408. *) ac_try_echo=$ac_try;;
  1409. esac
  1410. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1411. $as_echo "$ac_try_echo"; } >&5
  1412. (eval "$ac_compile") 2>conftest.err
  1413. ac_status=$?
  1414. if test -s conftest.err; then
  1415. grep -v '^ *+' conftest.err >conftest.er1
  1416. cat conftest.er1 >&5
  1417. mv -f conftest.er1 conftest.err
  1418. fi
  1419. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1420. test $ac_status = 0; } && {
  1421. test -z "$ac_c_werror_flag" ||
  1422. test ! -s conftest.err
  1423. } && test -s conftest.$ac_objext; then :
  1424. ac_retval=0
  1425. else
  1426. $as_echo "$as_me: failed program was:" >&5
  1427. sed 's/^/| /' conftest.$ac_ext >&5
  1428. ac_retval=1
  1429. fi
  1430. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1431. return $ac_retval
  1432. } # ac_fn_c_try_compile
  1433. # ac_fn_c_try_cpp LINENO
  1434. # ----------------------
  1435. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1436. ac_fn_c_try_cpp ()
  1437. {
  1438. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1439. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1440. case "(($ac_try" in
  1441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1442. *) ac_try_echo=$ac_try;;
  1443. esac
  1444. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1445. $as_echo "$ac_try_echo"; } >&5
  1446. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1447. ac_status=$?
  1448. if test -s conftest.err; then
  1449. grep -v '^ *+' conftest.err >conftest.er1
  1450. cat conftest.er1 >&5
  1451. mv -f conftest.er1 conftest.err
  1452. fi
  1453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1454. test $ac_status = 0; } >/dev/null && {
  1455. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1456. test ! -s conftest.err
  1457. }; then :
  1458. ac_retval=0
  1459. else
  1460. $as_echo "$as_me: failed program was:" >&5
  1461. sed 's/^/| /' conftest.$ac_ext >&5
  1462. ac_retval=1
  1463. fi
  1464. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1465. return $ac_retval
  1466. } # ac_fn_c_try_cpp
  1467. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1468. # -------------------------------------------------------
  1469. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1470. # the include files in INCLUDES and setting the cache variable VAR
  1471. # accordingly.
  1472. ac_fn_c_check_header_mongrel ()
  1473. {
  1474. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1475. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1477. $as_echo_n "checking for $2... " >&6; }
  1478. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1479. $as_echo_n "(cached) " >&6
  1480. fi
  1481. eval ac_res=\$$3
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1483. $as_echo "$ac_res" >&6; }
  1484. else
  1485. # Is the header compilable?
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1487. $as_echo_n "checking $2 usability... " >&6; }
  1488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1489. /* end confdefs.h. */
  1490. $4
  1491. #include <$2>
  1492. _ACEOF
  1493. if ac_fn_c_try_compile "$LINENO"; then :
  1494. ac_header_compiler=yes
  1495. else
  1496. ac_header_compiler=no
  1497. fi
  1498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1500. $as_echo "$ac_header_compiler" >&6; }
  1501. # Is the header present?
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1503. $as_echo_n "checking $2 presence... " >&6; }
  1504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1505. /* end confdefs.h. */
  1506. #include <$2>
  1507. _ACEOF
  1508. if ac_fn_c_try_cpp "$LINENO"; then :
  1509. ac_header_preproc=yes
  1510. else
  1511. ac_header_preproc=no
  1512. fi
  1513. rm -f conftest.err conftest.$ac_ext
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1515. $as_echo "$ac_header_preproc" >&6; }
  1516. # So? What about this header?
  1517. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1518. yes:no: )
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1520. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1522. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1523. ;;
  1524. no:yes:* )
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1526. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1528. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1530. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1532. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1534. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1535. ;;
  1536. esac
  1537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1538. $as_echo_n "checking for $2... " >&6; }
  1539. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1540. $as_echo_n "(cached) " >&6
  1541. else
  1542. eval "$3=\$ac_header_compiler"
  1543. fi
  1544. eval ac_res=\$$3
  1545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1546. $as_echo "$ac_res" >&6; }
  1547. fi
  1548. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1549. } # ac_fn_c_check_header_mongrel
  1550. # ac_fn_c_try_run LINENO
  1551. # ----------------------
  1552. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1553. # that executables *can* be run.
  1554. ac_fn_c_try_run ()
  1555. {
  1556. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1557. if { { ac_try="$ac_link"
  1558. case "(($ac_try" in
  1559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1560. *) ac_try_echo=$ac_try;;
  1561. esac
  1562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1563. $as_echo "$ac_try_echo"; } >&5
  1564. (eval "$ac_link") 2>&5
  1565. ac_status=$?
  1566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1567. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1568. { { case "(($ac_try" in
  1569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1570. *) ac_try_echo=$ac_try;;
  1571. esac
  1572. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1573. $as_echo "$ac_try_echo"; } >&5
  1574. (eval "$ac_try") 2>&5
  1575. ac_status=$?
  1576. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1577. test $ac_status = 0; }; }; then :
  1578. ac_retval=0
  1579. else
  1580. $as_echo "$as_me: program exited with status $ac_status" >&5
  1581. $as_echo "$as_me: failed program was:" >&5
  1582. sed 's/^/| /' conftest.$ac_ext >&5
  1583. ac_retval=$ac_status
  1584. fi
  1585. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1586. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1587. return $ac_retval
  1588. } # ac_fn_c_try_run
  1589. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1590. # -------------------------------------------------------
  1591. # Tests whether HEADER exists and can be compiled using the include files in
  1592. # INCLUDES, setting the cache variable VAR accordingly.
  1593. ac_fn_c_check_header_compile ()
  1594. {
  1595. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1597. $as_echo_n "checking for $2... " >&6; }
  1598. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1599. $as_echo_n "(cached) " >&6
  1600. else
  1601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1602. /* end confdefs.h. */
  1603. $4
  1604. #include <$2>
  1605. _ACEOF
  1606. if ac_fn_c_try_compile "$LINENO"; then :
  1607. eval "$3=yes"
  1608. else
  1609. eval "$3=no"
  1610. fi
  1611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1612. fi
  1613. eval ac_res=\$$3
  1614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1615. $as_echo "$ac_res" >&6; }
  1616. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1617. } # ac_fn_c_check_header_compile
  1618. # ac_fn_c_try_link LINENO
  1619. # -----------------------
  1620. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1621. ac_fn_c_try_link ()
  1622. {
  1623. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1624. rm -f conftest.$ac_objext conftest$ac_exeext
  1625. if { { ac_try="$ac_link"
  1626. case "(($ac_try" in
  1627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1628. *) ac_try_echo=$ac_try;;
  1629. esac
  1630. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1631. $as_echo "$ac_try_echo"; } >&5
  1632. (eval "$ac_link") 2>conftest.err
  1633. ac_status=$?
  1634. if test -s conftest.err; then
  1635. grep -v '^ *+' conftest.err >conftest.er1
  1636. cat conftest.er1 >&5
  1637. mv -f conftest.er1 conftest.err
  1638. fi
  1639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1640. test $ac_status = 0; } && {
  1641. test -z "$ac_c_werror_flag" ||
  1642. test ! -s conftest.err
  1643. } && test -s conftest$ac_exeext && {
  1644. test "$cross_compiling" = yes ||
  1645. $as_test_x conftest$ac_exeext
  1646. }; then :
  1647. ac_retval=0
  1648. else
  1649. $as_echo "$as_me: failed program was:" >&5
  1650. sed 's/^/| /' conftest.$ac_ext >&5
  1651. ac_retval=1
  1652. fi
  1653. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1654. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1655. # interfere with the next link command; also delete a directory that is
  1656. # left behind by Apple's compiler. We do this before executing the actions.
  1657. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1658. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1659. return $ac_retval
  1660. } # ac_fn_c_try_link
  1661. # ac_fn_c_check_func LINENO FUNC VAR
  1662. # ----------------------------------
  1663. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1664. ac_fn_c_check_func ()
  1665. {
  1666. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1668. $as_echo_n "checking for $2... " >&6; }
  1669. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1670. $as_echo_n "(cached) " >&6
  1671. else
  1672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1673. /* end confdefs.h. */
  1674. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1675. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1676. #define $2 innocuous_$2
  1677. /* System header to define __stub macros and hopefully few prototypes,
  1678. which can conflict with char $2 (); below.
  1679. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1680. <limits.h> exists even on freestanding compilers. */
  1681. #ifdef __STDC__
  1682. # include <limits.h>
  1683. #else
  1684. # include <assert.h>
  1685. #endif
  1686. #undef $2
  1687. /* Override any GCC internal prototype to avoid an error.
  1688. Use char because int might match the return type of a GCC
  1689. builtin and then its argument prototype would still apply. */
  1690. #ifdef __cplusplus
  1691. extern "C"
  1692. #endif
  1693. char $2 ();
  1694. /* The GNU C library defines this for functions which it implements
  1695. to always fail with ENOSYS. Some functions are actually named
  1696. something starting with __ and the normal name is an alias. */
  1697. #if defined __stub_$2 || defined __stub___$2
  1698. choke me
  1699. #endif
  1700. int
  1701. main ()
  1702. {
  1703. return $2 ();
  1704. ;
  1705. return 0;
  1706. }
  1707. _ACEOF
  1708. if ac_fn_c_try_link "$LINENO"; then :
  1709. eval "$3=yes"
  1710. else
  1711. eval "$3=no"
  1712. fi
  1713. rm -f core conftest.err conftest.$ac_objext \
  1714. conftest$ac_exeext conftest.$ac_ext
  1715. fi
  1716. eval ac_res=\$$3
  1717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1718. $as_echo "$ac_res" >&6; }
  1719. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1720. } # ac_fn_c_check_func
  1721. cat >config.log <<_ACEOF
  1722. This file contains any messages produced by compilers while
  1723. running configure, to aid debugging if configure makes a mistake.
  1724. It was created by $as_me, which was
  1725. generated by GNU Autoconf 2.64. Invocation command line was
  1726. $ $0 $@
  1727. _ACEOF
  1728. exec 5>>config.log
  1729. {
  1730. cat <<_ASUNAME
  1731. ## --------- ##
  1732. ## Platform. ##
  1733. ## --------- ##
  1734. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1735. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1736. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1737. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1738. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1739. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1740. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1741. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1742. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1743. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1744. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1745. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1746. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1747. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1748. _ASUNAME
  1749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1750. for as_dir in $PATH
  1751. do
  1752. IFS=$as_save_IFS
  1753. test -z "$as_dir" && as_dir=.
  1754. $as_echo "PATH: $as_dir"
  1755. done
  1756. IFS=$as_save_IFS
  1757. } >&5
  1758. cat >&5 <<_ACEOF
  1759. ## ----------- ##
  1760. ## Core tests. ##
  1761. ## ----------- ##
  1762. _ACEOF
  1763. # Keep a trace of the command line.
  1764. # Strip out --no-create and --no-recursion so they do not pile up.
  1765. # Strip out --silent because we don't want to record it for future runs.
  1766. # Also quote any args containing shell meta-characters.
  1767. # Make two passes to allow for proper duplicate-argument suppression.
  1768. ac_configure_args=
  1769. ac_configure_args0=
  1770. ac_configure_args1=
  1771. ac_must_keep_next=false
  1772. for ac_pass in 1 2
  1773. do
  1774. for ac_arg
  1775. do
  1776. case $ac_arg in
  1777. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1778. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1779. | -silent | --silent | --silen | --sile | --sil)
  1780. continue ;;
  1781. *\'*)
  1782. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1783. esac
  1784. case $ac_pass in
  1785. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1786. 2)
  1787. as_fn_append ac_configure_args1 " '$ac_arg'"
  1788. if test $ac_must_keep_next = true; then
  1789. ac_must_keep_next=false # Got value, back to normal.
  1790. else
  1791. case $ac_arg in
  1792. *=* | --config-cache | -C | -disable-* | --disable-* \
  1793. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1794. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1795. | -with-* | --with-* | -without-* | --without-* | --x)
  1796. case "$ac_configure_args0 " in
  1797. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1798. esac
  1799. ;;
  1800. -* ) ac_must_keep_next=true ;;
  1801. esac
  1802. fi
  1803. as_fn_append ac_configure_args " '$ac_arg'"
  1804. ;;
  1805. esac
  1806. done
  1807. done
  1808. { ac_configure_args0=; unset ac_configure_args0;}
  1809. { ac_configure_args1=; unset ac_configure_args1;}
  1810. # When interrupted or exit'd, cleanup temporary files, and complete
  1811. # config.log. We remove comments because anyway the quotes in there
  1812. # would cause problems or look ugly.
  1813. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1814. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1815. trap 'exit_status=$?
  1816. # Save into config.log some information that might help in debugging.
  1817. {
  1818. echo
  1819. cat <<\_ASBOX
  1820. ## ---------------- ##
  1821. ## Cache variables. ##
  1822. ## ---------------- ##
  1823. _ASBOX
  1824. echo
  1825. # The following way of writing the cache mishandles newlines in values,
  1826. (
  1827. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1828. eval ac_val=\$$ac_var
  1829. case $ac_val in #(
  1830. *${as_nl}*)
  1831. case $ac_var in #(
  1832. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1833. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1834. esac
  1835. case $ac_var in #(
  1836. _ | IFS | as_nl) ;; #(
  1837. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1838. *) { eval $ac_var=; unset $ac_var;} ;;
  1839. esac ;;
  1840. esac
  1841. done
  1842. (set) 2>&1 |
  1843. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1844. *${as_nl}ac_space=\ *)
  1845. sed -n \
  1846. "s/'\''/'\''\\\\'\'''\''/g;
  1847. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1848. ;; #(
  1849. *)
  1850. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1851. ;;
  1852. esac |
  1853. sort
  1854. )
  1855. echo
  1856. cat <<\_ASBOX
  1857. ## ----------------- ##
  1858. ## Output variables. ##
  1859. ## ----------------- ##
  1860. _ASBOX
  1861. echo
  1862. for ac_var in $ac_subst_vars
  1863. do
  1864. eval ac_val=\$$ac_var
  1865. case $ac_val in
  1866. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1867. esac
  1868. $as_echo "$ac_var='\''$ac_val'\''"
  1869. done | sort
  1870. echo
  1871. if test -n "$ac_subst_files"; then
  1872. cat <<\_ASBOX
  1873. ## ------------------- ##
  1874. ## File substitutions. ##
  1875. ## ------------------- ##
  1876. _ASBOX
  1877. echo
  1878. for ac_var in $ac_subst_files
  1879. do
  1880. eval ac_val=\$$ac_var
  1881. case $ac_val in
  1882. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1883. esac
  1884. $as_echo "$ac_var='\''$ac_val'\''"
  1885. done | sort
  1886. echo
  1887. fi
  1888. if test -s confdefs.h; then
  1889. cat <<\_ASBOX
  1890. ## ----------- ##
  1891. ## confdefs.h. ##
  1892. ## ----------- ##
  1893. _ASBOX
  1894. echo
  1895. cat confdefs.h
  1896. echo
  1897. fi
  1898. test "$ac_signal" != 0 &&
  1899. $as_echo "$as_me: caught signal $ac_signal"
  1900. $as_echo "$as_me: exit $exit_status"
  1901. } >&5
  1902. rm -f core *.core core.conftest.* &&
  1903. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1904. exit $exit_status
  1905. ' 0
  1906. for ac_signal in 1 2 13 15; do
  1907. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1908. done
  1909. ac_signal=0
  1910. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1911. rm -f -r conftest* confdefs.h
  1912. $as_echo "/* confdefs.h */" > confdefs.h
  1913. # Predefined preprocessor variables.
  1914. cat >>confdefs.h <<_ACEOF
  1915. #define PACKAGE_NAME "$PACKAGE_NAME"
  1916. _ACEOF
  1917. cat >>confdefs.h <<_ACEOF
  1918. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1919. _ACEOF
  1920. cat >>confdefs.h <<_ACEOF
  1921. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1922. _ACEOF
  1923. cat >>confdefs.h <<_ACEOF
  1924. #define PACKAGE_STRING "$PACKAGE_STRING"
  1925. _ACEOF
  1926. cat >>confdefs.h <<_ACEOF
  1927. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1928. _ACEOF
  1929. cat >>confdefs.h <<_ACEOF
  1930. #define PACKAGE_URL "$PACKAGE_URL"
  1931. _ACEOF
  1932. # Let the site file select an alternate cache file if it wants to.
  1933. # Prefer an explicitly selected file to automatically selected ones.
  1934. ac_site_file1=NONE
  1935. ac_site_file2=NONE
  1936. if test -n "$CONFIG_SITE"; then
  1937. ac_site_file1=$CONFIG_SITE
  1938. elif test "x$prefix" != xNONE; then
  1939. ac_site_file1=$prefix/share/config.site
  1940. ac_site_file2=$prefix/etc/config.site
  1941. else
  1942. ac_site_file1=$ac_default_prefix/share/config.site
  1943. ac_site_file2=$ac_default_prefix/etc/config.site
  1944. fi
  1945. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1946. do
  1947. test "x$ac_site_file" = xNONE && continue
  1948. if test -r "$ac_site_file"; then
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1950. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1951. sed 's/^/| /' "$ac_site_file" >&5
  1952. . "$ac_site_file"
  1953. fi
  1954. done
  1955. if test -r "$cache_file"; then
  1956. # Some versions of bash will fail to source /dev/null (special
  1957. # files actually), so we avoid doing that.
  1958. if test -f "$cache_file"; then
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1960. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1961. case $cache_file in
  1962. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1963. *) . "./$cache_file";;
  1964. esac
  1965. fi
  1966. else
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1968. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1969. >$cache_file
  1970. fi
  1971. # Check that the precious variables saved in the cache have kept the same
  1972. # value.
  1973. ac_cache_corrupted=false
  1974. for ac_var in $ac_precious_vars; do
  1975. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1976. eval ac_new_set=\$ac_env_${ac_var}_set
  1977. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1978. eval ac_new_val=\$ac_env_${ac_var}_value
  1979. case $ac_old_set,$ac_new_set in
  1980. set,)
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1982. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1983. ac_cache_corrupted=: ;;
  1984. ,set)
  1985. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1986. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1987. ac_cache_corrupted=: ;;
  1988. ,);;
  1989. *)
  1990. if test "x$ac_old_val" != "x$ac_new_val"; then
  1991. # differences in whitespace do not lead to failure.
  1992. ac_old_val_w=`echo x $ac_old_val`
  1993. ac_new_val_w=`echo x $ac_new_val`
  1994. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1996. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1997. ac_cache_corrupted=:
  1998. else
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2000. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2001. eval $ac_var=\$ac_old_val
  2002. fi
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2004. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2006. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2007. fi;;
  2008. esac
  2009. # Pass precious variables to config.status.
  2010. if test "$ac_new_set" = set; then
  2011. case $ac_new_val in
  2012. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2013. *) ac_arg=$ac_var=$ac_new_val ;;
  2014. esac
  2015. case " $ac_configure_args " in
  2016. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2017. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2018. esac
  2019. fi
  2020. done
  2021. if $ac_cache_corrupted; then
  2022. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2023. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2025. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2026. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2027. fi
  2028. ## -------------------- ##
  2029. ## Main body of script. ##
  2030. ## -------------------- ##
  2031. ac_ext=c
  2032. ac_cpp='$CPP $CPPFLAGS'
  2033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2036. # This file contains common code used by all simulators.
  2037. #
  2038. # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
  2039. # directory. It is intended to be invoked before any target specific stuff.
  2040. # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
  2041. # It is intended to be invoked last.
  2042. #
  2043. # The simulator's configure.ac should look like:
  2044. #
  2045. # dnl Process this file with autoconf to produce a configure script.
  2046. # AC_PREREQ(2.64)dnl
  2047. # AC_INIT(Makefile.in)
  2048. # sinclude(../common/aclocal.m4)
  2049. #
  2050. # SIM_AC_COMMON
  2051. #
  2052. # ... target specific stuff ...
  2053. #
  2054. # SIM_AC_OUTPUT
  2055. # Include global overrides and fixes for Autoconf.
  2056. # _AC_CHECK_DECL_BODY
  2057. # -------------------
  2058. # Shell function body for AC_CHECK_DECL.
  2059. # _AC_CHECK_DECL_BODY
  2060. # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
  2061. # INCLUDES)
  2062. # -------------------------------------------------------------
  2063. # Helper to AC_CHECK_DECLS, which generates the check for a single
  2064. # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
  2065. # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
  2066. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  2067. #
  2068. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  2069. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  2070. # Written by Gordon Matzigkeit, 1996
  2071. #
  2072. # This file is free software; the Free Software Foundation gives
  2073. # unlimited permission to copy and/or distribute it, with or without
  2074. # modifications, as long as this notice is preserved.
  2075. # serial 56 LT_INIT
  2076. # LT_PREREQ(VERSION)
  2077. # ------------------
  2078. # Complain and exit if this libtool version is less that VERSION.
  2079. # _LT_CHECK_BUILDDIR
  2080. # ------------------
  2081. # Complain if the absolute build directory name contains unusual characters
  2082. # LT_INIT([OPTIONS])
  2083. # ------------------
  2084. # LT_INIT
  2085. # Old names:
  2086. # This is what autoupdate's m4 run will expand. It fires
  2087. # the warning (with _au_warn_XXX), outputs it into the
  2088. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2089. # the replacement expansion.
  2090. # This is an auxiliary macro that is also run when
  2091. # autoupdate runs m4. It simply calls m4_warning, but
  2092. # we need a wrapper so that each warning is emitted only
  2093. # once. We break the quoting in m4_warning's argument in
  2094. # order to expand this macro's arguments, not AU_DEFUN's.
  2095. # Finally, this is the expansion that is picked up by
  2096. # autoconf. It tells the user to run autoupdate, and
  2097. # then outputs the replacement expansion. We do not care
  2098. # about autoupdate's warning because that contains
  2099. # information on what to do *after* running autoupdate.
  2100. # This is what autoupdate's m4 run will expand. It fires
  2101. # the warning (with _au_warn_XXX), outputs it into the
  2102. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2103. # the replacement expansion.
  2104. # This is an auxiliary macro that is also run when
  2105. # autoupdate runs m4. It simply calls m4_warning, but
  2106. # we need a wrapper so that each warning is emitted only
  2107. # once. We break the quoting in m4_warning's argument in
  2108. # order to expand this macro's arguments, not AU_DEFUN's.
  2109. # Finally, this is the expansion that is picked up by
  2110. # autoconf. It tells the user to run autoupdate, and
  2111. # then outputs the replacement expansion. We do not care
  2112. # about autoupdate's warning because that contains
  2113. # information on what to do *after* running autoupdate.
  2114. # _LT_CC_BASENAME(CC)
  2115. # -------------------
  2116. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  2117. # _LT_FILEUTILS_DEFAULTS
  2118. # ----------------------
  2119. # It is okay to use these file commands and assume they have been set
  2120. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  2121. # _LT_FILEUTILS_DEFAULTS
  2122. # _LT_SETUP
  2123. # ---------
  2124. # _LT_SETUP
  2125. # _LT_PREPARE_SED_QUOTE_VARS
  2126. # --------------------------
  2127. # Define a few sed substitution that help us do robust quoting.
  2128. # _LT_PROG_LTMAIN
  2129. # ---------------
  2130. # Note that this code is called both from `configure', and `config.status'
  2131. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  2132. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  2133. # so we pass a copy along to make sure it has a sensible value anyway.
  2134. # _LT_PROG_LTMAIN
  2135. ## ------------------------------------- ##
  2136. ## Accumulate code for creating libtool. ##
  2137. ## ------------------------------------- ##
  2138. # So that we can recreate a full libtool script including additional
  2139. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  2140. # in macros and then make a single call at the end using the `libtool'
  2141. # label.
  2142. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  2143. # ----------------------------------------
  2144. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2145. # Initialize.
  2146. # _LT_CONFIG_LIBTOOL([COMMANDS])
  2147. # ------------------------------
  2148. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2149. # Initialize.
  2150. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  2151. # -----------------------------------------------------
  2152. # _LT_FORMAT_COMMENT([COMMENT])
  2153. # -----------------------------
  2154. # Add leading comment marks to the start of each line, and a trailing
  2155. # full-stop to the whole comment if one is not present already.
  2156. ## ------------------------ ##
  2157. ## FIXME: Eliminate VARNAME ##
  2158. ## ------------------------ ##
  2159. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  2160. # -------------------------------------------------------------------
  2161. # CONFIGNAME is the name given to the value in the libtool script.
  2162. # VARNAME is the (base) name used in the configure script.
  2163. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  2164. # VARNAME. Any other value will be used directly.
  2165. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  2166. # --------------------------------------------------------
  2167. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  2168. # ------------------------------------------------
  2169. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  2170. # ---------------------------------------------------------
  2171. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  2172. # --------------------------------------------------
  2173. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  2174. # ---------------------------------------------------
  2175. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  2176. # ---------------------------------------------------
  2177. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  2178. # ------------------------------------------------
  2179. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  2180. # ------------------------------------
  2181. # Quote a variable value, and forward it to `config.status' so that its
  2182. # declaration there will have the same value as in `configure'. VARNAME
  2183. # must have a single quote delimited value for this to work.
  2184. # _LT_CONFIG_STATUS_DECLARATIONS
  2185. # ------------------------------
  2186. # We delimit libtool config variables with single quotes, so when
  2187. # we write them to config.status, we have to be sure to quote all
  2188. # embedded single quotes properly. In configure, this macro expands
  2189. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  2190. #
  2191. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  2192. # _LT_LIBTOOL_TAGS
  2193. # ----------------
  2194. # Output comment and list of tags supported by the script
  2195. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  2196. # -----------------------------------
  2197. # Extract the dictionary values for VARNAME (optionally with TAG) and
  2198. # expand to a commented shell variable setting:
  2199. #
  2200. # # Some comment about what VAR is for.
  2201. # visible_name=$lt_internal_name
  2202. # _LT_LIBTOOL_CONFIG_VARS
  2203. # -----------------------
  2204. # Produce commented declarations of non-tagged libtool config variables
  2205. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  2206. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  2207. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  2208. # _LT_LIBTOOL_TAG_VARS(TAG)
  2209. # -------------------------
  2210. # _LT_TAGVAR(VARNAME, [TAGNAME])
  2211. # ------------------------------
  2212. # _LT_CONFIG_COMMANDS
  2213. # -------------------
  2214. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  2215. # variables for single and double quote escaping we saved from calls
  2216. # to _LT_DECL, we can put quote escaped variables declarations
  2217. # into `config.status', and then the shell code to quote escape them in
  2218. # for loops in `config.status'. Finally, any additional code accumulated
  2219. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  2220. #_LT_CONFIG_COMMANDS
  2221. # Initialize.
  2222. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  2223. # ------------------------------------
  2224. # Generate a child script FILE with all initialization necessary to
  2225. # reuse the environment learned by the parent script, and make the
  2226. # file executable. If COMMENT is supplied, it is inserted after the
  2227. # `#!' sequence but before initialization text begins. After this
  2228. # macro, additional text can be appended to FILE to form the body of
  2229. # the child script. The macro ends with non-zero status if the
  2230. # file could not be fully written (such as if the disk is full).
  2231. # _LT_GENERATED_FILE_INIT
  2232. # LT_OUTPUT
  2233. # ---------
  2234. # This macro allows early generation of the libtool script (before
  2235. # AC_OUTPUT is called), incase it is used in configure for compilation
  2236. # tests.
  2237. # LT_OUTPUT
  2238. # _LT_CONFIG(TAG)
  2239. # ---------------
  2240. # If TAG is the built-in tag, create an initial libtool script with a
  2241. # default configuration from the untagged config vars. Otherwise add code
  2242. # to config.status for appending the configuration named by TAG from the
  2243. # matching tagged config vars.
  2244. # _LT_CONFIG
  2245. # LT_SUPPORTED_TAG(TAG)
  2246. # ---------------------
  2247. # Trace this macro to discover what tags are supported by the libtool
  2248. # --tag option, using:
  2249. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  2250. # C support is built-in for now
  2251. # LT_LANG(LANG)
  2252. # -------------
  2253. # Enable libtool support for the given language if not already enabled.
  2254. # LT_LANG
  2255. # _LT_LANG(LANGNAME)
  2256. # ------------------
  2257. # _LT_LANG
  2258. # _LT_LANG_DEFAULT_CONFIG
  2259. # -----------------------
  2260. # _LT_LANG_DEFAULT_CONFIG
  2261. # Obsolete macros:
  2262. # This is what autoupdate's m4 run will expand. It fires
  2263. # the warning (with _au_warn_XXX), outputs it into the
  2264. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2265. # the replacement expansion.
  2266. # This is an auxiliary macro that is also run when
  2267. # autoupdate runs m4. It simply calls m4_warning, but
  2268. # we need a wrapper so that each warning is emitted only
  2269. # once. We break the quoting in m4_warning's argument in
  2270. # order to expand this macro's arguments, not AU_DEFUN's.
  2271. # Finally, this is the expansion that is picked up by
  2272. # autoconf. It tells the user to run autoupdate, and
  2273. # then outputs the replacement expansion. We do not care
  2274. # about autoupdate's warning because that contains
  2275. # information on what to do *after* running autoupdate.
  2276. # This is what autoupdate's m4 run will expand. It fires
  2277. # the warning (with _au_warn_XXX), outputs it into the
  2278. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2279. # the replacement expansion.
  2280. # This is an auxiliary macro that is also run when
  2281. # autoupdate runs m4. It simply calls m4_warning, but
  2282. # we need a wrapper so that each warning is emitted only
  2283. # once. We break the quoting in m4_warning's argument in
  2284. # order to expand this macro's arguments, not AU_DEFUN's.
  2285. # Finally, this is the expansion that is picked up by
  2286. # autoconf. It tells the user to run autoupdate, and
  2287. # then outputs the replacement expansion. We do not care
  2288. # about autoupdate's warning because that contains
  2289. # information on what to do *after* running autoupdate.
  2290. # This is what autoupdate's m4 run will expand. It fires
  2291. # the warning (with _au_warn_XXX), outputs it into the
  2292. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2293. # the replacement expansion.
  2294. # This is an auxiliary macro that is also run when
  2295. # autoupdate runs m4. It simply calls m4_warning, but
  2296. # we need a wrapper so that each warning is emitted only
  2297. # once. We break the quoting in m4_warning's argument in
  2298. # order to expand this macro's arguments, not AU_DEFUN's.
  2299. # Finally, this is the expansion that is picked up by
  2300. # autoconf. It tells the user to run autoupdate, and
  2301. # then outputs the replacement expansion. We do not care
  2302. # about autoupdate's warning because that contains
  2303. # information on what to do *after* running autoupdate.
  2304. # This is what autoupdate's m4 run will expand. It fires
  2305. # the warning (with _au_warn_XXX), outputs it into the
  2306. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2307. # the replacement expansion.
  2308. # This is an auxiliary macro that is also run when
  2309. # autoupdate runs m4. It simply calls m4_warning, but
  2310. # we need a wrapper so that each warning is emitted only
  2311. # once. We break the quoting in m4_warning's argument in
  2312. # order to expand this macro's arguments, not AU_DEFUN's.
  2313. # Finally, this is the expansion that is picked up by
  2314. # autoconf. It tells the user to run autoupdate, and
  2315. # then outputs the replacement expansion. We do not care
  2316. # about autoupdate's warning because that contains
  2317. # information on what to do *after* running autoupdate.
  2318. # This is what autoupdate's m4 run will expand. It fires
  2319. # the warning (with _au_warn_XXX), outputs it into the
  2320. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2321. # the replacement expansion.
  2322. # This is an auxiliary macro that is also run when
  2323. # autoupdate runs m4. It simply calls m4_warning, but
  2324. # we need a wrapper so that each warning is emitted only
  2325. # once. We break the quoting in m4_warning's argument in
  2326. # order to expand this macro's arguments, not AU_DEFUN's.
  2327. # Finally, this is the expansion that is picked up by
  2328. # autoconf. It tells the user to run autoupdate, and
  2329. # then outputs the replacement expansion. We do not care
  2330. # about autoupdate's warning because that contains
  2331. # information on what to do *after* running autoupdate.
  2332. # _LT_TAG_COMPILER
  2333. # ----------------
  2334. # _LT_TAG_COMPILER
  2335. # _LT_COMPILER_BOILERPLATE
  2336. # ------------------------
  2337. # Check for compiler boilerplate output or warnings with
  2338. # the simple compiler test code.
  2339. # _LT_COMPILER_BOILERPLATE
  2340. # _LT_LINKER_BOILERPLATE
  2341. # ----------------------
  2342. # Check for linker boilerplate output or warnings with
  2343. # the simple link test code.
  2344. # _LT_LINKER_BOILERPLATE
  2345. # _LT_REQUIRED_DARWIN_CHECKS
  2346. # -------------------------
  2347. # _LT_DARWIN_LINKER_FEATURES
  2348. # --------------------------
  2349. # Checks for linker and compiler features on darwin
  2350. # _LT_SYS_MODULE_PATH_AIX
  2351. # -----------------------
  2352. # Links a minimal program and checks the executable
  2353. # for the system default hardcoded library path. In most cases,
  2354. # this is /usr/lib:/lib, but when the MPI compilers are used
  2355. # the location of the communication and MPI libs are included too.
  2356. # If we don't find anything, use the default library path according
  2357. # to the aix ld manual.
  2358. # _LT_SYS_MODULE_PATH_AIX
  2359. # _LT_SHELL_INIT(ARG)
  2360. # -------------------
  2361. # _LT_SHELL_INIT
  2362. # _LT_PROG_ECHO_BACKSLASH
  2363. # -----------------------
  2364. # Find how we can fake an echo command that does not interpret backslash.
  2365. # In particular, with Autoconf 2.60 or later we add some code to the start
  2366. # of the generated configure script which will find a shell with a builtin
  2367. # printf (which we can use as an echo command).
  2368. # _LT_PROG_ECHO_BACKSLASH
  2369. # _LT_ENABLE_LOCK
  2370. # ---------------
  2371. # _LT_ENABLE_LOCK
  2372. # _LT_CMD_OLD_ARCHIVE
  2373. # -------------------
  2374. # _LT_CMD_OLD_ARCHIVE
  2375. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2376. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2377. # ----------------------------------------------------------------
  2378. # Check whether the given compiler option works
  2379. # _LT_COMPILER_OPTION
  2380. # Old name:
  2381. # This is what autoupdate's m4 run will expand. It fires
  2382. # the warning (with _au_warn_XXX), outputs it into the
  2383. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2384. # the replacement expansion.
  2385. # This is an auxiliary macro that is also run when
  2386. # autoupdate runs m4. It simply calls m4_warning, but
  2387. # we need a wrapper so that each warning is emitted only
  2388. # once. We break the quoting in m4_warning's argument in
  2389. # order to expand this macro's arguments, not AU_DEFUN's.
  2390. # Finally, this is the expansion that is picked up by
  2391. # autoconf. It tells the user to run autoupdate, and
  2392. # then outputs the replacement expansion. We do not care
  2393. # about autoupdate's warning because that contains
  2394. # information on what to do *after* running autoupdate.
  2395. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2396. # [ACTION-SUCCESS], [ACTION-FAILURE])
  2397. # ----------------------------------------------------
  2398. # Check whether the given linker option works
  2399. # _LT_LINKER_OPTION
  2400. # Old name:
  2401. # This is what autoupdate's m4 run will expand. It fires
  2402. # the warning (with _au_warn_XXX), outputs it into the
  2403. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2404. # the replacement expansion.
  2405. # This is an auxiliary macro that is also run when
  2406. # autoupdate runs m4. It simply calls m4_warning, but
  2407. # we need a wrapper so that each warning is emitted only
  2408. # once. We break the quoting in m4_warning's argument in
  2409. # order to expand this macro's arguments, not AU_DEFUN's.
  2410. # Finally, this is the expansion that is picked up by
  2411. # autoconf. It tells the user to run autoupdate, and
  2412. # then outputs the replacement expansion. We do not care
  2413. # about autoupdate's warning because that contains
  2414. # information on what to do *after* running autoupdate.
  2415. # LT_CMD_MAX_LEN
  2416. #---------------
  2417. # LT_CMD_MAX_LEN
  2418. # Old name:
  2419. # This is what autoupdate's m4 run will expand. It fires
  2420. # the warning (with _au_warn_XXX), outputs it into the
  2421. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2422. # the replacement expansion.
  2423. # This is an auxiliary macro that is also run when
  2424. # autoupdate runs m4. It simply calls m4_warning, but
  2425. # we need a wrapper so that each warning is emitted only
  2426. # once. We break the quoting in m4_warning's argument in
  2427. # order to expand this macro's arguments, not AU_DEFUN's.
  2428. # Finally, this is the expansion that is picked up by
  2429. # autoconf. It tells the user to run autoupdate, and
  2430. # then outputs the replacement expansion. We do not care
  2431. # about autoupdate's warning because that contains
  2432. # information on what to do *after* running autoupdate.
  2433. # _LT_HEADER_DLFCN
  2434. # ----------------
  2435. # _LT_HEADER_DLFCN
  2436. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2437. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2438. # ----------------------------------------------------------------
  2439. # _LT_TRY_DLOPEN_SELF
  2440. # LT_SYS_DLOPEN_SELF
  2441. # ------------------
  2442. # LT_SYS_DLOPEN_SELF
  2443. # Old name:
  2444. # This is what autoupdate's m4 run will expand. It fires
  2445. # the warning (with _au_warn_XXX), outputs it into the
  2446. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2447. # the replacement expansion.
  2448. # This is an auxiliary macro that is also run when
  2449. # autoupdate runs m4. It simply calls m4_warning, but
  2450. # we need a wrapper so that each warning is emitted only
  2451. # once. We break the quoting in m4_warning's argument in
  2452. # order to expand this macro's arguments, not AU_DEFUN's.
  2453. # Finally, this is the expansion that is picked up by
  2454. # autoconf. It tells the user to run autoupdate, and
  2455. # then outputs the replacement expansion. We do not care
  2456. # about autoupdate's warning because that contains
  2457. # information on what to do *after* running autoupdate.
  2458. # _LT_COMPILER_C_O([TAGNAME])
  2459. # ---------------------------
  2460. # Check to see if options -c and -o are simultaneously supported by compiler.
  2461. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2462. # _LT_COMPILER_C_O
  2463. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2464. # ----------------------------------
  2465. # Check to see if we can do hard links to lock some files if needed
  2466. # _LT_COMPILER_FILE_LOCKS
  2467. # _LT_CHECK_OBJDIR
  2468. # ----------------
  2469. # _LT_CHECK_OBJDIR
  2470. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2471. # --------------------------------------
  2472. # Check hardcoding attributes.
  2473. # _LT_LINKER_HARDCODE_LIBPATH
  2474. # _LT_CMD_STRIPLIB
  2475. # ----------------
  2476. # _LT_CMD_STRIPLIB
  2477. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2478. # -----------------------------
  2479. # PORTME Fill in your ld.so characteristics
  2480. # _LT_SYS_DYNAMIC_LINKER
  2481. # _LT_PATH_TOOL_PREFIX(TOOL)
  2482. # --------------------------
  2483. # find a file program which can recognize shared library
  2484. # _LT_PATH_TOOL_PREFIX
  2485. # Old name:
  2486. # This is what autoupdate's m4 run will expand. It fires
  2487. # the warning (with _au_warn_XXX), outputs it into the
  2488. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2489. # the replacement expansion.
  2490. # This is an auxiliary macro that is also run when
  2491. # autoupdate runs m4. It simply calls m4_warning, but
  2492. # we need a wrapper so that each warning is emitted only
  2493. # once. We break the quoting in m4_warning's argument in
  2494. # order to expand this macro's arguments, not AU_DEFUN's.
  2495. # Finally, this is the expansion that is picked up by
  2496. # autoconf. It tells the user to run autoupdate, and
  2497. # then outputs the replacement expansion. We do not care
  2498. # about autoupdate's warning because that contains
  2499. # information on what to do *after* running autoupdate.
  2500. # _LT_PATH_MAGIC
  2501. # --------------
  2502. # find a file program which can recognize a shared library
  2503. # _LT_PATH_MAGIC
  2504. # LT_PATH_LD
  2505. # ----------
  2506. # find the pathname to the GNU or non-GNU linker
  2507. # LT_PATH_LD
  2508. # Old names:
  2509. # This is what autoupdate's m4 run will expand. It fires
  2510. # the warning (with _au_warn_XXX), outputs it into the
  2511. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2512. # the replacement expansion.
  2513. # This is an auxiliary macro that is also run when
  2514. # autoupdate runs m4. It simply calls m4_warning, but
  2515. # we need a wrapper so that each warning is emitted only
  2516. # once. We break the quoting in m4_warning's argument in
  2517. # order to expand this macro's arguments, not AU_DEFUN's.
  2518. # Finally, this is the expansion that is picked up by
  2519. # autoconf. It tells the user to run autoupdate, and
  2520. # then outputs the replacement expansion. We do not care
  2521. # about autoupdate's warning because that contains
  2522. # information on what to do *after* running autoupdate.
  2523. # This is what autoupdate's m4 run will expand. It fires
  2524. # the warning (with _au_warn_XXX), outputs it into the
  2525. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2526. # the replacement expansion.
  2527. # This is an auxiliary macro that is also run when
  2528. # autoupdate runs m4. It simply calls m4_warning, but
  2529. # we need a wrapper so that each warning is emitted only
  2530. # once. We break the quoting in m4_warning's argument in
  2531. # order to expand this macro's arguments, not AU_DEFUN's.
  2532. # Finally, this is the expansion that is picked up by
  2533. # autoconf. It tells the user to run autoupdate, and
  2534. # then outputs the replacement expansion. We do not care
  2535. # about autoupdate's warning because that contains
  2536. # information on what to do *after* running autoupdate.
  2537. # _LT_PATH_LD_GNU
  2538. #- --------------
  2539. # _LT_PATH_LD_GNU
  2540. # _LT_CMD_RELOAD
  2541. # --------------
  2542. # find reload flag for linker
  2543. # -- PORTME Some linkers may need a different reload flag.
  2544. # _LT_CMD_RELOAD
  2545. # _LT_CHECK_MAGIC_METHOD
  2546. # ----------------------
  2547. # how to check for library dependencies
  2548. # -- PORTME fill in with the dynamic library characteristics
  2549. # _LT_CHECK_MAGIC_METHOD
  2550. # LT_PATH_NM
  2551. # ----------
  2552. # find the pathname to a BSD- or MS-compatible name lister
  2553. # LT_PATH_NM
  2554. # Old names:
  2555. # This is what autoupdate's m4 run will expand. It fires
  2556. # the warning (with _au_warn_XXX), outputs it into the
  2557. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2558. # the replacement expansion.
  2559. # This is an auxiliary macro that is also run when
  2560. # autoupdate runs m4. It simply calls m4_warning, but
  2561. # we need a wrapper so that each warning is emitted only
  2562. # once. We break the quoting in m4_warning's argument in
  2563. # order to expand this macro's arguments, not AU_DEFUN's.
  2564. # Finally, this is the expansion that is picked up by
  2565. # autoconf. It tells the user to run autoupdate, and
  2566. # then outputs the replacement expansion. We do not care
  2567. # about autoupdate's warning because that contains
  2568. # information on what to do *after* running autoupdate.
  2569. # This is what autoupdate's m4 run will expand. It fires
  2570. # the warning (with _au_warn_XXX), outputs it into the
  2571. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2572. # the replacement expansion.
  2573. # This is an auxiliary macro that is also run when
  2574. # autoupdate runs m4. It simply calls m4_warning, but
  2575. # we need a wrapper so that each warning is emitted only
  2576. # once. We break the quoting in m4_warning's argument in
  2577. # order to expand this macro's arguments, not AU_DEFUN's.
  2578. # Finally, this is the expansion that is picked up by
  2579. # autoconf. It tells the user to run autoupdate, and
  2580. # then outputs the replacement expansion. We do not care
  2581. # about autoupdate's warning because that contains
  2582. # information on what to do *after* running autoupdate.
  2583. # LT_LIB_M
  2584. # --------
  2585. # check for math library
  2586. # LT_LIB_M
  2587. # Old name:
  2588. # This is what autoupdate's m4 run will expand. It fires
  2589. # the warning (with _au_warn_XXX), outputs it into the
  2590. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2591. # the replacement expansion.
  2592. # This is an auxiliary macro that is also run when
  2593. # autoupdate runs m4. It simply calls m4_warning, but
  2594. # we need a wrapper so that each warning is emitted only
  2595. # once. We break the quoting in m4_warning's argument in
  2596. # order to expand this macro's arguments, not AU_DEFUN's.
  2597. # Finally, this is the expansion that is picked up by
  2598. # autoconf. It tells the user to run autoupdate, and
  2599. # then outputs the replacement expansion. We do not care
  2600. # about autoupdate's warning because that contains
  2601. # information on what to do *after* running autoupdate.
  2602. # _LT_COMPILER_NO_RTTI([TAGNAME])
  2603. # -------------------------------
  2604. # _LT_COMPILER_NO_RTTI
  2605. # _LT_CMD_GLOBAL_SYMBOLS
  2606. # ----------------------
  2607. # _LT_CMD_GLOBAL_SYMBOLS
  2608. # _LT_COMPILER_PIC([TAGNAME])
  2609. # ---------------------------
  2610. # _LT_COMPILER_PIC
  2611. # _LT_LINKER_SHLIBS([TAGNAME])
  2612. # ----------------------------
  2613. # See if the linker supports building shared libraries.
  2614. # _LT_LINKER_SHLIBS
  2615. # _LT_LANG_C_CONFIG([TAG])
  2616. # ------------------------
  2617. # Ensure that the configuration variables for a C compiler are suitably
  2618. # defined. These variables are subsequently used by _LT_CONFIG to write
  2619. # the compiler configuration to `libtool'.
  2620. # _LT_LANG_C_CONFIG
  2621. # _LT_LANG_CXX_CONFIG([TAG])
  2622. # --------------------------
  2623. # Ensure that the configuration variables for a C++ compiler are suitably
  2624. # defined. These variables are subsequently used by _LT_CONFIG to write
  2625. # the compiler configuration to `libtool'.
  2626. # _LT_LANG_CXX_CONFIG
  2627. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  2628. # ---------------------------------
  2629. # Figure out "hidden" library dependencies from verbose
  2630. # compiler output when linking a shared library.
  2631. # Parse the compiler output and extract the necessary
  2632. # objects, libraries and library flags.
  2633. # _LT_SYS_HIDDEN_LIBDEPS
  2634. # _LT_LANG_F77_CONFIG([TAG])
  2635. # --------------------------
  2636. # Ensure that the configuration variables for a Fortran 77 compiler are
  2637. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2638. # to write the compiler configuration to `libtool'.
  2639. # _LT_LANG_F77_CONFIG
  2640. # _LT_LANG_FC_CONFIG([TAG])
  2641. # -------------------------
  2642. # Ensure that the configuration variables for a Fortran compiler are
  2643. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2644. # to write the compiler configuration to `libtool'.
  2645. # _LT_LANG_FC_CONFIG
  2646. # _LT_LANG_GCJ_CONFIG([TAG])
  2647. # --------------------------
  2648. # Ensure that the configuration variables for the GNU Java Compiler compiler
  2649. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2650. # to write the compiler configuration to `libtool'.
  2651. # _LT_LANG_GCJ_CONFIG
  2652. # _LT_LANG_RC_CONFIG([TAG])
  2653. # -------------------------
  2654. # Ensure that the configuration variables for the Windows resource compiler
  2655. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2656. # to write the compiler configuration to `libtool'.
  2657. # _LT_LANG_RC_CONFIG
  2658. # LT_PROG_GCJ
  2659. # -----------
  2660. # Old name:
  2661. # This is what autoupdate's m4 run will expand. It fires
  2662. # the warning (with _au_warn_XXX), outputs it into the
  2663. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2664. # the replacement expansion.
  2665. # This is an auxiliary macro that is also run when
  2666. # autoupdate runs m4. It simply calls m4_warning, but
  2667. # we need a wrapper so that each warning is emitted only
  2668. # once. We break the quoting in m4_warning's argument in
  2669. # order to expand this macro's arguments, not AU_DEFUN's.
  2670. # Finally, this is the expansion that is picked up by
  2671. # autoconf. It tells the user to run autoupdate, and
  2672. # then outputs the replacement expansion. We do not care
  2673. # about autoupdate's warning because that contains
  2674. # information on what to do *after* running autoupdate.
  2675. # LT_PROG_RC
  2676. # ----------
  2677. # Old name:
  2678. # This is what autoupdate's m4 run will expand. It fires
  2679. # the warning (with _au_warn_XXX), outputs it into the
  2680. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2681. # the replacement expansion.
  2682. # This is an auxiliary macro that is also run when
  2683. # autoupdate runs m4. It simply calls m4_warning, but
  2684. # we need a wrapper so that each warning is emitted only
  2685. # once. We break the quoting in m4_warning's argument in
  2686. # order to expand this macro's arguments, not AU_DEFUN's.
  2687. # Finally, this is the expansion that is picked up by
  2688. # autoconf. It tells the user to run autoupdate, and
  2689. # then outputs the replacement expansion. We do not care
  2690. # about autoupdate's warning because that contains
  2691. # information on what to do *after* running autoupdate.
  2692. # _LT_DECL_EGREP
  2693. # --------------
  2694. # If we don't have a new enough Autoconf to choose the best grep
  2695. # available, choose the one first in the user's PATH.
  2696. # _LT_DECL_OBJDUMP
  2697. # --------------
  2698. # If we don't have a new enough Autoconf to choose the best objdump
  2699. # available, choose the one first in the user's PATH.
  2700. # _LT_DECL_SED
  2701. # ------------
  2702. # Check for a fully-functional sed program, that truncates
  2703. # as few characters as possible. Prefer GNU sed if found.
  2704. # _LT_DECL_SED
  2705. #m4_ifndef
  2706. # Old name:
  2707. # This is what autoupdate's m4 run will expand. It fires
  2708. # the warning (with _au_warn_XXX), outputs it into the
  2709. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2710. # the replacement expansion.
  2711. # This is an auxiliary macro that is also run when
  2712. # autoupdate runs m4. It simply calls m4_warning, but
  2713. # we need a wrapper so that each warning is emitted only
  2714. # once. We break the quoting in m4_warning's argument in
  2715. # order to expand this macro's arguments, not AU_DEFUN's.
  2716. # Finally, this is the expansion that is picked up by
  2717. # autoconf. It tells the user to run autoupdate, and
  2718. # then outputs the replacement expansion. We do not care
  2719. # about autoupdate's warning because that contains
  2720. # information on what to do *after* running autoupdate.
  2721. # _LT_CHECK_SHELL_FEATURES
  2722. # ------------------------
  2723. # Find out whether the shell is Bourne or XSI compatible,
  2724. # or has some other useful features.
  2725. # _LT_CHECK_SHELL_FEATURES
  2726. # _LT_PROG_XSI_SHELLFNS
  2727. # ---------------------
  2728. # Bourne and XSI compatible variants of some useful shell functions.
  2729. # Helper functions for option handling. -*- Autoconf -*-
  2730. #
  2731. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  2732. # Inc.
  2733. # Written by Gary V. Vaughan, 2004
  2734. #
  2735. # This file is free software; the Free Software Foundation gives
  2736. # unlimited permission to copy and/or distribute it, with or without
  2737. # modifications, as long as this notice is preserved.
  2738. # serial 6 ltoptions.m4
  2739. # This is to help aclocal find these macros, as it can't see m4_define.
  2740. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  2741. # ------------------------------------------
  2742. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  2743. # ---------------------------------------
  2744. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  2745. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  2746. # saved as a flag.
  2747. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  2748. # ------------------------------------------------------------
  2749. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  2750. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  2751. # -------------------------------------------------------
  2752. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  2753. # are set.
  2754. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  2755. # ----------------------------------------
  2756. # OPTION-LIST is a space-separated list of Libtool options associated
  2757. # with MACRO-NAME. If any OPTION has a matching handler declared with
  2758. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  2759. # the unknown option and exit.
  2760. # _LT_SET_OPTIONS
  2761. ## --------------------------------- ##
  2762. ## Macros to handle LT_INIT options. ##
  2763. ## --------------------------------- ##
  2764. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  2765. # -----------------------------------------
  2766. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  2767. # -----------------------------------------------
  2768. # LT_OPTION_DEFINE
  2769. # dlopen
  2770. # ------
  2771. # This is what autoupdate's m4 run will expand. It fires
  2772. # the warning (with _au_warn_XXX), outputs it into the
  2773. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2774. # the replacement expansion.
  2775. # This is an auxiliary macro that is also run when
  2776. # autoupdate runs m4. It simply calls m4_warning, but
  2777. # we need a wrapper so that each warning is emitted only
  2778. # once. We break the quoting in m4_warning's argument in
  2779. # order to expand this macro's arguments, not AU_DEFUN's.
  2780. # Finally, this is the expansion that is picked up by
  2781. # autoconf. It tells the user to run autoupdate, and
  2782. # then outputs the replacement expansion. We do not care
  2783. # about autoupdate's warning because that contains
  2784. # information on what to do *after* running autoupdate.
  2785. # win32-dll
  2786. # ---------
  2787. # Declare package support for building win32 dll's.
  2788. # win32-dll
  2789. # This is what autoupdate's m4 run will expand. It fires
  2790. # the warning (with _au_warn_XXX), outputs it into the
  2791. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2792. # the replacement expansion.
  2793. # This is an auxiliary macro that is also run when
  2794. # autoupdate runs m4. It simply calls m4_warning, but
  2795. # we need a wrapper so that each warning is emitted only
  2796. # once. We break the quoting in m4_warning's argument in
  2797. # order to expand this macro's arguments, not AU_DEFUN's.
  2798. # Finally, this is the expansion that is picked up by
  2799. # autoconf. It tells the user to run autoupdate, and
  2800. # then outputs the replacement expansion. We do not care
  2801. # about autoupdate's warning because that contains
  2802. # information on what to do *after* running autoupdate.
  2803. # _LT_ENABLE_SHARED([DEFAULT])
  2804. # ----------------------------
  2805. # implement the --enable-shared flag, and supports the `shared' and
  2806. # `disable-shared' LT_INIT options.
  2807. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2808. # _LT_ENABLE_SHARED
  2809. # Old names:
  2810. # This is what autoupdate's m4 run will expand. It fires
  2811. # the warning (with _au_warn_XXX), outputs it into the
  2812. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2813. # the replacement expansion.
  2814. # This is an auxiliary macro that is also run when
  2815. # autoupdate runs m4. It simply calls m4_warning, but
  2816. # we need a wrapper so that each warning is emitted only
  2817. # once. We break the quoting in m4_warning's argument in
  2818. # order to expand this macro's arguments, not AU_DEFUN's.
  2819. # Finally, this is the expansion that is picked up by
  2820. # autoconf. It tells the user to run autoupdate, and
  2821. # then outputs the replacement expansion. We do not care
  2822. # about autoupdate's warning because that contains
  2823. # information on what to do *after* running autoupdate.
  2824. # This is what autoupdate's m4 run will expand. It fires
  2825. # the warning (with _au_warn_XXX), outputs it into the
  2826. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2827. # the replacement expansion.
  2828. # This is an auxiliary macro that is also run when
  2829. # autoupdate runs m4. It simply calls m4_warning, but
  2830. # we need a wrapper so that each warning is emitted only
  2831. # once. We break the quoting in m4_warning's argument in
  2832. # order to expand this macro's arguments, not AU_DEFUN's.
  2833. # Finally, this is the expansion that is picked up by
  2834. # autoconf. It tells the user to run autoupdate, and
  2835. # then outputs the replacement expansion. We do not care
  2836. # about autoupdate's warning because that contains
  2837. # information on what to do *after* running autoupdate.
  2838. # _LT_ENABLE_STATIC([DEFAULT])
  2839. # ----------------------------
  2840. # implement the --enable-static flag, and support the `static' and
  2841. # `disable-static' LT_INIT options.
  2842. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2843. # _LT_ENABLE_STATIC
  2844. # Old names:
  2845. # This is what autoupdate's m4 run will expand. It fires
  2846. # the warning (with _au_warn_XXX), outputs it into the
  2847. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2848. # the replacement expansion.
  2849. # This is an auxiliary macro that is also run when
  2850. # autoupdate runs m4. It simply calls m4_warning, but
  2851. # we need a wrapper so that each warning is emitted only
  2852. # once. We break the quoting in m4_warning's argument in
  2853. # order to expand this macro's arguments, not AU_DEFUN's.
  2854. # Finally, this is the expansion that is picked up by
  2855. # autoconf. It tells the user to run autoupdate, and
  2856. # then outputs the replacement expansion. We do not care
  2857. # about autoupdate's warning because that contains
  2858. # information on what to do *after* running autoupdate.
  2859. # This is what autoupdate's m4 run will expand. It fires
  2860. # the warning (with _au_warn_XXX), outputs it into the
  2861. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2862. # the replacement expansion.
  2863. # This is an auxiliary macro that is also run when
  2864. # autoupdate runs m4. It simply calls m4_warning, but
  2865. # we need a wrapper so that each warning is emitted only
  2866. # once. We break the quoting in m4_warning's argument in
  2867. # order to expand this macro's arguments, not AU_DEFUN's.
  2868. # Finally, this is the expansion that is picked up by
  2869. # autoconf. It tells the user to run autoupdate, and
  2870. # then outputs the replacement expansion. We do not care
  2871. # about autoupdate's warning because that contains
  2872. # information on what to do *after* running autoupdate.
  2873. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  2874. # ----------------------------------
  2875. # implement the --enable-fast-install flag, and support the `fast-install'
  2876. # and `disable-fast-install' LT_INIT options.
  2877. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2878. # _LT_ENABLE_FAST_INSTALL
  2879. # Old names:
  2880. # This is what autoupdate's m4 run will expand. It fires
  2881. # the warning (with _au_warn_XXX), outputs it into the
  2882. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2883. # the replacement expansion.
  2884. # This is an auxiliary macro that is also run when
  2885. # autoupdate runs m4. It simply calls m4_warning, but
  2886. # we need a wrapper so that each warning is emitted only
  2887. # once. We break the quoting in m4_warning's argument in
  2888. # order to expand this macro's arguments, not AU_DEFUN's.
  2889. # Finally, this is the expansion that is picked up by
  2890. # autoconf. It tells the user to run autoupdate, and
  2891. # then outputs the replacement expansion. We do not care
  2892. # about autoupdate's warning because that contains
  2893. # information on what to do *after* running autoupdate.
  2894. # This is what autoupdate's m4 run will expand. It fires
  2895. # the warning (with _au_warn_XXX), outputs it into the
  2896. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2897. # the replacement expansion.
  2898. # This is an auxiliary macro that is also run when
  2899. # autoupdate runs m4. It simply calls m4_warning, but
  2900. # we need a wrapper so that each warning is emitted only
  2901. # once. We break the quoting in m4_warning's argument in
  2902. # order to expand this macro's arguments, not AU_DEFUN's.
  2903. # Finally, this is the expansion that is picked up by
  2904. # autoconf. It tells the user to run autoupdate, and
  2905. # then outputs the replacement expansion. We do not care
  2906. # about autoupdate's warning because that contains
  2907. # information on what to do *after* running autoupdate.
  2908. # _LT_WITH_PIC([MODE])
  2909. # --------------------
  2910. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  2911. # LT_INIT options.
  2912. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2913. # _LT_WITH_PIC
  2914. # Old name:
  2915. # This is what autoupdate's m4 run will expand. It fires
  2916. # the warning (with _au_warn_XXX), outputs it into the
  2917. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2918. # the replacement expansion.
  2919. # This is an auxiliary macro that is also run when
  2920. # autoupdate runs m4. It simply calls m4_warning, but
  2921. # we need a wrapper so that each warning is emitted only
  2922. # once. We break the quoting in m4_warning's argument in
  2923. # order to expand this macro's arguments, not AU_DEFUN's.
  2924. # Finally, this is the expansion that is picked up by
  2925. # autoconf. It tells the user to run autoupdate, and
  2926. # then outputs the replacement expansion. We do not care
  2927. # about autoupdate's warning because that contains
  2928. # information on what to do *after* running autoupdate.
  2929. ## ----------------- ##
  2930. ## LTDL_INIT Options ##
  2931. ## ----------------- ##
  2932. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  2933. #
  2934. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  2935. # Written by Gary V. Vaughan, 2004
  2936. #
  2937. # This file is free software; the Free Software Foundation gives
  2938. # unlimited permission to copy and/or distribute it, with or without
  2939. # modifications, as long as this notice is preserved.
  2940. # serial 6 ltsugar.m4
  2941. # This is to help aclocal find these macros, as it can't see m4_define.
  2942. # lt_join(SEP, ARG1, [ARG2...])
  2943. # -----------------------------
  2944. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  2945. # associated separator.
  2946. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  2947. # versions in m4sugar had bugs.
  2948. # lt_car(LIST)
  2949. # lt_cdr(LIST)
  2950. # ------------
  2951. # Manipulate m4 lists.
  2952. # These macros are necessary as long as will still need to support
  2953. # Autoconf-2.59 which quotes differently.
  2954. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  2955. # ------------------------------------------
  2956. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  2957. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  2958. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  2959. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  2960. # than defined and empty).
  2961. #
  2962. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  2963. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  2964. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  2965. # ----------------------------------------------------------
  2966. # Produce a SEP delimited list of all paired combinations of elements of
  2967. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  2968. # has the form PREFIXmINFIXSUFFIXn.
  2969. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  2970. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  2971. # -----------------------------------------------------------------------
  2972. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  2973. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  2974. # lt_dict_add(DICT, KEY, VALUE)
  2975. # -----------------------------
  2976. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  2977. # --------------------------------------------
  2978. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  2979. # ----------------------------------
  2980. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  2981. # -----------------------------------------------------------------
  2982. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  2983. # --------------------------------------------------------------
  2984. # ltversion.m4 -- version numbers -*- Autoconf -*-
  2985. #
  2986. # Copyright (C) 2004 Free Software Foundation, Inc.
  2987. # Written by Scott James Remnant, 2004
  2988. #
  2989. # This file is free software; the Free Software Foundation gives
  2990. # unlimited permission to copy and/or distribute it, with or without
  2991. # modifications, as long as this notice is preserved.
  2992. # Generated from ltversion.in.
  2993. # serial 3134 ltversion.m4
  2994. # This file is part of GNU Libtool
  2995. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  2996. #
  2997. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  2998. # Written by Scott James Remnant, 2004.
  2999. #
  3000. # This file is free software; the Free Software Foundation gives
  3001. # unlimited permission to copy and/or distribute it, with or without
  3002. # modifications, as long as this notice is preserved.
  3003. # serial 4 lt~obsolete.m4
  3004. # These exist entirely to fool aclocal when bootstrapping libtool.
  3005. #
  3006. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  3007. # which have later been changed to m4_define as they aren't part of the
  3008. # exported API, or moved to Autoconf or Automake where they belong.
  3009. #
  3010. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  3011. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  3012. # using a macro with the same name in our local m4/libtool.m4 it'll
  3013. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  3014. # and doesn't know about Autoconf macros at all.)
  3015. #
  3016. # So we provide this file, which has a silly filename so it's always
  3017. # included after everything else. This provides aclocal with the
  3018. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  3019. # because those macros already exist, or will be overwritten later.
  3020. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  3021. #
  3022. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  3023. # Yes, that means every name once taken will need to remain here until
  3024. # we give up compatibility with versions before 1.7, at which point
  3025. # we need to keep only those names which we still refer to.
  3026. # This is to help aclocal find these macros, as it can't see m4_define.
  3027. ## -*- Autoconf -*-
  3028. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
  3029. # Free Software Foundation, Inc.
  3030. #
  3031. # This file is free software; the Free Software Foundation
  3032. # gives unlimited permission to copy and/or distribute it,
  3033. # with or without modifications, as long as this notice is preserved.
  3034. # serial 8
  3035. # Based on depend.m4 from automake 1.9, modified for standalone use in
  3036. # an environment where GNU make is required.
  3037. # ZW_PROG_COMPILER_DEPENDENCIES
  3038. # -----------------------------
  3039. # Variant of _AM_DEPENDENCIES which just does the dependency probe and
  3040. # sets fooDEPMODE accordingly. Cache-variable compatible with
  3041. # original; not side-effect compatible. As the users of this macro
  3042. # may require accurate dependencies for correct builds, it does *not*
  3043. # honor --disable-dependency-checking, and failure to detect a usable
  3044. # method is an error. depcomp is assumed to be located in
  3045. # $ac_aux_dir.
  3046. #
  3047. # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
  3048. # AM_SET_DEPDIR
  3049. # -------------
  3050. # Choose a directory name for dependency files.
  3051. # ZW_CREATE_DEPDIR
  3052. # ----------------
  3053. # As AM_SET_DEPDIR, but also create the directory at config.status time.
  3054. sim_inline="-DDEFAULT_INLINE=0"
  3055. # intl sister-directory configuration rules.
  3056. #
  3057. # The idea behind this macro is that there's no need to repeat all the
  3058. # autoconf probes done by the intl directory - it's already done them
  3059. # for us. In fact, there's no need even to look at the cache for the
  3060. # answers. All we need to do is nab a few pieces of information.
  3061. # The intl directory is set up to make this easy, by generating a
  3062. # small file which can be sourced as a shell script; then we produce
  3063. # the necessary substitutions and definitions for this directory.
  3064. # Autoconf M4 include file defining utility macros for complex Canadian
  3065. # cross builds.
  3066. ####
  3067. # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
  3068. # or AC_INIT.
  3069. # These demand that AC_CANONICAL_SYSTEM be called beforehand.
  3070. ####
  3071. # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3072. # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
  3073. ####
  3074. # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3075. # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
  3076. # Backported from Autoconf 2.5x; can go away when and if
  3077. # we switch. Put the OS path separator in $PATH_SEPARATOR.
  3078. # ACX_HAVE_GCC_FOR_TARGET
  3079. # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
  3080. # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
  3081. # Searching for installed target binutils. We need to take extra care,
  3082. # else we may find the wrong assembler, linker, etc., and lose.
  3083. #
  3084. # First try --with-build-time-tools, if specified.
  3085. #
  3086. # For build != host, we ask the installed GCC for the name of the tool it
  3087. # uses, and accept it if it is an absolute path. This is because the
  3088. # only good choice for a compiler is the same GCC version that is being
  3089. # installed (or we couldn't make target libraries), and we assume that
  3090. # on the host system we'll have not only the same GCC version, but also
  3091. # the same binutils version.
  3092. #
  3093. # For build == host, search the same directories that the installed
  3094. # compiler will search. We used to do this for the assembler, linker,
  3095. # and nm only; for simplicity of configuration, however, we extend this
  3096. # criterion to tools (such as ar and ranlib) that are never invoked by
  3097. # the compiler, to avoid mismatches.
  3098. #
  3099. # Also note we have to check MD_EXEC_PREFIX before checking the user's path
  3100. # if build == target. This makes the most sense only when bootstrapping,
  3101. # but we also do so when build != host. In this case, we hope that the
  3102. # build and host systems will have similar contents of MD_EXEC_PREFIX.
  3103. #
  3104. # If we do not find a suitable binary, then try the user's path.
  3105. ###
  3106. # AC_PROG_CPP_WERROR
  3107. # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
  3108. # triggers warnings from the preprocessor. Will be in autoconf 2.58.
  3109. # For now, using this also overrides header checks to use only the
  3110. # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
  3111. # bit harder from here).
  3112. # Eventually autoconf will default to checking headers with the compiler
  3113. # instead, and we'll have to do this differently.
  3114. # AC_PROG_CPP_WERROR
  3115. # Test for GNAT.
  3116. # We require the gnatbind & gnatmake programs, as well as a compiler driver
  3117. # that understands Ada. We use the user's CC setting, already found, and
  3118. # possibly add $1 to the command-line parameters.
  3119. #
  3120. # Sets the shell variable have_gnat to yes or no as appropriate, and
  3121. # substitutes GNATBIND and GNATMAKE.
  3122. ac_ext=c
  3123. ac_cpp='$CPP $CPPFLAGS'
  3124. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3125. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3126. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3127. if test -n "$ac_tool_prefix"; then
  3128. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3129. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3131. $as_echo_n "checking for $ac_word... " >&6; }
  3132. if test "${ac_cv_prog_CC+set}" = set; then :
  3133. $as_echo_n "(cached) " >&6
  3134. else
  3135. if test -n "$CC"; then
  3136. ac_cv_prog_CC="$CC" # Let the user override the test.
  3137. else
  3138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3139. for as_dir in $PATH
  3140. do
  3141. IFS=$as_save_IFS
  3142. test -z "$as_dir" && as_dir=.
  3143. for ac_exec_ext in '' $ac_executable_extensions; do
  3144. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3145. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3147. break 2
  3148. fi
  3149. done
  3150. done
  3151. IFS=$as_save_IFS
  3152. fi
  3153. fi
  3154. CC=$ac_cv_prog_CC
  3155. if test -n "$CC"; then
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3157. $as_echo "$CC" >&6; }
  3158. else
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3160. $as_echo "no" >&6; }
  3161. fi
  3162. fi
  3163. if test -z "$ac_cv_prog_CC"; then
  3164. ac_ct_CC=$CC
  3165. # Extract the first word of "gcc", so it can be a program name with args.
  3166. set dummy gcc; ac_word=$2
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3168. $as_echo_n "checking for $ac_word... " >&6; }
  3169. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3170. $as_echo_n "(cached) " >&6
  3171. else
  3172. if test -n "$ac_ct_CC"; then
  3173. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3174. else
  3175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3176. for as_dir in $PATH
  3177. do
  3178. IFS=$as_save_IFS
  3179. test -z "$as_dir" && as_dir=.
  3180. for ac_exec_ext in '' $ac_executable_extensions; do
  3181. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3182. ac_cv_prog_ac_ct_CC="gcc"
  3183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3184. break 2
  3185. fi
  3186. done
  3187. done
  3188. IFS=$as_save_IFS
  3189. fi
  3190. fi
  3191. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3192. if test -n "$ac_ct_CC"; then
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3194. $as_echo "$ac_ct_CC" >&6; }
  3195. else
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3197. $as_echo "no" >&6; }
  3198. fi
  3199. if test "x$ac_ct_CC" = x; then
  3200. CC=""
  3201. else
  3202. case $cross_compiling:$ac_tool_warned in
  3203. yes:)
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3205. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3206. ac_tool_warned=yes ;;
  3207. esac
  3208. CC=$ac_ct_CC
  3209. fi
  3210. else
  3211. CC="$ac_cv_prog_CC"
  3212. fi
  3213. if test -z "$CC"; then
  3214. if test -n "$ac_tool_prefix"; then
  3215. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3216. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3218. $as_echo_n "checking for $ac_word... " >&6; }
  3219. if test "${ac_cv_prog_CC+set}" = set; then :
  3220. $as_echo_n "(cached) " >&6
  3221. else
  3222. if test -n "$CC"; then
  3223. ac_cv_prog_CC="$CC" # Let the user override the test.
  3224. else
  3225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3226. for as_dir in $PATH
  3227. do
  3228. IFS=$as_save_IFS
  3229. test -z "$as_dir" && as_dir=.
  3230. for ac_exec_ext in '' $ac_executable_extensions; do
  3231. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3232. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3234. break 2
  3235. fi
  3236. done
  3237. done
  3238. IFS=$as_save_IFS
  3239. fi
  3240. fi
  3241. CC=$ac_cv_prog_CC
  3242. if test -n "$CC"; then
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3244. $as_echo "$CC" >&6; }
  3245. else
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3247. $as_echo "no" >&6; }
  3248. fi
  3249. fi
  3250. fi
  3251. if test -z "$CC"; then
  3252. # Extract the first word of "cc", so it can be a program name with args.
  3253. set dummy cc; ac_word=$2
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3255. $as_echo_n "checking for $ac_word... " >&6; }
  3256. if test "${ac_cv_prog_CC+set}" = set; then :
  3257. $as_echo_n "(cached) " >&6
  3258. else
  3259. if test -n "$CC"; then
  3260. ac_cv_prog_CC="$CC" # Let the user override the test.
  3261. else
  3262. ac_prog_rejected=no
  3263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3264. for as_dir in $PATH
  3265. do
  3266. IFS=$as_save_IFS
  3267. test -z "$as_dir" && as_dir=.
  3268. for ac_exec_ext in '' $ac_executable_extensions; do
  3269. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3270. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3271. ac_prog_rejected=yes
  3272. continue
  3273. fi
  3274. ac_cv_prog_CC="cc"
  3275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3276. break 2
  3277. fi
  3278. done
  3279. done
  3280. IFS=$as_save_IFS
  3281. if test $ac_prog_rejected = yes; then
  3282. # We found a bogon in the path, so make sure we never use it.
  3283. set dummy $ac_cv_prog_CC
  3284. shift
  3285. if test $# != 0; then
  3286. # We chose a different compiler from the bogus one.
  3287. # However, it has the same basename, so the bogon will be chosen
  3288. # first if we set CC to just the basename; use the full file name.
  3289. shift
  3290. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3291. fi
  3292. fi
  3293. fi
  3294. fi
  3295. CC=$ac_cv_prog_CC
  3296. if test -n "$CC"; then
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3298. $as_echo "$CC" >&6; }
  3299. else
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3301. $as_echo "no" >&6; }
  3302. fi
  3303. fi
  3304. if test -z "$CC"; then
  3305. if test -n "$ac_tool_prefix"; then
  3306. for ac_prog in cl.exe
  3307. do
  3308. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3309. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3311. $as_echo_n "checking for $ac_word... " >&6; }
  3312. if test "${ac_cv_prog_CC+set}" = set; then :
  3313. $as_echo_n "(cached) " >&6
  3314. else
  3315. if test -n "$CC"; then
  3316. ac_cv_prog_CC="$CC" # Let the user override the test.
  3317. else
  3318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3319. for as_dir in $PATH
  3320. do
  3321. IFS=$as_save_IFS
  3322. test -z "$as_dir" && as_dir=.
  3323. for ac_exec_ext in '' $ac_executable_extensions; do
  3324. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3325. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3326. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3327. break 2
  3328. fi
  3329. done
  3330. done
  3331. IFS=$as_save_IFS
  3332. fi
  3333. fi
  3334. CC=$ac_cv_prog_CC
  3335. if test -n "$CC"; then
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3337. $as_echo "$CC" >&6; }
  3338. else
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3340. $as_echo "no" >&6; }
  3341. fi
  3342. test -n "$CC" && break
  3343. done
  3344. fi
  3345. if test -z "$CC"; then
  3346. ac_ct_CC=$CC
  3347. for ac_prog in cl.exe
  3348. do
  3349. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3350. set dummy $ac_prog; ac_word=$2
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3352. $as_echo_n "checking for $ac_word... " >&6; }
  3353. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3354. $as_echo_n "(cached) " >&6
  3355. else
  3356. if test -n "$ac_ct_CC"; then
  3357. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3358. else
  3359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3360. for as_dir in $PATH
  3361. do
  3362. IFS=$as_save_IFS
  3363. test -z "$as_dir" && as_dir=.
  3364. for ac_exec_ext in '' $ac_executable_extensions; do
  3365. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3366. ac_cv_prog_ac_ct_CC="$ac_prog"
  3367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3368. break 2
  3369. fi
  3370. done
  3371. done
  3372. IFS=$as_save_IFS
  3373. fi
  3374. fi
  3375. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3376. if test -n "$ac_ct_CC"; then
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3378. $as_echo "$ac_ct_CC" >&6; }
  3379. else
  3380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3381. $as_echo "no" >&6; }
  3382. fi
  3383. test -n "$ac_ct_CC" && break
  3384. done
  3385. if test "x$ac_ct_CC" = x; then
  3386. CC=""
  3387. else
  3388. case $cross_compiling:$ac_tool_warned in
  3389. yes:)
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3391. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3392. ac_tool_warned=yes ;;
  3393. esac
  3394. CC=$ac_ct_CC
  3395. fi
  3396. fi
  3397. fi
  3398. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3399. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3400. as_fn_error "no acceptable C compiler found in \$PATH
  3401. See \`config.log' for more details." "$LINENO" 5; }
  3402. # Provide some information about the compiler.
  3403. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3404. set X $ac_compile
  3405. ac_compiler=$2
  3406. for ac_option in --version -v -V -qversion; do
  3407. { { ac_try="$ac_compiler $ac_option >&5"
  3408. case "(($ac_try" in
  3409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3410. *) ac_try_echo=$ac_try;;
  3411. esac
  3412. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3413. $as_echo "$ac_try_echo"; } >&5
  3414. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3415. ac_status=$?
  3416. if test -s conftest.err; then
  3417. sed '10a\
  3418. ... rest of stderr output deleted ...
  3419. 10q' conftest.err >conftest.er1
  3420. cat conftest.er1 >&5
  3421. rm -f conftest.er1 conftest.err
  3422. fi
  3423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3424. test $ac_status = 0; }
  3425. done
  3426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3427. /* end confdefs.h. */
  3428. int
  3429. main ()
  3430. {
  3431. ;
  3432. return 0;
  3433. }
  3434. _ACEOF
  3435. ac_clean_files_save=$ac_clean_files
  3436. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3437. # Try to create an executable without -o first, disregard a.out.
  3438. # It will help us diagnose broken compilers, and finding out an intuition
  3439. # of exeext.
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3441. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3442. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3443. # The possible output files:
  3444. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3445. ac_rmfiles=
  3446. for ac_file in $ac_files
  3447. do
  3448. case $ac_file in
  3449. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3450. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3451. esac
  3452. done
  3453. rm -f $ac_rmfiles
  3454. if { { ac_try="$ac_link_default"
  3455. case "(($ac_try" in
  3456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3457. *) ac_try_echo=$ac_try;;
  3458. esac
  3459. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3460. $as_echo "$ac_try_echo"; } >&5
  3461. (eval "$ac_link_default") 2>&5
  3462. ac_status=$?
  3463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3464. test $ac_status = 0; }; then :
  3465. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3466. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3467. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3468. # so that the user can short-circuit this test for compilers unknown to
  3469. # Autoconf.
  3470. for ac_file in $ac_files ''
  3471. do
  3472. test -f "$ac_file" || continue
  3473. case $ac_file in
  3474. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3475. ;;
  3476. [ab].out )
  3477. # We found the default executable, but exeext='' is most
  3478. # certainly right.
  3479. break;;
  3480. *.* )
  3481. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3482. then :; else
  3483. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3484. fi
  3485. # We set ac_cv_exeext here because the later test for it is not
  3486. # safe: cross compilers may not add the suffix if given an `-o'
  3487. # argument, so we may need to know it at that point already.
  3488. # Even if this section looks crufty: it has the advantage of
  3489. # actually working.
  3490. break;;
  3491. * )
  3492. break;;
  3493. esac
  3494. done
  3495. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3496. else
  3497. ac_file=''
  3498. fi
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3500. $as_echo "$ac_file" >&6; }
  3501. if test -z "$ac_file"; then :
  3502. $as_echo "$as_me: failed program was:" >&5
  3503. sed 's/^/| /' conftest.$ac_ext >&5
  3504. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3505. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3506. { as_fn_set_status 77
  3507. as_fn_error "C compiler cannot create executables
  3508. See \`config.log' for more details." "$LINENO" 5; }; }
  3509. fi
  3510. ac_exeext=$ac_cv_exeext
  3511. # Check that the compiler produces executables we can run. If not, either
  3512. # the compiler is broken, or we cross compile.
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3514. $as_echo_n "checking whether the C compiler works... " >&6; }
  3515. # If not cross compiling, check that we can run a simple program.
  3516. if test "$cross_compiling" != yes; then
  3517. if { ac_try='./$ac_file'
  3518. { { case "(($ac_try" in
  3519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3520. *) ac_try_echo=$ac_try;;
  3521. esac
  3522. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3523. $as_echo "$ac_try_echo"; } >&5
  3524. (eval "$ac_try") 2>&5
  3525. ac_status=$?
  3526. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3527. test $ac_status = 0; }; }; then
  3528. cross_compiling=no
  3529. else
  3530. if test "$cross_compiling" = maybe; then
  3531. cross_compiling=yes
  3532. else
  3533. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3534. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3535. as_fn_error "cannot run C compiled programs.
  3536. If you meant to cross compile, use \`--host'.
  3537. See \`config.log' for more details." "$LINENO" 5; }
  3538. fi
  3539. fi
  3540. fi
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3542. $as_echo "yes" >&6; }
  3543. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3544. ac_clean_files=$ac_clean_files_save
  3545. # Check that the compiler produces executables we can run. If not, either
  3546. # the compiler is broken, or we cross compile.
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3548. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3550. $as_echo "$cross_compiling" >&6; }
  3551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3552. $as_echo_n "checking for suffix of executables... " >&6; }
  3553. if { { ac_try="$ac_link"
  3554. case "(($ac_try" in
  3555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3556. *) ac_try_echo=$ac_try;;
  3557. esac
  3558. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3559. $as_echo "$ac_try_echo"; } >&5
  3560. (eval "$ac_link") 2>&5
  3561. ac_status=$?
  3562. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3563. test $ac_status = 0; }; then :
  3564. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3565. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3566. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3567. # `rm'.
  3568. for ac_file in conftest.exe conftest conftest.*; do
  3569. test -f "$ac_file" || continue
  3570. case $ac_file in
  3571. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3572. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3573. break;;
  3574. * ) break;;
  3575. esac
  3576. done
  3577. else
  3578. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3579. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3580. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3581. See \`config.log' for more details." "$LINENO" 5; }
  3582. fi
  3583. rm -f conftest$ac_cv_exeext
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3585. $as_echo "$ac_cv_exeext" >&6; }
  3586. rm -f conftest.$ac_ext
  3587. EXEEXT=$ac_cv_exeext
  3588. ac_exeext=$EXEEXT
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3590. $as_echo_n "checking for suffix of object files... " >&6; }
  3591. if test "${ac_cv_objext+set}" = set; then :
  3592. $as_echo_n "(cached) " >&6
  3593. else
  3594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3595. /* end confdefs.h. */
  3596. int
  3597. main ()
  3598. {
  3599. ;
  3600. return 0;
  3601. }
  3602. _ACEOF
  3603. rm -f conftest.o conftest.obj
  3604. if { { ac_try="$ac_compile"
  3605. case "(($ac_try" in
  3606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3607. *) ac_try_echo=$ac_try;;
  3608. esac
  3609. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3610. $as_echo "$ac_try_echo"; } >&5
  3611. (eval "$ac_compile") 2>&5
  3612. ac_status=$?
  3613. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3614. test $ac_status = 0; }; then :
  3615. for ac_file in conftest.o conftest.obj conftest.*; do
  3616. test -f "$ac_file" || continue;
  3617. case $ac_file in
  3618. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3619. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3620. break;;
  3621. esac
  3622. done
  3623. else
  3624. $as_echo "$as_me: failed program was:" >&5
  3625. sed 's/^/| /' conftest.$ac_ext >&5
  3626. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3627. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3628. as_fn_error "cannot compute suffix of object files: cannot compile
  3629. See \`config.log' for more details." "$LINENO" 5; }
  3630. fi
  3631. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3632. fi
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3634. $as_echo "$ac_cv_objext" >&6; }
  3635. OBJEXT=$ac_cv_objext
  3636. ac_objext=$OBJEXT
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3638. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3639. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3640. $as_echo_n "(cached) " >&6
  3641. else
  3642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3643. /* end confdefs.h. */
  3644. int
  3645. main ()
  3646. {
  3647. #ifndef __GNUC__
  3648. choke me
  3649. #endif
  3650. ;
  3651. return 0;
  3652. }
  3653. _ACEOF
  3654. if ac_fn_c_try_compile "$LINENO"; then :
  3655. ac_compiler_gnu=yes
  3656. else
  3657. ac_compiler_gnu=no
  3658. fi
  3659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3660. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3661. fi
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3663. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3664. if test $ac_compiler_gnu = yes; then
  3665. GCC=yes
  3666. else
  3667. GCC=
  3668. fi
  3669. ac_test_CFLAGS=${CFLAGS+set}
  3670. ac_save_CFLAGS=$CFLAGS
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3672. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3673. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3674. $as_echo_n "(cached) " >&6
  3675. else
  3676. ac_save_c_werror_flag=$ac_c_werror_flag
  3677. ac_c_werror_flag=yes
  3678. ac_cv_prog_cc_g=no
  3679. CFLAGS="-g"
  3680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3681. /* end confdefs.h. */
  3682. int
  3683. main ()
  3684. {
  3685. ;
  3686. return 0;
  3687. }
  3688. _ACEOF
  3689. if ac_fn_c_try_compile "$LINENO"; then :
  3690. ac_cv_prog_cc_g=yes
  3691. else
  3692. CFLAGS=""
  3693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3694. /* end confdefs.h. */
  3695. int
  3696. main ()
  3697. {
  3698. ;
  3699. return 0;
  3700. }
  3701. _ACEOF
  3702. if ac_fn_c_try_compile "$LINENO"; then :
  3703. else
  3704. ac_c_werror_flag=$ac_save_c_werror_flag
  3705. CFLAGS="-g"
  3706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3707. /* end confdefs.h. */
  3708. int
  3709. main ()
  3710. {
  3711. ;
  3712. return 0;
  3713. }
  3714. _ACEOF
  3715. if ac_fn_c_try_compile "$LINENO"; then :
  3716. ac_cv_prog_cc_g=yes
  3717. fi
  3718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3719. fi
  3720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3721. fi
  3722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3723. ac_c_werror_flag=$ac_save_c_werror_flag
  3724. fi
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3726. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3727. if test "$ac_test_CFLAGS" = set; then
  3728. CFLAGS=$ac_save_CFLAGS
  3729. elif test $ac_cv_prog_cc_g = yes; then
  3730. if test "$GCC" = yes; then
  3731. CFLAGS="-g -O2"
  3732. else
  3733. CFLAGS="-g"
  3734. fi
  3735. else
  3736. if test "$GCC" = yes; then
  3737. CFLAGS="-O2"
  3738. else
  3739. CFLAGS=
  3740. fi
  3741. fi
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3743. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3744. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3745. $as_echo_n "(cached) " >&6
  3746. else
  3747. ac_cv_prog_cc_c89=no
  3748. ac_save_CC=$CC
  3749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3750. /* end confdefs.h. */
  3751. #include <stdarg.h>
  3752. #include <stdio.h>
  3753. #include <sys/types.h>
  3754. #include <sys/stat.h>
  3755. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3756. struct buf { int x; };
  3757. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3758. static char *e (p, i)
  3759. char **p;
  3760. int i;
  3761. {
  3762. return p[i];
  3763. }
  3764. static char *f (char * (*g) (char **, int), char **p, ...)
  3765. {
  3766. char *s;
  3767. va_list v;
  3768. va_start (v,p);
  3769. s = g (p, va_arg (v,int));
  3770. va_end (v);
  3771. return s;
  3772. }
  3773. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3774. function prototypes and stuff, but not '\xHH' hex character constants.
  3775. These don't provoke an error unfortunately, instead are silently treated
  3776. as 'x'. The following induces an error, until -std is added to get
  3777. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3778. array size at least. It's necessary to write '\x00'==0 to get something
  3779. that's true only with -std. */
  3780. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3781. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3782. inside strings and character constants. */
  3783. #define FOO(x) 'x'
  3784. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3785. int test (int i, double x);
  3786. struct s1 {int (*f) (int a);};
  3787. struct s2 {int (*f) (double a);};
  3788. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3789. int argc;
  3790. char **argv;
  3791. int
  3792. main ()
  3793. {
  3794. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3795. ;
  3796. return 0;
  3797. }
  3798. _ACEOF
  3799. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3800. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3801. do
  3802. CC="$ac_save_CC $ac_arg"
  3803. if ac_fn_c_try_compile "$LINENO"; then :
  3804. ac_cv_prog_cc_c89=$ac_arg
  3805. fi
  3806. rm -f core conftest.err conftest.$ac_objext
  3807. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3808. done
  3809. rm -f conftest.$ac_ext
  3810. CC=$ac_save_CC
  3811. fi
  3812. # AC_CACHE_VAL
  3813. case "x$ac_cv_prog_cc_c89" in
  3814. x)
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3816. $as_echo "none needed" >&6; } ;;
  3817. xno)
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3819. $as_echo "unsupported" >&6; } ;;
  3820. *)
  3821. CC="$CC $ac_cv_prog_cc_c89"
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3823. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3824. esac
  3825. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3826. fi
  3827. ac_ext=c
  3828. ac_cpp='$CPP $CPPFLAGS'
  3829. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3830. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3831. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3832. ac_aux_dir=
  3833. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3834. for ac_t in install-sh install.sh shtool; do
  3835. if test -f "$ac_dir/$ac_t"; then
  3836. ac_aux_dir=$ac_dir
  3837. ac_install_sh="$ac_aux_dir/$ac_t -c"
  3838. break 2
  3839. fi
  3840. done
  3841. done
  3842. if test -z "$ac_aux_dir"; then
  3843. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3844. fi
  3845. # These three variables are undocumented and unsupported,
  3846. # and are intended to be withdrawn in a future Autoconf release.
  3847. # They can cause serious problems if a builder's source tree is in a directory
  3848. # whose full name contains unusual characters.
  3849. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3850. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3851. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3852. # Make sure we can run config.sub.
  3853. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3854. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3856. $as_echo_n "checking build system type... " >&6; }
  3857. if test "${ac_cv_build+set}" = set; then :
  3858. $as_echo_n "(cached) " >&6
  3859. else
  3860. ac_build_alias=$build_alias
  3861. test "x$ac_build_alias" = x &&
  3862. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3863. test "x$ac_build_alias" = x &&
  3864. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3865. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3866. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3867. fi
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3869. $as_echo "$ac_cv_build" >&6; }
  3870. case $ac_cv_build in
  3871. *-*-*) ;;
  3872. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3873. esac
  3874. build=$ac_cv_build
  3875. ac_save_IFS=$IFS; IFS='-'
  3876. set x $ac_cv_build
  3877. shift
  3878. build_cpu=$1
  3879. build_vendor=$2
  3880. shift; shift
  3881. # Remember, the first character of IFS is used to create $*,
  3882. # except with old shells:
  3883. build_os=$*
  3884. IFS=$ac_save_IFS
  3885. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3887. $as_echo_n "checking host system type... " >&6; }
  3888. if test "${ac_cv_host+set}" = set; then :
  3889. $as_echo_n "(cached) " >&6
  3890. else
  3891. if test "x$host_alias" = x; then
  3892. ac_cv_host=$ac_cv_build
  3893. else
  3894. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3895. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3896. fi
  3897. fi
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3899. $as_echo "$ac_cv_host" >&6; }
  3900. case $ac_cv_host in
  3901. *-*-*) ;;
  3902. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3903. esac
  3904. host=$ac_cv_host
  3905. ac_save_IFS=$IFS; IFS='-'
  3906. set x $ac_cv_host
  3907. shift
  3908. host_cpu=$1
  3909. host_vendor=$2
  3910. shift; shift
  3911. # Remember, the first character of IFS is used to create $*,
  3912. # except with old shells:
  3913. host_os=$*
  3914. IFS=$ac_save_IFS
  3915. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3917. $as_echo_n "checking target system type... " >&6; }
  3918. if test "${ac_cv_target+set}" = set; then :
  3919. $as_echo_n "(cached) " >&6
  3920. else
  3921. if test "x$target_alias" = x; then
  3922. ac_cv_target=$ac_cv_host
  3923. else
  3924. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3925. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3926. fi
  3927. fi
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3929. $as_echo "$ac_cv_target" >&6; }
  3930. case $ac_cv_target in
  3931. *-*-*) ;;
  3932. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  3933. esac
  3934. target=$ac_cv_target
  3935. ac_save_IFS=$IFS; IFS='-'
  3936. set x $ac_cv_target
  3937. shift
  3938. target_cpu=$1
  3939. target_vendor=$2
  3940. shift; shift
  3941. # Remember, the first character of IFS is used to create $*,
  3942. # except with old shells:
  3943. target_os=$*
  3944. IFS=$ac_save_IFS
  3945. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3946. # The aliases save the names the user supplied, while $host etc.
  3947. # will get canonicalized.
  3948. test -n "$target_alias" &&
  3949. test "$program_prefix$program_suffix$program_transform_name" = \
  3950. NONENONEs,x,x, &&
  3951. program_prefix=${target_alias}-
  3952. ac_ext=c
  3953. ac_cpp='$CPP $CPPFLAGS'
  3954. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3955. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3956. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3958. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3959. # On Suns, sometimes $CPP names a directory.
  3960. if test -n "$CPP" && test -d "$CPP"; then
  3961. CPP=
  3962. fi
  3963. if test -z "$CPP"; then
  3964. if test "${ac_cv_prog_CPP+set}" = set; then :
  3965. $as_echo_n "(cached) " >&6
  3966. else
  3967. # Double quotes because CPP needs to be expanded
  3968. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3969. do
  3970. ac_preproc_ok=false
  3971. for ac_c_preproc_warn_flag in '' yes
  3972. do
  3973. # Use a header file that comes with gcc, so configuring glibc
  3974. # with a fresh cross-compiler works.
  3975. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3976. # <limits.h> exists even on freestanding compilers.
  3977. # On the NeXT, cc -E runs the code through the compiler's parser,
  3978. # not just through cpp. "Syntax error" is here to catch this case.
  3979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3980. /* end confdefs.h. */
  3981. #ifdef __STDC__
  3982. # include <limits.h>
  3983. #else
  3984. # include <assert.h>
  3985. #endif
  3986. Syntax error
  3987. _ACEOF
  3988. if ac_fn_c_try_cpp "$LINENO"; then :
  3989. else
  3990. # Broken: fails on valid input.
  3991. continue
  3992. fi
  3993. rm -f conftest.err conftest.$ac_ext
  3994. # OK, works on sane cases. Now check whether nonexistent headers
  3995. # can be detected and how.
  3996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3997. /* end confdefs.h. */
  3998. #include <ac_nonexistent.h>
  3999. _ACEOF
  4000. if ac_fn_c_try_cpp "$LINENO"; then :
  4001. # Broken: success on invalid input.
  4002. continue
  4003. else
  4004. # Passes both tests.
  4005. ac_preproc_ok=:
  4006. break
  4007. fi
  4008. rm -f conftest.err conftest.$ac_ext
  4009. done
  4010. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4011. rm -f conftest.err conftest.$ac_ext
  4012. if $ac_preproc_ok; then :
  4013. break
  4014. fi
  4015. done
  4016. ac_cv_prog_CPP=$CPP
  4017. fi
  4018. CPP=$ac_cv_prog_CPP
  4019. else
  4020. ac_cv_prog_CPP=$CPP
  4021. fi
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4023. $as_echo "$CPP" >&6; }
  4024. ac_preproc_ok=false
  4025. for ac_c_preproc_warn_flag in '' yes
  4026. do
  4027. # Use a header file that comes with gcc, so configuring glibc
  4028. # with a fresh cross-compiler works.
  4029. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4030. # <limits.h> exists even on freestanding compilers.
  4031. # On the NeXT, cc -E runs the code through the compiler's parser,
  4032. # not just through cpp. "Syntax error" is here to catch this case.
  4033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4034. /* end confdefs.h. */
  4035. #ifdef __STDC__
  4036. # include <limits.h>
  4037. #else
  4038. # include <assert.h>
  4039. #endif
  4040. Syntax error
  4041. _ACEOF
  4042. if ac_fn_c_try_cpp "$LINENO"; then :
  4043. else
  4044. # Broken: fails on valid input.
  4045. continue
  4046. fi
  4047. rm -f conftest.err conftest.$ac_ext
  4048. # OK, works on sane cases. Now check whether nonexistent headers
  4049. # can be detected and how.
  4050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4051. /* end confdefs.h. */
  4052. #include <ac_nonexistent.h>
  4053. _ACEOF
  4054. if ac_fn_c_try_cpp "$LINENO"; then :
  4055. # Broken: success on invalid input.
  4056. continue
  4057. else
  4058. # Passes both tests.
  4059. ac_preproc_ok=:
  4060. break
  4061. fi
  4062. rm -f conftest.err conftest.$ac_ext
  4063. done
  4064. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4065. rm -f conftest.err conftest.$ac_ext
  4066. if $ac_preproc_ok; then :
  4067. else
  4068. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4070. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4071. See \`config.log' for more details." "$LINENO" 5; }
  4072. fi
  4073. ac_ext=c
  4074. ac_cpp='$CPP $CPPFLAGS'
  4075. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4076. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4077. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4079. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4080. if test "${ac_cv_path_GREP+set}" = set; then :
  4081. $as_echo_n "(cached) " >&6
  4082. else
  4083. if test -z "$GREP"; then
  4084. ac_path_GREP_found=false
  4085. # Loop through the user's path and test for each of PROGNAME-LIST
  4086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4087. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4088. do
  4089. IFS=$as_save_IFS
  4090. test -z "$as_dir" && as_dir=.
  4091. for ac_prog in grep ggrep; do
  4092. for ac_exec_ext in '' $ac_executable_extensions; do
  4093. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4094. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4095. # Check for GNU ac_path_GREP and select it if it is found.
  4096. # Check for GNU $ac_path_GREP
  4097. case `"$ac_path_GREP" --version 2>&1` in
  4098. *GNU*)
  4099. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4100. *)
  4101. ac_count=0
  4102. $as_echo_n 0123456789 >"conftest.in"
  4103. while :
  4104. do
  4105. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4106. mv "conftest.tmp" "conftest.in"
  4107. cp "conftest.in" "conftest.nl"
  4108. $as_echo 'GREP' >> "conftest.nl"
  4109. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4110. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4111. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4112. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4113. # Best one so far, save it but keep looking for a better one
  4114. ac_cv_path_GREP="$ac_path_GREP"
  4115. ac_path_GREP_max=$ac_count
  4116. fi
  4117. # 10*(2^10) chars as input seems more than enough
  4118. test $ac_count -gt 10 && break
  4119. done
  4120. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4121. esac
  4122. $ac_path_GREP_found && break 3
  4123. done
  4124. done
  4125. done
  4126. IFS=$as_save_IFS
  4127. if test -z "$ac_cv_path_GREP"; then
  4128. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4129. fi
  4130. else
  4131. ac_cv_path_GREP=$GREP
  4132. fi
  4133. fi
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4135. $as_echo "$ac_cv_path_GREP" >&6; }
  4136. GREP="$ac_cv_path_GREP"
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4138. $as_echo_n "checking for egrep... " >&6; }
  4139. if test "${ac_cv_path_EGREP+set}" = set; then :
  4140. $as_echo_n "(cached) " >&6
  4141. else
  4142. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4143. then ac_cv_path_EGREP="$GREP -E"
  4144. else
  4145. if test -z "$EGREP"; then
  4146. ac_path_EGREP_found=false
  4147. # Loop through the user's path and test for each of PROGNAME-LIST
  4148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4149. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4150. do
  4151. IFS=$as_save_IFS
  4152. test -z "$as_dir" && as_dir=.
  4153. for ac_prog in egrep; do
  4154. for ac_exec_ext in '' $ac_executable_extensions; do
  4155. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4156. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4157. # Check for GNU ac_path_EGREP and select it if it is found.
  4158. # Check for GNU $ac_path_EGREP
  4159. case `"$ac_path_EGREP" --version 2>&1` in
  4160. *GNU*)
  4161. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4162. *)
  4163. ac_count=0
  4164. $as_echo_n 0123456789 >"conftest.in"
  4165. while :
  4166. do
  4167. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4168. mv "conftest.tmp" "conftest.in"
  4169. cp "conftest.in" "conftest.nl"
  4170. $as_echo 'EGREP' >> "conftest.nl"
  4171. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4172. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4173. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4174. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4175. # Best one so far, save it but keep looking for a better one
  4176. ac_cv_path_EGREP="$ac_path_EGREP"
  4177. ac_path_EGREP_max=$ac_count
  4178. fi
  4179. # 10*(2^10) chars as input seems more than enough
  4180. test $ac_count -gt 10 && break
  4181. done
  4182. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4183. esac
  4184. $ac_path_EGREP_found && break 3
  4185. done
  4186. done
  4187. done
  4188. IFS=$as_save_IFS
  4189. if test -z "$ac_cv_path_EGREP"; then
  4190. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4191. fi
  4192. else
  4193. ac_cv_path_EGREP=$EGREP
  4194. fi
  4195. fi
  4196. fi
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4198. $as_echo "$ac_cv_path_EGREP" >&6; }
  4199. EGREP="$ac_cv_path_EGREP"
  4200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4201. $as_echo_n "checking for ANSI C header files... " >&6; }
  4202. if test "${ac_cv_header_stdc+set}" = set; then :
  4203. $as_echo_n "(cached) " >&6
  4204. else
  4205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4206. /* end confdefs.h. */
  4207. #include <stdlib.h>
  4208. #include <stdarg.h>
  4209. #include <string.h>
  4210. #include <float.h>
  4211. int
  4212. main ()
  4213. {
  4214. ;
  4215. return 0;
  4216. }
  4217. _ACEOF
  4218. if ac_fn_c_try_compile "$LINENO"; then :
  4219. ac_cv_header_stdc=yes
  4220. else
  4221. ac_cv_header_stdc=no
  4222. fi
  4223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4224. if test $ac_cv_header_stdc = yes; then
  4225. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4227. /* end confdefs.h. */
  4228. #include <string.h>
  4229. _ACEOF
  4230. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4231. $EGREP "memchr" >/dev/null 2>&1; then :
  4232. else
  4233. ac_cv_header_stdc=no
  4234. fi
  4235. rm -f conftest*
  4236. fi
  4237. if test $ac_cv_header_stdc = yes; then
  4238. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4240. /* end confdefs.h. */
  4241. #include <stdlib.h>
  4242. _ACEOF
  4243. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4244. $EGREP "free" >/dev/null 2>&1; then :
  4245. else
  4246. ac_cv_header_stdc=no
  4247. fi
  4248. rm -f conftest*
  4249. fi
  4250. if test $ac_cv_header_stdc = yes; then
  4251. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4252. if test "$cross_compiling" = yes; then :
  4253. :
  4254. else
  4255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4256. /* end confdefs.h. */
  4257. #include <ctype.h>
  4258. #include <stdlib.h>
  4259. #if ((' ' & 0x0FF) == 0x020)
  4260. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4261. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4262. #else
  4263. # define ISLOWER(c) \
  4264. (('a' <= (c) && (c) <= 'i') \
  4265. || ('j' <= (c) && (c) <= 'r') \
  4266. || ('s' <= (c) && (c) <= 'z'))
  4267. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4268. #endif
  4269. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4270. int
  4271. main ()
  4272. {
  4273. int i;
  4274. for (i = 0; i < 256; i++)
  4275. if (XOR (islower (i), ISLOWER (i))
  4276. || toupper (i) != TOUPPER (i))
  4277. return 2;
  4278. return 0;
  4279. }
  4280. _ACEOF
  4281. if ac_fn_c_try_run "$LINENO"; then :
  4282. else
  4283. ac_cv_header_stdc=no
  4284. fi
  4285. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4286. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4287. fi
  4288. fi
  4289. fi
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4291. $as_echo "$ac_cv_header_stdc" >&6; }
  4292. if test $ac_cv_header_stdc = yes; then
  4293. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4294. fi
  4295. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4296. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4297. inttypes.h stdint.h unistd.h
  4298. do :
  4299. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4300. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4301. "
  4302. eval as_val=\$$as_ac_Header
  4303. if test "x$as_val" = x""yes; then :
  4304. cat >>confdefs.h <<_ACEOF
  4305. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4306. _ACEOF
  4307. fi
  4308. done
  4309. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4310. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4311. MINIX=yes
  4312. else
  4313. MINIX=
  4314. fi
  4315. if test "$MINIX" = yes; then
  4316. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4317. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4318. $as_echo "#define _MINIX 1" >>confdefs.h
  4319. fi
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4321. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4322. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4323. $as_echo_n "(cached) " >&6
  4324. else
  4325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4326. /* end confdefs.h. */
  4327. # define __EXTENSIONS__ 1
  4328. $ac_includes_default
  4329. int
  4330. main ()
  4331. {
  4332. ;
  4333. return 0;
  4334. }
  4335. _ACEOF
  4336. if ac_fn_c_try_compile "$LINENO"; then :
  4337. ac_cv_safe_to_define___extensions__=yes
  4338. else
  4339. ac_cv_safe_to_define___extensions__=no
  4340. fi
  4341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4342. fi
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4344. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4345. test $ac_cv_safe_to_define___extensions__ = yes &&
  4346. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4347. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4348. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4349. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4350. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4351. test "$program_prefix" != NONE &&
  4352. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4353. # Use a double $ so make ignores it.
  4354. test "$program_suffix" != NONE &&
  4355. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4356. # Double any \ or $.
  4357. # By default was `s,x,x', remove it if useless.
  4358. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4359. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4360. # Find a good install program. We prefer a C program (faster),
  4361. # so one script is as good as another. But avoid the broken or
  4362. # incompatible versions:
  4363. # SysV /etc/install, /usr/sbin/install
  4364. # SunOS /usr/etc/install
  4365. # IRIX /sbin/install
  4366. # AIX /bin/install
  4367. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4368. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4369. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4370. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4371. # OS/2's system install, which has a completely different semantic
  4372. # ./install, which can be erroneously created by make from ./install.sh.
  4373. # Reject install programs that cannot install multiple files.
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4375. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4376. if test -z "$INSTALL"; then
  4377. if test "${ac_cv_path_install+set}" = set; then :
  4378. $as_echo_n "(cached) " >&6
  4379. else
  4380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4381. for as_dir in $PATH
  4382. do
  4383. IFS=$as_save_IFS
  4384. test -z "$as_dir" && as_dir=.
  4385. # Account for people who put trailing slashes in PATH elements.
  4386. case $as_dir/ in #((
  4387. ./ | .// | /[cC]/* | \
  4388. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4389. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4390. /usr/ucb/* ) ;;
  4391. *)
  4392. # OSF1 and SCO ODT 3.0 have their own names for install.
  4393. # Don't use installbsd from OSF since it installs stuff as root
  4394. # by default.
  4395. for ac_prog in ginstall scoinst install; do
  4396. for ac_exec_ext in '' $ac_executable_extensions; do
  4397. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4398. if test $ac_prog = install &&
  4399. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4400. # AIX install. It has an incompatible calling convention.
  4401. :
  4402. elif test $ac_prog = install &&
  4403. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4404. # program-specific install script used by HP pwplus--don't use.
  4405. :
  4406. else
  4407. rm -rf conftest.one conftest.two conftest.dir
  4408. echo one > conftest.one
  4409. echo two > conftest.two
  4410. mkdir conftest.dir
  4411. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4412. test -s conftest.one && test -s conftest.two &&
  4413. test -s conftest.dir/conftest.one &&
  4414. test -s conftest.dir/conftest.two
  4415. then
  4416. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4417. break 3
  4418. fi
  4419. fi
  4420. fi
  4421. done
  4422. done
  4423. ;;
  4424. esac
  4425. done
  4426. IFS=$as_save_IFS
  4427. rm -rf conftest.one conftest.two conftest.dir
  4428. fi
  4429. if test "${ac_cv_path_install+set}" = set; then
  4430. INSTALL=$ac_cv_path_install
  4431. else
  4432. # As a last resort, use the slow shell script. Don't cache a
  4433. # value for INSTALL within a source directory, because that will
  4434. # break other packages using the cache if that directory is
  4435. # removed, or if the value is a relative name.
  4436. INSTALL=$ac_install_sh
  4437. fi
  4438. fi
  4439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4440. $as_echo "$INSTALL" >&6; }
  4441. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4442. # It thinks the first close brace ends the variable substitution.
  4443. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4444. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4445. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4446. rm -rf .tst 2>/dev/null
  4447. mkdir .tst 2>/dev/null
  4448. if test -d .tst; then
  4449. am__leading_dot=.
  4450. else
  4451. am__leading_dot=_
  4452. fi
  4453. rmdir .tst 2>/dev/null
  4454. DEPDIR="${am__leading_dot}deps"
  4455. case `pwd` in
  4456. *\ * | *\ *)
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4458. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4459. esac
  4460. macro_version='2.2.7a'
  4461. macro_revision='1.3134'
  4462. ltmain="$ac_aux_dir/ltmain.sh"
  4463. # Backslashify metacharacters that are still active within
  4464. # double-quoted strings.
  4465. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4466. # Same as above, but do not quote variable references.
  4467. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4468. # Sed substitution to delay expansion of an escaped shell variable in a
  4469. # double_quote_subst'ed string.
  4470. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4471. # Sed substitution to delay expansion of an escaped single quote.
  4472. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4473. # Sed substitution to avoid accidental globbing in evaled expressions
  4474. no_glob_subst='s/\*/\\\*/g'
  4475. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4476. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4477. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4479. $as_echo_n "checking how to print strings... " >&6; }
  4480. # Test print first, because it will be a builtin if present.
  4481. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4482. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4483. ECHO='print -r --'
  4484. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4485. ECHO='printf %s\n'
  4486. else
  4487. # Use this function as a fallback that always works.
  4488. func_fallback_echo ()
  4489. {
  4490. eval 'cat <<_LTECHO_EOF
  4491. $1
  4492. _LTECHO_EOF'
  4493. }
  4494. ECHO='func_fallback_echo'
  4495. fi
  4496. # func_echo_all arg...
  4497. # Invoke $ECHO with all args, space-separated.
  4498. func_echo_all ()
  4499. {
  4500. $ECHO ""
  4501. }
  4502. case "$ECHO" in
  4503. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4504. $as_echo "printf" >&6; } ;;
  4505. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4506. $as_echo "print -r" >&6; } ;;
  4507. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4508. $as_echo "cat" >&6; } ;;
  4509. esac
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4511. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4512. if test "${ac_cv_path_SED+set}" = set; then :
  4513. $as_echo_n "(cached) " >&6
  4514. else
  4515. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4516. for ac_i in 1 2 3 4 5 6 7; do
  4517. ac_script="$ac_script$as_nl$ac_script"
  4518. done
  4519. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4520. { ac_script=; unset ac_script;}
  4521. if test -z "$SED"; then
  4522. ac_path_SED_found=false
  4523. # Loop through the user's path and test for each of PROGNAME-LIST
  4524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4525. for as_dir in $PATH
  4526. do
  4527. IFS=$as_save_IFS
  4528. test -z "$as_dir" && as_dir=.
  4529. for ac_prog in sed gsed; do
  4530. for ac_exec_ext in '' $ac_executable_extensions; do
  4531. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4532. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4533. # Check for GNU ac_path_SED and select it if it is found.
  4534. # Check for GNU $ac_path_SED
  4535. case `"$ac_path_SED" --version 2>&1` in
  4536. *GNU*)
  4537. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4538. *)
  4539. ac_count=0
  4540. $as_echo_n 0123456789 >"conftest.in"
  4541. while :
  4542. do
  4543. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4544. mv "conftest.tmp" "conftest.in"
  4545. cp "conftest.in" "conftest.nl"
  4546. $as_echo '' >> "conftest.nl"
  4547. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4548. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4549. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4550. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4551. # Best one so far, save it but keep looking for a better one
  4552. ac_cv_path_SED="$ac_path_SED"
  4553. ac_path_SED_max=$ac_count
  4554. fi
  4555. # 10*(2^10) chars as input seems more than enough
  4556. test $ac_count -gt 10 && break
  4557. done
  4558. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4559. esac
  4560. $ac_path_SED_found && break 3
  4561. done
  4562. done
  4563. done
  4564. IFS=$as_save_IFS
  4565. if test -z "$ac_cv_path_SED"; then
  4566. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4567. fi
  4568. else
  4569. ac_cv_path_SED=$SED
  4570. fi
  4571. fi
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4573. $as_echo "$ac_cv_path_SED" >&6; }
  4574. SED="$ac_cv_path_SED"
  4575. rm -f conftest.sed
  4576. test -z "$SED" && SED=sed
  4577. Xsed="$SED -e 1s/^X//"
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4579. $as_echo_n "checking for fgrep... " >&6; }
  4580. if test "${ac_cv_path_FGREP+set}" = set; then :
  4581. $as_echo_n "(cached) " >&6
  4582. else
  4583. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4584. then ac_cv_path_FGREP="$GREP -F"
  4585. else
  4586. if test -z "$FGREP"; then
  4587. ac_path_FGREP_found=false
  4588. # Loop through the user's path and test for each of PROGNAME-LIST
  4589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4590. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4591. do
  4592. IFS=$as_save_IFS
  4593. test -z "$as_dir" && as_dir=.
  4594. for ac_prog in fgrep; do
  4595. for ac_exec_ext in '' $ac_executable_extensions; do
  4596. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4597. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4598. # Check for GNU ac_path_FGREP and select it if it is found.
  4599. # Check for GNU $ac_path_FGREP
  4600. case `"$ac_path_FGREP" --version 2>&1` in
  4601. *GNU*)
  4602. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4603. *)
  4604. ac_count=0
  4605. $as_echo_n 0123456789 >"conftest.in"
  4606. while :
  4607. do
  4608. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4609. mv "conftest.tmp" "conftest.in"
  4610. cp "conftest.in" "conftest.nl"
  4611. $as_echo 'FGREP' >> "conftest.nl"
  4612. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4613. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4614. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4615. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4616. # Best one so far, save it but keep looking for a better one
  4617. ac_cv_path_FGREP="$ac_path_FGREP"
  4618. ac_path_FGREP_max=$ac_count
  4619. fi
  4620. # 10*(2^10) chars as input seems more than enough
  4621. test $ac_count -gt 10 && break
  4622. done
  4623. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4624. esac
  4625. $ac_path_FGREP_found && break 3
  4626. done
  4627. done
  4628. done
  4629. IFS=$as_save_IFS
  4630. if test -z "$ac_cv_path_FGREP"; then
  4631. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4632. fi
  4633. else
  4634. ac_cv_path_FGREP=$FGREP
  4635. fi
  4636. fi
  4637. fi
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4639. $as_echo "$ac_cv_path_FGREP" >&6; }
  4640. FGREP="$ac_cv_path_FGREP"
  4641. test -z "$GREP" && GREP=grep
  4642. # Check whether --with-gnu-ld was given.
  4643. if test "${with_gnu_ld+set}" = set; then :
  4644. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4645. else
  4646. with_gnu_ld=no
  4647. fi
  4648. ac_prog=ld
  4649. if test "$GCC" = yes; then
  4650. # Check if gcc -print-prog-name=ld gives a path.
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4652. $as_echo_n "checking for ld used by $CC... " >&6; }
  4653. case $host in
  4654. *-*-mingw*)
  4655. # gcc leaves a trailing carriage return which upsets mingw
  4656. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4657. *)
  4658. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4659. esac
  4660. case $ac_prog in
  4661. # Accept absolute paths.
  4662. [\\/]* | ?:[\\/]*)
  4663. re_direlt='/[^/][^/]*/\.\./'
  4664. # Canonicalize the pathname of ld
  4665. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4666. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4667. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4668. done
  4669. test -z "$LD" && LD="$ac_prog"
  4670. ;;
  4671. "")
  4672. # If it fails, then pretend we aren't using GCC.
  4673. ac_prog=ld
  4674. ;;
  4675. *)
  4676. # If it is relative, then search for the first ld in PATH.
  4677. with_gnu_ld=unknown
  4678. ;;
  4679. esac
  4680. elif test "$with_gnu_ld" = yes; then
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4682. $as_echo_n "checking for GNU ld... " >&6; }
  4683. else
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4685. $as_echo_n "checking for non-GNU ld... " >&6; }
  4686. fi
  4687. if test "${lt_cv_path_LD+set}" = set; then :
  4688. $as_echo_n "(cached) " >&6
  4689. else
  4690. if test -z "$LD"; then
  4691. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4692. for ac_dir in $PATH; do
  4693. IFS="$lt_save_ifs"
  4694. test -z "$ac_dir" && ac_dir=.
  4695. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4696. lt_cv_path_LD="$ac_dir/$ac_prog"
  4697. # Check to see if the program is GNU ld. I'd rather use --version,
  4698. # but apparently some variants of GNU ld only accept -v.
  4699. # Break only if it was the GNU/non-GNU ld that we prefer.
  4700. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4701. *GNU* | *'with BFD'*)
  4702. test "$with_gnu_ld" != no && break
  4703. ;;
  4704. *)
  4705. test "$with_gnu_ld" != yes && break
  4706. ;;
  4707. esac
  4708. fi
  4709. done
  4710. IFS="$lt_save_ifs"
  4711. else
  4712. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4713. fi
  4714. fi
  4715. LD="$lt_cv_path_LD"
  4716. if test -n "$LD"; then
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4718. $as_echo "$LD" >&6; }
  4719. else
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4721. $as_echo "no" >&6; }
  4722. fi
  4723. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4725. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4726. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4727. $as_echo_n "(cached) " >&6
  4728. else
  4729. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4730. case `$LD -v 2>&1 </dev/null` in
  4731. *GNU* | *'with BFD'*)
  4732. lt_cv_prog_gnu_ld=yes
  4733. ;;
  4734. *)
  4735. lt_cv_prog_gnu_ld=no
  4736. ;;
  4737. esac
  4738. fi
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4740. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4741. with_gnu_ld=$lt_cv_prog_gnu_ld
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4743. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4744. if test "${lt_cv_path_NM+set}" = set; then :
  4745. $as_echo_n "(cached) " >&6
  4746. else
  4747. if test -n "$NM"; then
  4748. # Let the user override the test.
  4749. lt_cv_path_NM="$NM"
  4750. else
  4751. lt_nm_to_check="${ac_tool_prefix}nm"
  4752. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4753. lt_nm_to_check="$lt_nm_to_check nm"
  4754. fi
  4755. for lt_tmp_nm in $lt_nm_to_check; do
  4756. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4757. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4758. IFS="$lt_save_ifs"
  4759. test -z "$ac_dir" && ac_dir=.
  4760. tmp_nm="$ac_dir/$lt_tmp_nm"
  4761. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4762. # Check to see if the nm accepts a BSD-compat flag.
  4763. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4764. # nm: unknown option "B" ignored
  4765. # Tru64's nm complains that /dev/null is an invalid object file
  4766. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4767. */dev/null* | *'Invalid file or object type'*)
  4768. lt_cv_path_NM="$tmp_nm -B"
  4769. break
  4770. ;;
  4771. *)
  4772. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4773. */dev/null*)
  4774. lt_cv_path_NM="$tmp_nm -p"
  4775. break
  4776. ;;
  4777. *)
  4778. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4779. continue # so that we can try to find one that supports BSD flags
  4780. ;;
  4781. esac
  4782. ;;
  4783. esac
  4784. fi
  4785. done
  4786. IFS="$lt_save_ifs"
  4787. done
  4788. : ${lt_cv_path_NM=no}
  4789. fi
  4790. fi
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4792. $as_echo "$lt_cv_path_NM" >&6; }
  4793. if test "$lt_cv_path_NM" != "no"; then
  4794. NM="$lt_cv_path_NM"
  4795. else
  4796. # Didn't find any BSD compatible name lister, look for dumpbin.
  4797. if test -n "$DUMPBIN"; then :
  4798. # Let the user override the test.
  4799. else
  4800. if test -n "$ac_tool_prefix"; then
  4801. for ac_prog in dumpbin "link -dump"
  4802. do
  4803. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4804. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4806. $as_echo_n "checking for $ac_word... " >&6; }
  4807. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4808. $as_echo_n "(cached) " >&6
  4809. else
  4810. if test -n "$DUMPBIN"; then
  4811. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4812. else
  4813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4814. for as_dir in $PATH
  4815. do
  4816. IFS=$as_save_IFS
  4817. test -z "$as_dir" && as_dir=.
  4818. for ac_exec_ext in '' $ac_executable_extensions; do
  4819. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4820. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4821. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4822. break 2
  4823. fi
  4824. done
  4825. done
  4826. IFS=$as_save_IFS
  4827. fi
  4828. fi
  4829. DUMPBIN=$ac_cv_prog_DUMPBIN
  4830. if test -n "$DUMPBIN"; then
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4832. $as_echo "$DUMPBIN" >&6; }
  4833. else
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4835. $as_echo "no" >&6; }
  4836. fi
  4837. test -n "$DUMPBIN" && break
  4838. done
  4839. fi
  4840. if test -z "$DUMPBIN"; then
  4841. ac_ct_DUMPBIN=$DUMPBIN
  4842. for ac_prog in dumpbin "link -dump"
  4843. do
  4844. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4845. set dummy $ac_prog; ac_word=$2
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4847. $as_echo_n "checking for $ac_word... " >&6; }
  4848. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4849. $as_echo_n "(cached) " >&6
  4850. else
  4851. if test -n "$ac_ct_DUMPBIN"; then
  4852. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4853. else
  4854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4855. for as_dir in $PATH
  4856. do
  4857. IFS=$as_save_IFS
  4858. test -z "$as_dir" && as_dir=.
  4859. for ac_exec_ext in '' $ac_executable_extensions; do
  4860. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4861. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4863. break 2
  4864. fi
  4865. done
  4866. done
  4867. IFS=$as_save_IFS
  4868. fi
  4869. fi
  4870. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4871. if test -n "$ac_ct_DUMPBIN"; then
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4873. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4874. else
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4876. $as_echo "no" >&6; }
  4877. fi
  4878. test -n "$ac_ct_DUMPBIN" && break
  4879. done
  4880. if test "x$ac_ct_DUMPBIN" = x; then
  4881. DUMPBIN=":"
  4882. else
  4883. case $cross_compiling:$ac_tool_warned in
  4884. yes:)
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4886. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4887. ac_tool_warned=yes ;;
  4888. esac
  4889. DUMPBIN=$ac_ct_DUMPBIN
  4890. fi
  4891. fi
  4892. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4893. *COFF*)
  4894. DUMPBIN="$DUMPBIN -symbols"
  4895. ;;
  4896. *)
  4897. DUMPBIN=:
  4898. ;;
  4899. esac
  4900. fi
  4901. if test "$DUMPBIN" != ":"; then
  4902. NM="$DUMPBIN"
  4903. fi
  4904. fi
  4905. test -z "$NM" && NM=nm
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4907. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4908. if test "${lt_cv_nm_interface+set}" = set; then :
  4909. $as_echo_n "(cached) " >&6
  4910. else
  4911. lt_cv_nm_interface="BSD nm"
  4912. echo "int some_variable = 0;" > conftest.$ac_ext
  4913. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4914. (eval "$ac_compile" 2>conftest.err)
  4915. cat conftest.err >&5
  4916. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4917. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4918. cat conftest.err >&5
  4919. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4920. cat conftest.out >&5
  4921. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4922. lt_cv_nm_interface="MS dumpbin"
  4923. fi
  4924. rm -f conftest*
  4925. fi
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4927. $as_echo "$lt_cv_nm_interface" >&6; }
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4929. $as_echo_n "checking whether ln -s works... " >&6; }
  4930. LN_S=$as_ln_s
  4931. if test "$LN_S" = "ln -s"; then
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4933. $as_echo "yes" >&6; }
  4934. else
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4936. $as_echo "no, using $LN_S" >&6; }
  4937. fi
  4938. # find the maximum length of command line arguments
  4939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4940. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4941. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4942. $as_echo_n "(cached) " >&6
  4943. else
  4944. i=0
  4945. teststring="ABCD"
  4946. case $build_os in
  4947. msdosdjgpp*)
  4948. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4949. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4950. # during glob expansion). Even if it were fixed, the result of this
  4951. # check would be larger than it should be.
  4952. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4953. ;;
  4954. gnu*)
  4955. # Under GNU Hurd, this test is not required because there is
  4956. # no limit to the length of command line arguments.
  4957. # Libtool will interpret -1 as no limit whatsoever
  4958. lt_cv_sys_max_cmd_len=-1;
  4959. ;;
  4960. cygwin* | mingw* | cegcc*)
  4961. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4962. # about 5 minutes as the teststring grows exponentially.
  4963. # Worse, since 9x/ME are not pre-emptively multitasking,
  4964. # you end up with a "frozen" computer, even though with patience
  4965. # the test eventually succeeds (with a max line length of 256k).
  4966. # Instead, let's just punt: use the minimum linelength reported by
  4967. # all of the supported platforms: 8192 (on NT/2K/XP).
  4968. lt_cv_sys_max_cmd_len=8192;
  4969. ;;
  4970. mint*)
  4971. # On MiNT this can take a long time and run out of memory.
  4972. lt_cv_sys_max_cmd_len=8192;
  4973. ;;
  4974. amigaos*)
  4975. # On AmigaOS with pdksh, this test takes hours, literally.
  4976. # So we just punt and use a minimum line length of 8192.
  4977. lt_cv_sys_max_cmd_len=8192;
  4978. ;;
  4979. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4980. # This has been around since 386BSD, at least. Likely further.
  4981. if test -x /sbin/sysctl; then
  4982. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4983. elif test -x /usr/sbin/sysctl; then
  4984. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4985. else
  4986. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4987. fi
  4988. # And add a safety zone
  4989. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4990. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4991. ;;
  4992. interix*)
  4993. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4994. lt_cv_sys_max_cmd_len=196608
  4995. ;;
  4996. osf*)
  4997. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4998. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4999. # nice to cause kernel panics so lets avoid the loop below.
  5000. # First set a reasonable default.
  5001. lt_cv_sys_max_cmd_len=16384
  5002. #
  5003. if test -x /sbin/sysconfig; then
  5004. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5005. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5006. esac
  5007. fi
  5008. ;;
  5009. sco3.2v5*)
  5010. lt_cv_sys_max_cmd_len=102400
  5011. ;;
  5012. sysv5* | sco5v6* | sysv4.2uw2*)
  5013. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5014. if test -n "$kargmax"; then
  5015. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5016. else
  5017. lt_cv_sys_max_cmd_len=32768
  5018. fi
  5019. ;;
  5020. *)
  5021. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5022. if test -n "$lt_cv_sys_max_cmd_len"; then
  5023. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5024. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5025. else
  5026. # Make teststring a little bigger before we do anything with it.
  5027. # a 1K string should be a reasonable start.
  5028. for i in 1 2 3 4 5 6 7 8 ; do
  5029. teststring=$teststring$teststring
  5030. done
  5031. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5032. # If test is not a shell built-in, we'll probably end up computing a
  5033. # maximum length that is only half of the actual maximum length, but
  5034. # we can't tell.
  5035. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5036. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5037. test $i != 17 # 1/2 MB should be enough
  5038. do
  5039. i=`expr $i + 1`
  5040. teststring=$teststring$teststring
  5041. done
  5042. # Only check the string length outside the loop.
  5043. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5044. teststring=
  5045. # Add a significant safety factor because C++ compilers can tack on
  5046. # massive amounts of additional arguments before passing them to the
  5047. # linker. It appears as though 1/2 is a usable value.
  5048. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5049. fi
  5050. ;;
  5051. esac
  5052. fi
  5053. if test -n $lt_cv_sys_max_cmd_len ; then
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5055. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5056. else
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5058. $as_echo "none" >&6; }
  5059. fi
  5060. max_cmd_len=$lt_cv_sys_max_cmd_len
  5061. : ${CP="cp -f"}
  5062. : ${MV="mv -f"}
  5063. : ${RM="rm -f"}
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5065. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5066. # Try some XSI features
  5067. xsi_shell=no
  5068. ( _lt_dummy="a/b/c"
  5069. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5070. = c,a/b,, \
  5071. && eval 'test $(( 1 + 1 )) -eq 2 \
  5072. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5073. && xsi_shell=yes
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5075. $as_echo "$xsi_shell" >&6; }
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5077. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5078. lt_shell_append=no
  5079. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5080. >/dev/null 2>&1 \
  5081. && lt_shell_append=yes
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5083. $as_echo "$lt_shell_append" >&6; }
  5084. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5085. lt_unset=unset
  5086. else
  5087. lt_unset=false
  5088. fi
  5089. # test EBCDIC or ASCII
  5090. case `echo X|tr X '\101'` in
  5091. A) # ASCII based system
  5092. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5093. lt_SP2NL='tr \040 \012'
  5094. lt_NL2SP='tr \015\012 \040\040'
  5095. ;;
  5096. *) # EBCDIC based system
  5097. lt_SP2NL='tr \100 \n'
  5098. lt_NL2SP='tr \r\n \100\100'
  5099. ;;
  5100. esac
  5101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5102. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5103. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5104. $as_echo_n "(cached) " >&6
  5105. else
  5106. lt_cv_ld_reload_flag='-r'
  5107. fi
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5109. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5110. reload_flag=$lt_cv_ld_reload_flag
  5111. case $reload_flag in
  5112. "" | " "*) ;;
  5113. *) reload_flag=" $reload_flag" ;;
  5114. esac
  5115. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5116. case $host_os in
  5117. darwin*)
  5118. if test "$GCC" = yes; then
  5119. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5120. else
  5121. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5122. fi
  5123. ;;
  5124. esac
  5125. if test -n "$ac_tool_prefix"; then
  5126. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5127. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5129. $as_echo_n "checking for $ac_word... " >&6; }
  5130. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5131. $as_echo_n "(cached) " >&6
  5132. else
  5133. if test -n "$OBJDUMP"; then
  5134. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5135. else
  5136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5137. for as_dir in $PATH
  5138. do
  5139. IFS=$as_save_IFS
  5140. test -z "$as_dir" && as_dir=.
  5141. for ac_exec_ext in '' $ac_executable_extensions; do
  5142. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5143. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5145. break 2
  5146. fi
  5147. done
  5148. done
  5149. IFS=$as_save_IFS
  5150. fi
  5151. fi
  5152. OBJDUMP=$ac_cv_prog_OBJDUMP
  5153. if test -n "$OBJDUMP"; then
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5155. $as_echo "$OBJDUMP" >&6; }
  5156. else
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5158. $as_echo "no" >&6; }
  5159. fi
  5160. fi
  5161. if test -z "$ac_cv_prog_OBJDUMP"; then
  5162. ac_ct_OBJDUMP=$OBJDUMP
  5163. # Extract the first word of "objdump", so it can be a program name with args.
  5164. set dummy objdump; ac_word=$2
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5166. $as_echo_n "checking for $ac_word... " >&6; }
  5167. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5168. $as_echo_n "(cached) " >&6
  5169. else
  5170. if test -n "$ac_ct_OBJDUMP"; then
  5171. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5172. else
  5173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5174. for as_dir in $PATH
  5175. do
  5176. IFS=$as_save_IFS
  5177. test -z "$as_dir" && as_dir=.
  5178. for ac_exec_ext in '' $ac_executable_extensions; do
  5179. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5180. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5182. break 2
  5183. fi
  5184. done
  5185. done
  5186. IFS=$as_save_IFS
  5187. fi
  5188. fi
  5189. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5190. if test -n "$ac_ct_OBJDUMP"; then
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5192. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5193. else
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5195. $as_echo "no" >&6; }
  5196. fi
  5197. if test "x$ac_ct_OBJDUMP" = x; then
  5198. OBJDUMP="false"
  5199. else
  5200. case $cross_compiling:$ac_tool_warned in
  5201. yes:)
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5203. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5204. ac_tool_warned=yes ;;
  5205. esac
  5206. OBJDUMP=$ac_ct_OBJDUMP
  5207. fi
  5208. else
  5209. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5210. fi
  5211. test -z "$OBJDUMP" && OBJDUMP=objdump
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5213. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5214. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5215. $as_echo_n "(cached) " >&6
  5216. else
  5217. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5218. lt_cv_file_magic_test_file=
  5219. lt_cv_deplibs_check_method='unknown'
  5220. # Need to set the preceding variable on all platforms that support
  5221. # interlibrary dependencies.
  5222. # 'none' -- dependencies not supported.
  5223. # `unknown' -- same as none, but documents that we really don't know.
  5224. # 'pass_all' -- all dependencies passed with no checks.
  5225. # 'test_compile' -- check by making test program.
  5226. # 'file_magic [[regex]]' -- check by looking for files in library path
  5227. # which responds to the $file_magic_cmd with a given extended regex.
  5228. # If you have `file' or equivalent on your system and you're not sure
  5229. # whether `pass_all' will *always* work, you probably want this one.
  5230. case $host_os in
  5231. aix[4-9]*)
  5232. lt_cv_deplibs_check_method=pass_all
  5233. ;;
  5234. beos*)
  5235. lt_cv_deplibs_check_method=pass_all
  5236. ;;
  5237. bsdi[45]*)
  5238. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5239. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5240. lt_cv_file_magic_test_file=/shlib/libc.so
  5241. ;;
  5242. cygwin*)
  5243. # func_win32_libid is a shell function defined in ltmain.sh
  5244. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5245. lt_cv_file_magic_cmd='func_win32_libid'
  5246. ;;
  5247. mingw* | pw32*)
  5248. # Base MSYS/MinGW do not provide the 'file' command needed by
  5249. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5250. # unless we find 'file', for example because we are cross-compiling.
  5251. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5252. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5253. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5254. lt_cv_file_magic_cmd='func_win32_libid'
  5255. else
  5256. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5257. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5258. fi
  5259. ;;
  5260. cegcc*)
  5261. # use the weaker test based on 'objdump'. See mingw*.
  5262. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5263. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5264. ;;
  5265. darwin* | rhapsody*)
  5266. lt_cv_deplibs_check_method=pass_all
  5267. ;;
  5268. freebsd* | dragonfly*)
  5269. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5270. case $host_cpu in
  5271. i*86 )
  5272. # Not sure whether the presence of OpenBSD here was a mistake.
  5273. # Let's accept both of them until this is cleared up.
  5274. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5275. lt_cv_file_magic_cmd=/usr/bin/file
  5276. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5277. ;;
  5278. esac
  5279. else
  5280. lt_cv_deplibs_check_method=pass_all
  5281. fi
  5282. ;;
  5283. gnu*)
  5284. lt_cv_deplibs_check_method=pass_all
  5285. ;;
  5286. haiku*)
  5287. lt_cv_deplibs_check_method=pass_all
  5288. ;;
  5289. hpux10.20* | hpux11*)
  5290. lt_cv_file_magic_cmd=/usr/bin/file
  5291. case $host_cpu in
  5292. ia64*)
  5293. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5294. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5295. ;;
  5296. hppa*64*)
  5297. 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]'
  5298. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5299. ;;
  5300. *)
  5301. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5302. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5303. ;;
  5304. esac
  5305. ;;
  5306. interix[3-9]*)
  5307. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5308. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5309. ;;
  5310. irix5* | irix6* | nonstopux*)
  5311. case $LD in
  5312. *-32|*"-32 ") libmagic=32-bit;;
  5313. *-n32|*"-n32 ") libmagic=N32;;
  5314. *-64|*"-64 ") libmagic=64-bit;;
  5315. *) libmagic=never-match;;
  5316. esac
  5317. lt_cv_deplibs_check_method=pass_all
  5318. ;;
  5319. # This must be Linux ELF.
  5320. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5321. lt_cv_deplibs_check_method=pass_all
  5322. ;;
  5323. netbsd*)
  5324. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5325. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5326. else
  5327. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5328. fi
  5329. ;;
  5330. newos6*)
  5331. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5332. lt_cv_file_magic_cmd=/usr/bin/file
  5333. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5334. ;;
  5335. *nto* | *qnx*)
  5336. lt_cv_deplibs_check_method=pass_all
  5337. ;;
  5338. openbsd*)
  5339. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5340. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5341. else
  5342. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5343. fi
  5344. ;;
  5345. osf3* | osf4* | osf5*)
  5346. lt_cv_deplibs_check_method=pass_all
  5347. ;;
  5348. rdos*)
  5349. lt_cv_deplibs_check_method=pass_all
  5350. ;;
  5351. solaris*)
  5352. lt_cv_deplibs_check_method=pass_all
  5353. ;;
  5354. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5355. lt_cv_deplibs_check_method=pass_all
  5356. ;;
  5357. sysv4 | sysv4.3*)
  5358. case $host_vendor in
  5359. motorola)
  5360. 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]'
  5361. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5362. ;;
  5363. ncr)
  5364. lt_cv_deplibs_check_method=pass_all
  5365. ;;
  5366. sequent)
  5367. lt_cv_file_magic_cmd='/bin/file'
  5368. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5369. ;;
  5370. sni)
  5371. lt_cv_file_magic_cmd='/bin/file'
  5372. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5373. lt_cv_file_magic_test_file=/lib/libc.so
  5374. ;;
  5375. siemens)
  5376. lt_cv_deplibs_check_method=pass_all
  5377. ;;
  5378. pc)
  5379. lt_cv_deplibs_check_method=pass_all
  5380. ;;
  5381. esac
  5382. ;;
  5383. tpf*)
  5384. lt_cv_deplibs_check_method=pass_all
  5385. ;;
  5386. esac
  5387. fi
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5389. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5390. file_magic_cmd=$lt_cv_file_magic_cmd
  5391. deplibs_check_method=$lt_cv_deplibs_check_method
  5392. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5393. if test -n "$ac_tool_prefix"; then
  5394. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5395. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5397. $as_echo_n "checking for $ac_word... " >&6; }
  5398. if test "${ac_cv_prog_AR+set}" = set; then :
  5399. $as_echo_n "(cached) " >&6
  5400. else
  5401. if test -n "$AR"; then
  5402. ac_cv_prog_AR="$AR" # Let the user override the test.
  5403. else
  5404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5405. for as_dir in $PATH
  5406. do
  5407. IFS=$as_save_IFS
  5408. test -z "$as_dir" && as_dir=.
  5409. for ac_exec_ext in '' $ac_executable_extensions; do
  5410. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5411. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5412. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5413. break 2
  5414. fi
  5415. done
  5416. done
  5417. IFS=$as_save_IFS
  5418. fi
  5419. fi
  5420. AR=$ac_cv_prog_AR
  5421. if test -n "$AR"; then
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5423. $as_echo "$AR" >&6; }
  5424. else
  5425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5426. $as_echo "no" >&6; }
  5427. fi
  5428. fi
  5429. if test -z "$ac_cv_prog_AR"; then
  5430. ac_ct_AR=$AR
  5431. # Extract the first word of "ar", so it can be a program name with args.
  5432. set dummy ar; ac_word=$2
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5434. $as_echo_n "checking for $ac_word... " >&6; }
  5435. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5436. $as_echo_n "(cached) " >&6
  5437. else
  5438. if test -n "$ac_ct_AR"; then
  5439. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5440. else
  5441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5442. for as_dir in $PATH
  5443. do
  5444. IFS=$as_save_IFS
  5445. test -z "$as_dir" && as_dir=.
  5446. for ac_exec_ext in '' $ac_executable_extensions; do
  5447. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5448. ac_cv_prog_ac_ct_AR="ar"
  5449. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5450. break 2
  5451. fi
  5452. done
  5453. done
  5454. IFS=$as_save_IFS
  5455. fi
  5456. fi
  5457. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5458. if test -n "$ac_ct_AR"; then
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5460. $as_echo "$ac_ct_AR" >&6; }
  5461. else
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5463. $as_echo "no" >&6; }
  5464. fi
  5465. if test "x$ac_ct_AR" = x; then
  5466. AR="false"
  5467. else
  5468. case $cross_compiling:$ac_tool_warned in
  5469. yes:)
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5471. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5472. ac_tool_warned=yes ;;
  5473. esac
  5474. AR=$ac_ct_AR
  5475. fi
  5476. else
  5477. AR="$ac_cv_prog_AR"
  5478. fi
  5479. test -z "$AR" && AR=ar
  5480. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5481. if test -n "$ac_tool_prefix"; then
  5482. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5483. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5485. $as_echo_n "checking for $ac_word... " >&6; }
  5486. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5487. $as_echo_n "(cached) " >&6
  5488. else
  5489. if test -n "$STRIP"; then
  5490. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5491. else
  5492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5493. for as_dir in $PATH
  5494. do
  5495. IFS=$as_save_IFS
  5496. test -z "$as_dir" && as_dir=.
  5497. for ac_exec_ext in '' $ac_executable_extensions; do
  5498. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5499. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5501. break 2
  5502. fi
  5503. done
  5504. done
  5505. IFS=$as_save_IFS
  5506. fi
  5507. fi
  5508. STRIP=$ac_cv_prog_STRIP
  5509. if test -n "$STRIP"; then
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5511. $as_echo "$STRIP" >&6; }
  5512. else
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5514. $as_echo "no" >&6; }
  5515. fi
  5516. fi
  5517. if test -z "$ac_cv_prog_STRIP"; then
  5518. ac_ct_STRIP=$STRIP
  5519. # Extract the first word of "strip", so it can be a program name with args.
  5520. set dummy strip; ac_word=$2
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5522. $as_echo_n "checking for $ac_word... " >&6; }
  5523. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5524. $as_echo_n "(cached) " >&6
  5525. else
  5526. if test -n "$ac_ct_STRIP"; then
  5527. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5528. else
  5529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5530. for as_dir in $PATH
  5531. do
  5532. IFS=$as_save_IFS
  5533. test -z "$as_dir" && as_dir=.
  5534. for ac_exec_ext in '' $ac_executable_extensions; do
  5535. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5536. ac_cv_prog_ac_ct_STRIP="strip"
  5537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5538. break 2
  5539. fi
  5540. done
  5541. done
  5542. IFS=$as_save_IFS
  5543. fi
  5544. fi
  5545. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5546. if test -n "$ac_ct_STRIP"; then
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5548. $as_echo "$ac_ct_STRIP" >&6; }
  5549. else
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5551. $as_echo "no" >&6; }
  5552. fi
  5553. if test "x$ac_ct_STRIP" = x; then
  5554. STRIP=":"
  5555. else
  5556. case $cross_compiling:$ac_tool_warned in
  5557. yes:)
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5559. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5560. ac_tool_warned=yes ;;
  5561. esac
  5562. STRIP=$ac_ct_STRIP
  5563. fi
  5564. else
  5565. STRIP="$ac_cv_prog_STRIP"
  5566. fi
  5567. test -z "$STRIP" && STRIP=:
  5568. if test -n "$ac_tool_prefix"; then
  5569. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5570. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5572. $as_echo_n "checking for $ac_word... " >&6; }
  5573. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5574. $as_echo_n "(cached) " >&6
  5575. else
  5576. if test -n "$RANLIB"; then
  5577. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5578. else
  5579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5580. for as_dir in $PATH
  5581. do
  5582. IFS=$as_save_IFS
  5583. test -z "$as_dir" && as_dir=.
  5584. for ac_exec_ext in '' $ac_executable_extensions; do
  5585. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5586. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5588. break 2
  5589. fi
  5590. done
  5591. done
  5592. IFS=$as_save_IFS
  5593. fi
  5594. fi
  5595. RANLIB=$ac_cv_prog_RANLIB
  5596. if test -n "$RANLIB"; then
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5598. $as_echo "$RANLIB" >&6; }
  5599. else
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5601. $as_echo "no" >&6; }
  5602. fi
  5603. fi
  5604. if test -z "$ac_cv_prog_RANLIB"; then
  5605. ac_ct_RANLIB=$RANLIB
  5606. # Extract the first word of "ranlib", so it can be a program name with args.
  5607. set dummy ranlib; ac_word=$2
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5609. $as_echo_n "checking for $ac_word... " >&6; }
  5610. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5611. $as_echo_n "(cached) " >&6
  5612. else
  5613. if test -n "$ac_ct_RANLIB"; then
  5614. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5615. else
  5616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5617. for as_dir in $PATH
  5618. do
  5619. IFS=$as_save_IFS
  5620. test -z "$as_dir" && as_dir=.
  5621. for ac_exec_ext in '' $ac_executable_extensions; do
  5622. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5623. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5625. break 2
  5626. fi
  5627. done
  5628. done
  5629. IFS=$as_save_IFS
  5630. fi
  5631. fi
  5632. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5633. if test -n "$ac_ct_RANLIB"; then
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5635. $as_echo "$ac_ct_RANLIB" >&6; }
  5636. else
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5638. $as_echo "no" >&6; }
  5639. fi
  5640. if test "x$ac_ct_RANLIB" = x; then
  5641. RANLIB=":"
  5642. else
  5643. case $cross_compiling:$ac_tool_warned in
  5644. yes:)
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5646. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5647. ac_tool_warned=yes ;;
  5648. esac
  5649. RANLIB=$ac_ct_RANLIB
  5650. fi
  5651. else
  5652. RANLIB="$ac_cv_prog_RANLIB"
  5653. fi
  5654. test -z "$RANLIB" && RANLIB=:
  5655. # Determine commands to create old-style static archives.
  5656. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5657. old_postinstall_cmds='chmod 644 $oldlib'
  5658. old_postuninstall_cmds=
  5659. if test -n "$RANLIB"; then
  5660. case $host_os in
  5661. openbsd*)
  5662. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5663. ;;
  5664. *)
  5665. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5666. ;;
  5667. esac
  5668. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5669. fi
  5670. case $host_os in
  5671. darwin*)
  5672. lock_old_archive_extraction=yes ;;
  5673. *)
  5674. lock_old_archive_extraction=no ;;
  5675. esac
  5676. for ac_prog in gawk mawk nawk awk
  5677. do
  5678. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5679. set dummy $ac_prog; ac_word=$2
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5681. $as_echo_n "checking for $ac_word... " >&6; }
  5682. if test "${ac_cv_prog_AWK+set}" = set; then :
  5683. $as_echo_n "(cached) " >&6
  5684. else
  5685. if test -n "$AWK"; then
  5686. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5687. else
  5688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5689. for as_dir in $PATH
  5690. do
  5691. IFS=$as_save_IFS
  5692. test -z "$as_dir" && as_dir=.
  5693. for ac_exec_ext in '' $ac_executable_extensions; do
  5694. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5695. ac_cv_prog_AWK="$ac_prog"
  5696. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5697. break 2
  5698. fi
  5699. done
  5700. done
  5701. IFS=$as_save_IFS
  5702. fi
  5703. fi
  5704. AWK=$ac_cv_prog_AWK
  5705. if test -n "$AWK"; then
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5707. $as_echo "$AWK" >&6; }
  5708. else
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5710. $as_echo "no" >&6; }
  5711. fi
  5712. test -n "$AWK" && break
  5713. done
  5714. # If no C compiler was specified, use CC.
  5715. LTCC=${LTCC-"$CC"}
  5716. # If no C compiler flags were specified, use CFLAGS.
  5717. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5718. # Allow CC to be a program name with arguments.
  5719. compiler=$CC
  5720. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5722. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5723. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5724. $as_echo_n "(cached) " >&6
  5725. else
  5726. # These are sane defaults that work on at least a few old systems.
  5727. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5728. # Character class describing NM global symbol codes.
  5729. symcode='[BCDEGRST]'
  5730. # Regexp to match symbols that can be accessed directly from C.
  5731. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5732. # Define system-specific variables.
  5733. case $host_os in
  5734. aix*)
  5735. symcode='[BCDT]'
  5736. ;;
  5737. cygwin* | mingw* | pw32* | cegcc*)
  5738. symcode='[ABCDGISTW]'
  5739. ;;
  5740. hpux*)
  5741. if test "$host_cpu" = ia64; then
  5742. symcode='[ABCDEGRST]'
  5743. fi
  5744. ;;
  5745. irix* | nonstopux*)
  5746. symcode='[BCDEGRST]'
  5747. ;;
  5748. osf*)
  5749. symcode='[BCDEGQRST]'
  5750. ;;
  5751. solaris*)
  5752. symcode='[BDRT]'
  5753. ;;
  5754. sco3.2v5*)
  5755. symcode='[DT]'
  5756. ;;
  5757. sysv4.2uw2*)
  5758. symcode='[DT]'
  5759. ;;
  5760. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5761. symcode='[ABDT]'
  5762. ;;
  5763. sysv4)
  5764. symcode='[DFNSTU]'
  5765. ;;
  5766. esac
  5767. # If we're using GNU nm, then use its standard symbol codes.
  5768. case `$NM -V 2>&1` in
  5769. *GNU* | *'with BFD'*)
  5770. symcode='[ABCDGIRSTW]' ;;
  5771. esac
  5772. # Transform an extracted symbol line into a proper C declaration.
  5773. # Some systems (esp. on ia64) link data and code symbols differently,
  5774. # so use this general approach.
  5775. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5776. # Transform an extracted symbol line into symbol name and symbol address
  5777. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5778. 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'"
  5779. # Handle CRLF in mingw tool chain
  5780. opt_cr=
  5781. case $build_os in
  5782. mingw*)
  5783. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5784. ;;
  5785. esac
  5786. # Try without a prefix underscore, then with it.
  5787. for ac_symprfx in "" "_"; do
  5788. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5789. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5790. # Write the raw and C identifiers.
  5791. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5792. # Fake it for dumpbin and say T for any non-static function
  5793. # and D for any global variable.
  5794. # Also find C++ and __fastcall symbols from MSVC++,
  5795. # which start with @ or ?.
  5796. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5797. " {last_section=section; section=\$ 3};"\
  5798. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5799. " \$ 0!~/External *\|/{next};"\
  5800. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5801. " {if(hide[section]) next};"\
  5802. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5803. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5804. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5805. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5806. " ' prfx=^$ac_symprfx"
  5807. else
  5808. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5809. fi
  5810. # Check to see that the pipe works correctly.
  5811. pipe_works=no
  5812. rm -f conftest*
  5813. cat > conftest.$ac_ext <<_LT_EOF
  5814. #ifdef __cplusplus
  5815. extern "C" {
  5816. #endif
  5817. char nm_test_var;
  5818. void nm_test_func(void);
  5819. void nm_test_func(void){}
  5820. #ifdef __cplusplus
  5821. }
  5822. #endif
  5823. int main(){nm_test_var='a';nm_test_func();return(0);}
  5824. _LT_EOF
  5825. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5826. (eval $ac_compile) 2>&5
  5827. ac_status=$?
  5828. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5829. test $ac_status = 0; }; then
  5830. # Now try to grab the symbols.
  5831. nlist=conftest.nm
  5832. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5833. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5834. ac_status=$?
  5835. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5836. test $ac_status = 0; } && test -s "$nlist"; then
  5837. # Try sorting and uniquifying the output.
  5838. if sort "$nlist" | uniq > "$nlist"T; then
  5839. mv -f "$nlist"T "$nlist"
  5840. else
  5841. rm -f "$nlist"T
  5842. fi
  5843. # Make sure that we snagged all the symbols we need.
  5844. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5845. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5846. cat <<_LT_EOF > conftest.$ac_ext
  5847. #ifdef __cplusplus
  5848. extern "C" {
  5849. #endif
  5850. _LT_EOF
  5851. # Now generate the symbol file.
  5852. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5853. cat <<_LT_EOF >> conftest.$ac_ext
  5854. /* The mapping between symbol names and symbols. */
  5855. const struct {
  5856. const char *name;
  5857. void *address;
  5858. }
  5859. lt__PROGRAM__LTX_preloaded_symbols[] =
  5860. {
  5861. { "@PROGRAM@", (void *) 0 },
  5862. _LT_EOF
  5863. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5864. cat <<\_LT_EOF >> conftest.$ac_ext
  5865. {0, (void *) 0}
  5866. };
  5867. /* This works around a problem in FreeBSD linker */
  5868. #ifdef FREEBSD_WORKAROUND
  5869. static const void *lt_preloaded_setup() {
  5870. return lt__PROGRAM__LTX_preloaded_symbols;
  5871. }
  5872. #endif
  5873. #ifdef __cplusplus
  5874. }
  5875. #endif
  5876. _LT_EOF
  5877. # Now try linking the two files.
  5878. mv conftest.$ac_objext conftstm.$ac_objext
  5879. lt_save_LIBS="$LIBS"
  5880. lt_save_CFLAGS="$CFLAGS"
  5881. LIBS="conftstm.$ac_objext"
  5882. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5883. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5884. (eval $ac_link) 2>&5
  5885. ac_status=$?
  5886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5887. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5888. pipe_works=yes
  5889. fi
  5890. LIBS="$lt_save_LIBS"
  5891. CFLAGS="$lt_save_CFLAGS"
  5892. else
  5893. echo "cannot find nm_test_func in $nlist" >&5
  5894. fi
  5895. else
  5896. echo "cannot find nm_test_var in $nlist" >&5
  5897. fi
  5898. else
  5899. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5900. fi
  5901. else
  5902. echo "$progname: failed program was:" >&5
  5903. cat conftest.$ac_ext >&5
  5904. fi
  5905. rm -rf conftest* conftst*
  5906. # Do not use the global_symbol_pipe unless it works.
  5907. if test "$pipe_works" = yes; then
  5908. break
  5909. else
  5910. lt_cv_sys_global_symbol_pipe=
  5911. fi
  5912. done
  5913. fi
  5914. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5915. lt_cv_sys_global_symbol_to_cdecl=
  5916. fi
  5917. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5919. $as_echo "failed" >&6; }
  5920. else
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5922. $as_echo "ok" >&6; }
  5923. fi
  5924. # Check whether --enable-libtool-lock was given.
  5925. if test "${enable_libtool_lock+set}" = set; then :
  5926. enableval=$enable_libtool_lock;
  5927. fi
  5928. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5929. # Some flags need to be propagated to the compiler or linker for good
  5930. # libtool support.
  5931. case $host in
  5932. ia64-*-hpux*)
  5933. # Find out which ABI we are using.
  5934. echo 'int i;' > conftest.$ac_ext
  5935. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5936. (eval $ac_compile) 2>&5
  5937. ac_status=$?
  5938. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5939. test $ac_status = 0; }; then
  5940. case `/usr/bin/file conftest.$ac_objext` in
  5941. *ELF-32*)
  5942. HPUX_IA64_MODE="32"
  5943. ;;
  5944. *ELF-64*)
  5945. HPUX_IA64_MODE="64"
  5946. ;;
  5947. esac
  5948. fi
  5949. rm -rf conftest*
  5950. ;;
  5951. *-*-irix6*)
  5952. # Find out which ABI we are using.
  5953. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5954. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5955. (eval $ac_compile) 2>&5
  5956. ac_status=$?
  5957. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5958. test $ac_status = 0; }; then
  5959. if test "$lt_cv_prog_gnu_ld" = yes; then
  5960. case `/usr/bin/file conftest.$ac_objext` in
  5961. *32-bit*)
  5962. LD="${LD-ld} -melf32bsmip"
  5963. ;;
  5964. *N32*)
  5965. LD="${LD-ld} -melf32bmipn32"
  5966. ;;
  5967. *64-bit*)
  5968. LD="${LD-ld} -melf64bmip"
  5969. ;;
  5970. esac
  5971. else
  5972. case `/usr/bin/file conftest.$ac_objext` in
  5973. *32-bit*)
  5974. LD="${LD-ld} -32"
  5975. ;;
  5976. *N32*)
  5977. LD="${LD-ld} -n32"
  5978. ;;
  5979. *64-bit*)
  5980. LD="${LD-ld} -64"
  5981. ;;
  5982. esac
  5983. fi
  5984. fi
  5985. rm -rf conftest*
  5986. ;;
  5987. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5988. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5989. # Find out which ABI we are using.
  5990. echo 'int i;' > conftest.$ac_ext
  5991. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5992. (eval $ac_compile) 2>&5
  5993. ac_status=$?
  5994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5995. test $ac_status = 0; }; then
  5996. case `/usr/bin/file conftest.o` in
  5997. *32-bit*)
  5998. case $host in
  5999. x86_64-*kfreebsd*-gnu)
  6000. LD="${LD-ld} -m elf_i386_fbsd"
  6001. ;;
  6002. x86_64-*linux*)
  6003. case `/usr/bin/file conftest.o` in
  6004. *x86-64*)
  6005. LD="${LD-ld} -m elf32_x86_64"
  6006. ;;
  6007. *)
  6008. LD="${LD-ld} -m elf_i386"
  6009. ;;
  6010. esac
  6011. ;;
  6012. powerpc64le-*linux*)
  6013. LD="${LD-ld} -m elf32lppclinux"
  6014. ;;
  6015. powerpc64-*linux*)
  6016. LD="${LD-ld} -m elf32ppclinux"
  6017. ;;
  6018. s390x-*linux*)
  6019. LD="${LD-ld} -m elf_s390"
  6020. ;;
  6021. sparc64-*linux*)
  6022. LD="${LD-ld} -m elf32_sparc"
  6023. ;;
  6024. esac
  6025. ;;
  6026. *64-bit*)
  6027. case $host in
  6028. x86_64-*kfreebsd*-gnu)
  6029. LD="${LD-ld} -m elf_x86_64_fbsd"
  6030. ;;
  6031. x86_64-*linux*)
  6032. LD="${LD-ld} -m elf_x86_64"
  6033. ;;
  6034. powerpcle-*linux*)
  6035. LD="${LD-ld} -m elf64lppc"
  6036. ;;
  6037. powerpc-*linux*)
  6038. LD="${LD-ld} -m elf64ppc"
  6039. ;;
  6040. s390*-*linux*|s390*-*tpf*)
  6041. LD="${LD-ld} -m elf64_s390"
  6042. ;;
  6043. sparc*-*linux*)
  6044. LD="${LD-ld} -m elf64_sparc"
  6045. ;;
  6046. esac
  6047. ;;
  6048. esac
  6049. fi
  6050. rm -rf conftest*
  6051. ;;
  6052. *-*-sco3.2v5*)
  6053. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6054. SAVE_CFLAGS="$CFLAGS"
  6055. CFLAGS="$CFLAGS -belf"
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6057. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6058. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6059. $as_echo_n "(cached) " >&6
  6060. else
  6061. ac_ext=c
  6062. ac_cpp='$CPP $CPPFLAGS'
  6063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6067. /* end confdefs.h. */
  6068. int
  6069. main ()
  6070. {
  6071. ;
  6072. return 0;
  6073. }
  6074. _ACEOF
  6075. if ac_fn_c_try_link "$LINENO"; then :
  6076. lt_cv_cc_needs_belf=yes
  6077. else
  6078. lt_cv_cc_needs_belf=no
  6079. fi
  6080. rm -f core conftest.err conftest.$ac_objext \
  6081. conftest$ac_exeext conftest.$ac_ext
  6082. ac_ext=c
  6083. ac_cpp='$CPP $CPPFLAGS'
  6084. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6085. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6086. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6087. fi
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6089. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6090. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6091. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6092. CFLAGS="$SAVE_CFLAGS"
  6093. fi
  6094. ;;
  6095. sparc*-*solaris*)
  6096. # Find out which ABI we are using.
  6097. echo 'int i;' > conftest.$ac_ext
  6098. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6099. (eval $ac_compile) 2>&5
  6100. ac_status=$?
  6101. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6102. test $ac_status = 0; }; then
  6103. case `/usr/bin/file conftest.o` in
  6104. *64-bit*)
  6105. case $lt_cv_prog_gnu_ld in
  6106. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6107. *)
  6108. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6109. LD="${LD-ld} -64"
  6110. fi
  6111. ;;
  6112. esac
  6113. ;;
  6114. esac
  6115. fi
  6116. rm -rf conftest*
  6117. ;;
  6118. esac
  6119. need_locks="$enable_libtool_lock"
  6120. case $host_os in
  6121. rhapsody* | darwin*)
  6122. if test -n "$ac_tool_prefix"; then
  6123. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6124. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6126. $as_echo_n "checking for $ac_word... " >&6; }
  6127. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6128. $as_echo_n "(cached) " >&6
  6129. else
  6130. if test -n "$DSYMUTIL"; then
  6131. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6132. else
  6133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6134. for as_dir in $PATH
  6135. do
  6136. IFS=$as_save_IFS
  6137. test -z "$as_dir" && as_dir=.
  6138. for ac_exec_ext in '' $ac_executable_extensions; do
  6139. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6140. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6142. break 2
  6143. fi
  6144. done
  6145. done
  6146. IFS=$as_save_IFS
  6147. fi
  6148. fi
  6149. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6150. if test -n "$DSYMUTIL"; then
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6152. $as_echo "$DSYMUTIL" >&6; }
  6153. else
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6155. $as_echo "no" >&6; }
  6156. fi
  6157. fi
  6158. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6159. ac_ct_DSYMUTIL=$DSYMUTIL
  6160. # Extract the first word of "dsymutil", so it can be a program name with args.
  6161. set dummy dsymutil; ac_word=$2
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6163. $as_echo_n "checking for $ac_word... " >&6; }
  6164. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6165. $as_echo_n "(cached) " >&6
  6166. else
  6167. if test -n "$ac_ct_DSYMUTIL"; then
  6168. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6169. else
  6170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6171. for as_dir in $PATH
  6172. do
  6173. IFS=$as_save_IFS
  6174. test -z "$as_dir" && as_dir=.
  6175. for ac_exec_ext in '' $ac_executable_extensions; do
  6176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6177. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6179. break 2
  6180. fi
  6181. done
  6182. done
  6183. IFS=$as_save_IFS
  6184. fi
  6185. fi
  6186. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6187. if test -n "$ac_ct_DSYMUTIL"; then
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6189. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6190. else
  6191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6192. $as_echo "no" >&6; }
  6193. fi
  6194. if test "x$ac_ct_DSYMUTIL" = x; then
  6195. DSYMUTIL=":"
  6196. else
  6197. case $cross_compiling:$ac_tool_warned in
  6198. yes:)
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6200. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6201. ac_tool_warned=yes ;;
  6202. esac
  6203. DSYMUTIL=$ac_ct_DSYMUTIL
  6204. fi
  6205. else
  6206. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6207. fi
  6208. if test -n "$ac_tool_prefix"; then
  6209. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6210. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6212. $as_echo_n "checking for $ac_word... " >&6; }
  6213. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6214. $as_echo_n "(cached) " >&6
  6215. else
  6216. if test -n "$NMEDIT"; then
  6217. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6218. else
  6219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6220. for as_dir in $PATH
  6221. do
  6222. IFS=$as_save_IFS
  6223. test -z "$as_dir" && as_dir=.
  6224. for ac_exec_ext in '' $ac_executable_extensions; do
  6225. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6226. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6228. break 2
  6229. fi
  6230. done
  6231. done
  6232. IFS=$as_save_IFS
  6233. fi
  6234. fi
  6235. NMEDIT=$ac_cv_prog_NMEDIT
  6236. if test -n "$NMEDIT"; then
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6238. $as_echo "$NMEDIT" >&6; }
  6239. else
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6241. $as_echo "no" >&6; }
  6242. fi
  6243. fi
  6244. if test -z "$ac_cv_prog_NMEDIT"; then
  6245. ac_ct_NMEDIT=$NMEDIT
  6246. # Extract the first word of "nmedit", so it can be a program name with args.
  6247. set dummy nmedit; ac_word=$2
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6249. $as_echo_n "checking for $ac_word... " >&6; }
  6250. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6251. $as_echo_n "(cached) " >&6
  6252. else
  6253. if test -n "$ac_ct_NMEDIT"; then
  6254. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6255. else
  6256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6257. for as_dir in $PATH
  6258. do
  6259. IFS=$as_save_IFS
  6260. test -z "$as_dir" && as_dir=.
  6261. for ac_exec_ext in '' $ac_executable_extensions; do
  6262. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6263. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6265. break 2
  6266. fi
  6267. done
  6268. done
  6269. IFS=$as_save_IFS
  6270. fi
  6271. fi
  6272. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6273. if test -n "$ac_ct_NMEDIT"; then
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6275. $as_echo "$ac_ct_NMEDIT" >&6; }
  6276. else
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6278. $as_echo "no" >&6; }
  6279. fi
  6280. if test "x$ac_ct_NMEDIT" = x; then
  6281. NMEDIT=":"
  6282. else
  6283. case $cross_compiling:$ac_tool_warned in
  6284. yes:)
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6286. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6287. ac_tool_warned=yes ;;
  6288. esac
  6289. NMEDIT=$ac_ct_NMEDIT
  6290. fi
  6291. else
  6292. NMEDIT="$ac_cv_prog_NMEDIT"
  6293. fi
  6294. if test -n "$ac_tool_prefix"; then
  6295. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6296. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6298. $as_echo_n "checking for $ac_word... " >&6; }
  6299. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6300. $as_echo_n "(cached) " >&6
  6301. else
  6302. if test -n "$LIPO"; then
  6303. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6304. else
  6305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6306. for as_dir in $PATH
  6307. do
  6308. IFS=$as_save_IFS
  6309. test -z "$as_dir" && as_dir=.
  6310. for ac_exec_ext in '' $ac_executable_extensions; do
  6311. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6312. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6314. break 2
  6315. fi
  6316. done
  6317. done
  6318. IFS=$as_save_IFS
  6319. fi
  6320. fi
  6321. LIPO=$ac_cv_prog_LIPO
  6322. if test -n "$LIPO"; then
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6324. $as_echo "$LIPO" >&6; }
  6325. else
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6327. $as_echo "no" >&6; }
  6328. fi
  6329. fi
  6330. if test -z "$ac_cv_prog_LIPO"; then
  6331. ac_ct_LIPO=$LIPO
  6332. # Extract the first word of "lipo", so it can be a program name with args.
  6333. set dummy lipo; ac_word=$2
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6335. $as_echo_n "checking for $ac_word... " >&6; }
  6336. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6337. $as_echo_n "(cached) " >&6
  6338. else
  6339. if test -n "$ac_ct_LIPO"; then
  6340. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6341. else
  6342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6343. for as_dir in $PATH
  6344. do
  6345. IFS=$as_save_IFS
  6346. test -z "$as_dir" && as_dir=.
  6347. for ac_exec_ext in '' $ac_executable_extensions; do
  6348. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6349. ac_cv_prog_ac_ct_LIPO="lipo"
  6350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6351. break 2
  6352. fi
  6353. done
  6354. done
  6355. IFS=$as_save_IFS
  6356. fi
  6357. fi
  6358. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6359. if test -n "$ac_ct_LIPO"; then
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6361. $as_echo "$ac_ct_LIPO" >&6; }
  6362. else
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6364. $as_echo "no" >&6; }
  6365. fi
  6366. if test "x$ac_ct_LIPO" = x; then
  6367. LIPO=":"
  6368. else
  6369. case $cross_compiling:$ac_tool_warned in
  6370. yes:)
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6372. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6373. ac_tool_warned=yes ;;
  6374. esac
  6375. LIPO=$ac_ct_LIPO
  6376. fi
  6377. else
  6378. LIPO="$ac_cv_prog_LIPO"
  6379. fi
  6380. if test -n "$ac_tool_prefix"; then
  6381. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6382. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6384. $as_echo_n "checking for $ac_word... " >&6; }
  6385. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6386. $as_echo_n "(cached) " >&6
  6387. else
  6388. if test -n "$OTOOL"; then
  6389. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6390. else
  6391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6392. for as_dir in $PATH
  6393. do
  6394. IFS=$as_save_IFS
  6395. test -z "$as_dir" && as_dir=.
  6396. for ac_exec_ext in '' $ac_executable_extensions; do
  6397. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6398. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6400. break 2
  6401. fi
  6402. done
  6403. done
  6404. IFS=$as_save_IFS
  6405. fi
  6406. fi
  6407. OTOOL=$ac_cv_prog_OTOOL
  6408. if test -n "$OTOOL"; then
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6410. $as_echo "$OTOOL" >&6; }
  6411. else
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6413. $as_echo "no" >&6; }
  6414. fi
  6415. fi
  6416. if test -z "$ac_cv_prog_OTOOL"; then
  6417. ac_ct_OTOOL=$OTOOL
  6418. # Extract the first word of "otool", so it can be a program name with args.
  6419. set dummy otool; ac_word=$2
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6421. $as_echo_n "checking for $ac_word... " >&6; }
  6422. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6423. $as_echo_n "(cached) " >&6
  6424. else
  6425. if test -n "$ac_ct_OTOOL"; then
  6426. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6427. else
  6428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6429. for as_dir in $PATH
  6430. do
  6431. IFS=$as_save_IFS
  6432. test -z "$as_dir" && as_dir=.
  6433. for ac_exec_ext in '' $ac_executable_extensions; do
  6434. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6435. ac_cv_prog_ac_ct_OTOOL="otool"
  6436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6437. break 2
  6438. fi
  6439. done
  6440. done
  6441. IFS=$as_save_IFS
  6442. fi
  6443. fi
  6444. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6445. if test -n "$ac_ct_OTOOL"; then
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6447. $as_echo "$ac_ct_OTOOL" >&6; }
  6448. else
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6450. $as_echo "no" >&6; }
  6451. fi
  6452. if test "x$ac_ct_OTOOL" = x; then
  6453. OTOOL=":"
  6454. else
  6455. case $cross_compiling:$ac_tool_warned in
  6456. yes:)
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6458. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6459. ac_tool_warned=yes ;;
  6460. esac
  6461. OTOOL=$ac_ct_OTOOL
  6462. fi
  6463. else
  6464. OTOOL="$ac_cv_prog_OTOOL"
  6465. fi
  6466. if test -n "$ac_tool_prefix"; then
  6467. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6468. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6470. $as_echo_n "checking for $ac_word... " >&6; }
  6471. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6472. $as_echo_n "(cached) " >&6
  6473. else
  6474. if test -n "$OTOOL64"; then
  6475. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6476. else
  6477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6478. for as_dir in $PATH
  6479. do
  6480. IFS=$as_save_IFS
  6481. test -z "$as_dir" && as_dir=.
  6482. for ac_exec_ext in '' $ac_executable_extensions; do
  6483. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6484. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6486. break 2
  6487. fi
  6488. done
  6489. done
  6490. IFS=$as_save_IFS
  6491. fi
  6492. fi
  6493. OTOOL64=$ac_cv_prog_OTOOL64
  6494. if test -n "$OTOOL64"; then
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6496. $as_echo "$OTOOL64" >&6; }
  6497. else
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6499. $as_echo "no" >&6; }
  6500. fi
  6501. fi
  6502. if test -z "$ac_cv_prog_OTOOL64"; then
  6503. ac_ct_OTOOL64=$OTOOL64
  6504. # Extract the first word of "otool64", so it can be a program name with args.
  6505. set dummy otool64; ac_word=$2
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6507. $as_echo_n "checking for $ac_word... " >&6; }
  6508. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6509. $as_echo_n "(cached) " >&6
  6510. else
  6511. if test -n "$ac_ct_OTOOL64"; then
  6512. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6513. else
  6514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6515. for as_dir in $PATH
  6516. do
  6517. IFS=$as_save_IFS
  6518. test -z "$as_dir" && as_dir=.
  6519. for ac_exec_ext in '' $ac_executable_extensions; do
  6520. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6521. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6523. break 2
  6524. fi
  6525. done
  6526. done
  6527. IFS=$as_save_IFS
  6528. fi
  6529. fi
  6530. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6531. if test -n "$ac_ct_OTOOL64"; then
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6533. $as_echo "$ac_ct_OTOOL64" >&6; }
  6534. else
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6536. $as_echo "no" >&6; }
  6537. fi
  6538. if test "x$ac_ct_OTOOL64" = x; then
  6539. OTOOL64=":"
  6540. else
  6541. case $cross_compiling:$ac_tool_warned in
  6542. yes:)
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6545. ac_tool_warned=yes ;;
  6546. esac
  6547. OTOOL64=$ac_ct_OTOOL64
  6548. fi
  6549. else
  6550. OTOOL64="$ac_cv_prog_OTOOL64"
  6551. fi
  6552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6553. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6554. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6555. $as_echo_n "(cached) " >&6
  6556. else
  6557. lt_cv_apple_cc_single_mod=no
  6558. if test -z "${LT_MULTI_MODULE}"; then
  6559. # By default we will add the -single_module flag. You can override
  6560. # by either setting the environment variable LT_MULTI_MODULE
  6561. # non-empty at configure time, or by adding -multi_module to the
  6562. # link flags.
  6563. rm -rf libconftest.dylib*
  6564. echo "int foo(void){return 1;}" > conftest.c
  6565. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6566. -dynamiclib -Wl,-single_module conftest.c" >&5
  6567. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6568. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6569. _lt_result=$?
  6570. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6571. lt_cv_apple_cc_single_mod=yes
  6572. else
  6573. cat conftest.err >&5
  6574. fi
  6575. rm -rf libconftest.dylib*
  6576. rm -f conftest.*
  6577. fi
  6578. fi
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6580. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6582. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6583. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6584. $as_echo_n "(cached) " >&6
  6585. else
  6586. lt_cv_ld_exported_symbols_list=no
  6587. save_LDFLAGS=$LDFLAGS
  6588. echo "_main" > conftest.sym
  6589. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6591. /* end confdefs.h. */
  6592. int
  6593. main ()
  6594. {
  6595. ;
  6596. return 0;
  6597. }
  6598. _ACEOF
  6599. if ac_fn_c_try_link "$LINENO"; then :
  6600. lt_cv_ld_exported_symbols_list=yes
  6601. else
  6602. lt_cv_ld_exported_symbols_list=no
  6603. fi
  6604. rm -f core conftest.err conftest.$ac_objext \
  6605. conftest$ac_exeext conftest.$ac_ext
  6606. LDFLAGS="$save_LDFLAGS"
  6607. fi
  6608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6609. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6611. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6612. if test "${lt_cv_ld_force_load+set}" = set; then :
  6613. $as_echo_n "(cached) " >&6
  6614. else
  6615. lt_cv_ld_force_load=no
  6616. cat > conftest.c << _LT_EOF
  6617. int forced_loaded() { return 2;}
  6618. _LT_EOF
  6619. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6620. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6621. echo "$AR cru libconftest.a conftest.o" >&5
  6622. $AR cru libconftest.a conftest.o 2>&5
  6623. cat > conftest.c << _LT_EOF
  6624. int main() { return 0;}
  6625. _LT_EOF
  6626. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6627. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6628. _lt_result=$?
  6629. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6630. lt_cv_ld_force_load=yes
  6631. else
  6632. cat conftest.err >&5
  6633. fi
  6634. rm -f conftest.err libconftest.a conftest conftest.c
  6635. rm -rf conftest.dSYM
  6636. fi
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6638. $as_echo "$lt_cv_ld_force_load" >&6; }
  6639. case $host_os in
  6640. rhapsody* | darwin1.[012])
  6641. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6642. darwin1.*)
  6643. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6644. darwin*) # darwin 5.x on
  6645. # if running on 10.5 or later, the deployment target defaults
  6646. # to the OS version, if on x86, and 10.4, the deployment
  6647. # target defaults to 10.4. Don't you love it?
  6648. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6649. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6650. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6651. 10.[012][,.]*)
  6652. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6653. 10.*)
  6654. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6655. esac
  6656. ;;
  6657. esac
  6658. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6659. _lt_dar_single_mod='$single_module'
  6660. fi
  6661. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6662. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6663. else
  6664. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6665. fi
  6666. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6667. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6668. else
  6669. _lt_dsymutil=
  6670. fi
  6671. ;;
  6672. esac
  6673. for ac_header in dlfcn.h
  6674. do :
  6675. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6676. "
  6677. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6678. cat >>confdefs.h <<_ACEOF
  6679. #define HAVE_DLFCN_H 1
  6680. _ACEOF
  6681. fi
  6682. done
  6683. # autoconf.info says this should be called right after AC_INIT.
  6684. ac_config_headers="$ac_config_headers config.h:config.in"
  6685. # Put a plausible default for CC_FOR_BUILD in Makefile.
  6686. if test "x$cross_compiling" = "xno"; then
  6687. CC_FOR_BUILD='$(CC)'
  6688. else
  6689. CC_FOR_BUILD=gcc
  6690. fi
  6691. AR=${AR-ar}
  6692. if test -n "$ac_tool_prefix"; then
  6693. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6694. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6696. $as_echo_n "checking for $ac_word... " >&6; }
  6697. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6698. $as_echo_n "(cached) " >&6
  6699. else
  6700. if test -n "$RANLIB"; then
  6701. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6702. else
  6703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6704. for as_dir in $PATH
  6705. do
  6706. IFS=$as_save_IFS
  6707. test -z "$as_dir" && as_dir=.
  6708. for ac_exec_ext in '' $ac_executable_extensions; do
  6709. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6710. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6712. break 2
  6713. fi
  6714. done
  6715. done
  6716. IFS=$as_save_IFS
  6717. fi
  6718. fi
  6719. RANLIB=$ac_cv_prog_RANLIB
  6720. if test -n "$RANLIB"; then
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6722. $as_echo "$RANLIB" >&6; }
  6723. else
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6725. $as_echo "no" >&6; }
  6726. fi
  6727. fi
  6728. if test -z "$ac_cv_prog_RANLIB"; then
  6729. ac_ct_RANLIB=$RANLIB
  6730. # Extract the first word of "ranlib", so it can be a program name with args.
  6731. set dummy ranlib; ac_word=$2
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6733. $as_echo_n "checking for $ac_word... " >&6; }
  6734. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6735. $as_echo_n "(cached) " >&6
  6736. else
  6737. if test -n "$ac_ct_RANLIB"; then
  6738. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6739. else
  6740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6741. for as_dir in $PATH
  6742. do
  6743. IFS=$as_save_IFS
  6744. test -z "$as_dir" && as_dir=.
  6745. for ac_exec_ext in '' $ac_executable_extensions; do
  6746. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6747. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6749. break 2
  6750. fi
  6751. done
  6752. done
  6753. IFS=$as_save_IFS
  6754. fi
  6755. fi
  6756. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6757. if test -n "$ac_ct_RANLIB"; then
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6759. $as_echo "$ac_ct_RANLIB" >&6; }
  6760. else
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6762. $as_echo "no" >&6; }
  6763. fi
  6764. if test "x$ac_ct_RANLIB" = x; then
  6765. RANLIB=":"
  6766. else
  6767. case $cross_compiling:$ac_tool_warned in
  6768. yes:)
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6770. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6771. ac_tool_warned=yes ;;
  6772. esac
  6773. RANLIB=$ac_ct_RANLIB
  6774. fi
  6775. else
  6776. RANLIB="$ac_cv_prog_RANLIB"
  6777. fi
  6778. # Some of the common include files depend on bfd.h, and bfd.h checks
  6779. # that config.h is included first by testing that the PACKAGE macro
  6780. # is defined.
  6781. PACKAGE=sim
  6782. cat >>confdefs.h <<_ACEOF
  6783. #define PACKAGE "$PACKAGE"
  6784. _ACEOF
  6785. # Dependency checking.
  6786. ac_config_commands="$ac_config_commands depdir"
  6787. depcc="$CC" am_compiler_list=
  6788. am_depcomp=$ac_aux_dir/depcomp
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6790. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6791. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  6792. $as_echo_n "(cached) " >&6
  6793. else
  6794. if test -f "$am_depcomp"; then
  6795. # We make a subdir and do the tests there. Otherwise we can end up
  6796. # making bogus files that we don't know about and never remove. For
  6797. # instance it was reported that on HP-UX the gcc test will end up
  6798. # making a dummy file named `D' -- because `-MD' means `put the output
  6799. # in D'.
  6800. mkdir conftest.dir
  6801. # Copy depcomp to subdir because otherwise we won't find it if we're
  6802. # using a relative directory.
  6803. cp "$am_depcomp" conftest.dir
  6804. cd conftest.dir
  6805. # We will build objects and dependencies in a subdirectory because
  6806. # it helps to detect inapplicable dependency modes. For instance
  6807. # both Tru64's cc and ICC support -MD to output dependencies as a
  6808. # side effect of compilation, but ICC will put the dependencies in
  6809. # the current directory while Tru64 will put them in the object
  6810. # directory.
  6811. mkdir sub
  6812. am_cv_CC_dependencies_compiler_type=none
  6813. if test "$am_compiler_list" = ""; then
  6814. am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6815. fi
  6816. for depmode in $am_compiler_list; do
  6817. if test $depmode = none; then break; fi
  6818. $as_echo "$as_me:$LINENO: trying $depmode" >&5
  6819. # Setup a source with many dependencies, because some compilers
  6820. # like to wrap large dependency lists on column 80 (with \), and
  6821. # we should not choose a depcomp mode which is confused by this.
  6822. #
  6823. # We need to recreate these files for each test, as the compiler may
  6824. # overwrite some of them when testing with obscure command lines.
  6825. # This happens at least with the AIX C compiler.
  6826. : > sub/conftest.c
  6827. for i in 1 2 3 4 5 6; do
  6828. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6829. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6830. # Solaris 8's {/usr,}/bin/sh.
  6831. touch sub/conftst$i.h
  6832. done
  6833. echo "include sub/conftest.Po" > confmf
  6834. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6835. # mode. It turns out that the SunPro C++ compiler does not properly
  6836. # handle `-M -o', and we need to detect this.
  6837. depcmd="depmode=$depmode \
  6838. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6839. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6840. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
  6841. echo "| $depcmd" | sed -e 's/ */ /g' >&5
  6842. if env $depcmd > conftest.err 2>&1 &&
  6843. grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
  6844. grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
  6845. ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
  6846. # icc doesn't choke on unknown options, it will just issue warnings
  6847. # or remarks (even with -Werror). So we grep stderr for any message
  6848. # that says an option was ignored or not supported.
  6849. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6850. # icc: Command line warning: ignoring option '-M'; no argument required
  6851. # The diagnosis changed in icc 8.0:
  6852. # icc: Command line remark: option '-MP' not supported
  6853. if (grep 'ignoring option' conftest.err ||
  6854. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6855. am_cv_CC_dependencies_compiler_type=$depmode
  6856. $as_echo "$as_me:$LINENO: success" >&5
  6857. break
  6858. fi
  6859. fi
  6860. $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
  6861. sed -e 's/^/| /' < conftest.err >&5
  6862. done
  6863. cd ..
  6864. rm -rf conftest.dir
  6865. else
  6866. am_cv_CC_dependencies_compiler_type=none
  6867. fi
  6868. fi
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  6870. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  6871. if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
  6872. then as_fn_error "no usable dependency style found" "$LINENO" 5
  6873. else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  6874. fi
  6875. # Check for the 'make' the user wants to use.
  6876. for ac_prog in make
  6877. do
  6878. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6879. set dummy $ac_prog; ac_word=$2
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6881. $as_echo_n "checking for $ac_word... " >&6; }
  6882. if test "${ac_cv_prog_MAKE+set}" = set; then :
  6883. $as_echo_n "(cached) " >&6
  6884. else
  6885. if test -n "$MAKE"; then
  6886. ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
  6887. else
  6888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6889. for as_dir in $PATH
  6890. do
  6891. IFS=$as_save_IFS
  6892. test -z "$as_dir" && as_dir=.
  6893. for ac_exec_ext in '' $ac_executable_extensions; do
  6894. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6895. ac_cv_prog_MAKE="$ac_prog"
  6896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6897. break 2
  6898. fi
  6899. done
  6900. done
  6901. IFS=$as_save_IFS
  6902. fi
  6903. fi
  6904. MAKE=$ac_cv_prog_MAKE
  6905. if test -n "$MAKE"; then
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
  6907. $as_echo "$MAKE" >&6; }
  6908. else
  6909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6910. $as_echo "no" >&6; }
  6911. fi
  6912. test -n "$MAKE" && break
  6913. done
  6914. MAKE_IS_GNU=
  6915. case "`$MAKE --version 2>&1 | sed 1q`" in
  6916. *GNU*)
  6917. MAKE_IS_GNU=yes
  6918. ;;
  6919. esac
  6920. if test "$MAKE_IS_GNU" = yes; then
  6921. GMAKE_TRUE=
  6922. GMAKE_FALSE='#'
  6923. else
  6924. GMAKE_TRUE='#'
  6925. GMAKE_FALSE=
  6926. fi
  6927. ALL_LINGUAS=
  6928. # If we haven't got the data from the intl directory,
  6929. # assume NLS is disabled.
  6930. USE_NLS=no
  6931. LIBINTL=
  6932. LIBINTL_DEP=
  6933. INCINTL=
  6934. XGETTEXT=
  6935. GMSGFMT=
  6936. POSUB=
  6937. if test -f ../../intl/config.intl; then
  6938. . ../../intl/config.intl
  6939. fi
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  6941. $as_echo_n "checking whether NLS is requested... " >&6; }
  6942. if test x"$USE_NLS" != xyes; then
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6944. $as_echo "no" >&6; }
  6945. else
  6946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6947. $as_echo "yes" >&6; }
  6948. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  6950. $as_echo_n "checking for catalogs to be installed... " >&6; }
  6951. # Look for .po and .gmo files in the source directory.
  6952. CATALOGS=
  6953. XLINGUAS=
  6954. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  6955. # If there aren't any .gmo files the shell will give us the
  6956. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  6957. # weeded out.
  6958. case "$cat" in *\**)
  6959. continue;;
  6960. esac
  6961. # The quadruple backslash is collapsed to a double backslash
  6962. # by the backticks, then collapsed again by the double quotes,
  6963. # leaving us with one backslash in the sed expression (right
  6964. # before the dot that mustn't act as a wildcard).
  6965. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  6966. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  6967. # The user is allowed to set LINGUAS to a list of languages to
  6968. # install catalogs for. If it's empty that means "all of them."
  6969. if test "x$LINGUAS" = x; then
  6970. CATALOGS="$CATALOGS $cat"
  6971. XLINGUAS="$XLINGUAS $lang"
  6972. else
  6973. case "$LINGUAS" in *$lang*)
  6974. CATALOGS="$CATALOGS $cat"
  6975. XLINGUAS="$XLINGUAS $lang"
  6976. ;;
  6977. esac
  6978. fi
  6979. done
  6980. LINGUAS="$XLINGUAS"
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  6982. $as_echo "$LINGUAS" >&6; }
  6983. DATADIRNAME=share
  6984. INSTOBJEXT=.mo
  6985. GENCAT=gencat
  6986. CATOBJEXT=.gmo
  6987. fi
  6988. # Check for common headers.
  6989. # FIXME: Seems to me this can cause problems for i386-windows hosts.
  6990. # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
  6991. for ac_header in stdlib.h string.h strings.h unistd.h time.h
  6992. do :
  6993. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6994. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6995. eval as_val=\$$as_ac_Header
  6996. if test "x$as_val" = x""yes; then :
  6997. cat >>confdefs.h <<_ACEOF
  6998. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6999. _ACEOF
  7000. fi
  7001. done
  7002. for ac_header in sys/time.h sys/resource.h
  7003. do :
  7004. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7005. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7006. eval as_val=\$$as_ac_Header
  7007. if test "x$as_val" = x""yes; then :
  7008. cat >>confdefs.h <<_ACEOF
  7009. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7010. _ACEOF
  7011. fi
  7012. done
  7013. for ac_header in fcntl.h fpu_control.h
  7014. do :
  7015. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7016. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7017. eval as_val=\$$as_ac_Header
  7018. if test "x$as_val" = x""yes; then :
  7019. cat >>confdefs.h <<_ACEOF
  7020. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7021. _ACEOF
  7022. fi
  7023. done
  7024. for ac_header in dlfcn.h errno.h sys/stat.h
  7025. do :
  7026. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7027. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7028. eval as_val=\$$as_ac_Header
  7029. if test "x$as_val" = x""yes; then :
  7030. cat >>confdefs.h <<_ACEOF
  7031. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7032. _ACEOF
  7033. fi
  7034. done
  7035. for ac_func in getrusage time sigaction __setfpucw
  7036. do :
  7037. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7038. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7039. eval as_val=\$$as_ac_var
  7040. if test "x$as_val" = x""yes; then :
  7041. cat >>confdefs.h <<_ACEOF
  7042. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7043. _ACEOF
  7044. fi
  7045. done
  7046. # Check for socket libraries
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
  7048. $as_echo_n "checking for bind in -lsocket... " >&6; }
  7049. if test "${ac_cv_lib_socket_bind+set}" = set; then :
  7050. $as_echo_n "(cached) " >&6
  7051. else
  7052. ac_check_lib_save_LIBS=$LIBS
  7053. LIBS="-lsocket $LIBS"
  7054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7055. /* end confdefs.h. */
  7056. /* Override any GCC internal prototype to avoid an error.
  7057. Use char because int might match the return type of a GCC
  7058. builtin and then its argument prototype would still apply. */
  7059. #ifdef __cplusplus
  7060. extern "C"
  7061. #endif
  7062. char bind ();
  7063. int
  7064. main ()
  7065. {
  7066. return bind ();
  7067. ;
  7068. return 0;
  7069. }
  7070. _ACEOF
  7071. if ac_fn_c_try_link "$LINENO"; then :
  7072. ac_cv_lib_socket_bind=yes
  7073. else
  7074. ac_cv_lib_socket_bind=no
  7075. fi
  7076. rm -f core conftest.err conftest.$ac_objext \
  7077. conftest$ac_exeext conftest.$ac_ext
  7078. LIBS=$ac_check_lib_save_LIBS
  7079. fi
  7080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
  7081. $as_echo "$ac_cv_lib_socket_bind" >&6; }
  7082. if test "x$ac_cv_lib_socket_bind" = x""yes; then :
  7083. cat >>confdefs.h <<_ACEOF
  7084. #define HAVE_LIBSOCKET 1
  7085. _ACEOF
  7086. LIBS="-lsocket $LIBS"
  7087. fi
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  7089. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  7090. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  7091. $as_echo_n "(cached) " >&6
  7092. else
  7093. ac_check_lib_save_LIBS=$LIBS
  7094. LIBS="-lnsl $LIBS"
  7095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7096. /* end confdefs.h. */
  7097. /* Override any GCC internal prototype to avoid an error.
  7098. Use char because int might match the return type of a GCC
  7099. builtin and then its argument prototype would still apply. */
  7100. #ifdef __cplusplus
  7101. extern "C"
  7102. #endif
  7103. char gethostbyname ();
  7104. int
  7105. main ()
  7106. {
  7107. return gethostbyname ();
  7108. ;
  7109. return 0;
  7110. }
  7111. _ACEOF
  7112. if ac_fn_c_try_link "$LINENO"; then :
  7113. ac_cv_lib_nsl_gethostbyname=yes
  7114. else
  7115. ac_cv_lib_nsl_gethostbyname=no
  7116. fi
  7117. rm -f core conftest.err conftest.$ac_objext \
  7118. conftest$ac_exeext conftest.$ac_ext
  7119. LIBS=$ac_check_lib_save_LIBS
  7120. fi
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  7122. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  7123. if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  7124. cat >>confdefs.h <<_ACEOF
  7125. #define HAVE_LIBNSL 1
  7126. _ACEOF
  7127. LIBS="-lnsl $LIBS"
  7128. fi
  7129. # BFD conditionally uses zlib, so we must link it in if libbfd does, by
  7130. # using the same condition.
  7131. # Use the system's zlib library.
  7132. zlibdir="-L\$(top_builddir)/../zlib"
  7133. zlibinc="-I\$(top_srcdir)/../zlib"
  7134. # Check whether --with-system-zlib was given.
  7135. if test "${with_system_zlib+set}" = set; then :
  7136. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  7137. zlibdir=
  7138. zlibinc=
  7139. fi
  7140. fi
  7141. # BFD uses libdl when when plugins enabled.
  7142. maybe_plugins=no
  7143. for ac_header in dlfcn.h
  7144. do :
  7145. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7146. "
  7147. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7148. cat >>confdefs.h <<_ACEOF
  7149. #define HAVE_DLFCN_H 1
  7150. _ACEOF
  7151. maybe_plugins=yes
  7152. fi
  7153. done
  7154. for ac_header in windows.h
  7155. do :
  7156. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  7157. "
  7158. if test "x$ac_cv_header_windows_h" = x""yes; then :
  7159. cat >>confdefs.h <<_ACEOF
  7160. #define HAVE_WINDOWS_H 1
  7161. _ACEOF
  7162. maybe_plugins=yes
  7163. fi
  7164. done
  7165. # Check whether --enable-plugins was given.
  7166. if test "${enable_plugins+set}" = set; then :
  7167. enableval=$enable_plugins; case "${enableval}" in
  7168. no) plugins=no ;;
  7169. *) plugins=yes
  7170. if test "$maybe_plugins" != "yes" ; then
  7171. as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  7172. fi ;;
  7173. esac
  7174. else
  7175. plugins=$maybe_plugins
  7176. fi
  7177. if test "$plugins" = "yes"; then
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  7179. $as_echo_n "checking for library containing dlopen... " >&6; }
  7180. if test "${ac_cv_search_dlopen+set}" = set; then :
  7181. $as_echo_n "(cached) " >&6
  7182. else
  7183. ac_func_search_save_LIBS=$LIBS
  7184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7185. /* end confdefs.h. */
  7186. /* Override any GCC internal prototype to avoid an error.
  7187. Use char because int might match the return type of a GCC
  7188. builtin and then its argument prototype would still apply. */
  7189. #ifdef __cplusplus
  7190. extern "C"
  7191. #endif
  7192. char dlopen ();
  7193. int
  7194. main ()
  7195. {
  7196. return dlopen ();
  7197. ;
  7198. return 0;
  7199. }
  7200. _ACEOF
  7201. for ac_lib in '' dl; do
  7202. if test -z "$ac_lib"; then
  7203. ac_res="none required"
  7204. else
  7205. ac_res=-l$ac_lib
  7206. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7207. fi
  7208. if ac_fn_c_try_link "$LINENO"; then :
  7209. ac_cv_search_dlopen=$ac_res
  7210. fi
  7211. rm -f core conftest.err conftest.$ac_objext \
  7212. conftest$ac_exeext
  7213. if test "${ac_cv_search_dlopen+set}" = set; then :
  7214. break
  7215. fi
  7216. done
  7217. if test "${ac_cv_search_dlopen+set}" = set; then :
  7218. else
  7219. ac_cv_search_dlopen=no
  7220. fi
  7221. rm conftest.$ac_ext
  7222. LIBS=$ac_func_search_save_LIBS
  7223. fi
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  7225. $as_echo "$ac_cv_search_dlopen" >&6; }
  7226. ac_res=$ac_cv_search_dlopen
  7227. if test "$ac_res" != no; then :
  7228. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7229. fi
  7230. fi
  7231. if test "$plugins" = yes; then
  7232. PLUGINS_TRUE=
  7233. PLUGINS_FALSE='#'
  7234. else
  7235. PLUGINS_TRUE='#'
  7236. PLUGINS_FALSE=
  7237. fi
  7238. # Set options
  7239. enable_dlopen=yes
  7240. enable_win32_dll=no
  7241. # Check whether --enable-shared was given.
  7242. if test "${enable_shared+set}" = set; then :
  7243. enableval=$enable_shared; p=${PACKAGE-default}
  7244. case $enableval in
  7245. yes) enable_shared=yes ;;
  7246. no) enable_shared=no ;;
  7247. *)
  7248. enable_shared=no
  7249. # Look at the argument we got. We use all the common list separators.
  7250. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7251. for pkg in $enableval; do
  7252. IFS="$lt_save_ifs"
  7253. if test "X$pkg" = "X$p"; then
  7254. enable_shared=yes
  7255. fi
  7256. done
  7257. IFS="$lt_save_ifs"
  7258. ;;
  7259. esac
  7260. else
  7261. enable_shared=yes
  7262. fi
  7263. # Check whether --enable-static was given.
  7264. if test "${enable_static+set}" = set; then :
  7265. enableval=$enable_static; p=${PACKAGE-default}
  7266. case $enableval in
  7267. yes) enable_static=yes ;;
  7268. no) enable_static=no ;;
  7269. *)
  7270. enable_static=no
  7271. # Look at the argument we got. We use all the common list separators.
  7272. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7273. for pkg in $enableval; do
  7274. IFS="$lt_save_ifs"
  7275. if test "X$pkg" = "X$p"; then
  7276. enable_static=yes
  7277. fi
  7278. done
  7279. IFS="$lt_save_ifs"
  7280. ;;
  7281. esac
  7282. else
  7283. enable_static=yes
  7284. fi
  7285. # Check whether --with-pic was given.
  7286. if test "${with_pic+set}" = set; then :
  7287. withval=$with_pic; pic_mode="$withval"
  7288. else
  7289. pic_mode=default
  7290. fi
  7291. test -z "$pic_mode" && pic_mode=default
  7292. # Check whether --enable-fast-install was given.
  7293. if test "${enable_fast_install+set}" = set; then :
  7294. enableval=$enable_fast_install; p=${PACKAGE-default}
  7295. case $enableval in
  7296. yes) enable_fast_install=yes ;;
  7297. no) enable_fast_install=no ;;
  7298. *)
  7299. enable_fast_install=no
  7300. # Look at the argument we got. We use all the common list separators.
  7301. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7302. for pkg in $enableval; do
  7303. IFS="$lt_save_ifs"
  7304. if test "X$pkg" = "X$p"; then
  7305. enable_fast_install=yes
  7306. fi
  7307. done
  7308. IFS="$lt_save_ifs"
  7309. ;;
  7310. esac
  7311. else
  7312. enable_fast_install=yes
  7313. fi
  7314. # This can be used to rebuild libtool when needed
  7315. LIBTOOL_DEPS="$ltmain"
  7316. # Always use our own libtool.
  7317. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7318. test -z "$LN_S" && LN_S="ln -s"
  7319. if test -n "${ZSH_VERSION+set}" ; then
  7320. setopt NO_GLOB_SUBST
  7321. fi
  7322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7323. $as_echo_n "checking for objdir... " >&6; }
  7324. if test "${lt_cv_objdir+set}" = set; then :
  7325. $as_echo_n "(cached) " >&6
  7326. else
  7327. rm -f .libs 2>/dev/null
  7328. mkdir .libs 2>/dev/null
  7329. if test -d .libs; then
  7330. lt_cv_objdir=.libs
  7331. else
  7332. # MS-DOS does not allow filenames that begin with a dot.
  7333. lt_cv_objdir=_libs
  7334. fi
  7335. rmdir .libs 2>/dev/null
  7336. fi
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7338. $as_echo "$lt_cv_objdir" >&6; }
  7339. objdir=$lt_cv_objdir
  7340. cat >>confdefs.h <<_ACEOF
  7341. #define LT_OBJDIR "$lt_cv_objdir/"
  7342. _ACEOF
  7343. case $host_os in
  7344. aix3*)
  7345. # AIX sometimes has problems with the GCC collect2 program. For some
  7346. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7347. # vanish in a puff of smoke.
  7348. if test "X${COLLECT_NAMES+set}" != Xset; then
  7349. COLLECT_NAMES=
  7350. export COLLECT_NAMES
  7351. fi
  7352. ;;
  7353. esac
  7354. # Global variables:
  7355. ofile=libtool
  7356. can_build_shared=yes
  7357. # All known linkers require a `.a' archive for static linking (except MSVC,
  7358. # which needs '.lib').
  7359. libext=a
  7360. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7361. old_CC="$CC"
  7362. old_CFLAGS="$CFLAGS"
  7363. # Set sane defaults for various variables
  7364. test -z "$CC" && CC=cc
  7365. test -z "$LTCC" && LTCC=$CC
  7366. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7367. test -z "$LD" && LD=ld
  7368. test -z "$ac_objext" && ac_objext=o
  7369. for cc_temp in $compiler""; do
  7370. case $cc_temp in
  7371. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7372. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7373. \-*) ;;
  7374. *) break;;
  7375. esac
  7376. done
  7377. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7378. # Only perform the check for file, if the check method requires it
  7379. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7380. case $deplibs_check_method in
  7381. file_magic*)
  7382. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7384. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7385. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7386. $as_echo_n "(cached) " >&6
  7387. else
  7388. case $MAGIC_CMD in
  7389. [\\/*] | ?:[\\/]*)
  7390. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7391. ;;
  7392. *)
  7393. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7394. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7395. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7396. for ac_dir in $ac_dummy; do
  7397. IFS="$lt_save_ifs"
  7398. test -z "$ac_dir" && ac_dir=.
  7399. if test -f $ac_dir/${ac_tool_prefix}file; then
  7400. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7401. if test -n "$file_magic_test_file"; then
  7402. case $deplibs_check_method in
  7403. "file_magic "*)
  7404. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7405. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7406. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7407. $EGREP "$file_magic_regex" > /dev/null; then
  7408. :
  7409. else
  7410. cat <<_LT_EOF 1>&2
  7411. *** Warning: the command libtool uses to detect shared libraries,
  7412. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7413. *** The result is that libtool may fail to recognize shared libraries
  7414. *** as such. This will affect the creation of libtool libraries that
  7415. *** depend on shared libraries, but programs linked with such libtool
  7416. *** libraries will work regardless of this problem. Nevertheless, you
  7417. *** may want to report the problem to your system manager and/or to
  7418. *** bug-libtool@gnu.org
  7419. _LT_EOF
  7420. fi ;;
  7421. esac
  7422. fi
  7423. break
  7424. fi
  7425. done
  7426. IFS="$lt_save_ifs"
  7427. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7428. ;;
  7429. esac
  7430. fi
  7431. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7432. if test -n "$MAGIC_CMD"; then
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7434. $as_echo "$MAGIC_CMD" >&6; }
  7435. else
  7436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7437. $as_echo "no" >&6; }
  7438. fi
  7439. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7440. if test -n "$ac_tool_prefix"; then
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7442. $as_echo_n "checking for file... " >&6; }
  7443. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7444. $as_echo_n "(cached) " >&6
  7445. else
  7446. case $MAGIC_CMD in
  7447. [\\/*] | ?:[\\/]*)
  7448. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7449. ;;
  7450. *)
  7451. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7452. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7453. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7454. for ac_dir in $ac_dummy; do
  7455. IFS="$lt_save_ifs"
  7456. test -z "$ac_dir" && ac_dir=.
  7457. if test -f $ac_dir/file; then
  7458. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7459. if test -n "$file_magic_test_file"; then
  7460. case $deplibs_check_method in
  7461. "file_magic "*)
  7462. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7463. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7464. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7465. $EGREP "$file_magic_regex" > /dev/null; then
  7466. :
  7467. else
  7468. cat <<_LT_EOF 1>&2
  7469. *** Warning: the command libtool uses to detect shared libraries,
  7470. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7471. *** The result is that libtool may fail to recognize shared libraries
  7472. *** as such. This will affect the creation of libtool libraries that
  7473. *** depend on shared libraries, but programs linked with such libtool
  7474. *** libraries will work regardless of this problem. Nevertheless, you
  7475. *** may want to report the problem to your system manager and/or to
  7476. *** bug-libtool@gnu.org
  7477. _LT_EOF
  7478. fi ;;
  7479. esac
  7480. fi
  7481. break
  7482. fi
  7483. done
  7484. IFS="$lt_save_ifs"
  7485. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7486. ;;
  7487. esac
  7488. fi
  7489. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7490. if test -n "$MAGIC_CMD"; then
  7491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7492. $as_echo "$MAGIC_CMD" >&6; }
  7493. else
  7494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7495. $as_echo "no" >&6; }
  7496. fi
  7497. else
  7498. MAGIC_CMD=:
  7499. fi
  7500. fi
  7501. fi
  7502. ;;
  7503. esac
  7504. # Use C for the default configuration in the libtool script
  7505. lt_save_CC="$CC"
  7506. ac_ext=c
  7507. ac_cpp='$CPP $CPPFLAGS'
  7508. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7509. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7510. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7511. # Source file extension for C test sources.
  7512. ac_ext=c
  7513. # Object file extension for compiled C test sources.
  7514. objext=o
  7515. objext=$objext
  7516. # Code to be used in simple compile tests
  7517. lt_simple_compile_test_code="int some_variable = 0;"
  7518. # Code to be used in simple link tests
  7519. lt_simple_link_test_code='int main(){return(0);}'
  7520. # If no C compiler was specified, use CC.
  7521. LTCC=${LTCC-"$CC"}
  7522. # If no C compiler flags were specified, use CFLAGS.
  7523. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7524. # Allow CC to be a program name with arguments.
  7525. compiler=$CC
  7526. # Save the default compiler, since it gets overwritten when the other
  7527. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7528. compiler_DEFAULT=$CC
  7529. # save warnings/boilerplate of simple test code
  7530. ac_outfile=conftest.$ac_objext
  7531. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7532. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7533. _lt_compiler_boilerplate=`cat conftest.err`
  7534. $RM conftest*
  7535. ac_outfile=conftest.$ac_objext
  7536. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7537. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7538. _lt_linker_boilerplate=`cat conftest.err`
  7539. $RM -r conftest*
  7540. ## CAVEAT EMPTOR:
  7541. ## There is no encapsulation within the following macros, do not change
  7542. ## the running order or otherwise move them around unless you know exactly
  7543. ## what you are doing...
  7544. if test -n "$compiler"; then
  7545. lt_prog_compiler_no_builtin_flag=
  7546. if test "$GCC" = yes; then
  7547. case $cc_basename in
  7548. nvcc*)
  7549. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7550. *)
  7551. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7552. esac
  7553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7554. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7555. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7556. $as_echo_n "(cached) " >&6
  7557. else
  7558. lt_cv_prog_compiler_rtti_exceptions=no
  7559. ac_outfile=conftest.$ac_objext
  7560. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7561. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7562. # Insert the option either (1) after the last *FLAGS variable, or
  7563. # (2) before a word containing "conftest.", or (3) at the end.
  7564. # Note that $ac_compile itself does not contain backslashes and begins
  7565. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7566. # The option is referenced via a variable to avoid confusing sed.
  7567. lt_compile=`echo "$ac_compile" | $SED \
  7568. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7569. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7570. -e 's:$: $lt_compiler_flag:'`
  7571. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7572. (eval "$lt_compile" 2>conftest.err)
  7573. ac_status=$?
  7574. cat conftest.err >&5
  7575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7576. if (exit $ac_status) && test -s "$ac_outfile"; then
  7577. # The compiler can only warn and ignore the option if not recognized
  7578. # So say no if there are warnings other than the usual output.
  7579. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7580. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7581. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7582. lt_cv_prog_compiler_rtti_exceptions=yes
  7583. fi
  7584. fi
  7585. $RM conftest*
  7586. fi
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7588. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7589. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7590. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7591. else
  7592. :
  7593. fi
  7594. fi
  7595. lt_prog_compiler_wl=
  7596. lt_prog_compiler_pic=
  7597. lt_prog_compiler_static=
  7598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7599. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7600. if test "$GCC" = yes; then
  7601. lt_prog_compiler_wl='-Wl,'
  7602. lt_prog_compiler_static='-static'
  7603. case $host_os in
  7604. aix*)
  7605. # All AIX code is PIC.
  7606. if test "$host_cpu" = ia64; then
  7607. # AIX 5 now supports IA64 processor
  7608. lt_prog_compiler_static='-Bstatic'
  7609. fi
  7610. lt_prog_compiler_pic='-fPIC'
  7611. ;;
  7612. amigaos*)
  7613. case $host_cpu in
  7614. powerpc)
  7615. # see comment about AmigaOS4 .so support
  7616. lt_prog_compiler_pic='-fPIC'
  7617. ;;
  7618. m68k)
  7619. # FIXME: we need at least 68020 code to build shared libraries, but
  7620. # adding the `-m68020' flag to GCC prevents building anything better,
  7621. # like `-m68040'.
  7622. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7623. ;;
  7624. esac
  7625. ;;
  7626. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7627. # PIC is the default for these OSes.
  7628. ;;
  7629. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7630. # This hack is so that the source file can tell whether it is being
  7631. # built for inclusion in a dll (and should export symbols for example).
  7632. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7633. # (--disable-auto-import) libraries
  7634. lt_prog_compiler_pic='-DDLL_EXPORT'
  7635. ;;
  7636. darwin* | rhapsody*)
  7637. # PIC is the default on this platform
  7638. # Common symbols not allowed in MH_DYLIB files
  7639. lt_prog_compiler_pic='-fno-common'
  7640. ;;
  7641. haiku*)
  7642. # PIC is the default for Haiku.
  7643. # The "-static" flag exists, but is broken.
  7644. lt_prog_compiler_static=
  7645. ;;
  7646. hpux*)
  7647. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7648. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7649. # sets the default TLS model and affects inlining.
  7650. case $host_cpu in
  7651. hppa*64*)
  7652. # +Z the default
  7653. ;;
  7654. *)
  7655. lt_prog_compiler_pic='-fPIC'
  7656. ;;
  7657. esac
  7658. ;;
  7659. interix[3-9]*)
  7660. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7661. # Instead, we relocate shared libraries at runtime.
  7662. ;;
  7663. msdosdjgpp*)
  7664. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7665. # on systems that don't support them.
  7666. lt_prog_compiler_can_build_shared=no
  7667. enable_shared=no
  7668. ;;
  7669. *nto* | *qnx*)
  7670. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7671. # it will coredump.
  7672. lt_prog_compiler_pic='-fPIC -shared'
  7673. ;;
  7674. sysv4*MP*)
  7675. if test -d /usr/nec; then
  7676. lt_prog_compiler_pic=-Kconform_pic
  7677. fi
  7678. ;;
  7679. *)
  7680. lt_prog_compiler_pic='-fPIC'
  7681. ;;
  7682. esac
  7683. case $cc_basename in
  7684. nvcc*) # Cuda Compiler Driver 2.2
  7685. lt_prog_compiler_wl='-Xlinker '
  7686. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7687. ;;
  7688. esac
  7689. else
  7690. # PORTME Check for flag to pass linker flags through the system compiler.
  7691. case $host_os in
  7692. aix*)
  7693. lt_prog_compiler_wl='-Wl,'
  7694. if test "$host_cpu" = ia64; then
  7695. # AIX 5 now supports IA64 processor
  7696. lt_prog_compiler_static='-Bstatic'
  7697. else
  7698. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7699. fi
  7700. ;;
  7701. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7702. # This hack is so that the source file can tell whether it is being
  7703. # built for inclusion in a dll (and should export symbols for example).
  7704. lt_prog_compiler_pic='-DDLL_EXPORT'
  7705. ;;
  7706. hpux9* | hpux10* | hpux11*)
  7707. lt_prog_compiler_wl='-Wl,'
  7708. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7709. # not for PA HP-UX.
  7710. case $host_cpu in
  7711. hppa*64*|ia64*)
  7712. # +Z the default
  7713. ;;
  7714. *)
  7715. lt_prog_compiler_pic='+Z'
  7716. ;;
  7717. esac
  7718. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7719. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7720. ;;
  7721. irix5* | irix6* | nonstopux*)
  7722. lt_prog_compiler_wl='-Wl,'
  7723. # PIC (with -KPIC) is the default.
  7724. lt_prog_compiler_static='-non_shared'
  7725. ;;
  7726. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7727. case $cc_basename in
  7728. # old Intel for x86_64 which still supported -KPIC.
  7729. ecc*)
  7730. lt_prog_compiler_wl='-Wl,'
  7731. lt_prog_compiler_pic='-KPIC'
  7732. lt_prog_compiler_static='-static'
  7733. ;;
  7734. # icc used to be incompatible with GCC.
  7735. # ICC 10 doesn't accept -KPIC any more.
  7736. icc* | ifort*)
  7737. lt_prog_compiler_wl='-Wl,'
  7738. lt_prog_compiler_pic='-fPIC'
  7739. lt_prog_compiler_static='-static'
  7740. ;;
  7741. # Lahey Fortran 8.1.
  7742. lf95*)
  7743. lt_prog_compiler_wl='-Wl,'
  7744. lt_prog_compiler_pic='--shared'
  7745. lt_prog_compiler_static='--static'
  7746. ;;
  7747. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7748. # Portland Group compilers (*not* the Pentium gcc compiler,
  7749. # which looks to be a dead project)
  7750. lt_prog_compiler_wl='-Wl,'
  7751. lt_prog_compiler_pic='-fpic'
  7752. lt_prog_compiler_static='-Bstatic'
  7753. ;;
  7754. ccc*)
  7755. lt_prog_compiler_wl='-Wl,'
  7756. # All Alpha code is PIC.
  7757. lt_prog_compiler_static='-non_shared'
  7758. ;;
  7759. xl* | bgxl* | bgf* | mpixl*)
  7760. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7761. lt_prog_compiler_wl='-Wl,'
  7762. lt_prog_compiler_pic='-qpic'
  7763. lt_prog_compiler_static='-qstaticlink'
  7764. ;;
  7765. *)
  7766. case `$CC -V 2>&1 | sed 5q` in
  7767. *Sun\ F* | *Sun*Fortran*)
  7768. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7769. lt_prog_compiler_pic='-KPIC'
  7770. lt_prog_compiler_static='-Bstatic'
  7771. lt_prog_compiler_wl=''
  7772. ;;
  7773. *Sun\ C*)
  7774. # Sun C 5.9
  7775. lt_prog_compiler_pic='-KPIC'
  7776. lt_prog_compiler_static='-Bstatic'
  7777. lt_prog_compiler_wl='-Wl,'
  7778. ;;
  7779. esac
  7780. ;;
  7781. esac
  7782. ;;
  7783. newsos6)
  7784. lt_prog_compiler_pic='-KPIC'
  7785. lt_prog_compiler_static='-Bstatic'
  7786. ;;
  7787. *nto* | *qnx*)
  7788. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7789. # it will coredump.
  7790. lt_prog_compiler_pic='-fPIC -shared'
  7791. ;;
  7792. osf3* | osf4* | osf5*)
  7793. lt_prog_compiler_wl='-Wl,'
  7794. # All OSF/1 code is PIC.
  7795. lt_prog_compiler_static='-non_shared'
  7796. ;;
  7797. rdos*)
  7798. lt_prog_compiler_static='-non_shared'
  7799. ;;
  7800. solaris*)
  7801. lt_prog_compiler_pic='-KPIC'
  7802. lt_prog_compiler_static='-Bstatic'
  7803. case $cc_basename in
  7804. f77* | f90* | f95*)
  7805. lt_prog_compiler_wl='-Qoption ld ';;
  7806. *)
  7807. lt_prog_compiler_wl='-Wl,';;
  7808. esac
  7809. ;;
  7810. sunos4*)
  7811. lt_prog_compiler_wl='-Qoption ld '
  7812. lt_prog_compiler_pic='-PIC'
  7813. lt_prog_compiler_static='-Bstatic'
  7814. ;;
  7815. sysv4 | sysv4.2uw2* | sysv4.3*)
  7816. lt_prog_compiler_wl='-Wl,'
  7817. lt_prog_compiler_pic='-KPIC'
  7818. lt_prog_compiler_static='-Bstatic'
  7819. ;;
  7820. sysv4*MP*)
  7821. if test -d /usr/nec ;then
  7822. lt_prog_compiler_pic='-Kconform_pic'
  7823. lt_prog_compiler_static='-Bstatic'
  7824. fi
  7825. ;;
  7826. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7827. lt_prog_compiler_wl='-Wl,'
  7828. lt_prog_compiler_pic='-KPIC'
  7829. lt_prog_compiler_static='-Bstatic'
  7830. ;;
  7831. unicos*)
  7832. lt_prog_compiler_wl='-Wl,'
  7833. lt_prog_compiler_can_build_shared=no
  7834. ;;
  7835. uts4*)
  7836. lt_prog_compiler_pic='-pic'
  7837. lt_prog_compiler_static='-Bstatic'
  7838. ;;
  7839. *)
  7840. lt_prog_compiler_can_build_shared=no
  7841. ;;
  7842. esac
  7843. fi
  7844. case $host_os in
  7845. # For platforms which do not support PIC, -DPIC is meaningless:
  7846. *djgpp*)
  7847. lt_prog_compiler_pic=
  7848. ;;
  7849. *)
  7850. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7851. ;;
  7852. esac
  7853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7854. $as_echo "$lt_prog_compiler_pic" >&6; }
  7855. #
  7856. # Check to make sure the PIC flag actually works.
  7857. #
  7858. if test -n "$lt_prog_compiler_pic"; then
  7859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7860. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7861. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7862. $as_echo_n "(cached) " >&6
  7863. else
  7864. lt_cv_prog_compiler_pic_works=no
  7865. ac_outfile=conftest.$ac_objext
  7866. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7867. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7868. # Insert the option either (1) after the last *FLAGS variable, or
  7869. # (2) before a word containing "conftest.", or (3) at the end.
  7870. # Note that $ac_compile itself does not contain backslashes and begins
  7871. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7872. # The option is referenced via a variable to avoid confusing sed.
  7873. lt_compile=`echo "$ac_compile" | $SED \
  7874. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7875. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7876. -e 's:$: $lt_compiler_flag:'`
  7877. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7878. (eval "$lt_compile" 2>conftest.err)
  7879. ac_status=$?
  7880. cat conftest.err >&5
  7881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7882. if (exit $ac_status) && test -s "$ac_outfile"; then
  7883. # The compiler can only warn and ignore the option if not recognized
  7884. # So say no if there are warnings other than the usual output.
  7885. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7886. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7887. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7888. lt_cv_prog_compiler_pic_works=yes
  7889. fi
  7890. fi
  7891. $RM conftest*
  7892. fi
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7894. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7895. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7896. case $lt_prog_compiler_pic in
  7897. "" | " "*) ;;
  7898. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7899. esac
  7900. else
  7901. lt_prog_compiler_pic=
  7902. lt_prog_compiler_can_build_shared=no
  7903. fi
  7904. fi
  7905. #
  7906. # Check to make sure the static flag actually works.
  7907. #
  7908. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7910. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7911. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7912. $as_echo_n "(cached) " >&6
  7913. else
  7914. lt_cv_prog_compiler_static_works=no
  7915. save_LDFLAGS="$LDFLAGS"
  7916. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7917. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7918. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7919. # The linker can only warn and ignore the option if not recognized
  7920. # So say no if there are warnings
  7921. if test -s conftest.err; then
  7922. # Append any errors to the config.log.
  7923. cat conftest.err 1>&5
  7924. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7925. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7926. if diff conftest.exp conftest.er2 >/dev/null; then
  7927. lt_cv_prog_compiler_static_works=yes
  7928. fi
  7929. else
  7930. lt_cv_prog_compiler_static_works=yes
  7931. fi
  7932. fi
  7933. $RM -r conftest*
  7934. LDFLAGS="$save_LDFLAGS"
  7935. fi
  7936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7937. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7938. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7939. :
  7940. else
  7941. lt_prog_compiler_static=
  7942. fi
  7943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7944. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7945. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7946. $as_echo_n "(cached) " >&6
  7947. else
  7948. lt_cv_prog_compiler_c_o=no
  7949. $RM -r conftest 2>/dev/null
  7950. mkdir conftest
  7951. cd conftest
  7952. mkdir out
  7953. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7954. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7955. # Insert the option either (1) after the last *FLAGS variable, or
  7956. # (2) before a word containing "conftest.", or (3) at the end.
  7957. # Note that $ac_compile itself does not contain backslashes and begins
  7958. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7959. lt_compile=`echo "$ac_compile" | $SED \
  7960. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7961. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7962. -e 's:$: $lt_compiler_flag:'`
  7963. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7964. (eval "$lt_compile" 2>out/conftest.err)
  7965. ac_status=$?
  7966. cat out/conftest.err >&5
  7967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7968. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7969. then
  7970. # The compiler can only warn and ignore the option if not recognized
  7971. # So say no if there are warnings
  7972. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7973. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7974. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7975. lt_cv_prog_compiler_c_o=yes
  7976. fi
  7977. fi
  7978. chmod u+w . 2>&5
  7979. $RM conftest*
  7980. # SGI C++ compiler will create directory out/ii_files/ for
  7981. # template instantiation
  7982. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7983. $RM out/* && rmdir out
  7984. cd ..
  7985. $RM -r conftest
  7986. $RM conftest*
  7987. fi
  7988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7989. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7991. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7992. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7993. $as_echo_n "(cached) " >&6
  7994. else
  7995. lt_cv_prog_compiler_c_o=no
  7996. $RM -r conftest 2>/dev/null
  7997. mkdir conftest
  7998. cd conftest
  7999. mkdir out
  8000. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8001. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8002. # Insert the option either (1) after the last *FLAGS variable, or
  8003. # (2) before a word containing "conftest.", or (3) at the end.
  8004. # Note that $ac_compile itself does not contain backslashes and begins
  8005. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8006. lt_compile=`echo "$ac_compile" | $SED \
  8007. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8008. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8009. -e 's:$: $lt_compiler_flag:'`
  8010. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8011. (eval "$lt_compile" 2>out/conftest.err)
  8012. ac_status=$?
  8013. cat out/conftest.err >&5
  8014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8015. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8016. then
  8017. # The compiler can only warn and ignore the option if not recognized
  8018. # So say no if there are warnings
  8019. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8020. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8021. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8022. lt_cv_prog_compiler_c_o=yes
  8023. fi
  8024. fi
  8025. chmod u+w . 2>&5
  8026. $RM conftest*
  8027. # SGI C++ compiler will create directory out/ii_files/ for
  8028. # template instantiation
  8029. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8030. $RM out/* && rmdir out
  8031. cd ..
  8032. $RM -r conftest
  8033. $RM conftest*
  8034. fi
  8035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8036. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8037. hard_links="nottested"
  8038. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8039. # do not overwrite the value of need_locks provided by the user
  8040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8041. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8042. hard_links=yes
  8043. $RM conftest*
  8044. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8045. touch conftest.a
  8046. ln conftest.a conftest.b 2>&5 || hard_links=no
  8047. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8049. $as_echo "$hard_links" >&6; }
  8050. if test "$hard_links" = no; then
  8051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8052. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8053. need_locks=warn
  8054. fi
  8055. else
  8056. need_locks=no
  8057. fi
  8058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8059. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8060. runpath_var=
  8061. allow_undefined_flag=
  8062. always_export_symbols=no
  8063. archive_cmds=
  8064. archive_expsym_cmds=
  8065. compiler_needs_object=no
  8066. enable_shared_with_static_runtimes=no
  8067. export_dynamic_flag_spec=
  8068. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8069. hardcode_automatic=no
  8070. hardcode_direct=no
  8071. hardcode_direct_absolute=no
  8072. hardcode_libdir_flag_spec=
  8073. hardcode_libdir_flag_spec_ld=
  8074. hardcode_libdir_separator=
  8075. hardcode_minus_L=no
  8076. hardcode_shlibpath_var=unsupported
  8077. inherit_rpath=no
  8078. link_all_deplibs=unknown
  8079. module_cmds=
  8080. module_expsym_cmds=
  8081. old_archive_from_new_cmds=
  8082. old_archive_from_expsyms_cmds=
  8083. thread_safe_flag_spec=
  8084. whole_archive_flag_spec=
  8085. # include_expsyms should be a list of space-separated symbols to be *always*
  8086. # included in the symbol list
  8087. include_expsyms=
  8088. # exclude_expsyms can be an extended regexp of symbols to exclude
  8089. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8090. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8091. # as well as any symbol that contains `d'.
  8092. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8093. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8094. # platforms (ab)use it in PIC code, but their linkers get confused if
  8095. # the symbol is explicitly referenced. Since portable code cannot
  8096. # rely on this symbol name, it's probably fine to never include it in
  8097. # preloaded symbol tables.
  8098. # Exclude shared library initialization/finalization symbols.
  8099. extract_expsyms_cmds=
  8100. case $host_os in
  8101. cygwin* | mingw* | pw32* | cegcc*)
  8102. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8103. # When not using gcc, we currently assume that we are using
  8104. # Microsoft Visual C++.
  8105. if test "$GCC" != yes; then
  8106. with_gnu_ld=no
  8107. fi
  8108. ;;
  8109. interix*)
  8110. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8111. with_gnu_ld=yes
  8112. ;;
  8113. openbsd*)
  8114. with_gnu_ld=no
  8115. ;;
  8116. esac
  8117. ld_shlibs=yes
  8118. # On some targets, GNU ld is compatible enough with the native linker
  8119. # that we're better off using the native interface for both.
  8120. lt_use_gnu_ld_interface=no
  8121. if test "$with_gnu_ld" = yes; then
  8122. case $host_os in
  8123. aix*)
  8124. # The AIX port of GNU ld has always aspired to compatibility
  8125. # with the native linker. However, as the warning in the GNU ld
  8126. # block says, versions before 2.19.5* couldn't really create working
  8127. # shared libraries, regardless of the interface used.
  8128. case `$LD -v 2>&1` in
  8129. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8130. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8131. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8132. *)
  8133. lt_use_gnu_ld_interface=yes
  8134. ;;
  8135. esac
  8136. ;;
  8137. *)
  8138. lt_use_gnu_ld_interface=yes
  8139. ;;
  8140. esac
  8141. fi
  8142. if test "$lt_use_gnu_ld_interface" = yes; then
  8143. # If archive_cmds runs LD, not CC, wlarc should be empty
  8144. wlarc='${wl}'
  8145. # Set some defaults for GNU ld with shared library support. These
  8146. # are reset later if shared libraries are not supported. Putting them
  8147. # here allows them to be overridden if necessary.
  8148. runpath_var=LD_RUN_PATH
  8149. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8150. export_dynamic_flag_spec='${wl}--export-dynamic'
  8151. # ancient GNU ld didn't support --whole-archive et. al.
  8152. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8153. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8154. else
  8155. whole_archive_flag_spec=
  8156. fi
  8157. supports_anon_versioning=no
  8158. case `$LD -v 2>&1` in
  8159. *GNU\ gold*) supports_anon_versioning=yes ;;
  8160. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8161. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8162. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8163. *\ 2.11.*) ;; # other 2.11 versions
  8164. *) supports_anon_versioning=yes ;;
  8165. esac
  8166. # See if GNU ld supports shared libraries.
  8167. case $host_os in
  8168. aix[3-9]*)
  8169. # On AIX/PPC, the GNU linker is very broken
  8170. if test "$host_cpu" != ia64; then
  8171. ld_shlibs=no
  8172. cat <<_LT_EOF 1>&2
  8173. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8174. *** to be unable to reliably create shared libraries on AIX.
  8175. *** Therefore, libtool is disabling shared libraries support. If you
  8176. *** really care for shared libraries, you may want to install binutils
  8177. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8178. *** You will then need to restart the configuration process.
  8179. _LT_EOF
  8180. fi
  8181. ;;
  8182. amigaos*)
  8183. case $host_cpu in
  8184. powerpc)
  8185. # see comment about AmigaOS4 .so support
  8186. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8187. archive_expsym_cmds=''
  8188. ;;
  8189. m68k)
  8190. 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)'
  8191. hardcode_libdir_flag_spec='-L$libdir'
  8192. hardcode_minus_L=yes
  8193. ;;
  8194. esac
  8195. ;;
  8196. beos*)
  8197. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8198. allow_undefined_flag=unsupported
  8199. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8200. # support --undefined. This deserves some investigation. FIXME
  8201. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8202. else
  8203. ld_shlibs=no
  8204. fi
  8205. ;;
  8206. cygwin* | mingw* | pw32* | cegcc*)
  8207. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8208. # as there is no search path for DLLs.
  8209. hardcode_libdir_flag_spec='-L$libdir'
  8210. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8211. allow_undefined_flag=unsupported
  8212. always_export_symbols=no
  8213. enable_shared_with_static_runtimes=yes
  8214. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8215. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8216. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8217. # If the export-symbols file already is a .def file (1st line
  8218. # is EXPORTS), use it as is; otherwise, prepend...
  8219. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8220. cp $export_symbols $output_objdir/$soname.def;
  8221. else
  8222. echo EXPORTS > $output_objdir/$soname.def;
  8223. cat $export_symbols >> $output_objdir/$soname.def;
  8224. fi~
  8225. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8226. else
  8227. ld_shlibs=no
  8228. fi
  8229. ;;
  8230. haiku*)
  8231. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8232. link_all_deplibs=yes
  8233. ;;
  8234. interix[3-9]*)
  8235. hardcode_direct=no
  8236. hardcode_shlibpath_var=no
  8237. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8238. export_dynamic_flag_spec='${wl}-E'
  8239. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8240. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8241. # default) and relocated if they conflict, which is a slow very memory
  8242. # consuming and fragmenting process. To avoid this, we pick a random,
  8243. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8244. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8245. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8246. 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'
  8247. ;;
  8248. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8249. tmp_diet=no
  8250. if test "$host_os" = linux-dietlibc; then
  8251. case $cc_basename in
  8252. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8253. esac
  8254. fi
  8255. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8256. && test "$tmp_diet" = no
  8257. then
  8258. tmp_addflag=' $pic_flag'
  8259. tmp_sharedflag='-shared'
  8260. case $cc_basename,$host_cpu in
  8261. pgcc*) # Portland Group C compiler
  8262. 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'
  8263. tmp_addflag=' $pic_flag'
  8264. ;;
  8265. pgf77* | pgf90* | pgf95* | pgfortran*)
  8266. # Portland Group f77 and f90 compilers
  8267. 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'
  8268. tmp_addflag=' $pic_flag -Mnomain' ;;
  8269. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8270. tmp_addflag=' -i_dynamic' ;;
  8271. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8272. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8273. ifc* | ifort*) # Intel Fortran compiler
  8274. tmp_addflag=' -nofor_main' ;;
  8275. lf95*) # Lahey Fortran 8.1
  8276. whole_archive_flag_spec=
  8277. tmp_sharedflag='--shared' ;;
  8278. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8279. tmp_sharedflag='-qmkshrobj'
  8280. tmp_addflag= ;;
  8281. nvcc*) # Cuda Compiler Driver 2.2
  8282. 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'
  8283. compiler_needs_object=yes
  8284. ;;
  8285. esac
  8286. case `$CC -V 2>&1 | sed 5q` in
  8287. *Sun\ C*) # Sun C 5.9
  8288. 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'
  8289. compiler_needs_object=yes
  8290. tmp_sharedflag='-G' ;;
  8291. *Sun\ F*) # Sun Fortran 8.3
  8292. tmp_sharedflag='-G' ;;
  8293. esac
  8294. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8295. if test "x$supports_anon_versioning" = xyes; then
  8296. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8297. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8298. echo "local: *; };" >> $output_objdir/$libname.ver~
  8299. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8300. fi
  8301. case $cc_basename in
  8302. xlf* | bgf* | bgxlf* | mpixlf*)
  8303. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8304. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8305. hardcode_libdir_flag_spec=
  8306. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8307. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8308. if test "x$supports_anon_versioning" = xyes; then
  8309. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8310. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8311. echo "local: *; };" >> $output_objdir/$libname.ver~
  8312. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8313. fi
  8314. ;;
  8315. esac
  8316. else
  8317. ld_shlibs=no
  8318. fi
  8319. ;;
  8320. netbsd*)
  8321. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8322. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8323. wlarc=
  8324. else
  8325. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8326. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8327. fi
  8328. ;;
  8329. solaris*)
  8330. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8331. ld_shlibs=no
  8332. cat <<_LT_EOF 1>&2
  8333. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8334. *** create shared libraries on Solaris systems. Therefore, libtool
  8335. *** is disabling shared libraries support. We urge you to upgrade GNU
  8336. *** binutils to release 2.9.1 or newer. Another option is to modify
  8337. *** your PATH or compiler configuration so that the native linker is
  8338. *** used, and then restart.
  8339. _LT_EOF
  8340. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8341. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8342. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8343. else
  8344. ld_shlibs=no
  8345. fi
  8346. ;;
  8347. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8348. case `$LD -v 2>&1` in
  8349. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8350. ld_shlibs=no
  8351. cat <<_LT_EOF 1>&2
  8352. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8353. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8354. *** is disabling shared libraries support. We urge you to upgrade GNU
  8355. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8356. *** your PATH or compiler configuration so that the native linker is
  8357. *** used, and then restart.
  8358. _LT_EOF
  8359. ;;
  8360. *)
  8361. # For security reasons, it is highly recommended that you always
  8362. # use absolute paths for naming shared libraries, and exclude the
  8363. # DT_RUNPATH tag from executables and libraries. But doing so
  8364. # requires that you compile everything twice, which is a pain.
  8365. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8366. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8367. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8368. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8369. else
  8370. ld_shlibs=no
  8371. fi
  8372. ;;
  8373. esac
  8374. ;;
  8375. sunos4*)
  8376. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8377. wlarc=
  8378. hardcode_direct=yes
  8379. hardcode_shlibpath_var=no
  8380. ;;
  8381. *)
  8382. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8383. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8384. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8385. else
  8386. ld_shlibs=no
  8387. fi
  8388. ;;
  8389. esac
  8390. if test "$ld_shlibs" = no; then
  8391. runpath_var=
  8392. hardcode_libdir_flag_spec=
  8393. export_dynamic_flag_spec=
  8394. whole_archive_flag_spec=
  8395. fi
  8396. else
  8397. # PORTME fill in a description of your system's linker (not GNU ld)
  8398. case $host_os in
  8399. aix3*)
  8400. allow_undefined_flag=unsupported
  8401. always_export_symbols=yes
  8402. 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'
  8403. # Note: this linker hardcodes the directories in LIBPATH if there
  8404. # are no directories specified by -L.
  8405. hardcode_minus_L=yes
  8406. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8407. # Neither direct hardcoding nor static linking is supported with a
  8408. # broken collect2.
  8409. hardcode_direct=unsupported
  8410. fi
  8411. ;;
  8412. aix[4-9]*)
  8413. if test "$host_cpu" = ia64; then
  8414. # On IA64, the linker does run time linking by default, so we don't
  8415. # have to do anything special.
  8416. aix_use_runtimelinking=no
  8417. exp_sym_flag='-Bexport'
  8418. no_entry_flag=""
  8419. else
  8420. # If we're using GNU nm, then we don't want the "-C" option.
  8421. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8422. # Also, AIX nm treats weak defined symbols like other global
  8423. # defined symbols, whereas GNU nm marks them as "W".
  8424. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8425. 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'
  8426. else
  8427. 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'
  8428. fi
  8429. aix_use_runtimelinking=no
  8430. # Test if we are trying to use run time linking or normal
  8431. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8432. # need to do runtime linking.
  8433. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8434. for ld_flag in $LDFLAGS; do
  8435. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8436. aix_use_runtimelinking=yes
  8437. break
  8438. fi
  8439. done
  8440. ;;
  8441. esac
  8442. exp_sym_flag='-bexport'
  8443. no_entry_flag='-bnoentry'
  8444. fi
  8445. # When large executables or shared objects are built, AIX ld can
  8446. # have problems creating the table of contents. If linking a library
  8447. # or program results in "error TOC overflow" add -mminimal-toc to
  8448. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8449. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8450. archive_cmds=''
  8451. hardcode_direct=yes
  8452. hardcode_direct_absolute=yes
  8453. hardcode_libdir_separator=':'
  8454. link_all_deplibs=yes
  8455. file_list_spec='${wl}-f,'
  8456. if test "$GCC" = yes; then
  8457. case $host_os in aix4.[012]|aix4.[012].*)
  8458. # We only want to do this on AIX 4.2 and lower, the check
  8459. # below for broken collect2 doesn't work under 4.3+
  8460. collect2name=`${CC} -print-prog-name=collect2`
  8461. if test -f "$collect2name" &&
  8462. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8463. then
  8464. # We have reworked collect2
  8465. :
  8466. else
  8467. # We have old collect2
  8468. hardcode_direct=unsupported
  8469. # It fails to find uninstalled libraries when the uninstalled
  8470. # path is not listed in the libpath. Setting hardcode_minus_L
  8471. # to unsupported forces relinking
  8472. hardcode_minus_L=yes
  8473. hardcode_libdir_flag_spec='-L$libdir'
  8474. hardcode_libdir_separator=
  8475. fi
  8476. ;;
  8477. esac
  8478. shared_flag='-shared'
  8479. if test "$aix_use_runtimelinking" = yes; then
  8480. shared_flag="$shared_flag "'${wl}-G'
  8481. fi
  8482. else
  8483. # not using gcc
  8484. if test "$host_cpu" = ia64; then
  8485. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8486. # chokes on -Wl,-G. The following line is correct:
  8487. shared_flag='-G'
  8488. else
  8489. if test "$aix_use_runtimelinking" = yes; then
  8490. shared_flag='${wl}-G'
  8491. else
  8492. shared_flag='${wl}-bM:SRE'
  8493. fi
  8494. fi
  8495. fi
  8496. export_dynamic_flag_spec='${wl}-bexpall'
  8497. # It seems that -bexpall does not export symbols beginning with
  8498. # underscore (_), so it is better to generate a list of symbols to export.
  8499. always_export_symbols=yes
  8500. if test "$aix_use_runtimelinking" = yes; then
  8501. # Warning - without using the other runtime loading flags (-brtl),
  8502. # -berok will link without error, but may produce a broken library.
  8503. allow_undefined_flag='-berok'
  8504. # Determine the default libpath from the value encoded in an
  8505. # empty executable.
  8506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8507. /* end confdefs.h. */
  8508. int
  8509. main ()
  8510. {
  8511. ;
  8512. return 0;
  8513. }
  8514. _ACEOF
  8515. if ac_fn_c_try_link "$LINENO"; then :
  8516. lt_aix_libpath_sed='
  8517. /Import File Strings/,/^$/ {
  8518. /^0/ {
  8519. s/^0 *\(.*\)$/\1/
  8520. p
  8521. }
  8522. }'
  8523. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8524. # Check for a 64-bit object if we didn't find anything.
  8525. if test -z "$aix_libpath"; then
  8526. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8527. fi
  8528. fi
  8529. rm -f core conftest.err conftest.$ac_objext \
  8530. conftest$ac_exeext conftest.$ac_ext
  8531. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8532. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8533. 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"
  8534. else
  8535. if test "$host_cpu" = ia64; then
  8536. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8537. allow_undefined_flag="-z nodefs"
  8538. 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"
  8539. else
  8540. # Determine the default libpath from the value encoded in an
  8541. # empty executable.
  8542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8543. /* end confdefs.h. */
  8544. int
  8545. main ()
  8546. {
  8547. ;
  8548. return 0;
  8549. }
  8550. _ACEOF
  8551. if ac_fn_c_try_link "$LINENO"; then :
  8552. lt_aix_libpath_sed='
  8553. /Import File Strings/,/^$/ {
  8554. /^0/ {
  8555. s/^0 *\(.*\)$/\1/
  8556. p
  8557. }
  8558. }'
  8559. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8560. # Check for a 64-bit object if we didn't find anything.
  8561. if test -z "$aix_libpath"; then
  8562. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8563. fi
  8564. fi
  8565. rm -f core conftest.err conftest.$ac_objext \
  8566. conftest$ac_exeext conftest.$ac_ext
  8567. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8568. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8569. # Warning - without using the other run time loading flags,
  8570. # -berok will link without error, but may produce a broken library.
  8571. no_undefined_flag=' ${wl}-bernotok'
  8572. allow_undefined_flag=' ${wl}-berok'
  8573. if test "$with_gnu_ld" = yes; then
  8574. # We only use this code for GNU lds that support --whole-archive.
  8575. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8576. else
  8577. # Exported symbols can be pulled into shared objects from archives
  8578. whole_archive_flag_spec='$convenience'
  8579. fi
  8580. archive_cmds_need_lc=yes
  8581. # This is similar to how AIX traditionally builds its shared libraries.
  8582. 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'
  8583. fi
  8584. fi
  8585. ;;
  8586. amigaos*)
  8587. case $host_cpu in
  8588. powerpc)
  8589. # see comment about AmigaOS4 .so support
  8590. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8591. archive_expsym_cmds=''
  8592. ;;
  8593. m68k)
  8594. 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)'
  8595. hardcode_libdir_flag_spec='-L$libdir'
  8596. hardcode_minus_L=yes
  8597. ;;
  8598. esac
  8599. ;;
  8600. bsdi[45]*)
  8601. export_dynamic_flag_spec=-rdynamic
  8602. ;;
  8603. cygwin* | mingw* | pw32* | cegcc*)
  8604. # When not using gcc, we currently assume that we are using
  8605. # Microsoft Visual C++.
  8606. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8607. # no search path for DLLs.
  8608. hardcode_libdir_flag_spec=' '
  8609. allow_undefined_flag=unsupported
  8610. # Tell ltmain to make .lib files, not .a files.
  8611. libext=lib
  8612. # Tell ltmain to make .dll files, not .so files.
  8613. shrext_cmds=".dll"
  8614. # FIXME: Setting linknames here is a bad hack.
  8615. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8616. # The linker will automatically build a .lib file if we build a DLL.
  8617. old_archive_from_new_cmds='true'
  8618. # FIXME: Should let the user specify the lib program.
  8619. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8620. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8621. enable_shared_with_static_runtimes=yes
  8622. ;;
  8623. darwin* | rhapsody*)
  8624. archive_cmds_need_lc=no
  8625. hardcode_direct=no
  8626. hardcode_automatic=yes
  8627. hardcode_shlibpath_var=unsupported
  8628. if test "$lt_cv_ld_force_load" = "yes"; then
  8629. 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\"`'
  8630. else
  8631. whole_archive_flag_spec=''
  8632. fi
  8633. link_all_deplibs=yes
  8634. allow_undefined_flag="$_lt_dar_allow_undefined"
  8635. case $cc_basename in
  8636. ifort*) _lt_dar_can_shared=yes ;;
  8637. *) _lt_dar_can_shared=$GCC ;;
  8638. esac
  8639. if test "$_lt_dar_can_shared" = "yes"; then
  8640. output_verbose_link_cmd=func_echo_all
  8641. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8642. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8643. 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}"
  8644. 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}"
  8645. else
  8646. ld_shlibs=no
  8647. fi
  8648. ;;
  8649. dgux*)
  8650. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8651. hardcode_libdir_flag_spec='-L$libdir'
  8652. hardcode_shlibpath_var=no
  8653. ;;
  8654. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8655. # support. Future versions do this automatically, but an explicit c++rt0.o
  8656. # does not break anything, and helps significantly (at the cost of a little
  8657. # extra space).
  8658. freebsd2.2*)
  8659. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8660. hardcode_libdir_flag_spec='-R$libdir'
  8661. hardcode_direct=yes
  8662. hardcode_shlibpath_var=no
  8663. ;;
  8664. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8665. freebsd2.*)
  8666. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8667. hardcode_direct=yes
  8668. hardcode_minus_L=yes
  8669. hardcode_shlibpath_var=no
  8670. ;;
  8671. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8672. freebsd* | dragonfly*)
  8673. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8674. hardcode_libdir_flag_spec='-R$libdir'
  8675. hardcode_direct=yes
  8676. hardcode_shlibpath_var=no
  8677. ;;
  8678. hpux9*)
  8679. if test "$GCC" = yes; then
  8680. 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'
  8681. else
  8682. 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'
  8683. fi
  8684. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8685. hardcode_libdir_separator=:
  8686. hardcode_direct=yes
  8687. # hardcode_minus_L: Not really in the search PATH,
  8688. # but as the default location of the library.
  8689. hardcode_minus_L=yes
  8690. export_dynamic_flag_spec='${wl}-E'
  8691. ;;
  8692. hpux10*)
  8693. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8694. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8695. else
  8696. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8697. fi
  8698. if test "$with_gnu_ld" = no; then
  8699. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8700. hardcode_libdir_flag_spec_ld='+b $libdir'
  8701. hardcode_libdir_separator=:
  8702. hardcode_direct=yes
  8703. hardcode_direct_absolute=yes
  8704. export_dynamic_flag_spec='${wl}-E'
  8705. # hardcode_minus_L: Not really in the search PATH,
  8706. # but as the default location of the library.
  8707. hardcode_minus_L=yes
  8708. fi
  8709. ;;
  8710. hpux11*)
  8711. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8712. case $host_cpu in
  8713. hppa*64*)
  8714. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8715. ;;
  8716. ia64*)
  8717. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8718. ;;
  8719. *)
  8720. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8721. ;;
  8722. esac
  8723. else
  8724. case $host_cpu in
  8725. hppa*64*)
  8726. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8727. ;;
  8728. ia64*)
  8729. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8730. ;;
  8731. *)
  8732. # Older versions of the 11.00 compiler do not understand -b yet
  8733. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8735. $as_echo_n "checking if $CC understands -b... " >&6; }
  8736. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8737. $as_echo_n "(cached) " >&6
  8738. else
  8739. lt_cv_prog_compiler__b=no
  8740. save_LDFLAGS="$LDFLAGS"
  8741. LDFLAGS="$LDFLAGS -b"
  8742. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8743. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8744. # The linker can only warn and ignore the option if not recognized
  8745. # So say no if there are warnings
  8746. if test -s conftest.err; then
  8747. # Append any errors to the config.log.
  8748. cat conftest.err 1>&5
  8749. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8750. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8751. if diff conftest.exp conftest.er2 >/dev/null; then
  8752. lt_cv_prog_compiler__b=yes
  8753. fi
  8754. else
  8755. lt_cv_prog_compiler__b=yes
  8756. fi
  8757. fi
  8758. $RM -r conftest*
  8759. LDFLAGS="$save_LDFLAGS"
  8760. fi
  8761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8762. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8763. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8764. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8765. else
  8766. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8767. fi
  8768. ;;
  8769. esac
  8770. fi
  8771. if test "$with_gnu_ld" = no; then
  8772. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8773. hardcode_libdir_separator=:
  8774. case $host_cpu in
  8775. hppa*64*|ia64*)
  8776. hardcode_direct=no
  8777. hardcode_shlibpath_var=no
  8778. ;;
  8779. *)
  8780. hardcode_direct=yes
  8781. hardcode_direct_absolute=yes
  8782. export_dynamic_flag_spec='${wl}-E'
  8783. # hardcode_minus_L: Not really in the search PATH,
  8784. # but as the default location of the library.
  8785. hardcode_minus_L=yes
  8786. ;;
  8787. esac
  8788. fi
  8789. ;;
  8790. irix5* | irix6* | nonstopux*)
  8791. if test "$GCC" = yes; then
  8792. 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'
  8793. # Try to use the -exported_symbol ld option, if it does not
  8794. # work, assume that -exports_file does not work either and
  8795. # implicitly export all symbols.
  8796. save_LDFLAGS="$LDFLAGS"
  8797. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8799. /* end confdefs.h. */
  8800. int foo(void) {}
  8801. _ACEOF
  8802. if ac_fn_c_try_link "$LINENO"; then :
  8803. 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'
  8804. fi
  8805. rm -f core conftest.err conftest.$ac_objext \
  8806. conftest$ac_exeext conftest.$ac_ext
  8807. LDFLAGS="$save_LDFLAGS"
  8808. else
  8809. 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'
  8810. 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'
  8811. fi
  8812. archive_cmds_need_lc='no'
  8813. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8814. hardcode_libdir_separator=:
  8815. inherit_rpath=yes
  8816. link_all_deplibs=yes
  8817. ;;
  8818. netbsd*)
  8819. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8820. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8821. else
  8822. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8823. fi
  8824. hardcode_libdir_flag_spec='-R$libdir'
  8825. hardcode_direct=yes
  8826. hardcode_shlibpath_var=no
  8827. ;;
  8828. newsos6)
  8829. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8830. hardcode_direct=yes
  8831. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8832. hardcode_libdir_separator=:
  8833. hardcode_shlibpath_var=no
  8834. ;;
  8835. *nto* | *qnx*)
  8836. ;;
  8837. openbsd*)
  8838. if test -f /usr/libexec/ld.so; then
  8839. hardcode_direct=yes
  8840. hardcode_shlibpath_var=no
  8841. hardcode_direct_absolute=yes
  8842. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8843. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8844. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8845. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8846. export_dynamic_flag_spec='${wl}-E'
  8847. else
  8848. case $host_os in
  8849. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8850. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8851. hardcode_libdir_flag_spec='-R$libdir'
  8852. ;;
  8853. *)
  8854. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8855. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8856. ;;
  8857. esac
  8858. fi
  8859. else
  8860. ld_shlibs=no
  8861. fi
  8862. ;;
  8863. os2*)
  8864. hardcode_libdir_flag_spec='-L$libdir'
  8865. hardcode_minus_L=yes
  8866. allow_undefined_flag=unsupported
  8867. 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'
  8868. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8869. ;;
  8870. osf3*)
  8871. if test "$GCC" = yes; then
  8872. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8873. 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'
  8874. else
  8875. allow_undefined_flag=' -expect_unresolved \*'
  8876. 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'
  8877. fi
  8878. archive_cmds_need_lc='no'
  8879. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8880. hardcode_libdir_separator=:
  8881. ;;
  8882. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8883. if test "$GCC" = yes; then
  8884. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8885. 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'
  8886. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8887. else
  8888. allow_undefined_flag=' -expect_unresolved \*'
  8889. 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'
  8890. 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~
  8891. $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'
  8892. # Both c and cxx compiler support -rpath directly
  8893. hardcode_libdir_flag_spec='-rpath $libdir'
  8894. fi
  8895. archive_cmds_need_lc='no'
  8896. hardcode_libdir_separator=:
  8897. ;;
  8898. solaris*)
  8899. no_undefined_flag=' -z defs'
  8900. if test "$GCC" = yes; then
  8901. wlarc='${wl}'
  8902. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8903. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8904. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8905. else
  8906. case `$CC -V 2>&1` in
  8907. *"Compilers 5.0"*)
  8908. wlarc=''
  8909. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8910. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8911. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8912. ;;
  8913. *)
  8914. wlarc='${wl}'
  8915. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8916. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8917. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8918. ;;
  8919. esac
  8920. fi
  8921. hardcode_libdir_flag_spec='-R$libdir'
  8922. hardcode_shlibpath_var=no
  8923. case $host_os in
  8924. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8925. *)
  8926. # The compiler driver will combine and reorder linker options,
  8927. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8928. # but is careful enough not to reorder.
  8929. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8930. if test "$GCC" = yes; then
  8931. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8932. else
  8933. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8934. fi
  8935. ;;
  8936. esac
  8937. link_all_deplibs=yes
  8938. ;;
  8939. sunos4*)
  8940. if test "x$host_vendor" = xsequent; then
  8941. # Use $CC to link under sequent, because it throws in some extra .o
  8942. # files that make .init and .fini sections work.
  8943. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8944. else
  8945. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8946. fi
  8947. hardcode_libdir_flag_spec='-L$libdir'
  8948. hardcode_direct=yes
  8949. hardcode_minus_L=yes
  8950. hardcode_shlibpath_var=no
  8951. ;;
  8952. sysv4)
  8953. case $host_vendor in
  8954. sni)
  8955. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8956. hardcode_direct=yes # is this really true???
  8957. ;;
  8958. siemens)
  8959. ## LD is ld it makes a PLAMLIB
  8960. ## CC just makes a GrossModule.
  8961. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8962. reload_cmds='$CC -r -o $output$reload_objs'
  8963. hardcode_direct=no
  8964. ;;
  8965. motorola)
  8966. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8967. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8968. ;;
  8969. esac
  8970. runpath_var='LD_RUN_PATH'
  8971. hardcode_shlibpath_var=no
  8972. ;;
  8973. sysv4.3*)
  8974. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8975. hardcode_shlibpath_var=no
  8976. export_dynamic_flag_spec='-Bexport'
  8977. ;;
  8978. sysv4*MP*)
  8979. if test -d /usr/nec; then
  8980. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8981. hardcode_shlibpath_var=no
  8982. runpath_var=LD_RUN_PATH
  8983. hardcode_runpath_var=yes
  8984. ld_shlibs=yes
  8985. fi
  8986. ;;
  8987. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8988. no_undefined_flag='${wl}-z,text'
  8989. archive_cmds_need_lc=no
  8990. hardcode_shlibpath_var=no
  8991. runpath_var='LD_RUN_PATH'
  8992. if test "$GCC" = yes; then
  8993. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8994. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8995. else
  8996. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8997. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8998. fi
  8999. ;;
  9000. sysv5* | sco3.2v5* | sco5v6*)
  9001. # Note: We can NOT use -z defs as we might desire, because we do not
  9002. # link with -lc, and that would cause any symbols used from libc to
  9003. # always be unresolved, which means just about no library would
  9004. # ever link correctly. If we're not using GNU ld we use -z text
  9005. # though, which does catch some bad symbols but isn't as heavy-handed
  9006. # as -z defs.
  9007. no_undefined_flag='${wl}-z,text'
  9008. allow_undefined_flag='${wl}-z,nodefs'
  9009. archive_cmds_need_lc=no
  9010. hardcode_shlibpath_var=no
  9011. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9012. hardcode_libdir_separator=':'
  9013. link_all_deplibs=yes
  9014. export_dynamic_flag_spec='${wl}-Bexport'
  9015. runpath_var='LD_RUN_PATH'
  9016. if test "$GCC" = yes; then
  9017. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9018. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9019. else
  9020. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9021. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9022. fi
  9023. ;;
  9024. uts4*)
  9025. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9026. hardcode_libdir_flag_spec='-L$libdir'
  9027. hardcode_shlibpath_var=no
  9028. ;;
  9029. *)
  9030. ld_shlibs=no
  9031. ;;
  9032. esac
  9033. if test x$host_vendor = xsni; then
  9034. case $host in
  9035. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9036. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9037. ;;
  9038. esac
  9039. fi
  9040. fi
  9041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9042. $as_echo "$ld_shlibs" >&6; }
  9043. test "$ld_shlibs" = no && can_build_shared=no
  9044. with_gnu_ld=$with_gnu_ld
  9045. #
  9046. # Do we need to explicitly link libc?
  9047. #
  9048. case "x$archive_cmds_need_lc" in
  9049. x|xyes)
  9050. # Assume -lc should be added
  9051. archive_cmds_need_lc=yes
  9052. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9053. case $archive_cmds in
  9054. *'~'*)
  9055. # FIXME: we may have to deal with multi-command sequences.
  9056. ;;
  9057. '$CC '*)
  9058. # Test whether the compiler implicitly links with -lc since on some
  9059. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9060. # to ld, don't add -lc before -lgcc.
  9061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9062. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9063. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  9064. $as_echo_n "(cached) " >&6
  9065. else
  9066. $RM conftest*
  9067. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9068. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9069. (eval $ac_compile) 2>&5
  9070. ac_status=$?
  9071. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9072. test $ac_status = 0; } 2>conftest.err; then
  9073. soname=conftest
  9074. lib=conftest
  9075. libobjs=conftest.$ac_objext
  9076. deplibs=
  9077. wl=$lt_prog_compiler_wl
  9078. pic_flag=$lt_prog_compiler_pic
  9079. compiler_flags=-v
  9080. linker_flags=-v
  9081. verstring=
  9082. output_objdir=.
  9083. libname=conftest
  9084. lt_save_allow_undefined_flag=$allow_undefined_flag
  9085. allow_undefined_flag=
  9086. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9087. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9088. ac_status=$?
  9089. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9090. test $ac_status = 0; }
  9091. then
  9092. lt_cv_archive_cmds_need_lc=no
  9093. else
  9094. lt_cv_archive_cmds_need_lc=yes
  9095. fi
  9096. allow_undefined_flag=$lt_save_allow_undefined_flag
  9097. else
  9098. cat conftest.err 1>&5
  9099. fi
  9100. $RM conftest*
  9101. fi
  9102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9103. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9104. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9105. ;;
  9106. esac
  9107. fi
  9108. ;;
  9109. esac
  9110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9111. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9112. if test "$GCC" = yes; then
  9113. case $host_os in
  9114. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9115. *) lt_awk_arg="/^libraries:/" ;;
  9116. esac
  9117. case $host_os in
  9118. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9119. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9120. esac
  9121. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9122. case $lt_search_path_spec in
  9123. *\;*)
  9124. # if the path contains ";" then we assume it to be the separator
  9125. # otherwise default to the standard path separator (i.e. ":") - it is
  9126. # assumed that no part of a normal pathname contains ";" but that should
  9127. # okay in the real world where ";" in dirpaths is itself problematic.
  9128. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9129. ;;
  9130. *)
  9131. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9132. ;;
  9133. esac
  9134. # Ok, now we have the path, separated by spaces, we can step through it
  9135. # and add multilib dir if necessary.
  9136. lt_tmp_lt_search_path_spec=
  9137. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9138. for lt_sys_path in $lt_search_path_spec; do
  9139. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9140. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9141. else
  9142. test -d "$lt_sys_path" && \
  9143. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9144. fi
  9145. done
  9146. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9147. BEGIN {RS=" "; FS="/|\n";} {
  9148. lt_foo="";
  9149. lt_count=0;
  9150. for (lt_i = NF; lt_i > 0; lt_i--) {
  9151. if ($lt_i != "" && $lt_i != ".") {
  9152. if ($lt_i == "..") {
  9153. lt_count++;
  9154. } else {
  9155. if (lt_count == 0) {
  9156. lt_foo="/" $lt_i lt_foo;
  9157. } else {
  9158. lt_count--;
  9159. }
  9160. }
  9161. }
  9162. }
  9163. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9164. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9165. }'`
  9166. # AWK program above erroneously prepends '/' to C:/dos/paths
  9167. # for these hosts.
  9168. case $host_os in
  9169. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9170. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9171. esac
  9172. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9173. else
  9174. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9175. fi
  9176. library_names_spec=
  9177. libname_spec='lib$name'
  9178. soname_spec=
  9179. shrext_cmds=".so"
  9180. postinstall_cmds=
  9181. postuninstall_cmds=
  9182. finish_cmds=
  9183. finish_eval=
  9184. shlibpath_var=
  9185. shlibpath_overrides_runpath=unknown
  9186. version_type=none
  9187. dynamic_linker="$host_os ld.so"
  9188. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9189. need_lib_prefix=unknown
  9190. hardcode_into_libs=no
  9191. # when you set need_version to no, make sure it does not cause -set_version
  9192. # flags to be left without arguments
  9193. need_version=unknown
  9194. case $host_os in
  9195. aix3*)
  9196. version_type=linux
  9197. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9198. shlibpath_var=LIBPATH
  9199. # AIX 3 has no versioning support, so we append a major version to the name.
  9200. soname_spec='${libname}${release}${shared_ext}$major'
  9201. ;;
  9202. aix[4-9]*)
  9203. version_type=linux
  9204. need_lib_prefix=no
  9205. need_version=no
  9206. hardcode_into_libs=yes
  9207. if test "$host_cpu" = ia64; then
  9208. # AIX 5 supports IA64
  9209. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9210. shlibpath_var=LD_LIBRARY_PATH
  9211. else
  9212. # With GCC up to 2.95.x, collect2 would create an import file
  9213. # for dependence libraries. The import file would start with
  9214. # the line `#! .'. This would cause the generated library to
  9215. # depend on `.', always an invalid library. This was fixed in
  9216. # development snapshots of GCC prior to 3.0.
  9217. case $host_os in
  9218. aix4 | aix4.[01] | aix4.[01].*)
  9219. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9220. echo ' yes '
  9221. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9222. :
  9223. else
  9224. can_build_shared=no
  9225. fi
  9226. ;;
  9227. esac
  9228. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9229. # soname into executable. Probably we can add versioning support to
  9230. # collect2, so additional links can be useful in future.
  9231. if test "$aix_use_runtimelinking" = yes; then
  9232. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9233. # instead of lib<name>.a to let people know that these are not
  9234. # typical AIX shared libraries.
  9235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9236. else
  9237. # We preserve .a as extension for shared libraries through AIX4.2
  9238. # and later when we are not doing run time linking.
  9239. library_names_spec='${libname}${release}.a $libname.a'
  9240. soname_spec='${libname}${release}${shared_ext}$major'
  9241. fi
  9242. shlibpath_var=LIBPATH
  9243. fi
  9244. ;;
  9245. amigaos*)
  9246. case $host_cpu in
  9247. powerpc)
  9248. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9249. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9250. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9251. ;;
  9252. m68k)
  9253. library_names_spec='$libname.ixlibrary $libname.a'
  9254. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9255. 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'
  9256. ;;
  9257. esac
  9258. ;;
  9259. beos*)
  9260. library_names_spec='${libname}${shared_ext}'
  9261. dynamic_linker="$host_os ld.so"
  9262. shlibpath_var=LIBRARY_PATH
  9263. ;;
  9264. bsdi[45]*)
  9265. version_type=linux
  9266. need_version=no
  9267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9268. soname_spec='${libname}${release}${shared_ext}$major'
  9269. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9270. shlibpath_var=LD_LIBRARY_PATH
  9271. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9272. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9273. # the default ld.so.conf also contains /usr/contrib/lib and
  9274. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9275. # libtool to hard-code these into programs
  9276. ;;
  9277. cygwin* | mingw* | pw32* | cegcc*)
  9278. version_type=windows
  9279. shrext_cmds=".dll"
  9280. need_version=no
  9281. need_lib_prefix=no
  9282. case $GCC,$host_os in
  9283. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9284. library_names_spec='$libname.dll.a'
  9285. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9286. postinstall_cmds='base_file=`basename \${file}`~
  9287. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9288. dldir=$destdir/`dirname \$dlpath`~
  9289. test -d \$dldir || mkdir -p \$dldir~
  9290. $install_prog $dir/$dlname \$dldir/$dlname~
  9291. chmod a+x \$dldir/$dlname~
  9292. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9293. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9294. fi'
  9295. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9296. dlpath=$dir/\$dldll~
  9297. $RM \$dlpath'
  9298. shlibpath_overrides_runpath=yes
  9299. case $host_os in
  9300. cygwin*)
  9301. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9302. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9303. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9304. ;;
  9305. mingw* | cegcc*)
  9306. # MinGW DLLs use traditional 'lib' prefix
  9307. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9308. ;;
  9309. pw32*)
  9310. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9311. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9312. ;;
  9313. esac
  9314. ;;
  9315. *)
  9316. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9317. ;;
  9318. esac
  9319. dynamic_linker='Win32 ld.exe'
  9320. # FIXME: first we should search . and the directory the executable is in
  9321. shlibpath_var=PATH
  9322. ;;
  9323. darwin* | rhapsody*)
  9324. dynamic_linker="$host_os dyld"
  9325. version_type=darwin
  9326. need_lib_prefix=no
  9327. need_version=no
  9328. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9329. soname_spec='${libname}${release}${major}$shared_ext'
  9330. shlibpath_overrides_runpath=yes
  9331. shlibpath_var=DYLD_LIBRARY_PATH
  9332. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9333. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9334. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9335. ;;
  9336. dgux*)
  9337. version_type=linux
  9338. need_lib_prefix=no
  9339. need_version=no
  9340. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9341. soname_spec='${libname}${release}${shared_ext}$major'
  9342. shlibpath_var=LD_LIBRARY_PATH
  9343. ;;
  9344. freebsd* | dragonfly*)
  9345. # DragonFly does not have aout. When/if they implement a new
  9346. # versioning mechanism, adjust this.
  9347. if test -x /usr/bin/objformat; then
  9348. objformat=`/usr/bin/objformat`
  9349. else
  9350. case $host_os in
  9351. freebsd[23].*) objformat=aout ;;
  9352. *) objformat=elf ;;
  9353. esac
  9354. fi
  9355. version_type=freebsd-$objformat
  9356. case $version_type in
  9357. freebsd-elf*)
  9358. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9359. need_version=no
  9360. need_lib_prefix=no
  9361. ;;
  9362. freebsd-*)
  9363. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9364. need_version=yes
  9365. ;;
  9366. esac
  9367. shlibpath_var=LD_LIBRARY_PATH
  9368. case $host_os in
  9369. freebsd2.*)
  9370. shlibpath_overrides_runpath=yes
  9371. ;;
  9372. freebsd3.[01]* | freebsdelf3.[01]*)
  9373. shlibpath_overrides_runpath=yes
  9374. hardcode_into_libs=yes
  9375. ;;
  9376. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9377. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9378. shlibpath_overrides_runpath=no
  9379. hardcode_into_libs=yes
  9380. ;;
  9381. *) # from 4.6 on, and DragonFly
  9382. shlibpath_overrides_runpath=yes
  9383. hardcode_into_libs=yes
  9384. ;;
  9385. esac
  9386. ;;
  9387. gnu*)
  9388. version_type=linux
  9389. need_lib_prefix=no
  9390. need_version=no
  9391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9392. soname_spec='${libname}${release}${shared_ext}$major'
  9393. shlibpath_var=LD_LIBRARY_PATH
  9394. hardcode_into_libs=yes
  9395. ;;
  9396. haiku*)
  9397. version_type=linux
  9398. need_lib_prefix=no
  9399. need_version=no
  9400. dynamic_linker="$host_os runtime_loader"
  9401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9402. soname_spec='${libname}${release}${shared_ext}$major'
  9403. shlibpath_var=LIBRARY_PATH
  9404. shlibpath_overrides_runpath=yes
  9405. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9406. hardcode_into_libs=yes
  9407. ;;
  9408. hpux9* | hpux10* | hpux11*)
  9409. # Give a soname corresponding to the major version so that dld.sl refuses to
  9410. # link against other versions.
  9411. version_type=sunos
  9412. need_lib_prefix=no
  9413. need_version=no
  9414. case $host_cpu in
  9415. ia64*)
  9416. shrext_cmds='.so'
  9417. hardcode_into_libs=yes
  9418. dynamic_linker="$host_os dld.so"
  9419. shlibpath_var=LD_LIBRARY_PATH
  9420. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9421. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9422. soname_spec='${libname}${release}${shared_ext}$major'
  9423. if test "X$HPUX_IA64_MODE" = X32; then
  9424. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9425. else
  9426. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9427. fi
  9428. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9429. ;;
  9430. hppa*64*)
  9431. shrext_cmds='.sl'
  9432. hardcode_into_libs=yes
  9433. dynamic_linker="$host_os dld.sl"
  9434. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9435. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9436. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9437. soname_spec='${libname}${release}${shared_ext}$major'
  9438. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9439. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9440. ;;
  9441. *)
  9442. shrext_cmds='.sl'
  9443. dynamic_linker="$host_os dld.sl"
  9444. shlibpath_var=SHLIB_PATH
  9445. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9446. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9447. soname_spec='${libname}${release}${shared_ext}$major'
  9448. ;;
  9449. esac
  9450. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9451. postinstall_cmds='chmod 555 $lib'
  9452. # or fails outright, so override atomically:
  9453. install_override_mode=555
  9454. ;;
  9455. interix[3-9]*)
  9456. version_type=linux
  9457. need_lib_prefix=no
  9458. need_version=no
  9459. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9460. soname_spec='${libname}${release}${shared_ext}$major'
  9461. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9462. shlibpath_var=LD_LIBRARY_PATH
  9463. shlibpath_overrides_runpath=no
  9464. hardcode_into_libs=yes
  9465. ;;
  9466. irix5* | irix6* | nonstopux*)
  9467. case $host_os in
  9468. nonstopux*) version_type=nonstopux ;;
  9469. *)
  9470. if test "$lt_cv_prog_gnu_ld" = yes; then
  9471. version_type=linux
  9472. else
  9473. version_type=irix
  9474. fi ;;
  9475. esac
  9476. need_lib_prefix=no
  9477. need_version=no
  9478. soname_spec='${libname}${release}${shared_ext}$major'
  9479. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9480. case $host_os in
  9481. irix5* | nonstopux*)
  9482. libsuff= shlibsuff=
  9483. ;;
  9484. *)
  9485. case $LD in # libtool.m4 will add one of these switches to LD
  9486. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9487. libsuff= shlibsuff= libmagic=32-bit;;
  9488. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9489. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9490. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9491. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9492. *) libsuff= shlibsuff= libmagic=never-match;;
  9493. esac
  9494. ;;
  9495. esac
  9496. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9497. shlibpath_overrides_runpath=no
  9498. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9499. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9500. hardcode_into_libs=yes
  9501. ;;
  9502. # No shared lib support for Linux oldld, aout, or coff.
  9503. linux*oldld* | linux*aout* | linux*coff*)
  9504. dynamic_linker=no
  9505. ;;
  9506. # This must be Linux ELF.
  9507. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9508. version_type=linux
  9509. need_lib_prefix=no
  9510. need_version=no
  9511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9512. soname_spec='${libname}${release}${shared_ext}$major'
  9513. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9514. shlibpath_var=LD_LIBRARY_PATH
  9515. shlibpath_overrides_runpath=no
  9516. # Some binutils ld are patched to set DT_RUNPATH
  9517. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9518. $as_echo_n "(cached) " >&6
  9519. else
  9520. lt_cv_shlibpath_overrides_runpath=no
  9521. save_LDFLAGS=$LDFLAGS
  9522. save_libdir=$libdir
  9523. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9524. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9526. /* end confdefs.h. */
  9527. int
  9528. main ()
  9529. {
  9530. ;
  9531. return 0;
  9532. }
  9533. _ACEOF
  9534. if ac_fn_c_try_link "$LINENO"; then :
  9535. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9536. lt_cv_shlibpath_overrides_runpath=yes
  9537. fi
  9538. fi
  9539. rm -f core conftest.err conftest.$ac_objext \
  9540. conftest$ac_exeext conftest.$ac_ext
  9541. LDFLAGS=$save_LDFLAGS
  9542. libdir=$save_libdir
  9543. fi
  9544. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9545. # This implies no fast_install, which is unacceptable.
  9546. # Some rework will be needed to allow for fast_install
  9547. # before this can be enabled.
  9548. hardcode_into_libs=yes
  9549. # Append ld.so.conf contents to the search path
  9550. if test -f /etc/ld.so.conf; then
  9551. 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' ' '`
  9552. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9553. fi
  9554. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9555. # powerpc, because MkLinux only supported shared libraries with the
  9556. # GNU dynamic linker. Since this was broken with cross compilers,
  9557. # most powerpc-linux boxes support dynamic linking these days and
  9558. # people can always --disable-shared, the test was removed, and we
  9559. # assume the GNU/Linux dynamic linker is in use.
  9560. dynamic_linker='GNU/Linux ld.so'
  9561. ;;
  9562. netbsd*)
  9563. version_type=sunos
  9564. need_lib_prefix=no
  9565. need_version=no
  9566. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9568. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9569. dynamic_linker='NetBSD (a.out) ld.so'
  9570. else
  9571. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9572. soname_spec='${libname}${release}${shared_ext}$major'
  9573. dynamic_linker='NetBSD ld.elf_so'
  9574. fi
  9575. shlibpath_var=LD_LIBRARY_PATH
  9576. shlibpath_overrides_runpath=yes
  9577. hardcode_into_libs=yes
  9578. ;;
  9579. newsos6)
  9580. version_type=linux
  9581. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9582. shlibpath_var=LD_LIBRARY_PATH
  9583. shlibpath_overrides_runpath=yes
  9584. ;;
  9585. *nto* | *qnx*)
  9586. version_type=qnx
  9587. need_lib_prefix=no
  9588. need_version=no
  9589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9590. soname_spec='${libname}${release}${shared_ext}$major'
  9591. shlibpath_var=LD_LIBRARY_PATH
  9592. shlibpath_overrides_runpath=no
  9593. hardcode_into_libs=yes
  9594. dynamic_linker='ldqnx.so'
  9595. ;;
  9596. openbsd*)
  9597. version_type=sunos
  9598. sys_lib_dlsearch_path_spec="/usr/lib"
  9599. need_lib_prefix=no
  9600. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9601. case $host_os in
  9602. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9603. *) need_version=no ;;
  9604. esac
  9605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9606. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9607. shlibpath_var=LD_LIBRARY_PATH
  9608. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9609. case $host_os in
  9610. openbsd2.[89] | openbsd2.[89].*)
  9611. shlibpath_overrides_runpath=no
  9612. ;;
  9613. *)
  9614. shlibpath_overrides_runpath=yes
  9615. ;;
  9616. esac
  9617. else
  9618. shlibpath_overrides_runpath=yes
  9619. fi
  9620. ;;
  9621. os2*)
  9622. libname_spec='$name'
  9623. shrext_cmds=".dll"
  9624. need_lib_prefix=no
  9625. library_names_spec='$libname${shared_ext} $libname.a'
  9626. dynamic_linker='OS/2 ld.exe'
  9627. shlibpath_var=LIBPATH
  9628. ;;
  9629. osf3* | osf4* | osf5*)
  9630. version_type=osf
  9631. need_lib_prefix=no
  9632. need_version=no
  9633. soname_spec='${libname}${release}${shared_ext}$major'
  9634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9635. shlibpath_var=LD_LIBRARY_PATH
  9636. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9637. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9638. ;;
  9639. rdos*)
  9640. dynamic_linker=no
  9641. ;;
  9642. solaris*)
  9643. version_type=linux
  9644. need_lib_prefix=no
  9645. need_version=no
  9646. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9647. soname_spec='${libname}${release}${shared_ext}$major'
  9648. shlibpath_var=LD_LIBRARY_PATH
  9649. shlibpath_overrides_runpath=yes
  9650. hardcode_into_libs=yes
  9651. # ldd complains unless libraries are executable
  9652. postinstall_cmds='chmod +x $lib'
  9653. ;;
  9654. sunos4*)
  9655. version_type=sunos
  9656. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9657. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9658. shlibpath_var=LD_LIBRARY_PATH
  9659. shlibpath_overrides_runpath=yes
  9660. if test "$with_gnu_ld" = yes; then
  9661. need_lib_prefix=no
  9662. fi
  9663. need_version=yes
  9664. ;;
  9665. sysv4 | sysv4.3*)
  9666. version_type=linux
  9667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9668. soname_spec='${libname}${release}${shared_ext}$major'
  9669. shlibpath_var=LD_LIBRARY_PATH
  9670. case $host_vendor in
  9671. sni)
  9672. shlibpath_overrides_runpath=no
  9673. need_lib_prefix=no
  9674. runpath_var=LD_RUN_PATH
  9675. ;;
  9676. siemens)
  9677. need_lib_prefix=no
  9678. ;;
  9679. motorola)
  9680. need_lib_prefix=no
  9681. need_version=no
  9682. shlibpath_overrides_runpath=no
  9683. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9684. ;;
  9685. esac
  9686. ;;
  9687. sysv4*MP*)
  9688. if test -d /usr/nec ;then
  9689. version_type=linux
  9690. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9691. soname_spec='$libname${shared_ext}.$major'
  9692. shlibpath_var=LD_LIBRARY_PATH
  9693. fi
  9694. ;;
  9695. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9696. version_type=freebsd-elf
  9697. need_lib_prefix=no
  9698. need_version=no
  9699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9700. soname_spec='${libname}${release}${shared_ext}$major'
  9701. shlibpath_var=LD_LIBRARY_PATH
  9702. shlibpath_overrides_runpath=yes
  9703. hardcode_into_libs=yes
  9704. if test "$with_gnu_ld" = yes; then
  9705. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9706. else
  9707. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9708. case $host_os in
  9709. sco3.2v5*)
  9710. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9711. ;;
  9712. esac
  9713. fi
  9714. sys_lib_dlsearch_path_spec='/usr/lib'
  9715. ;;
  9716. tpf*)
  9717. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9718. version_type=linux
  9719. need_lib_prefix=no
  9720. need_version=no
  9721. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9722. shlibpath_var=LD_LIBRARY_PATH
  9723. shlibpath_overrides_runpath=no
  9724. hardcode_into_libs=yes
  9725. ;;
  9726. uts4*)
  9727. version_type=linux
  9728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9729. soname_spec='${libname}${release}${shared_ext}$major'
  9730. shlibpath_var=LD_LIBRARY_PATH
  9731. ;;
  9732. *)
  9733. dynamic_linker=no
  9734. ;;
  9735. esac
  9736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9737. $as_echo "$dynamic_linker" >&6; }
  9738. test "$dynamic_linker" = no && can_build_shared=no
  9739. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9740. if test "$GCC" = yes; then
  9741. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9742. fi
  9743. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9744. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9745. fi
  9746. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9747. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9748. fi
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9750. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9751. hardcode_action=
  9752. if test -n "$hardcode_libdir_flag_spec" ||
  9753. test -n "$runpath_var" ||
  9754. test "X$hardcode_automatic" = "Xyes" ; then
  9755. # We can hardcode non-existent directories.
  9756. if test "$hardcode_direct" != no &&
  9757. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9758. # have to relink, otherwise we might link with an installed library
  9759. # when we should be linking with a yet-to-be-installed one
  9760. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9761. test "$hardcode_minus_L" != no; then
  9762. # Linking always hardcodes the temporary library directory.
  9763. hardcode_action=relink
  9764. else
  9765. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9766. hardcode_action=immediate
  9767. fi
  9768. else
  9769. # We cannot hardcode anything, or else we can only hardcode existing
  9770. # directories.
  9771. hardcode_action=unsupported
  9772. fi
  9773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9774. $as_echo "$hardcode_action" >&6; }
  9775. if test "$hardcode_action" = relink ||
  9776. test "$inherit_rpath" = yes; then
  9777. # Fast installation is not supported
  9778. enable_fast_install=no
  9779. elif test "$shlibpath_overrides_runpath" = yes ||
  9780. test "$enable_shared" = no; then
  9781. # Fast installation is not necessary
  9782. enable_fast_install=needless
  9783. fi
  9784. if test "x$enable_dlopen" != xyes; then
  9785. enable_dlopen=unknown
  9786. enable_dlopen_self=unknown
  9787. enable_dlopen_self_static=unknown
  9788. else
  9789. lt_cv_dlopen=no
  9790. lt_cv_dlopen_libs=
  9791. case $host_os in
  9792. beos*)
  9793. lt_cv_dlopen="load_add_on"
  9794. lt_cv_dlopen_libs=
  9795. lt_cv_dlopen_self=yes
  9796. ;;
  9797. mingw* | pw32* | cegcc*)
  9798. lt_cv_dlopen="LoadLibrary"
  9799. lt_cv_dlopen_libs=
  9800. ;;
  9801. cygwin*)
  9802. lt_cv_dlopen="dlopen"
  9803. lt_cv_dlopen_libs=
  9804. ;;
  9805. darwin*)
  9806. # if libdl is installed we need to link against it
  9807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9808. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9809. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9810. $as_echo_n "(cached) " >&6
  9811. else
  9812. ac_check_lib_save_LIBS=$LIBS
  9813. LIBS="-ldl $LIBS"
  9814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9815. /* end confdefs.h. */
  9816. /* Override any GCC internal prototype to avoid an error.
  9817. Use char because int might match the return type of a GCC
  9818. builtin and then its argument prototype would still apply. */
  9819. #ifdef __cplusplus
  9820. extern "C"
  9821. #endif
  9822. char dlopen ();
  9823. int
  9824. main ()
  9825. {
  9826. return dlopen ();
  9827. ;
  9828. return 0;
  9829. }
  9830. _ACEOF
  9831. if ac_fn_c_try_link "$LINENO"; then :
  9832. ac_cv_lib_dl_dlopen=yes
  9833. else
  9834. ac_cv_lib_dl_dlopen=no
  9835. fi
  9836. rm -f core conftest.err conftest.$ac_objext \
  9837. conftest$ac_exeext conftest.$ac_ext
  9838. LIBS=$ac_check_lib_save_LIBS
  9839. fi
  9840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9841. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9842. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9843. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9844. else
  9845. lt_cv_dlopen="dyld"
  9846. lt_cv_dlopen_libs=
  9847. lt_cv_dlopen_self=yes
  9848. fi
  9849. ;;
  9850. *)
  9851. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9852. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9853. lt_cv_dlopen="shl_load"
  9854. else
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9856. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9857. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9858. $as_echo_n "(cached) " >&6
  9859. else
  9860. ac_check_lib_save_LIBS=$LIBS
  9861. LIBS="-ldld $LIBS"
  9862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9863. /* end confdefs.h. */
  9864. /* Override any GCC internal prototype to avoid an error.
  9865. Use char because int might match the return type of a GCC
  9866. builtin and then its argument prototype would still apply. */
  9867. #ifdef __cplusplus
  9868. extern "C"
  9869. #endif
  9870. char shl_load ();
  9871. int
  9872. main ()
  9873. {
  9874. return shl_load ();
  9875. ;
  9876. return 0;
  9877. }
  9878. _ACEOF
  9879. if ac_fn_c_try_link "$LINENO"; then :
  9880. ac_cv_lib_dld_shl_load=yes
  9881. else
  9882. ac_cv_lib_dld_shl_load=no
  9883. fi
  9884. rm -f core conftest.err conftest.$ac_objext \
  9885. conftest$ac_exeext conftest.$ac_ext
  9886. LIBS=$ac_check_lib_save_LIBS
  9887. fi
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9889. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9890. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9891. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9892. else
  9893. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9894. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9895. lt_cv_dlopen="dlopen"
  9896. else
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9898. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9899. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9900. $as_echo_n "(cached) " >&6
  9901. else
  9902. ac_check_lib_save_LIBS=$LIBS
  9903. LIBS="-ldl $LIBS"
  9904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9905. /* end confdefs.h. */
  9906. /* Override any GCC internal prototype to avoid an error.
  9907. Use char because int might match the return type of a GCC
  9908. builtin and then its argument prototype would still apply. */
  9909. #ifdef __cplusplus
  9910. extern "C"
  9911. #endif
  9912. char dlopen ();
  9913. int
  9914. main ()
  9915. {
  9916. return dlopen ();
  9917. ;
  9918. return 0;
  9919. }
  9920. _ACEOF
  9921. if ac_fn_c_try_link "$LINENO"; then :
  9922. ac_cv_lib_dl_dlopen=yes
  9923. else
  9924. ac_cv_lib_dl_dlopen=no
  9925. fi
  9926. rm -f core conftest.err conftest.$ac_objext \
  9927. conftest$ac_exeext conftest.$ac_ext
  9928. LIBS=$ac_check_lib_save_LIBS
  9929. fi
  9930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9931. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9932. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9933. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9934. else
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9936. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9937. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9938. $as_echo_n "(cached) " >&6
  9939. else
  9940. ac_check_lib_save_LIBS=$LIBS
  9941. LIBS="-lsvld $LIBS"
  9942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9943. /* end confdefs.h. */
  9944. /* Override any GCC internal prototype to avoid an error.
  9945. Use char because int might match the return type of a GCC
  9946. builtin and then its argument prototype would still apply. */
  9947. #ifdef __cplusplus
  9948. extern "C"
  9949. #endif
  9950. char dlopen ();
  9951. int
  9952. main ()
  9953. {
  9954. return dlopen ();
  9955. ;
  9956. return 0;
  9957. }
  9958. _ACEOF
  9959. if ac_fn_c_try_link "$LINENO"; then :
  9960. ac_cv_lib_svld_dlopen=yes
  9961. else
  9962. ac_cv_lib_svld_dlopen=no
  9963. fi
  9964. rm -f core conftest.err conftest.$ac_objext \
  9965. conftest$ac_exeext conftest.$ac_ext
  9966. LIBS=$ac_check_lib_save_LIBS
  9967. fi
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9969. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9970. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9971. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9972. else
  9973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9974. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9975. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9976. $as_echo_n "(cached) " >&6
  9977. else
  9978. ac_check_lib_save_LIBS=$LIBS
  9979. LIBS="-ldld $LIBS"
  9980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9981. /* end confdefs.h. */
  9982. /* Override any GCC internal prototype to avoid an error.
  9983. Use char because int might match the return type of a GCC
  9984. builtin and then its argument prototype would still apply. */
  9985. #ifdef __cplusplus
  9986. extern "C"
  9987. #endif
  9988. char dld_link ();
  9989. int
  9990. main ()
  9991. {
  9992. return dld_link ();
  9993. ;
  9994. return 0;
  9995. }
  9996. _ACEOF
  9997. if ac_fn_c_try_link "$LINENO"; then :
  9998. ac_cv_lib_dld_dld_link=yes
  9999. else
  10000. ac_cv_lib_dld_dld_link=no
  10001. fi
  10002. rm -f core conftest.err conftest.$ac_objext \
  10003. conftest$ac_exeext conftest.$ac_ext
  10004. LIBS=$ac_check_lib_save_LIBS
  10005. fi
  10006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10007. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10008. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10009. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10010. fi
  10011. fi
  10012. fi
  10013. fi
  10014. fi
  10015. fi
  10016. ;;
  10017. esac
  10018. if test "x$lt_cv_dlopen" != xno; then
  10019. enable_dlopen=yes
  10020. else
  10021. enable_dlopen=no
  10022. fi
  10023. case $lt_cv_dlopen in
  10024. dlopen)
  10025. save_CPPFLAGS="$CPPFLAGS"
  10026. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10027. save_LDFLAGS="$LDFLAGS"
  10028. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10029. save_LIBS="$LIBS"
  10030. LIBS="$lt_cv_dlopen_libs $LIBS"
  10031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10032. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10033. if test "${lt_cv_dlopen_self+set}" = set; then :
  10034. $as_echo_n "(cached) " >&6
  10035. else
  10036. if test "$cross_compiling" = yes; then :
  10037. lt_cv_dlopen_self=cross
  10038. else
  10039. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10040. lt_status=$lt_dlunknown
  10041. cat > conftest.$ac_ext <<_LT_EOF
  10042. #line 12328 "configure"
  10043. #include "confdefs.h"
  10044. #if HAVE_DLFCN_H
  10045. #include <dlfcn.h>
  10046. #endif
  10047. #include <stdio.h>
  10048. #ifdef RTLD_GLOBAL
  10049. # define LT_DLGLOBAL RTLD_GLOBAL
  10050. #else
  10051. # ifdef DL_GLOBAL
  10052. # define LT_DLGLOBAL DL_GLOBAL
  10053. # else
  10054. # define LT_DLGLOBAL 0
  10055. # endif
  10056. #endif
  10057. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10058. find out it does not work in some platform. */
  10059. #ifndef LT_DLLAZY_OR_NOW
  10060. # ifdef RTLD_LAZY
  10061. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10062. # else
  10063. # ifdef DL_LAZY
  10064. # define LT_DLLAZY_OR_NOW DL_LAZY
  10065. # else
  10066. # ifdef RTLD_NOW
  10067. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10068. # else
  10069. # ifdef DL_NOW
  10070. # define LT_DLLAZY_OR_NOW DL_NOW
  10071. # else
  10072. # define LT_DLLAZY_OR_NOW 0
  10073. # endif
  10074. # endif
  10075. # endif
  10076. # endif
  10077. #endif
  10078. /* When -fvisbility=hidden is used, assume the code has been annotated
  10079. correspondingly for the symbols needed. */
  10080. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10081. void fnord () __attribute__((visibility("default")));
  10082. #endif
  10083. void fnord () { int i=42; }
  10084. int main ()
  10085. {
  10086. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10087. int status = $lt_dlunknown;
  10088. if (self)
  10089. {
  10090. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10091. else
  10092. {
  10093. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10094. else puts (dlerror ());
  10095. }
  10096. /* dlclose (self); */
  10097. }
  10098. else
  10099. puts (dlerror ());
  10100. return status;
  10101. }
  10102. _LT_EOF
  10103. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10104. (eval $ac_link) 2>&5
  10105. ac_status=$?
  10106. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10107. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10108. (./conftest; exit; ) >&5 2>/dev/null
  10109. lt_status=$?
  10110. case x$lt_status in
  10111. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10112. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10113. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10114. esac
  10115. else :
  10116. # compilation failed
  10117. lt_cv_dlopen_self=no
  10118. fi
  10119. fi
  10120. rm -fr conftest*
  10121. fi
  10122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10123. $as_echo "$lt_cv_dlopen_self" >&6; }
  10124. if test "x$lt_cv_dlopen_self" = xyes; then
  10125. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10127. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10128. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10129. $as_echo_n "(cached) " >&6
  10130. else
  10131. if test "$cross_compiling" = yes; then :
  10132. lt_cv_dlopen_self_static=cross
  10133. else
  10134. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10135. lt_status=$lt_dlunknown
  10136. cat > conftest.$ac_ext <<_LT_EOF
  10137. #line 12434 "configure"
  10138. #include "confdefs.h"
  10139. #if HAVE_DLFCN_H
  10140. #include <dlfcn.h>
  10141. #endif
  10142. #include <stdio.h>
  10143. #ifdef RTLD_GLOBAL
  10144. # define LT_DLGLOBAL RTLD_GLOBAL
  10145. #else
  10146. # ifdef DL_GLOBAL
  10147. # define LT_DLGLOBAL DL_GLOBAL
  10148. # else
  10149. # define LT_DLGLOBAL 0
  10150. # endif
  10151. #endif
  10152. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10153. find out it does not work in some platform. */
  10154. #ifndef LT_DLLAZY_OR_NOW
  10155. # ifdef RTLD_LAZY
  10156. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10157. # else
  10158. # ifdef DL_LAZY
  10159. # define LT_DLLAZY_OR_NOW DL_LAZY
  10160. # else
  10161. # ifdef RTLD_NOW
  10162. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10163. # else
  10164. # ifdef DL_NOW
  10165. # define LT_DLLAZY_OR_NOW DL_NOW
  10166. # else
  10167. # define LT_DLLAZY_OR_NOW 0
  10168. # endif
  10169. # endif
  10170. # endif
  10171. # endif
  10172. #endif
  10173. /* When -fvisbility=hidden is used, assume the code has been annotated
  10174. correspondingly for the symbols needed. */
  10175. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10176. void fnord () __attribute__((visibility("default")));
  10177. #endif
  10178. void fnord () { int i=42; }
  10179. int main ()
  10180. {
  10181. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10182. int status = $lt_dlunknown;
  10183. if (self)
  10184. {
  10185. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10186. else
  10187. {
  10188. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10189. else puts (dlerror ());
  10190. }
  10191. /* dlclose (self); */
  10192. }
  10193. else
  10194. puts (dlerror ());
  10195. return status;
  10196. }
  10197. _LT_EOF
  10198. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10199. (eval $ac_link) 2>&5
  10200. ac_status=$?
  10201. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10202. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10203. (./conftest; exit; ) >&5 2>/dev/null
  10204. lt_status=$?
  10205. case x$lt_status in
  10206. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10207. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10208. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10209. esac
  10210. else :
  10211. # compilation failed
  10212. lt_cv_dlopen_self_static=no
  10213. fi
  10214. fi
  10215. rm -fr conftest*
  10216. fi
  10217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10218. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10219. fi
  10220. CPPFLAGS="$save_CPPFLAGS"
  10221. LDFLAGS="$save_LDFLAGS"
  10222. LIBS="$save_LIBS"
  10223. ;;
  10224. esac
  10225. case $lt_cv_dlopen_self in
  10226. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10227. *) enable_dlopen_self=unknown ;;
  10228. esac
  10229. case $lt_cv_dlopen_self_static in
  10230. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10231. *) enable_dlopen_self_static=unknown ;;
  10232. esac
  10233. fi
  10234. striplib=
  10235. old_striplib=
  10236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10237. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10238. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10239. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10240. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10242. $as_echo "yes" >&6; }
  10243. else
  10244. # FIXME - insert some real tests, host_os isn't really good enough
  10245. case $host_os in
  10246. darwin*)
  10247. if test -n "$STRIP" ; then
  10248. striplib="$STRIP -x"
  10249. old_striplib="$STRIP -S"
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10251. $as_echo "yes" >&6; }
  10252. else
  10253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10254. $as_echo "no" >&6; }
  10255. fi
  10256. ;;
  10257. *)
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10259. $as_echo "no" >&6; }
  10260. ;;
  10261. esac
  10262. fi
  10263. # Report which library types will actually be built
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10265. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10267. $as_echo "$can_build_shared" >&6; }
  10268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10269. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10270. test "$can_build_shared" = "no" && enable_shared=no
  10271. # On AIX, shared libraries and static libraries use the same namespace, and
  10272. # are all built from PIC.
  10273. case $host_os in
  10274. aix3*)
  10275. test "$enable_shared" = yes && enable_static=no
  10276. if test -n "$RANLIB"; then
  10277. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10278. postinstall_cmds='$RANLIB $lib'
  10279. fi
  10280. ;;
  10281. aix[4-9]*)
  10282. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10283. test "$enable_shared" = yes && enable_static=no
  10284. fi
  10285. ;;
  10286. esac
  10287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10288. $as_echo "$enable_shared" >&6; }
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10290. $as_echo_n "checking whether to build static libraries... " >&6; }
  10291. # Make sure either enable_shared or enable_static is yes.
  10292. test "$enable_shared" = yes || enable_static=yes
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10294. $as_echo "$enable_static" >&6; }
  10295. fi
  10296. ac_ext=c
  10297. ac_cpp='$CPP $CPPFLAGS'
  10298. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10299. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10300. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10301. CC="$lt_save_CC"
  10302. ac_config_commands="$ac_config_commands libtool"
  10303. # Only expand once:
  10304. . ${srcdir}/../../bfd/configure.host
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10306. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10307. # Check whether --enable-maintainer-mode was given.
  10308. if test "${enable_maintainer_mode+set}" = set; then :
  10309. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10310. else
  10311. USE_MAINTAINER_MODE=no
  10312. fi
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10314. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10315. if test $USE_MAINTAINER_MODE = yes; then
  10316. MAINTAINER_MODE_TRUE=
  10317. MAINTAINER_MODE_FALSE='#'
  10318. else
  10319. MAINTAINER_MODE_TRUE='#'
  10320. MAINTAINER_MODE_FALSE=
  10321. fi
  10322. MAINT=$MAINTAINER_MODE_TRUE
  10323. # Check whether --enable-sim-bswap was given.
  10324. if test "${enable_sim_bswap+set}" = set; then :
  10325. enableval=$enable_sim_bswap; case "${enableval}" in
  10326. yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
  10327. no) sim_bswap="-DWITH_BSWAP=0";;
  10328. *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
  10329. esac
  10330. if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
  10331. echo "Setting bswap flags = $sim_bswap" 6>&1
  10332. fi
  10333. else
  10334. sim_bswap=""
  10335. fi
  10336. # Check whether --enable-sim-cflags was given.
  10337. if test "${enable_sim_cflags+set}" = set; then :
  10338. enableval=$enable_sim_cflags; case "${enableval}" in
  10339. yes) sim_cflags="-O2 -fomit-frame-pointer";;
  10340. trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
  10341. no) sim_cflags="";;
  10342. *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10343. esac
  10344. if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
  10345. echo "Setting sim cflags = $sim_cflags" 6>&1
  10346. fi
  10347. else
  10348. sim_cflags=""
  10349. fi
  10350. # Check whether --enable-sim-debug was given.
  10351. if test "${enable_sim_debug+set}" = set; then :
  10352. enableval=$enable_sim_debug; case "${enableval}" in
  10353. yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
  10354. no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
  10355. *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
  10356. esac
  10357. if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
  10358. echo "Setting sim debug = $sim_debug" 6>&1
  10359. fi
  10360. else
  10361. sim_debug=""
  10362. fi
  10363. # Check whether --enable-sim-stdio was given.
  10364. if test "${enable_sim_stdio+set}" = set; then :
  10365. enableval=$enable_sim_stdio; case "${enableval}" in
  10366. yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
  10367. no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
  10368. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
  10369. esac
  10370. if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
  10371. echo "Setting stdio flags = $sim_stdio" 6>&1
  10372. fi
  10373. else
  10374. sim_stdio=""
  10375. fi
  10376. # Check whether --enable-sim-trace was given.
  10377. if test "${enable_sim_trace+set}" = set; then :
  10378. enableval=$enable_sim_trace; case "${enableval}" in
  10379. yes) sim_trace="-DWITH_TRACE=-1";;
  10380. no) sim_trace="-DWITH_TRACE=0";;
  10381. [-0-9]*)
  10382. sim_trace="-DWITH_TRACE='(${enableval})'";;
  10383. [[:lower:]]*)
  10384. sim_trace=""
  10385. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10386. if test x"$sim_trace" = x; then
  10387. sim_trace="-DWITH_TRACE='(TRACE_$x"
  10388. else
  10389. sim_trace="${sim_trace}|TRACE_$x"
  10390. fi
  10391. done
  10392. sim_trace="$sim_trace)'" ;;
  10393. esac
  10394. if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
  10395. echo "Setting sim trace = $sim_trace" 6>&1
  10396. fi
  10397. else
  10398. sim_trace=""
  10399. fi
  10400. # Check whether --enable-sim-profile was given.
  10401. if test "${enable_sim_profile+set}" = set; then :
  10402. enableval=$enable_sim_profile; case "${enableval}" in
  10403. yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
  10404. no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
  10405. [-0-9]*)
  10406. sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
  10407. [a-z]*)
  10408. sim_profile=""
  10409. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10410. if test x"$sim_profile" = x; then
  10411. sim_profile="-DWITH_PROFILE='(PROFILE_$x"
  10412. else
  10413. sim_profile="${sim_profile}|PROFILE_$x"
  10414. fi
  10415. done
  10416. sim_profile="$sim_profile)'" ;;
  10417. esac
  10418. if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
  10419. echo "Setting sim profile = $sim_profile" 6>&1
  10420. fi
  10421. else
  10422. sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
  10423. fi
  10424. # Check whether --with-pkgversion was given.
  10425. if test "${with_pkgversion+set}" = set; then :
  10426. withval=$with_pkgversion; case "$withval" in
  10427. yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
  10428. no) PKGVERSION= ;;
  10429. *) PKGVERSION="($withval) " ;;
  10430. esac
  10431. else
  10432. PKGVERSION="(SIM) "
  10433. fi
  10434. # Check whether --with-bugurl was given.
  10435. if test "${with_bugurl+set}" = set; then :
  10436. withval=$with_bugurl; case "$withval" in
  10437. yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
  10438. no) BUGURL=
  10439. ;;
  10440. *) BUGURL="$withval"
  10441. ;;
  10442. esac
  10443. else
  10444. BUGURL="http://www.gnu.org/software/gdb/bugs/"
  10445. fi
  10446. case ${BUGURL} in
  10447. "")
  10448. REPORT_BUGS_TO=
  10449. REPORT_BUGS_TEXI=
  10450. ;;
  10451. *)
  10452. REPORT_BUGS_TO="<$BUGURL>"
  10453. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  10454. ;;
  10455. esac;
  10456. cat >>confdefs.h <<_ACEOF
  10457. #define PKGVERSION "$PKGVERSION"
  10458. _ACEOF
  10459. cat >>confdefs.h <<_ACEOF
  10460. #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
  10461. _ACEOF
  10462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  10463. $as_echo_n "checking return type of signal handlers... " >&6; }
  10464. if test "${ac_cv_type_signal+set}" = set; then :
  10465. $as_echo_n "(cached) " >&6
  10466. else
  10467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10468. /* end confdefs.h. */
  10469. #include <sys/types.h>
  10470. #include <signal.h>
  10471. int
  10472. main ()
  10473. {
  10474. return *(signal (0, 0)) (0) == 1;
  10475. ;
  10476. return 0;
  10477. }
  10478. _ACEOF
  10479. if ac_fn_c_try_compile "$LINENO"; then :
  10480. ac_cv_type_signal=int
  10481. else
  10482. ac_cv_type_signal=void
  10483. fi
  10484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10485. fi
  10486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  10487. $as_echo "$ac_cv_type_signal" >&6; }
  10488. cat >>confdefs.h <<_ACEOF
  10489. #define RETSIGTYPE $ac_cv_type_signal
  10490. _ACEOF
  10491. sim_link_files=
  10492. sim_link_links=
  10493. # targ-vals.def points to the libc macro description file.
  10494. case "${target}" in
  10495. *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
  10496. esac
  10497. sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
  10498. sim_link_links="${sim_link_links} targ-vals.def"
  10499. wire_endian="BIG_ENDIAN"
  10500. default_endian=""
  10501. # Check whether --enable-sim-endian was given.
  10502. if test "${enable_sim_endian+set}" = set; then :
  10503. enableval=$enable_sim_endian; case "${enableval}" in
  10504. b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
  10505. l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
  10506. yes) if test x"$wire_endian" != x; then
  10507. sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
  10508. else
  10509. if test x"$default_endian" != x; then
  10510. sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
  10511. else
  10512. echo "No hard-wired endian for target $target" 1>&6
  10513. sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
  10514. fi
  10515. fi;;
  10516. no) if test x"$default_endian" != x; then
  10517. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
  10518. else
  10519. if test x"$wire_endian" != x; then
  10520. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
  10521. else
  10522. echo "No default endian for target $target" 1>&6
  10523. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
  10524. fi
  10525. fi;;
  10526. *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
  10527. esac
  10528. if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
  10529. echo "Setting endian flags = $sim_endian" 6>&1
  10530. fi
  10531. else
  10532. if test x"$default_endian" != x; then
  10533. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
  10534. else
  10535. if test x"$wire_endian" != x; then
  10536. sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
  10537. else
  10538. sim_endian=
  10539. fi
  10540. fi
  10541. fi
  10542. wire_alignment="STRICT_ALIGNMENT"
  10543. default_alignment=""
  10544. # Check whether --enable-sim-alignment was given.
  10545. if test "${enable_sim_alignment+set}" = set; then :
  10546. enableval=$enable_sim_alignment; case "${enableval}" in
  10547. strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
  10548. nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
  10549. forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
  10550. yes) if test x"$wire_alignment" != x; then
  10551. sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
  10552. else
  10553. if test x"$default_alignment" != x; then
  10554. sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
  10555. else
  10556. echo "No hard-wired alignment for target $target" 1>&6
  10557. sim_alignment="-DWITH_ALIGNMENT=0"
  10558. fi
  10559. fi;;
  10560. no) if test x"$default_alignment" != x; then
  10561. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
  10562. else
  10563. if test x"$wire_alignment" != x; then
  10564. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
  10565. else
  10566. echo "No default alignment for target $target" 1>&6
  10567. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
  10568. fi
  10569. fi;;
  10570. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
  10571. esac
  10572. if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
  10573. echo "Setting alignment flags = $sim_alignment" 6>&1
  10574. fi
  10575. else
  10576. if test x"$default_alignment" != x; then
  10577. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
  10578. else
  10579. if test x"$wire_alignment" != x; then
  10580. sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
  10581. else
  10582. sim_alignment=
  10583. fi
  10584. fi
  10585. fi
  10586. # Check whether --enable-sim-hostendian was given.
  10587. if test "${enable_sim_hostendian+set}" = set; then :
  10588. enableval=$enable_sim_hostendian; case "${enableval}" in
  10589. no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
  10590. b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
  10591. l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
  10592. *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
  10593. esac
  10594. if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
  10595. echo "Setting hostendian flags = $sim_hostendian" 6>&1
  10596. fi
  10597. else
  10598. if test "x$cross_compiling" = "xno"; then
  10599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  10600. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  10601. if test "${ac_cv_c_bigendian+set}" = set; then :
  10602. $as_echo_n "(cached) " >&6
  10603. else
  10604. ac_cv_c_bigendian=unknown
  10605. # See if we're dealing with a universal compiler.
  10606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10607. /* end confdefs.h. */
  10608. #ifndef __APPLE_CC__
  10609. not a universal capable compiler
  10610. #endif
  10611. typedef int dummy;
  10612. _ACEOF
  10613. if ac_fn_c_try_compile "$LINENO"; then :
  10614. # Check for potential -arch flags. It is not universal unless
  10615. # there are at least two -arch flags with different values.
  10616. ac_arch=
  10617. ac_prev=
  10618. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  10619. if test -n "$ac_prev"; then
  10620. case $ac_word in
  10621. i?86 | x86_64 | ppc | ppc64)
  10622. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  10623. ac_arch=$ac_word
  10624. else
  10625. ac_cv_c_bigendian=universal
  10626. break
  10627. fi
  10628. ;;
  10629. esac
  10630. ac_prev=
  10631. elif test "x$ac_word" = "x-arch"; then
  10632. ac_prev=arch
  10633. fi
  10634. done
  10635. fi
  10636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10637. if test $ac_cv_c_bigendian = unknown; then
  10638. # See if sys/param.h defines the BYTE_ORDER macro.
  10639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10640. /* end confdefs.h. */
  10641. #include <sys/types.h>
  10642. #include <sys/param.h>
  10643. int
  10644. main ()
  10645. {
  10646. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  10647. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  10648. && LITTLE_ENDIAN)
  10649. bogus endian macros
  10650. #endif
  10651. ;
  10652. return 0;
  10653. }
  10654. _ACEOF
  10655. if ac_fn_c_try_compile "$LINENO"; then :
  10656. # It does; now see whether it defined to BIG_ENDIAN or not.
  10657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10658. /* end confdefs.h. */
  10659. #include <sys/types.h>
  10660. #include <sys/param.h>
  10661. int
  10662. main ()
  10663. {
  10664. #if BYTE_ORDER != BIG_ENDIAN
  10665. not big endian
  10666. #endif
  10667. ;
  10668. return 0;
  10669. }
  10670. _ACEOF
  10671. if ac_fn_c_try_compile "$LINENO"; then :
  10672. ac_cv_c_bigendian=yes
  10673. else
  10674. ac_cv_c_bigendian=no
  10675. fi
  10676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10677. fi
  10678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10679. fi
  10680. if test $ac_cv_c_bigendian = unknown; then
  10681. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  10682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10683. /* end confdefs.h. */
  10684. #include <limits.h>
  10685. int
  10686. main ()
  10687. {
  10688. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  10689. bogus endian macros
  10690. #endif
  10691. ;
  10692. return 0;
  10693. }
  10694. _ACEOF
  10695. if ac_fn_c_try_compile "$LINENO"; then :
  10696. # It does; now see whether it defined to _BIG_ENDIAN or not.
  10697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10698. /* end confdefs.h. */
  10699. #include <limits.h>
  10700. int
  10701. main ()
  10702. {
  10703. #ifndef _BIG_ENDIAN
  10704. not big endian
  10705. #endif
  10706. ;
  10707. return 0;
  10708. }
  10709. _ACEOF
  10710. if ac_fn_c_try_compile "$LINENO"; then :
  10711. ac_cv_c_bigendian=yes
  10712. else
  10713. ac_cv_c_bigendian=no
  10714. fi
  10715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10716. fi
  10717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10718. fi
  10719. if test $ac_cv_c_bigendian = unknown; then
  10720. # Compile a test program.
  10721. if test "$cross_compiling" = yes; then :
  10722. # Try to guess by grepping values from an object file.
  10723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10724. /* end confdefs.h. */
  10725. short int ascii_mm[] =
  10726. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  10727. short int ascii_ii[] =
  10728. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  10729. int use_ascii (int i) {
  10730. return ascii_mm[i] + ascii_ii[i];
  10731. }
  10732. short int ebcdic_ii[] =
  10733. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  10734. short int ebcdic_mm[] =
  10735. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  10736. int use_ebcdic (int i) {
  10737. return ebcdic_mm[i] + ebcdic_ii[i];
  10738. }
  10739. extern int foo;
  10740. int
  10741. main ()
  10742. {
  10743. return use_ascii (foo) == use_ebcdic (foo);
  10744. ;
  10745. return 0;
  10746. }
  10747. _ACEOF
  10748. if ac_fn_c_try_compile "$LINENO"; then :
  10749. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  10750. ac_cv_c_bigendian=yes
  10751. fi
  10752. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  10753. if test "$ac_cv_c_bigendian" = unknown; then
  10754. ac_cv_c_bigendian=no
  10755. else
  10756. # finding both strings is unlikely to happen, but who knows?
  10757. ac_cv_c_bigendian=unknown
  10758. fi
  10759. fi
  10760. fi
  10761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10762. else
  10763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10764. /* end confdefs.h. */
  10765. $ac_includes_default
  10766. int
  10767. main ()
  10768. {
  10769. /* Are we little or big endian? From Harbison&Steele. */
  10770. union
  10771. {
  10772. long int l;
  10773. char c[sizeof (long int)];
  10774. } u;
  10775. u.l = 1;
  10776. return u.c[sizeof (long int) - 1] == 1;
  10777. ;
  10778. return 0;
  10779. }
  10780. _ACEOF
  10781. if ac_fn_c_try_run "$LINENO"; then :
  10782. ac_cv_c_bigendian=no
  10783. else
  10784. ac_cv_c_bigendian=yes
  10785. fi
  10786. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10787. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10788. fi
  10789. fi
  10790. fi
  10791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  10792. $as_echo "$ac_cv_c_bigendian" >&6; }
  10793. case $ac_cv_c_bigendian in #(
  10794. yes)
  10795. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  10796. ;; #(
  10797. no)
  10798. ;; #(
  10799. universal)
  10800. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  10801. ;; #(
  10802. *)
  10803. as_fn_error "unknown endianness
  10804. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  10805. esac
  10806. if test $ac_cv_c_bigendian = yes; then
  10807. sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
  10808. else
  10809. sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
  10810. fi
  10811. else
  10812. sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
  10813. fi
  10814. fi
  10815. default_sim_scache="16384"
  10816. # Check whether --enable-sim-scache was given.
  10817. if test "${enable_sim_scache+set}" = set; then :
  10818. enableval=$enable_sim_scache; case "${enableval}" in
  10819. yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
  10820. no) sim_scache="-DWITH_SCACHE=0" ;;
  10821. [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
  10822. *) as_fn_error "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;
  10823. sim_scache="";;
  10824. esac
  10825. if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
  10826. echo "Setting scache size = $sim_scache" 6>&1
  10827. fi
  10828. else
  10829. sim_scache="-DWITH_SCACHE=${default_sim_scache}"
  10830. fi
  10831. default_sim_default_model="m32r/d"
  10832. # Check whether --enable-sim-default-model was given.
  10833. if test "${enable_sim_default_model+set}" = set; then :
  10834. enableval=$enable_sim_default_model; case "${enableval}" in
  10835. yes|no) as_fn_error "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
  10836. *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
  10837. esac
  10838. if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
  10839. echo "Setting default model = $sim_default_model" 6>&1
  10840. fi
  10841. else
  10842. sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
  10843. fi
  10844. # Check whether --enable-sim-environment was given.
  10845. if test "${enable_sim_environment+set}" = set; then :
  10846. enableval=$enable_sim_environment; case "${enableval}" in
  10847. all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
  10848. user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
  10849. virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
  10850. operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
  10851. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-environment\"" "$LINENO" 5;
  10852. sim_environment="";;
  10853. esac
  10854. if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
  10855. echo "Setting sim environment = $sim_environment" 6>&1
  10856. fi
  10857. else
  10858. sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
  10859. fi
  10860. default_sim_inline=""
  10861. # Check whether --enable-sim-inline was given.
  10862. if test "${enable_sim_inline+set}" = set; then :
  10863. enableval=$enable_sim_inline; sim_inline=""
  10864. case "$enableval" in
  10865. no) sim_inline="-DDEFAULT_INLINE=0";;
  10866. 0) sim_inline="-DDEFAULT_INLINE=0";;
  10867. yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
  10868. 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
  10869. *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10870. new_flag=""
  10871. case "$x" in
  10872. *_INLINE=*) new_flag="-D$x";;
  10873. *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
  10874. *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
  10875. *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
  10876. esac
  10877. if test x"$sim_inline" = x""; then
  10878. sim_inline="$new_flag"
  10879. else
  10880. sim_inline="$sim_inline $new_flag"
  10881. fi
  10882. done;;
  10883. esac
  10884. if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
  10885. echo "Setting inline flags = $sim_inline" 6>&1
  10886. fi
  10887. else
  10888. if test "x$cross_compiling" = "xno"; then
  10889. if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
  10890. sim_inline="${default_sim_inline}"
  10891. if test x"$silent" != x"yes"; then
  10892. echo "Setting inline flags = $sim_inline" 6>&1
  10893. fi
  10894. else
  10895. sim_inline=""
  10896. fi
  10897. else
  10898. sim_inline="-DDEFAULT_INLINE=0"
  10899. fi
  10900. fi
  10901. cgen_maint=no
  10902. cgen=guile
  10903. cgendir='$(srcdir)/../../cgen'
  10904. # Check whether --enable-cgen-maint was given.
  10905. if test "${enable_cgen_maint+set}" = set; then :
  10906. enableval=$enable_cgen_maint; case "${enableval}" in
  10907. yes) cgen_maint=yes ;;
  10908. no) cgen_maint=no ;;
  10909. *)
  10910. # argument is cgen install directory (not implemented yet).
  10911. # Having a `share' directory might be more appropriate for the .scm,
  10912. # .cpu, etc. files.
  10913. cgendir=${cgen_maint}/lib/cgen
  10914. cgen=guile
  10915. ;;
  10916. esac
  10917. fi
  10918. if test x${cgen_maint} != xno ; then
  10919. CGEN_MAINT=''
  10920. else
  10921. CGEN_MAINT='#'
  10922. fi
  10923. case "${target_alias}" in
  10924. m32r*-linux*)
  10925. traps_obj=traps-linux.o
  10926. sim_extra_cflags="-DM32R_LINUX"
  10927. ;;
  10928. *)
  10929. traps_obj=traps.o
  10930. sim_extra_cflags="-DM32R_ELF"
  10931. ;;
  10932. esac
  10933. if test """"; then
  10934. hardware=""""
  10935. else
  10936. hardware="cfi core pal glue"
  10937. fi
  10938. hardware="$hardware """
  10939. sim_hw_cflags="-DWITH_HW=1"
  10940. sim_hw="$hardware"
  10941. sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
  10942. # Check whether --enable-sim-hardware was given.
  10943. if test "${enable_sim_hardware+set}" = set; then :
  10944. enableval=$enable_sim_hardware;
  10945. else
  10946. enable_sim_hardware="yes"
  10947. fi
  10948. case ${enable_sim_hardware} in
  10949. yes|no) ;;
  10950. ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
  10951. *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
  10952. *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
  10953. esac
  10954. if test "$enable_sim_hardware" = no; then
  10955. sim_hw_objs=
  10956. sim_hw_cflags="-DWITH_HW=0"
  10957. sim_hw=
  10958. else
  10959. sim_hw_cflags="-DWITH_HW=1"
  10960. # remove duplicates
  10961. sim_hw=""
  10962. sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
  10963. for i in $hardware ; do
  10964. case " $sim_hw " in
  10965. *" $i "*) ;;
  10966. *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
  10967. esac
  10968. done
  10969. # mingw does not support sockser
  10970. case ${host} in
  10971. *mingw*) ;;
  10972. *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
  10973. # that you instatiate. Instead, other code will call into it directly.
  10974. # At some point, we should convert it over.
  10975. sim_hw_objs="$sim_hw_objs dv-sockser.o"
  10976. cat >>confdefs.h <<_ACEOF
  10977. #define HAVE_DV_SOCKSER 1
  10978. _ACEOF
  10979. ;;
  10980. esac
  10981. if test x"$silent" != x"yes"; then
  10982. echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
  10983. fi
  10984. case " $hardware " in
  10985. *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
  10986. $as_echo_n "checking for log2 in -lm... " >&6; }
  10987. if test "${ac_cv_lib_m_log2+set}" = set; then :
  10988. $as_echo_n "(cached) " >&6
  10989. else
  10990. ac_check_lib_save_LIBS=$LIBS
  10991. LIBS="-lm $LIBS"
  10992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10993. /* end confdefs.h. */
  10994. /* Override any GCC internal prototype to avoid an error.
  10995. Use char because int might match the return type of a GCC
  10996. builtin and then its argument prototype would still apply. */
  10997. #ifdef __cplusplus
  10998. extern "C"
  10999. #endif
  11000. char log2 ();
  11001. int
  11002. main ()
  11003. {
  11004. return log2 ();
  11005. ;
  11006. return 0;
  11007. }
  11008. _ACEOF
  11009. if ac_fn_c_try_link "$LINENO"; then :
  11010. ac_cv_lib_m_log2=yes
  11011. else
  11012. ac_cv_lib_m_log2=no
  11013. fi
  11014. rm -f core conftest.err conftest.$ac_objext \
  11015. conftest$ac_exeext conftest.$ac_ext
  11016. LIBS=$ac_check_lib_save_LIBS
  11017. fi
  11018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
  11019. $as_echo "$ac_cv_lib_m_log2" >&6; }
  11020. if test "x$ac_cv_lib_m_log2" = x""yes; then :
  11021. cat >>confdefs.h <<_ACEOF
  11022. #define HAVE_LIBM 1
  11023. _ACEOF
  11024. LIBS="-lm $LIBS"
  11025. fi
  11026. ;;
  11027. esac
  11028. fi
  11029. ac_sources="$sim_link_files"
  11030. ac_dests="$sim_link_links"
  11031. while test -n "$ac_sources"; do
  11032. set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  11033. set $ac_sources; ac_source=$1; shift; ac_sources=$*
  11034. ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
  11035. done
  11036. ac_config_links="$ac_config_links $ac_config_links_1"
  11037. cgen_breaks=""
  11038. if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
  11039. cgen_breaks="break cgen_rtx_error";
  11040. fi
  11041. ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
  11042. ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
  11043. ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
  11044. ac_config_commands="$ac_config_commands Makefile"
  11045. ac_config_commands="$ac_config_commands stamp-h"
  11046. cat >confcache <<\_ACEOF
  11047. # This file is a shell script that caches the results of configure
  11048. # tests run on this system so they can be shared between configure
  11049. # scripts and configure runs, see configure's option --config-cache.
  11050. # It is not useful on other systems. If it contains results you don't
  11051. # want to keep, you may remove or edit it.
  11052. #
  11053. # config.status only pays attention to the cache file if you give it
  11054. # the --recheck option to rerun configure.
  11055. #
  11056. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11057. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11058. # following values.
  11059. _ACEOF
  11060. # The following way of writing the cache mishandles newlines in values,
  11061. # but we know of no workaround that is simple, portable, and efficient.
  11062. # So, we kill variables containing newlines.
  11063. # Ultrix sh set writes to stderr and can't be redirected directly,
  11064. # and sets the high bit in the cache file unless we assign to the vars.
  11065. (
  11066. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11067. eval ac_val=\$$ac_var
  11068. case $ac_val in #(
  11069. *${as_nl}*)
  11070. case $ac_var in #(
  11071. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11072. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11073. esac
  11074. case $ac_var in #(
  11075. _ | IFS | as_nl) ;; #(
  11076. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11077. *) { eval $ac_var=; unset $ac_var;} ;;
  11078. esac ;;
  11079. esac
  11080. done
  11081. (set) 2>&1 |
  11082. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11083. *${as_nl}ac_space=\ *)
  11084. # `set' does not quote correctly, so add quotes: double-quote
  11085. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11086. sed -n \
  11087. "s/'/'\\\\''/g;
  11088. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11089. ;; #(
  11090. *)
  11091. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11092. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11093. ;;
  11094. esac |
  11095. sort
  11096. ) |
  11097. sed '
  11098. /^ac_cv_env_/b end
  11099. t clear
  11100. :clear
  11101. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11102. t end
  11103. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11104. :end' >>confcache
  11105. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11106. if test -w "$cache_file"; then
  11107. test "x$cache_file" != "x/dev/null" &&
  11108. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11109. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11110. cat confcache >$cache_file
  11111. else
  11112. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11113. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11114. fi
  11115. fi
  11116. rm -f confcache
  11117. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11118. # Let make expand exec_prefix.
  11119. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11120. DEFS=-DHAVE_CONFIG_H
  11121. ac_libobjs=
  11122. ac_ltlibobjs=
  11123. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11124. # 1. Remove the extension, and $U if already installed.
  11125. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11126. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11127. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11128. # will be set to the directory where LIBOBJS objects are built.
  11129. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11130. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11131. done
  11132. LIBOBJS=$ac_libobjs
  11133. LTLIBOBJS=$ac_ltlibobjs
  11134. if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
  11135. as_fn_error "conditional \"GMAKE\" was never defined.
  11136. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11137. fi
  11138. if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
  11139. as_fn_error "conditional \"PLUGINS\" was never defined.
  11140. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11141. fi
  11142. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11143. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  11144. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11145. fi
  11146. : ${CONFIG_STATUS=./config.status}
  11147. ac_write_fail=0
  11148. ac_clean_files_save=$ac_clean_files
  11149. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11150. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11151. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11152. as_write_fail=0
  11153. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11154. #! $SHELL
  11155. # Generated by $as_me.
  11156. # Run this file to recreate the current configuration.
  11157. # Compiler output produced by configure, useful for debugging
  11158. # configure, is in config.log if it exists.
  11159. debug=false
  11160. ac_cs_recheck=false
  11161. ac_cs_silent=false
  11162. SHELL=\${CONFIG_SHELL-$SHELL}
  11163. export SHELL
  11164. _ASEOF
  11165. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11166. ## -------------------- ##
  11167. ## M4sh Initialization. ##
  11168. ## -------------------- ##
  11169. # Be more Bourne compatible
  11170. DUALCASE=1; export DUALCASE # for MKS sh
  11171. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11172. emulate sh
  11173. NULLCMD=:
  11174. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11175. # is contrary to our usage. Disable this feature.
  11176. alias -g '${1+"$@"}'='"$@"'
  11177. setopt NO_GLOB_SUBST
  11178. else
  11179. case `(set -o) 2>/dev/null` in #(
  11180. *posix*) :
  11181. set -o posix ;; #(
  11182. *) :
  11183. ;;
  11184. esac
  11185. fi
  11186. as_nl='
  11187. '
  11188. export as_nl
  11189. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11190. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11191. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11192. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11193. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11194. # but without wasting forks for bash or zsh.
  11195. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11196. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11197. as_echo='print -r --'
  11198. as_echo_n='print -rn --'
  11199. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11200. as_echo='printf %s\n'
  11201. as_echo_n='printf %s'
  11202. else
  11203. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11204. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11205. as_echo_n='/usr/ucb/echo -n'
  11206. else
  11207. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11208. as_echo_n_body='eval
  11209. arg=$1;
  11210. case $arg in #(
  11211. *"$as_nl"*)
  11212. expr "X$arg" : "X\\(.*\\)$as_nl";
  11213. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11214. esac;
  11215. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11216. '
  11217. export as_echo_n_body
  11218. as_echo_n='sh -c $as_echo_n_body as_echo'
  11219. fi
  11220. export as_echo_body
  11221. as_echo='sh -c $as_echo_body as_echo'
  11222. fi
  11223. # The user is always right.
  11224. if test "${PATH_SEPARATOR+set}" != set; then
  11225. PATH_SEPARATOR=:
  11226. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11227. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11228. PATH_SEPARATOR=';'
  11229. }
  11230. fi
  11231. # IFS
  11232. # We need space, tab and new line, in precisely that order. Quoting is
  11233. # there to prevent editors from complaining about space-tab.
  11234. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11235. # splitting by setting IFS to empty value.)
  11236. IFS=" "" $as_nl"
  11237. # Find who we are. Look in the path if we contain no directory separator.
  11238. case $0 in #((
  11239. *[\\/]* ) as_myself=$0 ;;
  11240. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11241. for as_dir in $PATH
  11242. do
  11243. IFS=$as_save_IFS
  11244. test -z "$as_dir" && as_dir=.
  11245. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11246. done
  11247. IFS=$as_save_IFS
  11248. ;;
  11249. esac
  11250. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11251. # in which case we are not to be found in the path.
  11252. if test "x$as_myself" = x; then
  11253. as_myself=$0
  11254. fi
  11255. if test ! -f "$as_myself"; then
  11256. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11257. exit 1
  11258. fi
  11259. # Unset variables that we do not need and which cause bugs (e.g. in
  11260. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11261. # suppresses any "Segmentation fault" message there. '((' could
  11262. # trigger a bug in pdksh 5.2.14.
  11263. for as_var in BASH_ENV ENV MAIL MAILPATH
  11264. do eval test x\${$as_var+set} = xset \
  11265. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11266. done
  11267. PS1='$ '
  11268. PS2='> '
  11269. PS4='+ '
  11270. # NLS nuisances.
  11271. LC_ALL=C
  11272. export LC_ALL
  11273. LANGUAGE=C
  11274. export LANGUAGE
  11275. # CDPATH.
  11276. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11277. # as_fn_error ERROR [LINENO LOG_FD]
  11278. # ---------------------------------
  11279. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11280. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11281. # script with status $?, using 1 if that was 0.
  11282. as_fn_error ()
  11283. {
  11284. as_status=$?; test $as_status -eq 0 && as_status=1
  11285. if test "$3"; then
  11286. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11287. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  11288. fi
  11289. $as_echo "$as_me: error: $1" >&2
  11290. as_fn_exit $as_status
  11291. } # as_fn_error
  11292. # as_fn_set_status STATUS
  11293. # -----------------------
  11294. # Set $? to STATUS, without forking.
  11295. as_fn_set_status ()
  11296. {
  11297. return $1
  11298. } # as_fn_set_status
  11299. # as_fn_exit STATUS
  11300. # -----------------
  11301. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11302. as_fn_exit ()
  11303. {
  11304. set +e
  11305. as_fn_set_status $1
  11306. exit $1
  11307. } # as_fn_exit
  11308. # as_fn_unset VAR
  11309. # ---------------
  11310. # Portably unset VAR.
  11311. as_fn_unset ()
  11312. {
  11313. { eval $1=; unset $1;}
  11314. }
  11315. as_unset=as_fn_unset
  11316. # as_fn_append VAR VALUE
  11317. # ----------------------
  11318. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11319. # advantage of any shell optimizations that allow amortized linear growth over
  11320. # repeated appends, instead of the typical quadratic growth present in naive
  11321. # implementations.
  11322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11323. eval 'as_fn_append ()
  11324. {
  11325. eval $1+=\$2
  11326. }'
  11327. else
  11328. as_fn_append ()
  11329. {
  11330. eval $1=\$$1\$2
  11331. }
  11332. fi # as_fn_append
  11333. # as_fn_arith ARG...
  11334. # ------------------
  11335. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11336. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11337. # must be portable across $(()) and expr.
  11338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11339. eval 'as_fn_arith ()
  11340. {
  11341. as_val=$(( $* ))
  11342. }'
  11343. else
  11344. as_fn_arith ()
  11345. {
  11346. as_val=`expr "$@" || test $? -eq 1`
  11347. }
  11348. fi # as_fn_arith
  11349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11351. as_expr=expr
  11352. else
  11353. as_expr=false
  11354. fi
  11355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11356. as_basename=basename
  11357. else
  11358. as_basename=false
  11359. fi
  11360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11361. as_dirname=dirname
  11362. else
  11363. as_dirname=false
  11364. fi
  11365. as_me=`$as_basename -- "$0" ||
  11366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11367. X"$0" : 'X\(//\)$' \| \
  11368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11369. $as_echo X/"$0" |
  11370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11371. s//\1/
  11372. q
  11373. }
  11374. /^X\/\(\/\/\)$/{
  11375. s//\1/
  11376. q
  11377. }
  11378. /^X\/\(\/\).*/{
  11379. s//\1/
  11380. q
  11381. }
  11382. s/.*/./; q'`
  11383. # Avoid depending upon Character Ranges.
  11384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11387. as_cr_digits='0123456789'
  11388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11389. ECHO_C= ECHO_N= ECHO_T=
  11390. case `echo -n x` in #(((((
  11391. -n*)
  11392. case `echo 'xy\c'` in
  11393. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11394. xy) ECHO_C='\c';;
  11395. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11396. ECHO_T=' ';;
  11397. esac;;
  11398. *)
  11399. ECHO_N='-n';;
  11400. esac
  11401. rm -f conf$$ conf$$.exe conf$$.file
  11402. if test -d conf$$.dir; then
  11403. rm -f conf$$.dir/conf$$.file
  11404. else
  11405. rm -f conf$$.dir
  11406. mkdir conf$$.dir 2>/dev/null
  11407. fi
  11408. if (echo >conf$$.file) 2>/dev/null; then
  11409. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11410. as_ln_s='ln -s'
  11411. # ... but there are two gotchas:
  11412. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11413. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11414. # In both cases, we have to default to `cp -p'.
  11415. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11416. as_ln_s='cp -p'
  11417. elif ln conf$$.file conf$$ 2>/dev/null; then
  11418. as_ln_s=ln
  11419. else
  11420. as_ln_s='cp -p'
  11421. fi
  11422. else
  11423. as_ln_s='cp -p'
  11424. fi
  11425. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11426. rmdir conf$$.dir 2>/dev/null
  11427. # as_fn_mkdir_p
  11428. # -------------
  11429. # Create "$as_dir" as a directory, including parents if necessary.
  11430. as_fn_mkdir_p ()
  11431. {
  11432. case $as_dir in #(
  11433. -*) as_dir=./$as_dir;;
  11434. esac
  11435. test -d "$as_dir" || eval $as_mkdir_p || {
  11436. as_dirs=
  11437. while :; do
  11438. case $as_dir in #(
  11439. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11440. *) as_qdir=$as_dir;;
  11441. esac
  11442. as_dirs="'$as_qdir' $as_dirs"
  11443. as_dir=`$as_dirname -- "$as_dir" ||
  11444. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11445. X"$as_dir" : 'X\(//\)[^/]' \| \
  11446. X"$as_dir" : 'X\(//\)$' \| \
  11447. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11448. $as_echo X"$as_dir" |
  11449. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11450. s//\1/
  11451. q
  11452. }
  11453. /^X\(\/\/\)[^/].*/{
  11454. s//\1/
  11455. q
  11456. }
  11457. /^X\(\/\/\)$/{
  11458. s//\1/
  11459. q
  11460. }
  11461. /^X\(\/\).*/{
  11462. s//\1/
  11463. q
  11464. }
  11465. s/.*/./; q'`
  11466. test -d "$as_dir" && break
  11467. done
  11468. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11469. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  11470. } # as_fn_mkdir_p
  11471. if mkdir -p . 2>/dev/null; then
  11472. as_mkdir_p='mkdir -p "$as_dir"'
  11473. else
  11474. test -d ./-p && rmdir ./-p
  11475. as_mkdir_p=false
  11476. fi
  11477. if test -x / >/dev/null 2>&1; then
  11478. as_test_x='test -x'
  11479. else
  11480. if ls -dL / >/dev/null 2>&1; then
  11481. as_ls_L_option=L
  11482. else
  11483. as_ls_L_option=
  11484. fi
  11485. as_test_x='
  11486. eval sh -c '\''
  11487. if test -d "$1"; then
  11488. test -d "$1/.";
  11489. else
  11490. case $1 in #(
  11491. -*)set "./$1";;
  11492. esac;
  11493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11494. ???[sx]*):;;*)false;;esac;fi
  11495. '\'' sh
  11496. '
  11497. fi
  11498. as_executable_p=$as_test_x
  11499. # Sed expression to map a string onto a valid CPP name.
  11500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11501. # Sed expression to map a string onto a valid variable name.
  11502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11503. exec 6>&1
  11504. ## ----------------------------------- ##
  11505. ## Main body of $CONFIG_STATUS script. ##
  11506. ## ----------------------------------- ##
  11507. _ASEOF
  11508. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11509. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11510. # Save the log message, to keep $0 and so on meaningful, and to
  11511. # report actual input values of CONFIG_FILES etc. instead of their
  11512. # values after options handling.
  11513. ac_log="
  11514. This file was extended by $as_me, which was
  11515. generated by GNU Autoconf 2.64. Invocation command line was
  11516. CONFIG_FILES = $CONFIG_FILES
  11517. CONFIG_HEADERS = $CONFIG_HEADERS
  11518. CONFIG_LINKS = $CONFIG_LINKS
  11519. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11520. $ $0 $@
  11521. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11522. "
  11523. _ACEOF
  11524. case $ac_config_files in *"
  11525. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11526. esac
  11527. case $ac_config_headers in *"
  11528. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11529. esac
  11530. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11531. # Files that config.status was made for.
  11532. config_files="$ac_config_files"
  11533. config_headers="$ac_config_headers"
  11534. config_links="$ac_config_links"
  11535. config_commands="$ac_config_commands"
  11536. _ACEOF
  11537. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11538. ac_cs_usage="\
  11539. \`$as_me' instantiates files and other configuration actions
  11540. from templates according to the current configuration. Unless the files
  11541. and actions are specified as TAGs, all are instantiated by default.
  11542. Usage: $0 [OPTION]... [TAG]...
  11543. -h, --help print this help, then exit
  11544. -V, --version print version number and configuration settings, then exit
  11545. -q, --quiet, --silent
  11546. do not print progress messages
  11547. -d, --debug don't remove temporary files
  11548. --recheck update $as_me by reconfiguring in the same conditions
  11549. --file=FILE[:TEMPLATE]
  11550. instantiate the configuration file FILE
  11551. --header=FILE[:TEMPLATE]
  11552. instantiate the configuration header FILE
  11553. Configuration files:
  11554. $config_files
  11555. Configuration headers:
  11556. $config_headers
  11557. Configuration links:
  11558. $config_links
  11559. Configuration commands:
  11560. $config_commands
  11561. Report bugs to the package provider."
  11562. _ACEOF
  11563. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11564. ac_cs_version="\\
  11565. config.status
  11566. configured by $0, generated by GNU Autoconf 2.64,
  11567. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11568. Copyright (C) 2009 Free Software Foundation, Inc.
  11569. This config.status script is free software; the Free Software Foundation
  11570. gives unlimited permission to copy, distribute and modify it."
  11571. ac_pwd='$ac_pwd'
  11572. srcdir='$srcdir'
  11573. INSTALL='$INSTALL'
  11574. AWK='$AWK'
  11575. test -n "\$AWK" || AWK=awk
  11576. _ACEOF
  11577. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11578. # The default lists apply if the user does not specify any file.
  11579. ac_need_defaults=:
  11580. while test $# != 0
  11581. do
  11582. case $1 in
  11583. --*=*)
  11584. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11585. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11586. ac_shift=:
  11587. ;;
  11588. *)
  11589. ac_option=$1
  11590. ac_optarg=$2
  11591. ac_shift=shift
  11592. ;;
  11593. esac
  11594. case $ac_option in
  11595. # Handling of the options.
  11596. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11597. ac_cs_recheck=: ;;
  11598. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11599. $as_echo "$ac_cs_version"; exit ;;
  11600. --debug | --debu | --deb | --de | --d | -d )
  11601. debug=: ;;
  11602. --file | --fil | --fi | --f )
  11603. $ac_shift
  11604. case $ac_optarg in
  11605. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11606. esac
  11607. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11608. ac_need_defaults=false;;
  11609. --header | --heade | --head | --hea )
  11610. $ac_shift
  11611. case $ac_optarg in
  11612. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11613. esac
  11614. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11615. ac_need_defaults=false;;
  11616. --he | --h)
  11617. # Conflict between --help and --header
  11618. as_fn_error "ambiguous option: \`$1'
  11619. Try \`$0 --help' for more information.";;
  11620. --help | --hel | -h )
  11621. $as_echo "$ac_cs_usage"; exit ;;
  11622. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11623. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11624. ac_cs_silent=: ;;
  11625. # This is an error.
  11626. -*) as_fn_error "unrecognized option: \`$1'
  11627. Try \`$0 --help' for more information." ;;
  11628. *) as_fn_append ac_config_targets " $1"
  11629. ac_need_defaults=false ;;
  11630. esac
  11631. shift
  11632. done
  11633. ac_configure_extra_args=
  11634. if $ac_cs_silent; then
  11635. exec 6>/dev/null
  11636. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11637. fi
  11638. _ACEOF
  11639. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11640. if \$ac_cs_recheck; then
  11641. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11642. shift
  11643. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11644. CONFIG_SHELL='$SHELL'
  11645. export CONFIG_SHELL
  11646. exec "\$@"
  11647. fi
  11648. _ACEOF
  11649. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11650. exec 5>>config.log
  11651. {
  11652. echo
  11653. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11654. ## Running $as_me. ##
  11655. _ASBOX
  11656. $as_echo "$ac_log"
  11657. } >&5
  11658. _ACEOF
  11659. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11660. #
  11661. # INIT-COMMANDS
  11662. #
  11663. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  11664. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11665. # if CDPATH is set.
  11666. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11667. sed_quote_subst='$sed_quote_subst'
  11668. double_quote_subst='$double_quote_subst'
  11669. delay_variable_subst='$delay_variable_subst'
  11670. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11671. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11672. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11673. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11674. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11675. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11676. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11677. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11678. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11679. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11680. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11681. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11682. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11683. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11684. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11685. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11686. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11687. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11688. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11689. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11690. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11691. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11692. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11693. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11694. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11695. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11696. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11697. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11698. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11699. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11700. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11701. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11702. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11703. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11704. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11705. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11706. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11707. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11708. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11709. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11710. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11711. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11712. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11713. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11714. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11715. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11716. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11717. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11718. 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"`'
  11719. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11720. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11721. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11722. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11723. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11724. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11725. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11726. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11727. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11728. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11729. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11730. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11731. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11732. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11733. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11734. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11735. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11736. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11737. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11738. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11739. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11740. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11741. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11742. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11743. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11744. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11745. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11746. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11747. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11748. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11749. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11750. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  11751. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11752. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11753. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11754. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11755. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11756. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11757. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11758. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11759. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  11760. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11761. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11762. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11763. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11764. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11765. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11766. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11767. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11768. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11769. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11770. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11771. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11772. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11773. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11774. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11775. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11776. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11777. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11778. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11779. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11780. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11781. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11782. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11783. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11784. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11785. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11786. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11787. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11788. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11789. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11790. LTCC='$LTCC'
  11791. LTCFLAGS='$LTCFLAGS'
  11792. compiler='$compiler_DEFAULT'
  11793. # A function that is used when there is no print builtin or printf.
  11794. func_fallback_echo ()
  11795. {
  11796. eval 'cat <<_LTECHO_EOF
  11797. \$1
  11798. _LTECHO_EOF'
  11799. }
  11800. # Quote evaled strings.
  11801. for var in SHELL \
  11802. ECHO \
  11803. SED \
  11804. GREP \
  11805. EGREP \
  11806. FGREP \
  11807. LD \
  11808. NM \
  11809. LN_S \
  11810. lt_SP2NL \
  11811. lt_NL2SP \
  11812. reload_flag \
  11813. OBJDUMP \
  11814. deplibs_check_method \
  11815. file_magic_cmd \
  11816. AR \
  11817. AR_FLAGS \
  11818. STRIP \
  11819. RANLIB \
  11820. CC \
  11821. CFLAGS \
  11822. compiler \
  11823. lt_cv_sys_global_symbol_pipe \
  11824. lt_cv_sys_global_symbol_to_cdecl \
  11825. lt_cv_sys_global_symbol_to_c_name_address \
  11826. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11827. lt_prog_compiler_no_builtin_flag \
  11828. lt_prog_compiler_wl \
  11829. lt_prog_compiler_pic \
  11830. lt_prog_compiler_static \
  11831. lt_cv_prog_compiler_c_o \
  11832. need_locks \
  11833. DSYMUTIL \
  11834. NMEDIT \
  11835. LIPO \
  11836. OTOOL \
  11837. OTOOL64 \
  11838. shrext_cmds \
  11839. export_dynamic_flag_spec \
  11840. whole_archive_flag_spec \
  11841. compiler_needs_object \
  11842. with_gnu_ld \
  11843. allow_undefined_flag \
  11844. no_undefined_flag \
  11845. hardcode_libdir_flag_spec \
  11846. hardcode_libdir_flag_spec_ld \
  11847. hardcode_libdir_separator \
  11848. fix_srcfile_path \
  11849. exclude_expsyms \
  11850. include_expsyms \
  11851. file_list_spec \
  11852. variables_saved_for_relink \
  11853. libname_spec \
  11854. library_names_spec \
  11855. soname_spec \
  11856. install_override_mode \
  11857. finish_eval \
  11858. old_striplib \
  11859. striplib; do
  11860. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11861. *[\\\\\\\`\\"\\\$]*)
  11862. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11863. ;;
  11864. *)
  11865. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11866. ;;
  11867. esac
  11868. done
  11869. # Double-quote double-evaled strings.
  11870. for var in reload_cmds \
  11871. old_postinstall_cmds \
  11872. old_postuninstall_cmds \
  11873. old_archive_cmds \
  11874. extract_expsyms_cmds \
  11875. old_archive_from_new_cmds \
  11876. old_archive_from_expsyms_cmds \
  11877. archive_cmds \
  11878. archive_expsym_cmds \
  11879. module_cmds \
  11880. module_expsym_cmds \
  11881. export_symbols_cmds \
  11882. prelink_cmds \
  11883. postinstall_cmds \
  11884. postuninstall_cmds \
  11885. finish_cmds \
  11886. sys_lib_search_path_spec \
  11887. sys_lib_dlsearch_path_spec; do
  11888. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11889. *[\\\\\\\`\\"\\\$]*)
  11890. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11891. ;;
  11892. *)
  11893. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11894. ;;
  11895. esac
  11896. done
  11897. ac_aux_dir='$ac_aux_dir'
  11898. xsi_shell='$xsi_shell'
  11899. lt_shell_append='$lt_shell_append'
  11900. # See if we are running on zsh, and set the options which allow our
  11901. # commands through without removal of \ escapes INIT.
  11902. if test -n "\${ZSH_VERSION+set}" ; then
  11903. setopt NO_GLOB_SUBST
  11904. fi
  11905. PACKAGE='$PACKAGE'
  11906. VERSION='$VERSION'
  11907. TIMESTAMP='$TIMESTAMP'
  11908. RM='$RM'
  11909. ofile='$ofile'
  11910. _ACEOF
  11911. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11912. # Handling of arguments.
  11913. for ac_config_target in $ac_config_targets
  11914. do
  11915. case $ac_config_target in
  11916. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  11917. "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  11918. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11919. "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
  11920. "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
  11921. "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
  11922. ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
  11923. "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
  11924. "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
  11925. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11926. esac
  11927. done
  11928. # If the user did not use the arguments to specify the items to instantiate,
  11929. # then the envvar interface is used. Set only those that are not.
  11930. # We use the long form for the default assignment because of an extremely
  11931. # bizarre bug on SunOS 4.1.3.
  11932. if $ac_need_defaults; then
  11933. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11934. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11935. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  11936. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11937. fi
  11938. # Have a temporary directory for convenience. Make it in the build tree
  11939. # simply because there is no reason against having it here, and in addition,
  11940. # creating and moving files from /tmp can sometimes cause problems.
  11941. # Hook for its removal unless debugging.
  11942. # Note that there is a small window in which the directory will not be cleaned:
  11943. # after its creation but before its name has been assigned to `$tmp'.
  11944. $debug ||
  11945. {
  11946. tmp=
  11947. trap 'exit_status=$?
  11948. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11949. ' 0
  11950. trap 'as_fn_exit 1' 1 2 13 15
  11951. }
  11952. # Create a (secure) tmp directory for tmp files.
  11953. {
  11954. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11955. test -n "$tmp" && test -d "$tmp"
  11956. } ||
  11957. {
  11958. tmp=./conf$$-$RANDOM
  11959. (umask 077 && mkdir "$tmp")
  11960. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  11961. # Set up the scripts for CONFIG_FILES section.
  11962. # No need to generate them if there are no CONFIG_FILES.
  11963. # This happens for instance with `./config.status config.h'.
  11964. if test -n "$CONFIG_FILES"; then
  11965. ac_cr=`echo X | tr X '\015'`
  11966. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11967. # But we know of no other shell where ac_cr would be empty at this
  11968. # point, so we can use a bashism as a fallback.
  11969. if test "x$ac_cr" = x; then
  11970. eval ac_cr=\$\'\\r\'
  11971. fi
  11972. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11973. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11974. ac_cs_awk_cr='\r'
  11975. else
  11976. ac_cs_awk_cr=$ac_cr
  11977. fi
  11978. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  11979. _ACEOF
  11980. {
  11981. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11982. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11983. echo "_ACEOF"
  11984. } >conf$$subs.sh ||
  11985. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11986. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  11987. ac_delim='%!_!# '
  11988. for ac_last_try in false false false false false :; do
  11989. . ./conf$$subs.sh ||
  11990. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11991. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11992. if test $ac_delim_n = $ac_delim_num; then
  11993. break
  11994. elif $ac_last_try; then
  11995. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11996. else
  11997. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11998. fi
  11999. done
  12000. rm -f conf$$subs.sh
  12001. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12002. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  12003. _ACEOF
  12004. sed -n '
  12005. h
  12006. s/^/S["/; s/!.*/"]=/
  12007. p
  12008. g
  12009. s/^[^!]*!//
  12010. :repl
  12011. t repl
  12012. s/'"$ac_delim"'$//
  12013. t delim
  12014. :nl
  12015. h
  12016. s/\(.\{148\}\).*/\1/
  12017. t more1
  12018. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12019. p
  12020. n
  12021. b repl
  12022. :more1
  12023. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12024. p
  12025. g
  12026. s/.\{148\}//
  12027. t nl
  12028. :delim
  12029. h
  12030. s/\(.\{148\}\).*/\1/
  12031. t more2
  12032. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12033. p
  12034. b
  12035. :more2
  12036. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12037. p
  12038. g
  12039. s/.\{148\}//
  12040. t delim
  12041. ' <conf$$subs.awk | sed '
  12042. /^[^""]/{
  12043. N
  12044. s/\n//
  12045. }
  12046. ' >>$CONFIG_STATUS || ac_write_fail=1
  12047. rm -f conf$$subs.awk
  12048. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12049. _ACAWK
  12050. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  12051. for (key in S) S_is_set[key] = 1
  12052. FS = ""
  12053. }
  12054. {
  12055. line = $ 0
  12056. nfields = split(line, field, "@")
  12057. substed = 0
  12058. len = length(field[1])
  12059. for (i = 2; i < nfields; i++) {
  12060. key = field[i]
  12061. keylen = length(key)
  12062. if (S_is_set[key]) {
  12063. value = S[key]
  12064. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12065. len += length(value) + length(field[++i])
  12066. substed = 1
  12067. } else
  12068. len += 1 + keylen
  12069. }
  12070. print line
  12071. }
  12072. _ACAWK
  12073. _ACEOF
  12074. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12075. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12076. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12077. else
  12078. cat
  12079. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12080. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  12081. _ACEOF
  12082. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12083. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12084. # trailing colons and then remove the whole line if VPATH becomes empty
  12085. # (actually we leave an empty line to preserve line numbers).
  12086. if test "x$srcdir" = x.; then
  12087. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12088. s/:*\$(srcdir):*/:/
  12089. s/:*\${srcdir}:*/:/
  12090. s/:*@srcdir@:*/:/
  12091. s/^\([^=]*=[ ]*\):*/\1/
  12092. s/:*$//
  12093. s/^[^=]*=[ ]*$//
  12094. }'
  12095. fi
  12096. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12097. fi # test -n "$CONFIG_FILES"
  12098. # Set up the scripts for CONFIG_HEADERS section.
  12099. # No need to generate them if there are no CONFIG_HEADERS.
  12100. # This happens for instance with `./config.status Makefile'.
  12101. if test -n "$CONFIG_HEADERS"; then
  12102. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12103. BEGIN {
  12104. _ACEOF
  12105. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12106. # here-document in config.status, that substitutes the proper values into
  12107. # config.h.in to produce config.h.
  12108. # Create a delimiter string that does not exist in confdefs.h, to ease
  12109. # handling of long lines.
  12110. ac_delim='%!_!# '
  12111. for ac_last_try in false false :; do
  12112. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12113. if test -z "$ac_t"; then
  12114. break
  12115. elif $ac_last_try; then
  12116. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  12117. else
  12118. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12119. fi
  12120. done
  12121. # For the awk script, D is an array of macro values keyed by name,
  12122. # likewise P contains macro parameters if any. Preserve backslash
  12123. # newline sequences.
  12124. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12125. sed -n '
  12126. s/.\{148\}/&'"$ac_delim"'/g
  12127. t rset
  12128. :rset
  12129. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12130. t def
  12131. d
  12132. :def
  12133. s/\\$//
  12134. t bsnl
  12135. s/["\\]/\\&/g
  12136. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12137. D["\1"]=" \3"/p
  12138. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12139. d
  12140. :bsnl
  12141. s/["\\]/\\&/g
  12142. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12143. D["\1"]=" \3\\\\\\n"\\/p
  12144. t cont
  12145. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12146. t cont
  12147. d
  12148. :cont
  12149. n
  12150. s/.\{148\}/&'"$ac_delim"'/g
  12151. t clear
  12152. :clear
  12153. s/\\$//
  12154. t bsnlc
  12155. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12156. d
  12157. :bsnlc
  12158. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12159. b cont
  12160. ' <confdefs.h | sed '
  12161. s/'"$ac_delim"'/"\\\
  12162. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12163. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12164. for (key in D) D_is_set[key] = 1
  12165. FS = ""
  12166. }
  12167. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12168. line = \$ 0
  12169. split(line, arg, " ")
  12170. if (arg[1] == "#") {
  12171. defundef = arg[2]
  12172. mac1 = arg[3]
  12173. } else {
  12174. defundef = substr(arg[1], 2)
  12175. mac1 = arg[2]
  12176. }
  12177. split(mac1, mac2, "(") #)
  12178. macro = mac2[1]
  12179. prefix = substr(line, 1, index(line, defundef) - 1)
  12180. if (D_is_set[macro]) {
  12181. # Preserve the white space surrounding the "#".
  12182. print prefix "define", macro P[macro] D[macro]
  12183. next
  12184. } else {
  12185. # Replace #undef with comments. This is necessary, for example,
  12186. # in the case of _POSIX_SOURCE, which is predefined and required
  12187. # on some systems where configure will not decide to define it.
  12188. if (defundef == "undef") {
  12189. print "/*", prefix defundef, macro, "*/"
  12190. next
  12191. }
  12192. }
  12193. }
  12194. { print }
  12195. _ACAWK
  12196. _ACEOF
  12197. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12198. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  12199. fi # test -n "$CONFIG_HEADERS"
  12200. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  12201. shift
  12202. for ac_tag
  12203. do
  12204. case $ac_tag in
  12205. :[FHLC]) ac_mode=$ac_tag; continue;;
  12206. esac
  12207. case $ac_mode$ac_tag in
  12208. :[FHL]*:*);;
  12209. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12210. :[FH]-) ac_tag=-:-;;
  12211. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12212. esac
  12213. ac_save_IFS=$IFS
  12214. IFS=:
  12215. set x $ac_tag
  12216. IFS=$ac_save_IFS
  12217. shift
  12218. ac_file=$1
  12219. shift
  12220. case $ac_mode in
  12221. :L) ac_source=$1;;
  12222. :[FH])
  12223. ac_file_inputs=
  12224. for ac_f
  12225. do
  12226. case $ac_f in
  12227. -) ac_f="$tmp/stdin";;
  12228. *) # Look for the file first in the build tree, then in the source tree
  12229. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12230. # because $ac_f cannot contain `:'.
  12231. test -f "$ac_f" ||
  12232. case $ac_f in
  12233. [\\/$]*) false;;
  12234. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12235. esac ||
  12236. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12237. esac
  12238. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12239. as_fn_append ac_file_inputs " '$ac_f'"
  12240. done
  12241. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12242. # use $as_me), people would be surprised to read:
  12243. # /* config.h. Generated by config.status. */
  12244. configure_input='Generated from '`
  12245. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12246. `' by configure.'
  12247. if test x"$ac_file" != x-; then
  12248. configure_input="$ac_file. $configure_input"
  12249. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12250. $as_echo "$as_me: creating $ac_file" >&6;}
  12251. fi
  12252. # Neutralize special characters interpreted by sed in replacement strings.
  12253. case $configure_input in #(
  12254. *\&* | *\|* | *\\* )
  12255. ac_sed_conf_input=`$as_echo "$configure_input" |
  12256. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12257. *) ac_sed_conf_input=$configure_input;;
  12258. esac
  12259. case $ac_tag in
  12260. *:-:* | *:-) cat >"$tmp/stdin" \
  12261. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  12262. esac
  12263. ;;
  12264. esac
  12265. ac_dir=`$as_dirname -- "$ac_file" ||
  12266. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12267. X"$ac_file" : 'X\(//\)[^/]' \| \
  12268. X"$ac_file" : 'X\(//\)$' \| \
  12269. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12270. $as_echo X"$ac_file" |
  12271. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12272. s//\1/
  12273. q
  12274. }
  12275. /^X\(\/\/\)[^/].*/{
  12276. s//\1/
  12277. q
  12278. }
  12279. /^X\(\/\/\)$/{
  12280. s//\1/
  12281. q
  12282. }
  12283. /^X\(\/\).*/{
  12284. s//\1/
  12285. q
  12286. }
  12287. s/.*/./; q'`
  12288. as_dir="$ac_dir"; as_fn_mkdir_p
  12289. ac_builddir=.
  12290. case "$ac_dir" in
  12291. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12292. *)
  12293. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12294. # A ".." for each directory in $ac_dir_suffix.
  12295. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12296. case $ac_top_builddir_sub in
  12297. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12298. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12299. esac ;;
  12300. esac
  12301. ac_abs_top_builddir=$ac_pwd
  12302. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12303. # for backward compatibility:
  12304. ac_top_builddir=$ac_top_build_prefix
  12305. case $srcdir in
  12306. .) # We are building in place.
  12307. ac_srcdir=.
  12308. ac_top_srcdir=$ac_top_builddir_sub
  12309. ac_abs_top_srcdir=$ac_pwd ;;
  12310. [\\/]* | ?:[\\/]* ) # Absolute name.
  12311. ac_srcdir=$srcdir$ac_dir_suffix;
  12312. ac_top_srcdir=$srcdir
  12313. ac_abs_top_srcdir=$srcdir ;;
  12314. *) # Relative name.
  12315. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12316. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12317. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12318. esac
  12319. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12320. case $ac_mode in
  12321. :F)
  12322. #
  12323. # CONFIG_FILE
  12324. #
  12325. case $INSTALL in
  12326. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12327. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12328. esac
  12329. _ACEOF
  12330. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12331. # If the template does not know about datarootdir, expand it.
  12332. # FIXME: This hack should be removed a few years after 2.60.
  12333. ac_datarootdir_hack=; ac_datarootdir_seen=
  12334. ac_sed_dataroot='
  12335. /datarootdir/ {
  12336. p
  12337. q
  12338. }
  12339. /@datadir@/p
  12340. /@docdir@/p
  12341. /@infodir@/p
  12342. /@localedir@/p
  12343. /@mandir@/p'
  12344. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12345. *datarootdir*) ac_datarootdir_seen=yes;;
  12346. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12347. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12348. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12349. _ACEOF
  12350. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12351. ac_datarootdir_hack='
  12352. s&@datadir@&$datadir&g
  12353. s&@docdir@&$docdir&g
  12354. s&@infodir@&$infodir&g
  12355. s&@localedir@&$localedir&g
  12356. s&@mandir@&$mandir&g
  12357. s&\\\${datarootdir}&$datarootdir&g' ;;
  12358. esac
  12359. _ACEOF
  12360. # Neutralize VPATH when `$srcdir' = `.'.
  12361. # Shell code in configure.ac might set extrasub.
  12362. # FIXME: do we really want to maintain this feature?
  12363. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12364. ac_sed_extra="$ac_vpsub
  12365. $extrasub
  12366. _ACEOF
  12367. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12368. :t
  12369. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12370. s|@configure_input@|$ac_sed_conf_input|;t t
  12371. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12372. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12373. s&@srcdir@&$ac_srcdir&;t t
  12374. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12375. s&@top_srcdir@&$ac_top_srcdir&;t t
  12376. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12377. s&@builddir@&$ac_builddir&;t t
  12378. s&@abs_builddir@&$ac_abs_builddir&;t t
  12379. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12380. s&@INSTALL@&$ac_INSTALL&;t t
  12381. $ac_datarootdir_hack
  12382. "
  12383. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12384. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12385. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12386. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12387. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12389. which seems to be undefined. Please make sure it is defined." >&5
  12390. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12391. which seems to be undefined. Please make sure it is defined." >&2;}
  12392. rm -f "$tmp/stdin"
  12393. case $ac_file in
  12394. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12395. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12396. esac \
  12397. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12398. ;;
  12399. :H)
  12400. #
  12401. # CONFIG_HEADER
  12402. #
  12403. if test x"$ac_file" != x-; then
  12404. {
  12405. $as_echo "/* $configure_input */" \
  12406. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12407. } >"$tmp/config.h" \
  12408. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12409. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12410. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12411. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12412. else
  12413. rm -f "$ac_file"
  12414. mv "$tmp/config.h" "$ac_file" \
  12415. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12416. fi
  12417. else
  12418. $as_echo "/* $configure_input */" \
  12419. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12420. || as_fn_error "could not create -" "$LINENO" 5
  12421. fi
  12422. ;;
  12423. :L)
  12424. #
  12425. # CONFIG_LINK
  12426. #
  12427. if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  12428. :
  12429. else
  12430. # Prefer the file from the source tree if names are identical.
  12431. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  12432. ac_source=$srcdir/$ac_source
  12433. fi
  12434. { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  12435. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  12436. if test ! -r "$ac_source"; then
  12437. as_fn_error "$ac_source: file not found" "$LINENO" 5
  12438. fi
  12439. rm -f "$ac_file"
  12440. # Try a relative symlink, then a hard link, then a copy.
  12441. case $srcdir in
  12442. [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  12443. *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  12444. esac
  12445. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  12446. ln "$ac_source" "$ac_file" 2>/dev/null ||
  12447. cp -p "$ac_source" "$ac_file" ||
  12448. as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  12449. fi
  12450. ;;
  12451. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12452. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12453. ;;
  12454. esac
  12455. case $ac_file$ac_mode in
  12456. "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  12457. "libtool":C)
  12458. # See if we are running on zsh, and set the options which allow our
  12459. # commands through without removal of \ escapes.
  12460. if test -n "${ZSH_VERSION+set}" ; then
  12461. setopt NO_GLOB_SUBST
  12462. fi
  12463. cfgfile="${ofile}T"
  12464. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12465. $RM "$cfgfile"
  12466. cat <<_LT_EOF >> "$cfgfile"
  12467. #! $SHELL
  12468. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12469. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12470. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12471. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12472. #
  12473. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12474. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  12475. # Written by Gordon Matzigkeit, 1996
  12476. #
  12477. # This file is part of GNU Libtool.
  12478. #
  12479. # GNU Libtool is free software; you can redistribute it and/or
  12480. # modify it under the terms of the GNU General Public License as
  12481. # published by the Free Software Foundation; either version 2 of
  12482. # the License, or (at your option) any later version.
  12483. #
  12484. # As a special exception to the GNU General Public License,
  12485. # if you distribute this file as part of a program or library that
  12486. # is built using GNU Libtool, you may include this file under the
  12487. # same distribution terms that you use for the rest of that program.
  12488. #
  12489. # GNU Libtool is distributed in the hope that it will be useful,
  12490. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12491. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12492. # GNU General Public License for more details.
  12493. #
  12494. # You should have received a copy of the GNU General Public License
  12495. # along with GNU Libtool; see the file COPYING. If not, a copy
  12496. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12497. # obtained by writing to the Free Software Foundation, Inc.,
  12498. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12499. # The names of the tagged configurations supported by this script.
  12500. available_tags=""
  12501. # ### BEGIN LIBTOOL CONFIG
  12502. # Which release of libtool.m4 was used?
  12503. macro_version=$macro_version
  12504. macro_revision=$macro_revision
  12505. # Whether or not to build shared libraries.
  12506. build_libtool_libs=$enable_shared
  12507. # Whether or not to build static libraries.
  12508. build_old_libs=$enable_static
  12509. # What type of objects to build.
  12510. pic_mode=$pic_mode
  12511. # Whether or not to optimize for fast installation.
  12512. fast_install=$enable_fast_install
  12513. # Shell to use when invoking shell scripts.
  12514. SHELL=$lt_SHELL
  12515. # An echo program that protects backslashes.
  12516. ECHO=$lt_ECHO
  12517. # The host system.
  12518. host_alias=$host_alias
  12519. host=$host
  12520. host_os=$host_os
  12521. # The build system.
  12522. build_alias=$build_alias
  12523. build=$build
  12524. build_os=$build_os
  12525. # A sed program that does not truncate output.
  12526. SED=$lt_SED
  12527. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12528. Xsed="\$SED -e 1s/^X//"
  12529. # A grep program that handles long lines.
  12530. GREP=$lt_GREP
  12531. # An ERE matcher.
  12532. EGREP=$lt_EGREP
  12533. # A literal string matcher.
  12534. FGREP=$lt_FGREP
  12535. # A BSD- or MS-compatible name lister.
  12536. NM=$lt_NM
  12537. # Whether we need soft or hard links.
  12538. LN_S=$lt_LN_S
  12539. # What is the maximum length of a command?
  12540. max_cmd_len=$max_cmd_len
  12541. # Object file suffix (normally "o").
  12542. objext=$ac_objext
  12543. # Executable file suffix (normally "").
  12544. exeext=$exeext
  12545. # whether the shell understands "unset".
  12546. lt_unset=$lt_unset
  12547. # turn spaces into newlines.
  12548. SP2NL=$lt_lt_SP2NL
  12549. # turn newlines into spaces.
  12550. NL2SP=$lt_lt_NL2SP
  12551. # An object symbol dumper.
  12552. OBJDUMP=$lt_OBJDUMP
  12553. # Method to check whether dependent libraries are shared objects.
  12554. deplibs_check_method=$lt_deplibs_check_method
  12555. # Command to use when deplibs_check_method == "file_magic".
  12556. file_magic_cmd=$lt_file_magic_cmd
  12557. # The archiver.
  12558. AR=$lt_AR
  12559. AR_FLAGS=$lt_AR_FLAGS
  12560. # A symbol stripping program.
  12561. STRIP=$lt_STRIP
  12562. # Commands used to install an old-style archive.
  12563. RANLIB=$lt_RANLIB
  12564. old_postinstall_cmds=$lt_old_postinstall_cmds
  12565. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12566. # Whether to use a lock for old archive extraction.
  12567. lock_old_archive_extraction=$lock_old_archive_extraction
  12568. # A C compiler.
  12569. LTCC=$lt_CC
  12570. # LTCC compiler flags.
  12571. LTCFLAGS=$lt_CFLAGS
  12572. # Take the output of nm and produce a listing of raw symbols and C names.
  12573. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12574. # Transform the output of nm in a proper C declaration.
  12575. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12576. # Transform the output of nm in a C name address pair.
  12577. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12578. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12579. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12580. # The name of the directory that contains temporary libtool files.
  12581. objdir=$objdir
  12582. # Used to examine libraries when file_magic_cmd begins with "file".
  12583. MAGIC_CMD=$MAGIC_CMD
  12584. # Must we lock files when doing compilation?
  12585. need_locks=$lt_need_locks
  12586. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12587. DSYMUTIL=$lt_DSYMUTIL
  12588. # Tool to change global to local symbols on Mac OS X.
  12589. NMEDIT=$lt_NMEDIT
  12590. # Tool to manipulate fat objects and archives on Mac OS X.
  12591. LIPO=$lt_LIPO
  12592. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12593. OTOOL=$lt_OTOOL
  12594. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12595. OTOOL64=$lt_OTOOL64
  12596. # Old archive suffix (normally "a").
  12597. libext=$libext
  12598. # Shared library suffix (normally ".so").
  12599. shrext_cmds=$lt_shrext_cmds
  12600. # The commands to extract the exported symbol list from a shared archive.
  12601. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12602. # Variables whose values should be saved in libtool wrapper scripts and
  12603. # restored at link time.
  12604. variables_saved_for_relink=$lt_variables_saved_for_relink
  12605. # Do we need the "lib" prefix for modules?
  12606. need_lib_prefix=$need_lib_prefix
  12607. # Do we need a version for libraries?
  12608. need_version=$need_version
  12609. # Library versioning type.
  12610. version_type=$version_type
  12611. # Shared library runtime path variable.
  12612. runpath_var=$runpath_var
  12613. # Shared library path variable.
  12614. shlibpath_var=$shlibpath_var
  12615. # Is shlibpath searched before the hard-coded library search path?
  12616. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12617. # Format of library name prefix.
  12618. libname_spec=$lt_libname_spec
  12619. # List of archive names. First name is the real one, the rest are links.
  12620. # The last name is the one that the linker finds with -lNAME
  12621. library_names_spec=$lt_library_names_spec
  12622. # The coded name of the library, if different from the real name.
  12623. soname_spec=$lt_soname_spec
  12624. # Permission mode override for installation of shared libraries.
  12625. install_override_mode=$lt_install_override_mode
  12626. # Command to use after installation of a shared archive.
  12627. postinstall_cmds=$lt_postinstall_cmds
  12628. # Command to use after uninstallation of a shared archive.
  12629. postuninstall_cmds=$lt_postuninstall_cmds
  12630. # Commands used to finish a libtool library installation in a directory.
  12631. finish_cmds=$lt_finish_cmds
  12632. # As "finish_cmds", except a single script fragment to be evaled but
  12633. # not shown.
  12634. finish_eval=$lt_finish_eval
  12635. # Whether we should hardcode library paths into libraries.
  12636. hardcode_into_libs=$hardcode_into_libs
  12637. # Compile-time system search path for libraries.
  12638. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12639. # Run-time system search path for libraries.
  12640. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12641. # Whether dlopen is supported.
  12642. dlopen_support=$enable_dlopen
  12643. # Whether dlopen of programs is supported.
  12644. dlopen_self=$enable_dlopen_self
  12645. # Whether dlopen of statically linked programs is supported.
  12646. dlopen_self_static=$enable_dlopen_self_static
  12647. # Commands to strip libraries.
  12648. old_striplib=$lt_old_striplib
  12649. striplib=$lt_striplib
  12650. # The linker used to build libraries.
  12651. LD=$lt_LD
  12652. # How to create reloadable object files.
  12653. reload_flag=$lt_reload_flag
  12654. reload_cmds=$lt_reload_cmds
  12655. # Commands used to build an old-style archive.
  12656. old_archive_cmds=$lt_old_archive_cmds
  12657. # A language specific compiler.
  12658. CC=$lt_compiler
  12659. # Is the compiler the GNU compiler?
  12660. with_gcc=$GCC
  12661. # Compiler flag to turn off builtin functions.
  12662. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12663. # How to pass a linker flag through the compiler.
  12664. wl=$lt_lt_prog_compiler_wl
  12665. # Additional compiler flags for building library objects.
  12666. pic_flag=$lt_lt_prog_compiler_pic
  12667. # Compiler flag to prevent dynamic linking.
  12668. link_static_flag=$lt_lt_prog_compiler_static
  12669. # Does compiler simultaneously support -c and -o options?
  12670. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12671. # Whether or not to add -lc for building shared libraries.
  12672. build_libtool_need_lc=$archive_cmds_need_lc
  12673. # Whether or not to disallow shared libs when runtime libs are static.
  12674. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12675. # Compiler flag to allow reflexive dlopens.
  12676. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12677. # Compiler flag to generate shared objects directly from archives.
  12678. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12679. # Whether the compiler copes with passing no objects directly.
  12680. compiler_needs_object=$lt_compiler_needs_object
  12681. # Create an old-style archive from a shared archive.
  12682. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12683. # Create a temporary old-style archive to link instead of a shared archive.
  12684. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12685. # Commands used to build a shared archive.
  12686. archive_cmds=$lt_archive_cmds
  12687. archive_expsym_cmds=$lt_archive_expsym_cmds
  12688. # Commands used to build a loadable module if different from building
  12689. # a shared archive.
  12690. module_cmds=$lt_module_cmds
  12691. module_expsym_cmds=$lt_module_expsym_cmds
  12692. # Whether we are building with GNU ld or not.
  12693. with_gnu_ld=$lt_with_gnu_ld
  12694. # Flag that allows shared libraries with undefined symbols to be built.
  12695. allow_undefined_flag=$lt_allow_undefined_flag
  12696. # Flag that enforces no undefined symbols.
  12697. no_undefined_flag=$lt_no_undefined_flag
  12698. # Flag to hardcode \$libdir into a binary during linking.
  12699. # This must work even if \$libdir does not exist
  12700. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12701. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12702. # during linking. This must work even if \$libdir does not exist.
  12703. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12704. # Whether we need a single "-rpath" flag with a separated argument.
  12705. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12706. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12707. # DIR into the resulting binary.
  12708. hardcode_direct=$hardcode_direct
  12709. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12710. # DIR into the resulting binary and the resulting library dependency is
  12711. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12712. # library is relocated.
  12713. hardcode_direct_absolute=$hardcode_direct_absolute
  12714. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12715. # into the resulting binary.
  12716. hardcode_minus_L=$hardcode_minus_L
  12717. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12718. # into the resulting binary.
  12719. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12720. # Set to "yes" if building a shared library automatically hardcodes DIR
  12721. # into the library and all subsequent libraries and executables linked
  12722. # against it.
  12723. hardcode_automatic=$hardcode_automatic
  12724. # Set to yes if linker adds runtime paths of dependent libraries
  12725. # to runtime path list.
  12726. inherit_rpath=$inherit_rpath
  12727. # Whether libtool must link a program against all its dependency libraries.
  12728. link_all_deplibs=$link_all_deplibs
  12729. # Fix the shell variable \$srcfile for the compiler.
  12730. fix_srcfile_path=$lt_fix_srcfile_path
  12731. # Set to "yes" if exported symbols are required.
  12732. always_export_symbols=$always_export_symbols
  12733. # The commands to list exported symbols.
  12734. export_symbols_cmds=$lt_export_symbols_cmds
  12735. # Symbols that should not be listed in the preloaded symbols.
  12736. exclude_expsyms=$lt_exclude_expsyms
  12737. # Symbols that must always be exported.
  12738. include_expsyms=$lt_include_expsyms
  12739. # Commands necessary for linking programs (against libraries) with templates.
  12740. prelink_cmds=$lt_prelink_cmds
  12741. # Specify filename containing input files.
  12742. file_list_spec=$lt_file_list_spec
  12743. # How to hardcode a shared library path into an executable.
  12744. hardcode_action=$hardcode_action
  12745. # ### END LIBTOOL CONFIG
  12746. _LT_EOF
  12747. case $host_os in
  12748. aix3*)
  12749. cat <<\_LT_EOF >> "$cfgfile"
  12750. # AIX sometimes has problems with the GCC collect2 program. For some
  12751. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12752. # vanish in a puff of smoke.
  12753. if test "X${COLLECT_NAMES+set}" != Xset; then
  12754. COLLECT_NAMES=
  12755. export COLLECT_NAMES
  12756. fi
  12757. _LT_EOF
  12758. ;;
  12759. esac
  12760. ltmain="$ac_aux_dir/ltmain.sh"
  12761. # We use sed instead of cat because bash on DJGPP gets confused if
  12762. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12763. # text mode, it properly converts lines to CR/LF. This bash problem
  12764. # is reportedly fixed, but why not run on old versions too?
  12765. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12766. || (rm -f "$cfgfile"; exit 1)
  12767. case $xsi_shell in
  12768. yes)
  12769. cat << \_LT_EOF >> "$cfgfile"
  12770. # func_dirname file append nondir_replacement
  12771. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12772. # otherwise set result to NONDIR_REPLACEMENT.
  12773. func_dirname ()
  12774. {
  12775. case ${1} in
  12776. */*) func_dirname_result="${1%/*}${2}" ;;
  12777. * ) func_dirname_result="${3}" ;;
  12778. esac
  12779. }
  12780. # func_basename file
  12781. func_basename ()
  12782. {
  12783. func_basename_result="${1##*/}"
  12784. }
  12785. # func_dirname_and_basename file append nondir_replacement
  12786. # perform func_basename and func_dirname in a single function
  12787. # call:
  12788. # dirname: Compute the dirname of FILE. If nonempty,
  12789. # add APPEND to the result, otherwise set result
  12790. # to NONDIR_REPLACEMENT.
  12791. # value returned in "$func_dirname_result"
  12792. # basename: Compute filename of FILE.
  12793. # value retuned in "$func_basename_result"
  12794. # Implementation must be kept synchronized with func_dirname
  12795. # and func_basename. For efficiency, we do not delegate to
  12796. # those functions but instead duplicate the functionality here.
  12797. func_dirname_and_basename ()
  12798. {
  12799. case ${1} in
  12800. */*) func_dirname_result="${1%/*}${2}" ;;
  12801. * ) func_dirname_result="${3}" ;;
  12802. esac
  12803. func_basename_result="${1##*/}"
  12804. }
  12805. # func_stripname prefix suffix name
  12806. # strip PREFIX and SUFFIX off of NAME.
  12807. # PREFIX and SUFFIX must not contain globbing or regex special
  12808. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12809. # dot (in which case that matches only a dot).
  12810. func_stripname ()
  12811. {
  12812. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12813. # positional parameters, so assign one to ordinary parameter first.
  12814. func_stripname_result=${3}
  12815. func_stripname_result=${func_stripname_result#"${1}"}
  12816. func_stripname_result=${func_stripname_result%"${2}"}
  12817. }
  12818. # func_opt_split
  12819. func_opt_split ()
  12820. {
  12821. func_opt_split_opt=${1%%=*}
  12822. func_opt_split_arg=${1#*=}
  12823. }
  12824. # func_lo2o object
  12825. func_lo2o ()
  12826. {
  12827. case ${1} in
  12828. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12829. *) func_lo2o_result=${1} ;;
  12830. esac
  12831. }
  12832. # func_xform libobj-or-source
  12833. func_xform ()
  12834. {
  12835. func_xform_result=${1%.*}.lo
  12836. }
  12837. # func_arith arithmetic-term...
  12838. func_arith ()
  12839. {
  12840. func_arith_result=$(( $* ))
  12841. }
  12842. # func_len string
  12843. # STRING may not start with a hyphen.
  12844. func_len ()
  12845. {
  12846. func_len_result=${#1}
  12847. }
  12848. _LT_EOF
  12849. ;;
  12850. *) # Bourne compatible functions.
  12851. cat << \_LT_EOF >> "$cfgfile"
  12852. # func_dirname file append nondir_replacement
  12853. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12854. # otherwise set result to NONDIR_REPLACEMENT.
  12855. func_dirname ()
  12856. {
  12857. # Extract subdirectory from the argument.
  12858. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  12859. if test "X$func_dirname_result" = "X${1}"; then
  12860. func_dirname_result="${3}"
  12861. else
  12862. func_dirname_result="$func_dirname_result${2}"
  12863. fi
  12864. }
  12865. # func_basename file
  12866. func_basename ()
  12867. {
  12868. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  12869. }
  12870. # func_stripname prefix suffix name
  12871. # strip PREFIX and SUFFIX off of NAME.
  12872. # PREFIX and SUFFIX must not contain globbing or regex special
  12873. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12874. # dot (in which case that matches only a dot).
  12875. # func_strip_suffix prefix name
  12876. func_stripname ()
  12877. {
  12878. case ${2} in
  12879. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12880. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12881. esac
  12882. }
  12883. # sed scripts:
  12884. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12885. my_sed_long_arg='1s/^-[^=]*=//'
  12886. # func_opt_split
  12887. func_opt_split ()
  12888. {
  12889. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  12890. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  12891. }
  12892. # func_lo2o object
  12893. func_lo2o ()
  12894. {
  12895. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  12896. }
  12897. # func_xform libobj-or-source
  12898. func_xform ()
  12899. {
  12900. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  12901. }
  12902. # func_arith arithmetic-term...
  12903. func_arith ()
  12904. {
  12905. func_arith_result=`expr "$@"`
  12906. }
  12907. # func_len string
  12908. # STRING may not start with a hyphen.
  12909. func_len ()
  12910. {
  12911. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12912. }
  12913. _LT_EOF
  12914. esac
  12915. case $lt_shell_append in
  12916. yes)
  12917. cat << \_LT_EOF >> "$cfgfile"
  12918. # func_append var value
  12919. # Append VALUE to the end of shell variable VAR.
  12920. func_append ()
  12921. {
  12922. eval "$1+=\$2"
  12923. }
  12924. _LT_EOF
  12925. ;;
  12926. *)
  12927. cat << \_LT_EOF >> "$cfgfile"
  12928. # func_append var value
  12929. # Append VALUE to the end of shell variable VAR.
  12930. func_append ()
  12931. {
  12932. eval "$1=\$$1\$2"
  12933. }
  12934. _LT_EOF
  12935. ;;
  12936. esac
  12937. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12938. || (rm -f "$cfgfile"; exit 1)
  12939. mv -f "$cfgfile" "$ofile" ||
  12940. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12941. chmod +x "$ofile"
  12942. ;;
  12943. "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
  12944. rm -f Makesim1.tmp Makesim2.tmp Makefile
  12945. sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
  12946. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
  12947. sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
  12948. -e '/^## COMMON_POST_/ r Makesim2.tmp' \
  12949. <Makefile.sim >Makefile
  12950. rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
  12951. ;;
  12952. "stamp-h":C) echo > stamp-h ;;
  12953. esac
  12954. done # for ac_tag
  12955. as_fn_exit 0
  12956. _ACEOF
  12957. ac_clean_files=$ac_clean_files_save
  12958. test $ac_write_fail = 0 ||
  12959. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12960. # configure is writing to config.log, and then calls config.status.
  12961. # config.status does its own redirection, appending to config.log.
  12962. # Unfortunately, on DOS this fails, as config.log is still kept open
  12963. # by configure, so config.status won't be able to write to it; its
  12964. # output is simply discarded. So we exec the FD to /dev/null,
  12965. # effectively closing config.log, so it can be properly (re)opened and
  12966. # appended to by config.status. When coming back to configure, we
  12967. # need to make the FD available again.
  12968. if test "$no_create" != yes; then
  12969. ac_cs_success=:
  12970. ac_config_status_args=
  12971. test "$silent" = yes &&
  12972. ac_config_status_args="$ac_config_status_args --quiet"
  12973. exec 5>/dev/null
  12974. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12975. exec 5>>config.log
  12976. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12977. # would make configure fail if this is the last instruction.
  12978. $ac_cs_success || as_fn_exit $?
  12979. fi
  12980. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12982. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12983. fi